R4 Ballot #1 #2 (Mixed Normative/Trial use)

This page is part of the FHIR Specification (v3.3.0: (v3.5.0: R4 Ballot 2). #2). The current version which supercedes this version is 5.0.0 . For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Health Care Devices Work Group Maturity Level : N/A Ballot Status : Informative Compartments : Device Not linked to any defined compartments

R2 : R3 : R4 Conversion maps for DeviceMetric.

Functional status for this map: 1 test that all of which 1 fail to execute ok. All tests pass round-trip testing and all r3 resources are valid. . ( see documentation)

map "http://hl7.org/fhir/StructureMap/DeviceMetric2to3" = "R2 to R3 Conversions for DeviceMetric"

map "http://hl7.org/fhir/StructureMap/DeviceMetric3to4" = "R3 to R4 Conversions for DeviceMetric"


uses "http://hl7.org/fhir/DSTU2/StructureDefinition/DeviceMetric" alias DeviceMetricR2 as source


uses "http://hl7.org/fhir/3.0/StructureDefinition/DeviceMetric" alias DeviceMetricR3 as source

uses "http://hl7.org/fhir/StructureDefinition/DeviceMetric" alias DeviceMetric as target

imports "http://hl7.org/fhir/StructureMap/*2to3"

imports "http://hl7.org/fhir/StructureMap/*3to4"


group for type+types  DeviceMetric extends DomainResource
  input src : DeviceMetricR2 as source
  input tgt : DeviceMetric as target


  "DeviceMetric-type" : for src.type make tgt.type
  "DeviceMetric-identifier" : for src.identifier make tgt.identifier
  "DeviceMetric-unit" : for src.unit make tgt.unit
  "DeviceMetric-source" : for src.source make tgt.source
  "DeviceMetric-parent" : for src.parent make tgt.parent
  "DeviceMetric-operationalStatus" : for src.operationalStatus make tgt.operationalStatus
  "DeviceMetric-color" : for src.color make tgt.color
  "DeviceMetric-category" : for src.category make tgt.category
  "DeviceMetric-measurementPeriod" : for src.measurementPeriod make tgt.measurementPeriod
  "DeviceMetric-calibration" : for src.calibration as vs0 make tgt.calibration as vt0 then dvmCalibration(vs0, vt0)
endgroup


group dvmCalibration extends BackboneElement
  input src as source
  input tgt as target

group DeviceMetric extends DomainResource
  input src : DeviceMetricR3 as source
  input tgt : DeviceMetric as target


  "DeviceMetric.calibration-type" : for src.type make tgt.type
  "DeviceMetric.calibration-state" : for src.state make tgt.state
  "DeviceMetric.calibration-time" : for src.time make tgt.time

  "DeviceMetric.identifier" : for src.identifier as vs make tgt.identifier as vt
  "DeviceMetric.type" : for src.type as vs make tgt.type as vt
  "DeviceMetric.unit" : for src.unit as vs make tgt.unit as vt
  "DeviceMetric.source" : for src.source as vs make tgt.source as vt
  "DeviceMetric.parent" : for src.parent as vs make tgt.parent as vt
  "DeviceMetric.operationalStatus" : for src.operationalStatus as vs make tgt.operationalStatus as vt
  "DeviceMetric.color" : for src.color as vs make tgt.color as vt
  "DeviceMetric.category" : for src.category as vs make tgt.category as vt
  "DeviceMetric.measurementPeriod" : for src.measurementPeriod as vs make tgt.measurementPeriod as vt
  "DeviceMetric.calibration" : for src.calibration as vs0 make tgt.calibration as vt0 then {
    "DeviceMetric.calibration.type" : for vs0.type as vs make vt0.type as vt
    "DeviceMetric.calibration.state" : for vs0.state as vs make vt0.state as vt
    "DeviceMetric.calibration.time" : for vs0.time as vs make vt0.time as vt
  }

endgroup



map "http://hl7.org/fhir/StructureMap/DeviceMetric3to2" = "R3 to R2 Conversion for DeviceMetric"

map "http://hl7.org/fhir/StructureMap/DeviceMetric4to3" = "R4 to R3 Conversion for DeviceMetric"



uses "http://hl7.org/fhir/StructureDefinition/DeviceMetric" alias DeviceMetric as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/DeviceMetric" alias DeviceMetricR2 as target

uses "http://hl7.org/fhir/3.0/StructureDefinition/DeviceMetric" alias DeviceMetricR3 as target


imports "http://hl7.org/fhir/StructureMap/*3to2"

imports "http://hl7.org/fhir/StructureMap/*4to3"


group for type+types  DeviceMetric extends DomainResource
  input src : DeviceMetric as source
  input tgt : DeviceMetricR2 as target


  "DeviceMetric-type" : for src.type make tgt.type
  "DeviceMetric-identifier" : for src.identifier make tgt.identifier
  "DeviceMetric-unit" : for src.unit make tgt.unit
  "DeviceMetric-source" : for src.source make tgt.source
  "DeviceMetric-parent" : for src.parent make tgt.parent
  "DeviceMetric-operationalStatus" : for src.operationalStatus make tgt.operationalStatus
  "DeviceMetric-color" : for src.color make tgt.color
  "DeviceMetric-category" : for src.category make tgt.category
  "DeviceMetric-measurementPeriod" : for src.measurementPeriod make tgt.measurementPeriod
  "DeviceMetric-calibration" : for src.calibration as vs0 make tgt.calibration as vt0 then dvmCalibration(vs0, vt0)
endgroup


group dvmCalibration extends BackboneElement
  input src as source
  input tgt as target

group DeviceMetric extends DomainResource
  input src : DeviceMetric as source
  input tgt : DeviceMetricR3 as target


  "DeviceMetric.calibration-type" : for src.type make tgt.type
  "DeviceMetric.calibration-state" : for src.state make tgt.state
  "DeviceMetric.calibration-time" : for src.time make tgt.time

  "DeviceMetric.identifier" : for src.identifierFirstRep as vs make tgt.identifier as vt
  "DeviceMetric.type" : for src.type as vs make tgt.type as vt
  "DeviceMetric.unit" : for src.unit as vs make tgt.unit as vt
  "DeviceMetric.source" : for src.source as vs make tgt.source as vt
  "DeviceMetric.parent" : for src.parent as vs make tgt.parent as vt
  "DeviceMetric.operationalStatus" : for src.operationalStatus as vs make tgt.operationalStatus as vt
  "DeviceMetric.color" : for src.color as vs make tgt.color as vt
  "DeviceMetric.category" : for src.category as vs make tgt.category as vt
  "DeviceMetric.measurementPeriod" : for src.measurementPeriod as vs make tgt.measurementPeriod as vt
  "DeviceMetric.calibration" : for src.calibration as vs0 make tgt.calibration as vt0 then {
    "DeviceMetric.calibration.type" : for vs0.type as vs make vt0.type as vt
    "DeviceMetric.calibration.state" : for vs0.state as vs make vt0.state as vt
    "DeviceMetric.calibration.time" : for vs0.time as vs make vt0.time as vt
  }

endgroup