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
Orders and Observations Work Group | Maturity Level: N/A | Ballot Status: Informative | Compartments: Patient, Practitioner |
R3 : R4 Conversion maps for SupplyDelivery.
Functional status for this map: 2 tests of which 2 fail to execute. (see documentation)
map "http://hl7.org/fhir/StructureMap/SupplyDelivery3to4" = "R3 to R4 Conversions for SupplyDelivery" uses "http://hl7.org/fhir/3.0/StructureDefinition/SupplyDelivery" alias SupplyDeliveryR3 as source uses "http://hl7.org/fhir/StructureDefinition/SupplyDelivery" alias SupplyDelivery as target imports "http://hl7.org/fhir/StructureMap/*3to4" group SupplyDelivery extends DomainResource input src : SupplyDeliveryR3 as source input tgt : SupplyDelivery as target "SupplyDelivery.identifier" : for src.identifier as vs make tgt.identifier as vt "SupplyDelivery.basedOn" : for src.basedOn as vs make tgt.basedOn as vt "SupplyDelivery.partOf" : for src.partOf as vs make tgt.partOf as vt "SupplyDelivery.status" : for src.status as vs make tgt.status as vt "SupplyDelivery.patient" : for src.patient as vs make tgt.patient as vt "SupplyDelivery.type" : for src.type as vs make tgt.type as vt "SupplyDelivery.suppliedItem" : for src.suppliedItem as vs0 make tgt.suppliedItem as vt0 then { "SupplyDelivery.suppliedItem.quantity" : for vs0.quantity as vs make vt0.quantity as vt "SupplyDelivery.suppliedItem.item-CodeableConcept" : for vs0.item : CodeableConcept as vs make vt0.item = create("CodeableConcept") as vt then CodeableConcept(vs,vt) "SupplyDelivery.suppliedItem.item-Reference" : for vs0.item : Reference as vs make vt0.item = create("Reference") as vt then Reference(vs,vt) } "SupplyDelivery.occurrence-dateTime" : for src.occurrence : dateTime as vs make tgt.occurrence = create("dateTime") as vt then dateTime(vs,vt) "SupplyDelivery.occurrence-Period" : for src.occurrence : Period as vs make tgt.occurrence = create("Period") as vt then Period(vs,vt) "SupplyDelivery.occurrence-Timing" : for src.occurrence : Timing as vs make tgt.occurrence = create("Timing") as vt then Timing(vs,vt) "SupplyDelivery.supplier" : for src.supplier as vs make tgt.supplier as vt "SupplyDelivery.destination" : for src.destination as vs make tgt.destination as vt "SupplyDelivery.receiver" : for src.receiver as vs make tgt.receiver as vt endgroup
map "http://hl7.org/fhir/StructureMap/SupplyDelivery4to3" = "R4 to R3 Conversion for SupplyDelivery" uses "http://hl7.org/fhir/StructureDefinition/SupplyDelivery" alias SupplyDelivery as source uses "http://hl7.org/fhir/3.0/StructureDefinition/SupplyDelivery" alias SupplyDeliveryR3 as target imports "http://hl7.org/fhir/StructureMap/*4to3" group SupplyDelivery extends DomainResource input src : SupplyDelivery as source input tgt : SupplyDeliveryR3 as target "SupplyDelivery.identifier" : for src.identifierFirstRep as vs make tgt.identifier as vt "SupplyDelivery.basedOn" : for src.basedOn as vs make tgt.basedOn as vt "SupplyDelivery.partOf" : for src.partOf as vs make tgt.partOf as vt "SupplyDelivery.status" : for src.status as vs make tgt.status as vt "SupplyDelivery.patient" : for src.patient as vs make tgt.patient as vt "SupplyDelivery.type" : for src.type as vs make tgt.type as vt "SupplyDelivery.suppliedItem" : for src.suppliedItem as vs0 make tgt.suppliedItem as vt0 then { "SupplyDelivery.suppliedItem.quantity" : for vs0.quantity as vs make vt0.quantity as vt "SupplyDelivery.suppliedItem.item-CodeableConcept" : for vs0.item : CodeableConcept as vs make vt0.item = create("CodeableConcept") as vt then CodeableConcept(vs,vt) "SupplyDelivery.suppliedItem.item-Reference" : for vs0.item : Reference as vs make vt0.item = create("Reference") as vt then Reference(vs,vt) } "SupplyDelivery.occurrence-dateTime" : for src.occurrence : dateTime as vs make tgt.occurrence = create("dateTime") as vt then dateTime(vs,vt) "SupplyDelivery.occurrence-Period" : for src.occurrence : Period as vs make tgt.occurrence = create("Period") as vt then Period(vs,vt) "SupplyDelivery.occurrence-Timing" : for src.occurrence : Timing as vs make tgt.occurrence = create("Timing") as vt then Timing(vs,vt) "SupplyDelivery.supplier" : for src.supplier as vs make tgt.supplier as vt "SupplyDelivery.destination" : for src.destination as vs make tgt.destination as vt "SupplyDelivery.receiver" : for src.receiver as vs make tgt.receiver as vt endgroup