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="Composition3to2"/>
<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/Composition3to2'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'Composition3to2'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'Composition Transforms: R3 to R2'</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/3.0/Composition<span style="color: navy">" </span><b>alias </b>Composition <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span>http://hl7.org/fhir/1.0/Composition<span style="color: navy">" </span><b>alias </b>CompositionR2 <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*3to2<span style="color: navy">"
</span>
<b>group </b>Composition<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>Composition, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>CompositionR2<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>"Composition-identifier"</i><span style="color: navy">;</span>
src.date<span style="color: navy"><b> -> </b></span>tgt.date <i>"Composition-date"</i><span style="color: navy">;</span>
src.type<span style="color: navy"><b> -> </b></span>tgt.type <i>"Composition-type"</i><span style="color: navy">;</span>
src.class<span style="color: navy"><b> -> </b></span>tgt.class <i>"Composition-class"</i><span style="color: navy">;</span>
src.title<span style="color: navy"><b> -> </b></span>tgt.title <i>"Composition-title"</i><span style="color: navy">;</span>
src.status<span style="color: navy"><b> -> </b></span>tgt.status <i>"Composition-status"</i><span style="color: navy">;</span>
src.confidentiality<span style="color: navy"><b> -> </b></span>tgt.confidentiality <i>"Composition-confidentiality"</i><span style="color: navy">;</span>
src.subject<span style="color: navy"><b> -> </b></span>tgt.subject <i>"Composition-subject"</i><span style="color: navy">;</span>
src.author<span style="color: navy"><b> -> </b></span>tgt.author <i>"Composition-author"</i><span style="color: navy">;</span>
src.attester<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -> </b></span>tgt.attester<b> as </b><span style="color: maroon">vt0</span><b> then </b>cmpAttester<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>"Composition-attester"</i><span style="color: navy">;</span>
src.custodian<span style="color: navy"><b> -> </b></span>tgt.custodian <i>"Composition-custodian"</i><span style="color: navy">;</span>
src.event<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -> </b></span>tgt.event<b> as </b><span style="color: maroon">vt0</span><b> then </b>cmpEvent<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>"Composition-event"</i><span style="color: navy">;</span>
src.section<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -> </b></span>tgt.section<b> as </b><span style="color: maroon">vt0</span><b> then </b>cmpSection<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>"Composition-section"</i><span style="color: navy">;</span>
src.encounter<span style="color: navy"><b> -> </b></span>tgt.encounter <i>"Composition-encounter"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>cmpAttester<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"> {
</span> src.mode<span style="color: navy"><b> -> </b></span>tgt.mode <i>"attester-mode"</i><span style="color: navy">;</span>
src.time<span style="color: navy"><b> -> </b></span>tgt.time <i>"attester-time"</i><span style="color: navy">;</span>
src.party<span style="color: navy"><b> -> </b></span>tgt.party <i>"attester-party"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>cmpEvent<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"> {
</span> src.code<span style="color: navy"><b> -> </b></span>tgt.code <i>"event-code"</i><span style="color: navy">;</span>
src.period<span style="color: navy"><b> -> </b></span>tgt.period <i>"event-period"</i><span style="color: navy">;</span>
src.detail<span style="color: navy"><b> -> </b></span>tgt.detail <i>"event-detail"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>cmpSection<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"> {
</span> src.title<span style="color: navy"><b> -> </b></span>tgt.title <i>"section-title"</i><span style="color: navy">;</span>
src.code<span style="color: navy"><b> -> </b></span>tgt.code <i>"section-code"</i><span style="color: navy">;</span>
src.text<span style="color: navy"><b> -> </b></span>tgt.text <i>"section-text"</i><span style="color: navy">;</span>
src.mode<span style="color: navy"><b> -> </b></span>tgt.mode <i>"section-mode"</i><span style="color: navy">;</span>
src.orderedBy<span style="color: navy"><b> -> </b></span>tgt.orderedBy <i>"section-orderedBy"</i><span style="color: navy">;</span>
src.entry<span style="color: navy"><b> -> </b></span>tgt.entry <i>"section-entry"</i><span style="color: navy">;</span>
src.emptyReason<span style="color: navy"><b> -> </b></span>tgt.emptyReason <i>"section-emptyReason"</i><span style="color: navy">;</span>
src.section<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -> </b></span>tgt.section<b> as </b><span style="color: maroon">vt0</span><b> then </b>cmpSection<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>"section-section"</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/Composition3to2"/>
<version value="0.1.0"/>
<name value="Composition3to2"/>
<title value="Composition Transforms: R3 to R2"/>
<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="CompositionTransformsR3toR2"/>
<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/3.0/Composition"/>
<mode value="source"/>
<alias value="Composition"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/1.0/Composition"/>
<mode value="target"/>
<alias value="CompositionR2"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*3to2"/>
<group>
<name value="Composition"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="Composition"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="CompositionR2"/>
<mode value="target"/>
</input>
<rule>
<name value="Composition-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="Composition-date"/>
<source>
<context value="src"/>
<element value="date"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="date"/>
<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="Composition-type"/>
<source>
<context value="src"/>
<element value="type"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="type"/>
<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="Composition-class"/>
<source>
<context value="src"/>
<element value="class"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="class"/>
<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="Composition-title"/>
<source>
<context value="src"/>
<element value="title"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="title"/>
<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="Composition-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="Composition-confidentiality"/>
<source>
<context value="src"/>
<element value="confidentiality"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="confidentiality"/>
<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="Composition-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="Composition-author"/>
<source>
<context value="src"/>
<element value="author"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="author"/>
<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="Composition-attester"/>
<source>
<context value="src"/>
<element value="attester"/>
<variable value="vs0"/>
</source>
<target>
<context value="tgt"/>
<element value="attester"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="cmpAttester"/>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Composition-custodian"/>
<source>
<context value="src"/>
<element value="custodian"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="custodian"/>
<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="Composition-event"/>
<source>
<context value="src"/>
<element value="event"/>
<variable value="vs0"/>
</source>
<target>
<context value="tgt"/>
<element value="event"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="cmpEvent"/>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Composition-section"/>
<source>
<context value="src"/>
<element value="section"/>
<variable value="vs0"/>
</source>
<target>
<context value="tgt"/>
<element value="section"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="cmpSection"/>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="Composition-encounter"/>
<source>
<context value="src"/>
<element value="encounter"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="encounter"/>
<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="cmpAttester"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="attester-mode"/>
<source>
<context value="src"/>
<element value="mode"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="mode"/>
<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="attester-time"/>
<source>
<context value="src"/>
<element value="time"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="time"/>
<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="attester-party"/>
<source>
<context value="src"/>
<element value="party"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="party"/>
<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="cmpEvent"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="event-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="event-period"/>
<source>
<context value="src"/>
<element value="period"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="period"/>
<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="event-detail"/>
<source>
<context value="src"/>
<element value="detail"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="detail"/>
<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="cmpSection"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="section-title"/>
<source>
<context value="src"/>
<element value="title"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="title"/>
<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="section-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="section-text"/>
<source>
<context value="src"/>
<element value="text"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="text"/>
<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="section-mode"/>
<source>
<context value="src"/>
<element value="mode"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="mode"/>
<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="section-orderedBy"/>
<source>
<context value="src"/>
<element value="orderedBy"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="orderedBy"/>
<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="section-entry"/>
<source>
<context value="src"/>
<element value="entry"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="entry"/>
<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="section-emptyReason"/>
<source>
<context value="src"/>
<element value="emptyReason"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="emptyReason"/>
<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="section-section"/>
<source>
<context value="src"/>
<element value="section"/>
<variable value="vs0"/>
</source>
<target>
<context value="tgt"/>
<element value="section"/>
<variable value="vt0"/>
</target>
<dependent>
<name value="cmpSection"/>
<parameter>
<valueId value="vs0"/>
</parameter>
<parameter>
<valueId value="vt0"/>
</parameter>
</dependent>
</rule>
</group>
</StructureMap>