FHIR Extensions Pack
5.1.0 - 5.1.0 (April 2024) International flag

This page is part of the FHIR Core Extensions Registry (v5.1.0: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. This is the current published version. For a full list of available versions, see the Directory of published versions

: FML Conversion for ConceptMap: R5 to R4 - XML Representation

Page standards status: Trial-use Maturity Level: 1

Raw xml | Download



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

<b>conceptmap</b><span style="color: navy"> &quot;</span>ConceptMapGroupUnmappedMode<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-conceptmap-unmapped-mode.html" title="Concept Map Group Unmapped Mode">http://hl7.org/fhir/conceptmap-unmapped-mode</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4/codesystem-conceptmap-unmapped-mode.html" title="ConceptMapGroupUnmappedMode">http://hl7.org/fhir/4.0/conceptmap-unmapped-mode</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>&quot;use-source-code&quot; <b>-</b> t<span style="color: navy">:</span>provided
  s<span style="color: navy">:</span>fixed <b>-</b> t<span style="color: navy">:</span>fixed
  s<span style="color: navy">:</span>&quot;other-map&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>other-map<span style="color: navy">&quot;</span>
<span style="color: navy">}

</span><b>conceptmap</b><span style="color: navy"> &quot;</span>ConceptMapRelationship<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-concept-map-relationship.html" title="ConceptMapRelationship">http://hl7.org/fhir/concept-map-relationship</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4/codesystem-concept-map-equivalence.html" title="ConceptMapEquivalence">http://hl7.org/fhir/4.0/concept-map-equivalence</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>&quot;related-to&quot; <b>-</b> t<span style="color: navy">:</span>relatedto
  s<span style="color: navy">:</span>equivalent <b>-</b> t<span style="color: navy">:</span>equivalent
  s<span style="color: navy">:</span>&quot;source-is-narrower-than-target&quot; <b>-</b> t<span style="color: navy">:</span>wider
  s<span style="color: navy">:</span>&quot;source-is-broader-than-target&quot; <b>-</b> t<span style="color: navy">:</span>narrower
  s<span style="color: navy">:</span>&quot;not-related-to&quot; <b>-</b> t<span style="color: navy">:</span>unmatched
<span style="color: navy">}

</span><b>conceptmap</b><span style="color: navy"> &quot;</span>PublicationStatus<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-publication-status.html" title="PublicationStatus">http://hl7.org/fhir/publication-status</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4/codesystem-publication-status.html" title="PublicationStatus">http://hl7.org/fhir/4.0/publication-status</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>draft <b>-</b> t<span style="color: navy">:</span>draft
  s<span style="color: navy">:</span>active <b>-</b> t<span style="color: navy">:</span>active
  s<span style="color: navy">:</span>retired <b>-</b> t<span style="color: navy">:</span>retired
  s<span style="color: navy">:</span>unknown <b>-</b> t<span style="color: navy">:</span>unknown
<span style="color: navy">}

