Case study · Healthcare

Navy Care: a hospital system built solo in a lockdown

How I designed and built, as the only developer, a telemedicine and outpatient system that has run in three Bangladesh Navy hospitals since 2020: self-service check-in, daily queues, remote consultations, and prescriptions that follow the patient to the pharmacy and the lab.

Role
Sole developer (SoftSource)
Period
Feb – Aug 2020, maintained since
Scale
3 Navy hospitals · one installation · open to all Navy personnel and families
Stack
PHP · CodeIgniter 3 · MySQL · Bootstrap · jQuery · Android WebView

The system runs on the hospitals' internal network, so there's no public demo. This page describes the design, not patient data or internal details.

The problem

In early 2020, the COVID lockdown made it hard for Navy personnel and their families to see a doctor. The Navy's hospitals needed a way to consult patients remotely, and at the same time keep the in-person outpatient flow moving without crowded waiting rooms.

The ask was a full system: registration, appointments, consultations, prescriptions, pharmacy and lab. It had to be ready within months, built by one person.

Constraints

Patient journey: check-in at a kiosk or phone, a daily department queue, consultation by chat or phone, a prescription PDF, then pharmacy and lab. Check-inkiosk · phone Queuedaily token Consultationchat · phone PrescriptionPDF · barcode Pharmacy Lab
One prescription record follows the patient from the doctor to the pharmacy and the lab.

Five design decisions

1 One installation for three hospitals

Problem. Three hospitals, each with its own departments and letterhead, and one developer to keep them all up to date.

Choice. A single installation and database. Each hospital is a record, departments belong to a hospital, and staff accounts are tied to their hospital. Printed documents use the right hospital's details automatically.

Trade-off. One central server to look after, in exchange for every update reaching all three hospitals at once.

2 Self-service check-in and a daily queue

Problem. Crowded front desks were exactly what the lockdown was trying to avoid.

Choice. A self-service kiosk where patients find their record, pick a department and get a printed slip with a token number and a barcode. Tokens restart every day for each department, and a patient can hold only one pending appointment per department per day. A display screen in the waiting area cycles through the queue with a sound alert, and doctors see their queue refresh every few seconds.

Trade-off. The screens poll the server instead of using a live connection: simpler to build and run on an internal network, at the cost of a few seconds' delay.

3 Consultations by chat and phone, not video

Problem. Remote consultations had to work for every patient, on any phone, over whatever connection they had.

Choice. Each appointment has its own chat thread, where patients and doctors can share photos and documents, plus a one-tap phone call. Doctors mark themselves available, and patients see who is online in each department.

Trade-off. No video, in exchange for something that works reliably for everyone on low bandwidth.

4 A prescription that travels with the patient

Problem. Paper prescriptions get lost, are hard to read, and leave the pharmacy and lab with no record.

Choice. Doctors write structured prescriptions with autocomplete for complaints, diagnoses, tests and medicines, and can add new terms as they go. The system produces a PDF with the doctor's signature and a barcode and posts it into the chat. The pharmacy looks up the prescription and marks each medicine as dispensed; the lab looks it up and uploads results against each test.

Trade-off. Structured entry takes doctors a little longer to learn than free text, but it gives the pharmacy and lab a record they can act on.

5 An Android app as a WebView wrapper

Problem. Patients wanted an app, and one developer can't maintain a web system and a separate native app at the same time.

Choice. The Android app wraps the mobile-friendly website in a WebView, so every feature ships to web and Android at once.

Trade-off. No offline mode or push notifications, in exchange for shipping on time and keeping one codebase.

Results

Navy Care went live in 2020 and still runs in three Bangladesh Navy hospitals, open to all Navy personnel and their families. It covers the whole outpatient journey: registration, appointments, consultations, prescriptions, pharmacy, lab and admission records, with printable reports for each department. I've maintained it since launch, with updates such as one-time-password login for doctors, and the hospitals renew it every year.

What I'd do next

Want to talk about systems like this?

Email me Back to projects