UNPKG

@i4mi/fhir_r4

Version:

FHIR resource definitions + API methods + utils

645 lines (644 loc) 229 kB
"use strict"; /** * Created by Institute for Medical Informatics (I4MI) - Department of Engineering and Information Technology - Bern University of Applied Science (BFH) * File generated on 2022-11-01T13:49:11.646Z * https://www.i4mi.ti.bfh.ch * * Copyright 2023 Institute for Medical Informatics * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ Object.defineProperty(exports, "__esModule", { value: true }); exports.CapabilityStatementConditionalDeleteStatus = exports.CapabilityStatementConditionalReadStatus = exports.CapabilityStatementResourceVersionPolicy = exports.CapabilityStatementTypeRestfulInteraction = exports.CapabilityStatementRestfulCapabilityMode = exports.CapabilityStatementKind = exports.CapabilityStatementPublicationStatus = exports.BundleHTTPVerb = exports.BundleSearchEntryMode = exports.BundleType = exports.BiologicallyDerivedProductStorageScale = exports.BiologicallyDerivedProductStatus = exports.BiologicallyDerivedProductCategory = exports.AppointmentResponseParticipantStatus = exports.AppointmentParticipationStatus = exports.AppointmentParticipantRequired = exports.AppointmentStatus = exports.AllergyIntoleranceSeverity = exports.AllergyIntoleranceCriticality = exports.AllergyIntoleranceCategory = exports.AllergyIntoleranceType = exports.AdverseEventActuality = exports.ActivityDefinitionActivityParticipantType = exports.ActivityDefinitionRequestPriority = exports.ActivityDefinitionRequestIntent = exports.ActivityDefinitionPublicationStatus = exports.AccountStatus = exports.TriggerDefinitionTriggerType = exports.TimingDayOfWeek = exports.TimingUnitsOfTime = exports.RelatedArtifactType = exports.QuantityComparator = exports.ParameterDefinitionParameterUse = exports.NarrativeStatus = exports.IdentifierUse = exports.HumanNameNameUse = exports.Expressionundefined = exports.ElementDefinitionBindingStrength = exports.ElementDefinitionConstraintSeverity = exports.ElementDefinitionReferenceVersionRules = exports.ElementDefinitionAggregationMode = exports.ElementDefinitionSlicingRules = exports.ElementDefinitionDiscriminatorType = exports.ElementDefinitionPropertyRepresentation = exports.DataRequirementSortDirection = exports.ContributorType = exports.ContactPointUse = exports.ContactPointSystem = exports.AddressType = exports.AddressUse = void 0; exports.CoverageEligibilityResponseEligibilityResponsePurpose = exports.CoverageEligibilityResponseEligibilityResponseStatus = exports.CoverageEligibilityRequestEligibilityRequestPurpose = exports.CoverageEligibilityRequestEligibilityRequestStatus = exports.CoverageStatus = exports.ContractPublicationStatus = exports.ContractStatus = exports.ConsentDataMeaning = exports.ConsentProvisionType = exports.ConsentState = exports.ConceptMapGroupUnmappedMode = exports.ConceptMapEquivalence = exports.ConceptMapPublicationStatus = exports.CompositionSectionMode = exports.CompositionDocumentRelationshipType = exports.CompositionAttestationMode = exports.CompositionStatus = exports.CompartmentDefinitionCompartmentType = exports.CompartmentDefinitionPublicationStatus = exports.CommunicationRequestCommunicationPriority = exports.CommunicationRequestStatus = exports.CommunicationPriority = exports.CommunicationStatus = exports.CodeSystemPropertyType = exports.CodeSystemFilterOperator = exports.CodeSystemContentMode = exports.CodeSystemHierarchyMeaning = exports.CodeSystemPublicationStatus = exports.ClinicalImpressionStatus = exports.ClaimResponseNoteType = exports.ClaimResponseRemittanceOutcome = exports.ClaimResponseUse = exports.ClaimResponseStatus = exports.ClaimUse = exports.ClaimStatus = exports.ChargeItemDefinitionPriceComponentType = exports.ChargeItemDefinitionPublicationStatus = exports.ChargeItemStatus = exports.CatalogEntryRelationType = exports.CatalogEntryPublicationStatus = exports.CareTeamStatus = exports.CarePlanActivityStatus = exports.CarePlanActivityKind = exports.CarePlanIntent = exports.CarePlanStatus = exports.CapabilityStatementDocumentMode = exports.CapabilityStatementEventCapabilityMode = exports.CapabilityStatementSystemRestfulInteraction = exports.CapabilityStatementSearchParamType = exports.CapabilityStatementReferenceHandlingPolicy = void 0; exports.ImplementationGuidePublicationStatus = exports.ImmunizationEvaluationStatus = exports.ImmunizationStatus = exports.ImagingStudyStatus = exports.HealthcareServiceDaysOfWeek = exports.GuidanceResponseStatus = exports.GroupType = exports.GraphDefinitionGraphCompartmentRule = exports.GraphDefinitionCompartmentCode = exports.GraphDefinitionGraphCompartmentUse = exports.GraphDefinitionPublicationStatus = exports.GoalLifecycleStatus = exports.FlagStatus = exports.FamilyMemberHistoryFamilyHistoryStatus = exports.ExplanationOfBenefitNoteType = exports.ExplanationOfBenefitRemittanceOutcome = exports.ExplanationOfBenefitUse = exports.ExplanationOfBenefitStatus = exports.ExampleScenarioActorType = exports.ExampleScenarioPublicationStatus = exports.EvidenceVariableGroupMeasure = exports.EvidenceVariableType = exports.EvidenceVariablePublicationStatus = exports.EvidencePublicationStatus = exports.EventDefinitionPublicationStatus = exports.EpisodeOfCareStatus = exports.EnrollmentResponseRemittanceOutcome = exports.EnrollmentResponseStatus = exports.EnrollmentRequestStatus = exports.EndpointStatus = exports.EncounterLocationStatus = exports.EffectEvidenceSynthesisExposureState = exports.EffectEvidenceSynthesisPublicationStatus = exports.DocumentReferenceDocumentRelationshipType = exports.DocumentReferenceReferredDocumentStatus = exports.DocumentReferenceStatus = exports.DocumentManifestDocumentReferenceStatus = exports.DeviceRequestRequestPriority = exports.DeviceRequestRequestIntent = exports.DeviceRequestStatus = exports.DeviceMetricCalibrationState = exports.DeviceMetricCalibrationType = exports.DeviceMetricCategory = exports.DeviceMetricColor = exports.DeviceMetricOperationalStatus = exports.DeviceDefinitionDeviceNameType = exports.DeviceNameType = exports.DeviceFHIRDeviceStatus = exports.DetectedIssueSeverity = exports.CoverageEligibilityResponseRemittanceOutcome = void 0; exports.PaymentNoticeStatus = exports.PatientLinkType = exports.PatientAdministrativeGender = exports.OperationOutcomeIssueSeverity = exports.OperationDefinitionBindingStrength = exports.OperationDefinitionSearchParamType = exports.OperationDefinitionOperationParameterUse = exports.OperationDefinitionOperationKind = exports.OperationDefinitionPublicationStatus = exports.ObservationDefinitionAdministrativeGender = exports.ObservationDefinitionObservationRangeCategory = exports.ObservationDefinitionObservationDataType = exports.NutritionOrderNutritiionOrderIntent = exports.NutritionOrderStatus = exports.NamingSystemIdentifierType = exports.NamingSystemType = exports.NamingSystemPublicationStatus = exports.MolecularSequencerepositoryType = exports.MolecularSequencequalityType = exports.MolecularSequencestrandType = exports.MolecularSequenceorientationType = exports.MolecularSequencesequenceType = exports.MessageHeaderResponseType = exports.MessageDefinitionmessageheader_response_request = exports.MessageDefinitionMessageSignificanceCategory = exports.MessageDefinitionPublicationStatus = exports.MedicationStatementStatus = exports.MedicationRequestPriority = exports.MedicationRequestIntent = exports.MedicationRequestStatus = exports.MedicationKnowledgeStatus = exports.MedicationDispenseStatus = exports.MedicationAdministrationStatus = exports.MedicationStatus = exports.MediaStatus = exports.MeasureReportType = exports.MeasureReportStatus = exports.MeasurePublicationStatus = exports.LocationDaysOfWeek = exports.LocationMode = exports.LocationStatus = exports.ListMode = exports.ListStatus = exports.LinkageType = exports.LibraryPublicationStatus = exports.InvoicePriceComponentType = exports.InvoiceStatus = exports.InsurancePlanPublicationStatus = exports.ImplementationGuideGuideParameterCode = exports.ImplementationGuideGuidePageGeneration = void 0; exports.ServiceRequestPriority = exports.ServiceRequestIntent = exports.ServiceRequestStatus = exports.SearchParameterSearchModifierCode = exports.SearchParameterSearchComparator = exports.SearchParameterXPathUsageType = exports.SearchParameterSearchParamType = exports.SearchParameterPublicationStatus = exports.RiskEvidenceSynthesisPublicationStatus = exports.ResearchSubjectStatus = exports.ResearchStudyStatus = exports.ResearchElementDefinitionGroupMeasure = exports.ResearchElementDefinitionVariableType = exports.ResearchElementDefinitionResearchElementType = exports.ResearchElementDefinitionPublicationStatus = exports.ResearchDefinitionPublicationStatus = exports.RequestGroupActionCardinalityBehavior = exports.RequestGroupActionPrecheckBehavior = exports.RequestGroupActionRequiredBehavior = exports.RequestGroupActionSelectionBehavior = exports.RequestGroupActionGroupingBehavior = exports.RequestGroupActionRelationshipType = exports.RequestGroupActionConditionKind = exports.RequestGroupRequestPriority = exports.RequestGroupRequestIntent = exports.RequestGroupRequestStatus = exports.RelatedPersonAdministrativeGender = exports.QuestionnaireResponseStatus = exports.QuestionnaireEnableWhenBehavior = exports.QuestionnaireItemOperator = exports.QuestionnairePublicationStatus = exports.ProvenanceEntityRole = exports.ProcedureStatus = exports.PractitionerRoleDaysOfWeek = exports.PractitionerAdministrativeGender = exports.PlanDefinitionActionCardinalityBehavior = exports.PlanDefinitionActionPrecheckBehavior = exports.PlanDefinitionActionRequiredBehavior = exports.PlanDefinitionActionSelectionBehavior = exports.PlanDefinitionActionGroupingBehavior = exports.PlanDefinitionActionParticipantType = exports.PlanDefinitionActionRelationshipType = exports.PlanDefinitionActionConditionKind = exports.PlanDefinitionRequestPriority = exports.PlanDefinitionPublicationStatus = exports.PersonIdentityAssuranceLevel = exports.PersonAdministrativeGender = exports.PaymentReconciliationNoteType = exports.PaymentReconciliationRemittanceOutcome = exports.PaymentReconciliationStatus = void 0; exports.StructureMapTransform = exports.TaskStatus = exports.DeviceUseStatementStatus = exports.SupplyRequestStatus = exports.RiskAssessmentStatus = exports.QuestionnaireItemType = exports.DeviceUDIEntryType = exports.EncounterStatus = exports.DiagnosticReportStatus = exports.ObservationStatus = exports.DetectedIssueStatus = exports.VisionPrescriptionVisionBase = exports.VisionPrescriptionVisionEyes = exports.VisionPrescriptionVisionStatus = exports.VerificationResultstatus = exports.ValueSetFilterOperator = exports.ValueSetPublicationStatus = exports.TestScriptAssertionResponseTypes = exports.TestScriptAssertionOperatorType = exports.TestScriptAssertionDirectionType = exports.TestScriptRequestMethodCode = exports.TestScriptPublicationStatus = exports.TestReportActionResult = exports.TestReportParticipantType = exports.TestReportResult = exports.TestReportStatus = exports.TerminologyCapabilitiesCodeSearchSupport = exports.TerminologyCapabilitiesCapabilityStatementKind = exports.TerminologyCapabilitiesPublicationStatus = exports.TaskPriority = exports.TaskIntent = exports.SupplyRequestRequestPriority = exports.SupplyDeliveryStatus = exports.SubstanceFHIRSubstanceStatus = exports.SubscriptionChannelType = exports.SubscriptionStatus = exports.StructureMapTargetListMode = exports.StructureMapContextType = exports.StructureMapSourceListMode = exports.StructureMapInputMode = exports.StructureMapGroupTypeMode = exports.StructureMapModelMode = exports.StructureMapPublicationStatus = exports.StructureDefinitionTypeDerivationRule = exports.StructureDefinitionExtensionContextType = exports.StructureDefinitionKind = exports.StructureDefinitionPublicationStatus = exports.SpecimenDefinitionSpecimenContainedPreference = exports.SpecimenStatus = exports.SlotStatus = void 0; /** * home | work | temp | old | billing - purpose of this address * The purpose of this address. * Applications can assume that an address is current unless it explicitly says that it is temporary or old. */ var AddressUse; (function (AddressUse) { AddressUse["HOME"] = "home"; AddressUse["WORK"] = "work"; AddressUse["TEMP"] = "temp"; AddressUse["OLD"] = "old"; AddressUse["BILLING"] = "billing"; })(AddressUse || (exports.AddressUse = AddressUse = {})); /** * postal | physical | both * Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both. * The definition of Address states that "address is intended to describe postal addresses, not physical locations". However, many applications track whether an address has a dual purpose of being a location that can be visited as well as being a valid delivery destination, and Postal addresses are often used as proxies for physical locations (also see the [Location](location.html#) resource). */ var AddressType; (function (AddressType) { AddressType["POSTAL"] = "postal"; AddressType["PHYSICAL"] = "physical"; AddressType["BOTH"] = "both"; })(AddressType || (exports.AddressType = AddressType = {})); /** * phone | fax | email | pager | url | sms | other * Telecommunications form for contact point - what communications system is required to make use of the contact. */ var ContactPointSystem; (function (ContactPointSystem) { ContactPointSystem["PHONE"] = "phone"; ContactPointSystem["FAX"] = "fax"; ContactPointSystem["EMAIL"] = "email"; ContactPointSystem["PAGER"] = "pager"; ContactPointSystem["URL"] = "url"; ContactPointSystem["SMS"] = "sms"; ContactPointSystem["OTHER"] = "other"; })(ContactPointSystem || (exports.ContactPointSystem = ContactPointSystem = {})); /** * home | work | temp | old | mobile - purpose of this contact point * Identifies the purpose for the contact point. * Applications can assume that a contact is current unless it explicitly says that it is temporary or old. */ var ContactPointUse; (function (ContactPointUse) { ContactPointUse["HOME"] = "home"; ContactPointUse["WORK"] = "work"; ContactPointUse["TEMP"] = "temp"; ContactPointUse["OLD"] = "old"; ContactPointUse["MOBILE"] = "mobile"; })(ContactPointUse || (exports.ContactPointUse = ContactPointUse = {})); /** * author | editor | reviewer | endorser * The type of contributor. */ var ContributorType; (function (ContributorType) { ContributorType["AUTHOR"] = "author"; ContributorType["EDITOR"] = "editor"; ContributorType["REVIEWER"] = "reviewer"; ContributorType["ENDORSER"] = "endorser"; })(ContributorType || (exports.ContributorType = ContributorType = {})); /** * ascending | descending * The direction of the sort, ascending or descending. */ var DataRequirementSortDirection; (function (DataRequirementSortDirection) { DataRequirementSortDirection["ASCENDING"] = "ascending"; DataRequirementSortDirection["DESCENDING"] = "descending"; })(DataRequirementSortDirection || (exports.DataRequirementSortDirection = DataRequirementSortDirection = {})); /** * xmlAttr | xmlText | typeAttr | cdaText | xhtml * Codes that define how this element is represented in instances, when the deviation varies from the normal case. * In resources, this is rarely used except for special cases where the representation deviates from the normal, and can only be done in the base standard (and profiles must reproduce what the base standard does). This element is used quite commonly in Logical models when the logical models represent a specific serialization format (e.g. CDA, v2 etc.). */ var ElementDefinitionPropertyRepresentation; (function (ElementDefinitionPropertyRepresentation) { ElementDefinitionPropertyRepresentation["XMLATTR"] = "xmlAttr"; ElementDefinitionPropertyRepresentation["XMLTEXT"] = "xmlText"; ElementDefinitionPropertyRepresentation["TYPEATTR"] = "typeAttr"; ElementDefinitionPropertyRepresentation["CDATEXT"] = "cdaText"; ElementDefinitionPropertyRepresentation["XHTML"] = "xhtml"; })(ElementDefinitionPropertyRepresentation || (exports.ElementDefinitionPropertyRepresentation = ElementDefinitionPropertyRepresentation = {})); /** * value | exists | pattern | type | profile * How the element value is interpreted when discrimination is evaluated. */ var ElementDefinitionDiscriminatorType; (function (ElementDefinitionDiscriminatorType) { ElementDefinitionDiscriminatorType["VALUE"] = "value"; ElementDefinitionDiscriminatorType["EXISTS"] = "exists"; ElementDefinitionDiscriminatorType["PATTERN"] = "pattern"; ElementDefinitionDiscriminatorType["TYPE"] = "type"; ElementDefinitionDiscriminatorType["PROFILE"] = "profile"; })(ElementDefinitionDiscriminatorType || (exports.ElementDefinitionDiscriminatorType = ElementDefinitionDiscriminatorType = {})); /** * closed | open | openAtEnd * Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end. * Allowing additional elements makes for a much for flexible template - it's open for use in wider contexts, but also means that the content of the resource is not closed, and applications have to decide how to handle content not described by the profile. */ var ElementDefinitionSlicingRules; (function (ElementDefinitionSlicingRules) { ElementDefinitionSlicingRules["CLOSED"] = "closed"; ElementDefinitionSlicingRules["OPEN"] = "open"; ElementDefinitionSlicingRules["OPENATEND"] = "openAtEnd"; })(ElementDefinitionSlicingRules || (exports.ElementDefinitionSlicingRules = ElementDefinitionSlicingRules = {})); /** * contained | referenced | bundled - how aggregated * If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle. * See [Aggregation Rules](elementdefinition.html#aggregation) for further clarification. */ var ElementDefinitionAggregationMode; (function (ElementDefinitionAggregationMode) { ElementDefinitionAggregationMode["CONTAINED"] = "contained"; ElementDefinitionAggregationMode["REFERENCED"] = "referenced"; ElementDefinitionAggregationMode["BUNDLED"] = "bundled"; })(ElementDefinitionAggregationMode || (exports.ElementDefinitionAggregationMode = ElementDefinitionAggregationMode = {})); /** * either | independent | specific * Whether this reference needs to be version specific or version independent, or whether either can be used. * The base specification never makes a rule as to which form is allowed, but implementation guides may do this. See [Aggregation Rules](elementdefinition.html#aggregation) for further clarification. */ var ElementDefinitionReferenceVersionRules; (function (ElementDefinitionReferenceVersionRules) { ElementDefinitionReferenceVersionRules["EITHER"] = "either"; ElementDefinitionReferenceVersionRules["INDEPENDENT"] = "independent"; ElementDefinitionReferenceVersionRules["SPECIFIC"] = "specific"; })(ElementDefinitionReferenceVersionRules || (exports.ElementDefinitionReferenceVersionRules = ElementDefinitionReferenceVersionRules = {})); /** * error | warning * Identifies the impact constraint violation has on the conformance of the instance. * This allows constraints to be asserted as "shall" (error) and "should" (warning). */ var ElementDefinitionConstraintSeverity; (function (ElementDefinitionConstraintSeverity) { ElementDefinitionConstraintSeverity["ERROR"] = "error"; ElementDefinitionConstraintSeverity["WARNING"] = "warning"; })(ElementDefinitionConstraintSeverity || (exports.ElementDefinitionConstraintSeverity = ElementDefinitionConstraintSeverity = {})); /** * required | extensible | preferred | example * Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances. * For further discussion, see [Using Terminologies](terminologies.html). */ var ElementDefinitionBindingStrength; (function (ElementDefinitionBindingStrength) { ElementDefinitionBindingStrength["REQUIRED"] = "required"; ElementDefinitionBindingStrength["EXTENSIBLE"] = "extensible"; ElementDefinitionBindingStrength["PREFERRED"] = "preferred"; ElementDefinitionBindingStrength["EXAMPLE"] = "example"; })(ElementDefinitionBindingStrength || (exports.ElementDefinitionBindingStrength = ElementDefinitionBindingStrength = {})); /** * text/cql | text/fhirpath | application/x-fhir-query | etc. * The media type of the language for the expression. */ var Expressionundefined; (function (Expressionundefined) { Expressionundefined["TEXT_CQL"] = "text/cql"; Expressionundefined["TEXT_FHIRPATH"] = "text/fhirpath"; Expressionundefined["APPLICATION_X_FHIR_QUERY"] = "application/x-fhir-query"; Expressionundefined["ETC_"] = "etc."; })(Expressionundefined || (exports.Expressionundefined = Expressionundefined = {})); /** * usual | official | temp | nickname | anonymous | old | maiden * Identifies the purpose for this name. * Applications can assume that a name is current unless it explicitly says that it is temporary or old. */ var HumanNameNameUse; (function (HumanNameNameUse) { HumanNameNameUse["USUAL"] = "usual"; HumanNameNameUse["OFFICIAL"] = "official"; HumanNameNameUse["TEMP"] = "temp"; HumanNameNameUse["NICKNAME"] = "nickname"; HumanNameNameUse["ANONYMOUS"] = "anonymous"; HumanNameNameUse["OLD"] = "old"; HumanNameNameUse["MAIDEN"] = "maiden"; })(HumanNameNameUse || (exports.HumanNameNameUse = HumanNameNameUse = {})); /** * usual | official | temp | secondary | old (If known) * The purpose of this identifier. * Applications can assume that an identifier is permanent unless it explicitly says that it is temporary. */ var IdentifierUse; (function (IdentifierUse) { IdentifierUse["USUAL"] = "usual"; IdentifierUse["OFFICIAL"] = "official"; IdentifierUse["TEMP"] = "temp"; IdentifierUse["SECONDARY"] = "secondary"; IdentifierUse["OLD"] = "old"; })(IdentifierUse || (exports.IdentifierUse = IdentifierUse = {})); /** * generated | extensions | additional | empty * The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data. */ var NarrativeStatus; (function (NarrativeStatus) { NarrativeStatus["GENERATED"] = "generated"; NarrativeStatus["EXTENSIONS"] = "extensions"; NarrativeStatus["ADDITIONAL"] = "additional"; NarrativeStatus["EMPTY"] = "empty"; })(NarrativeStatus || (exports.NarrativeStatus = NarrativeStatus = {})); /** * in | out * Whether the parameter is input or output for the module. */ var ParameterDefinitionParameterUse; (function (ParameterDefinitionParameterUse) { ParameterDefinitionParameterUse["IN"] = "in"; ParameterDefinitionParameterUse["OUT"] = "out"; })(ParameterDefinitionParameterUse || (exports.ParameterDefinitionParameterUse = ParameterDefinitionParameterUse = {})); /** * < | <= | >= | > - how to understand the value * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is "<" , then the real value is < stated value. */ var QuantityComparator; (function (QuantityComparator) { QuantityComparator["LT"] = "<"; QuantityComparator["LE"] = "<="; QuantityComparator["GE"] = ">="; QuantityComparator["GT"] = ">"; })(QuantityComparator || (exports.QuantityComparator = QuantityComparator = {})); /** * documentation | justification | citation | predecessor | successor | derived-from | depends-on | composed-of * The type of relationship to the related artifact. */ var RelatedArtifactType; (function (RelatedArtifactType) { RelatedArtifactType["DOCUMENTATION"] = "documentation"; RelatedArtifactType["JUSTIFICATION"] = "justification"; RelatedArtifactType["CITATION"] = "citation"; RelatedArtifactType["PREDECESSOR"] = "predecessor"; RelatedArtifactType["SUCCESSOR"] = "successor"; RelatedArtifactType["DERIVED_FROM"] = "derived-from"; RelatedArtifactType["DEPENDS_ON"] = "depends-on"; RelatedArtifactType["COMPOSED_OF"] = "composed-of"; })(RelatedArtifactType || (exports.RelatedArtifactType = RelatedArtifactType = {})); /** * s | min | h | d | wk | mo | a - unit of time (UCUM) * The units of time for the duration, in UCUM units. */ var TimingUnitsOfTime; (function (TimingUnitsOfTime) { TimingUnitsOfTime["S"] = "s"; TimingUnitsOfTime["MIN"] = "min"; TimingUnitsOfTime["H"] = "h"; TimingUnitsOfTime["D"] = "d"; TimingUnitsOfTime["WK"] = "wk"; TimingUnitsOfTime["MO"] = "mo"; TimingUnitsOfTime["A"] = "a"; })(TimingUnitsOfTime || (exports.TimingUnitsOfTime = TimingUnitsOfTime = {})); /** * mon | tue | wed | thu | fri | sat | sun * If one or more days of week is provided, then the action happens only on the specified day(s). * If no days are specified, the action is assumed to happen every day as otherwise specified. The elements frequency and period cannot be used as well as dayOfWeek. */ var TimingDayOfWeek; (function (TimingDayOfWeek) { TimingDayOfWeek["MON"] = "mon"; TimingDayOfWeek["TUE"] = "tue"; TimingDayOfWeek["WED"] = "wed"; TimingDayOfWeek["THU"] = "thu"; TimingDayOfWeek["FRI"] = "fri"; TimingDayOfWeek["SAT"] = "sat"; TimingDayOfWeek["SUN"] = "sun"; })(TimingDayOfWeek || (exports.TimingDayOfWeek = TimingDayOfWeek = {})); /** * named-event | periodic | data-changed | data-added | data-modified | data-removed | data-accessed | data-access-ended * The type of triggering event. */ var TriggerDefinitionTriggerType; (function (TriggerDefinitionTriggerType) { TriggerDefinitionTriggerType["NAMED_EVENT"] = "named-event"; TriggerDefinitionTriggerType["PERIODIC"] = "periodic"; TriggerDefinitionTriggerType["DATA_CHANGED"] = "data-changed"; TriggerDefinitionTriggerType["DATA_ADDED"] = "data-added"; TriggerDefinitionTriggerType["DATA_MODIFIED"] = "data-modified"; TriggerDefinitionTriggerType["DATA_REMOVED"] = "data-removed"; TriggerDefinitionTriggerType["DATA_ACCESSED"] = "data-accessed"; TriggerDefinitionTriggerType["DATA_ACCESS_ENDED"] = "data-access-ended"; })(TriggerDefinitionTriggerType || (exports.TriggerDefinitionTriggerType = TriggerDefinitionTriggerType = {})); /** * active | inactive | entered-in-error | on-hold | unknown * Indicates whether the account is presently used/usable or not. * This element is labeled as a modifier because the status contains the codes inactive and entered-in-error that mark the Account as not currently valid. */ var AccountStatus; (function (AccountStatus) { AccountStatus["ACTIVE"] = "active"; AccountStatus["INACTIVE"] = "inactive"; AccountStatus["ENTERED_IN_ERROR"] = "entered-in-error"; AccountStatus["ON_HOLD"] = "on-hold"; AccountStatus["UNKNOWN"] = "unknown"; })(AccountStatus || (exports.AccountStatus = AccountStatus = {})); /** * draft | active | retired | unknown * The status of this activity definition. Enables tracking the life-cycle of the content. * Allows filtering of activity definitions that are appropriate for use versus not. */ var ActivityDefinitionPublicationStatus; (function (ActivityDefinitionPublicationStatus) { ActivityDefinitionPublicationStatus["DRAFT"] = "draft"; ActivityDefinitionPublicationStatus["ACTIVE"] = "active"; ActivityDefinitionPublicationStatus["RETIRED"] = "retired"; ActivityDefinitionPublicationStatus["UNKNOWN"] = "unknown"; })(ActivityDefinitionPublicationStatus || (exports.ActivityDefinitionPublicationStatus = ActivityDefinitionPublicationStatus = {})); /** * proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option * Indicates the level of authority/intentionality associated with the activity and where the request should fit into the workflow chain. */ var ActivityDefinitionRequestIntent; (function (ActivityDefinitionRequestIntent) { ActivityDefinitionRequestIntent["PROPOSAL"] = "proposal"; ActivityDefinitionRequestIntent["PLAN"] = "plan"; ActivityDefinitionRequestIntent["DIRECTIVE"] = "directive"; ActivityDefinitionRequestIntent["ORDER"] = "order"; ActivityDefinitionRequestIntent["ORIGINAL_ORDER"] = "original-order"; ActivityDefinitionRequestIntent["REFLEX_ORDER"] = "reflex-order"; ActivityDefinitionRequestIntent["FILLER_ORDER"] = "filler-order"; ActivityDefinitionRequestIntent["INSTANCE_ORDER"] = "instance-order"; ActivityDefinitionRequestIntent["OPTION"] = "option"; })(ActivityDefinitionRequestIntent || (exports.ActivityDefinitionRequestIntent = ActivityDefinitionRequestIntent = {})); /** * routine | urgent | asap | stat * Indicates how quickly the activity should be addressed with respect to other requests. */ var ActivityDefinitionRequestPriority; (function (ActivityDefinitionRequestPriority) { ActivityDefinitionRequestPriority["ROUTINE"] = "routine"; ActivityDefinitionRequestPriority["URGENT"] = "urgent"; ActivityDefinitionRequestPriority["ASAP"] = "asap"; ActivityDefinitionRequestPriority["STAT"] = "stat"; })(ActivityDefinitionRequestPriority || (exports.ActivityDefinitionRequestPriority = ActivityDefinitionRequestPriority = {})); /** * patient | practitioner | related-person | device * The type of participant in the action. */ var ActivityDefinitionActivityParticipantType; (function (ActivityDefinitionActivityParticipantType) { ActivityDefinitionActivityParticipantType["PATIENT"] = "patient"; ActivityDefinitionActivityParticipantType["PRACTITIONER"] = "practitioner"; ActivityDefinitionActivityParticipantType["RELATED_PERSON"] = "related-person"; ActivityDefinitionActivityParticipantType["DEVICE"] = "device"; })(ActivityDefinitionActivityParticipantType || (exports.ActivityDefinitionActivityParticipantType = ActivityDefinitionActivityParticipantType = {})); /** * actual | potential * Whether the event actually happened, or just had the potential to. Note that this is independent of whether anyone was affected or harmed or how severely. */ var AdverseEventActuality; (function (AdverseEventActuality) { AdverseEventActuality["ACTUAL"] = "actual"; AdverseEventActuality["POTENTIAL"] = "potential"; })(AdverseEventActuality || (exports.AdverseEventActuality = AdverseEventActuality = {})); /** * allergy | intolerance - Underlying mechanism (if known) * Identification of the underlying physiological mechanism for the reaction risk. * Allergic (typically immune-mediated) reactions have been traditionally regarded as an indicator for potential escalation to significant future risk. Contemporary knowledge suggests that some reactions previously thought to be immune-mediated are, in fact, non-immune, but in some cases can still pose a life threatening risk. It is acknowledged that many clinicians might not be in a position to distinguish the mechanism of a particular reaction. Often the term "allergy" is used rather generically and may overlap with the use of "intolerance" - in practice the boundaries between these two concepts might not be well-defined or understood. This data element is included nevertheless, because many legacy systems have captured this attribute. Immunologic testing may provide supporting evidence for the basis of the reaction and the causative substance, but no tests are 100% sensitive or specific for sensitivity to a particular substance. If, as is commonly the case, it is unclear whether the reaction is due to an allergy or an intolerance, then the type element should be omitted from the resource. */ var AllergyIntoleranceType; (function (AllergyIntoleranceType) { AllergyIntoleranceType["ALLERGY"] = "allergy"; AllergyIntoleranceType["INTOLERANCE"] = "intolerance"; })(AllergyIntoleranceType || (exports.AllergyIntoleranceType = AllergyIntoleranceType = {})); /** * food | medication | environment | biologic * Category of the identified substance. * This data element has been included because it is currently being captured in some clinical systems. This data can be derived from the substance where coding systems are used, and is effectively redundant in that situation. When searching on category, consider the implications of AllergyIntolerance resources without a category. For example, when searching on category = medication, medication allergies that don't have a category valued will not be returned. Refer to [search](search.html) for more information on how to search category with a :missing modifier to get allergies that don't have a category. Additionally, category should be used with caution because category can be subjective based on the sender. */ var AllergyIntoleranceCategory; (function (AllergyIntoleranceCategory) { AllergyIntoleranceCategory["FOOD"] = "food"; AllergyIntoleranceCategory["MEDICATION"] = "medication"; AllergyIntoleranceCategory["ENVIRONMENT"] = "environment"; AllergyIntoleranceCategory["BIOLOGIC"] = "biologic"; })(AllergyIntoleranceCategory || (exports.AllergyIntoleranceCategory = AllergyIntoleranceCategory = {})); /** * low | high | unable-to-assess * Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance. * The default criticality value for any propensity to an adverse reaction should be 'Low Risk', indicating at the very least a relative contraindication to deliberate or voluntary exposure to the substance. 'High Risk' is flagged if the clinician has identified a propensity for a more serious or potentially life-threatening reaction, such as anaphylaxis, and implies an absolute contraindication to deliberate or voluntary exposure to the substance. If this element is missing, the criticality is unknown (though it may be known elsewhere). Systems that capture a severity at the condition level are actually representing the concept of criticality whereas the severity documented at the reaction level is representing the true reaction severity. Existing systems that are capturing both condition criticality and reaction severity may use the term "severity" to represent both. Criticality is the worst it could be in the future (i.e. situation-agnostic) whereas severity is situation-dependent. */ var AllergyIntoleranceCriticality; (function (AllergyIntoleranceCriticality) { AllergyIntoleranceCriticality["LOW"] = "low"; AllergyIntoleranceCriticality["HIGH"] = "high"; AllergyIntoleranceCriticality["UNABLE_TO_ASSESS"] = "unable-to-assess"; })(AllergyIntoleranceCriticality || (exports.AllergyIntoleranceCriticality = AllergyIntoleranceCriticality = {})); /** * mild | moderate | severe (of event as a whole) * Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations. * It is acknowledged that this assessment is very subjective. There may be some specific practice domains where objective scales have been applied. Objective scales can be included in this model as extensions. */ var AllergyIntoleranceSeverity; (function (AllergyIntoleranceSeverity) { AllergyIntoleranceSeverity["MILD"] = "mild"; AllergyIntoleranceSeverity["MODERATE"] = "moderate"; AllergyIntoleranceSeverity["SEVERE"] = "severe"; })(AllergyIntoleranceSeverity || (exports.AllergyIntoleranceSeverity = AllergyIntoleranceSeverity = {})); /** * proposed | pending | booked | arrived | fulfilled | cancelled | noshow | entered-in-error | checked-in | waitlist * The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status. * If the Appointment's status is "cancelled" then all participants are expected to have their calendars released for the appointment period, and as such any Slots that were marked as BUSY can be re-set to FREE. This element is labeled as a modifier because the status contains the code entered-in-error that mark the Appointment as not currently valid. */ var AppointmentStatus; (function (AppointmentStatus) { AppointmentStatus["PROPOSED"] = "proposed"; AppointmentStatus["PENDING"] = "pending"; AppointmentStatus["BOOKED"] = "booked"; AppointmentStatus["ARRIVED"] = "arrived"; AppointmentStatus["FULFILLED"] = "fulfilled"; AppointmentStatus["CANCELLED"] = "cancelled"; AppointmentStatus["NOSHOW"] = "noshow"; AppointmentStatus["ENTERED_IN_ERROR"] = "entered-in-error"; AppointmentStatus["CHECKED_IN"] = "checked-in"; AppointmentStatus["WAITLIST"] = "waitlist"; })(AppointmentStatus || (exports.AppointmentStatus = AppointmentStatus = {})); /** * required | optional | information-only * Whether this participant is required to be present at the meeting. This covers a use-case where two doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present. */ var AppointmentParticipantRequired; (function (AppointmentParticipantRequired) { AppointmentParticipantRequired["REQUIRED"] = "required"; AppointmentParticipantRequired["OPTIONAL"] = "optional"; AppointmentParticipantRequired["INFORMATION_ONLY"] = "information-only"; })(AppointmentParticipantRequired || (exports.AppointmentParticipantRequired = AppointmentParticipantRequired = {})); /** * accepted | declined | tentative | needs-action * Participation status of the actor. */ var AppointmentParticipationStatus; (function (AppointmentParticipationStatus) { AppointmentParticipationStatus["ACCEPTED"] = "accepted"; AppointmentParticipationStatus["DECLINED"] = "declined"; AppointmentParticipationStatus["TENTATIVE"] = "tentative"; AppointmentParticipationStatus["NEEDS_ACTION"] = "needs-action"; })(AppointmentParticipationStatus || (exports.AppointmentParticipationStatus = AppointmentParticipationStatus = {})); /** * accepted | declined | tentative | needs-action * Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty. * This element is labeled as a modifier because the status contains the code entered-in-error that marks the participant as not currently valid. */ var AppointmentResponseParticipantStatus; (function (AppointmentResponseParticipantStatus) { AppointmentResponseParticipantStatus["ACCEPTED"] = "accepted"; AppointmentResponseParticipantStatus["DECLINED"] = "declined"; AppointmentResponseParticipantStatus["TENTATIVE"] = "tentative"; AppointmentResponseParticipantStatus["NEEDS_ACTION"] = "needs-action"; })(AppointmentResponseParticipantStatus || (exports.AppointmentResponseParticipantStatus = AppointmentResponseParticipantStatus = {})); /** * organ | tissue | fluid | cells | biologicalAgent * Broad category of this product. */ var BiologicallyDerivedProductCategory; (function (BiologicallyDerivedProductCategory) { BiologicallyDerivedProductCategory["ORGAN"] = "organ"; BiologicallyDerivedProductCategory["TISSUE"] = "tissue"; BiologicallyDerivedProductCategory["FLUID"] = "fluid"; BiologicallyDerivedProductCategory["CELLS"] = "cells"; BiologicallyDerivedProductCategory["BIOLOGICALAGENT"] = "biologicalAgent"; })(BiologicallyDerivedProductCategory || (exports.BiologicallyDerivedProductCategory = BiologicallyDerivedProductCategory = {})); /** * available | unavailable * Whether the product is currently available. */ var BiologicallyDerivedProductStatus; (function (BiologicallyDerivedProductStatus) { BiologicallyDerivedProductStatus["AVAILABLE"] = "available"; BiologicallyDerivedProductStatus["UNAVAILABLE"] = "unavailable"; })(BiologicallyDerivedProductStatus || (exports.BiologicallyDerivedProductStatus = BiologicallyDerivedProductStatus = {})); /** * farenheit | celsius | kelvin * Temperature scale used. */ var BiologicallyDerivedProductStorageScale; (function (BiologicallyDerivedProductStorageScale) { BiologicallyDerivedProductStorageScale["FARENHEIT"] = "farenheit"; BiologicallyDerivedProductStorageScale["CELSIUS"] = "celsius"; BiologicallyDerivedProductStorageScale["KELVIN"] = "kelvin"; })(BiologicallyDerivedProductStorageScale || (exports.BiologicallyDerivedProductStorageScale = BiologicallyDerivedProductStorageScale = {})); /** * document | message | transaction | transaction-response | batch | batch-response | history | searchset | collection * Indicates the purpose of this bundle - how it is intended to be used. * It's possible to use a bundle for other purposes (e.g. a document can be accepted as a transaction). This is primarily defined so that there can be specific rules for some of the bundle types. */ var BundleType; (function (BundleType) { BundleType["DOCUMENT"] = "document"; BundleType["MESSAGE"] = "message"; BundleType["TRANSACTION"] = "transaction"; BundleType["TRANSACTION_RESPONSE"] = "transaction-response"; BundleType["BATCH"] = "batch"; BundleType["BATCH_RESPONSE"] = "batch-response"; BundleType["HISTORY"] = "history"; BundleType["SEARCHSET"] = "searchset"; BundleType["COLLECTION"] = "collection"; })(BundleType || (exports.BundleType = BundleType = {})); /** * match | include | outcome - why this is in the result set * Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process. * There is only one mode. In some corner cases, a resource may be included because it is both a match and an include. In these circumstances, 'match' takes precedence. */ var BundleSearchEntryMode; (function (BundleSearchEntryMode) { BundleSearchEntryMode["MATCH"] = "match"; BundleSearchEntryMode["INCLUDE"] = "include"; BundleSearchEntryMode["OUTCOME"] = "outcome"; })(BundleSearchEntryMode || (exports.BundleSearchEntryMode = BundleSearchEntryMode = {})); /** * GET | HEAD | POST | PUT | DELETE | PATCH * In a transaction or batch, this is the HTTP action to be executed for this entry. In a history bundle, this indicates the HTTP action that occurred. */ var BundleHTTPVerb; (function (BundleHTTPVerb) { BundleHTTPVerb["GET"] = "GET"; BundleHTTPVerb["HEAD"] = "HEAD"; BundleHTTPVerb["POST"] = "POST"; BundleHTTPVerb["PUT"] = "PUT"; BundleHTTPVerb["DELETE"] = "DELETE"; BundleHTTPVerb["PATCH"] = "PATCH"; })(BundleHTTPVerb || (exports.BundleHTTPVerb = BundleHTTPVerb = {})); /** * draft | active | retired | unknown * The status of this capability statement. Enables tracking the life-cycle of the content. * Allows filtering of capability statements that are appropriate for use versus not.This is not intended for use with actual capability statements, but where capability statements are used to describe possible or desired systems. */ var CapabilityStatementPublicationStatus; (function (CapabilityStatementPublicationStatus) { CapabilityStatementPublicationStatus["DRAFT"] = "draft"; CapabilityStatementPublicationStatus["ACTIVE"] = "active"; CapabilityStatementPublicationStatus["RETIRED"] = "retired"; CapabilityStatementPublicationStatus["UNKNOWN"] = "unknown"; })(CapabilityStatementPublicationStatus || (exports.CapabilityStatementPublicationStatus = CapabilityStatementPublicationStatus = {})); /** * instance | capability | requirements * The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase). */ var CapabilityStatementKind; (function (CapabilityStatementKind) { CapabilityStatementKind["INSTANCE"] = "instance"; CapabilityStatementKind["CAPABILITY"] = "capability"; CapabilityStatementKind["REQUIREMENTS"] = "requirements"; })(CapabilityStatementKind || (exports.CapabilityStatementKind = CapabilityStatementKind = {})); /** * client | server * Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations. */ var CapabilityStatementRestfulCapabilityMode; (function (CapabilityStatementRestfulCapabilityMode) { CapabilityStatementRestfulCapabilityMode["CLIENT"] = "client"; CapabilityStatementRestfulCapabilityMode["SERVER"] = "server"; })(CapabilityStatementRestfulCapabilityMode || (exports.CapabilityStatementRestfulCapabilityMode = CapabilityStatementRestfulCapabilityMode = {})); /** * read | vread | update | patch | delete | history-instance | history-type | create | search-type * Coded identifier of the operation, supported by the system resource. */ var CapabilityStatementTypeRestfulInteraction; (function (CapabilityStatementTypeRestfulInteraction) { CapabilityStatementTypeRestfulInteraction["READ"] = "read"; CapabilityStatementTypeRestfulInteraction["VREAD"] = "vread"; CapabilityStatementTypeRestfulInteraction["UPDATE"] = "update"; CapabilityStatementTypeRestfulInteraction["PATCH"] = "patch"; CapabilityStatementTypeRestfulInteraction["DELETE"] = "delete"; CapabilityStatementTypeRestfulInteraction["HISTORY_INSTANCE"] = "history-instance"; CapabilityStatementTypeRestfulInteraction["HISTORY_TYPE"] = "history-type"; CapabilityStatementTypeRestfulInteraction["CREATE"] = "create"; CapabilityStatementTypeRestfulInteraction["SEARCH_TYPE"] = "search-type"; })(CapabilityStatementTypeRestfulInteraction || (exports.CapabilityStatementTypeRestfulInteraction = CapabilityStatementTypeRestfulInteraction = {})); /** * no-version | versioned | versioned-update * This field is set to no-version to specify that the system does not support (server) or use (client) versioning for this resource type. If this has some other value, the server must at least correctly track and populate the versionId meta-property on resources. If the value is 'versioned-update', then the server supports all the versioning features, including using e-tags for version integrity in the API. * If a server supports versionIds correctly, it SHOULD support vread too, but is not required to do so. */ var CapabilityStatementResourceVersionPolicy; (function (CapabilityStatementResourceVersionPolicy) { CapabilityStatementResourceVersionPolicy["NO_VERSION"] = "no-version"; CapabilityStatementResourceVersionPolicy["VERSIONED"] = "versioned"; CapabilityStatementResourceVersionPolicy["VERSIONED_UPDATE"] = "versioned-update"; })(CapabilityStatementResourceVersionPolicy || (exports.CapabilityStatementResourceVersionPolicy = CapabilityStatementResourceVersionPolicy = {})); /** * not-supported | modified-since | not-match | full-support * A code that indicates how the server supports conditional read. * Conditional Read is mainly appropriate for interface engine scripts converting from other formats, such as v2. */ var CapabilityStatementConditionalReadStatus; (function (CapabilityStatementConditionalReadStatus) { CapabilityStatementConditionalReadStatus["NOT_SUPPORTED"] = "not-supported"; CapabilityStatementConditionalReadStatus["MODIFIED_SINCE"] = "modified-since"; CapabilityStatementConditionalReadStatus["NOT_MATCH"] = "not-match"; CapabilityStatementConditionalReadStatus["FULL_SUPPORT"] = "full-support"; })(CapabilityStatementConditionalReadStatus || (exports.CapabilityStatementConditionalReadStatus = CapabilityStatementConditionalReadStatus = {})); /** * not-supported | single | multiple - how conditional delete is supported * A code that indicates how the server supports conditional delete. * Conditional Delete is mainly appropriate for interface engine scripts converting from other formats, such as v2. */ var CapabilityStatementConditionalDeleteStatus; (function (CapabilityStatementConditionalDeleteStatus) { CapabilityStatementConditionalDeleteStatus["NOT_SUPPORTED"] = "not-supported"; CapabilityStatementConditionalDeleteStatus["SINGLE"] = "single"; CapabilityStatementConditionalDeleteStatus["MULTIPLE"] = "multiple"; })(CapabilityStatementConditionalDeleteStatus || (exports.CapabilityStatementConditionalDeleteStatus = CapabilityStatementConditionalDeleteStatus = {})); /** * literal | logical | resolves | enforced | local * A set of flags that defines how references are supported. */ var CapabilityStatementReferenceHandlingPolicy; (function (CapabilityStatementReferenceHandlingPolicy) { CapabilityStatementReferenceHandlingPolicy["LITERAL"] = "literal"; CapabilityStatementReferenceHandlingPolicy["LOGICAL"] = "logical"; CapabilityStatementReferenceHandlingPolicy["RESOLVES"] = "resolves"; CapabilityStatementReferenceHandlingPolicy["ENFORCED"] = "enforced"; CapabilityStatementReferenceHandlingPolicy["LOCAL"] = "local"; })(CapabilityStatementReferenceHandlingPolicy || (exports.CapabilityStatementReferenceHandlingPolicy = CapabilityStatementReferenceHandlingPolicy = {})); /** * number | date | string | token | reference | composite | quantity | uri | special * The type of value a search parameter refers to, and how the cont