{
  "resourceType" : "Encounter",
  "meta" : {
    "versionId" : "1",
    "lastUpdated" : "2025-09-04T09:00:00.000Z",
    "source" : "https://standards.digital.health.nz/ns/hpi-facility-id/F04066-D",
    "profile" : ["https://fhir-ig.digital.health.nz/shared-care/StructureDefinition/DHOEncounterCreate",
    "https://standards.digital.health.nz/fhir/StructureDefinition/DHOEncounterCreate"],
    "tag" : [{
      "system" : "https://hub.services.digital.health.nz/ns/correlation-id",
      "code" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Encounter dho-outpatient-encounter-create-instance</b></p><a name=\"dho-outpatient-encounter-create-instance\"> </a><a name=\"hcdho-outpatient-encounter-create-instance\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">version: 1; Last updated: 2025-09-04 09:00:00+0000; </p><p style=\"margin-bottom: 0px\">Information Source: <a href=\"https://standards.digital.health.nz/ns/hpi-facility-id/F04066-D\">https://standards.digital.health.nz/ns/hpi-facility-id/F04066-D</a></p><p style=\"margin-bottom: 0px\">Profiles: <a href=\"StructureDefinition-DHOEncounterCreate.html\">Dunedin Hospital Outpatient Encounter Create</a>, <code>https://standards.digital.health.nz/fhir/StructureDefinition/DHOEncounterCreate</code></p><p style=\"margin-bottom: 0px\">Tag: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (Details: correlation-id code xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)</p></div><p><b>status</b>: Arrived</p><p><b>class</b>: <a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v3-ActCode.html#v3-ActCode-AMB\">ActCode AMB</a>: Ambulatory</p><p><b>subject</b>: Mr Test Patient | Male | 2001-01-01 (Identifier: <a href=\"http://fhir.org.nz/ig/base/NamingSystem-nhi.html\" title=\"NHI number\">NHI</a>/ZZZ0008)</p><p><b>appointment</b>: <a href=\"Appointment-DHOClinicAppointmentExample.html\">Appointment: identifier = #fbdb8d66-1390-22c7-89a6-a9a75d65d3e6; status = booked; serviceCategory = Orthopaedic Surgery; serviceType = Fracture Clinic; description = DH Fracture Consultant; start = 2025-09-03 02:30:35+0000; end = 2025-09-03 03:30:35+0000; patientInstruction = Bring all medications you are currently taking on your admission to hospital.</a></p></div>"
  },
  "status" : "arrived",
  "class" : {
    "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
    "code" : "AMB",
    "display" : "Ambulatory"
  },
  "subject" : {
    "type" : "Patient",
    "identifier" : {
      "system" : "https://standards.digital.health.nz/ns/nhi-id",
      "value" : "ZZZ0008"
    },
    "display" : "Mr Test Patient | Male | 2001-01-01"
  },
  "appointment" : [{
    "reference" : "Appointment/DHOClinicAppointmentExample"
  }]
}