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
Page standards status: Draft | Maturity Level: 1 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="MessageHeader3to2"/>
<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/MessageHeader3to2'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'MessageHeader3to2'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'MessageHeader Transforms: R3 to R2'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>
<b>uses</b><span style="color: navy"> "</span>http://hl7.org/fhir/3.0/MessageHeader<span style="color: navy">" </span><b>alias </b>MessageHeader <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span>http://hl7.org/fhir/1.0/MessageHeader<span style="color: navy">" </span><b>alias </b>MessageHeaderR2 <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*3to2<span style="color: navy">"
</span>
<b>group </b>MessageHeader<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>MessageHeader, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>MessageHeaderR2<span style="color: navy">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style="color: navy"> {
</span> src.timestamp<span style="color: navy"><b> -> </b></span>tgt.timestamp <i>"MessageHeader-timestamp"</i><span style="color: navy">;</span>
src.event<span style="color: navy"><b> -> </b></span>tgt.event <i>"MessageHeader-event"</i><span style="color: navy">;</span>
src.response<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -> </b></span>tgt.response<b> as </b><span style="color: maroon">vt0</span><b> then </b>mshResponse<span style="color: navy">(</span><span style="color: maroon">vs0</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span> <i>"MessageHeader-response"</i><span style="color: navy">;</span>
src.source<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -> </b></span>tgt.source<b> as </b><span style="color: maroon">vt0</span><b> then </b>mshSource<span style="color: navy">(</span><span style="color: maroon">vs0</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span> <i>"MessageHeader-source"</i><span style="color: navy">;</span>
src.destination<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -> </b></span>tgt.destination<b> as </b><span style="color: maroon">vt0</span><b> then </b>mshDestination<span style="color: navy">(</span><span style="color: maroon">vs0</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span> <i>"MessageHeader-destination"</i><span style="color: navy">;</span>
src.enterer<span style="color: navy"><b> -> </b></span>tgt.enterer <i>"MessageHeader-enterer"</i><span style="color: navy">;</span>
src.author<span style="color: navy"><b> -> </b></span>tgt.author <i>"MessageHeader-author"</i><span style="color: navy">;</span>
src.receiver<span style="color: navy"><b> -> </b></span>tgt.receiver <i>"MessageHeader-receiver"</i><span style="color: navy">;</span>
src.responsible<span style="color: navy"><b> -> </b></span>tgt.responsible <i>"MessageHeader-responsible"</i><span style="color: navy">;</span>
src.reason<span style="color: navy"><b> -> </b></span>tgt.reason <i>"MessageHeader-reason"</i><span style="color: navy">;</span>
src.focus<span style="color: navy"><b> -> </b></span>tgt.data <i>"MessageHeader-data"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>mshResponse<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<span style="color: navy"><b> -> </b></span>tgt.identifier <i>"response-identifier"</i><span style="color: navy">;</span>
src.code<span style="color: navy"><b> -> </b></span>tgt.code <i>"response-code"</i><span style="color: navy">;</span>
src.details<span style="color: navy"><b> -> </b></span>tgt.details <i>"response-details"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>mshSource<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.name<span style="color: navy"><b> -> </b></span>tgt.name <i>"source-name"</i><span style="color: navy">;</span>
src.software<span style="color: navy"><b> -> </b></span>tgt.software <i>"source-software"</i><span style="color: navy">;</span>
src.version<span style="color: navy"><b> -> </b></span>tgt.version <i>"source-version"</i><span style="color: navy">;</span>
src.contact<span style="color: navy"><b> -> </b></span>tgt.contact <i>"source-contact"</i><span style="color: navy">;</span>
src.endpoint<span style="color: navy"><b> -> </b></span>tgt.endpoint <i>"source-endpoint"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>mshDestination<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.name<span style="color: navy"><b> -> </b></span>tgt.name <i>"source-name"</i><span style="color: navy">;</span>
src.target<span style="color: navy"><b> -> </b></span>tgt.target <i>"source-target"</i><span style="color: navy">;</span>
src.endpoint<span style="color: navy"><b> -> </b></span>tgt.endpoint <i>"source-endpoint"</i><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/MessageHeader3to2"/>
<version value="0.1.0"/>
<name value="MessageHeader3to2"/>
<title value="MessageHeader Transforms: R3 to R2"/>
<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="MessageHeaderTransformsR3toR2"/>
<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/3.0/MessageHeader"/>
<mode value="source"/>
<alias value="MessageHeader"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/1.0/MessageHeader"/>
<mode value="target"/>
<alias value="MessageHeaderR2"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*3to2"/>
<group>
<name value="MessageHeader"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="MessageHeader"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="MessageHeaderR2"/>
<mode value="target"/>
</input>
<rule>
<name value="MessageHeader-timestamp"/>
<source>
<context value="src"/>
<element value="timestamp"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="timestamp"/>
<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="MessageHeader-event"/>
<source>
<context value="src"/>
<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="MessageHeader-response"/>
<source>
<context value="src"/>
<element value="response"/>
<variable value="vs0"/>
</source>
<target>
<context value="tgt"/>
<element value="response"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="mshResponse"/>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="MessageHeader-source"/>
<source>
<context value="src"/>
<element value="source"/>
<variable value="vs0"/>
</source>
<target>
<context value="tgt"/>
<element value="source"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="mshSource"/>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="MessageHeader-destination"/>
<source>
<context value="src"/>
<element value="destination"/>
<variable value="vs0"/>
</source>
<target>
<context value="tgt"/>
<element value="destination"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="mshDestination"/>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="MessageHeader-enterer"/>
<source>
<context value="src"/>
<element value="enterer"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="enterer"/>
<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="MessageHeader-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="MessageHeader-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>
<rule>
<name value="MessageHeader-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="MessageHeader-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="MessageHeader-data"/>
<source>
<context value="src"/>
<element value="focus"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="data"/>
<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="mshResponse"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="response-identifier"/>
<source>
<context value="src"/>
<element value="identifier"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="identifier"/>
<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-code"/>
<source>
<context value="src"/>
<element value="code"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="code"/>
<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-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>
<group>
<name value="mshSource"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="source-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="source-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="source-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="source-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>
<rule>
<name value="source-endpoint"/>
<source>
<context value="src"/>
<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>
</group>
<group>
<name value="mshDestination"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="source-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="source-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="source-endpoint"/>
<source>
<context value="src"/>
<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>
</group>
</StructureMap>