FHIR Cross-Version Mapping Pack
0.1.0 - Ballot for Release 5.1.0 International flag

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

: Dosage Transforms: R4 to R5 - XML Representation

Page standards status: Draft Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="Dosage4to5"/>
  <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/Dosage4to5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'Dosage4to5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'Dosage Transforms: 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>http://hl7.org/fhir/4.0/Dosage<span style="color: navy">&quot; </span><b>alias </b>DosageR4 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/5.0/Dosage<span style="color: navy">&quot; </span><b>alias </b>DosageR5 <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>Dosage<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>DosageR4, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>DosageR5<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.modifierExtension<span style="color: navy"><b> -&gt; </b></span>tgt.modifierExtension<span style="color: navy">;</span>
  src.sequence<span style="color: navy"><b> -&gt; </b></span>tgt.sequence<span style="color: navy">;</span>
  src.text<span style="color: navy"><b> -&gt; </b></span>tgt.text<span style="color: navy">;</span>
  src.additionalInstruction<span style="color: navy"><b> -&gt; </b></span>tgt.additionalInstruction<span style="color: navy">;</span>
  src.patientInstruction<span style="color: navy"><b> -&gt; </b></span>tgt.patientInstruction<span style="color: navy">;</span>
  src.timing<span style="color: navy"><b> -&gt; </b></span>tgt.timing<span style="color: navy">;</span>
  src.asNeeded<span style="color: navy"> : </span>boolean<span style="color: navy"><b> -&gt; </b></span>tgt.asNeeded<span style="color: navy">;</span>
  src.asNeeded<span style="color: navy"> : </span>CodeableConcept<span style="color: navy"><b> -&gt; </b></span>tgt.asNeededFor<span style="color: navy">;</span>
  src.site<span style="color: navy"><b> -&gt; </b></span>tgt.site<span style="color: navy">;</span>
  src.route<span style="color: navy"><b> -&gt; </b></span>tgt.route<span style="color: navy">;</span>
  src.method<span style="color: navy"><b> -&gt; </b></span>tgt.method<span style="color: navy">;</span>
  src.doseAndRate<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.doseAndRate<b> as </b><span style="color: maroon">t</span><b> then </b>DosageDoseAndRate<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.maxDosePerPeriod<span style="color: navy"><b> -&gt; </b></span>tgt.maxDosePerPeriod<span style="color: navy">;</span>
  src.maxDosePerAdministration<span style="color: navy"><b> -&gt; </b></span>tgt.maxDosePerAdministration<span style="color: navy">;</span>
  src.maxDosePerLifetime<span style="color: navy"><b> -&gt; </b></span>tgt.maxDosePerLifetime<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>DosageDoseAndRate<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>Element<span style="color: navy"> {
</span>  src.type<span style="color: navy"><b> -&gt; </b></span>tgt.type<span style="color: navy">;</span>
  src.dose<span style="color: navy"> : </span>Range<span style="color: navy"><b> -&gt; </b></span>tgt.dose<span style="color: navy">;</span>
  src.dose<span style="color: navy"> : </span>Quantity<span style="color: navy"><b> -&gt; </b></span>tgt.dose<span style="color: navy">;</span>
  src.rate<span style="color: navy"> : </span>Ratio<span style="color: navy"><b> -&gt; </b></span>tgt.rate<span style="color: navy">;</span>
  src.rate<span style="color: navy"> : </span>Range<span style="color: navy"><b> -&gt; </b></span>tgt.rate<span style="color: navy">;</span>
  src.rate<span style="color: navy"> : </span>Quantity<span style="color: navy"><b> -&gt; </b></span>tgt.rate<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/Dosage4to5"/>
  <version value="0.1.0"/>
  <name value="Dosage4to5"/>
  <title value="Dosage Transforms: R4 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="DosageTransformsR4toR5"/>
  <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/Dosage"/>
    <mode value="source"/>
    <alias value="DosageR4"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/5.0/Dosage"/>
    <mode value="target"/>
    <alias value="DosageR5"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*4to5"/>
  <group>
    <name value="Dosage"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="DosageR4"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="DosageR5"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="modifierExtension"/>
      <source>
        <context value="src"/>
        <element value="modifierExtension"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="modifierExtension"/>
        <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="sequence"/>
      <source>
        <context value="src"/>
        <element value="sequence"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="sequence"/>
        <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="text"/>
      <source>
        <context value="src"/>
        <element value="text"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="text"/>
        <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="additionalInstruction"/>
      <source>
        <context value="src"/>
        <element value="additionalInstruction"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="additionalInstruction"/>
        <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="patientInstruction"/>
      <source>
        <context value="src"/>
        <element value="patientInstruction"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="patientInstruction"/>
        <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="timing"/>
      <source>
        <context value="src"/>
        <element value="timing"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="timing"/>
        <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="asNeededBoolean"/>
      <source>
        <context value="src"/>
        <type value="boolean"/>
        <element value="asNeeded"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="asNeeded"/>
        <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="asNeededCodeableConcept"/>
      <source>
        <context value="src"/>
        <type value="CodeableConcept"/>
        <element value="asNeeded"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="asNeededFor"/>
        <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="site"/>
      <source>
        <context value="src"/>
        <element value="site"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="site"/>
        <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="route"/>
      <source>
        <context value="src"/>
        <element value="route"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="route"/>
        <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="method"/>
      <source>
        <context value="src"/>
        <element value="method"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="method"/>
        <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="doseAndRate"/>
      <source>
        <context value="src"/>
        <element value="doseAndRate"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="doseAndRate"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="DosageDoseAndRate"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="maxDosePerPeriod"/>
      <source>
        <context value="src"/>
        <element value="maxDosePerPeriod"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="maxDosePerPeriod"/>
        <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="maxDosePerAdministration"/>
      <source>
        <context value="src"/>
        <element value="maxDosePerAdministration"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="maxDosePerAdministration"/>
        <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="maxDosePerLifetime"/>
      <source>
        <context value="src"/>
        <element value="maxDosePerLifetime"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="maxDosePerLifetime"/>
        <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="DosageDoseAndRate"/>
    <extends value="Element"/>
    <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="doseRange"/>
      <source>
        <context value="src"/>
        <type value="Range"/>
        <element value="dose"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="dose"/>
        <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="doseQuantity"/>
      <source>
        <context value="src"/>
        <type value="Quantity"/>
        <element value="dose"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="dose"/>
        <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="rateRatio"/>
      <source>
        <context value="src"/>
        <type value="Ratio"/>
        <element value="rate"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="rate"/>
        <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="rateRange"/>
      <source>
        <context value="src"/>
        <type value="Range"/>
        <element value="rate"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="rate"/>
        <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="rateQuantity"/>
      <source>
        <context value="src"/>
        <type value="Quantity"/>
        <element value="rate"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="rate"/>
        <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>