@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir.dha.go.ke/erx/EpisodeOfCare/example-episodeofcare-otieno-oncology> a fhir:EpisodeOfCare ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example-episodeofcare-otieno-oncology"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://fhir.dha.go.ke/erx/StructureDefinition/ke-episode-of-care" ;
       fhir:index 0 ;
       fhir:link <https://fhir.dha.go.ke/erx/StructureDefinition/ke-episode-of-care>
     ], [
       fhir:value "https://fhir.dha.go.ke/fhir/StructureDefinition/ke-episode-of-care" ;
       fhir:index 1 ;
       fhir:link <https://fhir.dha.go.ke/fhir/StructureDefinition/ke-episode-of-care>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>EpisodeOfCare EOC-2025-ONCO-00099 – Oncology Management</b></p><p>Active oncology episode for James Otieno at KNH from 10 June 2025. Managed by Dr. Sarah Njoroge. Diagnosis: lung cancer.</p></div>"
  ] ;
  fhir:EpisodeOfCare.identifier [
     fhir:index 0 ;
     fhir:Identifier.system [ fhir:value "https://ilm-hie.dha.go.ke/fhir/NamingSystem/episode-identifier" ] ;
     fhir:Identifier.value [ fhir:value "EOC-2025-ONCO-00099" ]
  ] ;
  fhir:EpisodeOfCare.status [ fhir:value "active"] ;
  fhir:EpisodeOfCare.type [
     fhir:index 0 ;
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "https://fhir.dha.go.ke/fhir/CodeSystem/ke-episode-of-care-type-cs" ] ;
       fhir:Coding.code [ fhir:value "oncology" ] ;
       fhir:Coding.display [ fhir:value "Oncology Management" ]
     ]
  ] ;
  fhir:EpisodeOfCare.diagnosis [
     fhir:index 0 ;
     fhir:EpisodeOfCare.diagnosis.condition [
       fhir:link <https://fhir.dha.go.ke/erx/Condition/example-condition-otieno-lungcancer> ;
       fhir:Reference.reference [ fhir:value "Condition/example-condition-otieno-lungcancer" ]
     ]
  ] ;
  fhir:EpisodeOfCare.patient [
     fhir:link <https://fhir.dha.go.ke/erx/Patient/example-patient-otieno> ;
     fhir:Reference.reference [ fhir:value "Patient/example-patient-otieno" ]
  ] ;
  fhir:EpisodeOfCare.managingOrganization [
     fhir:link <https://fhir.dha.go.ke/erx/Organization/example-organization-knh> ;
     fhir:Reference.reference [ fhir:value "Organization/example-organization-knh" ]
  ] ;
  fhir:EpisodeOfCare.period [
     fhir:Period.start [ fhir:value "2025-06-10"^^xsd:date ]
  ] ;
  fhir:EpisodeOfCare.careManager [
     fhir:link <https://fhir.dha.go.ke/erx/Practitioner/example-practitioner-njoroge> ;
     fhir:Reference.reference [ fhir:value "Practitioner/example-practitioner-njoroge" ]
  ] .

# - ontology header ------------------------------------------------------------

<https://fhir.dha.go.ke/erx/EpisodeOfCare/example-episodeofcare-otieno-oncology.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

