Event Triggers
| Event Description | Event Name | Applicable Mode | Trigger | Sample Payload Snippet | Notes |
|---|---|---|---|---|---|
| In-Clinic Appointment Booking | appointment.created | In-clinic | When a patient books an appointment | | “Mode” can be checked by calling get_appointment_details API |
| Tele-Consultation Booking | appointment.created | Tele | When a patient books an appointment | | “Mode” can be checked by calling get_appointment_details API |
| Doctor Joined Video Consultation | appointment.tele.dr_joined | Tele | When the doctor enters the video consultation | Indicates patient that doctor has joined the video room | |
| Appointment Cancelled | appointment.updated | All | When the appointment status changes to CN/CND/CNS | Status values: CN (Cancelled by patient), CND (Cancelled by Doctor), CNS (Cancelled by Staff). | |
| Prescription Created | prescription.created | All | When the doctor clicks finish prescription | | Use “prescription_id” to fetch full clinical content by calling get_prescription_details API. |
| Prescription Updated | prescription.updated | All | When the doctor modifies a saved prescription | | Use “prescription_id” to call get_prescription_details API for updated info. |

