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

<MedicationDispense xmlns="http://hl7.org/fhir">
  <id value="meddisp0318"/>
  <identifier>
    <use value="official"/>
    <system value="http://www.bmc.nl/portal/dispenses"/>
    <value value="12345689"/>
  </identifier>
  <status value="in-progress"/>
  <medication>
    <concept>
      <coding>
        <system value="http://hl7.org/fhir/sid/ndc"/>
        <code value="0378-1800-10"/>
        <display value="Levothyroxine Sodium, 1000 TABLET in 1 BOTTLE, PLASTIC (0378-1800-10) (package)"/>
      </coding>
      <text value="Levothyroxine Sodium Tablets, USP (75mcg)"/>
    </concept>
  </medication>
  <subject>
    <reference value="Patient/pat1"/>
    <display value="Donald Duck"/>
  </subject>
  <encounter>
    <reference value="Encounter/f001"/>
  </encounter>
  <performer>
    <actor>
      <reference value="Practitioner/f006"/>
    </actor>
  </performer>
  <authorizingPrescription>
    <reference value="MedicationRequest/medrx0314"/>
  </authorizingPrescription>
  <type>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
      <code value="RFP"/>
      <display value="Refill - Part Fill"/>
    </coding>
  </type>
  <quantity>
    <value value="100"/>
    <system value="http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"/>
    <code value="TAB"/>
  </quantity>
  <daysSupply>
    <value value="30"/>
    <unit value="Day"/>
    <system value="http://unitsofmeasure.org"/>
    <code value="d"/>
  </daysSupply>
  <whenPrepared value="2015-03-16T17:13:00+05:00"/>
  <dosageInstruction>
    <step>
      <component>
        <text value="75mcg daily daily"/>
        <timing>
          <repeat>
            <frequency value="1"/>
            <period value="1"/>
            <periodUnit value="d"/>
          </repeat>
        </timing>
        <route>
          <coding>
            <system value="http://snomed.info/sct"/>
            <code value="26643006"/>
            <display value="Oral Route (qualifier value)"/>
          </coding>
        </route>
        <doseAndRate>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/dose-rate-type"/>
              <code value="ordered"/>
              <display value="Ordered"/>
            </coding>
          </type>
          <doseQuantity>
            <value value="75"/>
            <unit value="mcg"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="ug"/>
          </doseQuantity>
        </doseAndRate>
      </component>
    </step>
  </dosageInstruction>
  <substitution>
    <wasSubstituted value="true"/>
    <type>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/v3-substanceAdminSubstitution"/>
        <code value="F"/>
        <display value="formulary"/>
      </coding>
    </type>
    <reason>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
        <code value="FP"/>
        <display value="Formulary Policy"/>
      </coding>
    </reason>
    <responsibleParty>
      <reference value="Practitioner/f006"/>
    </responsibleParty>
  </substitution>
</MedicationDispense>