This page is part of the HL7 Version 2 to FHIR (v0.1.0: STU 1 Ballot 1) based on FHIR R4. . For a full list of available versions, see the Directory of published versions
<ConceptMap xmlns="http://hl7.org/fhir"> <id value="message-orm-o01-to-bundle"/> <text> <status value="extensions"/> <div xmlns="http://www.w3.org/1999/xhtml"><h2>MessageORM_O01toBundle (http://hl7.org/fhir/uv/v2mappings/message-orm-o01-to-bundle)</h2><p>Mapping from ORM_O01 to <a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></p><p>ACTIVE (not intended for production usage). Published on 2020-08-12 by HL7 International (HL7 Orders and Observations Workgroup: <a href="http://hl7.org/Special/committees/orders/index.cfm">http://hl7.org/Special/committ...</a>, Keith W. Boone: <a href="mailto:kboone@ainq.com">kboone@ainq.com</a>). Copyright (c) 2020, HL7 International, Inc., All Rights Reserved.</p><div><p>This ConceptMap represents a mapping from the HL7 V2 Message ORM_O01 to the FHIR Message Bundle.</p> </div><br/><table class="grid"><tr><td colspan="4"><b>Source Concept Details</b></td><td><b>Relationship</b></td><td colspan="5"><b>Destination Concept Details</b></td><td><b>Comment</b></td></tr><tr><td colspan="2"><b>Code</b> from </td><td><b>Code</b> from </td><td><b>Code</b> from </td><td/><td colspan="2"><b>Code</b> from </td><td><b>Code</b> from </td><td><b>Code</b> from </td><td><b>Code</b> from </td><td/></tr><tr><td style="border-right-width: 0px">ORM_O01.MSH</td><td style="border-left-width: 0px"></td><td>MSH[Bundle]</td><td/><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Bundle</td><td style="border-left-width: 0px"></td><td/><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ORM_O01.MSH</td><td style="border-left-width: 0px"></td><td>MSH[MessageHeader]</td><td/><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">MessageHeader[1]</td><td style="border-left-width: 0px"></td><td/><td/><td/><td>Processing of the MSH segment results in the creation of a new MessageHeader resource</td></tr><tr><td style="border-right-width: 0px">ORM_O01.MSH</td><td style="border-left-width: 0px"></td><td>MSH[Provenance]</td><td>Provenance.target=Bundle; Provenance.target=MessageHeader[MSH]</td><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Provenance[1]</td><td style="border-left-width: 0px"></td><td/><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ORM_O01.MSH</td><td style="border-left-width: 0px"></td><td>MSH[Task]</td><td/><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Task[1]</td><td style="border-left-width: 0px"></td><td/><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ORM_O01.PATIENT.PID</td><td style="border-left-width: 0px"></td><td>PID[Patient]</td><td/><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Patient[1]</td><td style="border-left-width: 0px"></td><td/><td/><td/><td>Processing of the PID segment results in the creation of a new Patient resource</td></tr><tr><td style="border-right-width: 0px">ORM_O01.PATIENT.PD1</td><td style="border-left-width: 0px"></td><td>PD1[Patient]</td><td/><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Patient[1]</td><td style="border-left-width: 0px"></td><td/><td/><td/><td>Incorporate PD1 content into the Patient created from the PID segment.</td></tr><tr><td style="border-right-width: 0px">ORM_O01.PATIENT.VISIT.PV1</td><td style="border-left-width: 0px"></td><td>PV1[Encounter]</td><td>Encounter.subject.reference=Patient[1].id</td><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Encounter</td><td style="border-left-width: 0px"></td><td/><td/><td/><td>Processing of the PV1 segment results in the creation of a new Encounter resource</td></tr><tr><td style="border-right-width: 0px">ORM_O01.PATIENT.VISIT.PV1</td><td style="border-left-width: 0px"></td><td>PV1[Patient]</td><td/><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Patient[1]</td><td style="border-left-width: 0px"></td><td/><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ORM_O01.PATIENT.VISIT.PV2</td><td style="border-left-width: 0px"></td><td>PV2[Encounter]</td><td/><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Encounter</td><td style="border-left-width: 0px"></td><td/><td/><td/><td>Incorporate PV2 content into the Encounter created from the PV1 segment.</td></tr><tr><td style="border-right-width: 0px">ORM_O01.PATIENT.INSURANCE.IN1</td><td style="border-left-width: 0px"></td><td>IN1[Coverage]</td><td>Coverage.subscriber.reference=Patient[1].id</td><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Coverage</td><td style="border-left-width: 0px"></td><td/><td/><td/><td>Processing of the IN1 segment results in the creation of a new Coverage resource</td></tr><tr><td style="border-right-width: 0px">ORM_O01.PATIENT.INSURANCE.IN2</td><td style="border-left-width: 0px"></td><td>IN2[Coverage]</td><td/><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Coverage</td><td style="border-left-width: 0px"></td><td/><td/><td/><td>Incorporate IN2 content into the Coverage created from the IN1 segment.</td></tr><tr><td style="border-right-width: 0px">ORM_O01.PATIENT.INSURANCE.IN3</td><td style="border-left-width: 0px"></td><td>IN3[Coverage]</td><td/><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Coverage</td><td style="border-left-width: 0px"></td><td/><td/><td/><td>Incorporate IN3 content into the Coverage created from the IN1 segment.</td></tr><tr><td style="border-right-width: 0px">ORM_O01.PATIENT.AL1</td><td style="border-left-width: 0px"></td><td>AL1</td><td>AllergyIntolerance.patient.reference=Patient[1].id</td><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">AllergyIntolerance</td><td style="border-left-width: 0px"></td><td/><td/><td/><td>Processing of the AL1 segment results in the creation of a new AllergyIntolerance resource</td></tr><tr><td style="border-right-width: 0px">ORM_O01.ORDER.ORC</td><td style="border-left-width: 0px"></td><td>ORC[ServiceRequest]</td><td>ServiceRequest.subject.reference=Patient[1].id</td><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">ServiceRequest[1]</td><td style="border-left-width: 0px"></td><td/><td/><td/><td>Processing of each ORC segment results in the creation of a new ServiceRequest resource</td></tr><tr><td style="border-right-width: 0px">ORM_O01.ORDER.ORC</td><td style="border-left-width: 0px"></td><td>ORC[Task-New Order]</td><td>Task.basedOn.reference=ServiceRequest[1].id; Task.encounter.reference=Encounter[1].id; Task.for.reference=Patient[1].id; Task.reasonReference=Condition[1]id; Task.insurance.reference=Coverage[1].id</td><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Task[1]</td><td style="border-left-width: 0px"></td><td>IF ORC.1 EQUALS "NW"</td><td>ORC.element("1")="NW"</td><td>If the receiving system should perform the order</td><td>Processing of each ORC segment results in the creation of a new Task resource which is linked back to the ServiceRequest created for the same ORC segment. =*= The creation of a Task resource and its inclusion in the FHIR bundle should only happen when the receiving system is responsible for fulfillment of the ServiceRequest. Other systems may receive notification of the order, but should not receive a Task Resource if they are not the intended filler system.</td></tr><tr><td style="border-right-width: 0px">ORM_O01.ORDER.ORC</td><td style="border-left-width: 0px"></td><td>ORC[Task-CancelOrder]</td><td>Task.basedOn.reference=ServiceRequest[1].id; Task.encounter.reference=Encounter[1].id; Task.for.reference=Patient[1].id; Task.reasonReference=Condition[1].id; Task.insurance.reference=Coverage[1].id</td><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Task[1]</td><td style="border-left-width: 0px"></td><td>IF ORC.1 EQUALS "OC"</td><td>ORC.element("1")="OC"</td><td/><td/></tr><tr><td style="border-right-width: 0px">ORM_O01.ORDER.ORC</td><td style="border-left-width: 0px"></td><td>ORC[Provenance]</td><td>Provenance.target=ServiceRequest[ORC]</td><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Provenance</td><td style="border-left-width: 0px"></td><td/><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ORM_O01.ORDER_DETAIL.CHOICE.OBR</td><td style="border-left-width: 0px"></td><td>OBR[ServiceRequest]</td><td/><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">ServiceRequest[1]</td><td style="border-left-width: 0px"></td><td>IF PID VALUED</td><td/><td/><td>Incorporate OBR content into the ServiceRequest created from the ORC segment in the same segment group.</td></tr><tr><td style="border-right-width: 0px">ORM_O01.ORDER_DETAIL.CHOICE.OBR</td><td style="border-left-width: 0px"></td><td>OBR[ServiceRequest]</td><td/><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">SupplyRequest[1]</td><td style="border-left-width: 0px"></td><td>IF PID NOT VALUED</td><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ORM_O01.ORDER_DETAIL.CHOICE.RXO</td><td style="border-left-width: 0px"></td><td>RXO[MedicationRequest]</td><td/><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">MedicationRequest</td><td style="border-left-width: 0px"></td><td/><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ORM_O01.ORDER_DETAIL.CHOICE.ODS</td><td style="border-left-width: 0px"></td><td/><td/><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">SupplyRequest</td><td style="border-left-width: 0px"></td><td>IF PID NOT VALUED</td><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ORM_O01.ORDER_DETAIL.NTE</td><td style="border-left-width: 0px"></td><td>NTE[Annotation]</td><td/><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">ServiceRequest[1].note</td><td style="border-left-width: 0px"></td><td/><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ORM_O01.ORDER_DETAIL.DG1</td><td style="border-left-width: 0px"></td><td>DG1[Condition]</td><td>ServiceRequest[1].reasonReference(Condition.subject.reference=Patient[1].id)</td><td><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html#equivalent">is equivalent to</a></td><td style="border-right-width: 0px">ServiceRequest[1].reasonReference(Condition)</td><td style="border-left-width: 0px"></td><td/><td/><td/><td>Processing of the DG1 segment results in the creation of a new Condition resource which is referenced in the ServiceRequest created by the ORC segment</td></tr></table></div> </text> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/RelatedArtifact"> <extension url="type"> <valueCode value="derived-from"/> </extension> <extension url="label"> <valueString value="Message ORM:O01 to Bundle.fsh"/> </extension> <extension url="url"> <valueUri value="https://docs.google.com/spreadsheets/d/19C2jjzXZ8D7Um1iB-e6NmLfZVPvyZNkgwU8IxCJiwGs/edit#gid=0"/> </extension> </extension> <url value="http://hl7.org/fhir/uv/v2mappings/message-orm-o01-to-bundle"/> <version value="0.1.0"/> <name value="MessageORM_O01toBundle"/> <status value="active"/> <experimental value="true"/> <date value="2020-08-12"/> <publisher value="HL7 International"/> <contact> <name value="HL7 Orders and Observations Workgroup"/> <telecom> <system value="url"/> <value value="http://hl7.org/Special/committees/orders/index.cfm"/> </telecom> </contact> <contact> <name value="Keith W. Boone"/> <telecom> <system value="email"/> <value value="kboone@ainq.com"/> </telecom> </contact> <description value="This ConceptMap represents a mapping from the HL7 V2 Message ORM_O01 to the FHIR Message Bundle."/> <jurisdiction> <coding> <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/> <code value="001"/> </coding> </jurisdiction> <copyright value="Copyright (c) 2020, HL7 International, Inc., All Rights Reserved."/> <sourceUri value="ORM_O01"/> <targetUri value="Bundle"/> <group> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="1"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.MSH"/> <display value="Message Header"/> <target> <code value="Bundle"/> <display value="Bundle"/> <equivalence value="equivalent"/> <dependsOn> <property value="segment-map"/> <value value="MSH[Bundle]"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="1"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.MSH"/> <display value="Message Header"/> <target> <code value="MessageHeader[1]"/> <display value="MessageHeader[1]"/> <equivalence value="equivalent"/> <comment value="Processing of the MSH segment results in the creation of a new MessageHeader resource"/> <dependsOn> <property value="segment-map"/> <value value="MSH[MessageHeader]"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="1"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.MSH"/> <display value="Message Header"/> <target> <code value="Provenance[1]"/> <display value="Provenance[1]"/> <equivalence value="equivalent"/> <dependsOn> <property value="segment-map"/> <value value="MSH[Provenance]"/> </dependsOn> <dependsOn> <property value="references"/> <value value="Provenance.target=Bundle; Provenance.target=MessageHeader[MSH]"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="1"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.MSH"/> <display value="Message Header"/> <target> <code value="Task[1]"/> <display value="Task[1]"/> <equivalence value="equivalent"/> <dependsOn> <property value="segment-map"/> <value value="MSH[Task]"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="1"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.PATIENT.PID"/> <display value="Patient Identification"/> <target> <code value="Patient[1]"/> <display value="Patient[1]"/> <equivalence value="equivalent"/> <comment value="Processing of the PID segment results in the creation of a new Patient resource"/> <dependsOn> <property value="segment-map"/> <value value="PID[Patient]"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="0"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.PATIENT.PD1"/> <display value="Additional Demographics"/> <target> <code value="Patient[1]"/> <display value="Patient[1]"/> <equivalence value="equivalent"/> <comment value="Incorporate PD1 content into the Patient created from the PID segment."/> <dependsOn> <property value="segment-map"/> <value value="PD1[Patient]"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="1"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.PATIENT.VISIT.PV1"/> <display value="Patient Visit"/> <target> <code value="Encounter"/> <display value="Encounter"/> <equivalence value="equivalent"/> <comment value="Processing of the PV1 segment results in the creation of a new Encounter resource"/> <dependsOn> <property value="segment-map"/> <value value="PV1[Encounter]"/> </dependsOn> <dependsOn> <property value="references"/> <value value="Encounter.subject.reference=Patient[1].id"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="1"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.PATIENT.VISIT.PV1"/> <display value="Patient Visit"/> <target> <code value="Patient[1]"/> <display value="Patient[1]"/> <equivalence value="equivalent"/> <dependsOn> <property value="segment-map"/> <value value="PV1[Patient]"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="0"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.PATIENT.VISIT.PV2"/> <display value="Patient Visit- Additional Info"/> <target> <code value="Encounter"/> <display value="Encounter"/> <equivalence value="equivalent"/> <comment value="Incorporate PV2 content into the Encounter created from the PV1 segment."/> <dependsOn> <property value="segment-map"/> <value value="PV2[Encounter]"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="1"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.PATIENT.INSURANCE.IN1"/> <display value="Insurance"/> <target> <code value="Coverage"/> <display value="Coverage"/> <equivalence value="equivalent"/> <comment value="Processing of the IN1 segment results in the creation of a new Coverage resource"/> <dependsOn> <property value="segment-map"/> <value value="IN1[Coverage]"/> </dependsOn> <dependsOn> <property value="references"/> <value value="Coverage.subscriber.reference=Patient[1].id"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="0"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.PATIENT.INSURANCE.IN2"/> <display value="Insurance Additional Info"/> <target> <code value="Coverage"/> <display value="Coverage"/> <equivalence value="equivalent"/> <comment value="Incorporate IN2 content into the Coverage created from the IN1 segment."/> <dependsOn> <property value="segment-map"/> <value value="IN2[Coverage]"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="0"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.PATIENT.INSURANCE.IN3"/> <display value="Insurance Add'l Info – Cert."/> <target> <code value="Coverage"/> <display value="Coverage"/> <equivalence value="equivalent"/> <comment value="Incorporate IN3 content into the Coverage created from the IN1 segment."/> <dependsOn> <property value="segment-map"/> <value value="IN3[Coverage]"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="0"/> </extension> <extension url="cardinalityMax"> <valueInteger value="-1"/> </extension> </extension> <code value="ORM_O01.PATIENT.AL1"/> <display value="Allergy Information"/> <target> <code value="AllergyIntolerance"/> <display value="AllergyIntolerance"/> <equivalence value="equivalent"/> <comment value="Processing of the AL1 segment results in the creation of a new AllergyIntolerance resource"/> <dependsOn> <property value="segment-map"/> <value value="AL1"/> </dependsOn> <dependsOn> <property value="references"/> <value value="AllergyIntolerance.patient.reference=Patient[1].id"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="1"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.ORDER.ORC"/> <display value="Common Order"/> <target> <code value="ServiceRequest[1]"/> <display value="ServiceRequest[1]"/> <equivalence value="equivalent"/> <comment value="Processing of each ORC segment results in the creation of a new ServiceRequest resource"/> <dependsOn> <property value="segment-map"/> <value value="ORC[ServiceRequest]"/> </dependsOn> <dependsOn> <property value="references"/> <value value="ServiceRequest.subject.reference=Patient[1].id"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="1"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.ORDER.ORC"/> <display value="Common Order"/> <target> <code value="Task[1]"/> <display value="Task[1]"/> <equivalence value="equivalent"/> <comment value="Processing of each ORC segment results in the creation of a new Task resource which is linked back to the ServiceRequest created for the same ORC segment. =*= The creation of a Task resource and its inclusion in the FHIR bundle should only happen when the receiving system is responsible for fulfillment of the ServiceRequest. Other systems may receive notification of the order, but should not receive a Task Resource if they are not the intended filler system."/> <dependsOn> <property value="segment-map"/> <value value="ORC[Task-New Order]"/> </dependsOn> <dependsOn> <property value="references"/> <value value="Task.basedOn.reference=ServiceRequest[1].id; Task.encounter.reference=Encounter[1].id; Task.for.reference=Patient[1].id; Task.reasonReference=Condition[1]id; Task.insurance.reference=Coverage[1].id"/> </dependsOn> <product> <property value="antlr"/> <value value="IF ORC.1 EQUALS "NW""/> </product> <product> <property value="fhirpath"/> <value value="ORC.element("1")="NW""/> </product> <product> <property value="narrative"/> <value value="If the receiving system should perform the order"/> </product> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="1"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.ORDER.ORC"/> <display value="Common Order"/> <target> <code value="Task[1]"/> <display value="Task[1]"/> <equivalence value="equivalent"/> <dependsOn> <property value="segment-map"/> <value value="ORC[Task-CancelOrder]"/> </dependsOn> <dependsOn> <property value="references"/> <value value="Task.basedOn.reference=ServiceRequest[1].id; Task.encounter.reference=Encounter[1].id; Task.for.reference=Patient[1].id; Task.reasonReference=Condition[1].id; Task.insurance.reference=Coverage[1].id"/> </dependsOn> <product> <property value="antlr"/> <value value="IF ORC.1 EQUALS "OC""/> </product> <product> <property value="fhirpath"/> <value value="ORC.element("1")="OC""/> </product> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="1"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.ORDER.ORC"/> <display value="Common Order"/> <target> <code value="Provenance"/> <display value="Provenance"/> <equivalence value="equivalent"/> <dependsOn> <property value="segment-map"/> <value value="ORC[Provenance]"/> </dependsOn> <dependsOn> <property value="references"/> <value value="Provenance.target=ServiceRequest[ORC]"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="0"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.ORDER_DETAIL.CHOICE.OBR"/> <display value="Order Detail Segment OBR, etc."/> <target> <code value="ServiceRequest[1]"/> <display value="ServiceRequest[1]"/> <equivalence value="equivalent"/> <comment value="Incorporate OBR content into the ServiceRequest created from the ORC segment in the same segment group."/> <dependsOn> <property value="segment-map"/> <value value="OBR[ServiceRequest]"/> </dependsOn> <product> <property value="antlr"/> <value value="IF PID VALUED"/> </product> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="0"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.ORDER_DETAIL.CHOICE.OBR"/> <display value="Order Detail Segment OBR, etc."/> <target> <code value="SupplyRequest[1]"/> <display value="SupplyRequest[1]"/> <equivalence value="equivalent"/> <dependsOn> <property value="segment-map"/> <value value="OBR[ServiceRequest]"/> </dependsOn> <product> <property value="antlr"/> <value value="IF PID NOT VALUED"/> </product> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="0"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.ORDER_DETAIL.CHOICE.RXO"/> <display value="Pharmacy/Treatment Order"/> <target> <code value="MedicationRequest"/> <display value="MedicationRequest"/> <equivalence value="equivalent"/> <dependsOn> <property value="segment-map"/> <value value="RXO[MedicationRequest]"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="0"/> </extension> <extension url="cardinalityMax"> <valueInteger value="1"/> </extension> </extension> <code value="ORM_O01.ORDER_DETAIL.CHOICE.ODS"/> <display value="Dietary Orders, Supplements, and Preferences"/> <target> <code value="SupplyRequest"/> <display value="SupplyRequest"/> <equivalence value="equivalent"/> <product> <property value="antlr"/> <value value="IF PID NOT VALUED"/> </product> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="0"/> </extension> <extension url="cardinalityMax"> <valueInteger value="-1"/> </extension> </extension> <code value="ORM_O01.ORDER_DETAIL.NTE"/> <display value="Notes and Comments (for Detail)"/> <target> <code value="ServiceRequest[1].note"/> <display value="ServiceRequest[1].note"/> <equivalence value="equivalent"/> <dependsOn> <property value="segment-map"/> <value value="NTE[Annotation]"/> </dependsOn> </target> </element> <element> <extension url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo"> <extension url="cardinalityMin"> <valueInteger value="0"/> </extension> <extension url="cardinalityMax"> <valueInteger value="-1"/> </extension> </extension> <code value="ORM_O01.ORDER_DETAIL.DG1"/> <display value="Diagnosis"/> <target> <code value="ServiceRequest[1].reasonReference(Condition)"/> <display value="ServiceRequest[1].reasonReference(Condition)"/> <equivalence value="equivalent"/> <comment value="Processing of the DG1 segment results in the creation of a new Condition resource which is referenced in the ServiceRequest created by the ORC segment"/> <dependsOn> <property value="segment-map"/> <value value="DG1[Condition]"/> </dependsOn> <dependsOn> <property value="references"/> <value value="ServiceRequest[1].reasonReference(Condition.subject.reference=Patient[1].id)"/> </dependsOn> </target> </element> </group> </ConceptMap>