FHIR Cross-Version Mapping Pack
0.1.0 - Ballot for Release 5.1.0 International flag

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

: R4 to R3 Conversion for ImplementationGuide - XML Representation

Page standards status: Draft Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="uide4to3TransformsR4toR3"/>
  <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/ImplementationGuide4to3'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'uide4to3 Transforms: R4 to R3'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'R4 to R3 Conversion for ImplementationGuide'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>

<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/4.0/ImplementationGuide<span style="color: navy">&quot; </span><b>alias </b>ImplementationGuide <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/ImplementationGuide<span style="color: navy">&quot; </span><b>alias </b>ImplementationGuideR3 <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*4to3<span style="color: navy">&quot;
</span>
<b>group </b>ImplementationGuide<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>ImplementationGuideR3, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>ImplementationGuide<span style="color: navy">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.url<span style="color: navy"><b> -&gt; </b></span>tgt.url<span style="color: navy">;</span>
  src.version<span style="color: navy"><b> -&gt; </b></span>tgt.version<span style="color: navy">;</span>
  src.name<span style="color: navy"><b> -&gt; </b></span>tgt.name<span style="color: navy">;</span>
  src.status<span style="color: navy"><b> -&gt; </b></span>tgt.status<span style="color: navy">;</span>
  src.experimental<span style="color: navy"><b> -&gt; </b></span>tgt.experimental<span style="color: navy">;</span>
  src.date<span style="color: navy"><b> -&gt; </b></span>tgt.date<span style="color: navy">;</span>
  src.publisher<span style="color: navy"><b> -&gt; </b></span>tgt.publisher<span style="color: navy">;</span>
  src.contact<span style="color: navy"><b> -&gt; </b></span>tgt.contact<span style="color: navy">;</span>
  src.description<span style="color: navy"><b> -&gt; </b></span>tgt.description<span style="color: navy">;</span>
  src.useContext<span style="color: navy"><b> -&gt; </b></span>tgt.useContext<span style="color: navy">;</span>
  src.jurisdiction<span style="color: navy"><b> -&gt; </b></span>tgt.jurisdiction<span style="color: navy">;</span>
  src.copyright<span style="color: navy"><b> -&gt; </b></span>tgt.copyright<span style="color: navy">;</span>
  src.fhirVersion<span style="color: navy"><b> -&gt; </b></span>tgt.fhirVersion<span style="color: navy">;</span>
  src.dependsOn<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.dependency<b> as </b><span style="color: maroon">vt0</span><b> then </b>dependency<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>&quot;dependency&quot;</i><span style="color: navy">;</span>
  src.global<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.global<b> as </b><span style="color: maroon">vt0</span><b> then </b>global<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><span style="color: navy">;</span>
  src.definition<b> as </b><span style="color: maroon">vs0</span><b> then </b>definition<span style="color: navy">(</span><span style="color: maroon">vs0</span><span style="color: navy">, </span><span style="color: maroon">tgt</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.manifest<b> as </b><span style="color: maroon">mft</span><b> then </b>manifest<span style="color: navy">(</span><span style="color: maroon">mft</span><span style="color: navy">, </span><span style="color: maroon">tgt</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>dependency<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<span style="color: navy"><b> -&gt; </b></span>tgt.type = <span style="color: blue">'reference'</span> <i>&quot;type&quot;</i><span style="color: navy">;</span>
  src.uri<span style="color: navy"><b> -&gt; </b></span>tgt.uri<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>global<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.type<span style="color: navy"><b> -&gt; </b></span>tgt.type<span style="color: navy">;</span>
  src.profile<span style="color: navy"><b> -&gt; </b></span>tgt.profile<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>definition<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.grouping<b> as </b><span style="color: maroon">grp</span><span style="color: navy"><b> -&gt; </b></span>tgt.package<b> as </b><span style="color: maroon">pck</span><b> then </b>grouping<span style="color: navy">(</span><span style="color: maroon">grp</span><span style="color: navy">, </span><span style="color: maroon">pck</span><span style="color: navy">, </span><span style="color: maroon">src</span><span style="color: navy">)</span> <i>&quot;package&quot;</i><span style="color: navy">;</span>
  src.page<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.page<b> as </b><span style="color: maroon">vt0</span><b> then </b>page<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><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>grouping<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span>, <b>source</b> <span style="color: maroon">dfn</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.name<span style="color: navy"><b> -&gt; </b></span>tgt.name<span style="color: navy">;</span>
  src.description<span style="color: navy"><b> -&gt; </b></span>tgt.description<span style="color: navy">;</span>
  dfn.resource<b> as </b><span style="color: maroon">rs</span><b> where </b>groupingId = src.id<span style="color: navy"><b> -&gt; </b></span>tgt.resource<b> as </b><span style="color: maroon">rt</span><b> then </b>resource<span style="color: navy">(</span><span style="color: maroon">rs</span><span style="color: navy">, </span><span style="color: maroon">rt</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>resource<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.example<span style="color: navy"> : </span>boolean<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.example<b> as </b><span style="color: maroon">vt0</span><b> then </b>boolean<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><span style="color: navy">;</span>
  src.name<span style="color: navy"><b> -&gt; </b></span>tgt.name<span style="color: navy">;</span>
  src.description<span style="color: navy"><b> -&gt; </b></span>tgt.description<span style="color: navy">;</span>
  src.extension<b> as </b><span style="color: maroon">ext</span><b> where </b>url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-ImplementationGuide.package.resource.acronym'<b> then</b><span style="color: navy"> {
</span>    ext.value<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.acronym = <span style="color: maroon">vs0</span> <i>&quot;acronym2&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;acronym&quot;</i><span style="color: navy">;</span>
  src.reference<b> as </b><span style="color: maroon">vs0</span><b> where </b>extension('http://hl7.org/fhir/3.0/StructureDefinition/BaseType').empty()<span style="color: navy"><b> -&gt; </b></span>tgt.source = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Reference'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt0</span><b> then </b>Reference<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>&quot;source1&quot;</i><span style="color: navy">;</span>
  src.reference<b> as </b><span style="color: maroon">vs0</span><b> where </b>extension('http://hl7.org/fhir/3.0/StructureDefinition/BaseType').exists()<span style="color: navy"><b> -&gt; </b></span>tgt.source = <b>create</b><span style="color: navy">(</span><span style="color: blue">'uri'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt0</span><b> then</b><span style="color: navy"> {
</span>    vs0.reference<b> as </b><span style="color: maroon">vs1</span><b> then </b>uri<span style="color: navy">(</span><span style="color: maroon">vs1</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span> <i>&quot;source2a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;source2&quot;</i><span style="color: navy">;</span>
  src.example<span style="color: navy"> : </span>canonical<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span> tgt.example = <span style="color: blue">'true'</span><span style="color: navy">, </span> tgt.exampleFor<b> as </b><span style="color: maroon">vt0</span><b> then </b>canonical2Reference<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>&quot;exampleFor&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>page<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.name<span style="color: navy"> : </span>uri<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.source<b> as </b><span style="color: maroon">vt0</span><b> then </b>uri<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>&quot;source&quot;</i><span style="color: navy">;</span>
  src.title<span style="color: navy"><b> -&gt; </b></span>tgt.title<span style="color: navy">;</span>
  src.extension<b> as </b><span style="color: maroon">ext</span><b> where </b>url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-ImplementationGuide.page.kind'<b> then</b><span style="color: navy"> {
</span>    ext.value<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.kind = <span style="color: maroon">vs0</span> <i>&quot;acronym2&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;acronym&quot;</i><span style="color: navy">;</span>
  src.extension<b> as </b><span style="color: maroon">ext</span><b> where </b>url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-ImplementationGuide.page.type'<b> then</b><span style="color: navy"> {
</span>    ext.value<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.type = <span style="color: maroon">vs0</span> <i>&quot;acronym2&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;acronym&quot;</i><span style="color: navy">;</span>
  src.extension<b> as </b><span style="color: maroon">ext</span><b> where </b>url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-ImplementationGuide.page.package'<b> then</b><span style="color: navy"> {
</span>    ext.value<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.package = <span style="color: maroon">vs0</span> <i>&quot;acronym2&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;acronym&quot;</i><span style="color: navy">;</span>
  src.extension<b> as </b><span style="color: maroon">ext</span><b> where </b>url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-ImplementationGuide.page.format'<b> then</b><span style="color: navy"> {
</span>    ext.value<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.format = <span style="color: maroon">vs0</span> <i>&quot;acronym2&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;acronym&quot;</i><span style="color: navy">;</span>
  src.page<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.page<b> as </b><span style="color: maroon">vt0</span><b> then </b>page<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><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>manifest<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.other<span style="color: navy"><b> -&gt; </b></span>tgt.binary <i>&quot;binary&quot;</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/ImplementationGuide4to3"/>
  <version value="0.1.0"/>
  <name value="uide4to3 Transforms: R4 to R3"/>
  <title value="R4 to R3 Conversion for ImplementationGuide"/>
  <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="R4toR3ConversionforImplementationGuide"/>
  <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/4.0/ImplementationGuide"/>
    <mode value="source"/>
    <alias value="ImplementationGuide"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/ImplementationGuide"/>
    <mode value="target"/>
    <alias value="ImplementationGuideR3"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*4to3"/>
  <group>
    <name value="ImplementationGuide"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="ImplementationGuideR3"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="ImplementationGuide"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="url"/>
      <source>
        <context value="src"/>
        <element value="url"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="url"/>
        <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="version"/>
      <source>
        <context value="src"/>
        <element value="version"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="version"/>
        <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="name"/>
      <source>
        <context value="src"/>
        <element value="name"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="name"/>
        <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="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="experimental"/>
      <source>
        <context value="src"/>
        <element value="experimental"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="experimental"/>
        <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="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="publisher"/>
      <source>
        <context value="src"/>
        <element value="publisher"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="publisher"/>
        <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="contact"/>
      <source>
        <context value="src"/>
        <element value="contact"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="contact"/>
        <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="description"/>
      <source>
        <context value="src"/>
        <element value="description"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="description"/>
        <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="useContext"/>
      <source>
        <context value="src"/>
        <element value="useContext"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="useContext"/>
        <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="jurisdiction"/>
      <source>
        <context value="src"/>
        <element value="jurisdiction"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="jurisdiction"/>
        <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="copyright"/>
      <source>
        <context value="src"/>
        <element value="copyright"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="copyright"/>
        <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="fhirVersion"/>
      <source>
        <context value="src"/>
        <element value="fhirVersion"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="fhirVersion"/>
        <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="dependency"/>
      <source>
        <context value="src"/>
        <element value="dependsOn"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="dependency"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="dependency"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="global"/>
      <source>
        <context value="src"/>
        <element value="global"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="global"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="global"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="definition"/>
      <source>
        <context value="src"/>
        <element value="definition"/>
        <variable value="vs0"/>
      </source>
      <dependent>
        <name value="definition"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="tgt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="manifest"/>
      <source>
        <context value="src"/>
        <element value="manifest"/>
        <variable value="mft"/>
      </source>
      <dependent>
        <name value="manifest"/>
        <parameter>
          <valueId value="mft"/>
        </parameter>
        <parameter>
          <valueId value="tgt"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="dependency"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="type"/>
      <source>
        <context value="src"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="type"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="reference"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="uri"/>
      <source>
        <context value="src"/>
        <element value="uri"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="uri"/>
        <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="global"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="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="profile"/>
      <source>
        <context value="src"/>
        <element value="profile"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="profile"/>
        <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="definition"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="package"/>
      <source>
        <context value="src"/>
        <element value="grouping"/>
        <variable value="grp"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="package"/>
        <variable value="pck"/>
      </target>
      <dependent>
        <name value="grouping"/>
        <parameter>
          <valueId value="grp"/>
        </parameter>
        <parameter>
          <valueId value="pck"/>
        </parameter>
        <parameter>
          <valueId value="src"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="page"/>
      <source>
        <context value="src"/>
        <element value="page"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="page"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="page"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="grouping"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <input>
      <name value="dfn"/>
      <mode value="source"/>
    </input>
    <rule>
      <name value="name"/>
      <source>
        <context value="src"/>
        <element value="name"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="name"/>
        <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="description"/>
      <source>
        <context value="src"/>
        <element value="description"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="description"/>
        <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="resource"/>
      <source>
        <context value="dfn"/>
        <element value="resource"/>
        <variable value="rs"/>
        <condition value="groupingId = src.id"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="resource"/>
        <variable value="rt"/>
      </target>
      <dependent>
        <name value="resource"/>
        <parameter>
          <valueId value="rs"/>
        </parameter>
        <parameter>
          <valueId value="rt"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="resource"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="exampleBoolean"/>
      <source>
        <context value="src"/>
        <type value="boolean"/>
        <element value="example"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="example"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="boolean"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="name"/>
      <source>
        <context value="src"/>
        <element value="name"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="name"/>
        <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="description"/>
      <source>
        <context value="src"/>
        <element value="description"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="description"/>
        <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="acronym"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="ext"/>
        <condition
                   value="url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-ImplementationGuide.package.resource.acronym'"/>
      </source>
      <rule>
        <name value="acronym2"/>
        <source>
          <context value="ext"/>
          <element value="value"/>
          <variable value="vs0"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="acronym"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vs0"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="source1"/>
      <source>
        <context value="src"/>
        <element value="reference"/>
        <variable value="vs0"/>
        <condition
                   value="extension('http://hl7.org/fhir/3.0/StructureDefinition/BaseType').empty()"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="source"/>
        <variable value="vt0"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Reference"/>
        </parameter>
      </target>
      <dependent>
        <name value="Reference"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="source2"/>
      <source>
        <context value="src"/>
        <element value="reference"/>
        <variable value="vs0"/>
        <condition
                   value="extension('http://hl7.org/fhir/3.0/StructureDefinition/BaseType').exists()"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="source"/>
        <variable value="vt0"/>
        <transform value="create"/>
        <parameter>
          <valueString value="uri"/>
        </parameter>
      </target>
      <rule>
        <name value="source2a"/>
        <source>
          <context value="vs0"/>
          <element value="reference"/>
          <variable value="vs1"/>
        </source>
        <dependent>
          <name value="uri"/>
          <parameter>
            <valueId value="vs1"/>
          </parameter>
          <parameter>
            <valueId value="vt0"/>
          </parameter>
        </dependent>
      </rule>
    </rule>
    <rule>
      <name value="exampleFor"/>
      <source>
        <context value="src"/>
        <type value="canonical"/>
        <element value="example"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="example"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="true"/>
        </parameter>
      </target>
      <target>
        <context value="tgt"/>
        <element value="exampleFor"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="canonical2Reference"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="page"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="source"/>
      <source>
        <context value="src"/>
        <type value="uri"/>
        <element value="name"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="source"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="uri"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="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="acronym"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="ext"/>
        <condition
                   value="url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-ImplementationGuide.page.kind'"/>
      </source>
      <rule>
        <name value="acronym2"/>
        <source>
          <context value="ext"/>
          <element value="value"/>
          <variable value="vs0"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="kind"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vs0"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="acronym"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="ext"/>
        <condition
                   value="url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-ImplementationGuide.page.type'"/>
      </source>
      <rule>
        <name value="acronym2"/>
        <source>
          <context value="ext"/>
          <element value="value"/>
          <variable value="vs0"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="type"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vs0"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="acronym"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="ext"/>
        <condition
                   value="url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-ImplementationGuide.page.package'"/>
      </source>
      <rule>
        <name value="acronym2"/>
        <source>
          <context value="ext"/>
          <element value="value"/>
          <variable value="vs0"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="package"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vs0"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="acronym"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="ext"/>
        <condition
                   value="url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-ImplementationGuide.page.format'"/>
      </source>
      <rule>
        <name value="acronym2"/>
        <source>
          <context value="ext"/>
          <element value="value"/>
          <variable value="vs0"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="format"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vs0"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="page"/>
      <source>
        <context value="src"/>
        <element value="page"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="page"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="page"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="manifest"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="binary"/>
      <source>
        <context value="src"/>
        <element value="other"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="binary"/>
        <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>