This page is part of the FHIR Core Extensions Registry (v5.1.0-snapshot1: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. The current version which supersedes this version is 1.0.0. 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="BiologicallyDerivedProduct5to4"/>
<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/BiologicallyDerivedProduct5to4'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'BiologicallyDerivedProduct5to4'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for BiologicallyDerivedProduct: R5 to R4'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R5/biologicallyderivedproduct.html" title="BiologicallyDerivedProduct">http://hl7.org/fhir/StructureDefinition/BiologicallyDerivedProduct</a><span style="color: navy">" </span><b>alias </b>BiologicallyDerivedProductR5 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R4/biologicallyderivedproduct.html" title="BiologicallyDerivedProduct">http://hl7.org/fhir/4.0/StructureDefinition/BiologicallyDerivedProduct</a><span style="color: navy">" </span><b>alias </b>BiologicallyDerivedProductR4 <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>BiologicallyDerivedProduct<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>BiologicallyDerivedProductR5, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>BiologicallyDerivedProductR4<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><span style="color: navy"><b> -> </b></span>tgt.productCategory<b> as </b><span style="color: maroon">t</span><b> then </b>BiologicallyDerivedProductCategory<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.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><span style="color: green">src.biologicalSourceEvent -> tgt.biologicalSourceEvent;</span>
<span style="color: navy">}
</span><b>group </b>BiologicallyDerivedProductCategory<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<b> as </b><span style="color: maroon">s</span><b> where </b>code = 'organ'<span style="color: navy"><b> -> </b></span>tgt = <span style="color: blue">'organ'</span><span style="color: navy">;</span>
src.code<b> as </b><span style="color: maroon">s</span><b> where </b>code = 'tissue'<span style="color: navy"><b> -> </b></span>tgt = <span style="color: blue">'tissue'</span><span style="color: navy">;</span>
src.code<b> as </b><span style="color: maroon">s</span><b> where </b>code = 'fluid'<span style="color: navy"><b> -> </b></span>tgt = <span style="color: blue">'fluid'</span><span style="color: navy">;</span>
src.code<b> as </b><span style="color: maroon">s</span><b> where </b>code = 'cells'<span style="color: navy"><b> -> </b></span>tgt = <span style="color: blue">'cells'</span><span style="color: navy">;</span>
src.code<b> as </b><span style="color: maroon">s</span><b> where </b>code = 'biologicalAgent'<span style="color: navy"><b> -> </b></span>tgt = <span style="color: blue">'biologicalAgent'</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.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/BiologicallyDerivedProduct5to4"/>
<version value="5.1.0-snapshot1"/>
<name value="BiologicallyDerivedProduct5to4"/>
<title value="FML Conversion for BiologicallyDerivedProduct: R5 to R4"/>
<status value="active"/>
<date value="2024-03-12T13:30:10+11: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="FMLConversionforBiologicallyDerivedProductR5toR4"/>
<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/BiologicallyDerivedProduct"/>
<mode value="source"/>
<alias value="BiologicallyDerivedProductR5"/>
</structure>
<structure>
<url
value="http://hl7.org/fhir/4.0/StructureDefinition/BiologicallyDerivedProduct"/>
<mode value="target"/>
<alias value="BiologicallyDerivedProductR4"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*5to4"/>
<group>
<name value="BiologicallyDerivedProduct"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="BiologicallyDerivedProductR5"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="BiologicallyDerivedProductR4"/>
<mode value="target"/>
</input>
<rule>
<name value="productCategory"/>
<source>
<context value="src"/>
<element value="productCategory"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="productCategory"/>
<variable value="t"/>
</target>
<dependent>
<name value="BiologicallyDerivedProductCategory"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</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>
<documentation
value="src.biologicalSourceEvent -> tgt.biologicalSourceEvent;"/>
</rule>
</group>
<group>
<name value="BiologicallyDerivedProductCategory"/>
<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="s"/>
<condition value="code = 'organ'"/>
</source>
<target>
<context value="tgt"/>
<transform value="copy"/>
<parameter>
<valueString value="organ"/>
</parameter>
</target>
</rule>
<rule>
<name value="code"/>
<source>
<context value="src"/>
<element value="code"/>
<variable value="s"/>
<condition value="code = 'tissue'"/>
</source>
<target>
<context value="tgt"/>
<transform value="copy"/>
<parameter>
<valueString value="tissue"/>
</parameter>
</target>
</rule>
<rule>
<name value="code"/>
<source>
<context value="src"/>
<element value="code"/>
<variable value="s"/>
<condition value="code = 'fluid'"/>
</source>
<target>
<context value="tgt"/>
<transform value="copy"/>
<parameter>
<valueString value="fluid"/>
</parameter>
</target>
</rule>
<rule>
<name value="code"/>
<source>
<context value="src"/>
<element value="code"/>
<variable value="s"/>
<condition value="code = 'cells'"/>
</source>
<target>
<context value="tgt"/>
<transform value="copy"/>
<parameter>
<valueString value="cells"/>
</parameter>
</target>
</rule>
<rule>
<name value="code"/>
<source>
<context value="src"/>
<element value="code"/>
<variable value="s"/>
<condition value="code = 'biologicalAgent'"/>
</source>
<target>
<context value="tgt"/>
<transform value="copy"/>
<parameter>
<valueString value="biologicalAgent"/>
</parameter>
</target>
</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>