{
  "resourceType" : "Encounter",
  "meta" : {
    "versionId" : "3",
    "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/DHOEncounter"],
    "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-instance</b></p><a name=\"dho-outpatient-encounter-instance\"> </a><a name=\"hcdho-outpatient-encounter-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: 3; 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\">Profile: <a href=\"StructureDefinition-DHOEncounter.html\">DHO Encounter profile</a></p><p style=\"margin-bottom: 0px\">Tag: </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>serviceType</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/service-type 397}\">Outpatients</span></p><p><b>subject</b>: Carey Carrington (Identifier: <a href=\"http://fhir.org.nz/ig/base/NamingSystem-nhi.html\" title=\"NHI number\">NHI</a>/ZXP7823\u00a0(use:\u00a0official))</p><h3>Participants</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Period</b></td><td><b>Individual</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ParticipationType CON}\">Consultant</span></td><td>2025-09-03 02:30:35+0000 --&gt; 2025-09-03 03:30:35+0000</td><td>Dr Dottie McStuffins (Identifier: <a href=\"http://fhir.org.nz/ig/base/NamingSystem-hpiProvider.html\" title=\"HPI providers\">HPIProvider</a>/99ZZZX\u00a0(use:\u00a0official))</td></tr></table><p><b>period</b>: 2025-09-03 02:30:35+0000 --&gt; (ongoing)</p><h3>Lengths</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Value</b></td><td><b>Unit</b></td><td><b>System</b></td><td><b>Code</b></td></tr><tr><td style=\"display: none\">*</td><td>1</td><td>hour</td><td><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v3-ucum.html\">http://unitsofmeasure.org</a></td><td>h</td></tr></table><h3>Diagnoses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Condition</b></td><td><b>Use</b></td><td><b>Rank</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Condition-DHOConditionExample.html\">Condition COVID-19</a></td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/diagnosis-role CC}\">Chief Complaint</span></td><td>1</td></tr></table><h3>Locations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Location</b></td><td><b>Status</b></td><td><b>Period</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"#hcdho-outpatient-encounter-instance/DHOClinicLocation\">Dunedin Hospital Outpatients, Clinic K01 (4211-K01)</a></td><td>Completed</td><td>2025-09-03 02:30:35+0000 --&gt; 2025-09-03 03:30:35+0000</td></tr></table><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Location #DHOClinicLocation</b></p><a name=\"dho-outpatient-encounter-instance/DHOClinicLocation\"> </a><a name=\"hcdho-outpatient-encounter-instance/DHOClinicLocation\"> </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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"http://fhir.org.nz/ig/base/StructureDefinition-NzLocation.html\">Location resource for use in NZ</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Dunedin Hospital Outpatients, Clinic K01 (4211-K01)</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Physical location\">Address:</td><td colspan=\"3\">350 Cumberland Street Dunedin Central Dunedin 9016 New Zealand (work)</td></tr><tr><td style=\"background-color: #f3f5da\" title=\"Another location this one is physically a part of\">Part Of:</td><td colspan=\"3\">Dunedin Hospital (Identifier: <a href=\"http://fhir.org.nz/ig/base/NamingSystem-hpiFacility.html\" title=\"HPI facilities\">HPIFacility</a>/4211)</td></tr></table></blockquote></div>"
  },
  "contained" : [{
    "resourceType" : "Location",
    "id" : "DHOClinicLocation",
    "meta" : {
      "profile" : ["http://hl7.org.nz/fhir/StructureDefinition/NzLocation"]
    },
    "identifier" : [{
      "value" : "4211-K01"
    }],
    "name" : "Dunedin Hospital Outpatients, Clinic K01",
    "address" : {
      "use" : "work",
      "type" : "physical",
      "line" : ["350 Cumberland Street",
      "Dunedin Central"],
      "city" : "Dunedin",
      "postalCode" : "9016",
      "country" : "New Zealand"
    },
    "partOf" : {
      "type" : "Location",
      "identifier" : {
        "system" : "https://standards.digital.health.nz/ns/nzhis-facility-id",
        "value" : "4211"
      },
      "display" : "Dunedin Hospital"
    }
  }],
  "status" : "arrived",
  "class" : {
    "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
    "code" : "AMB",
    "display" : "Ambulatory"
  },
  "serviceType" : {
    "coding" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/service-type",
      "code" : "397",
      "display" : "Outpatients"
    }],
    "text" : "Outpatients"
  },
  "subject" : {
    "type" : "Patient",
    "identifier" : {
      "use" : "official",
      "system" : "https://standards.digital.health.nz/ns/nhi-id",
      "value" : "ZXP7823"
    },
    "display" : "Carey Carrington"
  },
  "participant" : [{
    "type" : [{
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
        "code" : "CON",
        "display" : "consultant"
      }],
      "text" : "Consultant"
    }],
    "period" : {
      "start" : "2025-09-03T02:30:35Z",
      "end" : "2025-09-03T03:30:35Z"
    },
    "individual" : {
      "type" : "Practitioner",
      "identifier" : {
        "use" : "official",
        "system" : "https://standards.digital.health.nz/ns/hpi-person-id",
        "value" : "99ZZZX"
      },
      "display" : "Dr Dottie McStuffins"
    }
  }],
  "period" : {
    "start" : "2025-09-03T02:30:35Z"
  },
  "length" : {
    "value" : 1,
    "unit" : "hour",
    "system" : "http://unitsofmeasure.org",
    "code" : "h"
  },
  "diagnosis" : [{
    "condition" : {
      "reference" : "Condition/DHOConditionExample"
    },
    "use" : {
      "coding" : [{
        "system" : "http://terminology.hl7.org/CodeSystem/diagnosis-role",
        "code" : "CC",
        "display" : "Chief complaint"
      }],
      "text" : "Chief Complaint"
    },
    "rank" : 1
  }],
  "location" : [{
    "location" : {
      "reference" : "#DHOClinicLocation"
    },
    "status" : "completed",
    "period" : {
      "start" : "2025-09-03T02:30:35Z",
      "end" : "2025-09-03T03:30:35Z"
    }
  }]
}