BioEcko Docs
Dashboards

Pharmacist Hub

The Pharmacist Hub is the default landing page for users with the pharmacist role. It focuses on the dispensing queue, inventory health, and quick access to...

February 2026 · 4 min

Manual area

Dashboards

Coverage

6 sections, 1 workflow diagram

Operator notes

2 implementation notes

Overview

The Pharmacist Hub is the default landing page for users with the pharmacist role. It focuses on the dispensing queue, inventory health, and quick access to the formulary and point-of-sale workflows.

Route: /dashboard/pharmacist-hub Component: components/dashboard/role-dashboards/pharmacist-hub.tsx

KPI Cards

Four metric cards appear at the top:

  • Pending Rx -- Count of prescriptions where is_dispensed is false. Shows the current dispensing backlog.
  • Dispensed Today -- Prescriptions dispensed today (where dispensed_at is on or after today's date).
  • Low Stock -- Count of inventory_items in the pharmacy category with quantity_in_stock at or below 10 units.
  • Expiring Soon -- Pharmacy items with expiry_date within the next 30 days that still have stock remaining.

Quick Actions

Shortcut buttons for common pharmacy workflows:

  • Dispense Rx -> /dashboard/pharmacy/dispensing
  • Inventory -> /dashboard/pharmacy (main pharmacy module)
  • Formulary -> /dashboard/pharmacy/formulary (drug search and formulary management)
  • POS -> /dashboard/pharmacy/pos (over-the-counter point-of-sale)

Pending Prescriptions Panel

Lists up to 8 prescriptions awaiting dispensing, ordered by creation date (newest first). Each row shows:

  • Medication name
  • Patient name and prescribing doctor
  • "Pending" badge

The "View All" link opens the full dispensing queue.

Pharmacy dispensing workflow

Prescription review, stock control, and patient counselling are handled together.

Pharmacy dispensing flow: from receiving the prescription to patient counselling and final dispensing.
1Prescription

Medication order reaches pharmacy from OPD, IPD, or POS.

2Review

Pharmacist checks drug, dose, allergies, substitutions, and stock.

3Pick stock

Batch, expiry, MRP, and quantity are selected.

4Dispense

Medicine is issued and inventory is reduced.

5Bill

POS or patient account receives the pharmacy charge.

6Counsel

Instructions and warnings are shared with the patient.

Control paths
Partial dispenseReturnOut-of-stock substitution

Low Stock Alerts Panel

Shows up to 8 pharmacy items below the reorder threshold, sorted by quantity ascending (most critical first). Each row shows:

  • Item name
  • Current quantity and unit (e.g., "3 tablets remaining")
  • Out badge (destructive) if quantity is zero, or Low badge otherwise

The "Inventory" link opens the full pharmacy inventory page.

Data Sources

The hub queries two Supabase tables on mount:

TablePurpose
prescriptionsPending Rx count, dispensed-today count, pending Rx list
inventory_itemsLow-stock count, expiring-soon count, low-stock alert list

Notes

Tip

The low-stock threshold is currently hard-coded to 10 units. Future updates will allow per-item reorder-level configuration from the Inventory settings.

Warning

Expiring-soon alerts use a 30-day lookahead window. Ensure expiry_date is correctly recorded during GRN (Goods Received Note) entry to avoid missed alerts.

On this page