FHIR Extensions Pack
5.1.0 - 5.1.0 (April 2024) International flag

This page is part of the FHIR Core Extensions Registry (v5.1.0: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. This is the current published version. For a full list of available versions, see the Directory of published versions

: FML Conversion for DeviceDefinition: R4B to R5 - XML Representation

Page standards status: Trial-use Maturity Level: 1

Raw xml | Download



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

<b>conceptmap</b><span style="color: navy"> &quot;</span>DeviceNameType<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4B/codesystem-device-nametype.html" title="DeviceNameType">http://hl7.org/fhir/4.3/device-nametype</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-device-nametype.html" title="Device Name Type">http://hl7.org/fhir/device-nametype</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>&quot;udi-label-name&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>registered-name<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>&quot;user-friendly-name&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>user-friendly-name<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>&quot;patient-reported-name&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>patient-reported-name<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>&quot;manufacturer-name&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>registered-name<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>&quot;model-name&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>registered-name<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>other <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>registered-name<span style="color: navy">&quot;</span>
<span style="color: navy">}

</span><b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4B/devicedefinition.html" title="DeviceDefinition">http://hl7.org/fhir/4.3/StructureDefinition/DeviceDefinition</a><span style="color: navy">&quot; </span><b>alias </b>DeviceDefinitionR4B <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R5/devicedefinition.html" title="DeviceDefinition">http://hl7.org/fhir/StructureDefinition/DeviceDefinition</a><span style="color: navy">&quot; </span><b>alias </b>DeviceDefinitionR5 <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*4Bto5<span style="color: navy">&quot;
</span>
<b>group </b>DeviceDefinition<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>DeviceDefinitionR4B, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>DeviceDefinitionR5<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> <span style="color: navy">// </span><span style="color: green">src.description -&gt; tgt.description;</span>
  src.udiDeviceIdentifier<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.udiDeviceIdentifier<b> as </b><span style="color: maroon">t</span><b> then </b>DeviceDefinitionUdiDeviceIdentifier<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.manufacturer<span style="color: navy"> : </span>Reference<span style="color: navy"><b> -&gt; </b></span>tgt.manufacturer<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.regulatoryIdentifier as s -&gt; tgt.regulatoryIdentifier as t then DeviceDefinitionRegulatoryIdentifier(s,t);</span>
  src.deviceName<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.deviceName<b> as </b><span style="color: maroon">t</span><b> then </b>DeviceDefinitionDeviceName<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.modelNumber<span style="color: navy"><b> -&gt; </b></span>tgt.modelNumber<span style="color: navy">;</span>
  src.version<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span> tgt.version<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.value = <span style="color: maroon">s</span><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.classification as s -&gt; tgt.classification as t then DeviceDefinitionClassification(s,t);</span>
  src.safety<span style="color: navy"><b> -&gt; </b></span>tgt.safety<span style="color: navy">;</span>
  src.shelfLifeStorage<span style="color: navy"><b> -&gt; </b></span>tgt.shelfLifeStorage<span style="color: navy">;</span>
  src.languageCode<span style="color: navy"><b> -&gt; </b></span>tgt.languageCode<span style="color: navy">;</span>
  src.property<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.property<b> as </b><span style="color: maroon">t</span><b> then </b>DeviceDefinitionProperty<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.owner<span style="color: navy"><b> -&gt; </b></span>tgt.owner<span style="color: navy">;</span>
  src.contact<span style="color: navy"><b> -&gt; </b></span>tgt.contact<span style="color: navy">;</span>
  src.note<span style="color: navy"><b> -&gt; </b></span>tgt.note<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.link as s -&gt; tgt.link as t then DeviceDefinitionLink(s,t);</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>DeviceDefinitionMaterial<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>DeviceDefinitionUdiDeviceIdentifier<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.deviceIdentifier<span style="color: navy"><b> -&gt; </b></span>tgt.deviceIdentifier<span style="color: navy">;</span>
  src.issuer<span style="color: navy"><b> -&gt; </b></span>tgt.issuer<span style="color: navy">;</span>
  src.jurisdiction<span style="color: navy"><b> -&gt; </b></span>tgt.jurisdiction<span style="color: navy">;</span>
<span style="color: navy">}

