HL7 Version 2 to FHIR
1.0.0-ballot - ballot International flag

HL7 Version 2 to FHIR, published by HL7 International / Orders and Observations. This guide is not an authorized publication; it is the continuous build for version 1.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/v2-to-fhir/ and changes regularly. See the Directory of published versions

: Message ADT_A02 to Bundle Map - XML Representation

Active as of 2024-04-24

Raw xml | Download



<ConceptMap xmlns="http://hl7.org/fhir">
  <id value="message-adt-a02-to-bundle"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: ConceptMap message-adt-a02-to-bundle</b></p><a name="message-adt-a02-to-bundle"> </a><a name="hcmessage-adt-a02-to-bundle"> </a><a name="message-adt-a02-to-bundle-en-US"> </a><p>Mapping from ADT_A02 to <a href="http://hl7.org/fhir/R4/bundle.html">Bundle</a></p><p>ACTIVE (not intended for production usage). Published on 2024-04-24 by HL7 International / Orders and Observations  (HL7 Orders and Observations Workgroup: <a href="http://www.hl7.org/Special/committees/orders">http://www.hl7.org/Special/com...</a>, Keith W. Boone: <a href="mailto:kboone@ainq.com">kboone@ainq.com</a>, Rob Hausam: <a href="mailto:rrhausam@gmail.com">rrhausam@gmail.com</a>). Copyright (c) 2020, HL7 International, Inc., All Rights Reserved.</p><div><p>This ConceptMap represents a mapping from the HL7 V2 Message ADT_A02 to the FHIR Message Bundle.</p>
</div><br/><p><b>Group 1 </b>Mapping from <code>unspecified code system</code> to <code>unspecified code system</code></p><table class="grid"><tr><td colspan="4"><b>Source Concept Details</b></td><td><b>Relationship</b></td><td colspan="5"><b>Target Concept Details</b></td><td><b>Comment</b></td><td colspan="5"><b>Properties</b></td></tr><tr><td colspan="2"><b>Codes</b> from </td><td><b>segmentmap</b></td><td><b>references</b></td><td/><td colspan="2"><b>Codes</b> from </td><td><b>narrative</b></td><td><b>antlr</b></td><td><b>fhirpath</b></td><td/></tr><tr><td style="border-right-width: 0px">ADT_A02.MSH</td><td style="border-left-width: 0px">Message Header</td><td>MSH[Bundle]</td><td/><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Bundle</td><td style="border-left-width: 0px">Bundle</td><td/><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ADT_A02.MSH</td><td style="border-left-width: 0px">Message Header</td><td>MSH[MessageHeader]</td><td/><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">MessageHeader[1]</td><td style="border-left-width: 0px">MessageHeader[1]</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">ADT_A02.MSH</td><td style="border-left-width: 0px">Message Header</td><td>MSH[Provenance-Source]</td><td>Provenance[1].target.reference=Bundle.id; Provenance[1].target.reference=MessageHeader[1].id</td><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Provenance[1]</td><td style="border-left-width: 0px">Provenance[1]</td><td>If there is a source in MSH-4, or known based on the configuration.</td><td/><td/><td>If the FHIR transformation does not yield a FHIR message, but only a set of resource (APIs, repository, etc.) than one should consider attaching this Proviance resource instance to the relevant FHIR resources generated.</td></tr><tr><td style="border-right-width: 0px">ADT_A02.MSH</td><td style="border-left-width: 0px">Message Header</td><td>MSH[Provenance-Transformation]</td><td>Provenance[2].target.reference=Bundle.id</td><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Provenance[2]</td><td style="border-left-width: 0px">Provenance[2]</td><td/><td/><td/><td>If the FHIR transformation does not yield a FHIR Bunlde, but only a set of resource (APIs, repository, etc.) than one should consider attaching this Provenance resource instance to the relevant FHIR resources generated.</td></tr><tr><td style="border-right-width: 0px">ADT_A02.SFT</td><td style="border-left-width: 0px">Software Segment</td><td>SFT[Device]</td><td>Provenance[1].entity.what.reference=Device.id
Provenance[1].entity.role=&quot;derivation&quot;\</td><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Provenance[1].entity.what(Device)</td><td style="border-left-width: 0px">Provenance[1].entity.what(Device)</td><td>If the software does represent not the original source system</td><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ADT_A02.SFT</td><td style="border-left-width: 0px">Software Segment</td><td>SFT[Device]</td><td>Provenance[1].entity.what.reference=Device.id
Provenance[1].entity.role=&quot;source&quot;\</td><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Provenance[1].entity.what(Device)</td><td style="border-left-width: 0px">Provenance[1].entity.what(Device)</td><td>If the software represents the original source system</td><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ADT_A02.EVN</td><td style="border-left-width: 0px">Event Type</td><td>EVN[Provenance]</td><td>Provenance[3].target.reference=MessageHeader[1].id</td><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Provenance[3]</td><td style="border-left-width: 0px">Provenance[3]</td><td/><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ADT_A02.EVN</td><td style="border-left-width: 0px">Event Type</td><td>MSH[Provenance-Operator]</td><td>Provenance[3].target.reference=MessageHeader[1].id</td><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Provenance[3]</td><td style="border-left-width: 0px">Provenance[3]</td><td/><td>IF EVN-5 NOT VALUED AND (MSH-22 IS VALUED OR MSH-4 IS VALUED)</td><td/><td>If EVN-5 is not valued, then the MSH may have either the sending responsible organization (MSH-22) or the sending facility (MSH-4) to reasonable approximate the agent relevant for this Provenance instance.</td></tr><tr><td style="border-right-width: 0px">ADT_A02.PID</td><td style="border-left-width: 0px">Patient Identification</td><td>PID[Patient]</td><td/><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Patient[1]</td><td style="border-left-width: 0px">Patient[1]</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">ADT_A02.PID</td><td style="border-left-width: 0px">Patient Identification</td><td>PID[Account]</td><td>Account.subject.reference=Patient[1].id</td><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Account</td><td style="border-left-width: 0px">Account</td><td/><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ADT_A02.PID</td><td style="border-left-width: 0px">Patient Identification</td><td>PID[Provenance-Patient]</td><td>Provenance.target.reference=Patient[1].id</td><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Provenance[4]</td><td style="border-left-width: 0px">Provenance[4]</td><td>One  may drop PID-33 from the condition if PID-34 Last Update Facility is still sufficient without a date.</td><td>IF PID-33 AND PID-34 VALUED</td><td/><td/></tr><tr><td style="border-right-width: 0px">ADT_A02.PD1</td><td style="border-left-width: 0px">Additional Demographics</td><td>PD1[Patient]</td><td/><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Patient[1]</td><td style="border-left-width: 0px">Patient[1]</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">ADT_A02:follow:PID.ROL</td><td style="border-left-width: 0px">Role</td><td>ROL[Patient-GeneralPractitioner]</td><td/><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Patient[1]</td><td style="border-left-width: 0px">Patient[1]</td><td/><td>IF ROL-3.1 EQUALS &quot;PP&quot; AND ROL-3.3 EQUALS &quot;HL70443&quot;</td><td>(element(&quot;3.1&quot;)=&quot;PP&quot;)and(element(&quot;3.3&quot;)=&quot;HL70443&quot;)</td><td/></tr><tr><td style="border-right-width: 0px">ADT_A02:follow:PID.ROL</td><td style="border-left-width: 0px">Role</td><td>ROL[CareTeam]</td><td>CareTeam[1].subject.reference=Patient[1].id</td><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">CareTeam[1]</td><td style="border-left-width: 0px">CareTeam[1]</td><td>When the ROL includes entries with roles in Table HL70443 other than &quot;PP&quot;, then they may be candidates for CareTeam, but not all.  That is implementation specific.</td><td>IF ROL-3.3 EQUALS &quot;HL70443&quot; AND ROL-3.1 IS NOT &quot;PP&quot;</td><td>(element(&quot;3.1&quot;)!=&quot;PP&quot;)or(element(&quot;3.3&quot;)!=&quot;HL70443&quot;)</td><td/></tr><tr><td style="border-right-width: 0px">ADT_A02:follow:PID.PRT</td><td style="border-left-width: 0px">Participation</td><td>PRT[Patient-GeneralPractitioner-Practitioner]</td><td/><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Patient[1]</td><td style="border-left-width: 0px">Patient[1]</td><td/><td>IF PRT-4 IS &quot;PP&quot;</td><td/><td/></tr><tr><td style="border-right-width: 0px">ADT_A02:follow:PID.PRT</td><td style="border-left-width: 0px">Participation</td><td>PRT[CareTeam]</td><td>CareTeam[1].subject.reference=Patient[1].id</td><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">CareTeam[1]</td><td style="border-left-width: 0px">CareTeam[1]</td><td/><td>IF PRT-4 IS IN (&quot;AD&quot;, &quot;AP&quot;, &quot;ARI&quot;, &quot;AT&quot;, &quot;CP&quot;, &quot;FHCP&quot;, &quot;OP&quot;, &quot;PH&quot;, &quot;PP&quot;, &quot;PRI&quot;, &quot;RP&quot;, &quot;RT&quot;, &quot;VP&quot;, &quot;PO&quot;)</td><td/><td/></tr><tr><td style="border-right-width: 0px">ADT_A02.PV1</td><td style="border-left-width: 0px">Patient Visit</td><td>PV1[Encounter]</td><td>Encounter[1].subject.reference=Patient[1].id</td><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Encounter[1]</td><td style="border-left-width: 0px">Encounter[1]</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">ADT_A02.PV1</td><td style="border-left-width: 0px">Patient Visit</td><td>PV1[Patient]</td><td/><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Patient[1]</td><td style="border-left-width: 0px">Patient[1]</td><td/><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ADT_A02.PV2</td><td style="border-left-width: 0px">Patient Visit - Additional Info.</td><td>PV2[Encounter]</td><td/><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Encounter[1]</td><td style="border-left-width: 0px">Encounter[1]</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">ADT_A02:follow:PV1.ROL</td><td style="border-left-width: 0px">Role</td><td>ROL[Encounter-PractitionerRole]</td><td/><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Encounter[1]</td><td style="border-left-width: 0px">Encounter[1]</td><td/><td/><td/><td/></tr><tr><td style="border-right-width: 0px">ADT_A02.OBSERVATION.OBX</td><td style="border-left-width: 0px">Observation/Result</td><td>OBX[Observation]</td><td>Observation[3].subject.reference=Patient[1].id</td><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Observation[3]</td><td style="border-left-width: 0px">Observation[3]</td><td>Based on profiles, such as Vital Signs, certain observations are represented on the Observation, while others on its components.  No computable guidance available yet.</td><td/><td/><td>One cannot determine whether this observation made during the PV1/PV2 communicated above, or from a prior visit/stay. It is therefore up to the implementer whether to populate Observation.encounter.reference with the Encounter[1].id or not.  Only when the ADT message involves an event before the encounter occurs, e.g., the intiial registration, it is clear that the observation is NOT associated with Encounter[1].</td></tr><tr><td style="border-right-width: 0px">ADT_A02.OBSERVATION.OBX</td><td style="border-left-width: 0px">Observation/Result</td><td>OBX[Observation-Component]</td><td>Observation[3].subject.reference=Patient[1].id</td><td><a href="http://hl7.org/fhir/extensions/5.1.0/CodeSystem-concept-map-equivalence.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">Observation[3]</td><td style="border-left-width: 0px">Observation[3]</td><td>Based on profiles, such as Vital Signs, certain observations are represented on the Observation, while others on its components.  No computable guidance available yet.</td><td/><td/><td>One cannot determine whether this observation made during the PV1/PV2 communicated above, or from a prior visit/stay. It is therefore up to the implementer whether to populate Observation.encounter.reference with the Encounter[1].id or not.  Only when the ADT message involves an event before the encounter occurs, e.g., the intiial registration, it is clear that the observation is NOT associated with Encounter[1].</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 ADT:A02 to Bundle.fsh"/>
    </extension>
    <extension url="url">
      <valueUri
                value="https://docs.google.com/spreadsheets/d/1BY-JEvMz5f22Tq489SdiWWEW-PqltTODb6JJVejjqTY/edit#gid=0"/>
    </extension>
  </extension>
  <url value="http://hl7.org/fhir/uv/v2mappings/message-adt-a02-to-bundle"/>
  <version value="1.0.0-ballot"/>
  <name value="MessageADT_A02ToBundle"/>
  <title value="Message ADT_A02 to Bundle Map"/>
  <status value="active"/>
  <experimental value="true"/>
  <date value="2024-04-24"/>
  <publisher value="HL7 International / Orders and Observations"/>
  <contact>
    <name value="HL7 Orders and Observations Workgroup"/>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/orders"/>
    </telecom>
  </contact>
  <contact>
    <name value="Keith W. Boone"/>
    <telecom>
      <system value="email"/>
      <value value="kboone@ainq.com"/>
    </telecom>
  </contact>
  <contact>
    <name value="Rob Hausam"/>
    <telecom>
      <system value="email"/>
      <value value="rrhausam@gmail.com"/>
    </telecom>
  </contact>
  <description
               value="This ConceptMap represents a mapping from the HL7 V2 Message ADT_A02 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="ADT_A02"/>
  <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="ADT_A02.MSH"/>
      <display value="Message Header"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <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="ADT_A02.MSH"/>
      <display value="Message Header"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <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="ADT_A02.MSH"/>
      <display value="Message Header"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="Provenance[1]"/>
        <display value="Provenance[1]"/>
        <equivalence value="equivalent"/>
        <comment
                 value="If the FHIR transformation does not yield a FHIR message, but only a set of resource (APIs, repository, etc.) than one should consider attaching this Proviance resource instance to the relevant FHIR resources generated."/>
        <dependsOn>
          <property value="segment-map"/>
          <value value="MSH[Provenance-Source]"/>
        </dependsOn>
        <dependsOn>
          <property value="references"/>
          <value
                 value="Provenance[1].target.reference=Bundle.id; Provenance[1].target.reference=MessageHeader[1].id"/>
        </dependsOn>
        <product>
          <property value="narrative"/>
          <value
                 value="If there is a source in MSH-4, or known based on the configuration."/>
        </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="ADT_A02.MSH"/>
      <display value="Message Header"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="Provenance[2]"/>
        <display value="Provenance[2]"/>
        <equivalence value="equivalent"/>
        <comment
                 value="If the FHIR transformation does not yield a FHIR Bunlde, but only a set of resource (APIs, repository, etc.) than one should consider attaching this Provenance resource instance to the relevant FHIR resources generated."/>
        <dependsOn>
          <property value="segment-map"/>
          <value value="MSH[Provenance-Transformation]"/>
        </dependsOn>
        <dependsOn>
          <property value="references"/>
          <value value="Provenance[2].target.reference=Bundle.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="ADT_A02.SFT"/>
      <display value="Software Segment"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="Provenance[1].entity.what(Device)"/>
        <display value="Provenance[1].entity.what(Device)"/>
        <equivalence value="equivalent"/>
        <dependsOn>
          <property value="segment-map"/>
          <value value="SFT[Device]"/>
        </dependsOn>
        <dependsOn>
          <property value="references"/>
          <value
                 value="Provenance[1].entity.what.reference=Device.id
Provenance[1].entity.role=&quot;derivation&quot;\"/>
        </dependsOn>
        <product>
          <property value="narrative"/>
          <value
                 value="If the software does represent not the original source system"/>
        </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="ADT_A02.SFT"/>
      <display value="Software Segment"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="Provenance[1].entity.what(Device)"/>
        <display value="Provenance[1].entity.what(Device)"/>
        <equivalence value="equivalent"/>
        <dependsOn>
          <property value="segment-map"/>
          <value value="SFT[Device]"/>
        </dependsOn>
        <dependsOn>
          <property value="references"/>
          <value
                 value="Provenance[1].entity.what.reference=Device.id
Provenance[1].entity.role=&quot;source&quot;\"/>
        </dependsOn>
        <product>
          <property value="narrative"/>
          <value
                 value="If the software represents the original source system"/>
        </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="ADT_A02.EVN"/>
      <display value="Event Type"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="Provenance[3]"/>
        <display value="Provenance[3]"/>
        <equivalence value="equivalent"/>
        <dependsOn>
          <property value="segment-map"/>
          <value value="EVN[Provenance]"/>
        </dependsOn>
        <dependsOn>
          <property value="references"/>
          <value value="Provenance[3].target.reference=MessageHeader[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="ADT_A02.EVN"/>
      <display value="Event Type"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="Provenance[3]"/>
        <display value="Provenance[3]"/>
        <equivalence value="equivalent"/>
        <comment
                 value="If EVN-5 is not valued, then the MSH may have either the sending responsible organization (MSH-22) or the sending facility (MSH-4) to reasonable approximate the agent relevant for this Provenance instance."/>
        <dependsOn>
          <property value="segment-map"/>
          <value value="MSH[Provenance-Operator]"/>
        </dependsOn>
        <dependsOn>
          <property value="references"/>
          <value value="Provenance[3].target.reference=MessageHeader[1].id"/>
        </dependsOn>
        <product>
          <property value="antlr"/>
          <value
                 value="IF EVN-5 NOT VALUED AND (MSH-22 IS VALUED OR MSH-4 IS VALUED)"/>
        </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="ADT_A02.PID"/>
      <display value="Patient Identification"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <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="1"/>
        </extension>
        <extension url="cardinalityMax">
          <valueInteger value="1"/>
        </extension>
      </extension>
      <code value="ADT_A02.PID"/>
      <display value="Patient Identification"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="Account"/>
        <display value="Account"/>
        <equivalence value="equivalent"/>
        <dependsOn>
          <property value="segment-map"/>
          <value value="PID[Account]"/>
        </dependsOn>
        <dependsOn>
          <property value="references"/>
          <value value="Account.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="ADT_A02.PID"/>
      <display value="Patient Identification"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="Provenance[4]"/>
        <display value="Provenance[4]"/>
        <equivalence value="equivalent"/>
        <dependsOn>
          <property value="segment-map"/>
          <value value="PID[Provenance-Patient]"/>
        </dependsOn>
        <dependsOn>
          <property value="references"/>
          <value value="Provenance.target.reference=Patient[1].id"/>
        </dependsOn>
        <product>
          <property value="antlr"/>
          <value value="IF PID-33 AND PID-34 VALUED"/>
        </product>
        <product>
          <property value="narrative"/>
          <value
                 value="One  may drop PID-33 from the condition if PID-34 Last Update Facility is still sufficient without a date."/>
        </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="ADT_A02.PD1"/>
      <display value="Additional Demographics"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <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="0"/>
        </extension>
        <extension url="cardinalityMax">
          <valueInteger value="-1"/>
        </extension>
      </extension>
      <code value="ADT_A02:follow:PID.ROL"/>
      <display value="Role"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="Patient[1]"/>
        <display value="Patient[1]"/>
        <equivalence value="equivalent"/>
        <dependsOn>
          <property value="segment-map"/>
          <value value="ROL[Patient-GeneralPractitioner]"/>
        </dependsOn>
        <product>
          <property value="antlr"/>
          <value
                 value="IF ROL-3.1 EQUALS &quot;PP&quot; AND ROL-3.3 EQUALS &quot;HL70443&quot;"/>
        </product>
        <product>
          <property value="fhirpath"/>
          <value
                 value="(element(&quot;3.1&quot;)=&quot;PP&quot;)and(element(&quot;3.3&quot;)=&quot;HL70443&quot;)"/>
        </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="ADT_A02:follow:PID.ROL"/>
      <display value="Role"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="CareTeam[1]"/>
        <display value="CareTeam[1]"/>
        <equivalence value="equivalent"/>
        <dependsOn>
          <property value="segment-map"/>
          <value value="ROL[CareTeam]"/>
        </dependsOn>
        <dependsOn>
          <property value="references"/>
          <value value="CareTeam[1].subject.reference=Patient[1].id"/>
        </dependsOn>
        <product>
          <property value="antlr"/>
          <value
                 value="IF ROL-3.3 EQUALS &quot;HL70443&quot; AND ROL-3.1 IS NOT &quot;PP&quot;"/>
        </product>
        <product>
          <property value="fhirpath"/>
          <value
                 value="(element(&quot;3.1&quot;)!=&quot;PP&quot;)or(element(&quot;3.3&quot;)!=&quot;HL70443&quot;)"/>
        </product>
        <product>
          <property value="narrative"/>
          <value
                 value="When the ROL includes entries with roles in Table HL70443 other than &quot;PP&quot;, then they may be candidates for CareTeam, but not all.  That is implementation specific."/>
        </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="ADT_A02:follow:PID.PRT"/>
      <display value="Participation"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="Patient[1]"/>
        <display value="Patient[1]"/>
        <equivalence value="equivalent"/>
        <dependsOn>
          <property value="segment-map"/>
          <value value="PRT[Patient-GeneralPractitioner-Practitioner]"/>
        </dependsOn>
        <product>
          <property value="antlr"/>
          <value value="IF PRT-4 IS &quot;PP&quot;"/>
        </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="ADT_A02:follow:PID.PRT"/>
      <display value="Participation"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="CareTeam[1]"/>
        <display value="CareTeam[1]"/>
        <equivalence value="equivalent"/>
        <dependsOn>
          <property value="segment-map"/>
          <value value="PRT[CareTeam]"/>
        </dependsOn>
        <dependsOn>
          <property value="references"/>
          <value value="CareTeam[1].subject.reference=Patient[1].id"/>
        </dependsOn>
        <product>
          <property value="antlr"/>
          <value
                 value="IF PRT-4 IS IN (&quot;AD&quot;, &quot;AP&quot;, &quot;ARI&quot;, &quot;AT&quot;, &quot;CP&quot;, &quot;FHCP&quot;, &quot;OP&quot;, &quot;PH&quot;, &quot;PP&quot;, &quot;PRI&quot;, &quot;RP&quot;, &quot;RT&quot;, &quot;VP&quot;, &quot;PO&quot;)"/>
        </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="ADT_A02.PV1"/>
      <display value="Patient Visit"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="Encounter[1]"/>
        <display value="Encounter[1]"/>
        <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[1].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="ADT_A02.PV1"/>
      <display value="Patient Visit"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <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="ADT_A02.PV2"/>
      <display value="Patient Visit - Additional Info."/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="Encounter[1]"/>
        <display value="Encounter[1]"/>
        <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="0"/>
        </extension>
        <extension url="cardinalityMax">
          <valueInteger value="-1"/>
        </extension>
      </extension>
      <code value="ADT_A02:follow:PV1.ROL"/>
      <display value="Role"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="Encounter[1]"/>
        <display value="Encounter[1]"/>
        <equivalence value="equivalent"/>
        <dependsOn>
          <property value="segment-map"/>
          <value value="ROL[Encounter-PractitionerRole]"/>
        </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="ADT_A02.OBSERVATION.OBX"/>
      <display value="Observation/Result"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="Observation[3]"/>
        <display value="Observation[3]"/>
        <equivalence value="equivalent"/>
        <comment
                 value="One cannot determine whether this observation made during the PV1/PV2 communicated above, or from a prior visit/stay. It is therefore up to the implementer whether to populate Observation.encounter.reference with the Encounter[1].id or not.  Only when the ADT message involves an event before the encounter occurs, e.g., the intiial registration, it is clear that the observation is NOT associated with Encounter[1]."/>
        <dependsOn>
          <property value="segment-map"/>
          <value value="OBX[Observation]"/>
        </dependsOn>
        <dependsOn>
          <property value="references"/>
          <value value="Observation[3].subject.reference=Patient[1].id"/>
        </dependsOn>
        <product>
          <property value="narrative"/>
          <value
                 value="Based on profiles, such as Vital Signs, certain observations are represented on the Observation, while others on its components.  No computable guidance available yet."/>
        </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="ADT_A02.OBSERVATION.OBX"/>
      <display value="Observation/Result"/>
      <target>
        <modifierExtension
                           url="http://hl7.org/fhir/1.0/StructureDefinition/extension-ConceptMap.element.target.equivalence">
          <valueCode value="equivalent"/>
        </modifierExtension>
        <code value="Observation[3]"/>
        <display value="Observation[3]"/>
        <equivalence value="equivalent"/>
        <comment
                 value="One cannot determine whether this observation made during the PV1/PV2 communicated above, or from a prior visit/stay. It is therefore up to the implementer whether to populate Observation.encounter.reference with the Encounter[1].id or not.  Only when the ADT message involves an event before the encounter occurs, e.g., the intiial registration, it is clear that the observation is NOT associated with Encounter[1]."/>
        <dependsOn>
          <property value="segment-map"/>
          <value value="OBX[Observation-Component]"/>
        </dependsOn>
        <dependsOn>
          <property value="references"/>
          <value value="Observation[3].subject.reference=Patient[1].id"/>
        </dependsOn>
        <product>
          <property value="narrative"/>
          <value
                 value="Based on profiles, such as Vital Signs, certain observations are represented on the Observation, while others on its components.  No computable guidance available yet."/>
        </product>
      </target>
    </element>
  </group>
</ConceptMap>