FHIR Extensions Pack
5.1.0-ballot1 - Ballot for Release 5.1.0 International flag

This page is part of the FHIR Core Extensions Registry (v5.1.0-ballot: Releases Ballot 4) based on FHIR (HL7® FHIR® Standard) v5.0.0. The current version which supersedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions

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

Page standards status: Trial-use Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="MedicationKnowledge5to4"/>
  <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/MedicationKnowledge5to4'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'MedicationKnowledge5to4'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for MedicationKnowledge: 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>MedicationKnowledgeStatus<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-medicationknowledge-status.html" title="MedicationKnowledge Status Codes">http://hl7.org/fhir/CodeSystem/medicationknowledge-status</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://terminology.hl7.org/5.3.0/CodeSystem-medicationknowledge-status.html" title="MedicationKnowledge Status Codes">http://terminology.hl7.org/CodeSystem/medicationknowledge-status</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>active <b>-</b> t<span style="color: navy">:</span>active
  s<span style="color: navy">:</span>&quot;entered-in-error&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>entered-in-error<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>inactive <b>-</b> t<span style="color: navy">:</span>inactive
<span style="color: navy">}

</span><b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R5/medicationknowledge.html" title="MedicationKnowledge">http://hl7.org/fhir/StructureDefinition/MedicationKnowledge</a><span style="color: navy">&quot; </span><b>alias </b>MedicationKnowledgeR5 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4/medicationknowledge.html" title="MedicationKnowledge">http://hl7.org/fhir/4.0/StructureDefinition/MedicationKnowledge</a><span style="color: navy">&quot; </span><b>alias </b>MedicationKnowledgeR4 <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>MedicationKnowledge<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>MedicationKnowledgeR5, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>MedicationKnowledgeR4<span style="color: navy">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.code<span style="color: navy"><b> -&gt; </b></span>tgt.code<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.identifier -&gt; tgt.identifier;</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">'#MedicationKnowledgeStatus'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.name<span style="color: navy"><b> -&gt; </b></span>tgt.synonym<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.author -&gt; tgt.author;</span>
  src.relatedMedicationKnowledge<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.relatedMedicationKnowledge<b> as </b><span style="color: maroon">t</span><b> then </b>MedicationKnowledgeRelatedMedicationKnowledge<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.associatedMedication<span style="color: navy"><b> -&gt; </b></span>tgt.associatedMedication<span style="color: navy">;</span>
  src.productType<span style="color: navy"><b> -&gt; </b></span>tgt.productType<span style="color: navy">;</span>
  src.monograph<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.monograph<b> as </b><span style="color: maroon">t</span><b> then </b>MedicationKnowledgeMonograph<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.preparationInstruction<span style="color: navy"><b> -&gt; </b></span>tgt.preparationInstruction<span style="color: navy">;</span>
  src.cost<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.cost<b> as </b><span style="color: maroon">t</span><b> then </b>MedicationKnowledgeCost<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.monitoringProgram<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.monitoringProgram<b> as </b><span style="color: maroon">t</span><b> then </b>MedicationKnowledgeMonitoringProgram<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.indicationGuideline<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.administrationGuidelines<b> as </b><span style="color: maroon">t</span><b> then </b>MedicationKnowledgeIndicationGuideline<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.medicineClassification<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.medicineClassification<b> as </b><span style="color: maroon">t</span><b> then </b>MedicationKnowledgeMedicineClassification<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.regulatory<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.regulatory<b> as </b><span style="color: maroon">t</span><b> then </b>MedicationKnowledgeRegulatory<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.packaging as s -&gt; tgt.packaging as t then MedicationKnowledgePackaging(s,t);</span>
  src.definitional<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.drugCharacteristic<b> as </b><span style="color: maroon">t</span><b> then </b>MedicationKnowledgeDefinitional<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>MedicationKnowledgeRelatedMedicationKnowledge<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.reference<span style="color: navy"><b> -&gt; </b></span>tgt.reference<span style="color: navy">;</span>
<span style="color: navy">}

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

</span><b>group </b>MedicationKnowledgeCost<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> <span style="color: navy">// </span><span style="color: green">src.effectiveDate -&gt; tgt.effectiveDate;</span>
  src.source<span style="color: navy"><b> -&gt; </b></span>tgt.source<span style="color: navy">;</span>
  src.cost<span style="color: navy"> : </span>Money<span style="color: navy"><b> -&gt; </b></span>tgt.cost<span style="color: navy">;</span>
<span style="color: navy">}

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

