Portfolio
← Projects
pinatastore logo
Web · 2021

Medway Healthcare

A 2021 hospital system I built for outpatients, the lab and the pharmacy, before Leninton ERP.

Superseded by Leninton ERP →
Next.jsFirebaseTailwind
Screenshot of Medway Healthcare

Medway is an OPD (outpatient department) system I built in 2021 for a private hospital in Sri Lanka. With it, the hospital moved its outpatient, lab and pharmacy work off paper. Leninton ERP is the newer and much bigger version.

What it does

  • The OPD part covers registration, appointments, the queue and consultation notes. Staff can see who is waiting, who is with a doctor and who has gone home.
  • Doctors send test orders from the OPD to the lab, and the results link back to the patient.
  • The pharmacy part tracks stock and prescriptions from the consultation, and warns staff when stock runs low.

How it’s built

  • Next.js and Tailwind CSS, sized for the desktop workstations and the nurses’ tablets at the counter.
  • Firebase: Firestore for the live queue board, Firebase Auth for role-based logins (doctors, nurses, lab techs and pharmacists each get their own screens), and Storage for documents and reports.
  • One patient visit touches the OPD, lab and pharmacy records, so I denormalised the Firestore data to keep reads cheap. Security Rules let the pharmacy read prescriptions without editing them.