Bug #817
openForm F Register shows "0 records" even though 12 real reports exist
0%
Description
Where: Diagnostics -> Radiology -> Form F Register (a legally required register for ultrasound/pregnancy-related scans)
How bad: Medium -- the list itself is broken, even though the actual documents behind it are fine.
Where tested: nssh.test.clinq.health, which has 12 real, finished ultrasound scan orders
What I did: Opened the Form F Register page and also directly called up the PDF for one of those 12 orders.
What should happen: The register's list should show all 12 orders (at the very least marked "Not Uploaded" if nothing's been attached yet, since that's one of the filter options the page itself offers).
What actually happens: The list shows 0 records -- totally empty -- even though there are 12 real orders that should appear. Meanwhile, I was able to directly generate the PDF for one of those same 12 orders and it worked perfectly, with all the right information on it.
In short: The actual report/PDF generation works fine. It's just the register's "show me all the records" list that's broken -- like it's searching in the wrong place or with the wrong filter.
What devs should check: Why the list query doesn't find the same orders that the PDF-download feature and the page's own status filter clearly expect to exist.
SV Updated by Sravan V S about 16 hours ago
- Status changed from New to Resolved
- Assignee changed from Sravan V S to Roshni Harish.
- Resolved By set to Sravan V S
Root cause (checked on nssh.test on 12 Nov, read only). Reproduced: the register's API answers with 0 records.
The Form F register is not broken. It only lists scans of tests that have "Requires Form F" ticked. That is an opt-in on each radiology test (Radiology > Tests > open the test > PCPNDT Compliance > "Requires Form F"), because an ultrasound test can also be used for non-pregnancy scans. On nssh.test none of the tests has it ticked:
- Obstetric Growth Scan (OGS), anomaly scan (AS), dating scan (DS) and nt/nb scan (NTB) are all Ultrasound tests, and "Requires Form F" is OFF on all four.
- The hospital has exactly 12 completed ultrasound orders, which matches your count, and all 12 are on those four tests. So none of them is listed.
The register lists a scan only when its test is an ultrasound test with this option ticked and the scan's acquisition is saved.
Why the PDF still works: the Form F PDF only needs the scan to be saved. It does not look at this option.
What to do: open each of the four tests, tick "Requires Form F" and save. Then open Diagnostics > Radiology > Form F Register again: the completed orders should be listed (as Not Uploaded until a scan is attached). I have not changed this on the test site and have not tried it, so please confirm that the 12 appear.
Good to know: a new ultrasound test starts with this option OFF, so each new obstetric test needs it ticked. If the team wants obstetric scan types ticked automatically, that would be a separate change.