</span><b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R5/conceptmap.html" title="ConceptMap">http://hl7.org/fhir/StructureDefinition/ConceptMap</a><span style="color: navy">&quot; </span><b>alias </b>ConceptMapR5 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4/conceptmap.html" title="ConceptMap">http://hl7.org/fhir/4.0/StructureDefinition/ConceptMap</a><span style="color: navy">&quot; </span><b>alias </b>ConceptMapR4 <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*5to4<span style="color: navy">&quot;
</span>
<b>group </b>ConceptMap<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>ConceptMapR5, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>ConceptMapR4<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.identifier<span style="color: navy"><b> -&gt; </b></span>tgt.identifier<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> <span style="color: navy">// </span><span style="color: green">src.versionAlgorithm : string -&gt; tgt.versionAlgorithm;</span>
  src.title<span style="color: navy"><b> -&gt; </b></span>tgt.title<span style="color: navy">;</span>
  src.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#PublicationStatus'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><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.purpose<span style="color: navy"><b> -&gt; </b></span>tgt.purpose<span style="color: navy">;</span>
  src.copyright<span style="color: navy"><b> -&gt; </b></span>tgt.copyright<span style="color: navy">;</span>
  src.sourceScope<span style="color: navy"> : </span>uri<span style="color: navy"><b> -&gt; </b></span>tgt.source<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.copyrightLabel -&gt; tgt.copyrightLabel;</span>
  src.sourceScope<span style="color: navy"> : </span>canonical<span style="color: navy"><b> -&gt; </b></span>tgt.source<span style="color: navy">;</span>
  src.targetScope<span style="color: navy"> : </span>uri<span style="color: navy"><b> -&gt; </b></span>tgt.target<span style="color: navy">;</span>
  src.targetScope<span style="color: navy"> : </span>canonical<span style="color: navy"><b> -&gt; </b></span>tgt.target<span style="color: navy">;</span>
  src.group<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.group<b> as </b><span style="color: maroon">t</span><b> then </b>ConceptMapGroup<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: maroon">src</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>ConceptMapGroup<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">srcMap</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.source<span style="color: navy"><b> -&gt; </b></span>tgt.source<span style="color: navy">;</span>
  src.target<span style="color: navy"><b> -&gt; </b></span>tgt.target<span style="color: navy">;</span>
  src.element<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.element<b> as </b><span style="color: maroon">t</span><b> then </b>ConceptMapGroupElement<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: maroon">srcMap</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.unmapped<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.unmapped<b> as </b><span style="color: maroon">t</span><b> then </b>ConceptMapGroupUnmapped<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>ConceptMapGroupElement<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">srcMap</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.code<span style="color: navy"><b> -&gt; </b></span>tgt.code<span style="color: navy">;</span>
  src.display<span style="color: navy"><b> -&gt; </b></span>tgt.display<span style="color: navy">;</span>
  src.noMap<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span> tgt.target<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.equivalence = <span style="color: blue">'unmatched'</span><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.valueSet -&gt; tgt.valueSet;</span>
  src.target<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.target<b> as </b><span style="color: maroon">t</span><b> then </b>ConceptMapGroupElementTarget<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: maroon">srcMap</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>ConceptMapGroupElementTarget<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">srcMap</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.code<span style="color: navy"><b> -&gt; </b></span>tgt.code<span style="color: navy">;</span>
  src.display<span style="color: navy"><b> -&gt; </b></span>tgt.display<span style="color: navy">;</span>
  src.relationship<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.equivalence = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#ConceptMapRelationship'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.valueSet -&gt; tgt.valueSet;</span>
  src.comment<span style="color: navy"><b> -&gt; </b></span>tgt.comment<span style="color: navy">;</span>
  src.dependsOn<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.dependsOn<b> as </b><span style="color: maroon">t</span><b> then </b>ConceptMapGroupElementTargetDependsOn<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: maroon">srcMap</span><span style="color: navy">)</span><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.property as s -&gt; tgt.property as t then ConceptMapGroupElementTargetProperty(s,t);</span>
  src.product<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.product<b> as </b><span style="color: maroon">t</span><b> then </b>ConceptMapGroupElementTargetDependsOn<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: maroon">srcMap</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>ConceptMapGroupElementTargetDependsOn<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">srcMap</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.attribute<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.property = <span style="color: navy">(</span>%srcMap.additionalAttribute.where(code = %s).uri<span style="color: navy">)</span><span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>code<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>Coding<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span><span style="color: maroon">tgt</span><b> then</b><span style="color: navy"> {
</span>    s.system<span style="color: navy"><b> -&gt; </b></span>tgt.system<span style="color: navy">;</span>
    s.code<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
    s.display<span style="color: navy"><b> -&gt; </b></span>tgt.display<span style="color: navy">;</span>
  <span style="color: navy">}</span><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">todo: look up system from srcMap.additionalAttribute</span>
  src.value<span style="color: navy"> : </span>string<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>ConceptMapGroupUnmapped<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">'#ConceptMapGroupUnmappedMode'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.code<span style="color: navy"><b> -&gt; </b></span>tgt.code<span style="color: navy">;</span>
  src.display<span style="color: navy"><b> -&gt; </b></span>tgt.display<span style="color: navy">;</span>
  src.otherMap<span style="color: navy"><b> -&gt; </b></span>tgt.url<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.valueSet -&gt; tgt.valueSet;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <contained>
    <ConceptMap>
      <id value="ConceptMapGroupUnmappedMode"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/conceptmap-unmapped-mode"/>
        <target value="http://hl7.org/fhir/4.0/conceptmap-unmapped-mode"/>
        <element>
          <code value="use-source-code"/>
          <target>
            <code value="provided"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="fixed"/>
          <target>
            <code value="fixed"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="other-map"/>
          <target>
            <code value="other-map"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="ConceptMapRelationship"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/concept-map-relationship"/>
        <target value="http://hl7.org/fhir/4.0/concept-map-equivalence"/>
        <element>
          <code value="related-to"/>
          <target>
            <code value="relatedto"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="equivalent"/>
          <target>
            <code value="equivalent"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="source-is-narrower-than-target"/>
          <target>
            <code value="wider"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="source-is-broader-than-target"/>
          <target>
            <code value="narrower"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="not-related-to"/>
          <target>
            <code value="unmatched"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="PublicationStatus"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/publication-status"/>
        <target value="http://hl7.org/fhir/4.0/publication-status"/>
        <element>
          <code value="draft"/>
          <target>
            <code value="draft"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="active"/>
          <target>
            <code value="active"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="retired"/>
          <target>
            <code value="retired"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="unknown"/>
          <target>
            <code value="unknown"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <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.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/ConceptMap5to4"/>
  <version value="5.1.0"/>
  <name value="ConceptMap5to4"/>
  <title value="FML Conversion for ConceptMap: R5 to R4"/>
  <status value="active"/>
  <date value="2024-04-27T18:54:50+10: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="FMLConversionforConceptMapR5toR4"/>
  <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/ConceptMap"/>
    <mode value="source"/>
    <alias value="ConceptMapR5"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/4.0/StructureDefinition/ConceptMap"/>
    <mode value="target"/>
    <alias value="ConceptMapR4"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*5to4"/>
  <group>
    <name value="ConceptMap"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="ConceptMapR5"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="ConceptMapR4"/>
      <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="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="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>
      <documentation
                     value="src.versionAlgorithm : string -&gt; tgt.versionAlgorithm;"/>
    </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="status"/>
      <source>
        <context value="src"/>
        <element value="status"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="status"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#PublicationStatus"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </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="purpose"/>
      <source>
        <context value="src"/>
        <element value="purpose"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="purpose"/>
        <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="sourceScopeUri"/>
      <source>
        <context value="src"/>
        <type value="uri"/>
        <element value="sourceScope"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="source"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
      <documentation value="src.copyrightLabel -&gt; tgt.copyrightLabel;"/>
    </rule>
    <rule>
      <name value="sourceScopeCanonical"/>
      <source>
        <context value="src"/>
        <type value="canonical"/>
        <element value="sourceScope"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="source"/>
        <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="targetScopeUri"/>
      <source>
        <context value="src"/>
        <type value="uri"/>
        <element value="targetScope"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="target"/>
        <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="targetScopeCanonical"/>
      <source>
        <context value="src"/>
        <type value="canonical"/>
        <element value="targetScope"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="target"/>
        <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="group"/>
      <source>
        <context value="src"/>
        <element value="group"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="group"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="ConceptMapGroup"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
        <parameter>
          <valueId value="src"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="ConceptMapGroup"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <input>
      <name value="srcMap"/>
      <mode value="source"/>
    </input>
    <rule>
      <name value="source"/>
      <source>
        <context value="src"/>
        <element value="source"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="source"/>
        <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="target"/>
      <source>
        <context value="src"/>
        <element value="target"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="target"/>
        <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="element"/>
      <source>
        <context value="src"/>
        <element value="element"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="element"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="ConceptMapGroupElement"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
        <parameter>
          <valueId value="srcMap"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="unmapped"/>
      <source>
        <context value="src"/>
        <element value="unmapped"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="unmapped"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="ConceptMapGroupUnmapped"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="ConceptMapGroupElement"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <input>
      <name value="srcMap"/>
      <mode value="source"/>
    </input>
    <rule>
      <name value="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="display"/>
      <source>
        <context value="src"/>
        <element value="display"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="display"/>
        <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="noMap"/>
      <source>
        <context value="src"/>
        <element value="noMap"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="target"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="equivalence"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="unmatched"/>
        </parameter>
      </target>
      <documentation value="src.valueSet -&gt; tgt.valueSet;"/>
    </rule>
    <rule>
      <name value="target"/>
      <source>
        <context value="src"/>
        <element value="target"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="target"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="ConceptMapGroupElementTarget"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
        <parameter>
          <valueId value="srcMap"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="ConceptMapGroupElementTarget"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <input>
      <name value="srcMap"/>
      <mode value="source"/>
    </input>
    <rule>
      <name value="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="display"/>
      <source>
        <context value="src"/>
        <element value="display"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="display"/>
        <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="relationship"/>
      <source>
        <context value="src"/>
        <element value="relationship"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="equivalence"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#ConceptMapRelationship"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
      <documentation value="src.valueSet -&gt; tgt.valueSet;"/>
    </rule>
    <rule>
      <name value="comment"/>
      <source>
        <context value="src"/>
        <element value="comment"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="comment"/>
        <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="dependsOn"/>
      <source>
        <context value="src"/>
        <element value="dependsOn"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="dependsOn"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="ConceptMapGroupElementTargetDependsOn"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
        <parameter>
          <valueId value="srcMap"/>
        </parameter>
      </dependent>
      <documentation
                     value="src.property as s -&gt; tgt.property as t then ConceptMapGroupElementTargetProperty(s,t);"/>
    </rule>
    <rule>
      <name value="product"/>
      <source>
        <context value="src"/>
        <element value="product"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="product"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="ConceptMapGroupElementTargetDependsOn"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
        <parameter>
          <valueId value="srcMap"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="ConceptMapGroupElementTargetDependsOn"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <input>
      <name value="srcMap"/>
      <mode value="source"/>
    </input>
    <rule>
      <name value="attribute"/>
      <source>
        <context value="src"/>
        <element value="attribute"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="property"/>
        <transform value="evaluate"/>
        <parameter>
          <valueString
                       value="%srcMap.additionalAttribute.where(code = %s).uri"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="valueCode"/>
      <source>
        <context value="src"/>
        <type value="code"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="valueCoding"/>
      <source>
        <context value="src"/>
        <type value="Coding"/>
        <element value="value"/>
        <variable value="s"/>
      </source>
      <target>
        <transform value="copy"/>
        <parameter>
          <valueId value="tgt"/>
        </parameter>
      </target>
      <rule>
        <name value="system"/>
        <source>
          <context value="s"/>
          <element value="system"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="system"/>
          <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="code"/>
        <source>
          <context value="s"/>
          <element value="code"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="value"/>
          <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="display"/>
        <source>
          <context value="s"/>
          <element value="display"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="display"/>
          <variable value="vvv"/>
          <transform value="create"/>
        </target>
        <dependent>
          <name value="DefaultMappingGroupAnonymousAlias"/>
          <parameter>
            <valueId value="vvv"/>
          </parameter>
          <parameter>
            <valueId value="vvv"/>
          </parameter>
        </dependent>
      </rule>
      <documentation
                     value="todo: look up system from srcMap.additionalAttribute"/>
    </rule>
    <rule>
      <name value="valueString"/>
      <source>
        <context value="src"/>
        <type value="string"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="value"/>
        <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="ConceptMapGroupUnmapped"/>
    <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="#ConceptMapGroupUnmappedMode"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="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="display"/>
      <source>
        <context value="src"/>
        <element value="display"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="display"/>
        <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="otherMap"/>
      <source>
        <context value="src"/>
        <element value="otherMap"/>
        <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>
      <documentation value="src.valueSet -&gt; tgt.valueSet;"/>
    </rule>
  </group>
</StructureMap>