PharmaCore — a unified pharmaceutical ERP for Rwanda by Medlink: wholesale depot→retail distribution, retail POS, RRA EBM & multi-insurer compliance, HR & finance. Offline-capable. FastAPI · React · Tauri · PostgreSQL.
# PharmaCore by Medlink
**PharmaCore** is a unified **Pharmaceutical ERP** for Rwanda, built by **Medlink**:
wholesale depot → retail pharmacy distribution, retail dispensing/POS, transport &
reception documents, insurance & RRA EBM tax compliance, and internal HR/payroll —
one database, one system.
> **Naming:** *Medlink* is the company; *PharmaCore* is the platform; the sub-systems
> are *PharmaCore Distribution / Retail / Insurance / Finance / People / Insights /
> Admin*. See ADR-005 and the
> brand system. (The repository folder is
> still named `Medlink`; that's just the directory, not the product.)
> Status: **early foundation**. The core domain (organizations, users/roles,
> products, batch inventory) is being built first because every other module
> reads from it. See the roadmap below for how the rest is sequenced.
---
## Modules (planned scope)
| # | Module | Slug | Depends on | Status |
|---|--------|------|-----------|--------|
| 1 | Identity & Access (orgs, departments, users, roles, JWT) | `iam` | — | 🚧 in progress |
| 2 | Catalog (medicine master data) | `catalog` | iam | 🚧 in progress |
| 3 | Inventory (batches, expiry, FEFO, per-department stock) | `inventory` | catalog | 🚧 in progress |
| 4 | Wholesale / B2B distribution (PO → approval → transfer → GRN) | `distribution` | inventory | ⬜ planned |
| 5 | Documents engine (PO, packing slip, delivery note, GRN, invoices) | `documents` | distribution | ⬜ planned |
| 6 | Retail POS & dispensing (manual entry, batch pick, sale states) | `retail` | inventory | ⬜ planned |
| 7 | Insurance claims (post-sale, co-pay, adjudication) | `insurance` | retail | ⬜ planned |
| 8 | RRA EBM fiscal receipts (async queue) | `ebm` | retail | ⬜ planned |
| 9 | HR / payroll (employees, attendance, salary, licenses) | `hr` | iam | ⬜ planned |
| 10 | Reporting & dashboards (EOD closeout, snapshots) | `reporting` | all | ⬜ planned |
Architecture note: modules are **vertical slices** inside one FastAPI app and one
Postg …