@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@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><b>Generated Narrative: Appointment</b><a name=\"BookAppointmentWithPatient\"> </a></p><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\">Resource Appointment &quot;BookAppointmentWithPatient&quot; </p></div><p><b>identifier</b>: id: yourproduct_id</p><p><b>status</b>: proposed</p><p><b>serviceType</b>: Onkologie <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (com#ONKO)</span></p><p><b>slot</b>: <a href=\"Slot-FreeSlot.html\">Slot/FreeSlot</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 name=\"JamesBondInline\"> </a><blockquote><p/><p><a name=\"JamesBondInline\"> </a></p><p><b>name</b>: James Bond </p><p><b>telecom</b>: ph: 0792387805(MOBILE), ph: 0441234567(HOME), ph: 0441234567(WORK), <a href=\"mailto:test@test.com\">test@test.com</a></p><p><b>gender</b>: male</p><p><b>birthDate</b>: 1950-01-01</p><p><b>address</b>: TestStrasse 12 Baden 5400 (HOME)</p></blockquote></td><td>tentative</td></tr></table><hr/><blockquote><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\"><b>James Bond </b> male, DoB: 1950-01-01</p><hr/><table class=\"grid\"><tr><td style=\"background-color: #f3f5da\" title=\"Ways to contact the Patient\">Contact Details:</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>"
  ] ; # 
  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" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

