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" : "Procedure2to3",
"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/Procedure2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>name</b> = </span><span style=\"color: blue\">'Procedure2to3'</span>\r\n<span style=\"color: #cc00cc\">/// <b>title</b> = </span><span style=\"color: blue\">'Procedure 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/Procedure<span style=\"color: navy\">" </span><b>alias </b>ProcedureR2 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span>http://hl7.org/fhir/3.0/Procedure<span style=\"color: navy\">" </span><b>alias </b>Procedure <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>Procedure<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>ProcedureR2, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>Procedure<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>"Procedure-identifier"</i><span style=\"color: navy\">;</span>\r\n src.subject<span style=\"color: navy\"><b> -> </b></span>tgt.subject <i>"Procedure-subject"</i><span style=\"color: navy\">;</span>\r\n src.status<span style=\"color: navy\"><b> -> </b></span>tgt.status <i>"Procedure-status"</i><span style=\"color: navy\">;</span>\r\n src.category<span style=\"color: navy\"><b> -> </b></span>tgt.category <i>"Procedure-category"</i><span style=\"color: navy\">;</span>\r\n src.code<span style=\"color: navy\"><b> -> </b></span>tgt.code <i>"Procedure-code"</i><span style=\"color: navy\">;</span>\r\n src.notPerformed<span style=\"color: navy\"><b> -> </b></span>tgt.notDone <i>"Procedure-notPerformed"</i><span style=\"color: navy\">;</span>\r\n src.reasonNotPerformed<span style=\"color: navy\"><b> -> </b></span>tgt.notDoneReason <i>"Procedure-reasonNotPerformed"</i><span style=\"color: navy\">;</span>\r\n src.bodySite<span style=\"color: navy\"><b> -> </b></span>tgt.bodySite <i>"Procedure-bodySite"</i><span style=\"color: navy\">;</span>\r\n src.reason<b> where </b>$this is CodeableConcept<span style=\"color: navy\"><b> -> </b></span>tgt.reasonCode <i>"Procedure-reasonCode"</i><span style=\"color: navy\">;</span>\r\n src.reason<b> where </b>$this is Reference<span style=\"color: navy\"><b> -> </b></span>tgt.reasonReference <i>"Procedure-reasonReference"</i><span style=\"color: navy\">;</span>\r\n src.performed<span style=\"color: navy\"><b> -> </b></span>tgt.performed <i>"Procedure-performed"</i><span style=\"color: navy\">;</span>\r\n src.performer<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.performer<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>prcPerformer<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>"Procedure-performer"</i><span style=\"color: navy\">;</span>\r\n src.encounter<span style=\"color: navy\"><b> -> </b></span>tgt.context <i>"Procedure-encounter"</i><span style=\"color: navy\">;</span>\r\n src.location<span style=\"color: navy\"><b> -> </b></span>tgt.location <i>"Procedure-location"</i><span style=\"color: navy\">;</span>\r\n src.outcome<span style=\"color: navy\"><b> -> </b></span>tgt.outcome <i>"Procedure-outcome"</i><span style=\"color: navy\">;</span>\r\n src.report<span style=\"color: navy\"><b> -> </b></span>tgt.report <i>"Procedure-report"</i><span style=\"color: navy\">;</span>\r\n src.complication<span style=\"color: navy\"><b> -> </b></span>tgt.complication <i>"Procedure-complication"</i><span style=\"color: navy\">;</span>\r\n src.followUp<span style=\"color: navy\"><b> -> </b></span>tgt.followUp <i>"Procedure-followUp"</i><span style=\"color: navy\">;</span>\r\n src.request<span style=\"color: navy\"><b> -> </b></span>tgt.basedOn <i>"Procedure-request"</i><span style=\"color: navy\">;</span>\r\n src.notes<span style=\"color: navy\"><b> -> </b></span>tgt.note <i>"Procedure-notes"</i><span style=\"color: navy\">;</span>\r\n src.focalDevice<b> as </b><span style=\"color: maroon\">vs0</span><span style=\"color: navy\"><b> -> </b></span>tgt.focalDevice<b> as </b><span style=\"color: maroon\">vt0</span><b> then </b>prcFocalDevice<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>"Procedure-focalDevice"</i><span style=\"color: navy\">;</span>\r\n src.used<span style=\"color: navy\"><b> -> </b></span>tgt.usedReference <i>"Procedure-used"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>prcPerformer<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>Procedure, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>ProcedureR2<span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.actor<span style=\"color: navy\"><b> -> </b></span>tgt.actor <i>"performer-actor"</i><span style=\"color: navy\">;</span>\r\n src.role<span style=\"color: navy\"><b> -> </b></span>tgt.role <i>"performer-role"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span><b>group </b>prcFocalDevice<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">src</span><span style=\"color: navy\"> : </span>Procedure, <b>target</b> <span style=\"color: maroon\">tgt</span><span style=\"color: navy\"> : </span>ProcedureR2<span style=\"color: navy\">)</span><b> extends </b>BackboneElement<span style=\"color: navy\"> {\r\n</span> src.action<span style=\"color: navy\"><b> -> </b></span>tgt.action <i>"focalDevice-action"</i><span style=\"color: navy\">;</span>\r\n src.manipulated<span style=\"color: navy\"><b> -> </b></span>tgt.manipulated <i>"focalDevice-manipulated"</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/Procedure2to3",
"version" : "0.1.0",
"name" : "Procedure2to3",
"title" : "Procedure 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" : "ProcedureTransformsR2toR3",
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/1.0/Procedure",
"mode" : "source",
"alias" : "ProcedureR2"
},
{
"url" : "http://hl7.org/fhir/3.0/Procedure",
"mode" : "target",
"alias" : "Procedure"
}
],
"import" : [
"http://hl7.org/fhir/StructureMap/*2to3"
],
"group" : [
{
"name" : "Procedure",
"extends" : "DomainResource",
"typeMode" : "type-and-types",
"input" : [
{
"name" : "src",
"type" : "ProcedureR2",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "Procedure",
"mode" : "target"
}
],
"rule" : [
{
"name" : "Procedure-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" : "Procedure-subject",
"source" : [
{
"context" : "src",
"element" : "subject",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "subject",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Procedure-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" : "Procedure-category",
"source" : [
{
"context" : "src",
"element" : "category",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "category",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Procedure-code",
"source" : [
{
"context" : "src",
"element" : "code",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "code",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Procedure-notPerformed",
"source" : [
{
"context" : "src",
"element" : "notPerformed",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "notDone",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Procedure-reasonNotPerformed",
"source" : [
{
"context" : "src",
"element" : "reasonNotPerformed",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "notDoneReason",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Procedure-bodySite",
"source" : [
{
"context" : "src",
"element" : "bodySite",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "bodySite",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Procedure-reasonCode",
"source" : [
{
"context" : "src",
"element" : "reason",
"variable" : "vvv",
"condition" : "$this is CodeableConcept"
}
],
"target" : [
{
"context" : "tgt",
"element" : "reasonCode",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Procedure-reasonReference",
"source" : [
{
"context" : "src",
"element" : "reason",
"variable" : "vvv",
"condition" : "$this is Reference"
}
],
"target" : [
{
"context" : "tgt",
"element" : "reasonReference",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Procedure-performed",
"source" : [
{
"context" : "src",
"element" : "performed",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "performed",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Procedure-performer",
"source" : [
{
"context" : "src",
"element" : "performer",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "performer",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "prcPerformer",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
},
{
"name" : "Procedure-encounter",
"source" : [
{
"context" : "src",
"element" : "encounter",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "context",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Procedure-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" : "Procedure-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"
}
]
}
]
},
{
"name" : "Procedure-report",
"source" : [
{
"context" : "src",
"element" : "report",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "report",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Procedure-complication",
"source" : [
{
"context" : "src",
"element" : "complication",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "complication",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Procedure-followUp",
"source" : [
{
"context" : "src",
"element" : "followUp",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "followUp",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Procedure-request",
"source" : [
{
"context" : "src",
"element" : "request",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "basedOn",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Procedure-notes",
"source" : [
{
"context" : "src",
"element" : "notes",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "note",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "Procedure-focalDevice",
"source" : [
{
"context" : "src",
"element" : "focalDevice",
"variable" : "vs0"
}
],
"target" : [
{
"context" : "tgt",
"element" : "focalDevice",
"variable" : "vt0"
}
],
"dependent" : [
{
"name" : "prcFocalDevice",
"parameter" : [
{
"valueId" : "vs0"
},
{
"valueId" : "vt0"
}
]
}
]
},
{
"name" : "Procedure-used",
"source" : [
{
"context" : "src",
"element" : "used",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "usedReference",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "prcPerformer",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"type" : "Procedure",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "ProcedureR2",
"mode" : "target"
}
],
"rule" : [
{
"name" : "performer-actor",
"source" : [
{
"context" : "src",
"element" : "actor",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "actor",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "performer-role",
"source" : [
{
"context" : "src",
"element" : "role",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "role",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
},
{
"name" : "prcFocalDevice",
"extends" : "BackboneElement",
"input" : [
{
"name" : "src",
"type" : "Procedure",
"mode" : "source"
},
{
"name" : "tgt",
"type" : "ProcedureR2",
"mode" : "target"
}
],
"rule" : [
{
"name" : "focalDevice-action",
"source" : [
{
"context" : "src",
"element" : "action",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "action",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
},
{
"name" : "focalDevice-manipulated",
"source" : [
{
"context" : "src",
"element" : "manipulated",
"variable" : "vvv"
}
],
"target" : [
{
"context" : "tgt",
"element" : "manipulated",
"variable" : "vvv",
"transform" : "create"
}
],
"dependent" : [
{
"name" : "DefaultMappingGroupAnonymousAlias",
"parameter" : [
{
"valueId" : "vvv"
},
{
"valueId" : "vvv"
}
]
}
]
}
]
}
]
}