This page is part of the FHIR Specification (v3.5.0: R4 Ballot #2). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3
Patient Administration Work Group | Maturity Level: N/A | Ballot Status: Informative | Compartments: Encounter, Patient, Practitioner, RelatedPerson |
R3 : R4 Conversion maps for Encounter.
Functional status for this map: 10 tests of which 1 fail to execute. 9 fail round-trip testing and 9 r3 resources are invalid (0 errors). (see documentation)
map "http://hl7.org/fhir/StructureMap/Encounter3to4" = "R3 to R4 Conversions for Encounter" uses "http://hl7.org/fhir/3.0/StructureDefinition/Encounter" alias EncounterR3 as source uses "http://hl7.org/fhir/StructureDefinition/Encounter" alias Encounter as target imports "http://hl7.org/fhir/StructureMap/*3to4" group Encounter extends DomainResource input src : EncounterR3 as source input tgt : Encounter as target "Encounter.identifier" : for src.identifier as vs make tgt.identifier as vt "Encounter.status" : for src.status as vs make tgt.status as vt "Encounter.class" : for src.class as vs make tgt.class as vt "Encounter.type" : for src.type as vs make tgt.type as vt "Encounter.priority" : for src.priority as vs make tgt.priority as vt "Encounter.subject" : for src.subject as vs make tgt.subject as vt "Encounter.episodeOfCare" : for src.episodeOfCare as vs make tgt.episodeOfCare as vt "Encounter.basedOn" : for src.incomingReferral as vs make tgt.basedOn as vt "Encounter.participant" : for src.participant as vs0 make tgt.participant as vt0 then { "Encounter.participant.type" : for vs0.type as vs make vt0.type as vt "Encounter.participant.period" : for vs0.period as vs make vt0.period as vt "Encounter.participant.individual" : for vs0.individual as vs make vt0.individual as vt } "Encounter.appointment" : for src.appointment as vs make tgt.appointment as vt "Encounter.period" : for src.period as vs make tgt.period as vt "Encounter.length" : for src.length as vs make tgt.length as vt "Encounter.reason" : for src.reason as vs make tgt.reason as vt "Encounter.account" : for src.account as vs make tgt.account as vt "Encounter.hospitalization" : for src.hospitalization as vs0 make tgt.hospitalization as vt0 then { "Encounter.hospitalization.preAdmissionIdentifier" : for vs0.preAdmissionIdentifier as vs make vt0.preAdmissionIdentifier as vt "Encounter.hospitalization.origin" : for vs0.origin as vs make vt0.origin as vt "Encounter.hospitalization.admitSource" : for vs0.admitSource as vs make vt0.admitSource as vt "Encounter.hospitalization.reAdmission" : for vs0.reAdmission as vs make vt0.reAdmission as vt "Encounter.hospitalization.dietPreference" : for vs0.dietPreference as vs make vt0.dietPreference as vt "Encounter.hospitalization.specialCourtesy" : for vs0.specialCourtesy as vs make vt0.specialCourtesy as vt "Encounter.hospitalization.specialArrangement" : for vs0.specialArrangement as vs make vt0.specialArrangement as vt "Encounter.hospitalization.destination" : for vs0.destination as vs make vt0.destination as vt "Encounter.hospitalization.dischargeDisposition" : for vs0.dischargeDisposition as vs make vt0.dischargeDisposition as vt } "Encounter.location" : for src.location as vs0 make tgt.location as vt0 then { "Encounter.location.location" : for vs0.location as vs make vt0.location as vt "Encounter.location.status" : for vs0.status as vs make vt0.status as vt "Encounter.location.period" : for vs0.period as vs make vt0.period as vt } "Encounter.serviceProvider" : for src.serviceProvider as vs make tgt.serviceProvider as vt "Encounter.partOf" : for src.partOf as vs make tgt.partOf as vt endgroup
map "http://hl7.org/fhir/StructureMap/Encounter4to3" = "R4 to R3 Conversion for Encounter" uses "http://hl7.org/fhir/StructureDefinition/Encounter" alias Encounter as source uses "http://hl7.org/fhir/3.0/StructureDefinition/Encounter" alias EncounterR3 as target imports "http://hl7.org/fhir/StructureMap/*4to3" group Encounter extends DomainResource input src : Encounter as source input tgt : EncounterR3 as target "Encounter.identifier" : for src.identifier as vs make tgt.identifier as vt "Encounter.status" : for src.status as vs make tgt.status as vt "Encounter.class" : for src.class as vs make tgt.class as vt "Encounter.type" : for src.type as vs make tgt.type as vt "Encounter.priority" : for src.priority as vs make tgt.priority as vt "Encounter.subject" : for src.subject as vs make tgt.subject as vt "Encounter.episodeOfCare" : for src.episodeOfCare as vs make tgt.episodeOfCare as vt "Encounter.incomingReferral" : for src.basedOn as vs make tgt.incomingReferral as vt "Encounter.participant" : for src.participant as vs0 make tgt.participant as vt0 then { "Encounter.participant.type" : for vs0.type as vs make vt0.type as vt "Encounter.participant.period" : for vs0.period as vs make vt0.period as vt "Encounter.participant.individual" : for vs0.individual as vs make vt0.individual as vt } "Encounter.appointment" : for src.appointment as vs make tgt.appointment as vt "Encounter.period" : for src.period as vs make tgt.period as vt "Encounter.length" : for src.length as vs make tgt.length as vt "Encounter.reason" : for src.reason as vs make tgt.reason as vt "Encounter.account" : for src.account as vs make tgt.account as vt "Encounter.hospitalization" : for src.hospitalization as vs0 make tgt.hospitalization as vt0 then { "Encounter.hospitalization.preAdmissionIdentifier" : for vs0.preAdmissionIdentifier as vs make vt0.preAdmissionIdentifier as vt "Encounter.hospitalization.origin" : for vs0.origin as vs make vt0.origin as vt "Encounter.hospitalization.admitSource" : for vs0.admitSource as vs make vt0.admitSource as vt "Encounter.hospitalization.reAdmission" : for vs0.reAdmission as vs make vt0.reAdmission as vt "Encounter.hospitalization.dietPreference" : for vs0.dietPreference as vs make vt0.dietPreference as vt "Encounter.hospitalization.specialCourtesy" : for vs0.specialCourtesy as vs make vt0.specialCourtesy as vt "Encounter.hospitalization.specialArrangement" : for vs0.specialArrangement as vs make vt0.specialArrangement as vt "Encounter.hospitalization.destination" : for vs0.destination as vs make vt0.destination as vt "Encounter.hospitalization.dischargeDisposition" : for vs0.dischargeDisposition as vs make vt0.dischargeDisposition as vt } "Encounter.location" : for src.location as vs0 make tgt.location as vt0 then { "Encounter.location.location" : for vs0.location as vs make vt0.location as vt "Encounter.location.status" : for vs0.status as vs make vt0.status as vt "Encounter.location.period" : for vs0.period as vs make vt0.period as vt } "Encounter.serviceProvider" : for src.serviceProvider as vs make tgt.serviceProvider as vt "Encounter.partOf" : for src.partOf as vs make tgt.partOf as vt endgroup