This page is part of the FHIR Core Extensions Registry (v1.0.0: Releases) based on FHIR v5.0.0. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions
Official URL: http://hl7.org/fhir/StructureMap/Observation5to4 | Version: 1.0.0 | |||
Standards status: Trial-use | Maturity Level: 1 | Computable Name: Observation5to4 |
FMLConversionforObservationR5toR4
/// url = 'http://hl7.org/fhir/StructureMap/Observation5to4' /// name = 'Observation5to4' /// title = 'FML Conversion for Observation: R5 to R4' /// status = 'active' conceptmap "ObservationStatus" { prefix s = "http://hl7.org/fhir/observation-status" prefix t = "http://hl7.org/fhir/4.0/observation-status" s:registered - t:registered s:preliminary - t:preliminary s:final - t:final s:amended - t:amended s:corrected - t:corrected s:cancelled - t:cancelled s:"entered-in-error" - t:"entered-in-error" s:unknown - t:unknown } uses "http://hl7.org/fhir/StructureDefinition/Observation" alias ObservationR5 as source uses "http://hl7.org/fhir/4.0/StructureDefinition/Observation" alias ObservationR4 as target imports "http://hl7.org/fhir/StructureMap/*5to4" group Observation(source src : ObservationR5, target tgt : ObservationR4) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.basedOn -> tgt.basedOn; // src.instantiates : canonical -> tgt.instantiates; src.partOf -> tgt.partOf; // src.triggeredBy as s -> tgt.triggeredBy as t then ObservationTriggeredBy(s,t); src.status as v -> tgt.status = translate(v, '#ObservationStatus', 'code'); src.category -> tgt.category; src.code -> tgt.code; src.subject -> tgt.subject; src.focus -> tgt.focus; src.encounter -> tgt.encounter; src.effective : dateTime -> tgt.effective; src.effective : Period -> tgt.effective; src.effective : Timing -> tgt.effective; src.effective : instant -> tgt.effective; src.issued -> tgt.issued; src.performer -> tgt.performer; src.value : Quantity -> tgt.value; src.value : CodeableConcept -> tgt.value; src.value : string -> tgt.value; src.value : boolean -> tgt.value; src.value : integer -> tgt.value; src.value : Range -> tgt.value; src.value : Ratio -> tgt.value; src.value : SampledData -> tgt.value; src.value : time -> tgt.value; src.value : dateTime -> tgt.value; src.value : Period -> tgt.value; src.dataAbsentReason -> tgt.dataAbsentReason; // src.value : Attachment -> tgt.value; src.interpretation -> tgt.interpretation; src.note -> tgt.note; src.bodySite -> tgt.bodySite; src.method -> tgt.method; // src.bodyStructure -> tgt.bodyStructure; src.specimen -> tgt.specimen; src.device -> tgt.device; src.referenceRange as s -> tgt.referenceRange as t then ObservationReferenceRange(s, t); src.hasMember -> tgt.hasMember; src.derivedFrom -> tgt.derivedFrom; src.component as s -> tgt.component as t then ObservationComponent(s, t); } // group ObservationTriggeredBy(source src, target tgt) extends BackboneElement { // src.observation -> tgt.observation; // src.type as v -> tgt.type = translate(v, '#TriggeredByType', 'code'); // src.reason -> tgt.reason; // } group ObservationReferenceRange(source src, target tgt) extends BackboneElement { src.low -> tgt.low; src.high -> tgt.high; src.type -> tgt.type; // src.normalValue -> tgt.normalValue; src.appliesTo -> tgt.appliesTo; src.age -> tgt.age; src.text -> tgt.text; } group ObservationComponent(source src, target tgt) extends BackboneElement { src.code -> tgt.code; src.value : Quantity -> tgt.value; src.value : CodeableConcept -> tgt.value; src.value : string -> tgt.value; src.value : boolean -> tgt.value; src.value : integer -> tgt.value; src.value : Range -> tgt.value; src.value : Ratio -> tgt.value; src.value : SampledData -> tgt.value; src.value : time -> tgt.value; src.value : dateTime -> tgt.value; src.value : Period -> tgt.value; src.dataAbsentReason -> tgt.dataAbsentReason; // src.value : Attachment -> tgt.value; src.interpretation -> tgt.interpretation; }