<?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/>
  <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>