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" : "SupplyDelivery3to2",
"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/SupplyDelivery3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'SupplyDelivery3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'SupplyD3 to R2elivery Transforms: R'</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/3.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/1.0/SupplyDelivery<span style=\"color: navy\">" </span><b>alias </b>SupplyDeliveryR2 <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*3to2<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>SupplyDeliveryR2<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 <i>"SupplyDelivery-identifier"</i><span style=\"color: navy\">;</span>\r\n src.status<span style=\"color: navy\"><b> -> </b></span>tgt.status <i>"SupplyDelivery-status"</i><span style=\"color: navy\">;</span>\r\n src.patient<span style=\"color: navy\"><b> -> </b></span>tgt.patient <i>"SupplyDelivery-patient"</i><span style=\"color: navy\">;</span>\r\n src.type<span style=\"color: navy\"><b> -> </b></span>tgt.type <i>"SupplyDelivery-type"</i><span style=\"color: navy\">;</span>\r\n src.suppliedItem<b> as </b><span style=\"color: maroon\">v</span><b> then </b>sdvItem<span style=\"color: navy\">(</span><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">tgt</span><span style=\"color: navy\">)</span> <i>"SupplyDelivery-suppliedItem"</i><span style=\"color: navy\">;</span>\r\n src.supplier<span style=\"color: navy\"><b> -> </b></span>tgt.supplier <i>"SupplyDelivery-supplier"</i><span style=\"color: navy\">;</span>\r\n src.extension<b> as </b><span style=\"color: maroon\">e</span><b> where </b>e.url = 'http://hl7.org/fhir/SupplyDelivery-r2-whenPrepared'<span style=\"color: navy\"><b> -> </b></span>tgt.whenPrepared = <span style=\"color: navy\">(</span>e.value<span style=\"color: navy\">)</span> <i>"SupplyDelivery-whenPrepared"</i><span style=\"color: navy\">;</span>\r\n src.occurrence<b> as </b><span style=\"color: maroon\">v</span><b> where </b>v.is(dateTime)<span style=\"color: navy\"><b> -> </b></span>tgt.time = <span style=\"color: maroon\">v</span> <i>"SupplyDelivery-time"</i><span style=\"color: navy\">;</span>\r\n src.destination<span style=\"color: navy\"><b> -> </b></span>tgt.destination <i>"SupplyDelivery-destination"</i><span style=\"color: navy\">;</span>\r\n src.receiver<span style=\"color: navy\"><b> -> </b></span>tgt.receiver <i>"SupplyDelivery-receiver"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>sdvItem<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 <i>"item-quantity"</i><span style=\"color: navy\">;</span>\r\n src.item<span style=\"color: navy\"><b> -> </b></span>tgt.suppliedItem <i>"item-quantity"</i><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/SupplyDelivery3to2",
"version" : "0.1.0",
"name" : "SupplyDelivery3to2",
"title" : "SupplyD3 to R2elivery Transforms: R",
"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" : "SupplyD3toR2eliveryTransformsR",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/3.0/SupplyDelivery",
"mode" : "source",
"alias" : "SupplyDelivery"
},
{
"url" : "http://hl7.org/fhir/1.0/SupplyDelivery",
"mode" : "target",
"alias" : "SupplyDeliveryR2"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*3to2"
],
"group" : [
{
"name" : "SupplyDelivery",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "SupplyDelivery",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "SupplyDeliveryR2",
"mode" : "target"
}
],
"rule" : [
{
"name" : "SupplyDelivery-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" : "SupplyDelivery-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" : "SupplyDelivery-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" : "SupplyDelivery-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" : "SupplyDelivery-suppliedItem",
"source" : [
{
"context" : "src",
"element" : "suppliedItem",
"variable" : "v"
}
],
"dependent" : [
{
"name" : "sdvItem",
"parameter" : [
{
"valueId" : "v"
},
{
"valueId" : "tgt"
}
]
}
]
},
{
"name" : "SupplyDelivery-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" : "SupplyDelivery-whenPrepared",
"source" : [
{
"context" : "src",
"element" : "extension",
"variable" : "e",
"condition" : "e.url = 'http://hl7.org/fhir/SupplyDelivery-r2-whenPrepared'"
}
],
"target" : [
{
"context" : "tgt",
"element" : "whenPrepared",
"transform" : "evaluate",
"parameter" : [
{
"valueString" : "e.value"
}
]
}
]
},
{
"name" : "SupplyDelivery-time",
"source" : [
{
"context" : "src",
"element" : "occurrence",
"variable" : "v",
"condition" : "v.is(dateTime)"
}
],
"target" : [
{
"context" : "tgt",
"element" : "time",
"transform" : "copy",
"parameter" : [
{
"valueId" : "v"
}
]
}
]
},
{
"name" : "SupplyDelivery-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" : "SupplyDelivery-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" : "sdvItem",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "item-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" : "item-quantity",
"source" : [
{
"context" : "src",
"element" : "item",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "suppliedItem",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}