@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 -------------------------------------------------------------------

<http://example.org/Appointment/appt-2026-01-12-0900-jdoe> a fhir:Appointment ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "appt-2026-01-12-0900-jdoe"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://example.org/StructureDefinition/appointment-coordination-appointment"^^xsd:anyURI ;
       fhir:l <http://example.org/StructureDefinition/appointment-coordination-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 appt-2026-01-12-0900-jdoe</b></p><a name=\"appt-2026-01-12-0900-jdoe\"> </a><a name=\"hcappt-2026-01-12-0900-jdoe\"> </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-coordination-appointment.html\">Appointment Coordination Appointment</a></p></div><p><b>identifier</b>: <code>https://haau3.com/identifiers/booking-attempt</code>/ba_01JZ5Y7Y9VQ2K3M4N5P6Q7R8S9</p><p><b>status</b>: Booked</p><p><b>description</b>: Primary care visit</p><p><b>start</b>: 2026-01-12 09:00:00-0500</p><p><b>end</b>: 2026-01-12 09:30:00-0500</p><p><b>slot</b>: <a href=\"Slot-slot-2026-01-12-0900.html\">Slot: status = free; start = 2026-01-12 09:00:00-0500; end = 2026-01-12 09:30:00-0500; comment = 30-minute new patient slot</a></p><blockquote><p><b>participant</b></p><p><b>actor</b>: <a href=\"Patient-patient-jane-doe.html\">Jane Doe  Female, DoB: 1990-01-01</a></p><p><b>status</b>: Accepted</p></blockquote><blockquote><p><b>participant</b></p><p><b>actor</b>: <a href=\"Location-loc-example-clinic.html\">Location Example Family Medicine Clinic</a></p><p><b>status</b>: Accepted</p></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "https://haau3.com/identifiers/booking-attempt"^^xsd:anyURI ;
       fhir:l <https://haau3.com/identifiers/booking-attempt>
     ] ;
     fhir:value [ fhir:v "ba_01JZ5Y7Y9VQ2K3M4N5P6Q7R8S9" ]
  ] ) ; # 
  fhir:status [ fhir:v "booked"] ; # 
  fhir:description [ fhir:v "Primary care visit"] ; # 
  fhir:start [ fhir:v "2026-01-12T09:00:00-05:00"^^xsd:dateTime] ; # 
  fhir:end [ fhir:v "2026-01-12T09:30:00-05:00"^^xsd:dateTime] ; # 
  fhir:slot ( [
     fhir:l <http://example.org/Slot/slot-2026-01-12-0900> ;
     fhir:reference [ fhir:v "Slot/slot-2026-01-12-0900" ]
  ] ) ; # 
  fhir:participant ( [
     fhir:actor [
       fhir:l <http://example.org/Patient/patient-jane-doe> ;
       fhir:reference [ fhir:v "Patient/patient-jane-doe" ]
     ] ;
     fhir:status [ fhir:v "accepted" ]
  ] [
     fhir:actor [
       fhir:l <http://example.org/Location/loc-example-clinic> ;
       fhir:reference [ fhir:v "Location/loc-example-clinic" ]
     ] ;
     fhir:status [ fhir:v "accepted" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

