This document outlines how communication can be triggered for various use cases within the Eka platform. Each communication is driven by a system event (called a trigger) and follows a predefined logic using appointment, patient, clinic or doctor data. This version of the table shows high-level details for each use case in a simplified format.

Event Triggers

Event DescriptionEvent NameApplicable ModeTriggerSample Payload SnippetNotes
In-Clinic Appointment Bookingappointment.createdIn-clinicWhen a patient books an appointment

  “status”: “BK”,
  “mode”: “in-clinic”,
  “start_time”: 1730189586
“Mode” can be checked by calling get_appointment_details API
Tele-Consultation Bookingappointment.createdTeleWhen a patient books an appointment

  “status”: “BK”,
  “mode”: “in-clinic”,
  “start_time”: 1730189586
“Mode” can be checked by calling get_appointment_details API
Doctor Joined Video Consultationappointment.tele.dr_joinedTeleWhen the doctor enters the video consultationIndicates patient that doctor has joined the video room
Appointment Cancelledappointment.updatedAllWhen the appointment status changes to CN/CND/CNSStatus values: CN (Cancelled by patient), CND (Cancelled by Doctor), CNS (Cancelled by Staff)
Prescription Createdprescription.createdAllWhen the doctor clicks finish prescription

  “prescription_id”: “prescription_id”,
  “appointment_id”: “appointment_id1”,
  “prescription_url”: “prescription_url.pdf”
Use “prescription_id” to fetch full clinical content by calling get_prescription_details API.
Prescription Updatedprescription.updatedAllWhen the doctor modifies a saved prescription

  “prescription_id”: “prescription_id1”,
  “appointment_id”: “appointment_id1”,
  “prescription_url”: “prescription_url.pdf”
Use “prescription_id” to call get_prescription_details API for updated info.