FHIR Cross-Version Mapping Pack
0.1.0 - Ballot for Release 5.1.0 International flag

FHIR Cross-Version Mapping Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-cross-version/ and changes regularly. See the Directory of published versions

: MessageHeader Transforms: R4 to R5 - XML Representation

Page standards status: Draft Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="MessageHeader4to5"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><pre class="fml">
<span style="color: #cc00cc">/// <b>url</b> = </span><span style="color: blue">'http://hl7.org/fhir/StructureMap/MessageHeader4to5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'MessageHeader4to5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'MessageHeader Transforms: R4 to R5'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>

<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/4.0/MessageHeader<span style="color: navy">&quot; </span><b>alias </b>MessageHeaderR4 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/5.0/MessageHeader<span style="color: navy">&quot; </span><b>alias </b>MessageHeaderR5 <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*4to5<span style="color: navy">&quot;
</span>
<b>group </b>MessageHeader<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>MessageHeaderR4, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>MessageHeaderR5<span style="color: navy">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.event<span style="color: navy"> : </span>Coding<span style="color: navy"><b> -&gt; </b></span>tgt.event<span style="color: navy">;</span>
  src.event<span style="color: navy"> : </span>uri<span style="color: navy"><b> -&gt; </b></span>tgt.event<span style="color: navy">;</span>
  src.destination<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.destination<b> as </b><span style="color: maroon">t</span><b> then </b>MessageHeaderDestination<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.sender<span style="color: navy"><b> -&gt; </b></span>tgt.sender<span style="color: navy">;</span>
  src.author<span style="color: navy"><b> -&gt; </b></span>tgt.author<span style="color: navy">;</span>
  src.source<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.source<b> as </b><span style="color: maroon">t</span><b> then </b>MessageHeaderSource<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.responsible<span style="color: navy"><b> -&gt; </b></span>tgt.responsible<span style="color: navy">;</span>
  src.reason<span style="color: navy"><b> -&gt; </b></span>tgt.reason<span style="color: navy">;</span>
  src.response<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.response<b> as </b><span style="color: maroon">t</span><b> then </b>MessageHeaderResponse<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.focus<span style="color: navy"><b> -&gt; </b></span>tgt.focus<span style="color: navy">;</span>
  src.definition<span style="color: navy"><b> -&gt; </b></span>tgt.definition<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>MessageHeaderDestination<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.endpoint<span style="color: navy"> : </span>url<span style="color: navy"><b> -&gt; </b></span>tgt.endpoint<span style="color: navy">;</span>
  src.name<span style="color: navy"><b> -&gt; </b></span>tgt.name<span style="color: navy">;</span>
  src.target<span style="color: navy"><b> -&gt; </b></span>tgt.target<span style="color: navy">;</span>
  src.receiver<span style="color: navy"><b> -&gt; </b></span>tgt.receiver<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>MessageHeaderSource<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.endpoint<span style="color: navy"> : </span>url<span style="color: navy"><b> -&gt; </b></span>tgt.endpoint<span style="color: navy">;</span>
  src.name<span style="color: navy"><b> -&gt; </b></span>tgt.name<span style="color: navy">;</span>
  src.software<span style="color: navy"><b> -&gt; </b></span>tgt.software<span style="color: navy">;</span>
  src.version<span style="color: navy"><b> -&gt; </b></span>tgt.version<span style="color: navy">;</span>
  src.contact<span style="color: navy"><b> -&gt; </b></span>tgt.contact<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>MessageHeaderResponse<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.identifier<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span> tgt.identifier = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Identifier'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.value = <span style="color: maroon">s</span><span style="color: navy">;</span>
  src.code<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.code = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'http://hl7.org/fhir/ConceptMap/MessageHeader.response.code-R4toR5'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.details<span style="color: navy"><b> -&gt; </b></span>tgt.details<span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir"/>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
        <valueCanonical
                        value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"/>
      </extension>
    </valueInteger>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="draft">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
        <valueCanonical
                        value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"/>
      </extension>
    </valueCode>
  </extension>
  <url value="http://hl7.org/fhir/StructureMap/MessageHeader4to5"/>
  <version value="0.1.0"/>
  <name value="MessageHeader4to5"/>
  <title value="MessageHeader Transforms: R4 to R5"/>
  <status value="active"/>
  <date value="2024-02-22T03:16:50+00:00"/>
  <publisher value="HL7 International / FHIR Infrastructure"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/fiwg"/>
    </telecom>
  </contact>
  <description value="MessageHeaderTransformsR4toR5"/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
    </coding>
  </jurisdiction>
  <structure>
    <url value="http://hl7.org/fhir/4.0/MessageHeader"/>
    <mode value="source"/>
    <alias value="MessageHeaderR4"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/5.0/MessageHeader"/>
    <mode value="target"/>
    <alias value="MessageHeaderR5"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*4to5"/>
  <group>
    <name value="MessageHeader"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="MessageHeaderR4"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="MessageHeaderR5"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="eventCoding"/>
      <source>
        <context value="src"/>
        <type value="Coding"/>
        <element value="event"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="event"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="eventUri"/>
      <source>
        <context value="src"/>
        <type value="uri"/>
        <element value="event"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="event"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="destination"/>
      <source>
        <context value="src"/>
        <element value="destination"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="destination"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="MessageHeaderDestination"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="sender"/>
      <source>
        <context value="src"/>
        <element value="sender"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="sender"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="author"/>
      <source>
        <context value="src"/>
        <element value="author"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="author"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="source"/>
      <source>
        <context value="src"/>
        <element value="source"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="source"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="MessageHeaderSource"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="responsible"/>
      <source>
        <context value="src"/>
        <element value="responsible"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="responsible"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="reason"/>
      <source>
        <context value="src"/>
        <element value="reason"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="reason"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="response"/>
      <source>
        <context value="src"/>
        <element value="response"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="response"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="MessageHeaderResponse"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="focus"/>
      <source>
        <context value="src"/>
        <element value="focus"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="focus"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="definition"/>
      <source>
        <context value="src"/>
        <element value="definition"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="definition"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="MessageHeaderDestination"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="endpointUrl"/>
      <source>
        <context value="src"/>
        <type value="url"/>
        <element value="endpoint"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="endpoint"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="name"/>
      <source>
        <context value="src"/>
        <element value="name"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="name"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="target"/>
      <source>
        <context value="src"/>
        <element value="target"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="target"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="receiver"/>
      <source>
        <context value="src"/>
        <element value="receiver"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="receiver"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="MessageHeaderSource"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="endpointUrl"/>
      <source>
        <context value="src"/>
        <type value="url"/>
        <element value="endpoint"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="endpoint"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="name"/>
      <source>
        <context value="src"/>
        <element value="name"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="name"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="software"/>
      <source>
        <context value="src"/>
        <element value="software"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="software"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="version"/>
      <source>
        <context value="src"/>
        <element value="version"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="version"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="contact"/>
      <source>
        <context value="src"/>
        <element value="contact"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="contact"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="MessageHeaderResponse"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="identifier"/>
      <source>
        <context value="src"/>
        <element value="identifier"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="identifier"/>
        <variable value="t"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Identifier"/>
        </parameter>
      </target>
      <target>
        <context value="t"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="code"/>
      <source>
        <context value="src"/>
        <element value="code"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="code"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString
                       value="http://hl7.org/fhir/ConceptMap/MessageHeader.response.code-R4toR5"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="details"/>
      <source>
        <context value="src"/>
        <element value="details"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="details"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
  </group>
</StructureMap>