@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.hl7.org.vn/core/Appointment/ExampleAppointmentCancelledByPatient> a fhir:Appointment ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ExampleAppointmentCancelledByPatient"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-appointment" ;
       fhir:index -1 ;
       fhir:link <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-appointment>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "vi"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Appointment ExampleAppointmentCancelledByPatient</b></p><a name=\"ExampleAppointmentCancelledByPatient\"> </a><a name=\"hcExampleAppointmentCancelledByPatient\"> </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-vn-core-appointment.html\">Cuộc hẹn khám bệnh VN Core — VN Core Appointment Profile</a></p></div><p><b>status</b>: Cancelled</p><p><b>cancelationReason</b>: <span title=\"Codes:\">Người bệnh xin huỷ, hẹn xếp lại sau chuyến công tác</span></p><p><b>specialty</b>: <span title=\"Codes:\">Nội tim mạch</span></p><p><b>appointmentType</b>: <span title=\"Codes:\">Tái khám nội tim mạch</span></p><p><b>reasonCode</b>: <span title=\"Codes:{http://fhir.hl7.org.vn/core/CodeSystem/vn-icd10-cs I10}\">Theo dõi tăng huyết áp</span></p><p><b>start</b>: 2026-04-27 09:00:00+0700</p><p><b>end</b>: 2026-04-27 09:30:00+0700</p><p><b>created</b>: 2026-04-20 08:15:00+0700</p><p><b>comment</b>: Người bệnh gọi huỷ chiều 26/04; đã hẹn liên hệ lại tuần sau để xếp lịch mới.</p><blockquote><p><b>participant</b></p><p><b>actor</b>: <a href=\"Patient-ExamplePatientNguyenVanAn.html\">Nguyễn Văn An</a></p><p><b>status</b>: Declined</p></blockquote><blockquote><p><b>participant</b></p><p><b>actor</b>: <a href=\"PractitionerRole-ExamplePractitionerRoleTramYTe.html\">Bác sĩ Trần Văn Minh — Trạm Y tế phường Ngọc Hà</a></p><p><b>status</b>: Accepted</p></blockquote></div>"
  ] ;
  fhir:Appointment.status [ fhir:value "cancelled"] ;
  fhir:Appointment.cancelationReason [
     fhir:CodeableConcept.text [ fhir:value "Người bệnh xin huỷ, hẹn xếp lại sau chuyến công tác" ]
  ] ;
  fhir:Appointment.specialty [
     fhir:index -1 ;
     fhir:CodeableConcept.text [ fhir:value "Nội tim mạch" ]
  ] ;
  fhir:Appointment.appointmentType [
     fhir:CodeableConcept.text [ fhir:value "Tái khám nội tim mạch" ]
  ] ;
  fhir:Appointment.reasonCode [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://fhir.hl7.org.vn/core/CodeSystem/vn-icd10-cs" ] ;
       fhir:Coding.code [ fhir:value "I10" ] ;
       fhir:Coding.display [ fhir:value "Essential (primary) hypertension" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Theo dõi tăng huyết áp" ]
  ] ;
  fhir:Appointment.start [ fhir:value "2026-04-27T09:00:00+07:00"^^xsd:dateTime] ;
  fhir:Appointment.end [ fhir:value "2026-04-27T09:30:00+07:00"^^xsd:dateTime] ;
  fhir:Appointment.created [ fhir:value "2026-04-20T08:15:00+07:00"^^xsd:dateTime] ;
  fhir:Appointment.comment [ fhir:value "Người bệnh gọi huỷ chiều 26/04; đã hẹn liên hệ lại tuần sau để xếp lịch mới."] ;
  fhir:Appointment.participant [
     fhir:index -1 ;
     fhir:Appointment.participant.actor [
       fhir:link <http://fhir.hl7.org.vn/core/Patient/ExamplePatientNguyenVanAn> ;
       fhir:Reference.reference [ fhir:value "Patient/ExamplePatientNguyenVanAn" ] ;
       fhir:Reference.display [ fhir:value "Nguyễn Văn An" ]
     ] ;
     fhir:Appointment.participant.status [ fhir:value "declined" ]
  ], [
     fhir:index -1 ;
     fhir:Appointment.participant.actor [
       fhir:link <http://fhir.hl7.org.vn/core/PractitionerRole/ExamplePractitionerRoleTramYTe> ;
       fhir:Reference.reference [ fhir:value "PractitionerRole/ExamplePractitionerRoleTramYTe" ] ;
       fhir:Reference.display [ fhir:value "Bác sĩ Trần Văn Minh — Trạm Y tế phường Ngọc Hà" ]
     ] ;
     fhir:Appointment.participant.status [ fhir:value "accepted" ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/Appointment/ExampleAppointmentCancelledByPatient.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

