@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/DocumentReference/example-documentreference> a fhir:DocumentReference ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example-documentreference"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.no/fhir/StructureDefinition/no-basis-DocumentReference" ;
       fhir:index -1 ;
       fhir:link <http://hl7.no/fhir/StructureDefinition/no-basis-DocumentReference>
     ]
  ] ;
  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: DocumentReference example-documentreference</b></p><a name=\"example-documentreference\"> </a><a name=\"hcexample-documentreference\"> </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=\"https://simplifier.net/resolve?scope=hl7.fhir.no.basis@2.2.2&amp;canonical=http://hl7.no/fhir/StructureDefinition/no-basis-DocumentReference\">no-basis-DocumentReference</a></p></div><p><b>status</b>: Current</p><p><b>type</b>: <span title=\"Codes:{urn:oid:2.16.578.1.12.4.1.1.9602 B02-2}\">Clinical note</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>date</b>: 2026-01-12 09:00:00+0100</p><p><b>author</b>: <a href=\"Organization-example-organization.html\">Organization Oslo municipality, Grünerløkka district, Home Care Service</a></p><p><b>description</b>: Decision on home nursing and practical assistance after discharge</p><blockquote><p><b>content</b></p><h3>Attachments</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ContentType</b></td><td><b>Url</b></td></tr><tr><td style=\"display: none\">*</td><td>application/pdf</td><td><a href=\"https://simplifier.net/resolve?scope=hl7.fhir.no.basis@2.2.2&amp;canonical=https://example.org/fhir/Binary/vedtak-1\">https://example.org/fhir/Binary/vedtak-1</a></td></tr></table></blockquote></div>"
  ] ;
  fhir:DocumentReference.status [ fhir:value "current"] ;
  fhir:DocumentReference.type [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "urn:oid:2.16.578.1.12.4.1.1.9602" ] ;
       fhir:Coding.code [ fhir:value "B02-2" ] ;
       fhir:Coding.display [ fhir:value "Journalnotat" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Clinical note" ]
  ] ;
  fhir:DocumentReference.subject [
     fhir:link <https://kommune.conteir.no/Patient/example-patient> ;
     fhir:Reference.reference [ fhir:value "Patient/example-patient" ]
  ] ;
  fhir:DocumentReference.date [ fhir:value "2026-01-12T09:00:00+01:00"^^xsd:dateTime] ;
  fhir:DocumentReference.author [
     fhir:index -1 ;
     fhir:link <https://kommune.conteir.no/Organization/example-organization> ;
     fhir:Reference.reference [ fhir:value "Organization/example-organization" ]
  ] ;
  fhir:DocumentReference.description [ fhir:value "Decision on home nursing and practical assistance after discharge"] ;
  fhir:DocumentReference.content [
     fhir:index -1 ;
     fhir:DocumentReference.content.attachment [
       fhir:Attachment.contentType [ fhir:value "application/pdf" ] ;
       fhir:Attachment.url [ fhir:value "https://example.org/fhir/Binary/vedtak-1" ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://kommune.conteir.no/DocumentReference/example-documentreference.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

