This page is part of the FHIR Core Extensions Registry (v5.1.0: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. This is the current published version. 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="SupplyRequest5to4B"/>
<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/SupplyRequest5to4B'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'SupplyRequest5to4B'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for SupplyRequest: R5 to R4B'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>
<b>conceptmap</b><span style="color: navy"> "</span>RequestPriority<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R5/codesystem-request-priority.html" title="RequestPriority">http://hl7.org/fhir/request-priority</a><span style="color: navy">"
</span><b> prefix </b>t<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4B/codesystem-request-priority.html" title="RequestPriority">http://hl7.org/fhir/4.3/request-priority</a><span style="color: navy">"
</span>
s<span style="color: navy">:</span>routine <b>-</b> t<span style="color: navy">:</span>routine
s<span style="color: navy">:</span>urgent <b>-</b> t<span style="color: navy">:</span>urgent
s<span style="color: navy">:</span>asap <b>-</b> t<span style="color: navy">:</span>asap
s<span style="color: navy">:</span>stat <b>-</b> t<span style="color: navy">:</span>stat
<span style="color: navy">}
</span><b>conceptmap</b><span style="color: navy"> "</span>SupplyRequestStatus<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R5/codesystem-supplyrequest-status.html" title="Supply Request Status">http://hl7.org/fhir/supplyrequest-status</a><span style="color: navy">"
</span><b> prefix </b>t<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4B/codesystem-supplyrequest-status.html" title="SupplyRequestStatus">http://hl7.org/fhir/4.3/supplyrequest-status</a><span style="color: navy">"
</span>
s<span style="color: navy">:</span>draft <b>-</b> t<span style="color: navy">:</span>draft
s<span style="color: navy">:</span>active <b>-</b> t<span style="color: navy">:</span>active
s<span style="color: navy">:</span>suspended <b>-</b> t<span style="color: navy">:</span>suspended
s<span style="color: navy">:</span>cancelled <b>-</b> t<span style="color: navy">:</span>cancelled
s<span style="color: navy">:</span>completed <b>-</b> t<span style="color: navy">:</span>completed
s<span style="color: navy">:</span>"entered-in-error" <b>-</b> t<span style="color: navy">:</span><span style="color: navy">"</span>entered-in-error<span style="color: navy">"</span>
s<span style="color: navy">:</span>unknown <b>-</b> t<span style="color: navy">:</span>unknown
<span style="color: navy">}
</span><b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R5/supplyrequest.html" title="SupplyRequest">http://hl7.org/fhir/StructureDefinition/SupplyRequest</a><span style="color: navy">" </span><b>alias </b>SupplyRequestR5 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R4B/supplyrequest.html" title="SupplyRequest">http://hl7.org/fhir/4.3/StructureDefinition/SupplyRequest</a><span style="color: navy">" </span><b>alias </b>SupplyRequestR4B <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*5to4B<span style="color: navy">"
</span>
<b>group </b>SupplyRequest<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>SupplyRequestR5, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>SupplyRequestR4B<span style="color: navy">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style="color: navy"> {
</span> src.identifier<span style="color: navy"><b> -> </b></span>tgt.identifier<span style="color: navy">;</span>
src.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span>tgt.status = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#SupplyRequestStatus'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
src.category<span style="color: navy"><b> -> </b></span>tgt.category<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.basedOn -> tgt.basedOn;</span>
src.priority<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span>tgt.priority = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#RequestPriority'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
src.item<span style="color: navy"><b> -> </b></span>tgt.item<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.deliverFor -> tgt.deliverFor;</span>
src.quantity<span style="color: navy"><b> -> </b></span>tgt.quantity<span style="color: navy">;</span>
src.parameter<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </b></span>tgt.parameter<b> as </b><span style="color: maroon">t</span><b> then </b>SupplyRequestParameter<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.occurrence<span style="color: navy"> : </span>dateTime<span style="color: navy"><b> -> </b></span>tgt.occurrence<span style="color: navy">;</span>
src.occurrence<span style="color: navy"> : </span>Period<span style="color: navy"><b> -> </b></span>tgt.occurrence<span style="color: navy">;</span>
src.occurrence<span style="color: navy"> : </span>Timing<span style="color: navy"><b> -> </b></span>tgt.occurrence<span style="color: navy">;</span>
src.authoredOn<span style="color: navy"><b> -> </b></span>tgt.authoredOn<span style="color: navy">;</span>
src.requester<span style="color: navy"><b> -> </b></span>tgt.requester<span style="color: navy">;</span>
src.supplier<span style="color: navy"><b> -> </b></span>tgt.supplier<span style="color: navy">;</span>
src.reason<span style="color: navy"><b> -> </b></span>tgt.reasonCode<span style="color: navy">;</span>
src.reason<span style="color: navy"><b> -> </b></span>tgt.reasonReference<span style="color: navy">;</span>
src.deliverFrom<span style="color: navy"><b> -> </b></span>tgt.deliverFrom<span style="color: navy">;</span>
src.deliverTo<span style="color: navy"><b> -> </b></span>tgt.deliverTo<span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>SupplyRequestParameter<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.code<span style="color: navy"><b> -> </b></span>tgt.code<span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>CodeableConcept<span style="color: navy"><b> -> </b></span>tgt.value<span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Quantity<span style="color: navy"><b> -> </b></span>tgt.value<span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Range<span style="color: navy"><b> -> </b></span>tgt.value<span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>boolean<span style="color: navy"><b> -> </b></span>tgt.value<span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<contained>
<ConceptMap>
<id value="RequestPriority"/>
<status value="active"/>
<group>
<source value="http://hl7.org/fhir/request-priority"/>
<target value="http://hl7.org/fhir/4.3/request-priority"/>
<element>
<code value="routine"/>
<target>
<code value="routine"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="urgent"/>
<target>
<code value="urgent"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="asap"/>
<target>
<code value="asap"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="stat"/>
<target>
<code value="stat"/>
<relationship value="related-to"/>
</target>
</element>
</group>
</ConceptMap>
</contained>
<contained>
<ConceptMap>
<id value="SupplyRequestStatus"/>
<status value="active"/>
<group>
<source value="http://hl7.org/fhir/supplyrequest-status"/>
<target value="http://hl7.org/fhir/4.3/supplyrequest-status"/>
<element>
<code value="draft"/>
<target>
<code value="draft"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="active"/>
<target>
<code value="active"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="suspended"/>
<target>
<code value="suspended"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="cancelled"/>
<target>
<code value="cancelled"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="completed"/>
<target>
<code value="completed"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="entered-in-error"/>
<target>
<code value="entered-in-error"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="unknown"/>
<target>
<code value="unknown"/>
<relationship value="related-to"/>
</target>
</element>
</group>
</ConceptMap>
</contained>
<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.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/SupplyRequest5to4B"/>
<version value="5.1.0"/>
<name value="SupplyRequest5to4B"/>
<title value="FML Conversion for SupplyRequest: R5 to R4B"/>
<status value="active"/>
<date value="2024-04-27T18:54:50+10: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="FMLConversionforSupplyRequestR5toR4B"/>
<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/SupplyRequest"/>
<mode value="source"/>
<alias value="SupplyRequestR5"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/4.3/StructureDefinition/SupplyRequest"/>
<mode value="target"/>
<alias value="SupplyRequestR4B"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*5to4B"/>
<group>
<name value="SupplyRequest"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="SupplyRequestR5"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="SupplyRequestR4B"/>
<mode value="target"/>
</input>
<rule>
<name value="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="status"/>
<source>
<context value="src"/>
<element value="status"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<element value="status"/>
<transform value="translate"/>
<parameter>
<valueId value="v"/>
</parameter>
<parameter>
<valueString value="#SupplyRequestStatus"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
</rule>
<rule>
<name value="category"/>
<source>
<context value="src"/>
<element value="category"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="category"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
<documentation value="src.basedOn -> tgt.basedOn;"/>
</rule>
<rule>
<name value="priority"/>
<source>
<context value="src"/>
<element value="priority"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<element value="priority"/>
<transform value="translate"/>
<parameter>
<valueId value="v"/>
</parameter>
<parameter>
<valueString value="#RequestPriority"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
</rule>
<rule>
<name value="item"/>
<source>
<context value="src"/>
<element value="item"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="item"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
<documentation value="src.deliverFor -> tgt.deliverFor;"/>
</rule>
<rule>
<name value="quantity"/>
<source>
<context value="src"/>
<element value="quantity"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="quantity"/>
<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="parameter"/>
<source>
<context value="src"/>
<element value="parameter"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="parameter"/>
<variable value="t"/>
</target>
<dependent>
<name value="SupplyRequestParameter"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="occurrenceDateTime"/>
<source>
<context value="src"/>
<type value="dateTime"/>
<element value="occurrence"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="occurrence"/>
<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="occurrencePeriod"/>
<source>
<context value="src"/>
<type value="Period"/>
<element value="occurrence"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="occurrence"/>
<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="occurrenceTiming"/>
<source>
<context value="src"/>
<type value="Timing"/>
<element value="occurrence"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="occurrence"/>
<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="authoredOn"/>
<source>
<context value="src"/>
<element value="authoredOn"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="authoredOn"/>
<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="requester"/>
<source>
<context value="src"/>
<element value="requester"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="requester"/>
<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="supplier"/>
<source>
<context value="src"/>
<element value="supplier"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="supplier"/>
<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="reasonCode"/>
<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="reasonReference"/>
<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="deliverFrom"/>
<source>
<context value="src"/>
<element value="deliverFrom"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="deliverFrom"/>
<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="deliverTo"/>
<source>
<context value="src"/>
<element value="deliverTo"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="deliverTo"/>
<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="SupplyRequestParameter"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="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="valueCodeableConcept"/>
<source>
<context value="src"/>
<type value="CodeableConcept"/>
<element value="value"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<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="valueQuantity"/>
<source>
<context value="src"/>
<type value="Quantity"/>
<element value="value"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<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="valueRange"/>
<source>
<context value="src"/>
<type value="Range"/>
<element value="value"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<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="valueBoolean"/>
<source>
<context value="src"/>
<type value="boolean"/>
<element value="value"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="value"/>
<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>