FHIR Extensions Pack
1.0.0 - Working Copy International flag

This page is part of the FHIR Core Extensions Registry (v1.0.0: Releases) based on FHIR v5.0.0. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

: FML Conversion for Bundle: R5 to R4B - XML Representation

Page standards status: Trial-use Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="Bundle5to4B"/>
  <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/Bundle5to4B'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'Bundle5to4B'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for Bundle: R5 to R4B'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>

<b>conceptmap</b><span style="color: navy"> &quot;</span>BundleType<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-bundle-type.html" title="Bundle Type">http://hl7.org/fhir/bundle-type</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4B/codesystem-bundle-type.html" title="BundleType">http://hl7.org/fhir/4.3/bundle-type</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>document <b>-</b> t<span style="color: navy">:</span>document
  s<span style="color: navy">:</span>message <b>-</b> t<span style="color: navy">:</span>message
  s<span style="color: navy">:</span>transaction <b>-</b> t<span style="color: navy">:</span>transaction
  s<span style="color: navy">:</span>&quot;transaction-response&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>transaction-response<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>batch <b>-</b> t<span style="color: navy">:</span>batch
  s<span style="color: navy">:</span>&quot;batch-response&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>batch-response<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>history <b>-</b> t<span style="color: navy">:</span>history
  s<span style="color: navy">:</span>searchset <b>-</b> t<span style="color: navy">:</span>searchset
  s<span style="color: navy">:</span>collection <b>-</b> t<span style="color: navy">:</span>collection
<span style="color: navy">}

</span><b>conceptmap</b><span style="color: navy"> &quot;</span>HTTPVerb<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-http-verb.html" title="H T T P Verb">http://hl7.org/fhir/http-verb</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4B/codesystem-http-verb.html" title="HTTPVerb">http://hl7.org/fhir/4.3/http-verb</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>GET <b>-</b> t<span style="color: navy">:</span>GET
  s<span style="color: navy">:</span>HEAD <b>-</b> t<span style="color: navy">:</span>HEAD
  s<span style="color: navy">:</span>POST <b>-</b> t<span style="color: navy">:</span>POST
  s<span style="color: navy">:</span>PUT <b>-</b> t<span style="color: navy">:</span>PUT
  s<span style="color: navy">:</span>DELETE <b>-</b> t<span style="color: navy">:</span>DELETE
  s<span style="color: navy">:</span>PATCH <b>-</b> t<span style="color: navy">:</span>PATCH
<span style="color: navy">}

</span><b>conceptmap</b><span style="color: navy"> &quot;</span>SearchEntryMode<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-search-entry-mode.html" title="Search Entry Mode">http://hl7.org/fhir/search-entry-mode</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4B/codesystem-search-entry-mode.html" title="SearchEntryMode">http://hl7.org/fhir/4.3/search-entry-mode</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>match <b>-</b> t<span style="color: navy">:</span>match
  s<span style="color: navy">:</span>include <b>-</b> t<span style="color: navy">:</span>include
  s<span style="color: navy">:</span>outcome <b>-</b> t<span style="color: navy">:</span>outcome
<span style="color: navy">}

</span><b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R5/bundle.html" title="Bundle">http://hl7.org/fhir/StructureDefinition/Bundle</a><span style="color: navy">&quot; </span><b>alias </b>BundleR5 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4B/bundle.html" title="Bundle">http://hl7.org/fhir/4.3/StructureDefinition/Bundle</a><span style="color: navy">&quot; </span><b>alias </b>BundleR4B <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*5to4B<span style="color: navy">&quot;
</span>
<b>group </b>Bundle<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>BundleR5, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>BundleR4B<span style="color: navy">)</span><b> extends </b>Resource<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.identifier<span style="color: navy"><b> -&gt; </b></span>tgt.identifier<span style="color: navy">;</span>
  src.type<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.type = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#BundleType'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.timestamp<span style="color: navy"><b> -&gt; </b></span>tgt.timestamp<span style="color: navy">;</span>
  src.total<span style="color: navy"><b> -&gt; </b></span>tgt.total<span style="color: navy">;</span>
  src.link<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.link<b> as </b><span style="color: maroon">t</span><b> then </b>BundleLink<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.entry<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.entry<b> as </b><span style="color: maroon">t</span><b> then </b>BundleEntry<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.signature<span style="color: navy"><b> -&gt; </b></span>tgt.signature<span style="color: navy">;</span>
