FHIR Extensions Pack
1.0.0 - Working Copy International flag

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

: FML Conversion for BiologicallyDerivedProduct: R4 to R5 - XML Representation

Page standards status: Trial-use Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="BiologicallyDerivedProduct4to5"/>
  <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/BiologicallyDerivedProduct4to5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'BiologicallyDerivedProduct4to5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for BiologicallyDerivedProduct: R4 to R5'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>

<b>uses</b><span style="color: navy"> &quot;</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">&quot; </span><b>alias </b>BiologicallyDerivedProductR4 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R5/biologicallyderivedproduct.html" title="BiologicallyDerivedProduct">http://hl7.org/fhir/StructureDefinition/BiologicallyDerivedProduct</a><span style="color: navy">&quot; </span><b>alias </b>BiologicallyDerivedProductR5 <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*4to5<span style="color: navy">&quot;
</span>
<b>group </b>BiologicallyDerivedProduct<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>BiologicallyDerivedProductR4, <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> &lt;&lt;type+&gt;&gt;</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> -&gt; </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> -&gt; </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> -&gt; </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> -&gt; </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> -&gt; </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> -&gt; </b></span>tgt.productCode<span style="color: navy">;</span>
  src.parent<span style="color: navy"><b> -&gt; </b></span>tgt.parent<span style="color: navy">;</span>
  src.request<span style="color: navy"><b> -&gt; </b></span>tgt.request<span style="color: navy">;</span>
  src.identifier<span style="color: navy"><b> -&gt; </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> -&gt; </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 -&gt; tgt.biologicalSourceEvent;</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> -&gt; </b></span>tgt.collector<span style="color: navy">;</span>
  src.source<span style="color: navy"><b> -&gt; </b></span>tgt.source<span style="color: navy">;</span>
  src.collected<span style="color: navy"> : </span>dateTime<span style="color: navy"><b> -&gt; </b></span>tgt.collected<span style="color: navy">;</span>
  src.collected<span style="color: navy"> : </span>Period<span style="color: navy"><b> -&gt; </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-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/BiologicallyDerivedProduct4to5"/>
  <version value="1.0.0"/>
  <name value="BiologicallyDerivedProduct4to5"/>
  <title value="FML Conversion for BiologicallyDerivedProduct: R4 to R5"/>
  <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="FMLConversionforBiologicallyDerivedProductR4toR5"/>
  <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.0/StructureDefinition/BiologicallyDerivedProduct"/>
    <mode value="source"/>
    <alias value="BiologicallyDerivedProductR4"/>
  </structure>
  <structure>
    <url
         value="http://hl7.org/fhir/StructureDefinition/BiologicallyDerivedProduct"/>
    <mode value="target"/>
    <alias value="BiologicallyDerivedProductR5"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*4to5"/>
  <group>
    <name value="BiologicallyDerivedProduct"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="BiologicallyDerivedProductR4"/>
      <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>
      <documentation
                     value="src.biologicalSourceEvent -&gt; tgt.biologicalSourceEvent;"/>
    </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>