feat(prescription-ui): open prescription management in overlay and enable add-medicine redirect

name: UI Enhancement
about: Improve prescription workflow using overlay-based UI and smart redirection.
title: "[Feature]: Overlay-based Prescription Management & Add Medicine Redirect"
labels: "feature, ui"
assignees: ''

🚀 Feature Request

Problem Statement

Currently, when a consultation is selected in Update Prescription, the Manage Prescriptions screen opens as a full page. This disrupts the workflow and breaks UI consistency, as similar interactions elsewhere use overlay-based patterns.

Additionally, in the Verify Medicines screen, there is no direct option to add a missing medicine for the same patient and consultation, forcing manual navigation.


Proposed Solution

  1. Overlay-based Prescription Management

    • Display the Manage Prescriptions content inside an overlay popup instead of full-page navigation.
    • Overlay behavior should match existing popup interactions (e.g., Add Doctor flow).
    • UI content and business logic remain unchanged.
  2. Add Medicine Action from Verify Medicines

    • Add an “Add Medicine” action in the Verify Medicines screen.
    • On click:
      • Open the Prescription Management overlay
      • Auto-fill:
        • Book Number
        • Consultation details
      • Navigate directly to the Add New Prescription section.

Alternatives Considered

  • Full-page navigation with breadcrumbs
  • Manual navigation without auto-filled data

Additional Notes

  • Overlay should be dismissible without losing page context.
  • After adding a medicine, users should seamlessly return to verification.
Edited by Kushal Lagichetty