Bug #818
openAdmin's preview screen shows "print.invalid" as the file name instead of a real name
0%
Description
Where: Admin -> Documents -> open a document -> Preview tab
How bad: Low-medium -- this is cosmetic only. It does not affect anything patients or staff actually print and use; it only affects what an Admin person sees while checking a template.
Where tested: nssh.test.clinq.health, San Jose St. Bonaventure Hospital
What I did: Opened the Preview tab for 4 different billing document types: Consolidated payment receipt, Refund receipt, OPD bill/tax invoice, and Insurance claim form.
What should happen: The preview window's tab/title should show a proper file name, like it correctly does for the Payment Receipt (A5) document -- e.g., "Receipt - BL-LAB-2026-000321".
What actually happens: For all 4 of the above document types, the title just says the literal words "print.invalid" instead of a real file name.
How often it happens: Every time -- 4 out of 4 documents tested showed this.
Important note: I double-checked that this is ONLY a preview-screen cosmetic issue. When I looked at real bills being printed for actual patients, the file names were all correct (e.g., "Receipt - BILL-1-00246"). So this doesn't affect any real document -- just what the Admin sees while previewing a sample.
RH Updated by Roshni Harish. about 15 hours ago
- Priority changed from Low to High
Update: this is wider and more serious than first reported.
New finding: the same "print.invalid" title now shows on a completely different module's document -- OPD Prescription (encounter Print Rx), not just the 4 original Billing templates. Roshni ran into this directly in the Admin > Documents > Prescription-opd > Preview tab (screenshot attached to the original report thread).
More importantly, for this document it is NOT cosmetic-only like the original 4 were. I checked the REAL prescription PDF a doctor actually prints for a real patient (not the Admin Preview sample) by fetching it directly:
- Content-Disposition filename is correct: "prescription-201.pdf"
- But the PDF's own internal /Title metadata is literally "print.invalid"
So on this document, the broken title is baked into the actual file handed to doctors/patients, not just into what an Administrator sees while previewing a template. Any PDF viewer, save dialog, or tab title that reads the PDF's internal Title metadata (rather than the Content-Disposition filename) will show "print.invalid" on every real prescription printed from this system.
For comparison, I re-checked one of the original 4 billing templates' REAL print (Payment receipt / BILL-1-00247) just now -- that one is still correct ("Receipt - BILL-1-00247"), so this is not a blanket regression across every document. But it has clearly spread beyond the original 4 Billing templates, and for OPD Prescription specifically, it now affects real patient-facing output, not just the Admin preview.
Recommend raising this ticket's severity given the OPD Prescription case affects the real document, and widening the scope to check whether other non-Billing document types (Lab, Radiology, Pharmacy, etc.) have the same real-print-affecting version of this bug, not just the Billing ones originally checked.