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

<MedicationRequest xmlns="http://hl7.org/fhir">
  <id value="medrx0322"/>
  <contained>
    <Medication>
      <id value="med0317"/>
      <doseForm>
        <coding>
          <system value="http://snomed.info/sct"/>
          <code value="385219001"/>
          <display value="Solution for injection"/>
        </coding>
        <text value="Solution for injection"/>
      </doseForm>
      <ingredient>
        <item>
          <concept>
            <coding>
              <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>
              <code value="204520"/>
              <display value="potassium chloride 2 MEQ/ML Injectable Solution"/>
            </coding>
            <text value="Potassium Chloride"/>
          </concept>
        </item>
        <strengthRatio>
          <numerator>
            <value value="2"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="meq"/>
          </numerator>
          <denominator>
            <value value="1"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="mL"/>
          </denominator>
        </strengthRatio>
      </ingredient>
      <ingredient>
        <item>
          <concept>
            <coding>
              <system value="http://www.nlm.nih.gov/research/umls/rxnorm"/>
              <code value="313002"/>
              <display value="sodium chloride 9 MG/ML Injectable Solution"/>
            </coding>
          </concept>
        </item>
        <strengthRatio>
          <numerator>
            <value value="0.9"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="g"/>
          </numerator>
          <denominator>
            <value value="100"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="mL"/>
          </denominator>
        </strengthRatio>
      </ingredient>
    </Medication>
  </contained>
  <identifier>
    <use value="official"/>
    <system value="http://www.bmc.nl/portal/prescriptions"/>
    <value value="12345689"/>
  </identifier>
  <status value="completed"/>
  <intent value="order"/>
  <medication>
    <!--  Linked to a RESOURCE Medication  -->
    <reference>
      <reference value="#med0317"/>
      <display value="Potassium Chloride 20mEq in 1L Normal Saline"/>
    </reference>
  </medication>
  <subject>
    <!--  Linked to the resource patient who needs the medication  -->
    <reference value="Patient/pat1"/>
    <display value="Donald Duck"/>
  </subject>
  <authoredOn value="2015-01-15"/>
  <requester>
    <reference value="Practitioner/f007"/>
    <display value="Patrick Pump"/>
  </requester>
  <reason>
    <concept>
      <coding>
        <system value="http://snomed.info/sct"/>
        <code value="237840007"/>
        <display value="Disorder of Electrolytes (disorder)"/>
      </coding>
    </concept>
  </reason>
  <dosageInstruction>
    <simple>
      <text value="KCl 20 mEq in 1 L 0.9%NS IV at 100 ml/hr"/>
      <timing>
        <repeat>
          <frequency value="1"/>
          <period value="1"/>
          <periodUnit value="h"/>
        </repeat>
      </timing>
      <route>
        <coding>
          <system value="http://snomed.info/sct"/>
          <code value="47625008"/>
          <display value="Intravenous 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="20"/>
          <unit value="meq"/>
          <system value="http://unitsofmeasure.org"/>
          <code value="meq"/>
        </doseQuantity>
        <rateRatio>
          <numerator>
            <value value="100"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="mL"/>
          </numerator>
          <denominator>
            <value value="1"/>
            <system value="http://unitsofmeasure.org"/>
            <code value="h"/>
          </denominator>
        </rateRatio>
      </doseAndRate>
    </simple>
  </dosageInstruction>
</MedicationRequest>