Release 5 Ballot

This page is part of the FHIR Specification (v5.0.0-ballot: R5 Ballot - see ballot notes). 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

Orders and Observations icon Work GroupMaturity Level: N/AStandards Status: InformativeSecurity Category: Business Compartments: Patient

R4 : R5 Conversion maps for Device.

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

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

uses "http://hl7.org/fhir/3.0/StructureDefinition/Device" alias DeviceR3 as source
uses "http://hl7.org/fhir/StructureDefinition/Device" alias Device as target

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

group Device(source src : DeviceR3, target tgt : Device) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.udi as vs0 -> tgt.udiCarrier as vt0 then {
    vs0.deviceIdentifier -> vt0.deviceIdentifier;
    vs0.name as vs ->  tgt.deviceName as vt,  vt.name = vs,  vt.type = 'udi-label-name';
    vs0.jurisdiction -> vt0.jurisdiction;
    vs0.carrierHRF -> vt0.carrierHRF;
    vs0.carrierAIDC -> vt0.carrierAIDC;
    vs0.issuer -> vt0.issuer;
    vs0.entryType -> vt0.entryType;
  };
  src.status -> tgt.status;
  src.type -> tgt.type;
  src.lotNumber -> tgt.lotNumber;
  src.manufacturer -> tgt.manufacturer;
  src.manufactureDate -> tgt.manufactureDate;
  src.expirationDate -> tgt.expirationDate;
  src.model -> tgt.modelNumber;
  src.version as vs ->  tgt.version as vt,  vt.value = vs;
  src.patient -> tgt.patient;
  src.owner -> tgt.owner;
  src.contact -> tgt.contact;
  src.location -> tgt.location;
  src.url -> tgt.url;
  src.note -> tgt.note;
  src.safety -> tgt.safety;
}


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

uses "http://hl7.org/fhir/StructureDefinition/Device" alias Device as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/Device" alias DeviceR3 as target

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

group Device(source src : Device, target tgt : DeviceR3) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.udiCarrier as vs0 -> tgt.udi as vt0 then {
    vs0.deviceIdentifier -> vt0.deviceIdentifier;
    vs0.jurisdiction -> vt0.jurisdiction;
    vs0.carrierHRF -> vt0.carrierHRF;
    vs0.carrierAIDC -> vt0.carrierAIDC;
    vs0.issuer -> vt0.issuer;
    vs0.entryType -> vt0.entryType;
  };
  src.status -> tgt.status;
  src.type -> tgt.type;
  src.lotNumber -> tgt.lotNumber;
  src.manufacturer -> tgt.manufacturer;
  src.manufactureDate -> tgt.manufactureDate;
  src.expirationDate -> tgt.expirationDate;
  src.modelNumber -> tgt.model;
  src.version as vs -> tgt as vt then {
    vs.value -> tgt.version;
  };
  src.deviceName as vs -> tgt.udi as vt then {
    vs.name -> vt.name;
  };
  src.patient -> tgt.patient;
  src.owner -> tgt.owner;
  src.contact -> tgt.contact;
  src.location -> tgt.location;
  src.url -> tgt.url;
  src.note -> tgt.note;
  src.safety -> tgt.safety;
}


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