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="ManufacturedItemDefinition5to4B"/>
<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/ManufacturedItemDefinition5to4B'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'ManufacturedItemDefinition5to4B'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for ManufacturedItemDefinition: 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>PublicationStatus<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R5/codesystem-publication-status.html" title="PublicationStatus">http://hl7.org/fhir/publication-status</a><span style="color: navy">"
</span><b> prefix </b>t<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4B/codesystem-publication-status.html" title="PublicationStatus">http://hl7.org/fhir/4.3/publication-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>retired <b>-</b> t<span style="color: navy">:</span>retired
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/manufactureditemdefinition.html" title="ManufacturedItemDefinition">http://hl7.org/fhir/StructureDefinition/ManufacturedItemDefinition</a><span style="color: navy">" </span><b>alias </b>ManufacturedItemDefinitionR5 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R4B/manufactureditemdefinition.html" title="ManufacturedItemDefinition">http://hl7.org/fhir/4.3/StructureDefinition/ManufacturedItemDefinition</a><span style="color: navy">" </span><b>alias </b>ManufacturedItemDefinitionR4B <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>ManufacturedItemDefinition<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>ManufacturedItemDefinitionR5, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>ManufacturedItemDefinitionR4B<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">'#PublicationStatus'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
src.manufacturedDoseForm<span style="color: navy"><b> -> </b></span>tgt.manufacturedDoseForm<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.name -> tgt.name;</span>
src.unitOfPresentation<span style="color: navy"><b> -> </b></span>tgt.unitOfPresentation<span style="color: navy">;</span>
src.manufacturer<span style="color: navy"><b> -> </b></span>tgt.manufacturer<span style="color: navy">;</span>
src.ingredient<span style="color: navy"><b> -> </b></span>tgt.ingredient<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.marketingStatus -> tgt.marketingStatus;</span>
src.property<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </b></span>tgt.property<b> as </b><span style="color: maroon">t</span><b> then </b>ManufacturedItemDefinitionProperty<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>
<span style="color: navy">}
</span><b>group </b>ManufacturedItemDefinitionProperty<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.type<span style="color: navy"><b> -> </b></span>tgt.type<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>date<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>
src.value<span style="color: navy"> : </span>Attachment<span style="color: navy"><b> -> </b></span>tgt.value<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.value : markdown -> tgt.value;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<contained>
<ConceptMap>
<id value="PublicationStatus"/>
<status value="active"/>
<group>
<source value="http://hl7.org/fhir/publication-status"/>
<target value="http://hl7.org/fhir/4.3/publication-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="retired"/>
<target>
<code value="retired"/>
<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/ManufacturedItemDefinition5to4B"/>
<version value="5.1.0"/>
<name value="ManufacturedItemDefinition5to4B"/>
<title value="FML Conversion for ManufacturedItemDefinition: 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="FMLConversionforManufacturedItemDefinitionR5toR4B"/>
<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/ManufacturedItemDefinition"/>
<mode value="source"/>
<alias value="ManufacturedItemDefinitionR5"/>
</structure>
<structure>
<url
value="http://hl7.org/fhir/4.3/StructureDefinition/ManufacturedItemDefinition"/>
<mode value="target"/>
<alias value="ManufacturedItemDefinitionR4B"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*5to4B"/>
<group>
<name value="ManufacturedItemDefinition"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="ManufacturedItemDefinitionR5"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="ManufacturedItemDefinitionR4B"/>
<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="#PublicationStatus"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
</rule>
<rule>
<name value="manufacturedDoseForm"/>
<source>
<context value="src"/>
<element value="manufacturedDoseForm"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="manufacturedDoseForm"/>
<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.name -> tgt.name;"/>
</rule>
<rule>
<name value="unitOfPresentation"/>
<source>
<context value="src"/>
<element value="unitOfPresentation"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="unitOfPresentation"/>
<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="manufacturer"/>
<source>
<context value="src"/>
<element value="manufacturer"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="manufacturer"/>
<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="ingredient"/>
<source>
<context value="src"/>
<element value="ingredient"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="ingredient"/>
<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.marketingStatus -> tgt.marketingStatus;"/>
</rule>
<rule>
<name value="property"/>
<source>
<context value="src"/>
<element value="property"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="property"/>
<variable value="t"/>
</target>
<dependent>
<name value="ManufacturedItemDefinitionProperty"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="ManufacturedItemDefinitionProperty"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="type"/>
<source>
<context value="src"/>
<element value="type"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="type"/>
<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="valueDate"/>
<source>
<context value="src"/>
<type value="date"/>
<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>
<rule>
<name value="valueAttachment"/>
<source>
<context value="src"/>
<type value="Attachment"/>
<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>
<documentation value="src.value : markdown -> tgt.value;"/>
</rule>
</group>
</StructureMap>