Skip to content

Feat/prescription overlay add medicine

Format: feat(scope): short description
Title: feat(prescription): show prescription management as modal and enable add medicine from verify medicines


Description

This merge request improves the prescription workflow by fixing UI flow breaks and enabling quicker medicine addition during verification.

Problem 1: Prescription Management opens as a full page

Currently, selecting a consultation from Update Prescription navigates to a new page, breaking UI consistency.

Solution:

  • Convert Manage Prescriptions screen into a modal popup.
  • Content, layout, and logic remain unchanged.
  • Modal opens on consultation click and keeps the background page intact.

Problem 2: No way to add medicines from Verify Medicines

Users verifying medicines cannot add a missing medicine without navigating back manually.

Solution:

  • Add an “Add Medicine” action in the Verify Medicines screen.
  • Clicking it opens the Prescription Management modal.
  • Book Number and Consultation ID are auto-filled.
  • User lands directly on Add New Prescription section.

Checklist

  • Manage Prescriptions opens as a modal instead of a full page
  • Modal follows existing UI modal patterns (close icon / cancel)
  • “Add Medicine” action added to Verify Medicines screen
  • Prescription modal auto-fills book number and consultation ID
  • User remains on Verify Medicines context after saving
  • No page reloads or duplicate navigation introduced
  • Existing prescription logic remains unchanged
  • Tests updated/added where applicable

Related Issue(s)

Closes #143 (closed)

Edited by Kushal Lagichetty

Merge request reports

Loading