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/ServiceRequestRR4to3 | Version: 0.1.0 | |||
Standards status: Draft | Maturity Level: 1 | Computable Name: ServiceRequestRR4to3 |
ServiceRequestTransformsR4toR3
/// url = 'http://hl7.org/fhir/StructureMap/ServiceRequestRR4to3' /// name = 'ServiceRequestRR4to3' /// title = 'ServiceRequest Transforms: R4 to R3' /// status = 'active' uses "http://hl7.org/fhir/4.0/ServiceRequest" alias ServiceRequest as source uses "http://hl7.org/fhir/3.0/ReferralRequest" alias ReferralRequestR3 as target imports "http://hl7.org/fhir/StructureMap/*4to3" group ServiceRequest(source src : ReferralRequestR3, target tgt : ServiceRequest) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.instantiatesCanonical -> tgt.definition; src.basedOn -> tgt.basedOn; src.replaces -> tgt.replaces; src.requisition -> tgt.groupIdentifier; src.status -> tgt.status; src.intent -> tgt.intent; src.priority -> tgt.priority; src.orderDetail -> tgt.serviceRequested; src.code -> tgt.type; src.subject -> tgt.subject; src.encounter -> tgt.context; src.occurrence : dateTime as vs -> tgt.occurrence = create('dateTime') as vt0 then dateTime(vs, vt0); src.occurrence : Period as vs -> tgt.occurrence = create('Period') as vt0 then Period(vs, vt0); src.authoredOn -> tgt.authoredOn; src.requester as vs -> tgt.requester as vt then requester(vs, vt); src.performerType -> tgt.specialty; src.performer -> tgt.recipient; src.reasonCode -> tgt.reasonCode; src.reasonReference -> tgt.reasonReference; src.orderDetail as cc then { cc.text -> tgt.description; }; src.extension as e where url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-ReferralRequest.description' then { e.value -> tgt.description; }; src.supportingInfo -> tgt.supportingInfo; src.note -> tgt.note; src.relevantHistory -> tgt.relevantHistory; } group requester(source src, target tgt) { src -> tgt.agent as v then Reference(src, v) "agent"; src.extension as e where url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-ReferralRequest.requester.onBehalfOf' then { e.value -> tgt.onBehalfOf; }; }