Bug #738
closedPrescription Line: Duration (Days) Required but Not Marked, Only Surfaced on Add Line
0%
Description
Summary
On the Consultation > Prescription screen, adding a new prescription line and clicking “Add line” without entering a value in “Duration (days)” is blocked with an error toast — “Enter the number of days for this medicine” — which appeared stacked three times in the corner. The “Duration (days)” field itself has no asterisk or other required-field marker, unlike “Drug name *” and “Dosage *” on the same form, and its placeholder (“e.g. 7”) reads as an example rather than a requirement. The user only discovers it’s mandatory after the line fails to add.
Environment
Tenant: San Jose St. Bonaventure. Patient: Roshni, MRN SBH-000004 (pregnant, 9w0d, T1). OPD > Consultation > Details > Prescription tab. Drug entered: Dolo 123, Dosage 650, dosing 1-0-0-0 (morning only), Route Oral, Before/after food “Not stated”, Duration (days) left blank.
Steps to Reproduce
Open a patient’s Consultation screen and go to the Prescription tab.
In “New prescription line,” fill Drug name, Dosage, and the dosing pattern, but leave “Duration (days)” blank.
Click “Add line.”
The line is not added; the error toast “Enter the number of days for this medicine” appears — in this case stacked three times in the top-right corner.
Expected Result
“Duration (days)” should be marked as required (e.g. a red asterisk, consistent with “Drug name *” and “Dosage *” on the same form) so the user knows upfront it must be filled in, rather than discovering it only after a failed “Add line” attempt and a stack of repeated toasts.
Actual Result
“Duration (days)” carries no required-field marker and its placeholder (“e.g. 7”) reads as an example, not a requirement. Clicking “Add line” without it blocks the line from being added and throws “Enter the number of days for this medicine” — and here the same toast stacked three times in the corner, compounding the earlier-filed toast report: these also have no close button and can pile up.
RH Updated by Roshni Harish. 8 days ago
- Assignee set to Fiza M.
RH Updated by Roshni Harish. 7 days ago
- Status changed from Resolved to Closed