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/MedicationRequest4to5 | Version: 0.1.0 | |||
Standards status: Draft | Maturity Level: 1 | Computable Name: MedicationRequest4to5 |
MedicationRequestTransformsR4toR5
/// url = 'http://hl7.org/fhir/StructureMap/MedicationRequest4to5' /// name = 'MedicationRequest4to5' /// title = 'MedicationRequest Transforms: R4 to R5' /// status = 'active' uses "http://hl7.org/fhir/4.0/MedicationRequest" alias MedicationRequestR4 as source uses "http://hl7.org/fhir/5.0/MedicationRequest" alias MedicationRequestR5 as target imports "http://hl7.org/fhir/StructureMap/*4to5" group MedicationRequest(source src : MedicationRequestR4, target tgt : MedicationRequestR5) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.basedOn -> tgt.basedOn; src.priorPrescription -> tgt.priorPrescription; src.groupIdentifier -> tgt.groupIdentifier; src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/MedicationRequest.status-R4toR5', 'code'); src.statusReason -> tgt.statusReason; src.intent as v -> tgt.intent = translate(v, 'http://hl7.org/fhir/ConceptMap/MedicationRequest.intent-R4toR5', 'code'); src.category -> tgt.category; src.priority as v -> tgt.priority = translate(v, 'http://hl7.org/fhir/ConceptMap/MedicationRequest.priority-R4toR5', 'code'); src.doNotPerform -> tgt.doNotPerform; src.medication : CodeableConcept -> tgt.medication; src.medication : Reference -> tgt.medication; src.subject -> tgt.subject; src.encounter -> tgt.encounter; src.supportingInformation -> tgt.supportingInformation; src.authoredOn -> tgt.authoredOn; src.requester -> tgt.requester; src.performerType -> tgt.performerType; src.performer -> tgt.performer; src.recorder -> tgt.recorder; src.reasonCode -> tgt.reason; src.reasonReference -> tgt.reason; src.courseOfTherapyType -> tgt.courseOfTherapyType; src.insurance -> tgt.insurance; src.note -> tgt.note; src.dispenseRequest as s -> tgt.dispenseRequest as t then MedicationRequestDispenseRequest(s, t); src.substitution as s -> tgt.substitution as t then MedicationRequestSubstitution(s, t); src.eventHistory -> tgt.eventHistory; } group MedicationRequestDispenseRequest(source src, target tgt) extends BackboneElement { src.initialFill as s -> tgt.initialFill as t then MedicationRequestDispenseRequestInitialFill(s, t); src.dispenseInterval -> tgt.dispenseInterval; src.validityPeriod -> tgt.validityPeriod; src.numberOfRepeatsAllowed -> tgt.numberOfRepeatsAllowed; src.quantity -> tgt.quantity; src.expectedSupplyDuration -> tgt.expectedSupplyDuration; src.performer -> tgt.dispenser; } group MedicationRequestDispenseRequestInitialFill(source src, target tgt) extends BackboneElement { src.quantity -> tgt.quantity; src.duration -> tgt.duration; } group MedicationRequestSubstitution(source src, target tgt) extends BackboneElement { src.allowed : boolean -> tgt.allowed; src.allowed : CodeableConcept -> tgt.allowed; src.reason -> tgt.reason; }