Schedule Appointment Flow
End-to-end appointment flow from patient service selection through nurse assignment and doctor consultation.



End-to-End Steps
- Patient opens /patient/book and chooses a medical service.
- Patient selects a doctor, appointment date, appointment time, consultation type, and hospital for in-person visits.
- System creates appointment with scheduled status and appointment number.
- Nurse sees unassigned appointment, assigns it to self, and starts or prepares the video call.
- Doctor joins from the appointment screen when invited or when the consultation is ready.
- Doctor completes notes, prescriptions, and final appointment status.
Testing Checks
- Appointment cannot be created without doctor_id, date, time, and hospital_id for in-person visits.
- Nurse assignment sets assigned_nurse_id and updates status correctly.
- Meeting ID and participant tokens exist before patient, nurse, or doctor joins.
- Patient receives appointment and call-start notifications.











