This page is part of the FHIR Specification (v3.0.2: STU 3). 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: R4B R4 R3
Orders and Observations Work Group | Maturity Level: N/A | Ballot Status: Informative | Compartments: Device, Patient |
R2 : R3 Converson maps for DeviceUseStatement.
Functional status for this map: 1 test that all execute ok. All tests pass round-trip testing and 1 r3 resources are invalid (1 errors). (see documentation)
map "http://hl7.org/fhir/StructureMap/DeviceUseStatement2to3" = "R2 to R3 Conversions for DeviceUseStatement" uses "http://hl7.org/fhir/DSTU2/StructureDefinition/DeviceUseStatement" alias DeviceUseStatementR2 as source uses "http://hl7.org/fhir/StructureDefinition/DeviceUseStatement" alias DeviceUseStatement as target imports "http://hl7.org/fhir/StructureMap/*2to3" group for type+types DeviceUseStatement extends DomainResource input src : DeviceUseStatementR2 as source input tgt : DeviceUseStatement as target "DeviceUseStatement-bodySite" : for src.bodySiteCodeableConcept make tgt.bodySite "DeviceUseStatement-whenUsed" : for src.whenUsed make tgt.whenUsed "DeviceUseStatement-device" : for src.device make tgt.device "DeviceUseStatement-identifier" : for src.identifier make tgt.identifier "DeviceUseStatement-indication" : for src.indication make tgt.indication "DeviceUseStatement-notes" : for src.notes as v make tgt.note as n, n.text = v "DeviceUseStatement-recordedOn" : for src.recordedOn make tgt.recordedOn "DeviceUseStatement-subject" : for src.subject make tgt.subject "DeviceUseStatement-timing" : for src.timing make tgt.timing endgroup
map "http://hl7.org/fhir/StructureMap/DeviceUseStatement3to2" = "R3 to R2 Conversion for DeviceUseStatement" uses "http://hl7.org/fhir/StructureDefinition/DeviceUseStatement" alias DeviceUseStatement as source uses "http://hl7.org/fhir/DSTU2/StructureDefinition/DeviceUseStatement" alias DeviceUseStatementR2 as target imports "http://hl7.org/fhir/StructureMap/*3to2" group for type+types DeviceUseStatement extends DomainResource input src : DeviceUseStatement as source input tgt : DeviceUseStatementR2 as target "DeviceUseStatement-bodySite-CodeableConcept" : for src.bodySite : CodeableConcept as vs make tgt.bodySite = create("CodeableConcept") as vt then CodeableConcept(vs, vt) "DeviceUseStatement-whenUsed" : for src.whenUsed make tgt.whenUsed "DeviceUseStatement-device" : for src.device make tgt.device "DeviceUseStatement-identifier" : for src.identifier make tgt.identifier "DeviceUseStatement-indication" : for src.indication make tgt.indication "DeviceUseStatement-notes" : for src.note as n then dusNote(n, tgt) "DeviceUseStatement-recordedOn" : for src.recordedOn make tgt.recordedOn "DeviceUseStatement-subject" : for src.subject make tgt.subject "DeviceUseStatement-timing" : for src.timing make tgt.timing endgroup group dusNote extends BackboneElement input src as source input tgt as target "DeviceUseStatement.note-notes" : for src.text make tgt.notes endgroup
example |
|