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 in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

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

Page standards status: Trial-use Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="DeviceMetric4Bto5"/>
  <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/DeviceMetric4Bto5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'DeviceMetric4Bto5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for DeviceMetric: 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>DeviceMetricCalibrationState<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4B/codesystem-metric-calibration-state.html" title="DeviceMetricCalibrationState">http://hl7.org/fhir/4.3/metric-calibration-state</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-metric-calibration-state.html" title="Device Metric Calibration State">http://hl7.org/fhir/metric-calibration-state</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>&quot;not-calibrated&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>not-calibrated<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>&quot;calibration-required&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>calibration-required<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>calibrated <b>-</b> t<span style="color: navy">:</span>calibrated
  s<span style="color: navy">:</span>unspecified <b>-</b> t<span style="color: navy">:</span>unspecified
<span style="color: navy">}

</span><b>conceptmap</b><span style="color: navy"> &quot;</span>DeviceMetricCalibrationType<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4B/codesystem-metric-calibration-type.html" title="DeviceMetricCalibrationType">http://hl7.org/fhir/4.3/metric-calibration-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-metric-calibration-type.html" title="Device Metric Calibration Type">http://hl7.org/fhir/metric-calibration-type</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>unspecified <b>-</b> t<span style="color: navy">:</span>unspecified
  s<span style="color: navy">:</span>offset <b>-</b> t<span style="color: navy">:</span>offset
  s<span style="color: navy">:</span>gain <b>-</b> t<span style="color: navy">:</span>gain
  s<span style="color: navy">:</span>&quot;two-point&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>two-point<span style="color: navy">&quot;</span>
<span style="color: navy">}

</span><b>conceptmap</b><span style="color: navy"> &quot;</span>DeviceMetricCategory<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4B/codesystem-metric-category.html" title="DeviceMetricCategory">http://hl7.org/fhir/4.3/metric-category</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-metric-category.html" title="Device Metric Category">http://hl7.org/fhir/metric-category</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>measurement <b>-</b> t<span style="color: navy">:</span>measurement
  s<span style="color: navy">:</span>setting <b>-</b> t<span style="color: navy">:</span>setting
  s<span style="color: navy">:</span>calculation <b>-</b> t<span style="color: navy">:</span>calculation
  s<span style="color: navy">:</span>unspecified <b>-</b> t<span style="color: navy">:</span>unspecified
<span style="color: navy">}

</span><b>conceptmap</b><span style="color: navy"> &quot;</span>DeviceMetricColor<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4B/codesystem-metric-color.html" title="DeviceMetricColor">http://hl7.org/fhir/4.3/metric-color</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-color-names.html" title="Codes for Colors">http://hl7.org/fhir/color-names</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>black <b>-</b> t<span style="color: navy">:</span>black
  s<span style="color: navy">:</span>red <b>-</b> t<span style="color: navy">:</span>red
  s<span style="color: navy">:</span>green <b>-</b> t<span style="color: navy">:</span>green
  s<span style="color: navy">:</span>yellow <b>-</b> t<span style="color: navy">:</span>yellow
  s<span style="color: navy">:</span>blue <b>-</b> t<span style="color: navy">:</span>blue
  s<span style="color: navy">:</span>magenta <b>-</b> t<span style="color: navy">:</span>magenta
  s<span style="color: navy">:</span>cyan <b>-</b> t<span style="color: navy">:</span>cyan
  s<span style="color: navy">:</span>white <b>-</b> t<span style="color: navy">:</span>white
<span style="color: navy">}

</span><b>conceptmap</b><span style="color: navy"> &quot;</span>DeviceMetricOperationalStatus<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4B/codesystem-metric-operational-status.html" title="DeviceMetricOperationalStatus">http://hl7.org/fhir/4.3/metric-operational-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-metric-operational-status.html" title="Device Metric Operational Status">http://hl7.org/fhir/metric-operational-status</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>on <b>-</b> t<span style="color: navy">:</span>on
  s<span style="color: navy">:</span>off <b>-</b> t<span style="color: navy">:</span>off
  s<span style="color: navy">:</span>standby <b>-</b> t<span style="color: navy">:</span>standby
  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>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4B/devicemetric.html" title="DeviceMetric">http://hl7.org/fhir/4.3/StructureDefinition/DeviceMetric</a><span style="color: navy">&quot; </span><b>alias </b>DeviceMetricR4B <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R5/devicemetric.html" title="DeviceMetric">http://hl7.org/fhir/StructureDefinition/DeviceMetric</a><span style="color: navy">&quot; </span><b>alias </b>DeviceMetricR5 <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>DeviceMetric<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>DeviceMetricR4B, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>DeviceMetricR5<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.unit<span style="color: navy"><b> -&gt; </b></span>tgt.unit<span style="color: navy">;</span>
  src.parent<span style="color: navy"><b> -&gt; </b></span>tgt.device<span style="color: navy">;</span>
  src.operationalStatus<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.operationalStatus = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#DeviceMetricOperationalStatus'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.color<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.color = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#DeviceMetricColor'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.category<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.category = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#DeviceMetricCategory'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.calibration<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.calibration<b> as </b><span style="color: maroon">t</span><b> then </b>DeviceMetricCalibration<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.measurementFrequency -&gt; tgt.measurementFrequency;</span>
