Release 4

This page is part of the FHIR Specification (v4.0.1: R4 - Mixed Normative and STU) in it's permanent home (it will always be available at this URL). 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 GroupMaturity Level: N/AStandards Status: InformativeSecurity Category: Anonymous Compartments: Not linked to any defined compartments

R3 : R4 Conversion maps for DeviceMetric.

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

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

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/*3to4"

group DeviceMetric(source src : DeviceMetricR3, target tgt : DeviceMetric) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.type -> tgt.type;
  src.unit -> tgt.unit;
  src.source -> tgt.source;
  src.parent -> tgt.parent;
  src.operationalStatus -> tgt.operationalStatus;
  src.color -> tgt.color;
  src.category -> tgt.category;
  src.measurementPeriod -> tgt.measurementPeriod;
  src.calibration as vs0 -> tgt.calibration as vt0 then {
    vs0.type -> vt0.type;
    vs0.state -> vt0.state;
    vs0.time -> vt0.time;
  };
}


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/3.0/StructureDefinition/DeviceMetric" alias DeviceMetricR3 as target

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

group DeviceMetric(source src : DeviceMetric, target tgt : DeviceMetricR3) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.type -> tgt.type;
  src.unit -> tgt.unit;
  src.source -> tgt.source;
  src.parent -> tgt.parent;
  src.operationalStatus -> tgt.operationalStatus;
  src.color -> tgt.color;
  src.category -> tgt.category;
  src.measurementPeriod -> tgt.measurementPeriod;
  src.calibration as vs0 -> tgt.calibration as vt0 then {
    vs0.type -> vt0.type;
    vs0.state -> vt0.state;
    vs0.time -> vt0.time;
  };
}


<p>No validation errors - all conversions are clean</p>