Actions
Bug #835
open
AV
FM
Prescription: Duration (days) is required but not marked as mandatory
Bug #835:
Prescription: Duration (days) is required but not marked as mandatory
Start date:
11/12/2026
Due date:
% Done:
0%
Estimated time:
Resolved By:
Description
In the Prescription tab, the "Duration (days)" field has no required asterisk, but adding a line without it is rejected with "Enter the number of days for this medicine". Drug name and Dosage show a red asterisk; Duration does not.
Steps to Reproduce:
- Open a consultation (e.g. /doctor/consultation/399, patient amal prasad, MRN VVMC-000118) and go to the Prescription tab.
- Enter Drug name = Dolo 120mg 60ml Syp and a Dosage; leave Duration (days) empty.
- Click Add line.
Expected Result: Duration (days) is visibly marked as required (asterisk) like Drug name and Dosage, so the doctor knows before submitting.
Actual Result: Duration (days) shows no required marker (placeholder "e.g. 7" only). The line is rejected with the toast "Enter the number of days for this medicine".
Notes:
- Validation is in opd/app/(app)/consultation/[visitId]/page.tsx (duration must parse to > 0); the label is in _rx-tab.tsx ("Duration (days)", no asterisk). This is OPD's shared consultation code, so the fix likely belongs in nuvita-opd and reaches Doctor Desktop on the next sync.
- Same screen: the Drug name/Dosage toast says "Drug name and dosage are required", so Duration is the only required field without a marker.
Files
AV Updated by Alminta V. about 15 hours ago
- File Screenshot 2026-11-12 at 2.31.44 PM.png Screenshot 2026-11-12 at 2.31.44 PM.png added
- Assignee set to Fiza M.
Actions