This page is part of the FHIR Core Extensions Registry (v5.1.0-snapshot1: Release 5.1) 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
Page standards status: Trial-use | Maturity Level: 1 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="MedicationRequest4to5"/>
<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/MedicationRequest4to5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'MedicationRequest4to5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for MedicationRequest: R4 to R5'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>
<b>conceptmap</b><span style="color: navy"> "</span>MedicationRequestIntent<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4/codesystem-medicationrequest-intent.html" title="Medication request intent">http://hl7.org/fhir/4.0/CodeSystem/medicationrequest-intent</a><span style="color: navy">"
</span><b> prefix </b>t<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R5/codesystem-medicationrequest-intent.html" title="MedicationRequest Intent Codes">http://hl7.org/fhir/CodeSystem/medicationrequest-intent</a><span style="color: navy">"
</span>
s<span style="color: navy">:</span>proposal <b>-</b> t<span style="color: navy">:</span>proposal
s<span style="color: navy">:</span>plan <b>-</b> t<span style="color: navy">:</span>plan
s<span style="color: navy">:</span>order <b>-</b> t<span style="color: navy">:</span>order
s<span style="color: navy">:</span>"original-order" <b>-</b> t<span style="color: navy">:</span><span style="color: navy">"</span>original-order<span style="color: navy">"</span>
s<span style="color: navy">:</span>"reflex-order" <b>-</b> t<span style="color: navy">:</span><span style="color: navy">"</span>reflex-order<span style="color: navy">"</span>
s<span style="color: navy">:</span>"filler-order" <b>-</b> t<span style="color: navy">:</span><span style="color: navy">"</span>filler-order<span style="color: navy">"</span>
s<span style="color: navy">:</span>"instance-order" <b>-</b> t<span style="color: navy">:</span><span style="color: navy">"</span>instance-order<span style="color: navy">"</span>
s<span style="color: navy">:</span>option <b>-</b> t<span style="color: navy">:</span>option
<span style="color: navy">}
</span><b>conceptmap</b><span style="color: navy"> "</span>MedicationRequestPriority<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4/codesystem-request-priority.html" title="RequestPriority">http://hl7.org/fhir/4.0/request-priority</a><span style="color: navy">"
</span><b> prefix </b>t<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R5/codesystem-request-priority.html" title="RequestPriority">http://hl7.org/fhir/request-priority</a><span style="color: navy">"
</span>
s<span style="color: navy">:</span>routine <b>-</b> t<span style="color: navy">:</span>routine
s<span style="color: navy">:</span>urgent <b>-</b> t<span style="color: navy">:</span>urgent
s<span style="color: navy">:</span>asap <b>-</b> t<span style="color: navy">:</span>asap
s<span style="color: navy">:</span>stat <b>-</b> t<span style="color: navy">:</span>stat
<span style="color: navy">}
</span><b>conceptmap</b><span style="color: navy"> "</span>MedicationRequestStatus<span style="color: navy">" {
</span><b> prefix </b>s<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R4/codesystem-medicationrequest-status.html" title="Medicationrequest status">http://hl7.org/fhir/4.0/CodeSystem/medicationrequest-status</a><span style="color: navy">"
</span><b> prefix </b>t<span style="color: navy"> = "</span><a href="http://hl7.org/fhir/R5/codesystem-medicationrequest-status.html" title="MedicationRequest Status Codes">http://hl7.org/fhir/CodeSystem/medicationrequest-status</a><span style="color: navy">"
</span>
s<span style="color: navy">:</span>active <b>-</b> t<span style="color: navy">:</span>active
s<span style="color: navy">:</span>"on-hold" <b>-</b> t<span style="color: navy">:</span><span style="color: navy">"</span>on-hold<span style="color: navy">"</span>
s<span style="color: navy">:</span>stopped <b>-</b> t<span style="color: navy">:</span>stopped
s<span style="color: navy">:</span>completed <b>-</b> t<span style="color: navy">:</span>completed
s<span style="color: navy">:</span>cancelled <b>-</b> t<span style="color: navy">:</span>cancelled
s<span style="color: navy">:</span>"entered-in-error" <b>-</b> t<span style="color: navy">:</span><span style="color: navy">"</span>entered-in-error<span style="color: navy">"</span>
s<span style="color: navy">:</span>draft <b>-</b> t<span style="color: navy">:</span>draft
s<span style="color: navy">:</span>unknown <b>-</b> t<span style="color: navy">:</span>unknown
<span style="color: navy">}
</span><b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R4/medicationrequest.html" title="MedicationRequest">http://hl7.org/fhir/4.0/StructureDefinition/MedicationRequest</a><span style="color: navy">" </span><b>alias </b>MedicationRequestR4 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="http://hl7.org/fhir/R5/medicationrequest.html" title="MedicationRequest">http://hl7.org/fhir/StructureDefinition/MedicationRequest</a><span style="color: navy">" </span><b>alias </b>MedicationRequestR5 <b>as </b><b>target</b>
<b>imports</b><span style="color: navy"> "</span>http://hl7.org/fhir/StructureMap/*4to5<span style="color: navy">"
</span>
<b>group </b>MedicationRequest<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>MedicationRequestR4, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>MedicationRequestR5<span style="color: navy">)</span><b> extends </b>DomainResource<b> <<type+>></b><span style="color: navy"> {
</span> src.identifier<span style="color: navy"><b> -> </b></span>tgt.identifier<span style="color: navy">;</span>
src.basedOn<span style="color: navy"><b> -> </b></span>tgt.basedOn<span style="color: navy">;</span>
src.priorPrescription<span style="color: navy"><b> -> </b></span>tgt.priorPrescription<span style="color: navy">;</span>
src.groupIdentifier<span style="color: navy"><b> -> </b></span>tgt.groupIdentifier<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">'#MedicationRequestStatus'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
src.statusReason<span style="color: navy"><b> -> </b></span>tgt.statusReason<span style="color: navy">;</span>
src.intent<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span>tgt.intent = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#MedicationRequestIntent'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.statusChanged -> tgt.statusChanged;</span>
src.category<span style="color: navy"><b> -> </b></span>tgt.category<span style="color: navy">;</span>
src.priority<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span>tgt.priority = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#MedicationRequestPriority'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
src.doNotPerform<span style="color: navy"><b> -> </b></span>tgt.doNotPerform<span style="color: navy">;</span>
src.medication<span style="color: navy"> : </span>CodeableConcept<span style="color: navy"><b> -> </b></span>tgt.medication<span style="color: navy">;</span>
src.medication<span style="color: navy"> : </span>Reference<span style="color: navy"><b> -> </b></span>tgt.medication<span style="color: navy">;</span>
src.subject<span style="color: navy"><b> -> </b></span>tgt.subject<span style="color: navy">;</span>
src.encounter<span style="color: navy"><b> -> </b></span>tgt.encounter<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.informationSource -> tgt.informationSource;</span>
src.supportingInformation<span style="color: navy"><b> -> </b></span>tgt.supportingInformation<span style="color: navy">;</span>
src.authoredOn<span style="color: navy"><b> -> </b></span>tgt.authoredOn<span style="color: navy">;</span>
src.requester<span style="color: navy"><b> -> </b></span>tgt.requester<span style="color: navy">;</span>
src.performerType<span style="color: navy"><b> -> </b></span>tgt.performerType<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.reported -> tgt.reported;</span>
src.performer<span style="color: navy"><b> -> </b></span>tgt.performer<span style="color: navy">;</span>
src.recorder<span style="color: navy"><b> -> </b></span>tgt.recorder<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.device -> tgt.device;</span>
src.reasonCode<span style="color: navy"><b> -> </b></span>tgt.reason<span style="color: navy">;</span>
src.reasonReference<span style="color: navy"><b> -> </b></span>tgt.reason<span style="color: navy">;</span>
src.courseOfTherapyType<span style="color: navy"><b> -> </b></span>tgt.courseOfTherapyType<span style="color: navy">;</span>
src.insurance<span style="color: navy"><b> -> </b></span>tgt.insurance<span style="color: navy">;</span>
src.note<span style="color: navy"><b> -> </b></span>tgt.note<span style="color: navy">;</span>
src.dispenseRequest<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </b></span>tgt.dispenseRequest<b> as </b><span style="color: maroon">t</span><b> then </b>MedicationRequestDispenseRequest<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.renderedDosageInstruction -> tgt.renderedDosageInstruction;</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>MedicationRequestSubstitution<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.eventHistory<span style="color: navy"><b> -> </b></span>tgt.eventHistory<span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>MedicationRequestDispenseRequest<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.initialFill<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -> </b></span>tgt.initialFill<b> as </b><span style="color: maroon">t</span><b> then </b>MedicationRequestDispenseRequestInitialFill<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.dispenseInterval<span style="color: navy"><b> -> </b></span>tgt.dispenseInterval<span style="color: navy">;</span>
src.validityPeriod<span style="color: navy"><b> -> </b></span>tgt.validityPeriod<span style="color: navy">;</span>
src.numberOfRepeatsAllowed<span style="color: navy"><b> -> </b></span>tgt.numberOfRepeatsAllowed<span style="color: navy">;</span>
src.quantity<span style="color: navy"><b> -> </b></span>tgt.quantity<span style="color: navy">;</span>
src.expectedSupplyDuration<span style="color: navy"><b> -> </b></span>tgt.expectedSupplyDuration<span style="color: navy">;</span>
src.performer<span style="color: navy"><b> -> </b></span>tgt.dispenser<span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>MedicationRequestDispenseRequestInitialFill<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.duration<span style="color: navy"><b> -> </b></span>tgt.duration<span style="color: navy">;</span>
<span style="color: navy">}
</span><b>group </b>MedicationRequestSubstitution<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.allowed<span style="color: navy"> : </span>boolean<span style="color: navy"><b> -> </b></span>tgt.allowed<span style="color: navy">;</span>
src.allowed<span style="color: navy"> : </span>CodeableConcept<span style="color: navy"><b> -> </b></span>tgt.allowed<span style="color: navy">;</span>
src.reason<span style="color: navy"><b> -> </b></span>tgt.reason<span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<contained>
<ConceptMap>
<id value="MedicationRequestIntent"/>
<status value="active"/>
<group>
<source
value="http://hl7.org/fhir/4.0/CodeSystem/medicationrequest-intent"/>
<target
value="http://hl7.org/fhir/CodeSystem/medicationrequest-intent"/>
<element>
<code value="proposal"/>
<target>
<code value="proposal"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="plan"/>
<target>
<code value="plan"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="order"/>
<target>
<code value="order"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="original-order"/>
<target>
<code value="original-order"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="reflex-order"/>
<target>
<code value="reflex-order"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="filler-order"/>
<target>
<code value="filler-order"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="instance-order"/>
<target>
<code value="instance-order"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="option"/>
<target>
<code value="option"/>
<relationship value="related-to"/>
</target>
</element>
</group>
</ConceptMap>
</contained>
<contained>
<ConceptMap>
<id value="MedicationRequestPriority"/>
<status value="active"/>
<group>
<source value="http://hl7.org/fhir/4.0/request-priority"/>
<target value="http://hl7.org/fhir/request-priority"/>
<element>
<code value="routine"/>
<target>
<code value="routine"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="urgent"/>
<target>
<code value="urgent"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="asap"/>
<target>
<code value="asap"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="stat"/>
<target>
<code value="stat"/>
<relationship value="related-to"/>
</target>
</element>
</group>
</ConceptMap>
</contained>
<contained>
<ConceptMap>
<id value="MedicationRequestStatus"/>
<status value="active"/>
<group>
<source
value="http://hl7.org/fhir/4.0/CodeSystem/medicationrequest-status"/>
<target
value="http://hl7.org/fhir/CodeSystem/medicationrequest-status"/>
<element>
<code value="active"/>
<target>
<code value="active"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="on-hold"/>
<target>
<code value="on-hold"/>
<relationship value="related-to"/>
<comment value="s:"ended" - t:"ended""/>
</target>
</element>
<element>
<code value="stopped"/>
<target>
<code value="stopped"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="completed"/>
<target>
<code value="completed"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="cancelled"/>
<target>
<code value="cancelled"/>
<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="draft"/>
<target>
<code value="draft"/>
<relationship value="related-to"/>
</target>
</element>
<element>
<code value="unknown"/>
<target>
<code value="unknown"/>
<relationship value="related-to"/>
</target>
</element>
</group>
</ConceptMap>
</contained>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
<valueCode value="fhir"/>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
<valueInteger value="1">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"/>
</extension>
</valueInteger>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
<valueCode value="trial-use">
<extension
url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
<valueCanonical
value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"/>
</extension>
</valueCode>
</extension>
<url value="http://hl7.org/fhir/StructureMap/MedicationRequest4to5"/>
<version value="5.1.0-snapshot1"/>
<name value="MedicationRequest4to5"/>
<title value="FML Conversion for MedicationRequest: R4 to R5"/>
<status value="active"/>
<date value="2024-03-12T13:30:10+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="FMLConversionforMedicationRequestR4toR5"/>
<jurisdiction>
<coding>
<system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
<code value="001"/>
</coding>
</jurisdiction>
<structure>
<url
value="http://hl7.org/fhir/4.0/StructureDefinition/MedicationRequest"/>
<mode value="source"/>
<alias value="MedicationRequestR4"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
<mode value="target"/>
<alias value="MedicationRequestR5"/>
</structure>
<import value="http://hl7.org/fhir/StructureMap/*4to5"/>
<group>
<name value="MedicationRequest"/>
<extends value="DomainResource"/>
<typeMode value="type-and-types"/>
<input>
<name value="src"/>
<type value="MedicationRequestR4"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="MedicationRequestR5"/>
<mode value="target"/>
</input>
<rule>
<name value="identifier"/>
<source>
<context value="src"/>
<element value="identifier"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="identifier"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="basedOn"/>
<source>
<context value="src"/>
<element value="basedOn"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="basedOn"/>
<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="priorPrescription"/>
<source>
<context value="src"/>
<element value="priorPrescription"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="priorPrescription"/>
<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="groupIdentifier"/>
<source>
<context value="src"/>
<element value="groupIdentifier"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="groupIdentifier"/>
<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="#MedicationRequestStatus"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
</rule>
<rule>
<name value="statusReason"/>
<source>
<context value="src"/>
<element value="statusReason"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="statusReason"/>
<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="intent"/>
<source>
<context value="src"/>
<element value="intent"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<element value="intent"/>
<transform value="translate"/>
<parameter>
<valueId value="v"/>
</parameter>
<parameter>
<valueString value="#MedicationRequestIntent"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
<documentation value="src.statusChanged -> tgt.statusChanged;"/>
</rule>
<rule>
<name value="category"/>
<source>
<context value="src"/>
<element value="category"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="category"/>
<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="priority"/>
<source>
<context value="src"/>
<element value="priority"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<element value="priority"/>
<transform value="translate"/>
<parameter>
<valueId value="v"/>
</parameter>
<parameter>
<valueString value="#MedicationRequestPriority"/>
</parameter>
<parameter>
<valueString value="code"/>
</parameter>
</target>
</rule>
<rule>
<name value="doNotPerform"/>
<source>
<context value="src"/>
<element value="doNotPerform"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="doNotPerform"/>
<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="medicationCodeableConcept"/>
<source>
<context value="src"/>
<type value="CodeableConcept"/>
<element value="medication"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="medication"/>
<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="medicationReference"/>
<source>
<context value="src"/>
<type value="Reference"/>
<element value="medication"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="medication"/>
<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="subject"/>
<source>
<context value="src"/>
<element value="subject"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="subject"/>
<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="encounter"/>
<source>
<context value="src"/>
<element value="encounter"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="encounter"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
<documentation
value="src.informationSource -> tgt.informationSource;"/>
</rule>
<rule>
<name value="supportingInformation"/>
<source>
<context value="src"/>
<element value="supportingInformation"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="supportingInformation"/>
<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="authoredOn"/>
<source>
<context value="src"/>
<element value="authoredOn"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="authoredOn"/>
<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="requester"/>
<source>
<context value="src"/>
<element value="requester"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="requester"/>
<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="performerType"/>
<source>
<context value="src"/>
<element value="performerType"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="performerType"/>
<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.reported -> tgt.reported;"/>
</rule>
<rule>
<name value="performer"/>
<source>
<context value="src"/>
<element value="performer"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="performer"/>
<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="recorder"/>
<source>
<context value="src"/>
<element value="recorder"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="recorder"/>
<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.device -> tgt.device;"/>
</rule>
<rule>
<name value="reasonCode"/>
<source>
<context value="src"/>
<element value="reasonCode"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="reason"/>
<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="reasonReference"/>
<source>
<context value="src"/>
<element value="reasonReference"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="reason"/>
<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="courseOfTherapyType"/>
<source>
<context value="src"/>
<element value="courseOfTherapyType"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="courseOfTherapyType"/>
<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="insurance"/>
<source>
<context value="src"/>
<element value="insurance"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="insurance"/>
<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="note"/>
<source>
<context value="src"/>
<element value="note"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="note"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="dispenseRequest"/>
<source>
<context value="src"/>
<element value="dispenseRequest"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="dispenseRequest"/>
<variable value="t"/>
</target>
<dependent>
<name value="MedicationRequestDispenseRequest"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
<documentation
value="src.renderedDosageInstruction -> tgt.renderedDosageInstruction;"/>
</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="MedicationRequestSubstitution"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="eventHistory"/>
<source>
<context value="src"/>
<element value="eventHistory"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="eventHistory"/>
<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="MedicationRequestDispenseRequest"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="initialFill"/>
<source>
<context value="src"/>
<element value="initialFill"/>
<variable value="s"/>
</source>
<target>
<context value="tgt"/>
<element value="initialFill"/>
<variable value="t"/>
</target>
<dependent>
<name value="MedicationRequestDispenseRequestInitialFill"/>
<parameter>
<valueId value="s"/>
</parameter>
<parameter>
<valueId value="t"/>
</parameter>
</dependent>
</rule>
<rule>
<name value="dispenseInterval"/>
<source>
<context value="src"/>
<element value="dispenseInterval"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="dispenseInterval"/>
<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="validityPeriod"/>
<source>
<context value="src"/>
<element value="validityPeriod"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="validityPeriod"/>
<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="numberOfRepeatsAllowed"/>
<source>
<context value="src"/>
<element value="numberOfRepeatsAllowed"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="numberOfRepeatsAllowed"/>
<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="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="expectedSupplyDuration"/>
<source>
<context value="src"/>
<element value="expectedSupplyDuration"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="expectedSupplyDuration"/>
<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="performer"/>
<source>
<context value="src"/>
<element value="performer"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="dispenser"/>
<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="MedicationRequestDispenseRequestInitialFill"/>
<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="duration"/>
<source>
<context value="src"/>
<element value="duration"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="duration"/>
<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="MedicationRequestSubstitution"/>
<extends value="BackboneElement"/>
<input>
<name value="src"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<mode value="target"/>
</input>
<rule>
<name value="allowedBoolean"/>
<source>
<context value="src"/>
<type value="boolean"/>
<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>
<rule>
<name value="allowedCodeableConcept"/>
<source>
<context value="src"/>
<type value="CodeableConcept"/>
<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>
<rule>
<name value="reason"/>
<source>
<context value="src"/>
<element value="reason"/>
<variable value="vvv"/>
</source>
<target>
<context value="tgt"/>
<element value="reason"/>
<variable value="vvv"/>
<transform value="create"/>
</target>
<dependent>
<name value="DefaultMappingGroupAnonymousAlias"/>
<parameter>
<valueId value="vvv"/>
</parameter>
<parameter>
<valueId value="vvv"/>
</parameter>
</dependent>
</rule>
</group>
</StructureMap>