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

<MedicationRequest xmlns="http://hl7.org/fhir">
  <id value="medrx0309"/>
  <contained>
    <Medication>
      <id value="med0321"/>
      <code>
        <coding>
          <system value="http://snomed.info/sct"/>
          <code value="108761006"/>
          <display value="Product containing capecitabine (medicinal product)"/>
        </coding>
      </code>
    </Medication>
  </contained>
  <identifier>
    <use value="official"/>
    <system value="http://www.bmc.nl/portal/prescriptions"/>
    <value value="12345689"/>
  </identifier>
  <status value="active"/>
  <intent value="order"/>
  <medication>
    <reference>
      <reference value="#med0321"/>
    </reference>
  </medication>
  <subject>
    <!-- Linked to the resource patient who needs the medication -->
    <reference value="Patient/pat1"/>
    <display value="Donald Duck"/>
  </subject>
  <encounter>
    <!-- Linked to a resource Encounter between patient and practitioner -->
    <reference value="Encounter/f001"/>
    <display value="encounter who leads to this prescription"/>
  </encounter>
  <authoredOn value="2015-01-15"/>
  <requester>
    <reference value="Practitioner/f007"/>
    <display value="Patrick Pump"/>
  </requester>
  <dosageInstruction>
    <step>
      <component>
        <text value="1000 mg/m2 orally twice daily from days 1-14 of cycle"/>
        <timing>
          <repeat>
            <boundsPeriod>
              <start value="2016-01-22"/>
              <end value="2016-02-04"/>
            </boundsPeriod>
            <frequency value="1"/>
            <period value="2"/>
            <periodUnit value="d"/>
          </repeat>
        </timing>
        <route>
          <coding>
            <system value="http://snomed.info/sct"/>
            <code value="26643006"/>
            <display value="Oral Route"/>
          </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="1000"/>
            <unit value="mg/m2"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="mg/m2"/>
          </doseQuantity>
        </doseAndRate>
      </component>
    </step>
  </dosageInstruction>
</MedicationRequest>