Bug #483
closedFinalised Reports Filter Dropdown Broken: OPD/IPD Return Nothing, Critical Over-Includes
0%
Description
The filter dropdown on the Finalised Reports page (All reports / OPD / IPD / Critical) has two separate problems: selecting OPD or IPD returns zero results even though 5 finalised reports exist under "All reports", and selecting Critical returns a report that was never actually flagged as a critical finding.
Impact
High severity. OPD and IPD are two of the dropdown's four options and currently neither one works at all — they filter out every single report regardless of the report's actual encounter type, making the filter useless for that purpose. The Critical option is arguably worse: it's supposed to help staff quickly find reports tied to a genuine critical finding, but it currently also surfaces at least one report with no critical finding on record, which could mislead someone reviewing the critical-findings workflow into thinking a case was flagged when it wasn't.
Environment
Clinq HMS demo environment, NSS Hospital (nssh.demo.clinq.health), Finalised Reports page and Critical Findings page. Tested 20 October 2026, with 5 total finalised reports on record.
Steps to Reproduce
For OPD/IPD: 1. Go to Radiology > Finalised Reports (shows "5 of 5 reports" under All reports). 2. Select OPD from the filter dropdown and note the result count. 3. Select IPD instead and note the result count.
For Critical: 1. On the same page, select Critical from the filter dropdown and note which reports appear. 2. Separately go to Radiology > Critical Findings and note which report numbers actually appear in its "Critical findings log".
Expected vs Actual
Expected: OPD and IPD each show the subset of the 5 reports matching that encounter type (together covering some or all of the 5). Critical shows only reports that actually have an entry in the Critical Findings log.
Actual: OPD shows "0 of 5 reports" and IPD also shows "0 of 5 reports" — between them they account for none of the 5 existing reports. Critical shows "3 of 5 reports": RAD-9-5, RAD-12-6, and RAD-7-2. But the Critical Findings page's log only contains two entries, for RAD-9-5 and RAD-12-6 — RAD-7-2 (Anu, Screening Mammogram Bilateral) has no critical finding on record at all. RAD-7-2 does carry "Stat" priority, so the Critical filter appears to be matching on priority rather than on an actual flagged critical finding.
Files
AV Updated by Alminta V. 23 days ago
- Status changed from New to Resolved
- Assignee changed from Alminta V. to Roshni Harish.
- Resolved By set to Alminta V.
RH Updated by Roshni Harish. 22 days ago
- Status changed from Resolved to Feedback
RH Updated by Roshni Harish. 22 days ago
- Assignee changed from Roshni Harish. to Alminta V.
AV Updated by Alminta V. 20 days ago
- Status changed from Feedback to Resolved
- Assignee changed from Alminta V. to Roshni Harish.
RH Updated by Roshni Harish. 20 days ago
- Status changed from Resolved to Closed