</span><b>group </b>MedicationKnowledgeIndicationGuideline<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.indication<span style="color: navy"><b> -&gt; </b></span>tgt.indication<span style="color: navy">;</span>
  src.dosingGuideline<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.dosage<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.dosage<b> as </b><span style="color: maroon">t</span><b> then </b>MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage<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>
    s.patientCharacteristic<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.patientCharacteristics<b> as </b><span style="color: maroon">t</span><b> then </b>MedicationKnowledgeDosingGuidelinePatientCharacteristic<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> <span style="color: navy">// </span><span style="color: green">src.dosingGuideline as s -&gt; tgt.dosingGuideline as t then MedicationKnowledgeIndicationGuidelineDosingGuideline(s,t);</span>
<span style="color: navy">}

</span><span style="color: navy">// </span><span style="color: green">group MedicationKnowledgeIndicationGuidelineDosingGuideline(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.treatmentIntent -&gt; tgt.treatmentIntent;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.dosage as s -&gt; tgt.dosage as t then MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage(s,t);</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.administrationTreatment -&gt; tgt.administrationTreatment;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.patientCharacteristic as s -&gt; tgt.patientCharacteristic as t then MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristic(s,t);</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<b>group </b>MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage<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.dosage<span style="color: navy"><b> -&gt; </b></span>tgt.dosage<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>MedicationKnowledgeDosingGuidelinePatientCharacteristic<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"> : </span>CodeableConcept<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>CodeableConcept<span style="color: navy"><b> -&gt; </b></span>tgt.characteristic<span style="color: navy">;</span>
  src.value<span style="color: navy"> : </span>Quantity<span style="color: navy"><b> -&gt; </b></span>tgt.characteristic<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>MedicationKnowledgeMedicineClassification<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.classification<span style="color: navy"><b> -&gt; </b></span>tgt.classification<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.source : string -&gt; tgt.source;</span>
<span style="color: navy">}

</span><span style="color: navy">// </span><span style="color: green">group MedicationKnowledgePackaging(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.packagedProduct -&gt; tgt.packagedProduct;</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<span style="color: navy">// </span><span style="color: green">group MedicationKnowledgeStorageGuideline(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.reference -&gt; tgt.reference;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.note -&gt; tgt.note;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.stabilityDuration -&gt; tgt.stabilityDuration;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.environmentalSetting as s -&gt; tgt.environmentalSetting as t then MedicationKnowledgeStorageGuidelineEnvironmentalSetting(s,t);</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<span style="color: navy">// </span><span style="color: green">group MedicationKnowledgeStorageGuidelineEnvironmentalSetting(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.type -&gt; tgt.type;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.value : Quantity -&gt; tgt.value;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.value : Range -&gt; tgt.value;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.value : CodeableConcept -&gt; tgt.value;</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<b>group </b>MedicationKnowledgeRegulatory<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.regulatoryAuthority<span style="color: navy"><b> -&gt; </b></span>tgt.regulatoryAuthority<span style="color: navy">;</span>
  src.substitution<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.substitution<b> as </b><span style="color: maroon">t</span><b> then </b>MedicationKnowledgeRegulatorySubstitution<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.schedule<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span> tgt.schedule<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.schedule = <span style="color: maroon">s</span><span style="color: navy">;</span>
  src.maxDispense<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.maxDispense<b> as </b><span style="color: maroon">t</span><b> then </b>MedicationKnowledgeRegulatoryMaxDispense<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>MedicationKnowledgeRegulatorySubstitution<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.allowed<span style="color: navy"><b> -&gt; </b></span>tgt.allowed<span style="color: navy">;</span>
<span style="color: navy">}

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

