✦ Project Overview
Designed to help doctors and clinic managers streamline their daily operations. The system manages the entire patient journey from registration and appointment scheduling to diagnosis and billing.
Electronic Medical Records (EMR) store detailed patient history, prescriptions, and lab results, making them instantly accessible during consultations. The pharmacy module tracks inventory levels and integrates with the billing system.
Automated SMS/Email reminders for appointments help reduce no-shows, while detailed financial reports give clinic owners a clear view of their practice's performance.
✦ Key Features
✦ The Problem
A clinic that outgrows paper rarely replaces it all at once. What happens instead is a split system: patient files in a cabinet, appointments in a diary or a WhatsApp thread, billing in a standalone desktop program, and pharmacy stock in a register only the pharmacist fully understands. Each of those is individually workable. Together they guarantee that no one person can answer a basic question - what did this patient come in for last time, and what did they pay?
The cost lands on consultation time. A doctor working a full appointment list cannot spend the first minutes of each slot waiting for a physical file to be located, and often does not get one at all. History is reconstructed from the patient's memory, prescriptions are rewritten from scratch, and a repeat visit looks identical to a first visit. Meanwhile the front desk quotes fees from a printed list, the pharmacy counts stock by hand at month end, and the owner has no reliable view of what the practice actually earned.
The software that solves this properly at hospital scale is not a realistic option for a clinic. Hospital information systems are built around departments, admissions, wards and dedicated IT staff; they are priced accordingly and take months to implement. A four-room practice does not need a bed-management module. It needs the patient record, the appointment book, the prescription pad, the pharmacy shelf and the cash drawer to be one system - and it needs a receptionist able to operate that system on their first day.
✦ Design Constraints
Front-desk operable, not IT-operated
The primary daily operator is a receptionist, not a technician, and front-desk turnover in small practices is high. That ruled out any design needing configuration, training courses or a manual. Register a patient, book a slot, take payment - each had to be learnable in an afternoon and fast enough to run with someone waiting at the counter, which meant keyboard-first navigation and no chains of modal dialogs.
Full history in a single action
A consultation slot is short. Retrieving a patient's past visits, diagnoses, prescriptions, lab results and allergies had to be one action from the patient's name - not a hunt across tabs. This constraint shaped the data model more than any other requirement on the list.
Power and connectivity are not guaranteed
Load-shedding and unreliable links are ordinary operating conditions here, not edge cases. The system had to fail safely: a half-entered encounter or partially recorded payment must never leave the record ambiguous, and recovery must not depend on the person at the desk remembering what they had typed.
Clinical data needs real access boundaries
Reception books appointments and takes payments; it has no business reading clinical notes. Hiding fields in the interface is not access control, so role boundaries had to be enforced on the server for every request, with the interface merely reflecting a decision made elsewhere.
Pharmacy and billing cannot drift apart
The fastest way to lose a clinic's confidence is a stock count that disagrees with the day's sales. Dispensing a medicine and charging for it had to be one atomic operation, not two workflows a busy pharmacist might complete out of order or not at all.
✦ Architecture & Approach
The system is built around the patient record as the single central entity. Appointments, encounters, prescriptions, lab orders, invoices and payments all reference the same patient identifier, so a complete history assembles from one indexed lookup rather than by joining several loosely related modules. This is what makes the one-action history requirement achievable rather than aspirational.
Each visit is stored as an immutable encounter - presenting complaint, vitals, examination notes, diagnosis, prescribed items and lab orders, captured as a single record and never edited in place. Corrections are appended as entries that supersede rather than overwrite. Beyond producing a defensible clinical audit trail, this removes a whole class of bug: a note cannot be silently altered after the fact, and what appears at the next consultation is always what was actually written.
The pharmacy module writes through the same transactional boundary as billing. Dispensing an item records a stock movement and an invoice line inside one database transaction - either both commit or neither does. Batch and expiry are tracked at the movement level rather than on the product, so the system can dispense from the correct batch and report on expiring stock without a separate stocktake.
Access control is evaluated server-side on every request against the authenticated user's role - reception, doctor, pharmacist or owner - rather than applied at render time. A request for clinical notes from a reception session is refused by the API, not merely hidden by the interface.
Appointment reminders are queued as background work instead of being sent inline. A slow or failing SMS provider degrades the reminder, never the booking: the appointment commits first and the notification retries independently.
✦ Tech Stack
✦ Outcome
The system is in production use in live clinics. The operational difference is easy to state: a consultation begins with the patient's full history already on screen, prescriptions are printed rather than handwritten and are legible at the pharmacy counter, and dispensing updates stock without anyone counting anything.
For the owner, reporting stops being a separate exercise. Consultation revenue and pharmacy revenue land in the same ledger as they happen, so the day's position is available at the end of that day rather than reconstructed at the end of the month. Expiry and low-stock reporting come from the same movement data, which means reordering is driven by what was actually dispensed.
We deliberately do not publish per-clinic performance figures for this system. Practices differ enough in volume, pricing and staffing that a single headline number would mislead more than it informs. What is consistent across deployments is the structural change: one record per patient, one transaction per dispensed item, and one place to look for what the practice earned.
Interested in a similar solution?
Let's discuss how we can build the right system for your business.
