Full Summary: Prescription Page Mobile Update
1. Mobile-Responsive Prescriptions Page
/prescriptions in bista_menmd_website
- Made the page mobile-responsive: card layout on mobile, table layout on desktop
- Fields displayed: Product & Dosage Unit, Quantity Remaining, Next Eligible Fill, Expiration Date, Status, Autofill Status
/my/prescription in bista_menmd_portal/data/my_page.xml
- Applied the same card layout pattern here for consistency across the two prescription views
2. Patient Dashboard Updates
- Updated the prescription card component with context-aware CTAs, showing "CHOOSE A PLAN" or "REQUEST NEW RX" depending on state
- Added two-tier filtering logic in login_redirect.py
3. Broader Context
- This work ties back to the Evitalin portal Phase 1 spec review (portal.evitalin.com)
- Spec was broken into P0/P1/P2 issues
- Goal: cut the mobile refill flow from 13 steps down to 6
08/18/2026 - Bug Brief: Missing Prescriptions on Patient Portal
Reported issue: A patient logged into the portal (/prescriptions) and saw no prescriptions at all, not even ones that should have legitimately displayed.
Investigation: ruled out:
- Filter logic: the controller correctly excludes "Not Active" Rxs with specific exclusion reasons (Rx Replaced, Rx Not Replaced, Cancelled, etc.). This patient's two "Not Active" Rxs both had valid exclusion reasons, so hiding them was correct behavior.
- Account mismatch: the patient's third Rx ("Shipped," expired 11/11/2025) was correctly linked to their account.
- Expiration logic: that same Rx had passed its expiration date, so it was correctly routed into the expired_prescriptions list rather than the active one. Also working as intended.
Root cause: A template bug, not a data or query bug. The expired-prescriptions section was nested inside a container that only renders when the patient has at least one active prescription. Since this patient had zero active Rxs, the whole container, expired section included, never rendered, producing a blank page even though the expired Rx data was correct and present.
Fix: Moved the expired-prescriptions section out of that conditional container so it renders independently of whether any active Rxs exist. No changes to underlying data, queries, or Python logic, template structure only.
Result: Patients with only expired/inactive Rx history now see that history instead of a blank page.