</span><span style="color: navy">// </span><span style="color: green">group DeviceDefinitionUdiDeviceIdentifierMarketDistribution(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.marketPeriod -&gt; tgt.marketPeriod;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.subJurisdiction -&gt; tgt.subJurisdiction;</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<span style="color: navy">// </span><span style="color: green">group DeviceDefinitionRegulatoryIdentifier(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.type as v -&gt; tgt.type = translate(v, '#DeviceRegulatoryIdentifierType', 'code');</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.deviceIdentifier -&gt; tgt.deviceIdentifier;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.issuer -&gt; tgt.issuer;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.jurisdiction -&gt; tgt.jurisdiction;</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<b>group </b>DeviceDefinitionDeviceName<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.name<span style="color: navy"><b> -&gt; </b></span>tgt.name<span style="color: navy">;</span>
  src.type<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.type = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#DeviceNameType'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}

</span><span style="color: navy">// </span><span style="color: green">group DeviceDefinitionClassification(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.type -&gt; tgt.type;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.justification -&gt; tgt.justification;</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<span style="color: navy">// </span><span style="color: green">group DeviceDefinitionConformsTo(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.category -&gt; tgt.category;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.specification -&gt; tgt.specification;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.version -&gt; tgt.version;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.source -&gt; tgt.source;</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<span style="color: navy">// </span><span style="color: green">group DeviceDefinitionHasPart(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.reference -&gt; tgt.reference;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.count -&gt; tgt.count;</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<span style="color: navy">// </span><span style="color: green">group DeviceDefinitionPackaging(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.identifier -&gt; tgt.identifier;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.type -&gt; tgt.type;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.count -&gt; tgt.count;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.distributor as s -&gt; tgt.distributor as t then DeviceDefinitionPackagingDistributor(s,t);</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<span style="color: navy">// </span><span style="color: green">group DeviceDefinitionPackagingDistributor(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.name -&gt; tgt.name;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.organizationReference -&gt; tgt.organizationReference;</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<span style="color: navy">// </span><span style="color: green">group DeviceDefinitionVersion(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.type -&gt; tgt.type;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.component -&gt; tgt.component;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.value -&gt; tgt.value;</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<b>group </b>DeviceDefinitionProperty<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.type<span style="color: navy"><b> -&gt; </b></span>tgt.type<span style="color: navy">;</span>
  src.valueQuantity<span style="color: navy"> : </span>Quantity<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.valueCode<span style="color: navy"> : </span>CodeableConcept<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
<span style="color: navy">}

</span><span style="color: navy">// </span><span style="color: green">group DeviceDefinitionLink(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.relation -&gt; tgt.relation;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.relatedDevice -&gt; tgt.relatedDevice;</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<b>group </b>DeviceDefinitionMaterial<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>
  <contained>
    <ConceptMap>
      <id value="DeviceNameType"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/4.3/device-nametype"/>
        <target value="http://hl7.org/fhir/device-nametype"/>
        <element>
          <code value="udi-label-name"/>
          <target>
            <code value="registered-name"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="user-friendly-name"/>
          <target>
            <code value="user-friendly-name"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="patient-reported-name"/>
          <target>
            <code value="patient-reported-name"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="manufacturer-name"/>
          <target>
            <code value="registered-name"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="model-name"/>
          <target>
            <code value="registered-name"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="other"/>
          <target>
            <code value="registered-name"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <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/DeviceDefinition4Bto5"/>
  <version value="5.1.0"/>
  <name value="DeviceDefinition4Bto5"/>
  <title value="FML Conversion for DeviceDefinition: R4B to R5"/>
  <status value="active"/>
  <date value="2024-04-27T18:54:50+10: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="FMLConversionforDeviceDefinitionR4BtoR5"/>
  <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/StructureDefinition/DeviceDefinition"/>
    <mode value="source"/>
    <alias value="DeviceDefinitionR4B"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/DeviceDefinition"/>
    <mode value="target"/>
    <alias value="DeviceDefinitionR5"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*4Bto5"/>
  <group>
    <name value="DeviceDefinition"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="DeviceDefinitionR4B"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="DeviceDefinitionR5"/>
      <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>
      <documentation value="src.description -&gt; tgt.description;"/>
    </rule>
    <rule>
      <name value="udiDeviceIdentifier"/>
      <source>
        <context value="src"/>
        <element value="udiDeviceIdentifier"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="udiDeviceIdentifier"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="DeviceDefinitionUdiDeviceIdentifier"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="manufacturerReference"/>
      <source>
        <context value="src"/>
        <type value="Reference"/>
        <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>
      <documentation
                     value="src.regulatoryIdentifier as s -&gt; tgt.regulatoryIdentifier as t then DeviceDefinitionRegulatoryIdentifier(s,t);"/>
    </rule>
    <rule>
      <name value="deviceName"/>
      <source>
        <context value="src"/>
        <element value="deviceName"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="deviceName"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="DeviceDefinitionDeviceName"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </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="version"/>
      <source>
        <context value="src"/>
        <element value="version"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="version"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="value"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
      </target>
      <documentation
                     value="src.classification as s -&gt; tgt.classification as t then DeviceDefinitionClassification(s,t);"/>
    </rule>
    <rule>
      <name value="safety"/>
      <source>
        <context value="src"/>
        <element value="safety"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="safety"/>
        <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="shelfLifeStorage"/>
      <source>
        <context value="src"/>
        <element value="shelfLifeStorage"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="shelfLifeStorage"/>
        <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="languageCode"/>
      <source>
        <context value="src"/>
        <element value="languageCode"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="languageCode"/>
        <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="property"/>
      <source>
        <context value="src"/>
        <element value="property"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="property"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="DeviceDefinitionProperty"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="owner"/>
      <source>
        <context value="src"/>
        <element value="owner"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="owner"/>
        <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="contact"/>
      <source>
        <context value="src"/>
        <element value="contact"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="contact"/>
        <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="note"/>
      <source>
        <context value="src"/>
        <element value="note"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="note"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
      <documentation
                     value="src.link as s -&gt; tgt.link as t then DeviceDefinitionLink(s,t);"/>
    </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="DeviceDefinitionMaterial"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="DeviceDefinitionUdiDeviceIdentifier"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="deviceIdentifier"/>
      <source>
        <context value="src"/>
        <element value="deviceIdentifier"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="deviceIdentifier"/>
        <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="issuer"/>
      <source>
        <context value="src"/>
        <element value="issuer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="issuer"/>
        <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="jurisdiction"/>
      <source>
        <context value="src"/>
        <element value="jurisdiction"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="jurisdiction"/>
        <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="DeviceDefinitionDeviceName"/>
    <extends value="BackboneElement"/>
    <documentation
                   value="group DeviceDefinitionUdiDeviceIdentifierMarketDistribution(source src, target tgt) extends BackboneElement {
