What happens to one patient's data between the gate and the receipt
A single OPD visit can touch five or six desks: registration, the token queue, the doctor's chamber, the lab, the pharmacy and the billing counter. Hospital software earns its place when one patient record travels through all of them, so nobody types the same name twice and every service the doctor orders reaches the bill.
This article follows one illustrative patient through that journey and explains, step by step, what the software needs to capture and who should enter it. It is written for hospital administrators, front office managers and accounts heads who want to map their current flow before they look at any system. If you are already comparing vendors, our hospital software selection checklist covers that part separately.
Our example: a returning patient arrives for a follow-up, sees a physician, is advised a blood test, buys medicines at the in-house pharmacy, and on a later visit is admitted for two days. Your own flow will differ in detail, but the handoffs between desks are usually the same.
Registration: one patient, one ID, one history
Everything downstream depends on the registration desk finding the right patient. The most common problem with paper files and Excel sheets is the duplicate: the same person registered as "Sunita Devi", "Sunita Kumari" and "S. Devi" on three visits, with three files and no single history. When that happens, the doctor cannot see the previous prescription and the accounts team cannot see an old due.
In software, registration should start with a search, not a blank form. The receptionist searches by mobile number, name or patient ID; if a match appears, the new visit is added to the existing record. Only when nothing matches is a new record created with a unique patient ID, which many hospitals call a UHID and print on every slip and report.
What the registration screen should capture
- Identity and contact: name, age or date of birth, gender, mobile number and address, kept short enough that a queue does not build up at the counter.
- Clinical flags: known allergies and relevant history that the doctor should see before prescribing.
- Documents: older reports or scans the patient brings, uploaded to the record instead of being handed back and forgotten.
- Visit details: the department or doctor being visited and whether this is a new visit or a follow-up.
Agree a simple data-entry rule at the front desk, such as always recording the patient's own mobile number where available. Search only works well when entries are consistent.
Appointments, tokens and the OPD queue
Once registered, the patient joins a doctor's queue. A booked appointment and a walk-in should land in the same list, ordered by token, so the doctor's assistant is not juggling a diary and a register at the same time. A doctor-wise appointment calendar shows which slots are taken, and a token number on the slip tells the patient where they stand.
The consultation fee is normally collected at this point. Whether your hospital collects it before or after the consultation is a policy choice; what matters is that the fee is billed against the same visit and the receipt is printed from the system rather than from a separate receipt book. If your doctors treat follow-up visits within a certain period as free or reduced, set that as a rule in the software instead of leaving it to the receptionist's memory.
Reminders by SMS or WhatsApp before a follow-up date help reduce no-shows on busy OPD days. If you plan to send them, our article on SMS use cases for schools and hospitals covers wording, timing and consent.
In the consultation room: prescription and orders
The doctor's screen is where the visit turns into orders. The doctor records complaints, vitals, diagnosis and medicine advice, suggests lab tests and sets the next follow-up date. Prescription templates for the conditions a doctor sees most often save typing, and the doctor still edits each one for the patient in front of them. The clinical content is always the doctor's decision; the software only records it.
For the billing flow, the key point is this: every test or service the doctor orders should become a pending item that the lab and billing desk can see. On paper, a test written on the prescription depends on the patient walking to the lab and the lab remembering to send a slip to billing. In software, the order exists in the system the moment the doctor saves it.
A printed prescription also ends the familiar phone call from the pharmacy asking what a handwritten word says.
Lab and pharmacy: the two handoffs where charges slip
After the consultation, most patients go to the lab, the pharmacy or both. These are separate teams working under their own pressure, and in a paper system they are where revenue most often leaks.
Lab and diagnostics
The lab needs a test master with the price of each test, so every bill is calculated the same way. The patient's test is booked against their ID, the sample status is updated as work moves from collection to result, and results are entered into a report template for that test. When the report is printed, it should also be attached to the patient's record so the doctor sees it at the next visit without asking the patient to bring a paper copy.
Pharmacy
At the pharmacy counter, the prescription should already be visible against the patient ID, so the pharmacist bills from it rather than retyping each medicine. Behind that sale, the pharmacy keeps track of purchases, batches, expiry dates and GST, and warns when stock is low or close to expiry. If your pharmacy also serves walk-in customers, our guide to batch and expiry control in a pharmacy goes deeper into the stock side.
If the patient is admitted: from bed allocation to discharge
When an OPD patient needs admission, the same patient ID should carry into the in-patient (IPD) record. The admission desk allocates a ward and bed, and the ward or room tariff set by management starts applying from that point. Nurses record vitals and nursing notes on the ward, and medicines, procedures and tests during the stay are added to the patient's running account.
Package billing needs particular care. Many hospitals offer fixed packages for common procedures, and the bill must show what is inside the package and what is charged on top. If the package rules live only in the accounts head's notebook, discharge turns into a negotiation at the counter.
At discharge, the doctor completes the discharge summary, the billing desk closes the account, and the summary is printed from the system. A bed occupancy view then shows the admission desk which beds are free without phoning each ward.
The final bill: discounts, dues and the day's collection
Whether OPD or IPD, the bill should be assembled from what was actually recorded upstream: consultation, tests, medicines, bed charges, procedures and packages. The billing clerk's job becomes checking and collecting, not reconstructing the visit from slips.
- Payment modes: cash, card, UPI and other modes recorded separately, so the cash in the drawer can be matched against the cash total alone.
- Discounts: a discount above an agreed level should need approval from a named person, and the approval should be saved with the bill rather than given verbally at the counter.
- Dues and refunds: an unpaid balance stays on the patient's account and appears at the next visit; a refund is entered as a refund, not as a cancelled receipt.
- Daily collection report: one report at closing time showing collection by payment mode and counter, which accounts reconciles before the cash leaves the building.
| Step | Who enters it | What the software should record | What goes wrong without it |
|---|---|---|---|
| Registration | Reception | Patient ID, contact details, allergies, documents | Duplicate files, lost history |
| Appointment and token | Reception or doctor's assistant | Doctor, slot, token number, consultation fee | Queue disputes, missed fees |
| Consultation | Doctor | Complaints, vitals, diagnosis, prescription, tests advised, follow-up date | Illegible orders, tests never billed |
| Lab | Lab staff | Test booked, sample status, result, report | Tests done but not charged, reports misplaced |
| Pharmacy | Pharmacist | Prescription-linked sale, batch, expiry, GST | Medicines issued but not billed |
| Admission and discharge | Admission desk, nurses, doctor | Bed, tariff, nursing notes, running charges, discharge summary | Bed days miscounted, disputes at discharge |
| Billing and closing | Billing and accounts | Bill, payment mode, discount approval, dues, daily collection | Unexplained discounts, cash mismatch |
Habits that break the flow in the first month
Most problems after go-live are not software faults. They come from habits that let the old paper flow carry on alongside the new one.
- Keeping the old receipt book "just in case": if some fees are still collected on paper, the daily collection report never matches the cash and staff stop trusting it.
- Masters set up in a hurry: wrong test prices, missing doctors or a ward tariff typed once and never checked will show up as wrong bills. Ask each department head to check their own master list before go-live.
- Doctors who keep writing on paper: if the prescription is not entered, the lab and pharmacy fall back to slips and the link between order and bill is lost. Start with the doctors who are willing, and use templates to keep entry quick.
- Nobody owns the end-of-day check: someone in accounts should review the collection report, open dues and approved discounts every evening for the first few weeks.
How MATROP's Hospital Management Software covers this flow
MATROP's Hospital Management Software has a module for each step in this article: patient registration with a unique patient ID, history timeline and document uploads; doctor-wise appointments with OPD tokens; OPD consultation with prescription templates, lab test suggestions and follow-up scheduling; lab with a test master, report templates and reports attached to the patient record; pharmacy with batch, expiry, GST and prescription-linked sales; IPD with ward tariffs, a bed occupancy dashboard and discharge summary print; and billing with multiple payment modes, a discount approval workflow and a daily collection report. SMS/WhatsApp reminders and pharmacy barcode scanning are optional.
Each desk gets its own login, including reception, doctor, nurse, billing, pharmacy and admin, and modules can be enabled or disabled, so a hospital without an in-house lab does not have to work around lab screens. The software is available as a desktop version on your local network, an online/cloud version, and mobile apps for doctors and administrators, with a patient app as an option.
It may be more than you need if you run a single-doctor practice with a short daily list; our comparison of clinic and hospital software needs explains when a simpler setup is enough. And if the real problem is that departments disagree about who bills what, settle that process on paper first. Software makes an agreed process faster; it does not settle the disagreement for you.
Questions people ask
What is a UHID, and does a small hospital need one?
A UHID is a unique ID given to each patient at first registration and reused on every later visit. Any hospital that sees returning patients benefits from one, because all visits, reports and dues stay in one record instead of scattered files.
Should the consultation fee be collected before or after the doctor sees the patient?
Either can work; it is a policy decision for your hospital. What matters is that the fee is billed against the same visit in the software and the receipt is printed from it, so the day's collection report includes every consultation.
How do we make sure lab tests ordered by the doctor are always billed?
Have the doctor record tests in the system during the consultation, so they appear as pending items for the lab and the billing desk. For the first few weeks, check unbilled tests at the end of each day until the habit settles.
Can a patient pay part of the bill now and the rest later?
Hospital software should keep the unpaid balance as a due on the patient's account, so it shows at the next visit or at discharge. Agree internally who is allowed to accept a part payment and record that decision with the bill.




