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 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="Procedure2to3"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><pre class="fml">
<span style="color: #cc00cc">/// <b>url</b> = </span><span style="color: blue">'http://hl7.org/fhir/StructureMap/Procedure2to3'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'Procedure2to3'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'Procedure Transforms: R2 to R3'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>
<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>
<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>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*2to3<span style="color: navy">"
</span>
<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"> {
</span> src.identifier<span style="color: navy"><b> -> </b></span>tgt.identifier <i>"Procedure-identifier"</i><span style="color: navy">;</span>
src.subject<span style="color: navy"><b> -> </b></span>tgt.subject <i>"Procedure-subject"</i><span style="color: navy">;</span>
src.status<span style="color: navy"><b> -> </b></span>tgt.status <i>"Procedure-status"</i><span style="color: navy">;</span>
src.category<span style="color: navy"><b> -> </b></span>tgt.category <i>"Procedure-category"</i><span style="color: navy">;</span>
src.code<span style="color: navy"><b> -> </b></span>tgt.code <i>"Procedure-code"</i><span style="color: navy">;</span>
src.notPerformed<span style="color: navy"><b> -> </b></span>tgt.notDone <i>"Procedure-notPerformed"</i><span style="color: navy">;</span>
src.reasonNotPerformed<span style="color: navy"><b> -> </b></span>tgt.notDoneReason <i>"Procedure-reasonNotPerformed"</i><span style="color: navy">;</span>
src.bodySite<span style="color: navy"><b> -> </b></span>tgt.bodySite <i>"Procedure-bodySite"</i><span style="color: navy">;</span>
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>
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>
src.performed<span style="color: navy"><b> -> </b></span>tgt.performed <i>"Procedure-performed"</i><span style="color: navy">;</span>
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>
src.encounter<span style="color: navy"><b> -> </b></span>tgt.context <i>"Procedure-encounter"</i><span style="color: navy">;</span>
src.location<span style="color: navy"><b> -> </b></span>tgt.location <i>"Procedure-location"</i><span style="color: navy">;</span>
src.outcome<span style="color: navy"><b> -> </b></span>tgt.outcome <i>"Procedure-outcome"</i><span style="color: navy">;</span>
src.report<span style="color: navy"><b> -> </b></span>tgt.report <i>"Procedure-report"</i><span style="color: navy">;</span>
src.complication<span style="color: navy"><b> -> </b></span>tgt.complication <i>"Procedure-complication"</i><span style="color: navy">;</span>
src.followUp<span style="color: navy"><b> -> </b></span>tgt.followUp <i>"Procedure-followUp"</i><span style="color: navy">;</span>
src.request<span style="color: navy"><b> -> </b></span>tgt.basedOn <i>"Procedure-request"</i><span style="color: navy">;</span>
src.notes<span style="color: navy"><b> -> </b></span>tgt.note <i>"Procedure-notes"</i><span style="color: navy">;</span>
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>
src.used<span style="color: navy"><b> -> </b></span>tgt.usedReference <i>"Procedure-used"</i><span style="color: navy">;</span>
<span style="color: navy">}
</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"> {
</span> src.actor<span style="color: navy"><b> -> </b></span>tgt.actor <i>"performer-actor"</i><span style="color: navy">;</span>
src.role<span style="color: navy"><b> -> </b></span>tgt.role <i>"performer-role"</i><span style="color: navy">;</span>
<span style="color: navy">}
</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"> {
</span> src.action<span style="color: navy"><b> -> </b></span>tgt.action <i>"focalDevice-action"</i><span style="color: navy">;</span>
src.manipulated<span style="color: navy"><b> -> </b></span>tgt.manipulated <i>"focalDevice-manipulated"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
<valueCode value="fhir"/>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
<valueInteger value="1">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"/>
</extension>
</valueInteger>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
<valueCode value="draft">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"/>
</extension>
</valueCode>
</extension>
<url value="http://hl7.org/fhir/StructureMap/Procedure2to3"/>
<version value="0.1.0"/>
<name value="Procedure2to3"/>
<title value="Procedure Transforms: R2 to R3"/>
<status value="active"/>
<date value="2024-02-22T03:16:50+00:00"/>
<publisher value="HL7 International / FHIR Infrastructure"/>
<contact>
<telecom>
<system value="url"/>
<value value="http://www.hl7.org/Special/committees/fiwg"/>
</telecom>
</contact>
<description value="ProcedureTransformsR2toR3"/>
<jurisdiction>
<coding>
<system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
<code value="001"/>
</coding>
</jurisdiction>
<structure>
<url value="http://hl7.org/fhir/1.0/Procedure"/>
<mode value="source"/>
<alias value="ProcedureR2"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/3.0/Procedure"/>
<mode value="target"/>
<alias value="Procedure"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*2to3"/>
<group>
<name value="Procedure"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="ProcedureR2"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="Procedure"/>
<mode value="target"/>
</input>
<rule>
<name value="Procedure-identifier"/>
<source>
<context value="src"/>
<element value="identifier"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="identifier"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-subject"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="subject"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-status"/>
<source>
<context value="src"/>
<element value="status"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="status"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-category"/>
<source>
<context value="src"/>
<element value="category"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="category"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-code"/>
<source>
<context value="src"/>
<element value="code"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="code"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-notPerformed"/>
<source>
<context value="src"/>
<element value="notPerformed"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="notDone"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-reasonNotPerformed"/>
<source>
<context value="src"/>
<element value="reasonNotPerformed"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="notDoneReason"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-bodySite"/>
<source>
<context value="src"/>
<element value="bodySite"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="bodySite"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-reasonCode"/>
<source>
<context value="src"/>
<element value="reason"/>
<variable value="vvv"/>
<condition value="$this is CodeableConcept"/>
</source>
<target>
<context value="tgt"/>
<element value="reasonCode"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-reasonReference"/>
<source>
<context value="src"/>
<element value="reason"/>
<variable value="vvv"/>
<condition value="$this is Reference"/>
</source>
<target>
<context value="tgt"/>
<element value="reasonReference"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-performed"/>
<source>
<context value="src"/>
<element value="performed"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="performed"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-performer"/>
<source>
<context value="src"/>
<element value="performer"/>
<variable value="vs0"/>
</source>
<target>
<context value="tgt"/>
<element value="performer"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="prcPerformer"/>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-encounter"/>
<source>
<context value="src"/>
<element value="encounter"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="context"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-location"/>
<source>
<context value="src"/>
<element value="location"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="location"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-outcome"/>
<source>
<context value="src"/>
<element value="outcome"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="outcome"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-report"/>
<source>
<context value="src"/>
<element value="report"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="report"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-complication"/>
<source>
<context value="src"/>
<element value="complication"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="complication"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-followUp"/>
<source>
<context value="src"/>
<element value="followUp"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="followUp"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-request"/>
<source>
<context value="src"/>
<element value="request"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="basedOn"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-notes"/>
<source>
<context value="src"/>
<element value="notes"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="note"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-focalDevice"/>
<source>
<context value="src"/>
<element value="focalDevice"/>
<variable value="vs0"/>
</source>
<target>
<context value="tgt"/>
<element value="focalDevice"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="prcFocalDevice"/>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Procedure-used"/>
<source>
<context value="src"/>
<element value="used"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="usedReference"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="prcPerformer"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<type value="Procedure"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="ProcedureR2"/>
<mode value="target"/>
</input>
<rule>
<name value="performer-actor"/>
<source>
<context value="src"/>
<element value="actor"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="actor"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="performer-role"/>
<source>
<context value="src"/>
<element value="role"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="role"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
</group>
<group>
<name value="prcFocalDevice"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<type value="Procedure"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="ProcedureR2"/>
<mode value="target"/>
</input>
<rule>
<name value="focalDevice-action"/>
<source>
<context value="src"/>
<element value="action"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="action"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="focalDevice-manipulated"/>
<source>
<context value="src"/>
<element value="manipulated"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="manipulated"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
</group>
</StructureMap>