<span style="color: navy">}

</span><b>group </b>DeviceMetricCalibration<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<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">'#DeviceMetricCalibrationType'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.state<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.state = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#DeviceMetricCalibrationState'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.time<span style="color: navy"><b> -&gt; </b></span>tgt.time<span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <contained>
    <ConceptMap>
      <id value="DeviceMetricCalibrationState"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/4.3/metric-calibration-state"/>
        <target value="http://hl7.org/fhir/metric-calibration-state"/>
        <element>
          <code value="not-calibrated"/>
          <target>
            <code value="not-calibrated"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="calibration-required"/>
          <target>
            <code value="calibration-required"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="calibrated"/>
          <target>
            <code value="calibrated"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="unspecified"/>
          <target>
            <code value="unspecified"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="DeviceMetricCalibrationType"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/4.3/metric-calibration-type"/>
        <target value="http://hl7.org/fhir/metric-calibration-type"/>
        <element>
          <code value="unspecified"/>
          <target>
            <code value="unspecified"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="offset"/>
          <target>
            <code value="offset"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="gain"/>
          <target>
            <code value="gain"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="two-point"/>
          <target>
            <code value="two-point"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="DeviceMetricCategory"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/4.3/metric-category"/>
        <target value="http://hl7.org/fhir/metric-category"/>
        <element>
          <code value="measurement"/>
          <target>
            <code value="measurement"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="setting"/>
          <target>
            <code value="setting"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="calculation"/>
          <target>
            <code value="calculation"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="unspecified"/>
          <target>
            <code value="unspecified"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="DeviceMetricColor"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/4.3/metric-color"/>
        <target value="http://hl7.org/fhir/color-names"/>
        <element>
          <code value="black"/>
          <target>
            <code value="black"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="red"/>
          <target>
            <code value="red"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="green"/>
          <target>
            <code value="green"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="yellow"/>
          <target>
            <code value="yellow"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="blue"/>
          <target>
            <code value="blue"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="magenta"/>
          <target>
            <code value="magenta"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="cyan"/>
          <target>
            <code value="cyan"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="white"/>
          <target>
            <code value="white"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="DeviceMetricOperationalStatus"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/4.3/metric-operational-status"/>
        <target value="http://hl7.org/fhir/metric-operational-status"/>
        <element>
          <code value="on"/>
          <target>
            <code value="on"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="off"/>
          <target>
            <code value="off"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="standby"/>
          <target>
            <code value="standby"/>
            <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>
  <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/DeviceMetric4Bto5"/>
  <version value="5.1.0"/>
  <name value="DeviceMetric4Bto5"/>
  <title value="FML Conversion for DeviceMetric: R4B to R5"/>
  <status value="active"/>
  <date value="2024-04-27T18:40:24+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="FMLConversionforDeviceMetricR4BtoR5"/>
  <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/DeviceMetric"/>
    <mode value="source"/>
    <alias value="DeviceMetricR4B"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/DeviceMetric"/>
    <mode value="target"/>
    <alias value="DeviceMetricR5"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*4Bto5"/>
  <group>
    <name value="DeviceMetric"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="DeviceMetricR4B"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="DeviceMetricR5"/>
      <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="unit"/>
      <source>
        <context value="src"/>
        <element value="unit"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="unit"/>
        <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="device"/>
        <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="operationalStatus"/>
      <source>
        <context value="src"/>
        <element value="operationalStatus"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="operationalStatus"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#DeviceMetricOperationalStatus"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="color"/>
      <source>
        <context value="src"/>
        <element value="color"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="color"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#DeviceMetricColor"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="category"/>
      <source>
        <context value="src"/>
        <element value="category"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="category"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#DeviceMetricCategory"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="calibration"/>
      <source>
        <context value="src"/>
        <element value="calibration"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="calibration"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="DeviceMetricCalibration"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
      <documentation
                     value="src.measurementFrequency -&gt; tgt.measurementFrequency;"/>
    </rule>
  </group>
  <group>
    <name value="DeviceMetricCalibration"/>
    <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="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="type"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#DeviceMetricCalibrationType"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="state"/>
      <source>
        <context value="src"/>
        <element value="state"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="state"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#DeviceMetricCalibrationState"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="time"/>
      <source>
        <context value="src"/>
        <element value="time"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="time"/>
        <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>