Bug #851
openBook Follow-up Appointment shows a Walk-In tab to the doctor; walk-in registration is a reception task
0%
Description
The Book Follow-up Appointment dialog on the patient record has two tabs, Scheduled and Walk-In. The Walk-In tab (Registration Type, Department, Doctor, Chief Complaint, Register Patient) lets a doctor register the patient into a queue. Walk-in registration is done by the receptionist, not the doctor, so it does not belong in this dialog.
Steps to Reproduce:
- Log in as Dr. Sravan VS.
- Open My Patients > amal prasad, /doctor/record/118, and click Book next to the Next Follow-up.
- Click the Walk-In tab.
Expected Result: The dialog for a doctor offers only the scheduled follow-up booking, with no Walk-In tab.
Actual Result: A Walk-In tab with a Register Patient button is available. Combined with the missing Book button on the Scheduled tab, the only action a doctor can take in this dialog is to register a walk-in. It also lets a doctor register a patient to any department/doctor regardless of schedule (see #849).
Cause: AppointmentForm.tsx (nuvita-opd, synced to Doctor Desktop) always renders both tabs; it is shared with the reception screens and has no role/mode switch for the doctor's context.
Suggested fix:
- Add a prop (e.g. hideWalkIn / mode="followUp") and pass it from the Doctor Desktop patient record so only the Scheduled form shows; rename the dialog action to match.
- Keep Walk-In in the reception/OPD apps.
- Regression test: the doctor dialog renders no Walk-In tab; the OPD reception form still does.
Related: first ticket for the same dialog (missing Book button), #849.
Files
AV Updated by Alminta V. about 13 hours ago
- File Screenshot 2026-11-12 at 4.10.25 PM.png Screenshot 2026-11-12 at 4.10.25 PM.png added
- Assignee set to Fiza M.