</span><b>group </b>MedicationKnowledgeDefinitional<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.drugCharacteristic<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.type<span style="color: navy"><b> -&gt; </b></span>tgt.type<span style="color: navy">;</span>
    s.value<span style="color: navy"> : </span>CodeableConcept<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
    s.value<span style="color: navy"> : </span>string<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
    s.value<span style="color: navy"> : </span>Quantity<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
    s.value<span style="color: navy"> : </span>base64Binary<span style="color: navy"><b> -&gt; </b></span>tgt.value<span style="color: navy">;</span>
  <span style="color: navy">}</span><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.definition -&gt; tgt.definition;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <contained>
    <ConceptMap>
      <id value="MedicationKnowledgeStatus"/>
      <status value="active"/>
      <group>
        <source
                value="http://hl7.org/fhir/CodeSystem/medicationknowledge-status"/>
        <target
                value="http://terminology.hl7.org/CodeSystem/medicationknowledge-status"/>
        <element>
          <code value="active"/>
          <target>
            <code value="active"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="entered-in-error"/>
          <target>
            <code value="entered-in-error"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="inactive"/>
          <target>
            <code value="inactive"/>
            <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/MedicationKnowledge5to4"/>
  <version value="5.1.0-ballot1"/>
  <name value="MedicationKnowledge5to4"/>
  <title value="FML Conversion for MedicationKnowledge: R5 to R4"/>
  <status value="active"/>
  <date value="2023-12-19T08:40:03+11: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="FMLConversionforMedicationKnowledgeR5toR4"/>
  <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/MedicationKnowledge"/>
    <mode value="source"/>
    <alias value="MedicationKnowledgeR5"/>
  </structure>
  <structure>
    <url
         value="http://hl7.org/fhir/4.0/StructureDefinition/MedicationKnowledge"/>
    <mode value="target"/>
    <alias value="MedicationKnowledgeR4"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*5to4"/>
  <group>
    <name value="MedicationKnowledge"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="MedicationKnowledgeR5"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="MedicationKnowledgeR4"/>
      <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>
      <documentation value="src.identifier -&gt; tgt.identifier;"/>
    </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="#MedicationKnowledgeStatus"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="name"/>
      <source>
        <context value="src"/>
        <element value="name"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="synonym"/>
        <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.author -&gt; tgt.author;"/>
    </rule>
    <rule>
      <name value="relatedMedicationKnowledge"/>
      <source>
        <context value="src"/>
        <element value="relatedMedicationKnowledge"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="relatedMedicationKnowledge"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="MedicationKnowledgeRelatedMedicationKnowledge"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="associatedMedication"/>
      <source>
        <context value="src"/>
        <element value="associatedMedication"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="associatedMedication"/>
        <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="productType"/>
      <source>
        <context value="src"/>
        <element value="productType"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="productType"/>
        <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="monograph"/>
      <source>
        <context value="src"/>
        <element value="monograph"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="monograph"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="MedicationKnowledgeMonograph"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="preparationInstruction"/>
      <source>
        <context value="src"/>
        <element value="preparationInstruction"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="preparationInstruction"/>
        <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="cost"/>
      <source>
        <context value="src"/>
        <element value="cost"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="cost"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="MedicationKnowledgeCost"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="monitoringProgram"/>
      <source>
        <context value="src"/>
        <element value="monitoringProgram"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="monitoringProgram"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="MedicationKnowledgeMonitoringProgram"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="indicationGuideline"/>
      <source>
        <context value="src"/>
        <element value="indicationGuideline"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="administrationGuidelines"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="MedicationKnowledgeIndicationGuideline"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="medicineClassification"/>
      <source>
        <context value="src"/>
        <element value="medicineClassification"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="medicineClassification"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="MedicationKnowledgeMedicineClassification"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="regulatory"/>
      <source>
        <context value="src"/>
        <element value="regulatory"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="regulatory"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="MedicationKnowledgeRegulatory"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
      <documentation
                     value="src.packaging as s -&gt; tgt.packaging as t then MedicationKnowledgePackaging(s,t);"/>
    </rule>
    <rule>
      <name value="definitional"/>
      <source>
        <context value="src"/>
        <element value="definitional"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="drugCharacteristic"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="MedicationKnowledgeDefinitional"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="MedicationKnowledgeRelatedMedicationKnowledge"/>
    <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="reference"/>
      <source>
        <context value="src"/>
        <element value="reference"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="reference"/>
        <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="MedicationKnowledgeMonograph"/>
    <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="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="MedicationKnowledgeCost"/>
    <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>
      <documentation value="src.effectiveDate -&gt; tgt.effectiveDate;"/>
    </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>
    <rule>
      <name value="costMoney"/>
      <source>
        <context value="src"/>
        <type value="Money"/>
        <element value="cost"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="cost"/>
        <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="MedicationKnowledgeMonitoringProgram"/>
    <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="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>
  </group>
  <group>
    <name value="MedicationKnowledgeIndicationGuideline"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="indication"/>
      <source>
        <context value="src"/>
        <element value="indication"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="indication"/>
        <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="dosingGuideline"/>
      <source>
        <context value="src"/>
        <element value="dosingGuideline"/>
        <variable value="s"/>
      </source>
      <target>
        <transform value="copy"/>
        <parameter>
          <valueId value="tgt"/>
        </parameter>
      </target>
      <rule>
        <name value="dosage"/>
        <source>
          <context value="s"/>
          <element value="dosage"/>
          <variable value="v"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="dosage"/>
          <variable value="t"/>
        </target>
        <dependent>
          <name
                value="MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage"/>
          <parameter>
            <valueId value="v"/>
          </parameter>
          <parameter>
            <valueId value="t"/>
          </parameter>
        </dependent>
      </rule>
      <rule>
        <name value="patientCharacteristic"/>
        <source>
          <context value="s"/>
          <element value="patientCharacteristic"/>
          <variable value="v"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="patientCharacteristics"/>
          <variable value="t"/>
        </target>
        <dependent>
          <name
                value="MedicationKnowledgeDosingGuidelinePatientCharacteristic"/>
          <parameter>
            <valueId value="v"/>
          </parameter>
          <parameter>
            <valueId value="t"/>
          </parameter>
        </dependent>
      </rule>
      <documentation
                     value="src.dosingGuideline as s -&gt; tgt.dosingGuideline as t then MedicationKnowledgeIndicationGuidelineDosingGuideline(s,t);"/>
    </rule>
  </group>
  <group>
    <name
          value="MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage"/>
    <extends value="BackboneElement"/>
    <documentation
                   value="group MedicationKnowledgeIndicationGuidelineDosingGuideline(source src, target tgt) extends BackboneElement {
