This page is part of the FHIR Core Extensions Registry (v1.0.0: Releases) based on FHIR v5.0.0. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions
Page standards status: Trial-use | Maturity Level: 1 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="MessageHeader5to4"/>
<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/MessageHeader5to4'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'MessageHeader5to4'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for MessageHeader: R5 to R4'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>
<b>conceptmap</b><span style="color: navy"> "</span>ResponseType<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R5/codesystem-response-code.html" title="Response Type">http://hl7.org/fhir/response-code</a><span style="color: navy">"
</span><b> prefix </b>t<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4/codesystem-response-code.html" title="ResponseType">http://hl7.org/fhir/4.0/response-code</a><span style="color: navy">"
</span>
s<span style="color: navy">:</span>ok <b>-</b> t<span style="color: navy">:</span>ok
s<span style="color: navy">:</span>"transient-error" <b>-</b> t<span style="color: navy">:</span><span style="color: navy">"</span>transient-error<span style="color: navy">"</span>
s<span style="color: navy">:</span>"fatal-error" <b>-</b> t<span style="color: navy">:</span><span style="color: navy">"</span>fatal-error<span style="color: navy">"</span>
<span style="color: navy">}
</span><b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R5/messageheader.html" title="MessageHeader">http://hl7.org/fhir/StructureDefinition/MessageHeader</a><span style="color: navy">" </span><b>alias </b>MessageHeaderR5 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R4/messageheader.html" title="MessageHeader">http://hl7.org/fhir/4.0/StructureDefinition/MessageHeader</a><span style="color: navy">" </span><b>alias </b>MessageHeaderR4 <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*5to4<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>MessageHeaderR5, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>MessageHeaderR4<span style="color: navy">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style="color: navy"> {
</span> src.event<span style="color: navy"> : </span>Coding<span style="color: navy"><b> -> </b></span>tgt.event<span style="color: navy">;</span>
src.event<span style="color: navy"> : </span>canonical<span style="color: navy"><b> -> </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> -> </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> -> </b></span>tgt.sender<span style="color: navy">;</span>
src.author<span style="color: navy"><b> -> </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> -> </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> -> </b></span>tgt.responsible<span style="color: navy">;</span>
src.reason<span style="color: navy"><b> -> </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> -> </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> -> </b></span>tgt.focus<span style="color: navy">;</span>
src.definition<span style="color: navy"><b> -> </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> -> </b></span>tgt.endpoint<span style="color: navy">;</span>
src.endpoint<span style="color: navy"> : </span>Reference<span style="color: navy"><b> -> </b></span>tgt.endpoint<span style="color: navy">;</span>
src.name<span style="color: navy"><b> -> </b></span>tgt.name<span style="color: navy">;</span>
src.target<span style="color: navy"><b> -> </b></span>tgt.target<span style="color: navy">;</span>
src.receiver<span style="color: navy"><b> -> </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> -> </b></span>tgt.endpoint<span style="color: navy">;</span>
src.endpoint<span style="color: navy"> : </span>Reference<span style="color: navy"><b> -> </b></span>tgt.endpoint<span style="color: navy">;</span>
src.name<span style="color: navy"><b> -> </b></span>tgt.name<span style="color: navy">;</span>
src.software<span style="color: navy"><b> -> </b></span>tgt.software<span style="color: navy">;</span>
src.version<span style="color: navy"><b> -> </b></span>tgt.version<span style="color: navy">;</span>
src.contact<span style="color: navy"><b> -> </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> -> </b></span><span style="color: maroon">tgt</span><b> as </b><span style="color: maroon">t</span><b> then</b><span style="color: navy"> {
</span> s.value<span style="color: navy"><b> -> </b></span>tgt.identifier<span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
src.code<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </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">'#ResponseType'</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> -> </b></span>tgt.details<span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<contained>
<ConceptMap>
<id value="ResponseType"/>
<status value="active"/>
<group>
<source value="http://hl7.org/fhir/response-code"/>
<target value="http://hl7.org/fhir/4.0/response-code"/>
<element>
<code value="ok"/>
<target>
<code value="ok"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="transient-error"/>
<target>
<code value="transient-error"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="fatal-error"/>
<target>
<code value="fatal-error"/>
<relationship value="related-to"/>
</target>
</element>
</group>
</ConceptMap>
</contained>
<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.extensions"/>
</extension>
</valueInteger>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
<valueCode value="trial-use">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"/>
</extension>
</valueCode>
</extension>
<url value="http://hl7.org/fhir/StructureMap/MessageHeader5to4"/>
<version value="1.0.0"/>
<name value="MessageHeader5to4"/>
<title value="FML Conversion for MessageHeader: R5 to R4"/>
<status value="active"/>
<date value="2023-03-26T08:47:34+11:00"/>
<publisher value="HL7 International / FHIR Infrastructure"/>
<contact>
<telecom>
<system value="url"/>
<value value="http://hl7.org/Special/committees/fhir-i"/>
</telecom>
</contact>
<description value="FMLConversionforMessageHeaderR5toR4"/>
<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/StructureDefinition/MessageHeader"/>
<mode value="source"/>
<alias value="MessageHeaderR5"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/4.0/StructureDefinition/MessageHeader"/>
<mode value="target"/>
<alias value="MessageHeaderR4"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*5to4"/>
<group>
<name value="MessageHeader"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="MessageHeaderR5"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="MessageHeaderR4"/>
<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="eventCanonical"/>
<source>
<context value="src"/>
<type value="canonical"/>
<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="endpointReference"/>
<source>
<context value="src"/>
<type value="Reference"/>
<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="endpointReference"/>
<source>
<context value="src"/>
<type value="Reference"/>
<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>
<variable value="t"/>
<transform value="copy"/>
<parameter>
<valueId value="tgt"/>
</parameter>
</target>
<rule>
<name value="value"/>
<source>
<context value="s"/>
<element value="value"/>
<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>
<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="#ResponseType"/>
</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>
IG © 2022+ HL7 International / FHIR Infrastructure. Package hl7.fhir.uv.extensions#1.0.0 based on FHIR 5.0.0. Generated 2023-03-26
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change