Actions
Bug #850
open
AV
FM
Book Follow-up Appointment: Scheduled tab has no Book/save button for the doctor
Bug #850:
Book Follow-up Appointment: Scheduled tab has no Book/save button for the doctor
Start date:
11/12/2026
Due date:
% Done:
0%
Estimated time:
Resolved By:
Description
In the Book Follow-up Appointment dialog, the Scheduled tab ends at Chief Complaint. There is no Book Appointment button, so a doctor cannot book a follow-up.
Steps to Reproduce:
- Log in as Dr. Sravan VS (Vetri Vivega Medical Center).
- Open My Patients > amal prasad (MRN VVMC-000118), /doctor/record/118, and click Book next to the Next Follow-up.
- In the dialog stay on the Scheduled tab and fill Department, Doctor, Date and Chief Complaint.
Expected Result: A "Book Appointment" button is shown (disabled until a time slot is chosen) so the follow-up can be saved.
Actual Result: No button at all below Chief Complaint. Nothing can be saved. (The Time Slot area also shows "No schedule found for this doctor on the selected date.", but the missing button is independent of that.)
Cause (found in code, to be confirmed with the doctor's permissions):
- nuvita-opd AppointmentForm.tsx (synced to Doctor Desktop as src/opd/components/shared/AppointmentForm.tsx) wraps the submit button in . When the doctor role does not hold opd.appointments.create the button is not rendered, and the form gives no explanation.
- The Walk-In tab shows its Register Patient button, so the doctor holds the visit permission but apparently not the appointment one.
Suggested fix:
- Decide whether doctors may book follow-ups. If yes, grant opd.appointments.create to the doctor role (or map the equivalent doctor.* permission in the portal). If no, hide the Book control and say why.
- When the button is hidden by permission, show a message instead of an empty form.
- Regression test: a user with the permission sees the button; a user without it sees an explanation, not a silent dead end.
Related: #801 (Book Appointment shows no doctors for General Medicine), #849.
Files
AV Updated by Alminta V. about 13 hours ago
- File Screenshot 2026-11-12 at 4.09.45 PM.png Screenshot 2026-11-12 at 4.09.45 PM.png added
- Assignee set to Fiza M.
Actions