FHIR Extensions Pack
5.1.0-snapshot1 - Working Copy International flag

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

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

Page standards status: Trial-use Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="Device4Bto5"/>
  <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/Device4Bto5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'Device4Bto5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for Device: 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>conceptmap</b><span style="color: navy"> &quot;</span>FHIRDeviceStatus<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-status.html" title="FHIRDeviceStatus">http://hl7.org/fhir/4.3/device-status</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-status.html" title="FHIR Device Status">http://hl7.org/fhir/device-status</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>active <b>-</b> t<span style="color: navy">:</span>active
  s<span style="color: navy">:</span>inactive <b>-</b> t<span style="color: navy">:</span>inactive
  s<span style="color: navy">:</span>&quot;entered-in-error&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>entered-in-error<span style="color: navy">&quot;</span>
<span style="color: navy">}

</span><b>conceptmap</b><span style="color: navy"> &quot;</span>UDIEntryType<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4B/codesystem-udi-entry-type.html" title="UDIEntryType">http://hl7.org/fhir/4.3/udi-entry-type</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-udi-entry-type.html" title="UDI Entry Type">http://hl7.org/fhir/udi-entry-type</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>barcode <b>-</b> t<span style="color: navy">:</span>barcode
  s<span style="color: navy">:</span>rfid <b>-</b> t<span style="color: navy">:</span>rfid
  s<span style="color: navy">:</span>manual <b>-</b> t<span style="color: navy">:</span>manual
  s<span style="color: navy">:</span>card <b>-</b> t<span style="color: navy">:</span>card
  s<span style="color: navy">:</span>&quot;self-reported&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>self-reported<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>unknown <b>-</b> t<span style="color: navy">:</span>unknown
<span style="color: navy">}

</span><b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4B/device.html" title="Device">http://hl7.org/fhir/4.3/StructureDefinition/Device</a><span style="color: navy">&quot; </span><b>alias </b>DeviceR4B <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R5/device.html" title="Device">http://hl7.org/fhir/StructureDefinition/Device</a><span style="color: navy">&quot; </span><b>alias </b>DeviceR5 <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>Device<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>DeviceR4B, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>DeviceR5<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.definition<span style="color: navy"><b> -&gt; </b></span>tgt.definition<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.displayName -&gt; tgt.displayName;</span>
  src.udiCarrier<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.udiCarrier<b> as </b><span style="color: maroon">t</span><b> then </b>DeviceUdiCarrier<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.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#FHIRDeviceStatus'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.manufacturer<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.availabilityStatus -&gt; tgt.availabilityStatus;</span>
  src.manufactureDate<span style="color: navy"><b> -&gt; </b></span>tgt.manufactureDate<span style="color: navy">;</span>
  src.expirationDate<span style="color: navy"><b> -&gt; </b></span>tgt.expirationDate<span style="color: navy">;</span>
  src.lotNumber<span style="color: navy"><b> -&gt; </b></span>tgt.lotNumber<span style="color: navy">;</span>
  src.serialNumber<span style="color: navy"><b> -&gt; </b></span>tgt.serialNumber<span style="color: navy">;</span>
  src.deviceName<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.name<b> as </b><span style="color: maroon">t</span><b> then </b>DeviceName<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.partNumber<span style="color: navy"><b> -&gt; </b></span>tgt.partNumber<span style="color: navy">;</span>
  src.type<span style="color: navy"><b> -&gt; </b></span>tgt.type<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.category -&gt; tgt.category;</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><b> then </b>DeviceVersion<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.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>DeviceProperty<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.conformsTo as s -&gt; tgt.conformsTo as t then DeviceConformsTo(s,t);</span>
  src.owner<span style="color: navy"><b> -&gt; </b></span>tgt.owner<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.mode -&gt; tgt.mode;</span>
  src.contact<span style="color: navy"><b> -&gt; </b></span>tgt.contact<span style="color: navy">;</span>
  src.location<span style="color: navy"><b> -&gt; </b></span>tgt.location<span style="color: navy">;</span>
  src.url<span style="color: navy"><b> -&gt; </b></span>tgt.url<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.endpoint -&gt; tgt.endpoint;</span>
  src.safety<span style="color: navy"><b> -&gt; </b></span>tgt.safety<span style="color: navy">;</span>
  src.parent<span style="color: navy"><b> -&gt; </b></span>tgt.parent<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>DeviceUdiCarrier<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>
  src.carrierAIDC<span style="color: navy"><b> -&gt; </b></span>tgt.carrierAIDC<span style="color: navy">;</span>
  src.carrierHRF<span style="color: navy"><b> -&gt; </b></span>tgt.carrierHRF<span style="color: navy">;</span>
  src.entryType<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.entryType = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#UDIEntryType'</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><b>group </b>DeviceName<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.value<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><b>group </b>DeviceVersion<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.component<span style="color: navy"><b> -&gt; </b></span>tgt.component<span style="color: navy">;</span>
  src.value<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.installDate -&gt; tgt.installDate;</span>
<span style="color: navy">}

