
Leninton ERP
The system I built to run a medical centre in Sri Lanka, which its staff use every day.
Leninton ERP is the system I built for Leninton Health, a medical centre in Nittambuwa, Sri Lanka. Reception, the pharmacy, the doctors, the lab and the accountant all use the same app in the browser, with one patient record and one set of books. Before this, they used five separate tools: pharmacy software, a billing POS, a paper cash book, a payroll spreadsheet and lab reports in Excel. It’s a newer and much bigger version of Medway.
Leninton was a product problem more than a technical one. Most of the staff are not tech savvy, so the hard part was designing an ERP that felt simple to them. I also had to get past a common belief among doctors that computers are hard to use.
In its first 88 days it handled 4,859 OPD bills (about 55 a day), 3,007 pharmacy bills, 970 consultations and 820 lab reports. Before it went live, 11,755 products and 6,572 past bills came over from the old systems.
Front desk

Reception registers patients, bills them and takes payments, including for the pharmacy. The counter screens at Leninton are small, so most of billing is typing a few letters and pressing Enter. You can add a package of tests in one go. When a patient gets a discount, the bill records who pays for it: the doctor, the hospital or a write-off. Each shift has four cash boxes with a running total for each, so staff can check the count at the end of the day.
Pharmacy

The pharmacist manages the stock and never handles cash. The bill goes to reception, and the patient pays there. The system tracks stock by batch and expiry date, and every drug has one of 117 labelled shelf spots, so staff can find it. Reorder suggestions use real daily sales and supplier lead times, and one report lists stock that will expire before it sells.
Clinic and lab
The doctor’s screen is the one at the top of this page, with the room queue on the left, the note in the middle and the patient’s history on the right. Doctors code diagnoses with ICD-10.

The lab enters results into forms based on its own paper sheets, so the reference ranges match the ones they already used. The report then shows past results and a trend for each test. Patients download it on their phone with a code printed on their receipt.
Accounts
Every sale, payment, expense and purchase goes into a double-entry ledger as it happens. To fix a mistake you add a reversing entry, so nothing gets deleted. The accountant works from reports like profit and loss by department, the trial balance and the daily Z-report. An audit log keeps every change, and the database backs up every night.