Bug #815
openSchedule H1 Register loses the patient's name, even when the sale was linked to a real patient
0%
Description
Where: Pharmacy -> Compliance -> Schedule H1 Register
How bad: High -- this register is legally required for drug inspectors to check controlled-medicine sales. Missing patient names here is a real compliance problem, not just a display glitch.
Where tested: nssh.test.clinq.health, San Jose St. Bonaventure Hospital
What I did:
- Started a new Counter Sale and typed in a phone number that matched an existing patient. The system correctly recognized her -- it showed "Existing patient - MRN SBH-000181" for a patient named Kavitha Nair.
- Added a Schedule H1 medicine (a controlled drug that needs extra tracking) to the sale, generated the bill, took payment, and completed the sale.
- Opened the Schedule H1 Register for that day to check the entry.
What should happen: Since the system clearly recognized and linked the real patient during the sale, her name and age/gender should show up in the register for that entry.
What actually happens: The register -- both on screen and in the printed PDF -- shows a dash ("-") instead of the patient's name and age/gender. On top of that, the bill for this same sale printed a completely different name ("Vikram Nathan", whatever was typed into a text box) instead of the matched patient's real name. So the system matches the patient correctly at the start, but somewhere along the way to the bill and the register, that link gets dropped.
Makes it worse: The register has its own built-in check that's supposed to count "Patient details missing" entries and warn about them. For this exact entry -- which is clearly missing the patient's details -- that counter showed 0. So the one safeguard meant to catch this problem isn't catching it either.
How often it happens: Every time, tried once and it failed.
Real example: Bill BILL-1-00252, Sale CS-20261111-44308C, Counter Sale #67.
What devs should check: Whether the patient's ID actually gets carried through the whole chain (counter sale -> bill -> H1 register), and whether the "missing details" warning is even looking at the right field.