<Bundle xmlns="http://hl7.org/fhir">
  <type value="message" />
  <id value="32e2adf8-595b-4b39-b6f1-f0073464c7f9" />
  <!--   Message Header   -->
  <entry>
    <fullUrl value="message-header-167434" />
    <resource>
      <MessageHeader>
        <id value="message-header-167434" />
        <text>
          <status value="generated" />
          <div xmlns="http://www.w3.org/1999/xhtml">
            <p>The quick brown fox jumps over the lazy dog</p>
          </div>
        </text>
        <timestamp value="2021-05-07T16:15:32Z" />
        <event>
          <system value="https://fhir.nhs.uk/STU3/CodeSystem/EventType-1" />
          <code value="individual-requirements-1" />
          <display value="Individual Requirements" />
        </event>
        <source>
          <endpoint value="nhs-uk:addressing:ods:T48NT" />
        </source>
        <focus>
          <reference value="med-req-843920" />
        </focus>
      </MessageHeader>
    </resource>
  </entry>
  <!-- Patient associated with the encounter. -->
  <entry>
    <fullUrl value="patient-011223344" />
    <resource>
      <Patient>
        <id value="patient-011223344" />
        <identifier>
          <extension url="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1">
            <valueCodeableConcept>
              <coding>
                <system value="https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1" />
                <code value="01" />
                <display value="Number present and verified" />
              </coding>
            </valueCodeableConcept>
          </extension>
          <system value="https://fhir.nhs.uk/Id/nhs-number" />
          <value value="2377954310" />
        </identifier>
        <name>
          <use value="official" />
          <text value="Mrs Anne Teak" />
          <family value="Teak" />
          <given value="Anne" />
          <prefix value="Mrs" />
        </name>
        <gender value="female" />
        <birthDate value="1956-02-04" />
      </Patient>
    </resource>
  </entry>
  <!-- Prescribing clinician associated with the encounter.  -->
  <entry>
    <fullUrl value="staff-1112" />
    <resource>
      <Practitioner>
        <id value="staff-1112" />
        <name>
          <text value="Dr Maikeu Well" />
          <family value="Well" />
          <given value="Maikeu" />
          <prefix value="Dr" />
        </name>
        <qualification>
          <code>
            <coding>
              <system value="https://fhir.hl7.org.uk/Id/gmc-number" />
              <code value="2145879" />
              <display value="General Medical Council" />
            </coding>
          </code>
        </qualification>
      </Practitioner>
    </resource>
  </entry>
  <!-- Medication prescribed  -->
  <entry>
    <fullUrl value="medication-38769117" />
    <resource>
      <Medication>
        <id value="medication-38769117" />
        <code>
          <coding>
            <system value="http://snomed.info/sct" />
            <code value="27658006" />
            <display value="Amoxicillin" />
          </coding>
        </code>
      </Medication>
    </resource>
  </entry>
  <!--  Medication Request  -->
  <entry>
    <fullUrl value="med-req-1023938" />
    <resource>
      <MedicationRequest>
        <id value="med-req-1023938" />
        <status value="active" />
        <intent value="order" />
        <category>
          <coding>
            <system value="http://hl7.org/fhir/medication-request-category" />
            <code value="inpatient" />
            <display value="inpatient" />
          </coding>
        </category>
        <priority value="routine" />
        <medicationReference>
          <reference value="medication-38769117" />
          <display value="Amoxicillin" />
        </medicationReference>
        <subject>
          <reference value="patient-011223344" />
          <display value="Mrs Anne Teak" />
        </subject>
        <authoredOn value="2020-05-15T15:00:00+01:00" />
        <requester>
          <agent>
            <reference value="staff-1112" />
            <display value="Dr Maikeu Well" />
          </agent>
        </requester>
        <recorder>
          <reference value="staff-1112" />
          <display value="Dr Maikeu Well" />
        </recorder>
        <dosageInstruction>
          <timing>
            <repeat>
              <frequency value="3" />
              <period value="1" />
              <periodUnit value="d" />
            </repeat>
          </timing>
          <route>
            <coding>
              <system value="http://snomed.info/sct" />
              <code value="26643006" />
              <display value="oral" />
            </coding>
          </route>
          <doseQuantity>
            <value value="500" />
            <unit value="milligram" />
            <system value="http://unitsofmeasure.org" />
            <code value="mg" />
          </doseQuantity>
        </dosageInstruction>
        <substitution>
          <allowed value="false" />
        </substitution>
        <priorPrescription>
          <reference value="47fcb89e-46bc-4c64-bfa6-84b0098a2296" />
        </priorPrescription>
      </MedicationRequest>
    </resource>
  </entry>
</Bundle>