<span style="color: navy">}

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

</span><b>group </b>BundleEntry<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.fullUrl<span style="color: navy"><b> -&gt; </b></span>tgt.fullUrl<span style="color: navy">;</span>
  src.resource<span style="color: navy"> : </span>Resource<span style="color: navy"><b> -&gt; </b></span>tgt.resource<span style="color: navy">;</span>
  src.search<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.search<b> as </b><span style="color: maroon">t</span><b> then </b>BundleEntrySearch<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.request<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.request<b> as </b><span style="color: maroon">t</span><b> then </b>BundleEntryRequest<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.response<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.response<b> as </b><span style="color: maroon">t</span><b> then </b>BundleEntryResponse<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>BundleEntrySearch<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<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.mode = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#SearchEntryMode'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.score<span style="color: navy"><b> -&gt; </b></span>tgt.score<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>BundleEntryRequest<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.method<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.method = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#HTTPVerb'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.url<span style="color: navy"><b> -&gt; </b></span>tgt.url<span style="color: navy">;</span>
  src.ifNoneMatch<span style="color: navy"><b> -&gt; </b></span>tgt.ifNoneMatch<span style="color: navy">;</span>
  src.ifModifiedSince<span style="color: navy"><b> -&gt; </b></span>tgt.ifModifiedSince<span style="color: navy">;</span>
  src.ifMatch<span style="color: navy"><b> -&gt; </b></span>tgt.ifMatch<span style="color: navy">;</span>
  src.ifNoneExist<span style="color: navy"><b> -&gt; </b></span>tgt.ifNoneExist<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>BundleEntryResponse<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.status<span style="color: navy"><b> -&gt; </b></span>tgt.status<span style="color: navy">;</span>
  src.location<span style="color: navy"><b> -&gt; </b></span>tgt.location<span style="color: navy">;</span>
  src.etag<span style="color: navy"><b> -&gt; </b></span>tgt.etag<span style="color: navy">;</span>
  src.lastModified<span style="color: navy"><b> -&gt; </b></span>tgt.lastModified<span style="color: navy">;</span>
  src.outcome<span style="color: navy"> : </span>Resource<span style="color: navy"><b> -&gt; </b></span>tgt.outcome<span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <contained>
    <ConceptMap>
      <id value="BundleType"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/bundle-type"/>
        <target value="http://hl7.org/fhir/4.3/bundle-type"/>
        <element>
          <code value="document"/>
          <target>
            <code value="document"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="message"/>
          <target>
            <code value="message"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="transaction"/>
          <target>
            <code value="transaction"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="transaction-response"/>
          <target>
            <code value="transaction-response"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="batch"/>
          <target>
            <code value="batch"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="batch-response"/>
          <target>
            <code value="batch-response"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="history"/>
          <target>
            <code value="history"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="searchset"/>
          <target>
            <code value="searchset"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="collection"/>
          <target>
            <code value="collection"/>
            <relationship value="related-to"/>
            <comment
                     value="s:&quot;subscription-notification&quot; - t:&quot;subscription-notification&quot;"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="HTTPVerb"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/http-verb"/>
        <target value="http://hl7.org/fhir/4.3/http-verb"/>
        <element>
          <code value="GET"/>
          <target>
            <code value="GET"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="HEAD"/>
          <target>
            <code value="HEAD"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="POST"/>
          <target>
            <code value="POST"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="PUT"/>
          <target>
            <code value="PUT"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="DELETE"/>
          <target>
            <code value="DELETE"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="PATCH"/>
          <target>
            <code value="PATCH"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="SearchEntryMode"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/search-entry-mode"/>
        <target value="http://hl7.org/fhir/4.3/search-entry-mode"/>
        <element>
          <code value="match"/>
          <target>
            <code value="match"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="include"/>
          <target>
            <code value="include"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="outcome"/>
          <target>
            <code value="outcome"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <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.extensions"/>
      </extension>
    </valueInteger>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
        <valueCanonical
                        value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"/>
      </extension>
    </valueCode>
  </extension>
  <url value="http://hl7.org/fhir/StructureMap/Bundle5to4B"/>
  <version value="1.0.0"/>
  <name value="Bundle5to4B"/>
  <title value="FML Conversion for Bundle: R5 to R4B"/>
  <status value="active"/>
  <date value="2023-03-26T08:47:34+11:00"/>
  <publisher value="HL7 International / FHIR Infrastructure"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://hl7.org/Special/committees/fhir-i"/>
    </telecom>
  </contact>
  <description value="FMLConversionforBundleR5toR4B"/>
  <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/StructureDefinition/Bundle"/>
    <mode value="source"/>
    <alias value="BundleR5"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/4.3/StructureDefinition/Bundle"/>
    <mode value="target"/>
    <alias value="BundleR4B"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*5to4B"/>
  <group>
    <name value="Bundle"/>
    <extends value="Resource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="BundleR5"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="BundleR4B"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="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="type"/>
      <source>
        <context value="src"/>
        <element value="type"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="type"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#BundleType"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="timestamp"/>
      <source>
        <context value="src"/>
        <element value="timestamp"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="timestamp"/>
        <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="total"/>
      <source>
        <context value="src"/>
        <element value="total"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="total"/>
        <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="link"/>
      <source>
        <context value="src"/>
        <element value="link"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="link"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="BundleLink"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="entry"/>
      <source>
        <context value="src"/>
        <element value="entry"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="entry"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="BundleEntry"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="signature"/>
      <source>
        <context value="src"/>
        <element value="signature"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="signature"/>
        <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="BundleLink"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="relation"/>
      <source>
        <context value="src"/>
        <element value="relation"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="relation"/>
        <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="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>
  </group>
  <group>
    <name value="BundleEntry"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="fullUrl"/>
      <source>
        <context value="src"/>
        <element value="fullUrl"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="fullUrl"/>
        <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="resourceResource"/>
      <source>
        <context value="src"/>
        <type value="Resource"/>
        <element value="resource"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="resource"/>
        <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="search"/>
      <source>
        <context value="src"/>
        <element value="search"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="search"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="BundleEntrySearch"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="request"/>
      <source>
        <context value="src"/>
        <element value="request"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="request"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="BundleEntryRequest"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="response"/>
      <source>
        <context value="src"/>
        <element value="response"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="response"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="BundleEntryResponse"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="BundleEntrySearch"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="mode"/>
      <source>
        <context value="src"/>
        <element value="mode"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="mode"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#SearchEntryMode"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="score"/>
      <source>
        <context value="src"/>
        <element value="score"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="score"/>
        <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="BundleEntryRequest"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="method"/>
      <source>
        <context value="src"/>
        <element value="method"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="method"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#HTTPVerb"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <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="ifNoneMatch"/>
      <source>
        <context value="src"/>
        <element value="ifNoneMatch"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="ifNoneMatch"/>
        <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="ifModifiedSince"/>
      <source>
        <context value="src"/>
        <element value="ifModifiedSince"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="ifModifiedSince"/>
        <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="ifMatch"/>
      <source>
        <context value="src"/>
        <element value="ifMatch"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="ifMatch"/>
        <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="ifNoneExist"/>
      <source>
        <context value="src"/>
        <element value="ifNoneExist"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="ifNoneExist"/>
        <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="BundleEntryResponse"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <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="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="etag"/>
      <source>
        <context value="src"/>
        <element value="etag"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="etag"/>
        <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="lastModified"/>
      <source>
        <context value="src"/>
        <element value="lastModified"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="lastModified"/>
        <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="outcomeResource"/>
      <source>
        <context value="src"/>
        <type value="Resource"/>
        <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>
  </group>
</StructureMap>