SaaS · Guides

Hospital management system modules explained: OPD, IPD, pharmacy, lab and billing.

What each module of a hospital management system does: patient registry, OPD, IPD, pharmacy stock, lab results and billing, plus roles, audit and offline needs.

Key takeaways

  • A hospital runs on several desks that rarely share a screen: reception, wards, pharmacy, the lab and the cashier.
  • A hospital management system (HMS) joins them around one patient record.
  • Not every hospital needs every module, so modular plans are common.
  • Roles, audit logs and reliable billing matter as much as features.

What an HMS is

A hospital management system is software that handles the administrative and clinical-support work of a hospital: registering patients, recording visits and admissions, managing medicines, ordering and reporting lab tests, and billing. It reduces repeated data entry and paper, and gives managers a view of what is happening.

Patient registry

Everything begins with the patient record: demographics, contact details and history. A good registry lets staff search by number, name or phone, so a returning patient is found, not retyped. Duplicate patients are a common source of errors, so search quality matters.

OPD (outpatient department)

OPD covers visits where the patient is not admitted. The typical flow is registration, a consultation by department, a bill and a printable receipt. Features that matter: department-wise queues, doctor schedules, fees and a quick patient lookup on the billing screen.

IPD (inpatient department)

IPD covers admitted patients:

  • Admission, ward and bed allocation
  • Transfers between beds and wards
  • Charges added during the stay: bed, procedures, medicines, tests
  • Payments and refunds
  • Discharge and a final invoice

An admission needs its own financial ledger, kept apart from OPD billing, so the running bill is always clear. A bed that holds a live admission should not be overwritable by a setup screen.

Pharmacy

Pharmacy is inventory with medical consequences:

  • Medicines by batch and expiry, with prices per batch
  • Purchases from suppliers
  • Sales and returns, with tax on the bill
  • Stock adjustments with a reason (damage, theft, count correction) and a ledger trail
  • Alerts for stock about to expire and stock running low

Laboratory

The lab module handles test orders, sample tracking, results and reports:

  • Orders with their own billing and receipt
  • Results entered by parameter, not as one free-text box
  • Values calculated from other results using formulas
  • Validation and approval before a report is printed

A formula builder for lab staff must prevent formulas that loop back on themselves.

Billing and payments

Hospitals bill for OPD, IPD, pharmacy, lab and miscellaneous items. A payments desk that lists what is outstanding across all of them lets the cashier work from one queue. Print layouts with the hospital's own header and amounts in words are practical requirements. Deleting a paid bill should need a specific permission and a written reason, and be logged.

Roles, permissions and audit

Different staff need different access: administrators, reception, lab, pharmacy and accounts. A permission for each action, from viewing patients to refunding an IPD payment, plus an audit log of who did what and when, are basics for a medical product.

Multi-hospital and offline needs

If a software company sells an HMS to many hospitals, each one should have its own isolated data and its own set of modules. See database per tenant versus shared database. In places with unreliable internet, a desktop app that keeps registering patients when the connection drops can matter more than any extra report.

How I approached it

My hospital SaaS covers all of the above, with a database per hospital, six staff roles whose permissions a hospital can adjust, a Master Panel that handles plans and invoices, and a Windows app that works offline. It is built and pre-launch, not yet sold. The screenshots on its page use dummy data with masked names. For how I price it by module, see how to price a SaaS by modules.

Choosing an HMS: questions to ask

  • Which modules do we actually need today?
  • How is our data separated from other hospitals using the same product?
  • What happens when the internet goes down?
  • Can we adjust roles and permissions?
  • How are bills, deletions and refunds audited?
  • Who supports us, and how are updates handled?

Frequently asked questions

What is the difference between OPD and IPD?

OPD is for patients who visit and go home the same day. IPD is for patients admitted to a ward or bed.

Do small clinics need an HMS?

A small clinic may only need registry, OPD and billing. Modular systems let you start small and add pharmacy or lab later.

Is cloud or local software better for hospitals?

It depends on connectivity, budget and policy. Some hospitals choose a web system with an offline-capable desktop client for reception.

See the hospital system I built and how it is sold as a subscription.

See the Hospital SaaS