This page is part of the FHIR Specification (v3.2.0: R4 Ballot 1). 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, Practitioner |
R2 : R3 Conversion maps for Media.
Functional status for this map: 3 tests that all execute ok. All tests pass round-trip testing and all r3 resources are valid. (see documentation)
map "http://hl7.org/fhir/StructureMap/Media2to3" = "R2 to R3 Conversions for Media" uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Media" alias MediaR2 as source uses "http://hl7.org/fhir/StructureDefinition/Media" alias Media as target imports "http://hl7.org/fhir/StructureMap/primitives2to3" imports "http://hl7.org/fhir/StructureMap/DomainResource2to3" imports "http://hl7.org/fhir/StructureMap/Attachment2to3" imports "http://hl7.org/fhir/StructureMap/Identifier2to3" imports "http://hl7.org/fhir/StructureMap/Reference2to3" imports "http://hl7.org/fhir/StructureMap/CodeableConcept2to3" group for type+types Media extends DomainResource input src : MediaR2 as source input tgt : Media as target "Media-identifier" : for src.identifier make tgt.identifier "Media-type" : for src.type make tgt.type "Media-subtype" : for src.subtype make tgt.subtype "Media-view" : for src.view make tgt.view "Media-subject" : for src.subject make tgt.subject "Media-operator" : for src.operator make tgt.operator "Media-deviceName" : for src.deviceName as v make tgt.device as d, d.display = v "Media-height" : for src.height make tgt.height "Media-width" : for src.width make tgt.width "Media-frames" : for src.frames make tgt.frames "Media-duration" : for src.duration make tgt.duration "Media-content" : for src.content make tgt.content endgroup
map "http://hl7.org/fhir/StructureMap/Media3to2" = "R3 to R2 Conversion for Media" uses "http://hl7.org/fhir/StructureDefinition/Media" alias Media as source uses "http://hl7.org/fhir/DSTU2/StructureDefinition/Media" alias MediaR2 as target imports "http://hl7.org/fhir/StructureMap/primitives3to2" imports "http://hl7.org/fhir/StructureMap/DomainResource3to2" imports "http://hl7.org/fhir/StructureMap/Attachment3to2" imports "http://hl7.org/fhir/StructureMap/Identifier3to2" imports "http://hl7.org/fhir/StructureMap/Reference3to2" imports "http://hl7.org/fhir/StructureMap/CodeableConcept3to2" group for type+types Media extends DomainResource input src : Media as source input tgt : MediaR2 as target "Media-identifier" : for src.identifier make tgt.identifier "Media-type" : for src.type make tgt.type "Media-subtype" : for src.subtype make tgt.subtype "Media-view" : for src.view make tgt.view "Media-subject" : for src.subject make tgt.subject "Media-operator" : for src.operator make tgt.operator "Media-deviceName" : for src.device as v then { "Media-deviceName-inner" : for v.display make tgt.deviceName } "Media-height" : for src.height make tgt.height "Media-width" : for src.width make tgt.width "Media-frames" : for src.frames make tgt.frames "Media-duration" : for src.duration make tgt.duration "Media-content" : for src.content make tgt.content endgroup