@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.apps.health/Appointment/polaris-core-appointment-example-with-slot> a fhir:Appointment ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "polaris-core-appointment-example-with-slot"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://fhir.apps.health/StructureDefinition/polaris-core-appointment"^^xsd:anyURI ;
       fhir:link <https://fhir.apps.health/StructureDefinition/polaris-core-appointment>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Booked appointment for Avery Linwood with Dr. Navarro on June 1 2026 at 10:00 AM. Created from the booked Slot (polaris-core-slot-example-busy) via the FHIR booking flow.</div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:system [ fhir:v "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-appointment-identifier"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "APPT-AVERY-20260601" ]
  ] [
     fhir:use [ fhir:v "secondary" ] ;
     fhir:system [ fhir:v "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-appointment-raw-code"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "oscar-appt-99821" ]
  ] ) ; # 
  fhir:status [ fhir:v "booked"] ; # 
  fhir:serviceType ( [
     fhir:coding ( [
       fhir:system [ fhir:v "https://fhir.apps.health/NamingSystem/cedarbrook-clinic-appointment-servicetype-raw-code"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "A" ] ;
       fhir:display [ fhir:v "Standard appointment" ]
     ] )
  ] ) ; # 
  fhir:appointmentType [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v2-0276"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "ROUTINE" ] ;
       fhir:display [ fhir:v "Routine appointment" ]
     ] )
  ] ; # 
  fhir:start [ fhir:v "2026-06-01T10:00:00-04:00"^^xsd:dateTime] ; # 
  fhir:end [ fhir:v "2026-06-01T10:15:00-04:00"^^xsd:dateTime] ; # 
  fhir:slot ( [
     fhir:link <https://fhir.apps.health/Slot/polaris-core-slot-example-busy> ;
     fhir:reference [ fhir:v "Slot/polaris-core-slot-example-busy" ]
  ] ) ; # 
  fhir:participant ( [
     fhir:actor [
       fhir:link <https://fhir.apps.health/Location/cedarbrook-site-a> ;
       fhir:reference [ fhir:v "Location/cedarbrook-site-a" ] ;
       fhir:display [ fhir:v "Cedarbrook Family Health Site A" ]
     ] ;
     fhir:status [ fhir:v "accepted" ]
  ] [
     fhir:actor [
       fhir:link <https://fhir.apps.health/Patient/avery-linwood> ;
       fhir:reference [ fhir:v "Patient/avery-linwood" ] ;
       fhir:display [ fhir:v "Avery Linwood" ]
     ] ;
     fhir:status [ fhir:v "accepted" ]
  ] [
     fhir:actor [
       fhir:link <https://fhir.apps.health/PractitionerRole/dr-navarro-familymed-role> ;
       fhir:reference [ fhir:v "PractitionerRole/dr-navarro-familymed-role" ] ;
       fhir:display [ fhir:v "Dr. Emil Navarro — Family Medicine" ]
     ] ;
     fhir:status [ fhir:v "accepted" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

