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/Encounter4to5 | Version: 0.1.0 | |||
Standards status: Draft | Maturity Level: 1 | Computable Name: Encounter4to5 |
EncounterTransformsR4toR5
/// url = 'http://hl7.org/fhir/StructureMap/Encounter4to5' /// name = 'Encounter4to5' /// title = 'Encounter Transforms: R4 to R5' /// status = 'active' uses "http://hl7.org/fhir/4.0/Encounter" alias EncounterR4 as source uses "http://hl7.org/fhir/5.0/Encounter" alias EncounterR5 as target imports "http://hl7.org/fhir/StructureMap/*4to5" group Encounter(source src : EncounterR4, target tgt : EncounterR5) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/Encounter.status-R4toR5', 'code'); src.class as s -> tgt.class = create('CodeableConcept') as t, t.coding as tc then Coding(s, tc); src.priority -> tgt.priority; src.type -> tgt.type; src.serviceType -> tgt.serviceType; src.subject -> tgt.subject; src.episodeOfCare -> tgt.episodeOfCare; src.basedOn -> tgt.basedOn; src.partOf -> tgt.partOf; src.serviceProvider -> tgt.serviceProvider; src.participant as s -> tgt.participant as t then EncounterParticipant(s, t); src.appointment -> tgt.appointment; src.period -> tgt.actualPeriod; src.length -> tgt.length; src.diagnosis as s -> tgt.diagnosis as t then EncounterDiagnosis(s, t); src.account -> tgt.account; src.hospitalization as s -> tgt.admission as t then EncounterAdmission(s, t); src.location as s -> tgt.location as t then EncounterLocation(s, t); } group EncounterParticipant(source src, target tgt) extends BackboneElement { src.type -> tgt.type; src.period -> tgt.period; src.individual -> tgt.actor; } // group EncounterReason(source src, target tgt) extends BackboneElement { // src.use -> tgt.use; // src.value -> tgt.value; // } group EncounterDiagnosis(source src, target tgt) extends BackboneElement { src.condition -> tgt.condition; src.use -> tgt.use; } group EncounterAdmission(source src, target tgt) extends BackboneElement { src.preAdmissionIdentifier -> tgt.preAdmissionIdentifier; src.origin -> tgt.origin; src.admitSource -> tgt.admitSource; src.reAdmission -> tgt.reAdmission; src.destination -> tgt.destination; src.dischargeDisposition -> tgt.dischargeDisposition; } group EncounterLocation(source src, target tgt) extends BackboneElement { src.location -> tgt.location; src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/Encounter.location.status-R4toR5', 'code'); src.physicalType -> tgt.form; src.period -> tgt.period; }