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 DeviceMetric: R4B to R5 - TTL Representation

Page standards status: Trial-use Maturity Level: 1

Raw ttl | Download

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "DeviceMetric4Bto5"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/DeviceMetric4Bto5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'DeviceMetric4Bto5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'FML Conversion for DeviceMetric: R4B to R5'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>conceptmap</b><span style=\"color: navy\"> &quot;</span>DeviceMetricCalibrationState<span style=\"color: navy\">&quot; {\r\n</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;\r\n</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;\r\n</span>\r\n  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>\r\n  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>\r\n  s<span style=\"color: navy\">:</span>calibrated <b>-</b> t<span style=\"color: navy\">:</span>calibrated\r\n  s<span style=\"color: navy\">:</span>unspecified <b>-</b> t<span style=\"color: navy\">:</span>unspecified\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> &quot;</span>DeviceMetricCalibrationType<span style=\"color: navy\">&quot; {\r\n</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;\r\n</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;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>unspecified <b>-</b> t<span style=\"color: navy\">:</span>unspecified\r\n  s<span style=\"color: navy\">:</span>offset <b>-</b> t<span style=\"color: navy\">:</span>offset\r\n  s<span style=\"color: navy\">:</span>gain <b>-</b> t<span style=\"color: navy\">:</span>gain\r\n  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>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> &quot;</span>DeviceMetricCategory<span style=\"color: navy\">&quot; {\r\n</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;\r\n</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;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>measurement <b>-</b> t<span style=\"color: navy\">:</span>measurement\r\n  s<span style=\"color: navy\">:</span>setting <b>-</b> t<span style=\"color: navy\">:</span>setting\r\n  s<span style=\"color: navy\">:</span>calculation <b>-</b> t<span style=\"color: navy\">:</span>calculation\r\n  s<span style=\"color: navy\">:</span>unspecified <b>-</b> t<span style=\"color: navy\">:</span>unspecified\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> &quot;</span>DeviceMetricColor<span style=\"color: navy\">&quot; {\r\n</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;\r\n</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;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>black <b>-</b> t<span style=\"color: navy\">:</span>black\r\n  s<span style=\"color: navy\">:</span>red <b>-</b> t<span style=\"color: navy\">:</span>red\r\n  s<span style=\"color: navy\">:</span>green <b>-</b> t<span style=\"color: navy\">:</span>green\r\n  s<span style=\"color: navy\">:</span>yellow <b>-</b> t<span style=\"color: navy\">:</span>yellow\r\n  s<span style=\"color: navy\">:</span>blue <b>-</b> t<span style=\"color: navy\">:</span>blue\r\n  s<span style=\"color: navy\">:</span>magenta <b>-</b> t<span style=\"color: navy\">:</span>magenta\r\n  s<span style=\"color: navy\">:</span>cyan <b>-</b> t<span style=\"color: navy\">:</span>cyan\r\n  s<span style=\"color: navy\">:</span>white <b>-</b> t<span style=\"color: navy\">:</span>white\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>conceptmap</b><span style=\"color: navy\"> &quot;</span>DeviceMetricOperationalStatus<span style=\"color: navy\">&quot; {\r\n</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;\r\n</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;\r\n</span>\r\n  s<span style=\"color: navy\">:</span>on <b>-</b> t<span style=\"color: navy\">:</span>on\r\n  s<span style=\"color: navy\">:</span>off <b>-</b> t<span style=\"color: navy\">:</span>off\r\n  s<span style=\"color: navy\">:</span>standby <b>-</b> t<span style=\"color: navy\">:</span>standby\r\n  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>\r\n<span style=\"color: navy\">}\r\n\r\n</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>\r\n<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>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/StructureMap/*4Bto5<span style=\"color: navy\">&quot;\r\n</span>\r\n<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\"> {\r\n</span>  src.identifier<span style=\"color: navy\"><b> -&gt; </b></span>tgt.identifier<span style=\"color: navy\">;</span>\r\n  src.type<span style=\"color: navy\"><b> -&gt; </b></span>tgt.type<span style=\"color: navy\">;</span>\r\n  src.unit<span style=\"color: navy\"><b> -&gt; </b></span>tgt.unit<span style=\"color: navy\">;</span>\r\n  src.parent<span style=\"color: navy\"><b> -&gt; </b></span>tgt.device<span style=\"color: navy\">;</span>\r\n  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>\r\n  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>\r\n  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>\r\n  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>\r\n<span style=\"color: navy\">}\r\n\r\n</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\"> {\r\n</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>\r\n  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>\r\n  src.time<span style=\"color: navy\"><b> -&gt; </b></span>tgt.time<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
  ] ; # 
  fhir:contained ( [
a fhir:ConceptMap ;
fhir:id [ fhir:v "DeviceMetricCalibrationState" ] ;
fhir:status [ fhir:v "active" ] ;
    ( fhir:group [
fhir:source [
fhir:v "http://hl7.org/fhir/4.3/metric-calibration-state"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/4.3/metric-calibration-state>       ] ;
fhir:target [
fhir:v "http://hl7.org/fhir/metric-calibration-state"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/metric-calibration-state>       ] ;
      ( fhir:element [
fhir:code [ fhir:v "not-calibrated" ] ;
        ( fhir:target [
fhir:code [ fhir:v "not-calibrated" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "calibration-required" ] ;
        ( fhir:target [
fhir:code [ fhir:v "calibration-required" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "calibrated" ] ;
        ( fhir:target [
fhir:code [ fhir:v "calibrated" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "unspecified" ] ;
        ( fhir:target [
fhir:code [ fhir:v "unspecified" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] )     ] )
  ] [
a fhir:ConceptMap ;
fhir:id [ fhir:v "DeviceMetricCalibrationType" ] ;
fhir:status [ fhir:v "active" ] ;
    ( fhir:group [
fhir:source [
fhir:v "http://hl7.org/fhir/4.3/metric-calibration-type"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/4.3/metric-calibration-type>       ] ;
fhir:target [
fhir:v "http://hl7.org/fhir/metric-calibration-type"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/metric-calibration-type>       ] ;
      ( fhir:element [
fhir:code [ fhir:v "unspecified" ] ;
        ( fhir:target [
fhir:code [ fhir:v "unspecified" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "offset" ] ;
        ( fhir:target [
fhir:code [ fhir:v "offset" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "gain" ] ;
        ( fhir:target [
fhir:code [ fhir:v "gain" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "two-point" ] ;
        ( fhir:target [
fhir:code [ fhir:v "two-point" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] )     ] )
  ] [
a fhir:ConceptMap ;
fhir:id [ fhir:v "DeviceMetricCategory" ] ;
fhir:status [ fhir:v "active" ] ;
    ( fhir:group [
fhir:source [
fhir:v "http://hl7.org/fhir/4.3/metric-category"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/4.3/metric-category>       ] ;
fhir:target [
fhir:v "http://hl7.org/fhir/metric-category"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/metric-category>       ] ;
      ( fhir:element [
fhir:code [ fhir:v "measurement" ] ;
        ( fhir:target [
fhir:code [ fhir:v "measurement" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "setting" ] ;
        ( fhir:target [
fhir:code [ fhir:v "setting" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "calculation" ] ;
        ( fhir:target [
fhir:code [ fhir:v "calculation" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "unspecified" ] ;
        ( fhir:target [
fhir:code [ fhir:v "unspecified" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] )     ] )
  ] [
a fhir:ConceptMap ;
fhir:id [ fhir:v "DeviceMetricColor" ] ;
fhir:status [ fhir:v "active" ] ;
    ( fhir:group [
fhir:source [
fhir:v "http://hl7.org/fhir/4.3/metric-color"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/4.3/metric-color>       ] ;
fhir:target [
fhir:v "http://hl7.org/fhir/color-names"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/color-names>       ] ;
      ( fhir:element [
fhir:code [ fhir:v "black" ] ;
        ( fhir:target [
fhir:code [ fhir:v "black" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "red" ] ;
        ( fhir:target [
fhir:code [ fhir:v "red" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "green" ] ;
        ( fhir:target [
fhir:code [ fhir:v "green" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "yellow" ] ;
        ( fhir:target [
fhir:code [ fhir:v "yellow" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "blue" ] ;
        ( fhir:target [
fhir:code [ fhir:v "blue" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "magenta" ] ;
        ( fhir:target [
fhir:code [ fhir:v "magenta" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "cyan" ] ;
        ( fhir:target [
fhir:code [ fhir:v "cyan" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "white" ] ;
        ( fhir:target [
fhir:code [ fhir:v "white" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] )     ] )
  ] [
a fhir:ConceptMap ;
fhir:id [ fhir:v "DeviceMetricOperationalStatus" ] ;
fhir:status [ fhir:v "active" ] ;
    ( fhir:group [
fhir:source [
fhir:v "http://hl7.org/fhir/4.3/metric-operational-status"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/4.3/metric-operational-status>       ] ;
fhir:target [
fhir:v "http://hl7.org/fhir/metric-operational-status"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/metric-operational-status>       ] ;
      ( fhir:element [
fhir:code [ fhir:v "on" ] ;
        ( fhir:target [
fhir:code [ fhir:v "on" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "off" ] ;
        ( fhir:target [
fhir:code [ fhir:v "off" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "standby" ] ;
        ( fhir:target [
fhir:code [ fhir:v "standby" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] [
fhir:code [ fhir:v "entered-in-error" ] ;
        ( fhir:target [
fhir:code [ fhir:v "entered-in-error" ] ;
fhir:relationship [ fhir:v "related-to" ]         ] )       ] )     ] )
  ] ) ; # 
  fhir:extension ( [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ;
fhir:value [ fhir:v "fhir" ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"^^xsd:anyURI ] ;
fhir:value [
fhir:v "1"^^xsd:integer ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"^^xsd:anyURI ] ;
fhir:value [
fhir:v "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions>         ]       ] )     ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"^^xsd:anyURI ] ;
fhir:value [
fhir:v "trial-use" ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom"^^xsd:anyURI ] ;
fhir:value [
fhir:v "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions>         ]       ] )     ]
  ] ) ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/StructureMap/DeviceMetric4Bto5"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "5.1.0-snapshot1"] ; # 
  fhir:name [ fhir:v "DeviceMetric4Bto5"] ; # 
  fhir:title [ fhir:v "FML Conversion for DeviceMetric: R4B to R5"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:date [ fhir:v "2024-03-12T13:30:10+11:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "HL7 International / FHIR Infrastructure"] ; # 
  fhir:contact ( [
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "FMLConversionforDeviceMetricR4BtoR5"] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
fhir:code [ fhir:v "001" ]     ] )
  ] ) ; # 
  fhir:structure ( [
fhir:url [
fhir:v "http://hl7.org/fhir/4.3/StructureDefinition/DeviceMetric"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/4.3/StructureDefinition/DeviceMetric>     ] ;
fhir:mode [ fhir:v "source" ] ;
fhir:alias [ fhir:v "DeviceMetricR4B" ]
  ] [
fhir:url [
fhir:v "http://hl7.org/fhir/StructureDefinition/DeviceMetric"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/DeviceMetric>     ] ;
fhir:mode [ fhir:v "target" ] ;
fhir:alias [ fhir:v "DeviceMetricR5" ]
  ] ) ; # 
  fhir:import ( [
fhir:v "http://hl7.org/fhir/StructureMap/*4Bto5"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureMap/*4Bto5>
  ] ) ; # 
  fhir:group ( [
fhir:name [ fhir:v "DeviceMetric" ] ;
fhir:extends [ fhir:v "DomainResource" ] ;
fhir:typeMode [ fhir:v "type-and-types" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:type [ fhir:v "DeviceMetricR4B" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:type [ fhir:v "DeviceMetricR5" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "identifier" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "identifier" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "type" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "unit" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "unit" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "parent" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "parent" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "device" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] [
fhir:name [ fhir:v "operationalStatus" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "operationalStatus" ] ;
fhir:variable [ fhir:v "v" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "operationalStatus" ] ;
fhir:transform [ fhir:v "translate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "v" ]         ] [
fhir:value [ fhir:v "#DeviceMetricOperationalStatus" ]         ] [
fhir:value [ fhir:v "code" ]         ] )       ] )     ] [
fhir:name [ fhir:v "color" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "color" ] ;
fhir:variable [ fhir:v "v" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "color" ] ;
fhir:transform [ fhir:v "translate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "v" ]         ] [
fhir:value [ fhir:v "#DeviceMetricColor" ]         ] [
fhir:value [ fhir:v "code" ]         ] )       ] )     ] [
fhir:name [ fhir:v "category" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "category" ] ;
fhir:variable [ fhir:v "v" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "category" ] ;
fhir:transform [ fhir:v "translate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "v" ]         ] [
fhir:value [ fhir:v "#DeviceMetricCategory" ]         ] [
fhir:value [ fhir:v "code" ]         ] )       ] )     ] [
fhir:name [ fhir:v "calibration" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "calibration" ] ;
fhir:variable [ fhir:v "s" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "calibration" ] ;
fhir:variable [ fhir:v "t" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DeviceMetricCalibration" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "s" ]         ] [
fhir:value [ fhir:v "t" ]         ] )       ] ) ;
fhir:documentation [ fhir:v "src.measurementFrequency -> tgt.measurementFrequency;" ]     ] )
  ] [
fhir:name [ fhir:v "DeviceMetricCalibration" ] ;
fhir:extends [ fhir:v "BackboneElement" ] ;
    ( fhir:input [
fhir:name [ fhir:v "src" ] ;
fhir:mode [ fhir:v "source" ]     ] [
fhir:name [ fhir:v "tgt" ] ;
fhir:mode [ fhir:v "target" ]     ] ) ;
    ( fhir:rule [
fhir:name [ fhir:v "type" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:variable [ fhir:v "v" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "type" ] ;
fhir:transform [ fhir:v "translate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "v" ]         ] [
fhir:value [ fhir:v "#DeviceMetricCalibrationType" ]         ] [
fhir:value [ fhir:v "code" ]         ] )       ] )     ] [
fhir:name [ fhir:v "state" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "state" ] ;
fhir:variable [ fhir:v "v" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "state" ] ;
fhir:transform [ fhir:v "translate" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "v" ]         ] [
fhir:value [ fhir:v "#DeviceMetricCalibrationState" ]         ] [
fhir:value [ fhir:v "code" ]         ] )       ] )     ] [
fhir:name [ fhir:v "time" ] ;
      ( fhir:source [
fhir:context [ fhir:v "src" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "vvv" ]       ] ) ;
      ( fhir:target [
fhir:context [ fhir:v "tgt" ] ;
fhir:element [ fhir:v "time" ] ;
fhir:variable [ fhir:v "vvv" ] ;
fhir:transform [ fhir:v "create" ]       ] ) ;
      ( fhir:dependent [
fhir:name [ fhir:v "DefaultMappingGroupAnonymousAlias" ] ;
        ( fhir:parameter [
fhir:value [ fhir:v "vvv" ]         ] [
fhir:value [ fhir:v "vvv" ]         ] )       ] )     ] )
  ] ) . #