<Encounter xmlns="http://hl7.org/fhir">
  <id value="example" />
  <status value="finished" />
  <class>
    <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode" />
    <code value="AMB" />
    <display value="ambulatory" />
  </class>
  <subject>
    <reference value="Patient/example" />
  </subject>
</Encounter>