Project

General

Profile

Actions

Bug #694

open
MN SV

Move all printed templates into Document Templates

Bug #694: Move all printed templates into Document Templates

Added by Medha N. 13 days ago. Updated 3 days ago.

Status:
In Progress
Priority:
High
Assignee:
Target version:
NSS - NSS Release 2026-11-12
Start date:
10/30/2026
Due date:
% Done:

50%

Estimated time:
Resolved By:

Description

Some prints are built in the code and cannot be changed in Admin > Document Templates (for example Counter Sale receipt, Cashier Desk receipt, lab and radiology reports). All printed documents should use a template so the hospital can edit them.

Several printed documents are built directly in code rather than driven by the Admin > Document Templates module, so hospitals can’t edit their layout or content. Confirmed examples: the Counter Sale receipt, the Cashier Desk receipt, and lab and radiology reports. Every printed document should instead be template-driven, so a hospital can customize them without needing a code change.

Impact
Hospitals can’t adjust the wording, branding, or layout of some of their patient-facing and internal printed documents (e.g. correcting something on a receipt, adding a hospital-specific disclaimer to a lab report) without engineering involvement, even though Document Templates exists specifically for this purpose. This creates an inconsistent editing experience — some documents are customizable, others aren’t — and pushes template-level tweaks onto the dev team that should otherwise be self-service for the hospital’s admin.

Environment
Module: Admin > Document Templates (where templates are normally managed). Prints affected: Pharmacy > Counter Sale receipt, Receivables > Cashier Desk receipt, and Lab and Radiology reports.

Steps to Reproduce

Go to Admin > Document Templates and review the templates available for editing.
Go to Pharmacy > Counter Sale, complete/view a sale, and print the receipt — this receipt’s layout/content isn’t listed as an editable template in Document Templates.
Go to Receivables > Cashier Desk and print a receipt from there — same result, not editable via templates.
Check Lab and Radiology report printouts — same result.

Expected vs Actual
Expected: all printed documents — receipts, lab reports, radiology reports, and any other patient-facing or internal print — should be driven by an editable template in Admin > Document Templates, so changes don’t require a code deployment.

Actual: at least the Counter Sale receipt, the Cashier Desk receipt, and lab/radiology reports are built in code and not exposed as editable templates.

Notes
Filed as an enhancement, not a bug — the application works correctly as built; the gap is that these documents aren’t exposed as editable templates. Written up from the reporter’s own direct, already-confirmed observation rather than a fresh live walkthrough this time, per the established pattern in this project.

Counter Sale receipt, Cashier Desk receipt, and lab/radiology reports are given as examples, not claimed to be an exhaustive list — recommend the dev team audit every printed document in the system against what currently exists in Document Templates, to find the complete set of hardcoded-vs-templated prints before scoping the fix.

RH Updated by Roshni Harish. 11 days ago Actions #1

  • Description updated (diff)
  • Assignee set to Dilbar S.

RH Updated by Roshni Harish. 11 days ago Actions #2

  • Priority changed from Normal to Low

AM Updated by Arya M. 11 days ago Actions #3

  • Priority changed from Low to High

SV Updated by Sravan V S 10 days ago Actions #4

  • Assignee changed from Dilbar S. to Sravan V S

Being delivered under Feature #706 (Admin > Document Templates platform), which ships as one release after test-site verification and QA sign-off. Nothing is on dev yet.

  • #706 covers the bills, receipts, clinical documents, letters and labels.
  • The radiology scan reports in the doctor's formats are tracked in #711.
    Sravan is taking this over as the owner. This ticket stays open for NSS and will be resolved when the release reaches NSS and QA confirms.

AM Updated by Arya M. 10 days ago Actions #5

  • Target version set to Sprint 1

SV Updated by Sravan V S 4 days ago Actions #6

Update from the work under #706:

  • The radiology scan reports from #711 (Dating, Growth, NT and Anomaly) now print as PDFs from Admin > Document Templates, with their existing template codes. Their key images print on a separate page after the form, as before.
  • The lab report, radiology report, PCPNDT Form F, referral letters, pharmacy goods receipt note, pharmacy bill, drug inspector summary, the H1 and NDPS registers, and the OPD encounter prescription now come from Admin templates too.
  • NSS's own formats are kept. When the templates are synced, a format that was edited by hand is copied to each hospital as its own and is not overwritten.
  • All of this is still on local branches. Nothing is on dev. It ships as one release after the test site and QA sign-off.
  • Before that, we need a real print from NSS on the paper in use, for each document, to compare against the new one.

This ticket stays open until the release reaches NSS and QA confirms.

SV Updated by Sravan V S 4 days ago Actions #7

  • Status changed from New to In Progress
  • % Done changed from 0 to 50

Moved to In Progress: the delivery is under way under #706. Progress is 50%: the printed templates are built and tested on local branches (plans 1 to 4 of 5), and plan 5, the test site, QA and the release to NSS are still to do. This ticket stays open until the release reaches NSS and QA confirms.

AL Updated by Annet L. 3 days ago Actions #8

  • Target version changed from Sprint 1 to NSS Release 2026-11-12

Moved from Sprint 1 to the NSS production release on Thu 12 Nov 2026. Prints converted by the Wed 11 Nov 2 PM code freeze ship on Thursday; list them here. The rest go in the 19 Nov release. Related: #706 (same scope in Admin).

Actions

Also available in: PDF Atom