This page is part of the FHIR Core Extensions Registry (v5.1.0: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. This is the current published version. For a full list of available versions, see the Directory of published versions
Official URL: http://hl7.org/fhir/StructureMap/DeviceRequest4to5 | Version: 5.1.0 | |||
Standards status: Trial-use | Maturity Level: 1 | Computable Name: DeviceRequest4to5 |
FMLConversionforDeviceRequestR4toR5
/// url = 'http://hl7.org/fhir/StructureMap/DeviceRequest4to5' /// name = 'DeviceRequest4to5' /// title = 'FML Conversion for DeviceRequest: R4 to R5' /// status = 'active' conceptmap "DeviceRequestStatus" { prefix s = "http://hl7.org/fhir/4.0/request-status" prefix t = "http://hl7.org/fhir/request-status" s:draft - t:draft s:active - t:active s:"on-hold" - t:"on-hold" s:revoked - t:revoked s:completed - t:completed s:"entered-in-error" - t:"entered-in-error" s:unknown - t:unknown } conceptmap "RequestIntent" { prefix s = "http://hl7.org/fhir/4.0/request-intent" prefix t = "http://hl7.org/fhir/request-intent" s:proposal - t:proposal s:plan - t:plan s:directive - t:directive s:order - t:order s:"original-order" - t:"original-order" s:"reflex-order" - t:"reflex-order" s:"filler-order" - t:"filler-order" s:"instance-order" - t:"instance-order" s:option - t:option } conceptmap "RequestPriority" { prefix s = "http://hl7.org/fhir/4.0/request-priority" prefix t = "http://hl7.org/fhir/request-priority" s:routine - t:routine s:urgent - t:urgent s:asap - t:asap s:stat - t:stat } uses "http://hl7.org/fhir/4.0/StructureDefinition/DeviceRequest" alias DeviceRequestR4 as source uses "http://hl7.org/fhir/StructureDefinition/DeviceRequest" alias DeviceRequestR5 as target imports "http://hl7.org/fhir/StructureMap/*4to5" group DeviceRequest(source src : DeviceRequestR4, target tgt : DeviceRequestR5) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.instantiatesCanonical -> tgt.instantiatesCanonical; src.instantiatesUri -> tgt.instantiatesUri; src.basedOn -> tgt.basedOn; src.groupIdentifier -> tgt.groupIdentifier; // src.replaces -> tgt.replaces; src.status as v -> tgt.status = translate(v, '#DeviceRequestStatus', 'code'); src.intent as v -> tgt.intent = translate(v, '#RequestIntent', 'code'); src.priority as v -> tgt.priority = translate(v, '#RequestPriority', 'code'); src.code : CodeableConcept -> tgt.code; // src.doNotPerform -> tgt.doNotPerform; src.code : Reference -> tgt.code; src.parameter as s -> tgt.parameter as t then DeviceRequestParameter(s, t); // src.quantity -> tgt.quantity; src.subject -> tgt.subject; src.encounter -> tgt.encounter; src.occurrence : dateTime -> tgt.occurrence; src.occurrence : Period -> tgt.occurrence; src.occurrence : Timing -> tgt.occurrence; src.authoredOn -> tgt.authoredOn; src.requester -> tgt.requester; src.performer -> tgt.performer; src.reasonCode -> tgt.reason; src.reasonReference -> tgt.reason; src.insurance -> tgt.insurance; // src.asNeeded -> tgt.asNeeded; src.supportingInfo -> tgt.supportingInfo; src.note -> tgt.note; src.relevantHistory -> tgt.relevantHistory; } group DeviceRequestParameter(source src, target tgt) extends BackboneElement { src.code -> tgt.code; src.value : CodeableConcept -> tgt.value; src.value : Quantity -> tgt.value; src.value : Range -> tgt.value; src.value : boolean -> tgt.value; }