2023 · Personal

Metro HMS

A desktop hospital and diagnostic-centre management system: patient registration across lab, indoor, and hospital care, lab test billing with discounts and dues, per-test report templates rendered to PDF, admissions, daily transactions, and test statistics.

  • Flutter
  • Dart
  • FastAPI
  • SQLAlchemy
  • PostgreSQL
  • FPDF

About this project

Metro HMS runs the front desk and the lab of a hospital and diagnostic centre: registering patients, billing their tests, writing up results, and printing the reports they take home.

It's a Windows desktop app written in Flutter, talking to a FastAPI service on PostgreSQL. Staff sign in with one of three roles (admin, receptionist, or lab), and the sidebar splits the work into admin, information (doctors and staff), patients, transactions, reports, and stats.

A report is only finished when it's on paper in the patient's hand, so printing was part of the design from the start.

From registration to report

Patients are filed as lab, indoor, or hospital patients. Registering tests for a patient picks from a catalogue of lab tests grouped by department, each with its own price. It records the referring doctor, any advance payment and discount, and a delivery date, then shows what is still owed. Every test can have a saved report template, so the lab fills in results against a fixed layout and the server renders the finished report to PDF. Payments made later update the same record, and a report can be regenerated after corrections.

Admissions follow the same pattern, with costs, discounts, and the doctors in charge. Payments are recorded as transactions, and the transactions view shows today's total, lists any date range, and exports it as a PDF. The stats screen charts how many reports each test and test group produced.

At a glance

  • — Flutter desktop client for Windows
  • — Report templates rendered to PDF
  • — Billing with advances, discounts, and dues
  • — Three roles: admin, receptionist, lab