src.marketPeriod -&gt; tgt.marketPeriod;
src.subJurisdiction -&gt; tgt.subJurisdiction;
}
group DeviceDefinitionRegulatoryIdentifier(source src, target tgt) extends BackboneElement {
src.type as v -&gt; tgt.type = translate(v, '#DeviceRegulatoryIdentifierType', 'code');
src.deviceIdentifier -&gt; tgt.deviceIdentifier;
src.issuer -&gt; tgt.issuer;
src.jurisdiction -&gt; tgt.jurisdiction;
}"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="name"/>
      <source>
        <context value="src"/>
        <element value="name"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="name"/>
        <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="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="type"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#DeviceNameType"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="DeviceDefinitionProperty"/>
    <extends value="BackboneElement"/>
    <documentation
                   value="group DeviceDefinitionClassification(source src, target tgt) extends BackboneElement {
src.type -&gt; tgt.type;
src.justification -&gt; tgt.justification;
}
group DeviceDefinitionConformsTo(source src, target tgt) extends BackboneElement {
src.category -&gt; tgt.category;
src.specification -&gt; tgt.specification;
src.version -&gt; tgt.version;
src.source -&gt; tgt.source;
}
group DeviceDefinitionHasPart(source src, target tgt) extends BackboneElement {
src.reference -&gt; tgt.reference;
src.count -&gt; tgt.count;
}
group DeviceDefinitionPackaging(source src, target tgt) extends BackboneElement {
src.identifier -&gt; tgt.identifier;
src.type -&gt; tgt.type;
src.count -&gt; tgt.count;
src.distributor as s -&gt; tgt.distributor as t then DeviceDefinitionPackagingDistributor(s,t);
}
group DeviceDefinitionPackagingDistributor(source src, target tgt) extends BackboneElement {
src.name -&gt; tgt.name;
src.organizationReference -&gt; tgt.organizationReference;
}
group DeviceDefinitionVersion(source src, target tgt) extends BackboneElement {
src.type -&gt; tgt.type;
src.component -&gt; tgt.component;
src.value -&gt; tgt.value;
}"/>
    <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="valueQuantityQuantity"/>
      <source>
        <context value="src"/>
        <type value="Quantity"/>
        <element value="valueQuantity"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueCodeCodeableConcept"/>
      <source>
        <context value="src"/>
        <type value="CodeableConcept"/>
        <element value="valueCode"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="DeviceDefinitionMaterial"/>
    <extends value="BackboneElement"/>
    <documentation
                   value="group DeviceDefinitionLink(source src, target tgt) extends BackboneElement {
src.relation -&gt; tgt.relation;
src.relatedDevice -&gt; tgt.relatedDevice;
}"/>
    <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>