@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/Observation/example-kpr-historical> a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example-kpr-historical"] ;
  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: Observation example-kpr-historical</b></p><a name=\"example-kpr-historical\"> </a><a name=\"hcexample-kpr-historical\"> </a><p><b>identifier</b>: <code>https://example.org/fhir/identifier/functional-assessment</code>/example-kpr-historical-2025-12-15</p><p><b>status</b>: Final</p><p><b>code</b>: <span title=\"Codes:{urn:oid:2.16.578.1.12.4.1.1.9111 6}\">Alminnelig husarbeid</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>effective</b>: 2025-12-15 10:00:00+0100</p><p><b>performer</b>: </p><ul><li><a href=\"PractitionerRole-example-practitionerrole.html\">PractitionerRole</a></li><li><a href=\"Organization-example-organization.html\">Organization Oslo municipality, Grünerløkka district, Home Care Service</a></li></ul><p><b>value</b>: <span title=\"Codes:{urn:oid:2.16.578.1.12.4.1.1.9165 9}\">Historical score 9 – not relevant (9165, recorded in 2025).</span></p><p><b>note</b>: </p><blockquote><div><p>The source recorded score 9, not relevant, in 2025. It is retained unchanged as history; it is not a new or current score and has not been automatically converted to a missing result.</p>\n</div></blockquote></div>"
  ] ;
  fhir:Observation.identifier [
     fhir:index -1 ;
     fhir:Identifier.system [ fhir:value "https://example.org/fhir/identifier/functional-assessment" ] ;
     fhir:Identifier.value [ fhir:value "example-kpr-historical-2025-12-15" ]
  ] ;
  fhir:Observation.status [ fhir:value "final"] ;
  fhir:Observation.code [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "urn:oid:2.16.578.1.12.4.1.1.9111" ] ;
       fhir:Coding.code [ fhir:value "6" ] ;
       fhir:Coding.display [ fhir:value "Alminnelig husarbeid" ]
     ]
  ] ;
  fhir:Observation.subject [
     fhir:link <https://kommune.conteir.no/Patient/example-patient> ;
     fhir:Reference.reference [ fhir:value "Patient/example-patient" ]
  ] ;
  fhir:Observation.effectiveDateTime [ fhir:value "2025-12-15T10:00:00+01:00"^^xsd:dateTime] ;
  fhir:Observation.performer [
     fhir:index -1 ;
     fhir:link <https://kommune.conteir.no/PractitionerRole/example-practitionerrole> ;
     fhir:Reference.reference [ fhir:value "PractitionerRole/example-practitionerrole" ]
  ], [
     fhir:index -1 ;
     fhir:link <https://kommune.conteir.no/Organization/example-organization> ;
     fhir:Reference.reference [ fhir:value "Organization/example-organization" ]
  ] ;
  fhir:Observation.valueCodeableConcept [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "urn:oid:2.16.578.1.12.4.1.1.9165" ] ;
       fhir:Coding.code [ fhir:value "9" ] ;
       fhir:Coding.display [ fhir:value "Ikke relevant" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Historical score 9 – not relevant (9165, recorded in 2025)." ]
  ] ;
  fhir:Observation.note [
     fhir:index -1 ;
     fhir:Annotation.text [ fhir:value "The source recorded score 9, not relevant, in 2025. It is retained unchanged as history; it is not a new or current score and has not been automatically converted to a missing result." ]
  ] .

# - ontology header ------------------------------------------------------------

<https://kommune.conteir.no/Observation/example-kpr-historical.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

