@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org.nz/fhir/ig/nes/EpisodeOfCare/EN12349876> a fhir:EpisodeOfCare ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "EN12349876"] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir: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>"^^rdf:XMLLiteral
  ] ; # 
  fhir:contained ( [
     a fhir:PractitionerRole ;
     fhir:id [ fhir:v "EnrolmentServiceProvider10" ] ;
     fhir:practitioner [
       fhir:link <http://hl7.org.nz/fhir/ig/nes/Practitioner/99ZZZS> ;
       fhir:reference [ fhir:v "Practitioner/99ZZZS" ] ;
       fhir:display [ fhir:v "Mrs TestOne Prefix-Test" ]
     ] ;
     fhir:organization [
       fhir:link <http://hl7.org.nz/fhir/ig/nes/Organization/GZZ998-G> ;
       fhir:reference [ fhir:v "Organization/GZZ998-G" ] ;
       fhir:display [ fhir:v "Live Org with Dormant" ]
     ] ;
     fhir:location ( [
       fhir:link <http://hl7.org.nz/fhir/ig/nes/Location/FZZ968-B> ;
       fhir:reference [ fhir:v "Location/FZZ968-B" ] ;
       fhir:display [ fhir:v "Facility Has All Contact Types TEST" ]
     ] )
  ] [
     a fhir:Encounter ;
     fhir:id [ fhir:v "QualifiedEncounter10" ] ;
     fhir:status [ fhir:v "finished" ] ;
     fhir:class [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "AMB" ]
     ] ;
     fhir:period [
       fhir:start [ fhir:v "2023-09-27"^^xsd:date ]
     ]
  ] [
     a fhir:Patient ;
     fhir:id [ fhir:v "ZKC4633" ] ;
     fhir:meta [
       fhir:profile ( [
         fhir:v "http://hl7.org.nz/fhir/StructureDefinition/NesPatient"^^xsd:anyURI ;
         fhir:link <http://hl7.org.nz/fhir/StructureDefinition/NesPatient>
       ] )
     ] ;
     fhir:name ( [
       fhir:family [ fhir:v "Aufderhar" ] ;
       fhir:given ( [ fhir:v "Rickey" ] [ fhir:v "Amalia" ] )
     ] ) ;
     fhir:birthDate [ fhir:v "2021-12-29"^^xsd:date ]
  ] ) ; # 
  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org.nz/fhir/StructureDefinition/enrolment-encounter"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:Reference ;
       fhir:reference [ fhir:v "#QualifiedEncounter10" ]
     ]
  ] [
     fhir:url [ fhir:v "http://hl7.org.nz/fhir/StructureDefinition/enrolment-expiry-date"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:date ;
       fhir:v "2026-06-05"^^xsd:date
     ]
  ] [
     fhir:url [ fhir:v "http://hl7.org.nz/fhir/StructureDefinition/reenrolment-date"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:date ;
       fhir:v "2022-06-05"^^xsd:date
     ]
  ] [
     fhir:url [ fhir:v "http://hl7.org.nz/fhir/StructureDefinition/enrolment-owner-org"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:Reference ;
       fhir:link <http://hl7.org.nz/fhir/ig/nes/Organization/GZZ998-G> ;
       fhir:reference [ fhir:v "Organization/GZZ998-G" ] ;
       fhir:display [ fhir:v "Live Org with Dormant" ]
     ]
  ] [
     fhir:url [ fhir:v "http://hl7.org.nz/fhir/StructureDefinition/nes-enrolment-termination-reason"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         fhir:system [ fhir:v "https://standards.digital.health.nz/nes-enrolment-termination-reason"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "LinkNHI" ]
       ] ) ;
       fhir:text [ fhir:v "NHI was Linked" ]
     ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "https://standards.digital.health.nz/ns/nes-enrolment-id"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "EN667788899" ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:type ( [
     fhir:coding ( [
       fhir:system [ fhir:v "https://standards.digital.health.nz/nes-enrolment-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "FLS-NF" ]
     ] )
  ] ) ; # 
  fhir:patient [
     fhir:reference [ fhir:v "#ZKC4633" ]
  ] ; # 
  fhir:careManager [
     fhir:reference [ fhir:v "#EnrolmentServiceProvider10" ]
  ] . # 

# -------------------------------------------------------------------------------------

