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

<MedicationDispense xmlns="http://hl7.org/fhir">
  <id value="meddisp008"/>
  <contained>
    <Medication>
      <id value="medexample015"/>
      <code>
        <coding>
          <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>
          <code value="213293"/>
          <display value="capecitabine 500 MG Oral Tablet [Xeloda]"/>
        </coding>
      </code>
    </Medication>
  </contained>
  <status value="completed"/>
  <medication>
    <reference>
      <reference value="#medexample015"/>
    </reference>
  </medication>
  <subject>
    <reference value="Patient/pat1"/>
    <display value="Donald Duck"/>
  </subject>
  <performer>
    <actor>
      <reference value="Practitioner/f006"/>
    </actor>
  </performer>
  <authorizingPrescription>
    <reference value="MedicationRequest/medrx0309"/>
  </authorizingPrescription>
  <dosageInstruction>
    <simple>
      <timing>
        <repeat>
          <frequency value="2"/>
          <period value="21"/>
          <periodUnit value="d"/>
        </repeat>
      </timing>
      <route>
        <coding>
          <system value="http://snomed.info/sct"/>
          <code value="394899003"/>
          <display value="oral administration of treatment"/>
        </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="500"/>
          <unit value="mg"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="mg"/>
        </doseQuantity>
      </doseAndRate>
    </simple>
  </dosageInstruction>
</MedicationDispense>