@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://fhir.kisimdocs.ch/ig/KisimScheduling/Appointment/BookAppointmentWithPatient> a fhir:Appointment ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "BookAppointmentWithPatient"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Appointment BookAppointmentWithPatient</b></p><a name=\"BookAppointmentWithPatient\"> </a><a name=\"hcBookAppointmentWithPatient\"> </a><a name=\"BookAppointmentWithPatient-en-US\"> </a><p><b>identifier</b>: <code>http://yourproduct-example.com/fhir/apps/referralids</code>/yourproduct_id</p><p><b>status</b>: Proposed</p><p><b>serviceType</b>: <span title=\"Codes:{http://fhir.cistec.com/CistecScheduling/ValueSet/com ONKO}\">Onkologie</span></p><p><b>slot</b>: <a href=\"Slot-FreeSlot.html\">Slot: appointmentType = Routine appointment - default if not valued; status = free; start = 2022-05-27 16:00:00+0200; end = 2022-05-27 16:20:00+0200; overbooked = false; comment = Slot resource</a></p><h3>Participants</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Actor</b></td><td><b>Status</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"#hcBookAppointmentWithPatient/JamesBondInline\">James Bond  Male, DoB: 1950-01-01</a></td><td>Tentative</td></tr></table><hr/><blockquote><p class=\"res-header-id\"><b>Generated Narrative: Patient #JamesBondInline</b></p><a name=\"BookAppointmentWithPatient/JamesBondInline\"> </a><a name=\"hcBookAppointmentWithPatient/JamesBondInline\"> </a><a name=\"BookAppointmentWithPatient/JamesBondInline-en-US\"> </a><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">James Bond  Male, DoB: 1950-01-01</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Detail</td><td colspan=\"3\"><ul><li>ph: 0792387805(Mobile)</li><li>ph: 0441234567(Home)</li><li>ph: 0441234567(Work)</li><li><a href=\"mailto:test@test.com\">test@test.com</a></li><li>TestStrasse 12 Baden 5400 (home)</li></ul></td></tr></table></blockquote></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:contained ( [
     a fhir:Patient ;
     fhir:id [ fhir:v "JamesBondInline" ] ;
     fhir:name ( [
       fhir:family [ fhir:v "Bond" ] ;
       fhir:given ( [ fhir:v "James" ] )
     ] ) ;
     fhir:telecom ( [
       fhir:system [ fhir:v "phone" ] ;
       fhir:value [ fhir:v "0792387805" ] ;
       fhir:use [ fhir:v "mobile" ]
     ] [
       fhir:system [ fhir:v "phone" ] ;
       fhir:value [ fhir:v "0441234567" ] ;
       fhir:use [ fhir:v "home" ]
     ] [
       fhir:system [ fhir:v "phone" ] ;
       fhir:value [ fhir:v "0441234567" ] ;
       fhir:use [ fhir:v "work" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "test@test.com" ]
     ] ) ;
     fhir:gender [ fhir:v "male" ] ;
     fhir:birthDate [ fhir:v "1950-01-01"^^xsd:date ] ;
     fhir:address ( [
       fhir:use [ fhir:v "home" ] ;
       fhir:line ( [ fhir:v "TestStrasse 12" ] ) ;
       fhir:city [ fhir:v "Baden" ] ;
       fhir:postalCode [ fhir:v "5400" ]
     ] )
  ] ) ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "http://yourproduct-example.com/fhir/apps/referralids"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "yourproduct_id" ]
  ] ) ; # 
  fhir:status [ fhir:v "proposed"] ; # 
  fhir:serviceType ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://fhir.cistec.com/CistecScheduling/ValueSet/com"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "ONKO" ] ;
       fhir:display [ fhir:v "Onkologie" ]
     ] )
  ] ) ; # 
  fhir:slot ( [
     fhir:link <http://fhir.kisimdocs.ch/ig/KisimScheduling/Slot/FreeSlot> ;
     fhir:reference [ fhir:v "Slot/FreeSlot" ]
  ] ) ; # 
  fhir:participant ( [
     fhir:actor [
       fhir:reference [ fhir:v "#JamesBondInline" ]
     ] ;
     fhir:status [ fhir:v "tentative" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

