{
  "resourceType" : "EpisodeOfCare",
  "id" : "EN12349876",
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: EpisodeOfCare EN12349876</b></p><a name=\"EN12349876\"> </a><a name=\"hcEN12349876\"> </a><a name=\"EN12349876-en-US\"> </a><p><b>Enrolment_encounter</b>: <a href=\"#hcEN12349876/QualifiedEncounter10\">Encounter: status = finished; class = ambulatory (ActCode#AMB); period = 2023-09-27 --&gt; (ongoing)</a></p><p><b>Enrolment_expiry_date</b>: 2026-06-05</p><p><b>Reenrolment_expiry_date</b>: 2022-06-05</p><p><b>Enrolment_owner_org</b>: <a href=\"Organization/GZZ998-G\">Live Org with Dormant</a></p><p><b>Nes_enrolment_termination_reason</b>: <span title=\"Codes:{https://standards.digital.health.nz/nes-enrolment-termination-reason LinkNHI}\">NHI was Linked</span></p><p><b>identifier</b>: <code>https://standards.digital.health.nz/ns/nes-enrolment-id</code>/EN667788899</p><p><b>status</b>: Active</p><p><b>type</b>: <span title=\"Codes:{https://standards.digital.health.nz/nes-enrolment-type FLS-NF}\">First Level Services</span></p><p><b>patient</b>: <a href=\"#hcEN12349876/ZKC4633\">Rickey Amalia Aufderhar  (no stated gender), DoB: 2021-12-29</a></p><p><b>careManager</b>: <a href=\"#hcEN12349876/EnrolmentServiceProvider10\">PractitionerRole</a></p><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: PractitionerRole #EnrolmentServiceProvider10</b></p><a name=\"EN12349876/EnrolmentServiceProvider10\"> </a><a name=\"hcEN12349876/EnrolmentServiceProvider10\"> </a><a name=\"EN12349876/EnrolmentServiceProvider10-en-US\"> </a><p><b>practitioner</b>: <a href=\"Practitioner/99ZZZS\">Mrs TestOne Prefix-Test</a></p><p><b>organization</b>: <a href=\"Organization/GZZ998-G\">Live Org with Dormant</a></p><p><b>location</b>: <a href=\"Location/FZZ968-B\">Facility Has All Contact Types TEST</a></p></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Encounter #QualifiedEncounter10</b></p><a name=\"EN12349876/QualifiedEncounter10\"> </a><a name=\"hcEN12349876/QualifiedEncounter10\"> </a><a name=\"EN12349876/QualifiedEncounter10-en-US\"> </a><p><b>status</b>: Finished</p><p><b>class</b>: <a href=\"http://terminology.hl7.org/6.1.0/CodeSystem-v3-ActCode.html#v3-ActCode-AMB\">ActCode AMB</a>: ambulatory</p><p><b>period</b>: 2023-09-27 --&gt; (ongoing)</p></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Patient #ZKC4633</b></p><a name=\"EN12349876/ZKC4633\"> </a><a name=\"hcEN12349876/ZKC4633\"> </a><a name=\"EN12349876/ZKC4633-en-US\"> </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=\"StructureDefinition-NesPatient.html\">NES Patient</a></p></div><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Rickey Amalia Aufderhar  (no stated gender), DoB: 2021-12-29</p><hr/></blockquote></div>"
  },
  "contained" : [{
    "resourceType" : "PractitionerRole",
    "id" : "EnrolmentServiceProvider10",
    "practitioner" : {
      "reference" : "Practitioner/99ZZZS",
      "display" : "Mrs TestOne Prefix-Test"
    },
    "organization" : {
      "reference" : "Organization/GZZ998-G",
      "display" : "Live Org with Dormant"
    },
    "location" : [{
      "reference" : "Location/FZZ968-B",
      "display" : "Facility Has All Contact Types TEST"
    }]
  },
  {
    "resourceType" : "Encounter",
    "id" : "QualifiedEncounter10",
    "status" : "finished",
    "class" : {
      "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
      "code" : "AMB"
    },
    "period" : {
      "start" : "2023-09-27"
    }
  },
  {
    "resourceType" : "Patient",
    "id" : "ZKC4633",
    "meta" : {
      "profile" : ["http://hl7.org.nz/fhir/StructureDefinition/NesPatient"]
    },
    "name" : [{
      "family" : "Aufderhar",
      "given" : ["Rickey",
      "Amalia"]
    }],
    "birthDate" : "2021-12-29"
  }],
  "extension" : [{
    "url" : "http://hl7.org.nz/fhir/StructureDefinition/enrolment-encounter",
    "valueReference" : {
      "reference" : "#QualifiedEncounter10"
    }
  },
  {
    "url" : "http://hl7.org.nz/fhir/StructureDefinition/enrolment-expiry-date",
    "valueDate" : "2026-06-05"
  },
  {
    "url" : "http://hl7.org.nz/fhir/StructureDefinition/reenrolment-date",
    "valueDate" : "2022-06-05"
  },
  {
    "url" : "http://hl7.org.nz/fhir/StructureDefinition/enrolment-owner-org",
    "valueReference" : {
      "reference" : "Organization/GZZ998-G",
      "display" : "Live Org with Dormant"
    }
  },
  {
    "url" : "http://hl7.org.nz/fhir/StructureDefinition/nes-enrolment-termination-reason",
    "valueCodeableConcept" : {
      "coding" : [{
        "system" : "https://standards.digital.health.nz/nes-enrolment-termination-reason",
        "code" : "LinkNHI"
      }],
      "text" : "NHI was Linked"
    }
  }],
  "identifier" : [{
    "system" : "https://standards.digital.health.nz/ns/nes-enrolment-id",
    "value" : "EN667788899"
  }],
  "status" : "active",
  "type" : [{
    "coding" : [{
      "system" : "https://standards.digital.health.nz/nes-enrolment-type",
      "code" : "FLS-NF"
    }]
  }],
  "patient" : {
    "reference" : "#ZKC4633"
  },
  "careManager" : {
    "reference" : "#EnrolmentServiceProvider10"
  }
}