src.treatmentIntent -&gt; tgt.treatmentIntent;
src.dosage as s -&gt; tgt.dosage as t then MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage(s,t);
src.administrationTreatment -&gt; tgt.administrationTreatment;
src.patientCharacteristic as s -&gt; tgt.patientCharacteristic as t then MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristic(s,t);
}"/>
    <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="dosage"/>
      <source>
        <context value="src"/>
        <element value="dosage"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="dosage"/>
        <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="MedicationKnowledgeDosingGuidelinePatientCharacteristic"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="typeCodeableConcept"/>
      <source>
        <context value="src"/>
        <type value="CodeableConcept"/>
        <element value="type"/>
        <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="valueCodeableConcept"/>
      <source>
        <context value="src"/>
        <type value="CodeableConcept"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="characteristic"/>
        <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="valueQuantity"/>
      <source>
        <context value="src"/>
        <type value="Quantity"/>
        <element value="value"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="characteristic"/>
        <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="MedicationKnowledgeMedicineClassification"/>
    <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="classification"/>
      <source>
        <context value="src"/>
        <element value="classification"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="classification"/>
        <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.source : string -&gt; tgt.source;"/>
    </rule>
  </group>
  <group>
    <name value="MedicationKnowledgeRegulatory"/>
    <extends value="BackboneElement"/>
    <documentation
                   value="group MedicationKnowledgePackaging(source src, target tgt) extends BackboneElement {
src.packagedProduct -&gt; tgt.packagedProduct;
}
group MedicationKnowledgeStorageGuideline(source src, target tgt) extends BackboneElement {
src.reference -&gt; tgt.reference;
src.note -&gt; tgt.note;
src.stabilityDuration -&gt; tgt.stabilityDuration;
src.environmentalSetting as s -&gt; tgt.environmentalSetting as t then MedicationKnowledgeStorageGuidelineEnvironmentalSetting(s,t);
}
group MedicationKnowledgeStorageGuidelineEnvironmentalSetting(source src, target tgt) extends BackboneElement {
src.type -&gt; tgt.type;
src.value : Quantity -&gt; tgt.value;
src.value : Range -&gt; tgt.value;
src.value : CodeableConcept -&gt; tgt.value;
}"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="regulatoryAuthority"/>
      <source>
        <context value="src"/>
        <element value="regulatoryAuthority"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="regulatoryAuthority"/>
        <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="substitution"/>
      <source>
        <context value="src"/>
        <element value="substitution"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="substitution"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="MedicationKnowledgeRegulatorySubstitution"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="schedule"/>
      <source>
        <context value="src"/>
        <element value="schedule"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="schedule"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="schedule"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="maxDispense"/>
      <source>
        <context value="src"/>
        <element value="maxDispense"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="maxDispense"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="MedicationKnowledgeRegulatoryMaxDispense"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="MedicationKnowledgeRegulatorySubstitution"/>
    <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="allowed"/>
      <source>
        <context value="src"/>
        <element value="allowed"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="allowed"/>
        <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="MedicationKnowledgeRegulatoryMaxDispense"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="quantity"/>
      <source>
        <context value="src"/>
        <element value="quantity"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="quantity"/>
        <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="period"/>
      <source>
        <context value="src"/>
        <element value="period"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="period"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="MedicationKnowledgeDefinitional"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="drugCharacteristic"/>
      <source>
        <context value="src"/>
        <element value="drugCharacteristic"/>
        <variable value="s"/>
      </source>
      <target>
        <transform value="copy"/>
        <parameter>
          <valueId value="tgt"/>
        </parameter>
      </target>
      <rule>
        <name value="type"/>
        <source>
          <context value="s"/>
          <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="valueCodeableConcept"/>
        <source>
          <context value="s"/>
          <type value="CodeableConcept"/>
          <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="valueString"/>
        <source>
          <context value="s"/>
          <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>
      <rule>
        <name value="valueQuantity"/>
        <source>
          <context value="s"/>
          <type value="Quantity"/>
          <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="valueBase64Binary"/>
        <source>
          <context value="s"/>
          <type value="base64Binary"/>
          <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>
      <documentation value="src.definition -&gt; tgt.definition;"/>
    </rule>
  </group>
</StructureMap>