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" : "TestScript2to3",
"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/TestScript2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'TestScript2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'TestScript 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/TestScript<span style=\"color: navy\">" </span><b>alias </b>TestScriptR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/TestScript<span style=\"color: navy\">" </span><b>alias </b>TestScript <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span><a href=\"StructureMap-primitives2to3.html\" title=\"Primitive Transforms: R2 to R3\">http://hl7.org/fhir/StructureMap/primitives2to3</a><span style=\"color: navy\">"\r\n</span><b>imports</b><span style=\"color: navy\"> "</span><a href=\"StructureMap-DomainResource2to3.html\" title=\"DomainResource Transforms: R2 to R3\">http://hl7.org/fhir/StructureMap/DomainResource2to3</a><span style=\"color: navy\">"\r\n</span><b>imports</b><span style=\"color: navy\"> "</span><a href=\"StructureMap-ContactPoint2to3.html\" title=\"ContactPoint Transforms: R2 to R3\">http://hl7.org/fhir/StructureMap/ContactPoint2to3</a><span style=\"color: navy\">"\r\n</span><b>imports</b><span style=\"color: navy\"> "</span><a href=\"StructureMap-Identifier2to3.html\" title=\"Identifier Transforms: R2 to R3\">http://hl7.org/fhir/StructureMap/Identifier2to3</a><span style=\"color: navy\">"\r\n</span><b>imports</b><span style=\"color: navy\"> "</span><a href=\"StructureMap-Reference2to3.html\" title=\"Reference Transforms: R2 to R3\">http://hl7.org/fhir/StructureMap/Reference2to3</a><span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>TestScript<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>TestScriptR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>TestScript<span style=\"color: navy\">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style=\"color: navy\"> {\r\n</span> src.url<span style=\"color: navy\"><b> -> </b></span>tgt.url <i>"TestScript-url"</i><span style=\"color: navy\">;</span>\r\n src.version<span style=\"color: navy\"><b> -> </b></span>tgt.version <i>"TestScript-version"</i><span style=\"color: navy\">;</span>\r\n src.name<span style=\"color: navy\"><b> -> </b></span>tgt.name <i>"TestScript-name"</i><span style=\"color: navy\">;</span>\r\n src.status<span style=\"color: navy\"><b> -> </b></span>tgt.status <i>"TestScript-status"</i><span style=\"color: navy\">;</span>\r\n src.identifier<span style=\"color: navy\"><b> -> </b></span>tgt.identifier <i>"TestScript-identifier"</i><span style=\"color: navy\">;</span>\r\n src.experimental<span style=\"color: navy\"><b> -> </b></span>tgt.experimental <i>"TestScript-experimental"</i><span style=\"color: navy\">;</span>\r\n src.publisher<span style=\"color: navy\"><b> -> </b></span>tgt.publisher <i>"TestScript-publisher"</i><span style=\"color: navy\">;</span>\r\n src.contact<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.contact<b> as </b><span style=\"color: maroon\">vt0</span><b> then</b><span style=\"color: navy\"> {\r\n</span> vs0.name<span style=\"color: navy\"><b> -> </b></span>vt0.name <i>"ContactDetail-name"</i><span style=\"color: navy\">;</span>\r\n vs0.telecom<span style=\"color: navy\"><b> -> </b></span>vt0.telecom <i>"ContactDetail-telecom"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"TestScript-contact"</i><span style=\"color: navy\">;</span>\r\n src.date<span style=\"color: navy\"><b> -> </b></span>tgt.date <i>"TestScript-date"</i><span style=\"color: navy\">;</span>\r\n src.metadata<span style=\"color: navy\"><b> -> </b></span>tgt.metadata <i>"TestScript-metadata"</i><span style=\"color: navy\">;</span>\r\n src.fixture<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.fixture<b> as </b><span style=\"color: maroon\">vt0</span><b> then</b><span style=\"color: navy\"> {\r\n</span> vs0.autocreate<span style=\"color: navy\"><b> -> </b></span>vt0.autocreate <i>"fixture-autocreate"</i><span style=\"color: navy\">;</span>\r\n vs0.autodelete<span style=\"color: navy\"><b> -> </b></span>vt0.autodelete <i>"fixture-autodelete"</i><span style=\"color: navy\">;</span>\r\n vs0.resource<span style=\"color: navy\"><b> -> </b></span>vt0.resource <i>"fixture-resource"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"TestScript-fixture"</i><span style=\"color: navy\">;</span>\r\n src.profile<span style=\"color: navy\"><b> -> </b></span>tgt.profile <i>"TestScript-profile"</i><span style=\"color: navy\">;</span>\r\n src.variable<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.variable<b> as </b><span style=\"color: maroon\">vt0</span><b> then</b><span style=\"color: navy\"> {\r\n</span> vs0.name<span style=\"color: navy\"><b> -> </b></span>vt0.name <i>"variable-name"</i><span style=\"color: navy\">;</span>\r\n vs0.headerField<span style=\"color: navy\"><b> -> </b></span>vt0.headerField <i>"variable-headerField"</i><span style=\"color: navy\">;</span>\r\n vs0.path<span style=\"color: navy\"><b> -> </b></span>vt0.path <i>"variable-path"</i><span style=\"color: navy\">;</span>\r\n vs0.sourceId<span style=\"color: navy\"><b> -> </b></span>vt0.sourceId <i>"variable-sourceId"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"TestScript-variable"</i><span style=\"color: navy\">;</span>\r\n src.setup<span style=\"color: navy\"><b> -> </b></span>tgt.setup <i>"TestScript-setup"</i><span style=\"color: navy\">;</span>\r\n src.test<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.test<b> as </b><span style=\"color: maroon\">vt0</span><b> then</b><span style=\"color: navy\"> {\r\n</span> vs0.name<span style=\"color: navy\"><b> -> </b></span>vt0.name <i>"test-name"</i><span style=\"color: navy\">;</span>\r\n vs0.description<span style=\"color: navy\"><b> -> </b></span>vt0.description <i>"test-description"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"TestScript-test"</i><span style=\"color: navy\">;</span>\r\n src.teardown<span style=\"color: navy\"><b> -> </b></span>tgt.teardown <i>"TestScript-teardown"</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/TestScript2to3",
"version" : "0.1.0",
"name" : "TestScript2to3",
"title" : "TestScript 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" : "TestScriptTransformsR2toR3",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/1.0/TestScript",
"mode" : "source",
"alias" : "TestScriptR2"
},
{
"url" : "http://hl7.org/fhir/3.0/TestScript",
"mode" : "target",
"alias" : "TestScript"
}
],
"import" : [
🔗 "http://hl7.org/fhir/StructureMap/primitives2to3"🔗 ,
"http://hl7.org/fhir/StructureMap/DomainResource2to3"🔗 ,
"http://hl7.org/fhir/StructureMap/ContactPoint2to3"🔗 ,
"http://hl7.org/fhir/StructureMap/Identifier2to3"🔗 ,
"http://hl7.org/fhir/StructureMap/Reference2to3"
],
"group" : [
{
"name" : "TestScript",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "TestScriptR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "TestScript",
"mode" : "target"
}
],
"rule" : [
{
"name" : "TestScript-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" : "TestScript-version",
"source" : [
{
"context" : "src",
"element" : "version",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "version",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "TestScript-name",
"source" : [
{
"context" : "src",
"element" : "name",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "name",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "TestScript-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" : "TestScript-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" : "TestScript-experimental",
"source" : [
{
"context" : "src",
"element" : "experimental",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "experimental",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "TestScript-publisher",
"source" : [
{
"context" : "src",
"element" : "publisher",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "publisher",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "TestScript-contact",
"source" : [
{
"context" : "src",
"element" : "contact",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "contact",
"variable" : "vt0"
}
],
"rule" : [
{
"name" : "ContactDetail-name",
"source" : [
{
"context" : "vs0",
"element" : "name",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "vt0",
"element" : "name",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "ContactDetail-telecom",
"source" : [
{
"context" : "vs0",
"element" : "telecom",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "vt0",
"element" : "telecom",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "TestScript-date",
"source" : [
{
"context" : "src",
"element" : "date",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "date",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "TestScript-metadata",
"source" : [
{
"context" : "src",
"element" : "metadata",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "metadata",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "TestScript-fixture",
"source" : [
{
"context" : "src",
"element" : "fixture",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "fixture",
"variable" : "vt0"
}
],
"rule" : [
{
"name" : "fixture-autocreate",
"source" : [
{
"context" : "vs0",
"element" : "autocreate",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "vt0",
"element" : "autocreate",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "fixture-autodelete",
"source" : [
{
"context" : "vs0",
"element" : "autodelete",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "vt0",
"element" : "autodelete",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "fixture-resource",
"source" : [
{
"context" : "vs0",
"element" : "resource",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "vt0",
"element" : "resource",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "TestScript-profile",
"source" : [
{
"context" : "src",
"element" : "profile",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "profile",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "TestScript-variable",
"source" : [
{
"context" : "src",
"element" : "variable",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "variable",
"variable" : "vt0"
}
],
"rule" : [
{
"name" : "variable-name",
"source" : [
{
"context" : "vs0",
"element" : "name",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "vt0",
"element" : "name",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "variable-headerField",
"source" : [
{
"context" : "vs0",
"element" : "headerField",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "vt0",
"element" : "headerField",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "variable-path",
"source" : [
{
"context" : "vs0",
"element" : "path",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "vt0",
"element" : "path",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "variable-sourceId",
"source" : [
{
"context" : "vs0",
"element" : "sourceId",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "vt0",
"element" : "sourceId",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "TestScript-setup",
"source" : [
{
"context" : "src",
"element" : "setup",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "setup",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "TestScript-test",
"source" : [
{
"context" : "src",
"element" : "test",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "test",
"variable" : "vt0"
}
],
"rule" : [
{
"name" : "test-name",
"source" : [
{
"context" : "vs0",
"element" : "name",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "vt0",
"element" : "name",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "test-description",
"source" : [
{
"context" : "vs0",
"element" : "description",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "vt0",
"element" : "description",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "TestScript-teardown",
"source" : [
{
"context" : "src",
"element" : "teardown",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "teardown",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}