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
- One developer. Every part, from the database to the printed slips, was mine to design, build and deploy.
- Internal network. The system runs inside the hospitals' network, not on the public internet.
- Every kind of user. Doctors, pharmacists, lab staff and patients of all ages, many on low-cost Android phones.
- Three hospitals, one developer. Updates had to reach every site without a separate install for each.
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
- Replace polling with live updates (WebSockets) for queues and chat.
- Add a proper API and a native app with push notifications and offline support.
- Add video consultations where the connection allows.
- Move to Laravel with automated tests, and run a full security hardening pass.