HL7 Version 2 to FHIR
1.0.0 - STU 1

HL7 Version 2 to FHIR - Downloaded Version 1.0.0 See the Directory of published versions

## : Segment MSH [Source] to Provenance Map - XML Representation

Page standards status: Informative

Raw xml | Download

    <ConceptMap xmlns="http://hl7.org/fhir">
      <id value="segment-msh-source-to-provenance"/>
      <text>
        <status value="generated"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: ConceptMap segment-msh-source-to-provenance</b></p><a name="segment-msh-source-to-provenance"> </a><a name="hcsegment-msh-source-to-provenance"> </a><p>Mapping from (not specified) to (not specified)</p><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="2"><b>Target Concept Details</b></td><td><b>Comment</b></td></tr><tr><td colspan="2"><b>Codes</b> from </td><td><b>NarrativeCondition</b></td><td><b>ComputableANTLR</b></td><td/><td colspan="2"><b>Codes</b> from </td><td/></tr><tr><td style="border-right-width: 0px">MSH</td><td style="border-left-width: 0px"/><td>when you hold on to/persist the v2 message in a data store</td><td/><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">entity[1].what(DocumentReference.content.attachment.url)</td><td style="border-left-width: 0px">entity[1].what(DocumentReference.content.attachment.url)</td><td>If there is an interest in holding to the original message by the recipient</td></tr><tr><td style="border-right-width: 0px">MSH</td><td style="border-left-width: 0px"/><td>when you do not hold on to/persist the v2 message in a data store</td><td/><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">entity[1].what(DocumentReference.content.attachment.data)</td><td style="border-left-width: 0px">entity[1].what(DocumentReference.content.attachment.data)</td><td>If there is an interest in holding to the original message by the recipient</td></tr><tr><td style="border-right-width: 0px">MSH</td><td style="border-left-width: 0px"/><td>when you do not hold on to/persist the v2 message in a data store</td><td/><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">entity[1].what(DocumentReference.status)</td><td style="border-left-width: 0px">entity[1].what(DocumentReference.status)</td><td>If there is an interest in holding to the original message by the recipient</td></tr><tr><td style="border-right-width: 0px">MSH</td><td style="border-left-width: 0px"/><td/><td/><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">entity[1].role</td><td style="border-left-width: 0px">entity[1].role</td><td/></tr><tr><td style="border-right-width: 0px">MSH-3</td><td style="border-left-width: 0px">Sending Application</td><td/><td>IF MSH-3 AND MSH-24 VALUED</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">entity[2].what(Device.identifier)</td><td style="border-left-width: 0px">entity[2].what(Device.identifier)</td><td/></tr><tr><td style="border-right-width: 0px">MSH-3</td><td style="border-left-width: 0px">Sending Application</td><td/><td>IF MSH-3 AND MSH-24 VALUED</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">entity[2].role</td><td style="border-left-width: 0px">entity[2].role</td><td/></tr><tr><td style="border-right-width: 0px">MSH-4</td><td style="border-left-width: 0px">Sending Facility</td><td/><td>IF MSH-22 NOT VALUED</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">agent[1].who(Organization)</td><td style="border-left-width: 0px">agent[1].who(Organization)</td><td/></tr><tr><td style="border-right-width: 0px">MSH-4</td><td style="border-left-width: 0px">Sending Facility</td><td/><td>IF MSH-22 NOT VALUED</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">agent[1].type.coding.code</td><td style="border-left-width: 0px">agent[1].type.coding.code</td><td/></tr><tr><td style="border-right-width: 0px">MSH-4</td><td style="border-left-width: 0px">Sending Facility</td><td/><td>IF MSH-22 NOT VALUED</td><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">agent[1].type.coding.system</td><td style="border-left-width: 0px">agent[1].type.coding.system</td><td/></tr><tr><td style="border-right-width: 0px">MSH-7</td><td style="border-left-width: 0px">Date/Time of Message</td><td/><td/><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">recorded</td><td style="border-left-width: 0px">recorded</td><td>We note that this could have been mapped to the Provenance.occurred[x] attribute, but since Provenance.recorded is required and these two times are virtually the same, we opted to map to Provenance.recorded.</td></tr><tr><td style="border-right-width: 0px">MSH-7</td><td style="border-left-width: 0px">Date/Time of Message</td><td/><td/><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">occurred</td><td style="border-left-width: 0px">occurred</td><td/></tr><tr><td style="border-right-width: 0px">MSH-9</td><td style="border-left-width: 0px">Message Type</td><td/><td/><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">activity.coding.display</td><td style="border-left-width: 0px">activity.coding.display</td><td/></tr><tr><td style="border-right-width: 0px">MSH-22</td><td style="border-left-width: 0px">Sending Responsible Organization</td><td/><td/><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">agent[2].who(Organization)</td><td style="border-left-width: 0px">agent[2].who(Organization)</td><td/></tr><tr><td style="border-right-width: 0px">MSH-22</td><td style="border-left-width: 0px">Sending Responsible Organization</td><td/><td/><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">agent[2].type.coding.code</td><td style="border-left-width: 0px">agent[2].type.coding.code</td><td/></tr><tr><td style="border-right-width: 0px">MSH-22</td><td style="border-left-width: 0px">Sending Responsible Organization</td><td/><td/><td><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html#equivalent" title="equivalent">is equivalent to</a></td><td style="border-right-width: 0px">agent[2].type.coding.system</td><td style="border-left-width: 0px">agent[2].type.coding.system</td><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="Segment MSH[Source] to Provenance.fsh"/>
        </extension>
        <extension url="url">
          <valueUri
                    value="https://docs.google.com/spreadsheets/d/1F5aYk6tFCYTQd_qEaEc5G85ZcCm98R5B-sq2JGqUagk/edit#gid=0"/>
        </extension>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
        <valueCode value="oo"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="informative">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
            <valueCanonical
                            value="http://hl7.org/fhir/uv/v2mappings/ImplementationGuide/hl7.fhir.uv.v2mappings"/>
          </extension>
        </valueCode>
      </extension>
      <url
           value="http://hl7.org/fhir/uv/v2mappings/ConceptMap/segment-msh-source-to-provenance"/>
      <version value="1.0.0"/>
      <name value="SegmentMSHSourceToProvenance"/>
      <title value="Segment MSH [Source] to Provenance Map"/>
      <status value="active"/>
      <experimental value="true"/>
      <date value="2025-08-25"/>
      <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>
      <description
                   value="This ConceptMap represents a mapping from the HL7 V2 Segment MSH to the FHIR Provenance Resource."/>
      <jurisdiction>
        <coding>
          <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
          <code value="001"/>
        </coding>
      </jurisdiction>
      <copyright
                 value="Copyright (c) 2025, HL7 International, Inc., All Rights Reserved."/>
      <group>
        <element>
          <code value="MSH"/>
          <target>
            <code
                  value="entity[1].what(DocumentReference.content.attachment.url)"/>
            <display
                     value="entity[1].what(DocumentReference.content.attachment.url)"/>
            <equivalence value="equivalent"/>
            <comment
                     value="If there is an interest in holding to the original message by the recipient"/>
            <dependsOn>
              <property value="Narrative-Condition"/>
              <value
                     value="when you hold on to/persist the v2 message in a data store"/>
            </dependsOn>
          </target>
        </element>
        <element>
          <code value="MSH"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="assignment">
                <valueString value="/v2.txt or v2.xml into base 64/"/>
              </extension>
            </extension>
            <code
                  value="entity[1].what(DocumentReference.content.attachment.data)"/>
            <display
                     value="entity[1].what(DocumentReference.content.attachment.data)"/>
            <equivalence value="equivalent"/>
            <comment
                     value="If there is an interest in holding to the original message by the recipient"/>
            <dependsOn>
              <property value="Narrative-Condition"/>
              <value
                     value="when you do not hold on to/persist the v2 message in a data store"/>
            </dependsOn>
          </target>
        </element>
        <element>
          <code value="MSH"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="assignment">
                <valueString value="&quot;current&quot;"/>
              </extension>
            </extension>
            <code value="entity[1].what(DocumentReference.status)"/>
            <display value="entity[1].what(DocumentReference.status)"/>
            <equivalence value="equivalent"/>
            <comment
                     value="If there is an interest in holding to the original message by the recipient"/>
            <dependsOn>
              <property value="Narrative-Condition"/>
              <value
                     value="when you do not hold on to/persist the v2 message in a data store"/>
            </dependsOn>
          </target>
        </element>
        <element>
          <code value="MSH"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="assignment">
                <valueString value="&quot;source&quot;"/>
              </extension>
            </extension>
            <code value="entity[1].role"/>
            <display value="entity[1].role"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="HD"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="MSH-3"/>
          <display value="Sending Application"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="Reference(Device)"/>
              </extension>
            </extension>
            <code value="entity[2].what(Device.identifier)"/>
            <display value="entity[2].what(Device.identifier)"/>
            <equivalence value="equivalent"/>
            <dependsOn>
              <property value="Computable-ANTLR"/>
              <value value="IF MSH-3 AND MSH-24 VALUED"/>
            </dependsOn>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="HD"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="MSH-3"/>
          <display value="Sending Application"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="code"/>
              </extension>
              <extension url="assignment">
                <valueString value="&quot;source&quot;"/>
              </extension>
            </extension>
            <code value="entity[2].role"/>
            <display value="entity[2].role"/>
            <equivalence value="equivalent"/>
            <dependsOn>
              <property value="Computable-ANTLR"/>
              <value value="IF MSH-3 AND MSH-24 VALUED"/>
            </dependsOn>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="HD"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="MSH-4"/>
          <display value="Sending Facility"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="Reference(Organization)"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="1"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
            </extension>
            <code value="agent[1].who(Organization)"/>
            <display value="agent[1].who(Organization)"/>
            <equivalence value="equivalent"/>
            <dependsOn>
              <property value="Computable-ANTLR"/>
              <value value="IF MSH-22 NOT VALUED"/>
            </dependsOn>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="HD"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="MSH-4"/>
          <display value="Sending Facility"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="code"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="0"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
              <extension url="assignment">
                <valueString value="&quot;author&quot;"/>
              </extension>
            </extension>
            <code value="agent[1].type.coding.code"/>
            <display value="agent[1].type.coding.code"/>
            <equivalence value="equivalent"/>
            <dependsOn>
              <property value="Computable-ANTLR"/>
              <value value="IF MSH-22 NOT VALUED"/>
            </dependsOn>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="HD"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="MSH-4"/>
          <display value="Sending Facility"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="uri"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="0"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
              <extension url="assignment">
                <valueString
                             value="&quot;http://terminology.hl7.org/CodeSystem/provenance-participant-type&quot;"/>
              </extension>
            </extension>
            <code value="agent[1].type.coding.system"/>
            <display value="agent[1].type.coding.system"/>
            <equivalence value="equivalent"/>
            <dependsOn>
              <property value="Computable-ANTLR"/>
              <value value="IF MSH-22 NOT VALUED"/>
            </dependsOn>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="DTM"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="MSH-7"/>
          <display value="Date/Time of Message"/>
          <target>
            <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="recorded"/>
            <display value="recorded"/>
            <equivalence value="equivalent"/>
            <comment
                     value="We note that this could have been mapped to the Provenance.occurred[x] attribute, but since Provenance.recorded is required and these two times are virtually the same, we opted to map to Provenance.recorded."/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="DTM"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="MSH-7"/>
          <display value="Date/Time of Message"/>
          <target>
            <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="occurred"/>
            <display value="occurred"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="MSG"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="MSH-9"/>
          <display value="Message Type"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="string"/>
              </extension>
              <extension url="assignment">
                <valueString
                             value="&quot;message - &quot;+MSG.1+&quot;^&quot;+MSG.2+&quot;^&quot;+MSG.3"/>
              </extension>
            </extension>
            <code value="activity.coding.display"/>
            <display value="activity.coding.display"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="XON"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="MSH-22"/>
          <display value="Sending Responsible Organization"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="Reference(Organization)"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="1"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
            </extension>
            <code value="agent[2].who(Organization)"/>
            <display value="agent[2].who(Organization)"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="XON"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="MSH-22"/>
          <display value="Sending Responsible Organization"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="code"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="0"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
              <extension url="assignment">
                <valueString value="&quot;author&quot;"/>
              </extension>
            </extension>
            <code value="agent[2].type.coding.code"/>
            <display value="agent[2].type.coding.code"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
        <element>
          <extension
                     url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
            <extension url="type">
              <valueCode value="XON"/>
            </extension>
            <extension url="cardinalityMin">
              <valueInteger value="1"/>
            </extension>
            <extension url="cardinalityMax">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <code value="MSH-22"/>
          <display value="Sending Responsible Organization"/>
          <target>
            <extension
                       url="http://hl7.org/fhir/uv/v2mappings/StructureDefinition/TypeInfo">
              <extension url="type">
                <valueCode value="uri"/>
              </extension>
              <extension url="cardinalityMin">
                <valueInteger value="0"/>
              </extension>
              <extension url="cardinalityMax">
                <valueInteger value="1"/>
              </extension>
              <extension url="assignment">
                <valueString
                             value="&quot;http://terminology.hl7.org/CodeSystem/provenance-participant-type&quot;"/>
              </extension>
            </extension>
            <code value="agent[2].type.coding.system"/>
            <display value="agent[2].type.coding.system"/>
            <equivalence value="equivalent"/>
          </target>
        </element>
      </group>
    </ConceptMap>