Patients & reports

Patient database

Register patients, search their history, and manage visits and orders.


The patient database is the heart of your daily workflow. Every person who walks in gets a record here, and every visit, test order, and result is tied back to it — so a patient's full history is always one search away.

Registering a patient

Open Patients and choose to add a new patient. The New Patient Registration screen opens locked, so nothing can be typed or picked by accident. Click Add New (or press F1) to unlock a blank form, then capture their core details:

  • Name, age (or date of birth), and gender — these drive automatic reference-range selection.
  • Contact number and email — used for report delivery.
  • Referring doctor — links the visit to a referred doctor for commission tracking.
  • Cons. Dr — pick from your Lab Config → Consultants list, or type a name that isn't on it.
  • Creditor info — the person from your lab this visit is put on credit against, picked from Lab Config → Creditors. Leave it on None for a normal visit.
  • Collection center, if the sample came through a partner.
  • Sample info — pick where the sample was taken or received from the list. It opens on Sample Collected At Lab; change it when the sample came in another way, such as Home Visit or Sample Collected At Camp.

Filler mobile numbers get no SMS

If the patient has no phone and you type a filler such as 0000000000 or 9999999999, Labgen turns the SMS alert switch off by itself. It does this whenever the number has 6 or more of the same digit in a row. The switch stays off and can't be turned on until you correct the number; then it switches back on. Report-ready SMS at release skips these numbers too.

Why age and gender matter

Labgen automatically picks the correct reference range for each test parameter based on the patient's age bracket and gender. A haemoglobin value is interpreted differently for an adult man, an adult woman, and a child — Labgen handles that for you.

Ordering tests

Add one or more tests from your catalogue to a patient's visit: type a code or name in the test search box and pick a result, or press Enter to add the highlighted one. Each test carries its own parameters, units, and reference groups. Once ordered, the test is ready to receive results — either typed in manually or sent automatically from a connected analyzer.

In the Test Entry & Clinical Ledger table, the Fee column is the one figure you can set by hand — Cost and Margin are the lab's own numbers and stay read-only. A fee you can edit is drawn with a dashed underline and shows a small pencil when you hover the row; double-click it to type a different price. A fee you have changed turns blue, so an overridden price is obvious when you check the bill. The change applies to that order only and never alters the catalogue.

Saving the registration puts every ordered test onto the Report Status queue at the Registration station, with its tube barcode already generated. From there the board is where the work is tracked and pushed forward, one test at a time.

Attaching the TRF

Click TRF, beside the test search box in Test Entry & Clinical Ledger, to attach a photo or scan of the test requisition form (TRF), the doctor's slip listing the tests. JPG, PNG, WebP and PDF files up to 10 MB each are accepted, up to 6 per visit. You can also drop files onto the window.

  • On a new registration the files are held until you click Save, then uploaded with the entry. If an upload fails, the registration is still saved but none of those files are attached; open TRF and add them again.
  • On a saved or reopened entry, files upload as soon as you add them. This works even after the entry has locked or its report has been released.
  • The button shows how many files are attached. Click a file to open it, or the bin icon to remove it. Adding and removing files is recorded in the audit log.
  • Files are stored privately with the visit. Photos are made smaller and turned the right way up before they are stored.

Changing the registration date and time

Reg. date and Reg. time fill in from the clock and are locked. To change one, for a sample that was registered late or an entry made after the fact, click the pen beside its label. The field opens for editing, and the pen becomes a tick that locks it again. The new date and time are saved with the entry when you click Save, and become the visit's registration date everywhere: the bill, the Report Status board and the printed report. A date or time in the future is refused.

On a saved entry, click Modify first. Each change is recorded in the Data logger.

Report date and time (Skip Queue only)

