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

: MedicinalProductDeviceSpec Transforms: R3 to R4 - XML Representation

Page standards status: Draft Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="MedicinalProductDeviceSpec3to4"/>
  <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/MedicinalProductDeviceSpec3to4'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'MedicinalProductDeviceSpec3to4'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'MedicinalProductDeviceSpec Transforms: R3 to R4'</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/3.0/MedicinalProductDeviceSpec<span style="color: navy">&quot; </span><b>alias </b>MedicinalProductDeviceSpecR3 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/4.0/MedicinalProductDeviceSpec<span style="color: navy">&quot; </span><b>alias </b>MedicinalProductDeviceSpec <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*3to4<span style="color: navy">&quot;
</span>
<b>group </b>MedicinalProductDeviceSpec<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>MedicinalProductDeviceSpecR3, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>MedicinalProductDeviceSpec<span style="color: navy">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.identifier<span style="color: navy"><b> -&gt; </b></span>tgt.identifier<span style="color: navy">;</span>
  src.type<span style="color: navy"><b> -&gt; </b></span>tgt.type<span style="color: navy">;</span>
  src.tradeName<span style="color: navy"><b> -&gt; </b></span>tgt.tradeName<span style="color: navy">;</span>
  src.quantity<span style="color: navy"><b> -&gt; </b></span>tgt.quantity<span style="color: navy">;</span>
  src.listingNumber<span style="color: navy"><b> -&gt; </b></span>tgt.listingNumber<span style="color: navy">;</span>
  src.modelNumber<span style="color: navy"><b> -&gt; </b></span>tgt.modelNumber<span style="color: navy">;</span>
  src.sterilityIndicator<span style="color: navy"><b> -&gt; </b></span>tgt.sterilityIndicator<span style="color: navy">;</span>
  src.sterilisationRequirement<span style="color: navy"><b> -&gt; </b></span>tgt.sterilisationRequirement<span style="color: navy">;</span>
  src.usage<span style="color: navy"><b> -&gt; </b></span>tgt.usage<span style="color: navy">;</span>
  src.nomenclature<span style="color: navy"><b> -&gt; </b></span>tgt.nomenclature<span style="color: navy">;</span>
  src.shelfLife<span style="color: navy"><b> -&gt; </b></span>tgt.shelfLife<span style="color: navy">;</span>
  src.physicalCharacteristics<span style="color: navy"><b> -&gt; </b></span>tgt.physicalCharacteristics<span style="color: navy">;</span>
  src.otherCharacteristics<span style="color: navy"><b> -&gt; </b></span>tgt.otherCharacteristics<span style="color: navy">;</span>
  src.batchIdentifier<span style="color: navy"><b> -&gt; </b></span>tgt.batchIdentifier<span style="color: navy">;</span>
  src.manufacturer<span style="color: navy"><b> -&gt; </b></span>tgt.manufacturer<span style="color: navy">;</span>
  src.material<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.material<b> as </b><span style="color: maroon">t</span><b> then </b>MedicinalProductDeviceSpecMaterial<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>MedicinalProductDeviceSpecMaterial<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.substance<span style="color: navy"><b> -&gt; </b></span>tgt.substance<span style="color: navy">;</span>
  src.alternate<span style="color: navy"><b> -&gt; </b></span>tgt.alternate<span style="color: navy">;</span>
  src.allergenicIndicator<span style="color: navy"><b> -&gt; </b></span>tgt.allergenicIndicator<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/MedicinalProductDeviceSpec3to4"/>
  <version value="0.1.0"/>
  <name value="MedicinalProductDeviceSpec3to4"/>
  <title value="MedicinalProductDeviceSpec Transforms: R3 to R4"/>
  <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="MedicinalProductDeviceSpecTransformsR3toR4"/>
  <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/3.0/MedicinalProductDeviceSpec"/>
    <mode value="source"/>
    <alias value="MedicinalProductDeviceSpecR3"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/4.0/MedicinalProductDeviceSpec"/>
    <mode value="target"/>
    <alias value="MedicinalProductDeviceSpec"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*3to4"/>
  <group>
    <name value="MedicinalProductDeviceSpec"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="MedicinalProductDeviceSpecR3"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="MedicinalProductDeviceSpec"/>
      <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="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="tradeName"/>
      <source>
        <context value="src"/>
        <element value="tradeName"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="tradeName"/>
        <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="quantity"/>
      <source>
        <context value="src"/>
        <element value="quantity"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="quantity"/>
        <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="listingNumber"/>
      <source>
        <context value="src"/>
        <element value="listingNumber"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="listingNumber"/>
        <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="modelNumber"/>
      <source>
        <context value="src"/>
        <element value="modelNumber"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="modelNumber"/>
        <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="sterilityIndicator"/>
      <source>
        <context value="src"/>
        <element value="sterilityIndicator"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="sterilityIndicator"/>
        <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="sterilisationRequirement"/>
      <source>
        <context value="src"/>
        <element value="sterilisationRequirement"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="sterilisationRequirement"/>
        <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="usage"/>
      <source>
        <context value="src"/>
        <element value="usage"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="usage"/>
        <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="nomenclature"/>
      <source>
        <context value="src"/>
        <element value="nomenclature"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="nomenclature"/>
        <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="shelfLife"/>
      <source>
        <context value="src"/>
        <element value="shelfLife"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="shelfLife"/>
        <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="physicalCharacteristics"/>
      <source>
        <context value="src"/>
        <element value="physicalCharacteristics"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="physicalCharacteristics"/>
        <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="otherCharacteristics"/>
      <source>
        <context value="src"/>
        <element value="otherCharacteristics"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="otherCharacteristics"/>
        <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="batchIdentifier"/>
      <source>
        <context value="src"/>
        <element value="batchIdentifier"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="batchIdentifier"/>
        <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="material"/>
      <source>
        <context value="src"/>
        <element value="material"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="material"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="MedicinalProductDeviceSpecMaterial"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="MedicinalProductDeviceSpecMaterial"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="substance"/>
      <source>
        <context value="src"/>
        <element value="substance"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="substance"/>
        <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="alternate"/>
      <source>
        <context value="src"/>
        <element value="alternate"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="alternate"/>
        <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="allergenicIndicator"/>
      <source>
        <context value="src"/>
        <element value="allergenicIndicator"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="allergenicIndicator"/>
        <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>