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

<MedicationAdministration xmlns="http://hl7.org/fhir">
  <id value="medadmin0301"/>
  <contained>
    <Medication>
      <id value="med0301"/>
      <code>
        <!--  Vancomycin Hydrochloride (VANCOMYCIN HYDROCHLORIDE)"  -->
        <coding>
          <system value="http://hl7.org/fhir/sid/ndc"/>
          <code value="0409-6531-02"/>
          <display value="Vancomycin Hydrochloride, 10 VIAL in 1 TRAY (0409-6531-02) &gt; 1 INJECTION, POWDER, LYOPHILIZED, FOR SOLUTION in 1 VIAL (0409-6531-12) (package)"/>
        </coding>
        <text value="Vancomycin Hydrochloride (VANCOMYCIN HYDROCHLORIDE)"/>
      </code>
    </Medication>
  </contained>
  <contained>
    <Provenance>
      <id value="signature"/>
      <target>
        <reference value="ServiceRequest/physiotherapy"/>
      </target>
      <recorded value="2017-02-01T17:23:07Z"/>
      <agent>
        <role>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v3-ParticipationType"/>
            <code value="AUT"/>
          </coding>
        </role>
        <who>
          <reference value="Practitioner/example"/>
          <display value="Dr Adam Careful"/>
        </who>
      </agent>
      <signature>
        <type>
          <system value="urn:iso-astm:E1762-95:2013"/>
          <code value="1.2.840.10065.1.12.1.1"/>
          <display value="Author's Signature"/>
        </type>
        <when value="2017-02-01T17:23:07Z"/>
        <who>
          <reference value="Practitioner/example"/>
          <display value="Dr Adam Careful"/>
        </who>
        <targetFormat value="application/fhir+xml"/>
        <sigFormat value="application/signature+xml"/>
        <data value="dGhpcyBibG9iIGlzIHNuaXBwZWQ="/>
      </signature>
    </Provenance>
  </contained>
  <status value="in-progress"/>
  <medication>
    <reference>
      <reference value="#med0301"/>
    </reference>
  </medication>
  <subject>
    <reference value="Patient/pat1"/>
    <display value="Donald Duck"/>
  </subject>
  <encounter>
    <reference value="Encounter/f001"/>
    <display value="encounter who leads to this prescription"/>
  </encounter>
  <occurrencePeriod>
    <start value="2015-01-15T14:30:00+01:00"/>
  </occurrencePeriod>
  <performer>
    <actor>
      <reference>
        <reference value="Practitioner/f007"/>
        <display value="Patrick Pump"/>
      </reference>
    </actor>
  </performer>
  <reason>
    <concept>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/reason-medication-given"/>
        <code value="b"/>
        <display value="Given as Ordered"/>
      </coding>
    </concept>
  </reason>
  <request>
    <reference value="MedicationRequest/medrx0318"/>
  </request>
  <dosage>
    <text value="500mg IV q6h x 3 days"/>
    <route>
      <coding>
        <system value="http://snomed.info/sct"/>
        <code value="47625008"/>
        <display value="Intravenous route"/>
      </coding>
    </route>
    <method>
      <text value="IV Push"/>
    </method>
    <dose>
      <value value="500"/>
      <unit value="mg"/>
      <system value="http://unitsofmeasure.org"/>
      <code value="mg"/>
    </dose>
  </dosage>
  <eventHistory>
    <reference value="#signature"/>
    <display value="Author's Signature"/>
  </eventHistory>
</MedicationAdministration>