If your role has Skip Queue Reports (set in Lab Config → Staff), the registration screen also shows Report date & time, next to the address. It stays empty until you print the entry's report through Create Report. At that point it fills in with the current date and time, and the report prints it as its Report Date.

  • To correct it, click the pen beside the label, pick the date and time, and click the tick (or press Enter). It saves straight away, without Save. Press Esc or the cross to cancel. On a saved entry, click Modify first.
  • From then on, every copy of that entry's reports prints the new date: reprints, the patient's download and the QR link.
  • It can't be in the future or before the registration date. Each change is recorded in the Data logger.
  • Printing the report again through Create Report keeps the date already set.
  • Create Report opens only the entry on screen: one you have just saved, or one opened with Load past. On a new entry, after Add New, or after picking a returning patient, it stays off until you click Save. Before, it could open the previous patient's or the previous visit's report while you were building a new one. To finish an earlier entry's report, open it with Load past. Print → Report still reprints the patient's last report.
  • Users without Skip Queue Reports don't see the field. Their reports print the time the report was authorized, as before. NABL-accredited labs have no Skip Queue, so they always print the authorization time.

A save that fails keeps nothing

If Save fails part-way, nothing from that attempt is kept: no half-saved patient or entry, and no lab or invoice number used up. Labgen shows the reason, and saving again starts clean.

After you save, the entry stays on screen with its lab number and UHID, as a saved entry: view-only, with Modify to change it and Print to reprint its bill. Click Add New (F1) to clear the screen for the next patient. Closing the registration screen also clears it.

Reopening a saved entry

Pull up an earlier entry with Load past at the top of the registration screen, or click the patient's name on the Report Status board. Today's entries show as soon as you click Search. Either way the whole entry opens: its original registration date and time, its tests, its bill and every payment collected so far.

  • It opens view-only, so nothing changes by accident. Click Modify to edit it, at any time after the entry was made.
  • An entry whose report has been released stays read-only for good.
  • Print → Invoice reprints that entry's bill as it was saved, including payments collected since. If you have clicked Modify and changed something, click Save first, then Print → Invoice, so the bill matches.
  • A balance can be collected at any time, even after the report has been released.
  • On a new registration, Paid amount can't be more than the Net total. Enter what the patient pays towards the bill, not the cash handed over: if they give ₹500 for a ₹200 bill, enter 200 and hand back the change. Removing a test before you save lowers the paid amount with it.
  • The Billing summary shows the bill exactly as it was saved, with the same lines as when it was first entered: Membership fee, Discount and Member discount each on their own line. Its Net total and Balance match the Report Status board.

Refunding a patient (Unpay)

If a patient has paid and then decides not to go ahead with a test, you can give the money back with Unpay in the Billing summary.

  • First take the test off the bill: click Modify, remove the test and click Save. The bill now totals less than was paid, and Balance (refund) shows what the patient is owed.
  • Under the payments, switch from Collect payment to the Refund (Unpay) tab. The amount owed is already filled in. Add a reason if you like (for example "CBC cancelled"), check the Payment mode the money goes back by, then click Refund and confirm.
  • Don't type a refund into the Collect payment box: anything entered there is saved as money received.
  • While money is owed back, the line under the payments reads Overpaid — refund ₹… to the patient in red, instead of Fully paid. Click it to open the Refund tab with the amount filled in.
  • The refund is added to the payments list as its own red Refunded line. The earlier payments stay as they were, and Paid and Balance update straight away.
  • You can't refund more than has been collected on the bill. If you refund more than the bill owes back, the difference shows as balance due.
  • Unpay works on a saved entry without clicking Modify, and after the report has been released, just like collecting a balance.
  • Refunds count against the day they were made in MIS, so that day's collections are lower by the amount paid back, and they appear in the Payment History report with the type Refund.
  • Every refund is listed in the Data logger under Refunds, with the amount, reason and who gave it.

Finding a patient

Search by name, lab number, or phone number. Opening a patient shows their complete timeline: past visits, the tests in each, and the reports produced — useful for spotting trends and for returning-patient workflows.

The tiles at the top of the Patient Database count your total patients, new patients this month, members and possible duplicates (records that share a name and mobile number). Click a column heading to sort by it, and use the dates to show only patients whose last entry falls in that range. A Member tag marks a patient with a membership; a records tag marks a possible duplicate, and clicking it lets you review and merge the records.

Editing and deleting

Patient details can be corrected at any time. Deleting a patient who has verified or finalized results requires a reason — Labgen records what was removed in the audit trail before erasing it, so nothing disappears silently.

Deletions are audited

When you delete a patient with authorized results, the action is logged in the Data logger. This protects your lab and keeps you aligned with accreditation expectations.