@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://fhir.slade360.co.ke/fhir/DocumentReference/ExampleSGHIDocumentReference> a fhir:DocumentReference ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ExampleSGHIDocumentReference"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://fhir.slade360.co.ke/fhir/StructureDefinition/documentreference"^^xsd:anyURI ;
       fhir:l <https://fhir.slade360.co.ke/fhir/StructureDefinition/documentreference>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: DocumentReference ExampleSGHIDocumentReference</b></p><a name=\"ExampleSGHIDocumentReference\"> </a><a name=\"hcExampleSGHIDocumentReference\"> </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-documentreference.html\">SGHI DocumentReference Profile.</a></p></div><p><b>identifier</b>: Accession ID/Accession ID (use: official, )</p><p><b>basedOn</b>: <a href=\"Appointment-ExampleSGHIAppointment.html\">Appointment: identifier = Accession ID: APT123456 (use: official, ); status = booked; specialty = General practice; appointmentType = Routine appointment; priority = Routine; start = 2023-11-25 09:00:00+0000; end = 2023-11-25 09:30:00+0000; created = 2023-11-20 10:00:00+0000; note = Patient requested morning appointment</a></p><p><b>status</b>: Current</p><p><b>docStatus</b>: Final</p><p><b>type</b>: <span title=\"Codes:{http://loinc.org/ 100018-1}\">Hospice care Note</span></p><p><b>subject</b>: <a href=\"Patient-ExampleSGHIPatient.html\">James Pond(official) Male, DoB: 1990-07-15 ( Medical Record Number: 12345)</a></p><p><b>context</b>: <a href=\"Encounter-ExampleSGHIEncounter.html\">Encounter: identifier = Visit Number: VN123456789 (use: official, ); status = in-progress; class = Ambulatory</a></p><p><b>date</b>: 2025-03-25 09:00:00+0000</p><p><b>author</b>: <a href=\"Organization-ExampleSGHIOrganization.html\">Organization SGHI Healthcare Organization</a></p><p><b>custodian</b>: <a href=\"Organization-ExampleSGHIOrganization.html\">Organization SGHI Healthcare Organization</a></p><blockquote><p><b>content</b></p><h3>Attachments</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Url</b></td><td><b>Title</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"https://example.com/sample-document.pdf\">https://example.com/sample-document.pdf</a></td><td>Example Document</td></tr></table></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:type [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v2-0203>
         ] ;
         fhir:code [ fhir:v "ACSN" ] ;
         fhir:display [ fhir:v "Accession ID" ]
       ] )
     ] ;
     fhir:system [
       fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ;
       fhir:l <http://terminology.hl7.org/CodeSystem/v2-0203>
     ] ;
     fhir:value [ fhir:v "Accession ID" ] ;
     fhir:assigner [
       fhir:l <https://fhir.slade360.co.ke/fhir/Organization/ExampleSGHIOrganization> ;
       fhir:reference [ fhir:v "Organization/ExampleSGHIOrganization" ]
     ]
  ] ) ; # 
  fhir:basedOn ( [
     fhir:l <https://fhir.slade360.co.ke/fhir/Appointment/ExampleSGHIAppointment> ;
     fhir:reference [ fhir:v "Appointment/ExampleSGHIAppointment" ]
  ] ) ; # 
  fhir:status [ fhir:v "current"] ; # 
  fhir:docStatus [ fhir:v "final"] ; # 
  fhir:type [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://loinc.org/"^^xsd:anyURI ;
         fhir:l <http://loinc.org/>
       ] ;
       fhir:code [ fhir:v "100018-1" ] ;
       fhir:display [ fhir:v "Hospice care Note" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <https://fhir.slade360.co.ke/fhir/Patient/ExampleSGHIPatient> ;
     fhir:reference [ fhir:v "Patient/ExampleSGHIPatient" ]
  ] ; # 
  fhir:context ( [
     fhir:l <https://fhir.slade360.co.ke/fhir/Encounter/ExampleSGHIEncounter> ;
     fhir:reference [ fhir:v "Encounter/ExampleSGHIEncounter" ]
  ] ) ; # 
  fhir:date [ fhir:v "2025-03-25T09:00:00Z"^^xsd:dateTime] ; # 
  fhir:author ( [
     fhir:l <https://fhir.slade360.co.ke/fhir/Organization/ExampleSGHIOrganization> ;
     fhir:reference [ fhir:v "Organization/ExampleSGHIOrganization" ]
  ] ) ; # 
  fhir:custodian [
     fhir:l <https://fhir.slade360.co.ke/fhir/Organization/ExampleSGHIOrganization> ;
     fhir:reference [ fhir:v "Organization/ExampleSGHIOrganization" ]
  ] ; # 
  fhir:content ( [
     fhir:attachment [
       fhir:url [
         fhir:v "https://example.com/sample-document.pdf"^^xsd:anyURI ;
         fhir:l <https://example.com/sample-document.pdf>
       ] ;
       fhir:title [ fhir:v "Example Document" ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

