@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/Bundle/EN88776655> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "EN88776655"] ; # 
  fhir:identifier [
     fhir:system [ fhir:v "https://standards.digital.health.nz/ns/nes-enrolment-id"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "EN667788899" ]
  ] ; # 
  fhir:type [ fhir:v "searchset"] ; # 
  fhir:entry ( [
     fhir:resource ( [
       a fhir:EpisodeOfCare ;
       fhir:text [
         fhir:status [ fhir:v "generated" ] ;
         fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"EpisodeOfCare_null\"> </a><p class=\"res-header-id\"><b>Generated Narrative: EpisodeOfCare </b></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=\"Patient/ZAA0792\">Patient/ZAA0792</a></p><p><b>careManager</b>: <a href=\"PractitionerRole/EnrolmentServiceProvider3\">PractitionerRole/EnrolmentServiceProvider3</a></p><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: PractitionerRole #EnrolmentServiceProvider3</b></p><a name=\"null/EnrolmentServiceProvider3\"> </a><a name=\"hcnull/EnrolmentServiceProvider3\"> </a><a name=\"null/EnrolmentServiceProvider3-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 #QualifiedEncounter2</b></p><a name=\"null/QualifiedEncounter2\"> </a><a name=\"hcnull/QualifiedEncounter2\"> </a><a name=\"null/QualifiedEncounter2-en-US\"> </a><p><b>status</b>: Finished</p><p><b>class</b>: [not stated] AMB: AMB</p><p><b>period</b>: 2023-08-27 --&gt; (ongoing)</p></blockquote></div>"^^rdf:XMLLiteral
       ] ;
       fhir:contained ( [
         a fhir:PractitionerRole ;
         fhir:id [ fhir:v "EnrolmentServiceProvider3" ] ;
         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 "QualifiedEncounter2" ] ;
         fhir:status [ fhir:v "finished" ] ;
         fhir:class [
           fhir:code [ fhir:v "AMB" ]
         ] ;
         fhir:period [
           fhir:start [ fhir:v "2023-08-27"^^xsd:date ]
         ]
       ] ) ;
       fhir:extension ( [
         fhir:value [
           a fhir:date ;
           fhir:v "2026-06-05"^^xsd:date
         ]
       ] [
         fhir:value [
           a fhir:date ;
           fhir:v "2022-06-05"^^xsd:date
         ]
       ] [
         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:value [
           a fhir:CodeableConcept ;
           fhir:coding ( [
             fhir:code [ fhir:v "Transfer" ]
           ] )
         ]
       ] [
         fhir:value [
           a fhir:Reference ;
           fhir:reference [ fhir:v "QualifiedEncounter1" ]
         ]
       ] ) ;
       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:link <http://hl7.org.nz/fhir/ig/nes/Patient/ZAA0792> ;
         fhir:reference [ fhir:v "Patient/ZAA0792" ]
       ] ;
       fhir:careManager [
         fhir:link <http://hl7.org.nz/fhir/ig/nes/PractitionerRole/EnrolmentServiceProvider3> ;
         fhir:reference [ fhir:v "PractitionerRole/EnrolmentServiceProvider3" ]
       ]
     ] )
  ] [
     fhir:resource ( [
       a fhir:EpisodeOfCare ;
       fhir:text [
         fhir:status [ fhir:v "generated" ] ;
         fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"EpisodeOfCare_null\"> </a><p class=\"res-header-id\"><b>Generated Narrative: EpisodeOfCare </b></p><p><b>status</b>: Active</p><p><b>type</b>: <span title=\"Codes:{https://standards.digital.health.nz/nes-enrolment-type LMC}\">Lead Maternity Carer</span></p><p><b>patient</b>: <a href=\"Patient/ZAA0792\">Patient/ZAA0792</a></p><p><b>careManager</b>: <a href=\"PractitionerRole/EnrolmentServiceProvider4\">PractitionerRole/EnrolmentServiceProvider4</a></p><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: PractitionerRole #EnrolmentServiceProvider4</b></p><a name=\"null/EnrolmentServiceProvider4\"> </a><a name=\"hcnull/EnrolmentServiceProvider4\"> </a><a name=\"null/EnrolmentServiceProvider4-en-US\"> </a><p><b>practitioner</b>: <a href=\"Practitioner/90ZZLC\">Corporal Maxwell Quentin Klinger</a></p><p><b>organization</b>: <code>Another Live Org with Dormant</code></p><p><b>location</b>: <a href=\"Location/FZZ065-D\">Uncle Pats Seaside Sauna Retreat</a></p></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Encounter #QualifiedEncounter3</b></p><a name=\"null/QualifiedEncounter3\"> </a><a name=\"hcnull/QualifiedEncounter3\"> </a><a name=\"null/QualifiedEncounter3-en-US\"> </a><p><b>status</b>: Finished</p><p><b>class</b>: [not stated] AMB: AMB</p><p><b>period</b>: 2023-06-14 --&gt; (ongoing)</p></blockquote></div>"^^rdf:XMLLiteral
       ] ;
       fhir:contained ( [
         a fhir:PractitionerRole ;
         fhir:id [ fhir:v "EnrolmentServiceProvider4" ] ;
         fhir:practitioner [
           fhir:link <http://hl7.org.nz/fhir/ig/nes/Practitioner/90ZZLC> ;
           fhir:reference [ fhir:v "Practitioner/90ZZLC" ] ;
           fhir:display [ fhir:v "Corporal Maxwell Quentin Klinger" ]
         ] ;
         fhir:organization [
           fhir:link <http://hl7.org.nz/fhir/ig/nes/Organization//GZZ997-E> ;
           fhir:reference [ fhir:v "Organization//GZZ997-E" ] ;
           fhir:display [ fhir:v "Another Live Org with Dormant" ]
         ] ;
         fhir:location ( [
           fhir:link <http://hl7.org.nz/fhir/ig/nes/Location/FZZ065-D> ;
           fhir:reference [ fhir:v "Location/FZZ065-D" ] ;
           fhir:display [ fhir:v "Uncle Pats Seaside Sauna Retreat" ]
         ] )
       ] [
         a fhir:Encounter ;
         fhir:id [ fhir:v "QualifiedEncounter3" ] ;
         fhir:status [ fhir:v "finished" ] ;
         fhir:class [
           fhir:code [ fhir:v "AMB" ]
         ] ;
         fhir:period [
           fhir:start [ fhir:v "2023-06-14"^^xsd:date ]
         ]
       ] ) ;
       fhir:extension ( [
         fhir:value [
           a fhir:date ;
           fhir:v "2026-07-05"^^xsd:date
         ]
       ] [
         fhir:value [
           a fhir:date ;
           fhir:v "2022-07-05"^^xsd:date
         ]
       ] [
         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:value [
           a fhir:Reference ;
           fhir:link <http://hl7.org.nz/fhir/ig/nes/Encounter/QualifiedEncounter3> ;
           fhir:reference [ fhir:v "Encounter/QualifiedEncounter3" ]
         ]
       ] ) ;
       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 "LMC" ]
         ] )
       ] ) ;
       fhir:patient [
         fhir:link <http://hl7.org.nz/fhir/ig/nes/Patient/ZAA0792> ;
         fhir:reference [ fhir:v "Patient/ZAA0792" ]
       ] ;
       fhir:careManager [
         fhir:link <http://hl7.org.nz/fhir/ig/nes/PractitionerRole/EnrolmentServiceProvider4> ;
         fhir:reference [ fhir:v "PractitionerRole/EnrolmentServiceProvider4" ]
       ]
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

