Bug #634
openMedicine stock availability not shown in Prescription drug search on Doctor Desktop (shown in OPD)
0%
Description
Description: In OPD, when a doctor types a drug name in the prescription’s “Drug name” field, each matching result shows its current stock status (e.g. “Out of stock”, “20 left”) next to the drug name/strength. On Doctor Desktop, the same drug search dropdown lists the matching drugs but doesn’t show any stock information at all, so the doctor can’t tell whether a drug is in stock before prescribing it.
Steps:
Log in as a doctor and open a patient’s Consultation screen on Doctor Desktop.
Go to the “Prescription” tab.
In the “New prescription line” → “Drug name” field, type a drug name (e.g. “dolo”).
Compare the dropdown results with the same search in OPD for the same drug.
Expected Result: Each drug result in the dropdown should show its stock status (e.g. “Out of stock” or “X left”), matching OPD, so doctors can make an informed choice when prescribing.
Actual Result: The dropdown shows only drug name, strength, and form (e.g. “Dolo 650 Tab · 650mg · Tablet”) with no stock indicator at all — identical results to OPD’s list (Dolo 120mg 60ml Syp, Dolo 6000, Dolo 650 Tab, Dolo Infusion 100ml, Dolo 650) but missing the “Out of stock” / “20 left” labels OPD shows.
S- Updated by SK - 14 days ago
- Assignee changed from Fiza M. to Roshni Harish.
Already resolved as a side effect of #636 (see that ticket). The Prescription tab's drug search is now OPD's own _rx-tab component, which already shows stock status. Verified present in the synced copy on current dev. No separate fix needed - reassigning to Roshni to verify on the latest build and close.
RH Updated by Roshni Harish. 11 days ago
- Assignee changed from Roshni Harish. to Jessin J