FHIR Extensions Pack
5.1.0-cibuild - Working Copy International flag

FHIR Extensions Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 5.1.0-cibuild built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-extensions/ and changes regularly. See the Directory of published versions

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

Page standards status: Trial-use Maturity Level: 1

Raw xml | Download



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

<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4/substancespecification.html" title="SubstanceSpecification">http://hl7.org/fhir/4.0/StructureDefinition/SubstanceSpecification</a><span style="color: navy">&quot; </span><b>alias </b>SubstanceSpecificationR4 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R5/substancedefinition.html" title="SubstanceDefinition">http://hl7.org/fhir/StructureDefinition/SubstanceDefinition</a><span style="color: navy">&quot; </span><b>alias </b>SubstanceDefinitionR5 <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*4to5<span style="color: navy">&quot;
</span>
<b>group </b>SubstanceDefinition<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>SubstanceSpecificationR4, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>SubstanceDefinitionR5<span style="color: navy">)</span><b> extends </b>DomainResource<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.status<span style="color: navy"><b> -&gt; </b></span>tgt.status<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.version -&gt; tgt.version;</span>
  src.domain<span style="color: navy"><b> -&gt; </b></span>tgt.domain<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.classification -&gt; tgt.classification;</span>
  src.description<span style="color: navy"><b> -&gt; </b></span>tgt.description<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.grade -&gt; tgt.grade;</span>
  src.comment<span style="color: navy"><b> -&gt; </b></span>tgt.note<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.informationSource -&gt; tgt.informationSource;</span>
  src.moiety<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.moiety<b> as </b><span style="color: maroon">t</span><b> then </b>SubstanceDefinitionMoiety<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><span style="color: green">src.manufacturer -&gt; tgt.manufacturer;</span>
  src.property<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.property<b> as </b><span style="color: maroon">t</span><b> then </b>SubstanceDefinitionProperty<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><span style="color: green">src.characterization as s -&gt; tgt.characterization as t then SubstanceDefinitionCharacterization(s,t);</span>
  src.referenceInformation<span style="color: navy"><b> -&gt; </b></span>tgt.referenceInformation<span style="color: navy">;</span>
  src.structure<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.structure<b> as </b><span style="color: maroon">t</span><b> then </b>SubstanceDefinitionStructure<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><span style="color: green">src.molecularWeight as s -&gt; tgt.molecularWeight as t then SubstanceDefinitionMolecularWeight(s,t);</span>
  src.code<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.code<b> as </b><span style="color: maroon">t</span><b> then </b>SubstanceDefinitionCode<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.name<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.name<b> as </b><span style="color: maroon">t</span><b> then </b>SubstanceDefinitionName<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.relationship<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.relationship<b> as </b><span style="color: maroon">t</span><b> then </b>SubstanceDefinitionRelationship<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.nucleicAcid<span style="color: navy"><b> -&gt; </b></span>tgt.nucleicAcid<span style="color: navy">;</span>
  src.polymer<span style="color: navy"><b> -&gt; </b></span>tgt.polymer<span style="color: navy">;</span>
  src.protein<span style="color: navy"><b> -&gt; </b></span>tgt.protein<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>SubstanceDefinitionMoiety<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.role<span style="color: navy"><b> -&gt; </b></span>tgt.role<span style="color: navy">;</span>
  src.identifier<span style="color: navy"><b> -&gt; </b></span>tgt.identifier<span style="color: navy">;</span>
  src.name<span style="color: navy"><b> -&gt; </b></span>tgt.name<span style="color: navy">;</span>
  src.stereochemistry<span style="color: navy"><b> -&gt; </b></span>tgt.stereochemistry<span style="color: navy">;</span>
  src.opticalActivity<span style="color: navy"><b> -&gt; </b></span>tgt.opticalActivity<span style="color: navy">;</span>
  src.molecularFormula<span style="color: navy"><b> -&gt; </b></span>tgt.molecularFormula<span style="color: navy">;</span>
  src.amount<span style="color: navy"> : </span>Quantity<span style="color: navy"><b> -&gt; </b></span>tgt.amount<span style="color: navy">;</span>
  src.amount<span style="color: navy"> : </span>string<span style="color: navy"><b> -&gt; </b></span>tgt.amount<span style="color: navy">;</span>
<span style="color: navy">}

</span><span style="color: navy">// </span><span style="color: green">group SubstanceDefinitionCharacterization(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.technique -&gt; tgt.technique;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.form -&gt; tgt.form;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.description -&gt; tgt.description;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.file -&gt; tgt.file;</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<b>group </b>SubstanceDefinitionProperty<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.code<span style="color: navy"><b> -&gt; </b></span>tgt.type<span style="color: navy">;</span>
  src.amount<span style="color: navy"> : </span>Quantity<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.value : CodeableConcept -&gt; tgt.value;</span>
