<?xml version="1.0" encoding="UTF-8"?><Encounter xmlns="http://hl7.org/fhir">
  <id value="emerg"/>
  <meta>
    <security>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
      <code value="HTEST"/>
      <display value="test health data"/>
    </security>
  </meta>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml">Emergency visit that escalated into inpatient patient @example</div>
  </text>
  <status value="in-progress"/>
  <businessStatus>
    <code>
      <coding>
        <system value="http://hl7.org/fhir/encounter-businessstatus-emergency"/>
        <code value="triaged"/>
        <display value="Triaged"/>
      </coding>
    </code>
    <type>
      <system value="http://hl7.org/fhir/encounter-businessstatus-type"/>
      <code value="emergency"/>
      <display value="Emergency"/>
    </type>
    <effectiveDate value="2017-02-01T08:00:00+10:00"/>
  </businessStatus>
  <businessStatus>
    <code>
      <coding>
        <system value="http://hl7.org/fhir/encounter-businessstatus-inpatient"/>
        <code value="admit"/>
        <display value="Admitted"/>
      </coding>
    </code>
    <type>
      <system value="http://hl7.org/fhir/encounter-businessstatus-type"/>
      <code value="inpatient"/>
      <display value="Inpatient"/>
    </type>
    <effectiveDate value="2017-02-01T09:27:00+10:00"/>
  </businessStatus>
  <class>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
      <code value="IMP"/>
      <display value="inpatient encounter"/>
    </coding>
  </class>
  <subject>
    <reference value="Patient/example"/>
  </subject>
  <actualPeriod>
    <start value="2017-02-01T07:15:00+10:00"/>
  </actualPeriod>
  <admission>
    <admitSource>
      <coding>
        <system value="http://terminology.hl7.org/CodeSystem/admit-source"/>
        <code value="emd"/>
        <display value="From accident/emergency department"/>
      </coding>
    </admitSource>
  </admission>
  <location>
    <location>
      <display value="Emergency Waiting Room"/>
    </location>
    <status value="active"/>
    <period>
      <start value="2017-02-01T07:15:00+10:00"/>
      <end value="2017-02-01T08:45:00+10:00"/>
    </period>
  </location>
  <location>
    <location>
      <display value="Emergency"/>
    </location>
    <status value="active"/>
    <period>
      <start value="2017-02-01T08:45:00+10:00"/>
      <end value="2017-02-01T09:27:00+10:00"/>
    </period>
  </location>
  <location>
    <location>
      <display value="Ward 1, Room 42, Bed 1"/>
    </location>
    <status value="active"/>
    <period>
      <start value="2017-02-01T09:27:00+10:00"/>
      <end value="2017-02-01T12:15:00+10:00"/>
    </period>
  </location>
  <location>
    <location>
      <display value="Ward 1, Room 42, Bed 1"/>
    </location>
    <status value="reserved"/>
    <period>
      <start value="2017-02-01T12:15:00+10:00"/>
      <end value="2017-02-01T12:45:00+10:00"/>
    </period>
  </location>
  <location>
    <location>
      <display value="Ward 1, Room 42, Bed 1"/>
    </location>
    <status value="active"/>
    <period>
      <start value="2017-02-01T12:45:00+10:00"/>
    </period>
  </location>
</Encounter>