This page is part of the FHIR Specification (v0.0.82: DSTU 1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

Medicationprescription.profile.xml

Profile for medicationprescription

Raw XML

<Profile xmlns="http://hl7.org/fhir">
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><pre>
&lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription" title="An order for both supply of the medication and the instructions for administration of
         the medicine to a patient."><b>MedicationPrescription</b></a> xmlns=&quot;http://hl7.org/fhir&quot;&gt; <span style="float: right"><a href="formats.html" title="Documentation for this format"><img alt="doco" src="help.png"/></a></span>
 &lt;!-- from <a href="resources.html">Resource</a>: <a href="extensibility.html">extension</a>, <a href="extensibility.html#modifierExtension">modifierExtension</a>, language, <a href="narrative.html#Narrative">text</a>, and <a href="references.html#contained">contained</a> --&gt;
 &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.identifier" title="External identifier - one that would be used by another non-FHIR system - for example
         a re-imbursement system might issue its own id for each prescription that is created.
          This is particularly important where FHIR only provides part of an erntire workflow process
         where records have to be tracked through an entire system (this element modifies the meaning
         of other elements)"><span style="text-decoration: underline"><b>identifier</b></span></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..*</b></span> <span style="color: darkgreen"><a href="datatypes.html#Identifier">Identifier</a></span> <span style="color: navy">External identifier</span><span style="color: Gray"> --&gt;</span>&lt;/identifier&gt;
 &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dateWritten" title="The date (and perhaps time) when the prescription was written."><b>dateWritten</b></a> value=&quot;[<span style="color: darkgreen"><a href="datatypes.html#dateTime">dateTime</a></span>]&quot;/&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: navy">When prescription was authorized</span><span style="color: Gray"> --&gt;</span>
 &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.status" title="A code specifying the state of the order.  Generally this will be active or completed
         state (this element modifies the meaning of other elements)"><span style="text-decoration: underline"><b>status</b></span></a> value=&quot;[<span style="color: darkgreen"><a href="datatypes.html#code">code</a></span>]&quot;/&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: navy"><a href="medication-prescription-status.html" style="color: navy">active | on hold | completed | entered in error | stopped | superceded</a></span><span style="color: Gray"> --&gt;</span>
 &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.patient" title="A link to a resource representing the person to whom the medication will be given."><b>patient</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="references.html#Resource">Resource</a>(<a href="patient.html#Patient">Patient</a>)</span> <span style="color: navy">Who prescription is for</span><span style="color: Gray"> --&gt;</span>&lt;/patient&gt;
 &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.prescriber" title="The healthcare professional responsible for authorizing the prescription."><b>prescriber</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="references.html#Resource">Resource</a>(<a href="practitioner.html#Practitioner">Practitioner</a>)</span> <span style="color: navy">Who ordered the medication(s)</span><span style="color: Gray"> --&gt;</span>&lt;/prescriber&gt;
 &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.encounter" title="A link to a resource that identifies the particular occurrence of contact between patient
         and health care provider."><b>encounter</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="references.html#Resource">Resource</a>(<a href="encounter.html#Encounter">Encounter</a>)</span> <span style="color: navy">Created during encounter / admission / stay</span><span style="color: Gray"> --&gt;</span>&lt;/encounter&gt;
 &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.reason_x_" title="Can be the reason or the indication for writing the prescription."><b>reason[x]</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="datatypes.html#CodeableConcept">CodeableConcept</a>|<a href="references.html#Resource">Resource</a>(<a href="condition.html#Condition">Condition</a>)</span> <span style="color: navy">
     Reason or indication for writing the prescription</span><span style="color: Gray"> --&gt;</span>&lt;/reason[x]&gt;
 &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.medication" title="Identifies the medication being administered. This is either a link to a resource representing
         the details of the medication or a simple attribute carrying a code that identifies the
         medication from a known list of medications."><b>medication</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="references.html#Resource">Resource</a>(<a href="medication.html#Medication">Medication</a>)</span> <span style="color: navy">Medication to be taken</span><span style="color: Gray"> --&gt;</span>&lt;/medication&gt;
 &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dosageInstruction" title="Indicates how the medication is to be used by the patient."><b>dosageInstruction</b></a>&gt;  <span style="color: Gray">&lt;!-- <span style="color: brown"><b>0..*</b></span> How medication should be taken --&gt;</span>
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dosageInstruction.text" title="Free text dosage instructions for cases where the instructions are too complex to code."><b>text</b></a> value=&quot;[<span style="color: darkgreen"><a href="datatypes.html#string">string</a></span>]&quot;/&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: navy">Dosage instructions expressed as text</span><span style="color: Gray"> --&gt;</span>
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dosageInstruction.additionalInstructi
        ons" title="Additional instructions such as &quot;Swallow with plenty of water&quot; which may or
         may not be coded."><b>additionalInstructions</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="datatypes.html#CodeableConcept">CodeableConcept</a></span> <span style="color: navy">
      Supplemental instructions - e.g. &quot;with meals&quot;</span><span style="color: Gray"> --&gt;</span>&lt;/additionalInstructions&gt;
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dosageInstruction.timing_x_" title="The timing schedule for giving the medication to the patient.  The Schedule data type
         allows many different expressions, for example.  &quot;Every  8 hours&quot;; &quot;Three
         times a day&quot;; &quot;1/2 an hour before breakfast for 10 days from 23-Dec 2011:&quot;;
          &quot;15 Oct 2013, 17 Oct 2013 and 1 Nov 2013&quot;."><b>timing[x]</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="datatypes.html#dateTime">dateTime</a>|<a href="datatypes.html#Period">Period</a>|<a href="datatypes.html#Schedule">Schedule</a></span> <span style="color: navy">When medication should be administered</span><span style="color: Gray"> --&gt;</span>&lt;/timing[x]&gt;
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dosageInstruction.asNeeded_x_" title="If set to true or if specified as a CodeableConcept, indicates that the medication is
         only taken when needed within the specified schedule rather than at every scheduled dose.
          If a CodeableConcept is present, it indicates the pre-condition for taking the Medication."><b>asNeeded[x]</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="datatypes.html#boolean">boolean</a>|<a href="datatypes.html#CodeableConcept">CodeableConcept</a></span> <span style="color: navy">Take &quot;as needed&quot; f(or x)</span><span style="color: Gray"> --&gt;</span>&lt;/asNeeded[x]&gt;
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dosageInstruction.site" title="A coded specification of the anatomic site where the medication first enters the body."><b>site</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="datatypes.html#CodeableConcept">CodeableConcept</a></span> <span style="color: navy"><a href="valueset-approach-site-codes.html" style="color: navy">Body site to administer to</a></span><span style="color: Gray"> --&gt;</span>&lt;/site&gt;
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dosageInstruction.route" title="A code specifying the route or physiological path of administration of a therapeutic agent
         into or onto a patient."><b>route</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="datatypes.html#CodeableConcept">CodeableConcept</a></span> <span style="color: navy"><a href="valueset-route-codes.html" style="color: navy">How drug should enter body</a></span><span style="color: Gray"> --&gt;</span>&lt;/route&gt;
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dosageInstruction.method" title="A coded value indicating the method by which the medication is introduced into or onto
         the body. Most commonly used for injections.  Examples:  Slow Push; Deep IV.  Terminologies
         used often pre-coordinate this term with the route and or form of administration."><b>method</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="datatypes.html#CodeableConcept">CodeableConcept</a></span> <span style="color: navy"><a href="valueset-administration-method-codes.html" style="color: navy">Technique for administering medication</a></span><span style="color: Gray"> --&gt;</span>&lt;/method&gt;
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dosageInstruction.doseQuantity" title="The amount of therapeutic or other substance given at one administration event."><b>doseQuantity</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="datatypes.html#Quantity">Quantity</a></span> <span style="color: navy">Amount of medication per dose</span><span style="color: Gray"> --&gt;</span>&lt;/doseQuantity&gt;
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dosageInstruction.rate" title="Identifies the speed with which the substance is introduced into the subject. Typically
         the rate for an infusion. 200ml in 2 hours."><b>rate</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="datatypes.html#Ratio">Ratio</a></span> <span style="color: navy">Amount of medication per unit of time</span><span style="color: Gray"> --&gt;</span>&lt;/rate&gt;
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dosageInstruction.maxDosePerPeriod" title="The maximum total quantity of a therapeutic substance that may be administered to a subject
         over the period of time. E.g. 1000mg in 24 hours."><b>maxDosePerPeriod</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="datatypes.html#Ratio">Ratio</a></span> <span style="color: navy">Upper limit on medication per unit of time</span><span style="color: Gray"> --&gt;</span>&lt;/maxDosePerPeriod&gt;
 &lt;/dosageInstruction&gt;
 &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dispense" title="Deals with details of the dispense part of the order."><b>dispense</b></a>&gt;  <span style="color: Gray">&lt;!-- <span style="color: brown"><b>0..1</b></span> Medication supply authorization --&gt;</span>
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dispense.medication" title="Identifies the medication that is to be dispensed.  This may be a more specifically defined
         than the medicationPrescription.medication . This is either a link to a resource representing
         the details of the medication or a simple attribute carrying a code that identifies the
         medication from a known list of medications."><b>medication</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="references.html#Resource">Resource</a>(<a href="medication.html#Medication">Medication</a>)</span> <span style="color: navy">Product to be supplied</span><span style="color: Gray"> --&gt;</span>&lt;/medication&gt;
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dispense.validityPeriod" title="Design Comments: This indicates the validity period of a prescription (stale dating the
         Prescription)  It reflects the prescriber perspective for the validity of the prescription.
         Dispenses must not be made against the prescription outside of this period. The lower-bound
         of the Dispensing Window signifies the earliest date that the prescription can be filled
         for the first time. If an upper-bound is not specified then the Prescription is open-ended
         or will default to a stale-date based on regulations.  Rationale: Indicates when the Prescription
         becomes valid, and when it ceases to be a dispensable Prescription."><b>validityPeriod</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="datatypes.html#Period">Period</a></span> <span style="color: navy">Time period supply is authorized for</span><span style="color: Gray"> --&gt;</span>&lt;/validityPeriod&gt;
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dispense.numberOfRepeatsAllowed" title="An integer indicating the number of repeats of the Dispense.  UsageNotes: For example,
         the number of times the prescribed quantity is to be supplied including the initial standard
         fill."><b>numberOfRepeatsAllowed</b></a> value=&quot;[<span style="color: darkgreen"><a href="datatypes.html#integer">integer</a></span>]&quot;/&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: navy"># of refills authorized</span><span style="color: Gray"> --&gt;</span>
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dispense.quantity" title="The amount that is to be dispensed."><b>quantity</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="datatypes.html#Quantity">Quantity</a></span> <span style="color: navy">Amount of medication to supply per dispense</span><span style="color: Gray"> --&gt;</span>&lt;/quantity&gt;
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.dispense.expectedSupplyDuration" title="Identifies the period time over which the supplied product is expected to be used, or
         the length of time the dispense is expected to last.  In some situations, this attribute
         may be used instead of quantity to identify the amount supplied by how long it is expected
         to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based
         on an ordered dosage) When possible, it is always better to specify quantity, as this
         tends to be more precise. expectedSupplyDuration will always be an estimate that can be
         influenced by external factors."><b>expectedSupplyDuration</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="datatypes.html#Duration">Duration</a></span> <span style="color: navy">Days supply per dispense</span><span style="color: Gray"> --&gt;</span>&lt;/expectedSupplyDuration&gt;
 &lt;/dispense&gt;
 &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.substitution" title="Indicates whether or not substitution can or should be part of the dispense. In some cases
         substitution must happen, in other cases substitution must not happen, and in others it
         does not matter. This block explains the prescriber's intent. If nothing is specified
         substitution may be done."><b>substitution</b></a>&gt;  <span style="color: Gray">&lt;!-- <span style="color: brown"><b>0..1</b></span> Any restrictions on medication substitution? --&gt;</span>
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.substitution.type" title="A code signifying whether a different drug should be dispensed from what was prescribed."><b>type</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>1..1</b></span> <span style="color: darkgreen"><a href="datatypes.html#CodeableConcept">CodeableConcept</a></span> <a href="v3/vs/ActSubstanceAdminSubstitutionCode/index.html" style="color: navy">generic | formulary +</a><span style="color: Gray"> --&gt;</span>&lt;/type&gt;
  &lt;<a class="dict" href="medicationprescription-definitions.html#MedicationPrescription.substitution.reason" title="Indicates the reason for the substitution, or why substitution must or must not be performed."><b>reason</b></a>&gt;<span style="color: Gray">&lt;!--</span> <span style="color: brown"><b>0..1</b></span> <span style="color: darkgreen"><a href="datatypes.html#CodeableConcept">CodeableConcept</a></span> <a href="v3/vs/SubstanceAdminSubstitutionReason/index.html" style="color: navy">Why should substitution (not) be made</a><span style="color: Gray"> --&gt;</span>&lt;/reason&gt;
 &lt;/substitution&gt;
