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="BiologicallyDerivedProduct4Bto5"/>
<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/BiologicallyDerivedProduct4Bto5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'BiologicallyDerivedProduct4Bto5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'BiologicallyDerivedProduct Transforms: R4B to R5'</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/4.3/BiologicallyDerivedProduct<span style="color: navy">" </span><b>alias </b>BiologicallyDerivedProductR4B <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span>http://hl7.org/fhir/5.0/BiologicallyDerivedProduct<span style="color: navy">" </span><b>alias </b>BiologicallyDerivedProductR5 <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*4Bto5<span style="color: navy">"
</span>
<b>group </b>BiologicallyDerivedProduct<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>BiologicallyDerivedProductR4B, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>BiologicallyDerivedProductR5<span style="color: navy">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style="color: navy"> {
</span> src.productCategory<b> as </b><span style="color: maroon">s</span><b> where </b>productCategory = 'organ'<span style="color: navy"><b> -> </b></span> tgt.productCategory = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Coding'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">tc</span><span style="color: navy">, </span> tc.system = <span style="color: blue">'http://hl7.org/fhir/product-category'</span><span style="color: navy">, </span> tc.code = <span style="color: blue">'organ'</span><span style="color: navy">, </span> tc.display = <span style="color: blue">'Organ'</span><span style="color: navy">;</span>
src.productCategory<b> as </b><span style="color: maroon">s</span><b> where </b>productCategory = 'tissue'<span style="color: navy"><b> -> </b></span> tgt.productCategory = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Coding'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">tc</span><span style="color: navy">, </span> tc.system = <span style="color: blue">'http://hl7.org/fhir/product-category'</span><span style="color: navy">, </span> tc.code = <span style="color: blue">'tissue'</span><span style="color: navy">, </span> tc.display = <span style="color: blue">'Tissue'</span><span style="color: navy">;</span>
src.productCategory<b> as </b><span style="color: maroon">s</span><b> where </b>productCategory = 'fluid'<span style="color: navy"><b> -> </b></span> tgt.productCategory = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Coding'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">tc</span><span style="color: navy">, </span> tc.system = <span style="color: blue">'http://hl7.org/fhir/product-category'</span><span style="color: navy">, </span> tc.code = <span style="color: blue">'fluid'</span><span style="color: navy">, </span> tc.display = <span style="color: blue">'Fluid'</span><span style="color: navy">;</span>
src.productCategory<b> as </b><span style="color: maroon">s</span><b> where </b>productCategory = 'cells'<span style="color: navy"><b> -> </b></span> tgt.productCategory = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Coding'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">tc</span><span style="color: navy">, </span> tc.system = <span style="color: blue">'http://hl7.org/fhir/product-category'</span><span style="color: navy">, </span> tc.code = <span style="color: blue">'cells'</span><span style="color: navy">, </span> tc.display = <span style="color: blue">'Cells'</span><span style="color: navy">;</span>
src.productCategory<b> as </b><span style="color: maroon">s</span><b> where </b>productCategory = 'biologicalAgent'<span style="color: navy"><b> -> </b></span> tgt.productCategory = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Coding'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">tc</span><span style="color: navy">, </span> tc.system = <span style="color: blue">'http://hl7.org/fhir/product-category'</span><span style="color: navy">, </span> tc.code = <span style="color: blue">'biologicalAgent'</span><span style="color: navy">, </span> tc.display = <span style="color: blue">'BiologicalAgent'</span><span style="color: navy">;</span>
src.productCode<span style="color: navy"><b> -> </b></span>tgt.productCode<span style="color: navy">;</span>
src.parent<span style="color: navy"><b> -> </b></span>tgt.parent<span style="color: navy">;</span>
src.request<span style="color: navy"><b> -> </b></span>tgt.request<span style="color: navy">;</span>
src.identifier<span style="color: navy"><b> -> </b></span>tgt.identifier<span style="color: navy">;</span>
src.collection<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </b></span>tgt.collection<b> as </b><span style="color: maroon">t</span><b> then </b>BiologicallyDerivedProductCollection<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>BiologicallyDerivedProductCollection<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.collector<span style="color: navy"><b> -> </b></span>tgt.collector<span style="color: navy">;</span>
src.source<span style="color: navy"><b> -> </b></span>tgt.source<span style="color: navy">;</span>
src.collected<span style="color: navy"> : </span>dateTime<span style="color: navy"><b> -> </b></span>tgt.collected<span style="color: navy">;</span>
src.collected<span style="color: navy"> : </span>Period<span style="color: navy"><b> -> </b></span>tgt.collected<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/BiologicallyDerivedProduct4Bto5"/>
<version value="0.1.0"/>
<name value="BiologicallyDerivedProduct4Bto5"/>
<title value="BiologicallyDerivedProduct Transforms: R4B 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="BiologicallyDerivedProductTransformsR4BtoR5"/>
<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.3/BiologicallyDerivedProduct"/>
<mode value="source"/>
<alias value="BiologicallyDerivedProductR4B"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/5.0/BiologicallyDerivedProduct"/>
<mode value="target"/>
<alias value="BiologicallyDerivedProductR5"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*4Bto5"/>
<group>
<name value="BiologicallyDerivedProduct"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="BiologicallyDerivedProductR4B"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="BiologicallyDerivedProductR5"/>
<mode value="target"/>
</input>
<rule>
<name value="productCategory"/>
<source>
<context value="src"/>
<element value="productCategory"/>
<variable value="s"/>
<condition value="productCategory = 'organ'"/>
</source>
<target>
<context value="tgt"/>
<element value="productCategory"/>
<variable value="tc"/>
<transform value="create"/>
<parameter>
<valueString value="Coding"/>
</parameter>
</target>
<target>
<context value="tc"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://hl7.org/fhir/product-category"/>
</parameter>
</target>
<target>
<context value="tc"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueString value="organ"/>
</parameter>
</target>
<target>
<context value="tc"/>
<element value="display"/>
<transform value="copy"/>
<parameter>
<valueString value="Organ"/>
</parameter>
</target>
</rule>
<rule>
<name value="productCategory"/>
<source>
<context value="src"/>
<element value="productCategory"/>
<variable value="s"/>
<condition value="productCategory = 'tissue'"/>
</source>
<target>
<context value="tgt"/>
<element value="productCategory"/>
<variable value="tc"/>
<transform value="create"/>
<parameter>
<valueString value="Coding"/>
</parameter>
</target>
<target>
<context value="tc"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://hl7.org/fhir/product-category"/>
</parameter>
</target>
<target>
<context value="tc"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueString value="tissue"/>
</parameter>
</target>
<target>
<context value="tc"/>
<element value="display"/>
<transform value="copy"/>
<parameter>
<valueString value="Tissue"/>
</parameter>
</target>
</rule>
<rule>
<name value="productCategory"/>
<source>
<context value="src"/>
<element value="productCategory"/>
<variable value="s"/>
<condition value="productCategory = 'fluid'"/>
</source>
<target>
<context value="tgt"/>
<element value="productCategory"/>
<variable value="tc"/>
<transform value="create"/>
<parameter>
<valueString value="Coding"/>
</parameter>
</target>
<target>
<context value="tc"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://hl7.org/fhir/product-category"/>
</parameter>
</target>
<target>
<context value="tc"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueString value="fluid"/>
</parameter>
</target>
<target>
<context value="tc"/>
<element value="display"/>
<transform value="copy"/>
<parameter>
<valueString value="Fluid"/>
</parameter>
</target>
</rule>
<rule>
<name value="productCategory"/>
<source>
<context value="src"/>
<element value="productCategory"/>
<variable value="s"/>
<condition value="productCategory = 'cells'"/>
</source>
<target>
<context value="tgt"/>
<element value="productCategory"/>
<variable value="tc"/>
<transform value="create"/>
<parameter>
<valueString value="Coding"/>
</parameter>
</target>
<target>
<context value="tc"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://hl7.org/fhir/product-category"/>
</parameter>
</target>
<target>
<context value="tc"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueString value="cells"/>
</parameter>
</target>
<target>
<context value="tc"/>
<element value="display"/>
<transform value="copy"/>
<parameter>
<valueString value="Cells"/>
</parameter>
</target>
</rule>
<rule>
<name value="productCategory"/>
<source>
<context value="src"/>
<element value="productCategory"/>
<variable value="s"/>
<condition value="productCategory = 'biologicalAgent'"/>
</source>
<target>
<context value="tgt"/>
<element value="productCategory"/>
<variable value="tc"/>
<transform value="create"/>
<parameter>
<valueString value="Coding"/>
</parameter>
</target>
<target>
<context value="tc"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://hl7.org/fhir/product-category"/>
</parameter>
</target>
<target>
<context value="tc"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueString value="biologicalAgent"/>
</parameter>
</target>
<target>
<context value="tc"/>
<element value="display"/>
<transform value="copy"/>
<parameter>
<valueString value="BiologicalAgent"/>
</parameter>
</target>
</rule>
<rule>
<name value="productCode"/>
<source>
<context value="src"/>
<element value="productCode"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="productCode"/>
<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="parent"/>
<source>
<context value="src"/>
<element value="parent"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="parent"/>
<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="request"/>
<source>
<context value="src"/>
<element value="request"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="request"/>
<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="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="collection"/>
<source>
<context value="src"/>
<element value="collection"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="collection"/>
<variable value="t"/>
</target>
<dependent>
<name value="BiologicallyDerivedProductCollection"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="BiologicallyDerivedProductCollection"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="collector"/>
<source>
<context value="src"/>
<element value="collector"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="collector"/>
<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="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="source"/>
<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="collectedDateTime"/>
<source>
<context value="src"/>
<type value="dateTime"/>
<element value="collected"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="collected"/>
<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="collectedPeriod"/>
<source>
<context value="src"/>
<type value="Period"/>
<element value="collected"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="collected"/>
<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>