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" : "Bundle2to3",
"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/Bundle2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Bundle2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Bundle Transforms: R2 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/1.0/Bundle<span style=\"color: navy\">" </span><b>alias </b>BundleR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/Bundle<span style=\"color: navy\">" </span><b>alias </b>Bundle <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/StructureMap/*2to3<span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>Bundle<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>BundleR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>Bundle<span style=\"color: navy\">)</span><b> extends </b>Resource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.type<span style=\"color: navy\"><b> -> </b></span>tgt.type <i>"Bundle-type"</i><span style=\"color: navy\">;</span>\r\n src.total<span style=\"color: navy\"><b> -> </b></span>tgt.total <i>"Bundle-total"</i><span style=\"color: navy\">;</span>\r\n src.link<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.link<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>bundleLink<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> <i>"Bundle-link"</i><span style=\"color: navy\">;</span>\r\n src.entry<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.entry<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>bundleEntry<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> <i>"Bundle-entry"</i><span style=\"color: navy\">;</span>\r\n src.signature<span style=\"color: navy\"><b> -> </b></span>tgt.signature <i>"Bundle-signature"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>bundleLink<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.relation<span style=\"color: navy\"><b> -> </b></span>tgt.relation <i>"link-relation"</i><span style=\"color: navy\">;</span>\r\n src.url<span style=\"color: navy\"><b> -> </b></span>tgt.url <i>"link-url"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>bundleEntry<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.fullUrl<span style=\"color: navy\"><b> -> </b></span>tgt.fullUrl <i>"entry-fullUrl"</i><span style=\"color: navy\">;</span>\r\n src.resource<span style=\"color: navy\"><b> -> </b></span>tgt.resource <i>"entry-resource"</i><span style=\"color: navy\">;</span>\r\n src.search<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.search<b> as </b><span style=\"color: maroon\">vt</span><b> then </b>bundleSearch<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> <i>"entry-search"</i><span style=\"color: navy\">;</span>\r\n src.request<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.request<b> as </b><span style=\"color: maroon\">vt</span><b> then </b>bundleRequest<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> <i>"entry-request"</i><span style=\"color: navy\">;</span>\r\n src.response<b> as </b><span style=\"color: maroon\">vs</span><span style=\"color: navy\"><b> -> </b></span>tgt.response<b> as </b><span style=\"color: maroon\">vt</span><b> then </b>bundleResponse<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> <i>"entry-response"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>bundleSearch<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.mode<span style=\"color: navy\"><b> -> </b></span>tgt.mode <i>"search-mode"</i><span style=\"color: navy\">;</span>\r\n src.score<span style=\"color: navy\"><b> -> </b></span>tgt.score <i>"search-score"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>bundleRequest<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.method<span style=\"color: navy\"><b> -> </b></span>tgt.method <i>"request-method"</i><span style=\"color: navy\">;</span>\r\n src.url<span style=\"color: navy\"><b> -> </b></span>tgt.url <i>"request-url"</i><span style=\"color: navy\">;</span>\r\n src.ifNoneMatch<span style=\"color: navy\"><b> -> </b></span>tgt.ifNoneMatch <i>"request-ifNoneMatch"</i><span style=\"color: navy\">;</span>\r\n src.ifModifiedSince<span style=\"color: navy\"><b> -> </b></span>tgt.ifModifiedSince <i>"request-ifModifiedSince"</i><span style=\"color: navy\">;</span>\r\n src.ifMatch<span style=\"color: navy\"><b> -> </b></span>tgt.ifMatch <i>"request-ifMatch"</i><span style=\"color: navy\">;</span>\r\n src.ifNoneExist<span style=\"color: navy\"><b> -> </b></span>tgt.ifNoneExist <i>"request-ifNoneExist"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>bundleResponse<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.status<span style=\"color: navy\"><b> -> </b></span>tgt.status <i>"response-status"</i><span style=\"color: navy\">;</span>\r\n src.location<span style=\"color: navy\"><b> -> </b></span>tgt.location <i>"response-location"</i><span style=\"color: navy\">;</span>\r\n src.etag<span style=\"color: navy\"><b> -> </b></span>tgt.etag <i>"response-etag"</i><span style=\"color: navy\">;</span>\r\n src.lastModified<span style=\"color: navy\"><b> -> </b></span>tgt.lastModified <i>"response-lastModified"</i><span style=\"color: navy\">;</span>\r\n src.outcome<span style=\"color: navy\"><b> -> </b></span>tgt.outcome <i>"response-outcome"</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/Bundle2to3",
"version" : "0.1.0",
"name" : "Bundle2to3",
"title" : "Bundle Transforms: R2 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" : "BundleTransformsR2toR3",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/1.0/Bundle",
"mode" : "source",
"alias" : "BundleR2"
},
{
"url" : "http://hl7.org/fhir/3.0/Bundle",
"mode" : "target",
"alias" : "Bundle"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*2to3"
],
"group" : [
{
"name" : "Bundle",
"extends" : "Resource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "BundleR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "Bundle",
"mode" : "target"
}
],
"rule" : [
{
"name" : "Bundle-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" : "Bundle-total",
"source" : [
{
"context" : "src",
"element" : "total",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "total",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Bundle-link",
"source" : [
{
"context" : "src",
"element" : "link",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "link",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "bundleLink",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
},
{
"name" : "Bundle-entry",
"source" : [
{
"context" : "src",
"element" : "entry",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "entry",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "bundleEntry",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
},
{
"name" : "Bundle-signature",
"source" : [
{
"context" : "src",
"element" : "signature",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "signature",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "bundleLink",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "link-relation",
"source" : [
{
"context" : "src",
"element" : "relation",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "relation",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "link-url",
"source" : [
{
"context" : "src",
"element" : "url",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "url",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "bundleEntry",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "entry-fullUrl",
"source" : [
{
"context" : "src",
"element" : "fullUrl",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "fullUrl",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "entry-resource",
"source" : [
{
"context" : "src",
"element" : "resource",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "resource",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "entry-search",
"source" : [
{
"context" : "src",
"element" : "search",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "search",
"variable" : "vt"
}
],
"dependent" : [
{
"name" : "bundleSearch",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
},
{
"name" : "entry-request",
"source" : [
{
"context" : "src",
"element" : "request",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "request",
"variable" : "vt"
}
],
"dependent" : [
{
"name" : "bundleRequest",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
},
{
"name" : "entry-response",
"source" : [
{
"context" : "src",
"element" : "response",
"variable" : "vs"
}
],
"target" : [
{
"context" : "tgt",
"element" : "response",
"variable" : "vt"
}
],
"dependent" : [
{
"name" : "bundleResponse",
"parameter" : [
{
"valueId" : "vs"
},
{
"valueId" : "vt"
}
]
}
]
}
]
},
{
"name" : "bundleSearch",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "search-mode",
"source" : [
{
"context" : "src",
"element" : "mode",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "mode",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "search-score",
"source" : [
{
"context" : "src",
"element" : "score",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "score",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "bundleRequest",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "request-method",
"source" : [
{
"context" : "src",
"element" : "method",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "method",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "request-url",
"source" : [
{
"context" : "src",
"element" : "url",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "url",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "request-ifNoneMatch",
"source" : [
{
"context" : "src",
"element" : "ifNoneMatch",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "ifNoneMatch",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "request-ifModifiedSince",
"source" : [
{
"context" : "src",
"element" : "ifModifiedSince",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "ifModifiedSince",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "request-ifMatch",
"source" : [
{
"context" : "src",
"element" : "ifMatch",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "ifMatch",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "request-ifNoneExist",
"source" : [
{
"context" : "src",
"element" : "ifNoneExist",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "ifNoneExist",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "bundleResponse",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"mode" : "source"
},
{
"name" : "tgt",
"mode" : "target"
}
],
"rule" : [
{
"name" : "response-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" : "response-location",
"source" : [
{
"context" : "src",
"element" : "location",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "location",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "response-etag",
"source" : [
{
"context" : "src",
"element" : "etag",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "etag",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "response-lastModified",
"source" : [
{
"context" : "src",
"element" : "lastModified",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "lastModified",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "response-outcome",
"source" : [
{
"context" : "src",
"element" : "outcome",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "outcome",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}