</span><span style="color: navy">// </span><span style="color: green">group DeviceConformsTo(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: navy">// </span><span style="color: green">}</span>
<b>group </b>DeviceProperty<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></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>
  <contained>
    <ConceptMap>
      <id value="FHIRDeviceStatus"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/4.3/device-status"/>
        <target value="http://hl7.org/fhir/device-status"/>
        <element>
          <code value="active"/>
          <target>
            <code value="active"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="inactive"/>
          <target>
            <code value="inactive"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="entered-in-error"/>
          <target>
            <code value="entered-in-error"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="UDIEntryType"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/4.3/udi-entry-type"/>
        <target value="http://hl7.org/fhir/udi-entry-type"/>
        <element>
          <code value="barcode"/>
          <target>
            <code value="barcode"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="rfid"/>
          <target>
            <code value="rfid"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="manual"/>
          <target>
            <code value="manual"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="card"/>
          <target>
            <code value="card"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="self-reported"/>
          <target>
            <code value="self-reported"/>
            <relationship value="related-to"/>
            <comment
                     value="s:&quot;electronic-transmission&quot; - t:&quot;electronic-transmission&quot;"/>
          </target>
        </element>
        <element>
          <code value="unknown"/>
          <target>
            <code value="unknown"/>
            <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/Device4Bto5"/>
  <version value="5.1.0-snapshot1"/>
  <name value="Device4Bto5"/>
  <title value="FML Conversion for Device: R4B to R5"/>
  <status value="active"/>
  <date value="2024-03-12T13:30:10+11:00"/>
  <publisher value="HL7 International / FHIR Infrastructure"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/fiwg"/>
    </telecom>
  </contact>
  <description value="FMLConversionforDeviceR4BtoR5"/>
  <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/Device"/>
    <mode value="source"/>
    <alias value="DeviceR4B"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/Device"/>
    <mode value="target"/>
    <alias value="DeviceR5"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*4Bto5"/>
  <group>
    <name value="Device"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="DeviceR4B"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="DeviceR5"/>
      <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="definition"/>
      <source>
        <context value="src"/>
        <element value="definition"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="definition"/>
        <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.displayName -&gt; tgt.displayName;"/>
    </rule>
    <rule>
      <name value="udiCarrier"/>
      <source>
        <context value="src"/>
        <element value="udiCarrier"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="udiCarrier"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="DeviceUdiCarrier"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="status"/>
      <source>
        <context value="src"/>
        <element value="status"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="status"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#FHIRDeviceStatus"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </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>
      <documentation
                     value="src.availabilityStatus -&gt; tgt.availabilityStatus;"/>
    </rule>
    <rule>
      <name value="manufactureDate"/>
      <source>
        <context value="src"/>
        <element value="manufactureDate"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="manufactureDate"/>
        <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="expirationDate"/>
      <source>
        <context value="src"/>
        <element value="expirationDate"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="expirationDate"/>
        <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="lotNumber"/>
      <source>
        <context value="src"/>
        <element value="lotNumber"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="lotNumber"/>
        <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="serialNumber"/>
      <source>
        <context value="src"/>
        <element value="serialNumber"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="serialNumber"/>
        <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="deviceName"/>
      <source>
        <context value="src"/>
        <element value="deviceName"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="name"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="DeviceName"/>
        <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="partNumber"/>
      <source>
        <context value="src"/>
        <element value="partNumber"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="partNumber"/>
        <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>
      <documentation value="src.category -&gt; tgt.category;"/>
    </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>
      <dependent>
        <name value="DeviceVersion"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </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="DeviceProperty"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
      <documentation
                     value="src.conformsTo as s -&gt; tgt.conformsTo as t then DeviceConformsTo(s,t);"/>
    </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>
      <documentation value="src.mode -&gt; tgt.mode;"/>
    </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="location"/>
      <source>
        <context value="src"/>
        <element value="location"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="location"/>
        <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="url"/>
      <source>
        <context value="src"/>
        <element value="url"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="url"/>
        <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.endpoint -&gt; tgt.endpoint;"/>
    </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="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>
  </group>
  <group>
    <name value="DeviceUdiCarrier"/>
    <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>
    <rule>
      <name value="carrierAIDC"/>
      <source>
        <context value="src"/>
        <element value="carrierAIDC"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="carrierAIDC"/>
        <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="carrierHRF"/>
      <source>
        <context value="src"/>
        <element value="carrierHRF"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="carrierHRF"/>
        <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="entryType"/>
      <source>
        <context value="src"/>
        <element value="entryType"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="entryType"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#UDIEntryType"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
  </group>
  <group>
    <name value="DeviceName"/>
    <extends value="BackboneElement"/>
    <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="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="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="DeviceVersion"/>
    <extends value="BackboneElement"/>
    <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="component"/>
      <source>
        <context value="src"/>
        <element value="component"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="component"/>
        <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="value"/>
      <source>
        <context value="src"/>
        <element value="value"/>
        <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>
      <documentation value="src.installDate -&gt; tgt.installDate;"/>
    </rule>
  </group>
  <group>
    <name value="DeviceProperty"/>
    <extends value="BackboneElement"/>
    <documentation
                   value="group DeviceConformsTo(source src, target tgt) extends BackboneElement {
src.category -&gt; tgt.category;
src.specification -&gt; tgt.specification;
src.version -&gt; tgt.version;
}"/>
    <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>
</StructureMap>