<?xml version=“1.0” encoding=“UTF-8”?> <Encounter xmlns=“hl7.org/fhir”>

      <id value="home"/>
      <meta>
  <security>
    <system value="http://terminology.hl7.org/CodeSystem/v3-ActReason"/>
    <code value="HTEST"/>
    <display value="test health data"/>
  </security>
</meta>

      <contained>
              <Location>
                      <id value="home"/>
                      <description value="Client's home"/>
                      <mode value="kind"/>
              </Location>
      </contained>
      <status value="finished"/>
      <class>
              <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
              <!--  Note that this value implies that the practitioner was at the patients home, 
                      if it was a tele-service, then the virtual code should be used.  -->
              <code value="HH"/>
              <display value="home health"/>
      </class>

      <subject>
              <reference value="Patient/example"/>
      </subject>
      <participant>
              <period>
                      <start value="2015-01-17T16:00:00+10:00"/>
                      <end value="2015-01-17T16:30:00+10:00"/>
              </period>
              <individual>
                      <reference value="Practitioner/example"/>
                      <display value="Dr Adam Careful"/>
              </individual>
      </participant>
      <period>
              <start value="2015-01-17T16:00:00+10:00"/>
              <end value="2015-01-17T16:30:00+10:00"/>
      </period>
      <location>
              <location>
                      <reference value="#home"/>
                      <display value="Client's home"/>
              </location>
              <status value="completed"/>
              <period>
                      <start value="2015-01-17T16:00:00+10:00"/>
                      <end value="2015-01-17T16:30:00+10:00"/>
              </period>
      </location>

</Encounter>