<span style="color: navy">}

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

</span><b>group </b>SubstanceDefinitionStructure<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.stereochemistry<span style="color: navy"><b> -&gt; </b></span>tgt.stereochemistry<span style="color: navy">;</span>
  src.opticalActivity<span style="color: navy"><b> -&gt; </b></span>tgt.opticalActivity<span style="color: navy">;</span>
  src.molecularFormula<span style="color: navy"><b> -&gt; </b></span>tgt.molecularFormula<span style="color: navy">;</span>
  src.molecularFormulaByMoiety<span style="color: navy"><b> -&gt; </b></span>tgt.molecularFormulaByMoiety<span style="color: navy">;</span>
  src.isotope<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.molecularWeight<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.molecularWeight<b> as </b><span style="color: maroon">t</span><b> then </b>SubstanceDefinitionMolecularWeight<span style="color: navy">(</span><span style="color: maroon">v</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><span style="color: navy">;</span>
  src.source<span style="color: navy"><b> -&gt; </b></span>tgt.sourceDocument<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.technique -&gt; tgt.technique;</span>
  src.representation<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.representation<b> as </b><span style="color: maroon">t</span><b> then </b>SubstanceDefinitionStructureRepresentation<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>SubstanceDefinitionStructureRepresentation<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.representation<span style="color: navy"><b> -&gt; </b></span>tgt.representation<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>SubstanceDefinitionCode<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.code<span style="color: navy"><b> -&gt; </b></span>tgt.code<span style="color: navy">;</span>
  src.status<span style="color: navy"><b> -&gt; </b></span>tgt.status<span style="color: navy">;</span>
  src.statusDate<span style="color: navy"><b> -&gt; </b></span>tgt.statusDate<span style="color: navy">;</span>
  src.comment<span style="color: navy"><b> -&gt; </b></span>tgt.note<span style="color: navy">;</span>
  src.source<span style="color: navy"><b> -&gt; </b></span>tgt.source<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>SubstanceDefinitionName<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"><b> -&gt; </b></span>tgt.name<span style="color: navy">;</span>
  src.type<span style="color: navy"><b> -&gt; </b></span>tgt.type<span style="color: navy">;</span>
  src.status<span style="color: navy"><b> -&gt; </b></span>tgt.status<span style="color: navy">;</span>
  src.preferred<span style="color: navy"><b> -&gt; </b></span>tgt.preferred<span style="color: navy">;</span>
  src.language<span style="color: navy"><b> -&gt; </b></span>tgt.language<span style="color: navy">;</span>
  src.domain<span style="color: navy"><b> -&gt; </b></span>tgt.domain<span style="color: navy">;</span>
  src.jurisdiction<span style="color: navy"><b> -&gt; </b></span>tgt.jurisdiction<span style="color: navy">;</span>
  src.official<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.official<b> as </b><span style="color: maroon">t</span><b> then </b>SubstanceDefinitionNameOfficial<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.source<span style="color: navy"><b> -&gt; </b></span>tgt.source<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>SubstanceDefinitionNameOfficial<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.authority<span style="color: navy"><b> -&gt; </b></span>tgt.authority<span style="color: navy">;</span>
  src.status<span style="color: navy"><b> -&gt; </b></span>tgt.status<span style="color: navy">;</span>
  src.date<span style="color: navy"><b> -&gt; </b></span>tgt.date<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>SubstanceDefinitionRelationship<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.substance<span style="color: navy"> : </span>Reference<span style="color: navy"><b> -&gt; </b></span>tgt.substanceDefinition<span style="color: navy">;</span>
  src.substance<span style="color: navy"> : </span>CodeableConcept<span style="color: navy"><b> -&gt; </b></span>tgt.substanceDefinition<span style="color: navy">;</span>
  src.relationship<span style="color: navy"><b> -&gt; </b></span>tgt.type<span style="color: navy">;</span>
  src.isDefining<span style="color: navy"><b> -&gt; </b></span>tgt.isDefining<span style="color: navy">;</span>
  src.amount<span style="color: navy"> : </span>Quantity<span style="color: navy"><b> -&gt; </b></span>tgt.amount<span style="color: navy">;</span>
  src.amount<span style="color: navy"> : </span>Ratio<span style="color: navy"><b> -&gt; </b></span>tgt.amount<span style="color: navy">;</span>
  src.amount<span style="color: navy"> : </span>string<span style="color: navy"><b> -&gt; </b></span>tgt.amount<span style="color: navy">;</span>
  src.amountType<span style="color: navy"><b> -&gt; </b></span>tgt.comparator<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.ratioHighLimitAmount -&gt; tgt.ratioHighLimitAmount;</span>
  src.source<span style="color: navy"><b> -&gt; </b></span>tgt.source<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.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/SubstanceDefinition4to5"/>
  <version value="5.1.0-cibuild"/>
  <name value="SubstanceDefinition4to5"/>
  <title value="FML Conversion for SubstanceDefinition: R4 to R5"/>
  <status value="active"/>
  <date value="2024-04-03T19:53:55+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="FMLConversionforSubstanceDefinitionR4toR5"/>
  <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/StructureDefinition/SubstanceSpecification"/>
    <mode value="source"/>
    <alias value="SubstanceSpecificationR4"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/SubstanceDefinition"/>
    <mode value="target"/>
    <alias value="SubstanceDefinitionR5"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*4to5"/>
  <group>
    <name value="SubstanceDefinition"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="SubstanceSpecificationR4"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="SubstanceDefinitionR5"/>
      <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="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>
      <documentation value="src.version -&gt; tgt.version;"/>
    </rule>
    <rule>
      <name value="domain"/>
      <source>
        <context value="src"/>
        <element value="domain"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="domain"/>
        <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.classification -&gt; tgt.classification;"/>
    </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>
      <documentation value="src.grade -&gt; tgt.grade;"/>
    </rule>
    <rule>
      <name value="comment"/>
      <source>
        <context value="src"/>
        <element value="comment"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="note"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
      <documentation
                     value="src.informationSource -&gt; tgt.informationSource;"/>
    </rule>
    <rule>
      <name value="moiety"/>
      <source>
        <context value="src"/>
        <element value="moiety"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="moiety"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="SubstanceDefinitionMoiety"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
      <documentation value="src.manufacturer -&gt; tgt.manufacturer;"/>
    </rule>
    <rule>
      <name value="property"/>
      <source>
        <context value="src"/>
        <element value="property"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="property"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="SubstanceDefinitionProperty"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
      <documentation
                     value="src.characterization as s -&gt; tgt.characterization as t then SubstanceDefinitionCharacterization(s,t);"/>
    </rule>
    <rule>
      <name value="referenceInformation"/>
      <source>
        <context value="src"/>
        <element value="referenceInformation"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="referenceInformation"/>
        <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="structure"/>
      <source>
        <context value="src"/>
        <element value="structure"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="structure"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="SubstanceDefinitionStructure"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
      <documentation
                     value="src.molecularWeight as s -&gt; tgt.molecularWeight as t then SubstanceDefinitionMolecularWeight(s,t);"/>
    </rule>
    <rule>
      <name value="code"/>
      <source>
        <context value="src"/>
        <element value="code"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="code"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="SubstanceDefinitionCode"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="name"/>
      <source>
        <context value="src"/>
        <element value="name"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="name"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="SubstanceDefinitionName"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="relationship"/>
      <source>
        <context value="src"/>
        <element value="relationship"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="relationship"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="SubstanceDefinitionRelationship"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="nucleicAcid"/>
      <source>
        <context value="src"/>
        <element value="nucleicAcid"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="nucleicAcid"/>
        <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="polymer"/>
      <source>
        <context value="src"/>
        <element value="polymer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="polymer"/>
        <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="protein"/>
      <source>
        <context value="src"/>
        <element value="protein"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="protein"/>
        <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="SubstanceDefinitionMoiety"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="role"/>
      <source>
        <context value="src"/>
        <element value="role"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="role"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <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="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="stereochemistry"/>
      <source>
        <context value="src"/>
        <element value="stereochemistry"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="stereochemistry"/>
        <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="opticalActivity"/>
      <source>
        <context value="src"/>
        <element value="opticalActivity"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="opticalActivity"/>
        <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="molecularFormula"/>
      <source>
        <context value="src"/>
        <element value="molecularFormula"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="molecularFormula"/>
        <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="amountQuantity"/>
      <source>
        <context value="src"/>
        <type value="Quantity"/>
        <element value="amount"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="amount"/>
        <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="amountString"/>
      <source>
        <context value="src"/>
        <type value="string"/>
        <element value="amount"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="amount"/>
        <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="SubstanceDefinitionProperty"/>
    <extends value="BackboneElement"/>
    <documentation
                   value="group SubstanceDefinitionCharacterization(source src, target tgt) extends BackboneElement {
src.technique -&gt; tgt.technique;
src.form -&gt; tgt.form;
src.description -&gt; tgt.description;
src.file -&gt; tgt.file;
}"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="code"/>
      <source>
        <context value="src"/>
        <element value="code"/>
        <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="amountQuantity"/>
      <source>
        <context value="src"/>
        <type value="Quantity"/>
        <element value="amount"/>
        <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>
      <documentation value="src.value : CodeableConcept -&gt; tgt.value;"/>
    </rule>
  </group>
  <group>
    <name value="SubstanceDefinitionMolecularWeight"/>
    <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="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="method"/>
        <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="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="amount"/>
      <source>
        <context value="src"/>
        <element value="amount"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="amount"/>
        <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="SubstanceDefinitionStructure"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="stereochemistry"/>
      <source>
        <context value="src"/>
        <element value="stereochemistry"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="stereochemistry"/>
        <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="opticalActivity"/>
      <source>
        <context value="src"/>
        <element value="opticalActivity"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="opticalActivity"/>
        <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="molecularFormula"/>
      <source>
        <context value="src"/>
        <element value="molecularFormula"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="molecularFormula"/>
        <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="molecularFormulaByMoiety"/>
      <source>
        <context value="src"/>
        <element value="molecularFormulaByMoiety"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="molecularFormulaByMoiety"/>
        <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="isotope"/>
      <source>
        <context value="src"/>
        <element value="isotope"/>
        <variable value="s"/>
      </source>
      <target>
        <transform value="copy"/>
        <parameter>
          <valueId value="tgt"/>
        </parameter>
      </target>
      <rule>
        <name value="molecularWeight"/>
        <source>
          <context value="s"/>
          <element value="molecularWeight"/>
          <variable value="v"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="molecularWeight"/>
          <variable value="t"/>
        </target>
        <dependent>
          <name value="SubstanceDefinitionMolecularWeight"/>
          <parameter>
            <valueId value="v"/>
          </parameter>
          <parameter>
            <valueId value="t"/>
          </parameter>
        </dependent>
      </rule>
    </rule>
    <rule>
      <name value="source"/>
      <source>
        <context value="src"/>
        <element value="source"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="sourceDocument"/>
        <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.technique -&gt; tgt.technique;"/>
    </rule>
    <rule>
      <name value="representation"/>
      <source>
        <context value="src"/>
        <element value="representation"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="representation"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="SubstanceDefinitionStructureRepresentation"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="SubstanceDefinitionStructureRepresentation"/>
    <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="representation"/>
      <source>
        <context value="src"/>
        <element value="representation"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="representation"/>
        <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="SubstanceDefinitionCode"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </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="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="statusDate"/>
      <source>
        <context value="src"/>
        <element value="statusDate"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="statusDate"/>
        <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="comment"/>
      <source>
        <context value="src"/>
        <element value="comment"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="note"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="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>
  </group>
  <group>
    <name value="SubstanceDefinitionName"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </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="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="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="preferred"/>
      <source>
        <context value="src"/>
        <element value="preferred"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="preferred"/>
        <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="language"/>
      <source>
        <context value="src"/>
        <element value="language"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="language"/>
        <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="domain"/>
      <source>
        <context value="src"/>
        <element value="domain"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="domain"/>
        <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="official"/>
      <source>
        <context value="src"/>
        <element value="official"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="official"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="SubstanceDefinitionNameOfficial"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <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>
  </group>
  <group>
    <name value="SubstanceDefinitionNameOfficial"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="authority"/>
      <source>
        <context value="src"/>
        <element value="authority"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="authority"/>
        <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="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>
  </group>
  <group>
    <name value="SubstanceDefinitionRelationship"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="substanceReference"/>
      <source>
        <context value="src"/>
        <type value="Reference"/>
        <element value="substance"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="substanceDefinition"/>
        <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="substanceCodeableConcept"/>
      <source>
        <context value="src"/>
        <type value="CodeableConcept"/>
        <element value="substance"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="substanceDefinition"/>
        <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="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="isDefining"/>
      <source>
        <context value="src"/>
        <element value="isDefining"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="isDefining"/>
        <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="amountQuantity"/>
      <source>
        <context value="src"/>
        <type value="Quantity"/>
        <element value="amount"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="amount"/>
        <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="amountRatio"/>
      <source>
        <context value="src"/>
        <type value="Ratio"/>
        <element value="amount"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="amount"/>
        <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="amountString"/>
      <source>
        <context value="src"/>
        <type value="string"/>
        <element value="amount"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="amount"/>
        <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="amountType"/>
      <source>
        <context value="src"/>
        <element value="amountType"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="comparator"/>
        <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.ratioHighLimitAmount -&gt; tgt.ratioHighLimitAmount;"/>
    </rule>
    <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>
  </group>
</StructureMap>