FHIR Cross-Version Mapping Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-cross-version/ and changes regularly. See the Directory of published versions
Page standards status: Draft | Maturity Level: 1 |
<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">'MedicationKnowledge Transforms: R5 to R4'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>
<b>uses</b><span style="color: navy"> "</span>http://hl7.org/fhir/5.0/MedicationKnowledge<span style="color: navy">" </span><b>alias </b>MedicationKnowledgeR5 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span>http://hl7.org/fhir/4.0/MedicationKnowledge<span style="color: navy">" </span><b>alias </b>MedicationKnowledgeR4 <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*5to4<span style="color: navy">"
</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> <<type+>></b><span style="color: navy"> {
</span> src.code<span style="color: navy"><b> -> </b></span>tgt.code<span style="color: navy">;</span>
src.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </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">'http://hl7.org/fhir/ConceptMap/MedicationKnowledge.status-R5toR4'</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> -> </b></span>tgt.synonym<span style="color: navy">;</span>
src.relatedMedicationKnowledge<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </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> -> </b></span>tgt.associatedMedication<span style="color: navy">;</span>
src.productType<span style="color: navy"><b> -> </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> -> </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> -> </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> -> </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> -> </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> -> </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> -> </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> -> </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>
src.definitional<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </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> -> </b></span>tgt.type<span style="color: navy">;</span>
src.reference<span style="color: navy"><b> -> </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> -> </b></span>tgt.type<span style="color: navy">;</span>
src.source<span style="color: navy"><b> -> </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> -> </b></span>tgt.type<span style="color: navy">;</span>
src.source<span style="color: navy"><b> -> </b></span>tgt.source<span style="color: navy">;</span>
src.cost<span style="color: navy"> : </span>Money<span style="color: navy"><b> -> </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> -> </b></span>tgt.type<span style="color: navy">;</span>
src.name<span style="color: navy"><b> -> </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> -> </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> -> </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> -> </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> -> </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: 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 -> tgt.treatmentIntent;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.dosage as s -> tgt.dosage as t then MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage(s,t);</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.administrationTreatment -> tgt.administrationTreatment;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.patientCharacteristic as s -> 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> -> </b></span>tgt.type<span style="color: navy">;</span>
src.dosage<span style="color: navy"><b> -> </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> -> </b></span>tgt.value<span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>CodeableConcept<span style="color: navy"><b> -> </b></span>tgt.characteristic<span style="color: navy">;</span>
src.value<span style="color: navy"> : </span>Quantity<span style="color: navy"><b> -> </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> -> </b></span>tgt.type<span style="color: navy">;</span>
src.classification<span style="color: navy"><b> -> </b></span>tgt.classification<span style="color: navy">;</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 -> 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 -> tgt.reference;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.note -> tgt.note;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.stabilityDuration -> tgt.stabilityDuration;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.environmentalSetting as s -> 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 -> tgt.type;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.value : Quantity -> tgt.value;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.value : Range -> tgt.value;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.value : CodeableConcept -> 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> -> </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> -> </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> -> </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> -> </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> -> </b></span>tgt.type<span style="color: navy">;</span>
src.allowed<span style="color: navy"><b> -> </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> -> </b></span>tgt.quantity<span style="color: navy">;</span>
src.period<span style="color: navy"><b> -> </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> -> </b></span><span style="color: maroon">tgt</span><b> then</b><span style="color: navy"> {
</span> s.type<span style="color: navy"><b> -> </b></span>tgt.type<span style="color: navy">;</span>
s.value<span style="color: navy"> : </span>CodeableConcept<span style="color: navy"><b> -> </b></span>tgt.value<span style="color: navy">;</span>
s.value<span style="color: navy"> : </span>string<span style="color: navy"><b> -> </b></span>tgt.value<span style="color: navy">;</span>
s.value<span style="color: navy"> : </span>Quantity<span style="color: navy"><b> -> </b></span>tgt.value<span style="color: navy">;</span>
s.value<span style="color: navy"> : </span>base64Binary<span style="color: navy"><b> -> </b></span>tgt.value<span style="color: navy">;</span>
<span style="color: navy">}</span><span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
<valueCode value="fhir"/>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
<valueInteger value="1">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"/>
</extension>
</valueInteger>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
<valueCode value="draft">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"/>
</extension>
</valueCode>
</extension>
<url value="http://hl7.org/fhir/StructureMap/MedicationKnowledge5to4"/>
<version value="0.1.0"/>
<name value="MedicationKnowledge5to4"/>
<title value="MedicationKnowledge Transforms: R5 to R4"/>
<status value="active"/>
<date value="2024-02-22T03:16:50+00:00"/>
<publisher value="HL7 International / FHIR Infrastructure"/>
<contact>
<telecom>
<system value="url"/>
<value value="http://www.hl7.org/Special/committees/fiwg"/>
</telecom>
</contact>
<description value="MedicationKnowledgeTransformsR5toR4"/>
<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/5.0/MedicationKnowledge"/>
<mode value="source"/>
<alias value="MedicationKnowledgeR5"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/4.0/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>
</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="http://hl7.org/fhir/ConceptMap/MedicationKnowledge.status-R5toR4"/>
</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>
</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>
</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>
</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>
</rule>
</group>
<group>
<name
value="MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage"/>
<extends value="BackboneElement"/>
<documentation
value="group MedicationKnowledgeIndicationGuidelineDosingGuideline(source src, target tgt) extends BackboneElement {
src.treatmentIntent -> tgt.treatmentIntent;
src.dosage as s -> tgt.dosage as t then MedicationKnowledgeIndicationGuidelineDosingGuidelineDosage(s,t);
src.administrationTreatment -> tgt.administrationTreatment;
src.patientCharacteristic as s -> 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>
</rule>
</group>
<group>
<name value="MedicationKnowledgeRegulatory"/>
<extends value="BackboneElement"/>
<documentation
value="group MedicationKnowledgePackaging(source src, target tgt) extends BackboneElement {
src.packagedProduct -> tgt.packagedProduct;
}
group MedicationKnowledgeStorageGuideline(source src, target tgt) extends BackboneElement {
src.reference -> tgt.reference;
src.note -> tgt.note;
src.stabilityDuration -> tgt.stabilityDuration;
src.environmentalSetting as s -> tgt.environmentalSetting as t then MedicationKnowledgeStorageGuidelineEnvironmentalSetting(s,t);
}
group MedicationKnowledgeStorageGuidelineEnvironmentalSetting(source src, target tgt) extends BackboneElement {
src.type -> tgt.type;
src.value : Quantity -> tgt.value;
src.value : Range -> tgt.value;
src.value : CodeableConcept -> 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>
</rule>
</group>
</StructureMap>