Bug #681
closed“ANC follow-ups” filter shows for all hospitals and departments; it should show only where Gynecology / Obstetrics exists
0%
Description
Module: OPD → Patient → Follow-ups
Environment: Test, VVMC: https://vvmc.test.clinq.health/opd/follow-ups (v2026.10.38)
Type: Bug / configuration
Severity: Low (UI clutter and confusion, no data impact)
Priority: P3
Description
The Follow-ups page shows an “ANC follow-ups” filter button for every hospital and every user. ANC (antenatal care) follow-ups only matter in Gynecology & Obstetrics. VVMC doesn’t need ANC follow-ups at all, and doctors in other departments, such as General Medicine, don’t need the filter either.
Steps to reproduce
Log in to VVMC test.
Go to OPD → Follow-ups.
Look at the filter bar next to “All doctors.”
Expected result
The “ANC follow-ups” filter is shown only when:
the hospital has a Gynecology / Obstetrics department enabled (for example NSSH), and
the user is in that department, or is an admin or front-desk user who manages all follow-ups.
Hidden at VVMC, which doesn’t use ANC follow-ups.
Hidden for doctors in other departments, for example General Medicine, even at hospitals that have Gynecology.
Actual result
The “ANC follow-ups” filter is visible at VVMC and to all users, whatever the department.
Suggested fix
Show or hide the filter based on the hospital’s departments (whether Gynecology / Obstetrics exists), or on a hospital-level setting such as “Enable ANC follow-ups.”
Within such a hospital, show it only to Gynecology / Obstetrics users, plus admin and front desk.
Acceptance criteria
VVMC: the “ANC follow-ups” filter isn’t shown.
NSSH (has Gynecology & Obstetrics): the filter is shown to Gynec doctors, admin and front desk.
NSSH: the filter isn’t shown to doctors in other departments (General Medicine, Pediatrics, etc.).
The other follow-up filters and tabs (Pending, Overdue, Completed, No-show, All doctors) work as they do now.