FHIR Cross-Version Mapping Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-cross-version/ and changes regularly. See the Directory of published versions
Official URL: http://hl7.org/fhir/StructureMap/Media4to3 | Version: 0.1.0 | |||
Standards status: Draft | Maturity Level: 1 | Computable Name: Media4to3 |
MediaTransformsR4toR3
/// url = 'http://hl7.org/fhir/StructureMap/Media4to3' /// name = 'Media4to3' /// title = 'Media Transforms: R4 to R3' /// status = 'active' uses "http://hl7.org/fhir/4.0/Media" alias Media as source uses "http://hl7.org/fhir/3.0/Media" alias MediaR3 as target imports "http://hl7.org/fhir/StructureMap/*4to3" group Media(source src : MediaR3, target tgt : Media) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.basedOn -> tgt.basedOn; src.type as vs0 then { vs0.coding as c where system = 'http://terminology.hl7.org/CodeSystem/media-type' then { c.code -> tgt.type; }; }; src.modality -> tgt.subtype; src.view -> tgt.view; src.subject -> tgt.subject; src.encounter -> tgt.context; src.created : dateTime as vs -> tgt.occurrence = create('dateTime') as vt then dateTime(vs, vt); src.created : Period as vs -> tgt.occurrence = create('Period') as vt then Period(vs, vt); src.operator -> tgt.operator; src.reasonCode -> tgt.reasonCode; src.bodySite -> tgt.bodySite; src.device -> tgt.device; src.height -> tgt.height; src.width -> tgt.width; src.frames -> tgt.frames; src.duration -> tgt.duration; src.content -> tgt.content; src.note -> tgt.note; }