@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://kommune.conteir.no/EpisodeOfCare/example-episodeofcare> a fhir:EpisodeOfCare ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example-episodeofcare"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "https://kommune.conteir.no/StructureDefinition/kommune-episodeofcare" ;
       fhir:index -1 ;
       fhir:link <https://kommune.conteir.no/StructureDefinition/kommune-episodeofcare>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: EpisodeOfCare example-episodeofcare</b></p><a name=\"example-episodeofcare\"> </a><a name=\"hcexample-episodeofcare\"> </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-kommune-episodeofcare.html\">no-kommune-EpisodeOfCare</a></p></div><p><b>status</b>: Active</p><p><b>type</b>: <span title=\"Codes:\">Follow-up after discharge from orthopedic department</span></p><h3>Diagnoses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Condition</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Condition-example-health-concern.html\">Health concern after hip fracture</a></td></tr></table><p><b>patient</b>: <a href=\"Patient-example-patient.html\">Kari Hansen  Female, DoB: 1948-09-12 ( urn:oid:2.16.578.1.12.4.1.4.1#Foedselsnummer#12094812345)</a></p><p><b>managingOrganization</b>: <a href=\"Organization-example-organization.html\">Organization Oslo municipality, Grünerløkka district, Home Care Service</a></p><p><b>period</b>: 2026-01-13 --&gt; (ongoing)</p><p><b>referralRequest</b>: </p><ul><li><a href=\"ServiceRequest-example-servicerequest.html\">ServiceRequest </a></li><li><a href=\"ServiceRequest-example-rehabilitation-servicerequest.html\">ServiceRequest </a></li></ul><p><b>careManager</b>: <a href=\"PractitionerRole-example-practitionerrole.html\">PractitionerRole</a></p><p><b>team</b>: <a href=\"CareTeam-example-careteam.html\">CareTeam Multidisciplinary follow-up team, Grünerløkka district</a></p></div>"
  ] ;
  fhir:EpisodeOfCare.status [ fhir:value "active"] ;
  fhir:EpisodeOfCare.type [
     fhir:index -1 ;
     fhir:CodeableConcept.text [ fhir:value "Follow-up after discharge from orthopedic department" ]
  ] ;
  fhir:EpisodeOfCare.diagnosis [
     fhir:index -1 ;
     fhir:EpisodeOfCare.diagnosis.condition [
       fhir:link <https://kommune.conteir.no/Condition/example-health-concern> ;
       fhir:Reference.reference [ fhir:value "Condition/example-health-concern" ] ;
       fhir:Reference.display [ fhir:value "Health concern after hip fracture" ]
     ]
  ] ;
  fhir:EpisodeOfCare.patient [
     fhir:link <https://kommune.conteir.no/Patient/example-patient> ;
     fhir:Reference.reference [ fhir:value "Patient/example-patient" ]
  ] ;
  fhir:EpisodeOfCare.managingOrganization [
     fhir:link <https://kommune.conteir.no/Organization/example-organization> ;
     fhir:Reference.reference [ fhir:value "Organization/example-organization" ]
  ] ;
  fhir:EpisodeOfCare.period [
     fhir:Period.start [ fhir:value "2026-01-13"^^xsd:date ]
  ] ;
  fhir:EpisodeOfCare.referralRequest [
     fhir:index -1 ;
     fhir:link <https://kommune.conteir.no/ServiceRequest/example-servicerequest> ;
     fhir:Reference.reference [ fhir:value "ServiceRequest/example-servicerequest" ]
  ], [
     fhir:index -1 ;
     fhir:link <https://kommune.conteir.no/ServiceRequest/example-rehabilitation-servicerequest> ;
     fhir:Reference.reference [ fhir:value "ServiceRequest/example-rehabilitation-servicerequest" ]
  ] ;
  fhir:EpisodeOfCare.careManager [
     fhir:link <https://kommune.conteir.no/PractitionerRole/example-practitionerrole> ;
     fhir:Reference.reference [ fhir:value "PractitionerRole/example-practitionerrole" ]
  ] ;
  fhir:EpisodeOfCare.team [
     fhir:index -1 ;
     fhir:link <https://kommune.conteir.no/CareTeam/example-careteam> ;
     fhir:Reference.reference [ fhir:value "CareTeam/example-careteam" ]
  ] .

# - ontology header ------------------------------------------------------------

<https://kommune.conteir.no/EpisodeOfCare/example-episodeofcare.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

