<?xml version="1.0" encoding="UTF-8"?>

<MedicationDispense xmlns="http://hl7.org/fhir">
  <id value="meddisp0331"/>
  <contained>
    <Medication>
      <id value="med0352"/>
      <code>
        <!--  <display value="Coumadin 2mg tablet"/>  -->
        <coding>
          <system value="http://hl7.org/fhir/sid/ndc"/>
          <code value="0056-0170-70"/>
          <display value="COUMADIN, 1 BOTTLE in 1 CARTON (0056-0170-70) &gt; 100 TABLET in 1 BOTTLE (package)"/>
        </coding>
        <text value="Coumadin 2mg tablet"/>
      </code>
    </Medication>
  </contained>
  <status value="in-progress"/>
  <medication>
    <!--  Linked to a RESOURCE Medication  -->
    <!--  <display value="Coumadin 2mg tablet"/>  -->
    <reference>
      <reference value="#med0352"/>
      <display value="COUMADIN, 1 BOTTLE in 1 CARTON (0056-0170-70) &gt; 100 TABLET in 1 BOTTLE (package)"/>
    </reference>
  </medication>
  <subject>
    <reference value="Patient/pat1"/>
    <display value="Donald Duck"/>
  </subject>
  <performer>
    <actor>
      <reference value="Practitioner/f006"/>
    </actor>
  </performer>
  <authorizingPrescription>
    <reference value="MedicationRequest/medrx0331"/>
  </authorizingPrescription>
  <type>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
      <code value="DF"/>
      <display value="Daily Fill"/>
    </coding>
  </type>
  <quantity>
    <value value="1"/>
    <system value="http://snomed.info/sct"/>
    <code value="415818006"/>
  </quantity>
  <daysSupply>
    <value value="1"/>
    <unit value="Day"/>
    <system value="http://unitsofmeasure.org"/>
    <code value="d"/>
  </daysSupply>
  <whenPrepared value="2015-01-15T10:20:00Z"/>
  <dosageInstruction>
    <simple>
      <text value="7mg (=one 5mg tablet PLUS one 2mg tablet) once daily"/>
      <additionalInstruction>
        <text value="Take along with one 2mg Coumadin tablet for a total daily dose of 7mg as prescribed by physician"/>
      </additionalInstruction>
      <timing>
        <repeat>
          <frequency value="1"/>
          <period value="1"/>
          <periodUnit value="d"/>
        </repeat>
      </timing>
      <doseAndRate>
        <type>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/dose-rate-type"/>
            <code value="ordered"/>
            <display value="Ordered"/>
          </coding>
        </type>
        <doseQuantity>
          <value value="2"/>
          <unit value="mg"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="mg"/>
        </doseQuantity>
      </doseAndRate>
    </simple>
  </dosageInstruction>
</MedicationDispense>