@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/Appointment/ExampleSGHIAppointment> a fhir:Appointment ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ExampleSGHIAppointment"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://fhir.slade360.co.ke/fhir/StructureDefinition/appointment"^^xsd:anyURI ;
       fhir:l <https://fhir.slade360.co.ke/fhir/StructureDefinition/appointment>
     ] )
  ] ; # 
  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: Appointment ExampleSGHIAppointment</b></p><a name=\"ExampleSGHIAppointment\"> </a><a name=\"hcExampleSGHIAppointment\"> </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-appointment.html\">SGHI Appointment Profile</a></p></div><p><b>identifier</b>: Accession ID/APT123456 (use: official, )</p><p><b>status</b>: Booked</p><p><b>specialty</b>: <span title=\"Codes:{http://loinc.org/ 394814009}\">General practice</span></p><p><b>appointmentType</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v2-0276 ROUTINE}\">Routine appointment</span></p><h3>Reasons</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Reference</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Condition-ExampleSGHICondition.html\">Observation</a></td></tr></table><p><b>priority</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ActPriority R}\">Routine</span></p><p><b>start</b>: 2023-11-25 09:00:00+0000</p><p><b>end</b>: 2023-11-25 09:30:00+0000</p><p><b>created</b>: 2023-11-20 10:00:00+0000</p><p><b>note</b>: </p><blockquote><div><p>Patient requested morning appointment</p>\n</div></blockquote><p><b>subject</b>: <a href=\"Patient-ExampleSGHIPatient.html\">James Pond(official) Male, DoB: 1990-07-15 ( Medical Record Number: 12345)</a></p><h3>Participants</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Type</b></td><td><b>Actor</b></td><td><b>Status</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ParticipationType ATND}\">Attender</span></td><td><a href=\"Patient-ExampleSGHIPatient.html\">James Pond(official) Male, DoB: 1990-07-15 ( Medical Record Number: 12345)</a></td><td>Accepted</td></tr></table></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 "APT123456" ] ;
     fhir:assigner [
       fhir:l <https://fhir.slade360.co.ke/fhir/Organization/ExampleSGHIOrganization> ;
       fhir:reference [ fhir:v "Organization/ExampleSGHIOrganization" ]
     ]
  ] ) ; # 
  fhir:status [ fhir:v "booked"] ; # 
  fhir:specialty ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://loinc.org/"^^xsd:anyURI ;
         fhir:l <http://loinc.org/>
       ] ;
       fhir:code [ fhir:v "394814009" ] ;
       fhir:display [ fhir:v "General practice" ]
     ] )
  ] ) ; # 
  fhir:appointmentType [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v2-0276"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v2-0276>
       ] ;
       fhir:code [ fhir:v "ROUTINE" ] ;
       fhir:display [ fhir:v "Routine appointment" ]
     ] )
  ] ; # 
  fhir:reason ( [
     fhir:reference [
       fhir:l <https://fhir.slade360.co.ke/fhir/Condition/ExampleSGHICondition> ;
       fhir:reference [ fhir:v "Condition/ExampleSGHICondition" ] ;
       fhir:display [ fhir:v "Observation" ]
     ]
  ] ) ; # 
  fhir:priority [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActPriority"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-ActPriority>
       ] ;
       fhir:code [ fhir:v "R" ] ;
       fhir:display [ fhir:v "Routine" ]
     ] )
  ] ; # 
  fhir:start [ fhir:v "2023-11-25T09:00:00Z"^^xsd:dateTime] ; # 
  fhir:end [ fhir:v "2023-11-25T09:30:00Z"^^xsd:dateTime] ; # 
  fhir:created [ fhir:v "2023-11-20T10:00:00Z"^^xsd:dateTime] ; # 
  fhir:note ( [
     fhir:text [ fhir:v "Patient requested morning appointment" ]
  ] ) ; # 
  fhir:subject [
     fhir:l <https://fhir.slade360.co.ke/fhir/Patient/ExampleSGHIPatient> ;
     fhir:reference [ fhir:v "Patient/ExampleSGHIPatient" ]
  ] ; # 
  fhir:participant ( [
     fhir:type ( [
       fhir:coding ( [
         fhir:system [
           fhir:v "http://terminology.hl7.org/CodeSystem/v3-ParticipationType"^^xsd:anyURI ;
           fhir:l <http://terminology.hl7.org/CodeSystem/v3-ParticipationType>
         ] ;
         fhir:code [ fhir:v "ATND" ] ;
         fhir:display [ fhir:v "Attender" ]
       ] )
     ] ) ;
     fhir:actor [
       fhir:l <https://fhir.slade360.co.ke/fhir/Patient/ExampleSGHIPatient> ;
       fhir:reference [ fhir:v "Patient/ExampleSGHIPatient" ]
     ] ;
     fhir:status [ fhir:v "accepted" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

