FHIR Extensions Pack
5.1.0-ballot1 - Ballot for Release 5.1.0 International flag

This page is part of the FHIR Core Extensions Registry (v5.1.0-ballot: Releases Ballot 4) 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: R5 to R4 - JSON Representation

Page standards status: Trial-use Maturity Level: 1

Raw json | Download


{
  "resourceType" : "StructureMap",
  "id" : "DeviceMetric5to4",
  "text" : {
    "status" : "generated",
    "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/DeviceMetric5to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'DeviceMetric5to4'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'FML Conversion for DeviceMetric: R5 to R4'</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/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><b>  prefix </b>t<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R4/codesystem-metric-calibration-state.html\" title=\"DeviceMetricCalibrationState\">http://hl7.org/fhir/4.0/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/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><b>  prefix </b>t<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R4/codesystem-metric-calibration-type.html\" title=\"DeviceMetricCalibrationType\">http://hl7.org/fhir/4.0/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/R5/codesystem-metric-category.html\" title=\"Device Metric Category\">http://hl7.org/fhir/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/R4/codesystem-metric-category.html\" title=\"DeviceMetricCategory\">http://hl7.org/fhir/4.0/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/R5/codesystem-color-names.html\" title=\"Codes for Colors\">http://hl7.org/fhir/color-names</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/R4/codesystem-metric-color.html\" title=\"DeviceMetricColor\">http://hl7.org/fhir/4.0/metric-color</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/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><b>  prefix </b>t<span style=\"color: navy\"> = &quot;</span><a href=\"http://hl7.org/fhir/R4/codesystem-metric-operational-status.html\" title=\"DeviceMetricOperationalStatus\">http://hl7.org/fhir/4.0/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/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>source</b>\r\n<b>uses</b><span style=\"color: navy\"> &quot;</span><a href=\"http://hl7.org/fhir/R4/devicemetric.html\" title=\"DeviceMetric\">http://hl7.org/fhir/4.0/StructureDefinition/DeviceMetric</a><span style=\"color: navy\">&quot; </span><b>alias </b>DeviceMetricR4 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> &quot;</span>http://hl7.org/fhir/StructureMap/*5to4<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>DeviceMetricR5, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>DeviceMetricR4<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.device<span style=\"color: navy\"><b> -&gt; </b></span>tgt.parent<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>"
  },
  "contained" : [
    {
      "resourceType" : "ConceptMap",
      "id" : "DeviceMetricCalibrationState",
      "status" : "active",
      "group" : [
        {
          "source" : "http://hl7.org/fhir/metric-calibration-state",
          "target" : "http://hl7.org/fhir/4.0/metric-calibration-state",
          "element" : [
            {
              "code" : "not-calibrated",
              "target" : [
                {
                  "code" : "not-calibrated",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "calibration-required",
              "target" : [
                {
                  "code" : "calibration-required",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "calibrated",
              "target" : [
                {
                  "code" : "calibrated",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "unspecified",
              "target" : [
                {
                  "code" : "unspecified",
                  "relationship" : "related-to"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "resourceType" : "ConceptMap",
      "id" : "DeviceMetricCalibrationType",
      "status" : "active",
      "group" : [
        {
          "source" : "http://hl7.org/fhir/metric-calibration-type",
          "target" : "http://hl7.org/fhir/4.0/metric-calibration-type",
          "element" : [
            {
              "code" : "unspecified",
              "target" : [
                {
                  "code" : "unspecified",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "offset",
              "target" : [
                {
                  "code" : "offset",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "gain",
              "target" : [
                {
                  "code" : "gain",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "two-point",
              "target" : [
                {
                  "code" : "two-point",
                  "relationship" : "related-to"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "resourceType" : "ConceptMap",
      "id" : "DeviceMetricCategory",
      "status" : "active",
      "group" : [
        {
          "source" : "http://hl7.org/fhir/metric-category",
          "target" : "http://hl7.org/fhir/4.0/metric-category",
          "element" : [
            {
              "code" : "measurement",
              "target" : [
                {
                  "code" : "measurement",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "setting",
              "target" : [
                {
                  "code" : "setting",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "calculation",
              "target" : [
                {
                  "code" : "calculation",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "unspecified",
              "target" : [
                {
                  "code" : "unspecified",
                  "relationship" : "related-to"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "resourceType" : "ConceptMap",
      "id" : "DeviceMetricColor",
      "status" : "active",
      "group" : [
        {
          "source" : "http://hl7.org/fhir/color-names",
          "target" : "http://hl7.org/fhir/4.0/metric-color",
          "element" : [
            {
              "code" : "black",
              "target" : [
                {
                  "code" : "black",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "red",
              "target" : [
                {
                  "code" : "red",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "green",
              "target" : [
                {
                  "code" : "green",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "yellow",
              "target" : [
                {
                  "code" : "yellow",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "blue",
              "target" : [
                {
                  "code" : "blue",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "magenta",
              "target" : [
                {
                  "code" : "magenta",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "cyan",
              "target" : [
                {
                  "code" : "cyan",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "white",
              "target" : [
                {
                  "code" : "white",
                  "relationship" : "related-to"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "resourceType" : "ConceptMap",
      "id" : "DeviceMetricOperationalStatus",
      "status" : "active",
      "group" : [
        {
          "source" : "http://hl7.org/fhir/metric-operational-status",
          "target" : "http://hl7.org/fhir/4.0/metric-operational-status",
          "element" : [
            {
              "code" : "on",
              "target" : [
                {
                  "code" : "on",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "off",
              "target" : [
                {
                  "code" : "off",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "standby",
              "target" : [
                {
                  "code" : "standby",
                  "relationship" : "related-to"
                }
              ]
            },
            {
              "code" : "entered-in-error",
              "target" : [
                {
                  "code" : "entered-in-error",
                  "relationship" : "related-to"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode" : "fhir"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger" : 1,
      "_valueInteger" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"
          }
        ]
      }
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode" : "trial-use",
      "_valueCode" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"
          }
        ]
      }
    }
  ],
  "url" : "http://hl7.org/fhir/StructureMap/DeviceMetric5to4",
  "version" : "5.1.0-ballot1",
  "name" : "DeviceMetric5to4",
  "title" : "FML Conversion for DeviceMetric: R5 to R4",
  "status" : "active",
  "date" : "2023-12-19T08:40:03+11:00",
  "publisher" : "HL7 International / FHIR Infrastructure",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/fiwg"
        }
      ]
    }
  ],
  "description" : "FMLConversionforDeviceMetricR5toR4",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "structure" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/DeviceMetric",
      "mode" : "source",
      "alias" : "DeviceMetricR5"
    },
    {
      "url" : "http://hl7.org/fhir/4.0/StructureDefinition/DeviceMetric",
      "mode" : "target",
      "alias" : "DeviceMetricR4"
    }
  ],
  "import" : [
    "http://hl7.org/fhir/StructureMap/*5to4"
  ],
  "group" : [
    {
      "name" : "DeviceMetric",
      "extends" : "DomainResource",
      "typeMode" : "type-and-types",
      "input" : [
        {
          "name" : "src",
          "type" : "DeviceMetricR5",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "type" : "DeviceMetricR4",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "identifier",
          "source" : [
            {
              "context" : "src",
              "element" : "identifier",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "identifier",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "type",
          "source" : [
            {
              "context" : "src",
              "element" : "type",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "type",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "unit",
          "source" : [
            {
              "context" : "src",
              "element" : "unit",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "unit",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "device",
          "source" : [
            {
              "context" : "src",
              "element" : "device",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "parent",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        },
        {
          "name" : "operationalStatus",
          "source" : [
            {
              "context" : "src",
              "element" : "operationalStatus",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "operationalStatus",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "#DeviceMetricOperationalStatus"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        },
        {
          "name" : "color",
          "source" : [
            {
              "context" : "src",
              "element" : "color",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "color",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "#DeviceMetricColor"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        },
        {
          "name" : "category",
          "source" : [
            {
              "context" : "src",
              "element" : "category",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "category",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "#DeviceMetricCategory"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        },
        {
          "name" : "calibration",
          "source" : [
            {
              "context" : "src",
              "element" : "calibration",
              "variable" : "s"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "calibration",
              "variable" : "t"
            }
          ],
          "dependent" : [
            {
              "name" : "DeviceMetricCalibration",
              "parameter" : [
                {
                  "valueId" : "s"
                },
                {
                  "valueId" : "t"
                }
              ]
            }
          ],
          "documentation" : "src.measurementFrequency -> tgt.measurementFrequency;"
        }
      ]
    },
    {
      "name" : "DeviceMetricCalibration",
      "extends" : "BackboneElement",
      "input" : [
        {
          "name" : "src",
          "mode" : "source"
        },
        {
          "name" : "tgt",
          "mode" : "target"
        }
      ],
      "rule" : [
        {
          "name" : "type",
          "source" : [
            {
              "context" : "src",
              "element" : "type",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "type",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "#DeviceMetricCalibrationType"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        },
        {
          "name" : "state",
          "source" : [
            {
              "context" : "src",
              "element" : "state",
              "variable" : "v"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "state",
              "transform" : "translate",
              "parameter" : [
                {
                  "valueId" : "v"
                },
                {
                  "valueString" : "#DeviceMetricCalibrationState"
                },
                {
                  "valueString" : "code"
                }
              ]
            }
          ]
        },
        {
          "name" : "time",
          "source" : [
            {
              "context" : "src",
              "element" : "time",
              "variable" : "vvv"
            }
          ],
          "target" : [
            {
              "context" : "tgt",
              "element" : "time",
              "variable" : "vvv",
              "transform" : "create"
            }
          ],
          "dependent" : [
            {
              "name" : "DefaultMappingGroupAnonymousAlias",
              "parameter" : [
                {
                  "valueId" : "vvv"
                },
                {
                  "valueId" : "vvv"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}