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" : "SupplyRequest3to2",
"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/SupplyRequest3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'SupplyRequest3to2'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'SupplyRequest Transforms: R3 to R2'</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/SupplyRequest<span style=\"color: navy\">" </span><b>alias </b>SupplyRequest <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/1.0/SupplyRequest<span style=\"color: navy\">" </span><b>alias </b>SupplyRequestR2 <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>SupplyRequest<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>SupplyRequest, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>SupplyRequestR2<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.extension<b> as </b><span style=\"color: maroon\">e</span><b> where </b>e.url = 'http://hl7.org/fhir/SupplyRequest-r2-patient'<span style=\"color: navy\"><b> -> </b></span>tgt.patient = <span style=\"color: navy\">(</span>e.value<span style=\"color: navy\">)</span> <i>"SupplyRequest-patient"</i><span style=\"color: navy\">;</span>\r\n src.requester<b> as </b><span style=\"color: maroon\">v</span><b> then </b>sprRequest<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>"SupplyRequest-source"</i><span style=\"color: navy\">;</span>\r\n src.authoredOn<span style=\"color: navy\"><b> -> </b></span>tgt.date <i>"SupplyRequest-date"</i><span style=\"color: navy\">;</span>\r\n src.identifier<span style=\"color: navy\"><b> -> </b></span>tgt.identifier <i>"SupplyRequest-identifier"</i><span style=\"color: navy\">;</span>\r\n src.status<span style=\"color: navy\"><b> -> </b></span>tgt.status <i>"SupplyRequest-status"</i><span style=\"color: navy\">;</span>\r\n src.category<span style=\"color: navy\"><b> -> </b></span>tgt.kind <i>"SupplyRequest-kind"</i><span style=\"color: navy\">;</span>\r\n src.orderedItem<span style=\"color: navy\"><b> -> </b></span>tgt.orderedItem <i>"SupplyRequest-orderedItem"</i><span style=\"color: navy\">;</span>\r\n src.supplier<span style=\"color: navy\"><b> -> </b></span>tgt.supplier <i>"SupplyRequest-supplier"</i><span style=\"color: navy\">;</span>\r\n src.reason<span style=\"color: navy\"><b> -> </b></span>tgt.reason <i>"SupplyRequest-reason"</i><span style=\"color: navy\">;</span>\r\n src.occurrence<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span> tgt.when<b> as </b><span style=\"color: maroon\">vt0</span><span style=\"color: navy\">, </span> vt0.schedule = <span style=\"color: maroon\">vs0</span> <i>"SupplyRequest-when"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>sprRequest<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.avent<span style=\"color: navy\"><b> -> </b></span>tgt.source <i>"source-agent"</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/SupplyRequest3to2",
"version" : "0.1.0",
"name" : "SupplyRequest3to2",
"title" : "SupplyRequest Transforms: R3 to R2",
"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" : "SupplyRequestTransformsR3toR2",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/3.0/SupplyRequest",
"mode" : "source",
"alias" : "SupplyRequest"
},
{
"url" : "http://hl7.org/fhir/1.0/SupplyRequest",
"mode" : "target",
"alias" : "SupplyRequestR2"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*3to2"
],
"group" : [
{
"name" : "SupplyRequest",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "SupplyRequest",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "SupplyRequestR2",
"mode" : "target"
}
],
"rule" : [
{
"name" : "SupplyRequest-patient",
"source" : [
{
"context" : "src",
"element" : "extension",
"variable" : "e",
"condition" : "e.url = 'http://hl7.org/fhir/SupplyRequest-r2-patient'"
}
],
"target" : [
{
"context" : "tgt",
"element" : "patient",
"transform" : "evaluate",
"parameter" : [
{
"valueString" : "e.value"
}
]
}
]
},
{
"name" : "SupplyRequest-source",
"source" : [
{
"context" : "src",
"element" : "requester",
"variable" : "v"
}
],
"dependent" : [
{
"name" : "sprRequest",
"parameter" : [
{
"valueId" : "v"
},
{
"valueId" : "tgt"
}
]
}
]
},
{
"name" : "SupplyRequest-date",
"source" : [
{
"context" : "src",
"element" : "authoredOn",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "date",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "SupplyRequest-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" : "SupplyRequest-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" : "SupplyRequest-kind",
"source" : [
{
"context" : "src",
"element" : "category",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "kind",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "SupplyRequest-orderedItem",
"source" : [
{
"context" : "src",
"element" : "orderedItem",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "orderedItem",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "SupplyRequest-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" : "SupplyRequest-reason",
"source" : [
{
"context" : "src",
"element" : "reason",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "reason",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "SupplyRequest-when",
"source" : [
{
"context" : "src",
"element" : "occurrence",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "when",
"variable" : "vt0"
},
{
"context" : "vt0",
"element" : "schedule",
"transform" : "copy",
"parameter" : [
{
"valueId" : "vs0"
}
]
}
]
}
]
},
{
"name" : "sprRequest",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "source-agent",
"source" : [
{
"context" : "src",
"element" : "avent",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "source",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}