@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/Goal/example-goal> a fhir:Goal ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example-goal"] ;
  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: Goal example-goal</b></p><a name=\"example-goal\"> </a><a name=\"hcexample-goal\"> </a><p><b>lifecycleStatus</b>: Active</p><p><b>description</b>: <span title=\"Codes:\">The patient lives safely at home with gradually reduced need for assistance</span></p><p><b>subject</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>start</b>: 2026-01-20</p><h3>Targets</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Measure</b></td><td><b>Detail[x]</b></td><td><b>Due[x]</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:\">Functional level in activities of daily living</span></td><td>Manages personal hygiene and simple cooking with minimal assistance</td><td>2026-03-15</td></tr></table></div>"
  ] ;
  fhir:Goal.lifecycleStatus [ fhir:value "active"] ;
  fhir:Goal.description [
     fhir:CodeableConcept.text [ fhir:value "The patient lives safely at home with gradually reduced need for assistance" ]
  ] ;
  fhir:Goal.subject [
     fhir:link <https://kommune.conteir.no/Patient/example-patient> ;
     fhir:Reference.reference [ fhir:value "Patient/example-patient" ]
  ] ;
  fhir:Goal.startDate [ fhir:value "2026-01-20"^^xsd:date] ;
  fhir:Goal.target [
     fhir:index -1 ;
     fhir:Goal.target.measure [
       fhir:CodeableConcept.text [ fhir:value "Functional level in activities of daily living" ]
     ] ;
     fhir:Goal.target.detailString [ fhir:value "Manages personal hygiene and simple cooking with minimal assistance" ] ;
     fhir:Goal.target.dueDate [ fhir:value "2026-03-15"^^xsd:date ]
  ] .

# - ontology header ------------------------------------------------------------

<https://kommune.conteir.no/Goal/example-goal.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

