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
Page standards status: Draft | Maturity Level: 1 |
{
"resourceType" : "StructureMap",
"id" : "Delivery4to3",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<span style=\"color: #cc00cc\">/// <b>url</b> = </span><span style=\"color: blue\">'http://hl7.org/fhir/StructureMap/SupplyDelivery4to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Delivery4to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'SupplyDelivery Transforms: R4 to R3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>status</b> = </span><span style=\"color: blue\">'active'</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/4.0/SupplyDelivery<span style=\"color: navy\">" </span><b>alias </b>SupplyDelivery <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/SupplyDelivery<span style=\"color: navy\">" </span><b>alias </b>SupplyDeliveryR3 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*4to3<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>SupplyDelivery<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>SupplyDelivery, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>SupplyDeliveryR3<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.identifier<span style=\"color: navy\"><b> -> </b></span>tgt.identifier<span style=\"color: navy\">;</span>\r\n src.basedOn<span style=\"color: navy\"><b> -> </b></span>tgt.basedOn<span style=\"color: navy\">;</span>\r\n src.partOf<span style=\"color: navy\"><b> -> </b></span>tgt.partOf<span style=\"color: navy\">;</span>\r\n src.status<span style=\"color: navy\"><b> -> </b></span>tgt.status<span style=\"color: navy\">;</span>\r\n src.patient<span style=\"color: navy\"><b> -> </b></span>tgt.patient<span style=\"color: navy\">;</span>\r\n src.type<span style=\"color: navy\"><b> -> </b></span>tgt.type<span style=\"color: navy\">;</span>\r\n src.suppliedItem<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.suppliedItem<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>suppliedItem<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs0</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.occurrence<span style=\"color: navy\"> : </span>dateTime<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.occurrence = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'dateTime'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>dateTime<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.occurrence<span style=\"color: navy\"> : </span>Period<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.occurrence = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Period'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>Period<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.occurrence<span style=\"color: navy\"> : </span>Timing<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.occurrence = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Timing'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>Timing<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.supplier<span style=\"color: navy\"><b> -> </b></span>tgt.supplier<span style=\"color: navy\">;</span>\r\n src.destination<span style=\"color: navy\"><b> -> </b></span>tgt.destination<span style=\"color: navy\">;</span>\r\n src.receiver<span style=\"color: navy\"><b> -> </b></span>tgt.receiver<span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>suppliedItem<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span>, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.quantity<span style=\"color: navy\"><b> -> </b></span>tgt.quantity<span style=\"color: navy\">;</span>\r\n src.item<span style=\"color: navy\"> : </span>CodeableConcept<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.item = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'CodeableConcept'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>CodeableConcept<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n src.item<span style=\"color: navy\"> : </span>Reference<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.item = <b>create</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'Reference'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">vt</span><b> then </b>Reference<span style=\"color: navy\">(</span><span style=\"color: maroon\">vs</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">vt</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "fhir"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
"valueInteger" : 1,
"_valueInteger" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
"valueCode" : "draft",
"_valueCode" : {
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
"valueCanonical" : "http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"
}
]
}
}
],
"url" : "http://hl7.org/fhir/StructureMap/SupplyDelivery4to3",
"version" : "0.1.0",
"name" : "Delivery4to3",
"title" : "SupplyDelivery Transforms: R4 to R3",
"status" : "active",
"date" : "2024-02-22T03:16:50+00:00",
"publisher" : "HL7 International / FHIR Infrastructure",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "http://www.hl7.org/Special/committees/fiwg"
}
]
}
],
"description" : "SupplyDeliveryTransformsR4toR3",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/4.0/SupplyDelivery",
"mode" : "source",
"alias" : "SupplyDelivery"
},
{
"url" : "http://hl7.org/fhir/3.0/SupplyDelivery",
"mode" : "target",
"alias" : "SupplyDeliveryR3"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*4to3"
],
"group" : [
{
"name" : "SupplyDelivery",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "SupplyDelivery",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "SupplyDeliveryR3",
"mode" : "target"
}
],
"rule" : [
{
"name" : "identifier",
"source" : [
{
"context" : "src",
"element" : "identifier",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "identifier",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "basedOn",
"source" : [
{
"context" : "src",
"element" : "basedOn",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "basedOn",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "partOf",
"source" : [
{
"context" : "src",
"element" : "partOf",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "partOf",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "status",
"source" : [
{
"context" : "src",
"element" : "status",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "status",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "patient",
"source" : [
{
"context" : "src",
"element" : "patient",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "patient",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "type",
"source" : [
{
"context" : "src",
"element" : "type",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "type",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "suppliedItem",
"source" : [
{
"context" : "src",
"element" : "suppliedItem",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "suppliedItem",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "suppliedItem",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
},
{
"name" : "occurrenceDateTime",
"source" : [
{
"context" : "src",
"type" : "dateTime",
"element" : "occurrence",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "occurrence",
"variable" : "vt",
"transform" : "create",
"parameter" : [
{
"valueString" : "dateTime"
}
]
}
],
"dependent" : [
{
"name" : "dateTime",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
},
{
"name" : "occurrencePeriod",
"source" : [
{
"context" : "src",
"type" : "Period",
"element" : "occurrence",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "occurrence",
"variable" : "vt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Period"
}
]
}
],
"dependent" : [
{
"name" : "Period",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
},
{
"name" : "occurrenceTiming",
"source" : [
{
"context" : "src",
"type" : "Timing",
"element" : "occurrence",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "occurrence",
"variable" : "vt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Timing"
}
]
}
],
"dependent" : [
{
"name" : "Timing",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
},
{
"name" : "supplier",
"source" : [
{
"context" : "src",
"element" : "supplier",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "supplier",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "destination",
"source" : [
{
"context" : "src",
"element" : "destination",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "destination",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "receiver",
"source" : [
{
"context" : "src",
"element" : "receiver",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "receiver",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "suppliedItem",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "quantity",
"source" : [
{
"context" : "src",
"element" : "quantity",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "quantity",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "itemCodeableConcept",
"source" : [
{
"context" : "src",
"type" : "CodeableConcept",
"element" : "item",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "item",
"variable" : "vt",
"transform" : "create",
"parameter" : [
{
"valueString" : "CodeableConcept"
}
]
}
],
"dependent" : [
{
"name" : "CodeableConcept",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
},
{
"name" : "itemReference",
"source" : [
{
"context" : "src",
"type" : "Reference",
"element" : "item",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "item",
"variable" : "vt",
"transform" : "create",
"parameter" : [
{
"valueString" : "Reference"
}
]
}
],
"dependent" : [
{
"name" : "Reference",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
}
]
}
]
}