&lt;/MedicationPrescription&gt;
</pre></div>
  </text>
  <name value="medicationprescription"/>
  <publisher value="FHIR Project"/>
  <description value="Basic Profile. An order for both supply of the medication and the instructions for administration
   of the medicine to a patient."/>
  <status value="draft"/>
  <date value="2014-09-30"/>
  <requirements value="Scope and Usage This resource covers all orders for medications for a patient. This includes
   in-patient medication orders as well as community orders (whether filled by the prescriber
   or by a pharmacy). It also includes orders for over-the-counter medications (e.g. Aspirin)
   and dietary supplements. It may be used to support the order of medication-related devices.
   It is not intended for use in prescribing particular diets, or for ordering non-medication-related
   items (eye-glasses, supplies, etc.)"/>
  <mapping>
    <identity value="rim"/>
    <uri value="http://hl7.org/v3"/>
    <name value="RIM"/>
  </mapping>
  <mapping>
    <identity value="v2"/>
    <uri value="http://hl7.org/v2"/>
    <name value="HL7 v2"/>
  </mapping>
  <structure>
    <type value="MedicationPrescription"/>
    <publish value="true"/>
    <element>
      <path value="MedicationPrescription"/>
      <definition>
        <short value="Prescription of medication to for patient"/>
        <formal value="An order for both supply of the medication and the instructions for administration of
         the medicine to a patient."/>
        <min value="1"/>
        <max value="1"/>
        <type>
          <code value="Resource"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="CombinedMedicationRequest"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.extension"/>
      <definition>
        <short value="Additional Content defined by implementations"/>
        <formal value="May be used to represent additional information that is not part of the basic definition
         of the resource. In order to make the use of extensions safe and manageable, there is
         a strict governance applied to the definition and use of extensions. Though any implementer
         is allowed to define an extension, there is a set of requirements that SHALL be met as
         part of the definition of the extension."/>
        <comments value="there can be no stigma associated with the use of extensions by any application, project,
         or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
          The use of extensions is what allows the FHIR specification to retain a core simplicity
         for everyone."/>
        <synonym value="extensions"/>
        <synonym value="user content"/>
        <min value="0"/>
        <max value="*"/>
        <type>
          <code value="Extension"/>
        </type>
        <isModifier value="false"/>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.modifierExtension"/>
      <definition>
        <short value="Extensions that cannot be ignored"/>
        <formal value="May be used to represent additional information that is not part of the basic definition
         of the resource, and that modifies the understanding of the element that contains it.
         Usually modifier elements provide negation or qualification. In order to make the use
         of extensions safe and manageable, there is a strict governance applied to the definition
         and use of extensions. Though any implementer is allowed to define an extension, there
         is a set of requirements that SHALL be met as part of the definition of the extension.
         Applications processing a resource are required to check for modifier extensions."/>
        <comments value="there can be no stigma associated with the use of extensions by any application, project,
         or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
          The use of extensions is what allows the FHIR specification to retain a core simplicity
         for everyone."/>
        <synonym value="extensions"/>
        <synonym value="user content"/>
        <min value="0"/>
        <max value="*"/>
        <type>
          <code value="Extension"/>
        </type>
        <isModifier value="false"/>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.text"/>
      <definition>
        <short value="Text summary of the resource, for human interpretation"/>
        <formal value="A human-readable narrative that contains a summary of the resource, and may be used to
         represent the content of the resource to a human. The narrative need not encode all the
         structured data, but is required to contain sufficient detail to make it &quot;clinically
         safe&quot; for a human to just read the narrative. Resource definitions may define what
         content should be represented in the narrative to ensure clinical safety."/>
        <comments value="Contained resources do not have narrative. Resources that are not contained SHOULD have
         a narrative."/>
        <synonym value="narrative"/>
        <synonym value="html"/>
        <synonym value="xhtml"/>
        <synonym value="display"/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="Narrative"/>
        </type>
        <isModifier value="false"/>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.contained"/>
      <definition>
        <short value="Contained, inline Resources"/>
        <formal value="These resources do not have an independent existence apart from the resource that contains
         them - they cannot be identified independently, and nor can they have their own independent
         transaction scope."/>
        <comments value="This should never be done when the content can be identified properly, as once identification
         is lost, it is extremely difficult (and context dependent) to restore it again."/>
        <synonym value="inline resources"/>
        <synonym value="anonymous resources"/>
        <synonym value="contained resources"/>
        <min value="0"/>
        <max value="*"/>
        <type>
          <code value="Resource"/>
        </type>
        <isModifier value="false"/>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.identifier"/>
      <definition>
        <short value="External identifier"/>
        <formal value="External identifier - one that would be used by another non-FHIR system - for example
         a re-imbursement system might issue its own id for each prescription that is created.
          This is particularly important where FHIR only provides part of an erntire workflow process
         where records have to be tracked through an entire system."/>
        <min value="0"/>
        <max value="*"/>
        <type>
          <code value="Identifier"/>
        </type>
        <isModifier value="true"/>
        <mapping>
          <identity value="rim"/>
          <map value="id"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="ORC-2-Placer Order Number / ORC-3-Filler Order Number"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dateWritten"/>
      <definition>
        <short value="When prescription was authorized"/>
        <formal value="The date (and perhaps time) when the prescription was written."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="dateTime"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="author.time"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXE-32-Original Order Date/Time / ORC-9-Date/Time of Transaction"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.status"/>
      <definition>
        <short value="active | on hold | completed | entered in error | stopped | superceded"/>
        <formal value="A code specifying the state of the order.  Generally this will be active or completed
         state."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="code"/>
        </type>
        <isModifier value="true"/>
        <binding>
          <name value="MedicationPrescriptionStatus"/>
          <isExtensible value="false"/>
          <conformance value="required"/>
          <referenceResource>
            <reference value="http://hl7.org/fhir/vs/medication-prescription-status"/>
          </referenceResource>
        </binding>
        <mapping>
          <identity value="rim"/>
          <map value="statusCode"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.patient"/>
      <definition>
        <short value="Who prescription is for"/>
        <formal value="A link to a resource representing the person to whom the medication will be given."/>
        <comments value="SubstanceAdministration-&gt;subject-&gt;Patient."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="ResourceReference"/>
          <profile value="http://hl7.org/fhir/profiles/Patient"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="subject.role"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="PID-3-Patient ID List"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.prescriber"/>
      <definition>
        <short value="Who ordered the medication(s)"/>
        <formal value="The healthcare professional responsible for authorizing the prescription."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="ResourceReference"/>
          <profile value="http://hl7.org/fhir/profiles/Practitioner"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="author.role"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXE-13-Ordering Provider's DEA Number / RXO-14-Ordering Provider's DEA Number / RXE-14-Pharmacist/Tr
          eatment Supplier's Verifier ID / RXO-15-Pharmacist/Treatment Supplier's Verifier ID / ORC-12-Ordering
           Provider / PRT-5-Participation Person: PRT-4-Participation='OP' (all but last deprecated)"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.encounter"/>
      <definition>
        <short value="Created during encounter / admission / stay"/>
        <formal value="A link to a resource that identifies the particular occurrence of contact between patient
         and health care provider."/>
        <comments value="SubstanceAdministration-&gt;component-&gt;EncounterEvent."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="ResourceReference"/>
          <profile value="http://hl7.org/fhir/profiles/Encounter"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="componentOf.patientEncounter"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="PV1-19-Visit Number"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.reason[x]"/>
      <definition>
        <short value="Reason or indication for writing the prescription"/>
        <formal value="Can be the reason or the indication for writing the prescription."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="CodeableConcept"/>
        </type>
        <type>
          <code value="ResourceReference"/>
          <profile value="http://hl7.org/fhir/profiles/Condition"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="reason.observation or reason.observation[code=ASSERTION].value"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="ORC-16-Order Control Code Reason"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.medication"/>
      <definition>
        <short value="Medication to be taken"/>
        <formal value="Identifies the medication being administered. This is either a link to a resource representing
         the details of the medication or a simple attribute carrying a code that identifies the
         medication from a known list of medications."/>
        <comments value="Note: do not use Medication.name to describe the prescribed medication. When the only
         available information is a text description of the medication, Medication.code.text should
         be used."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="ResourceReference"/>
          <profile value="http://hl7.org/fhir/profiles/Medication"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="consumable.administrableMedication"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dosageInstruction"/>
      <definition>
        <short value="How medication should be taken"/>
        <formal value="Indicates how the medication is to be used by the patient."/>
        <min value="0"/>
        <max value="*"/>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="component.substanceAdministrationRequest"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dosageInstruction.extension"/>
      <definition>
        <short value="Additional Content defined by implementations"/>
        <formal value="May be used to represent additional information that is not part of the basic definition
         of the resource. In order to make the use of extensions safe and manageable, there is
         a strict governance applied to the definition and use of extensions. Though any implementer
         is allowed to define an extension, there is a set of requirements that SHALL be met as
         part of the definition of the extension."/>
        <comments value="there can be no stigma associated with the use of extensions by any application, project,
         or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
          The use of extensions is what allows the FHIR specification to retain a core simplicity
         for everyone."/>
        <synonym value="extensions"/>
        <synonym value="user content"/>
        <min value="0"/>
        <max value="*"/>
        <type>
          <code value="Extension"/>
        </type>
        <isModifier value="false"/>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dosageInstruction.modifierExtension"/>
      <definition>
        <short value="Extensions that cannot be ignored"/>
        <formal value="May be used to represent additional information that is not part of the basic definition
         of the resource, and that modifies the understanding of the element that contains it.
         Usually modifier elements provide negation or qualification. In order to make the use
         of extensions safe and manageable, there is a strict governance applied to the definition
         and use of extensions. Though any implementer is allowed to define an extension, there
         is a set of requirements that SHALL be met as part of the definition of the extension.
         Applications processing a resource are required to check for modifier extensions."/>
        <comments value="there can be no stigma associated with the use of extensions by any application, project,
         or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
          The use of extensions is what allows the FHIR specification to retain a core simplicity
         for everyone."/>
        <synonym value="extensions"/>
        <synonym value="user content"/>
        <min value="0"/>
        <max value="*"/>
        <type>
          <code value="Extension"/>
        </type>
        <isModifier value="false"/>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dosageInstruction.text"/>
      <definition>
        <short value="Dosage instructions expressed as text"/>
        <formal value="Free text dosage instructions for cases where the instructions are too complex to code."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="string"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="text"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXE-7.2-Provider's Administration Instructions.text / RXO-7.2-Provider's Administration
           Instructions.text / TQ1-10-Condition Text / TQ1-11-Text Instruction"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dosageInstruction.additionalInstructions"/>
      <definition>
        <short value="Supplemental instructions - e.g. &quot;with meals&quot;"/>
        <formal value="Additional instructions such as &quot;Swallow with plenty of water&quot; which may or
         may not be coded."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="CodeableConcept"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="component.substanceAdministrationRequest.text"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXE-7.2-Provider's Administration Instructions.text / RXO-7.2-Provider's Administration
           Instructions.text / TQ1-10-Condition Text / TQ1-11-Text Instruction ?"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dosageInstruction.timing[x]"/>
      <definition>
        <short value="When medication should be administered"/>
        <formal value="The timing schedule for giving the medication to the patient.  The Schedule data type
         allows many different expressions, for example.  &quot;Every  8 hours&quot;; &quot;Three
         times a day&quot;; &quot;1/2 an hour before breakfast for 10 days from 23-Dec 2011:&quot;;
          &quot;15 Oct 2013, 17 Oct 2013 and 1 Nov 2013&quot;."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="dateTime"/>
        </type>
        <type>
          <code value="Period"/>
        </type>
        <type>
          <code value="Schedule"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="effectiveTime"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RDS:TQ1"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dosageInstruction.asNeeded[x]"/>
      <definition>
        <short value="Take &quot;as needed&quot; f(or x)"/>
        <formal value="If set to true or if specified as a CodeableConcept, indicates that the medication is
         only taken when needed within the specified schedule rather than at every scheduled dose.
          If a CodeableConcept is present, it indicates the pre-condition for taking the Medication."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="boolean"/>
        </type>
        <type>
          <code value="CodeableConcept"/>
        </type>
        <isModifier value="false"/>
        <binding>
          <name value="MedicationAsNeededReason"/>
          <isExtensible value="true"/>
          <conformance value="preferred"/>
          <description value="A coded concept identifying the pre-condition that should hold prior to consuming a medication
           dose.  For example &quot;pain&quot;, &quot;30 minutes prior to sexual intercourse&quot;,
           &quot;on flare-up&quot;, etc."/>
        </binding>
        <mapping>
          <identity value="rim"/>
          <map value="boolean: precondition.negationInd (inversed - so negationInd = true means asNeeded=false
            CodeableConcept: precondition.observationEventCriterion[code=&quot;Assertion&quot;].value"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dosageInstruction.site"/>
      <definition>
        <short value="Body site to administer to"/>
        <formal value="A coded specification of the anatomic site where the medication first enters the body."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="CodeableConcept"/>
        </type>
        <isModifier value="false"/>
        <binding>
          <name value="MedicationAdministrationSite"/>
          <isExtensible value="true"/>
          <conformance value="example"/>
          <referenceResource>
            <reference value="http://hl7.org/fhir/vs/approach-site-codes"/>
          </referenceResource>
        </binding>
        <mapping>
          <identity value="rim"/>
          <map value="approachSiteCode"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXR-2-Administration Site"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dosageInstruction.route"/>
      <definition>
        <short value="How drug should enter body"/>
        <formal value="A code specifying the route or physiological path of administration of a therapeutic agent
         into or onto a patient."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="CodeableConcept"/>
        </type>
        <isModifier value="false"/>
        <binding>
          <name value="RouteOfAdministration"/>
          <isExtensible value="true"/>
          <conformance value="example"/>
          <referenceResource>
            <reference value="http://hl7.org/fhir/vs/route-codes"/>
          </referenceResource>
        </binding>
        <mapping>
          <identity value="rim"/>
          <map value="routeCode"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXR-1-Route"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dosageInstruction.method"/>
      <definition>
        <short value="Technique for administering medication"/>
        <formal value="A coded value indicating the method by which the medication is introduced into or onto
         the body. Most commonly used for injections.  Examples:  Slow Push; Deep IV.  Terminologies
         used often pre-coordinate this term with the route and or form of administration."/>
        <comments value="SubstanceAdministration.methodCode."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="CodeableConcept"/>
        </type>
        <isModifier value="false"/>
        <binding>
          <name value="MedicationAdministrationMethod"/>
          <isExtensible value="true"/>
          <conformance value="example"/>
          <referenceResource>
            <reference value="http://hl7.org/fhir/vs/administration-method-codes"/>
          </referenceResource>
        </binding>
        <mapping>
          <identity value="rim"/>
          <map value="methodCode"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXR-4-Administration Method"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dosageInstruction.doseQuantity"/>
      <definition>
        <short value="Amount of medication per dose"/>
        <formal value="The amount of therapeutic or other substance given at one administration event."/>
        <comments value="Note that this specifies the quantity of the specified medication, not the quantity of
         active ingredient(s).  The prescribed strength can be calculated by multiplying the doseQuantity
         by the strength of each active ingredient in the prescribed Medication."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="Quantity"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="doseQuantity"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXE-23-Give Rate Amount / RXE-24.1-Give Rate Units.code / RXE-24.3-Give Rate Units.name
           of coding system"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dosageInstruction.rate"/>
      <definition>
        <short value="Amount of medication per unit of time"/>
        <formal value="Identifies the speed with which the substance is introduced into the subject. Typically
         the rate for an infusion. 200ml in 2 hours."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="Ratio"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="rateQuantity"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXE-22-Give Per (Time Unit)"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dosageInstruction.maxDosePerPeriod"/>
      <definition>
        <short value="Upper limit on medication per unit of time"/>
        <formal value="The maximum total quantity of a therapeutic substance that may be administered to a subject
         over the period of time. E.g. 1000mg in 24 hours."/>
        <comments value="This is intended for use as an adjunct to the dosage when there is an upper cap.  For
         example &quot;2 tablets ever 4 hours to a maximum of 8/day&quot;."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="Ratio"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="maxDoseQuantity"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXE-4-Give Amount - Maximum / RXE-5-Give Units"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dispense"/>
      <definition>
        <short value="Medication supply authorization"/>
        <formal value="Deals with details of the dispense part of the order."/>
        <min value="0"/>
        <max value="1"/>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="component.supplyEvent"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dispense.extension"/>
      <definition>
        <short value="Additional Content defined by implementations"/>
        <formal value="May be used to represent additional information that is not part of the basic definition
         of the resource. In order to make the use of extensions safe and manageable, there is
         a strict governance applied to the definition and use of extensions. Though any implementer
         is allowed to define an extension, there is a set of requirements that SHALL be met as
         part of the definition of the extension."/>
        <comments value="there can be no stigma associated with the use of extensions by any application, project,
         or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
          The use of extensions is what allows the FHIR specification to retain a core simplicity
         for everyone."/>
        <synonym value="extensions"/>
        <synonym value="user content"/>
        <min value="0"/>
        <max value="*"/>
        <type>
          <code value="Extension"/>
        </type>
        <isModifier value="false"/>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dispense.modifierExtension"/>
      <definition>
        <short value="Extensions that cannot be ignored"/>
        <formal value="May be used to represent additional information that is not part of the basic definition
         of the resource, and that modifies the understanding of the element that contains it.
         Usually modifier elements provide negation or qualification. In order to make the use
         of extensions safe and manageable, there is a strict governance applied to the definition
         and use of extensions. Though any implementer is allowed to define an extension, there
         is a set of requirements that SHALL be met as part of the definition of the extension.
         Applications processing a resource are required to check for modifier extensions."/>
        <comments value="there can be no stigma associated with the use of extensions by any application, project,
         or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
          The use of extensions is what allows the FHIR specification to retain a core simplicity
         for everyone."/>
        <synonym value="extensions"/>
        <synonym value="user content"/>
        <min value="0"/>
        <max value="*"/>
        <type>
          <code value="Extension"/>
        </type>
        <isModifier value="false"/>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dispense.medication"/>
      <definition>
        <short value="Product to be supplied"/>
        <formal value="Identifies the medication that is to be dispensed.  This may be a more specifically defined
         than the medicationPrescription.medication . This is either a link to a resource representing
         the details of the medication or a simple attribute carrying a code that identifies the
         medication from a known list of medications."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="ResourceReference"/>
          <profile value="http://hl7.org/fhir/profiles/Medication"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="consumable.role"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXE-2-Give Code / RXO-1-Requested Give Code / RXD-2-Dispense/Give Code"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dispense.validityPeriod"/>
      <definition>
        <short value="Time period supply is authorized for"/>
        <formal value="Design Comments: This indicates the validity period of a prescription (stale dating the
         Prescription)  It reflects the prescriber perspective for the validity of the prescription.
         Dispenses must not be made against the prescription outside of this period. The lower-bound
         of the Dispensing Window signifies the earliest date that the prescription can be filled
         for the first time. If an upper-bound is not specified then the Prescription is open-ended
         or will default to a stale-date based on regulations.  Rationale: Indicates when the Prescription
         becomes valid, and when it ceases to be a dispensable Prescription."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="Period"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="effectiveTime"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXD-3-Date/Time Dispensed ? / RXD-19-Substance Expiration Date"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dispense.numberOfRepeatsAllowed"/>
      <definition>
        <short value="# of refills authorized"/>
        <formal value="An integer indicating the number of repeats of the Dispense.  UsageNotes: For example,
         the number of times the prescribed quantity is to be supplied including the initial standard
         fill."/>
        <comments value="If displaying &quot;number of authorized refills&quot;, subtract 1 from this number."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="integer"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="repeatNumber"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXE-12-Number of Refills"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dispense.quantity"/>
      <definition>
        <short value="Amount of medication to supply per dispense"/>
        <formal value="The amount that is to be dispensed."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="Quantity"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="quantity"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXD-4-Actual Dispense Amount / RXD-5.1-Actual Dispense Units.code / RXD-5.3-Actual Dispense
           Units.name of coding system"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.dispense.expectedSupplyDuration"/>
      <definition>
        <short value="Days supply per dispense"/>
        <formal value="Identifies the period time over which the supplied product is expected to be used, or
         the length of time the dispense is expected to last.  In some situations, this attribute
         may be used instead of quantity to identify the amount supplied by how long it is expected
         to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based
         on an ordered dosage) When possible, it is always better to specify quantity, as this
         tends to be more precise. expectedSupplyDuration will always be an estimate that can be
         influenced by external factors."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="Duration"/>
        </type>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="expectedUseTime"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.substitution"/>
      <definition>
        <short value="Any restrictions on medication substitution?"/>
        <formal value="Indicates whether or not substitution can or should be part of the dispense. In some cases
         substitution must happen, in other cases substitution must not happen, and in others it
         does not matter. This block explains the prescriber's intent. If nothing is specified
         substitution may be done."/>
        <min value="0"/>
        <max value="1"/>
        <isModifier value="false"/>
        <mapping>
          <identity value="rim"/>
          <map value="subjectOf.substitutionPersmission"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.substitution.extension"/>
      <definition>
        <short value="Additional Content defined by implementations"/>
        <formal value="May be used to represent additional information that is not part of the basic definition
         of the resource. In order to make the use of extensions safe and manageable, there is
         a strict governance applied to the definition and use of extensions. Though any implementer
         is allowed to define an extension, there is a set of requirements that SHALL be met as
         part of the definition of the extension."/>
        <comments value="there can be no stigma associated with the use of extensions by any application, project,
         or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
          The use of extensions is what allows the FHIR specification to retain a core simplicity
         for everyone."/>
        <synonym value="extensions"/>
        <synonym value="user content"/>
        <min value="0"/>
        <max value="*"/>
        <type>
          <code value="Extension"/>
        </type>
        <isModifier value="false"/>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.substitution.modifierExtension"/>
      <definition>
        <short value="Extensions that cannot be ignored"/>
        <formal value="May be used to represent additional information that is not part of the basic definition
         of the resource, and that modifies the understanding of the element that contains it.
         Usually modifier elements provide negation or qualification. In order to make the use
         of extensions safe and manageable, there is a strict governance applied to the definition
         and use of extensions. Though any implementer is allowed to define an extension, there
         is a set of requirements that SHALL be met as part of the definition of the extension.
         Applications processing a resource are required to check for modifier extensions."/>
        <comments value="there can be no stigma associated with the use of extensions by any application, project,
         or standard - regardless of the institution or jurisdiction that uses or defines the extensions.
          The use of extensions is what allows the FHIR specification to retain a core simplicity
         for everyone."/>
        <synonym value="extensions"/>
        <synonym value="user content"/>
        <min value="0"/>
        <max value="*"/>
        <type>
          <code value="Extension"/>
        </type>
        <isModifier value="false"/>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.substitution.type"/>
      <definition>
        <short value="generic | formulary +"/>
        <formal value="A code signifying whether a different drug should be dispensed from what was prescribed."/>
        <min value="1"/>
        <max value="1"/>
        <type>
          <code value="CodeableConcept"/>
        </type>
        <isModifier value="false"/>
        <binding>
          <name value="MedicationIntendedSubstitutionType"/>
          <isExtensible value="true"/>
          <conformance value="example"/>
          <referenceResource>
            <reference value="http://hl7.org/fhir/v3/vs/ActSubstanceAdminSubstitutionCode"/>
          </referenceResource>
        </binding>
        <mapping>
          <identity value="rim"/>
          <map value="code"/>
        </mapping>
        <mapping>
          <identity value="v2"/>
          <map value="RXO-9-Allow Substitutions / RXE-9-Substitution Status?"/>
        </mapping>
      </definition>
    </element>
    <element>
      <path value="MedicationPrescription.substitution.reason"/>
      <definition>
        <short value="Why should substitution (not) be made"/>
        <formal value="Indicates the reason for the substitution, or why substitution must or must not be performed."/>
        <min value="0"/>
        <max value="1"/>
        <type>
          <code value="CodeableConcept"/>
        </type>
        <isModifier value="false"/>
        <binding>
          <name value="MedicationIntendedSubstitutionReason"/>
          <isExtensible value="true"/>
          <conformance value="example"/>
          <referenceResource>
            <reference value="http://hl7.org/fhir/v3/vs/SubstanceAdminSubstitutionReason"/>
          </referenceResource>
        </binding>
        <mapping>
          <identity value="rim"/>
          <map value="reasonCode"/>
        </mapping>
      </definition>
    </element>
    <searchParam>
      <name value="_id"/>
      <type value="token"/>
      <documentation value="The logical resource id associated with the resource (must be supported by all servers)"/>
    </searchParam>
    <searchParam>
      <name value="_language"/>
      <type value="token"/>
      <documentation value="The language of the resource"/>
    </searchParam>
    <searchParam>
      <name value="datewritten"/>
      <type value="date"/>
      <documentation value="Return prescriptions written on this date"/>
      <xpath value="f:MedicationPrescription/f:dateWritten"/>
    </searchParam>
    <searchParam>
      <name value="encounter"/>
      <type value="reference"/>
      <documentation value="Return prescriptions with this encounter identity"/>
      <xpath value="f:MedicationPrescription/f:encounter"/>
    </searchParam>
    <searchParam>
      <name value="identifier"/>
      <type value="token"/>
      <documentation value="Return prescriptions with this external identity"/>
      <xpath value="f:MedicationPrescription/f:identifier"/>
    </searchParam>
    <searchParam>
      <name value="medication"/>
      <type value="reference"/>
      <documentation value="Code for medicine or text in medicine name"/>
      <xpath value="f:MedicationPrescription/f:medication"/>
    </searchParam>
    <searchParam>
      <name value="patient"/>
      <type value="reference"/>
      <documentation value="The identity of a patient to list dispenses  for"/>
      <xpath value="f:MedicationPrescription/f:patient"/>
    </searchParam>
    <searchParam>
      <name value="status"/>
      <type value="token"/>
      <documentation value="Status of the prescription"/>
      <xpath value="f:MedicationPrescription/f:status"/>
    </searchParam>
  </structure>
</Profile>