<MedicationOrder xmlns="http://hl7.org/fhir">
  <id value="core-examples-MedicationOrder-example17" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2016-09-08T11:58:24.751+00:00" />
  </meta>
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>Generated Narrative with Details</b>
      </p>
      <p>
        <b>id</b>: medrx001</p>
      <p>
        <b>identifier</b>: 12345 (OFFICIAL)</p>
      <p>
        <b>dateWritten</b>: 15/01/2015</p>
      <p>
        <b>status</b>: active</p>
      <p>
        <b>patient</b>: <a>Eve Everywoman</a></p>
      <p>
        <b>prescriber</b>: <a>Patrick Pump</a></p>
      <p>
        <b>encounter</b>: <a>encounter who leads to this priscription</a></p>
      <p>
        <b>reason</b>: Otitis Media <span>(Details : {SNOMED CT code '65363002' = '65363002', given as 'Otitis Media'})</span></p>
      <p>
        <b>medication</b>: <a>prescribed medication</a></p>
      <h3>DosageInstructions</h3>
      <table>
        <tr>
          <td>-</td>
          <td>
            <b>Text</b>
          </td>
          <td>
            <b>AdditionalInstructions</b>
          </td>
          <td>
            <b>Timing</b>
          </td>
          <td>
            <b>Site[x]</b>
          </td>
          <td>
            <b>Route</b>
          </td>
          <td>
            <b>Dose[x]</b>
          </td>
        </tr>
        <tr>
          <td>*</td>
          <td>Take 5ml three times daily</td>
          <td>With or after food <span>(Details : {SNOMED CT code '311504000' = '311504000', given as 'With or after food'})</span></td>
          <td>Do 3 per 1 days</td>
          <td>Entire oral cavity <span>(Details : {SNOMED CT code '181220002' = '181220002', given as 'Entire oral cavity'})</span></td>
          <td>Oral Route <span>(Details : {SNOMED CT code '26643006' = '26643006', given as 'Oral Route'})</span></td>
          <td>5 mL<span> (Details: http://unitsofmeasure.org code mL = '??')</span></td>
        </tr>
      </table>
      <h3>DispenseRequests</h3>
      <table>
        <tr>
          <td>-</td>
          <td>
            <b>Medication[x]</b>
          </td>
          <td>
            <b>ValidityPeriod</b>
          </td>
          <td>
            <b>NumberOfRepeatsAllowed</b>
          </td>
          <td>
            <b>Quantity</b>
          </td>
          <td>
            <b>ExpectedSupplyDuration</b>
          </td>
        </tr>
        <tr>
          <td>*</td>
          <td>
            <a>Medication/MedicationExample3</a>
          </td>
          <td>15/01/2015 --&gt; 15/01/2016</td>
          <td>2</td>
          <td>100 mL<span> (Details: http://unitsofmeasure.org code mL = '??')</span></td>
          <td>10 days<span> (Details: http://unitsofmeasure.org code d = '??')</span></td>
        </tr>
      </table>
      <h3>Substitutions</h3>
      <table>
        <tr>
          <td>-</td>
          <td>
            <b>Type</b>
          </td>
          <td>
            <b>Reason</b>
          </td>
        </tr>
        <tr>
          <td>*</td>
          <td>Generic Composition <span>(Details : {http://hl7.org/fhir code 'G' = '??', given as 'Generic Composition'})</span></td>
          <td>formulary policy <span>(Details : {http://hl7.org/fhir code 'FP' = '??', given as 'formulary policy'})</span></td>
        </tr>
      </table>
    </div>
  </text>
  <identifier>
    <use value="official" />
    <system value="http://www.bmc.nl/portal/prescriptions" />
    <value value="12345" />
  </identifier>
  <dateWritten value="2015-01-15" />
  <status value="active" />
  <patient>
    <reference value="Patient/f001" />
    <display value="Eve Everywoman" />
  </patient>
  <prescriber>
    <reference value="Practitioner/f007" />
    <display value="Patrick Pump" />
  </prescriber>
  <encounter>
    <reference value="Encounter/f002" />
    <display value="encounter who leads to this priscription" />
  </encounter>
  <reasonCodeableConcept>
    <coding>
      <system value="http://snomed.info/sct" />
      <code value="65363002" />
      <display value="Otitis Media" />
    </coding>
  </reasonCodeableConcept>
  <medicationReference>
    <reference value="Medication/MedicationExample2" />
    <display value="prescribed medication" />
  </medicationReference>
  <dosageInstruction>
    <text value="Take 5ml three times daily" />
    <additionalInstructions>
      <coding>
        <system value="http://snomed.info/sct" />
        <code value="311504000" />
        <display value="With or after food" />
      </coding>
    </additionalInstructions>
    <timing>
      <repeat>
        <frequency value="3" />
        <period value="1" />
        <periodUnits value="d" />
      </repeat>
    </timing>
    <siteCodeableConcept>
      <coding>
        <system value="http://snomed.info/sct" />
        <code value="181220002" />
        <display value="Entire oral cavity" />
      </coding>
    </siteCodeableConcept>
    <route>
      <coding>
        <system value="http://snomed.info/sct" />
        <code value="26643006" />
        <display value="Oral Route" />
      </coding>
    </route>
    <doseQuantity>
      <value value="5" />
      <unit value="mL" />
      <system value="http://unitsofmeasure.org/" />
      <code value="mL" />
    </doseQuantity>
  </dosageInstruction>
  <dispenseRequest>
    <medicationReference>
      <reference value="Medication/MedicationExample3" />
    </medicationReference>
    <validityPeriod>
      <start value="2015-01-15" />
      <end value="2016-01-15" />
    </validityPeriod>
    <numberOfRepeatsAllowed value="2" />
    <quantity>
      <value value="100" />
      <unit value="mL" />
      <system value="http://unitsofmeasure.org/" />
      <code value="mL" />
    </quantity>
    <expectedSupplyDuration>
      <value value="10" />
      <unit value="days" />
      <system value="http://unitsofmeasure.org/" />
      <code value="d" />
    </expectedSupplyDuration>
  </dispenseRequest>
  <substitution>
    <type>
      <coding>
        <system value="http://hl7.org/fhir" />
        <code value="G" />
        <display value="Generic Composition" />
      </coding>
    </type>
    <reason>
      <coding>
        <system value="http://hl7.org/fhir" />
        <code value="FP" />
        <display value="formulary policy" />
      </coding>
    </reason>
  </substitution>
</MedicationOrder>