Project

General

Profile

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

Added by Alminta V. about 17 hours ago. Updated about 15 hours ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
-
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:

  1. Open a consultation (e.g. /doctor/consultation/399, patient amal prasad, MRN VVMC-000118) and go to the Prescription tab.
  2. Enter Drug name = Dolo 120mg 60ml Syp and a Dosage; leave Duration (days) empty.
  3. 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

Actions

Also available in: PDF Atom