Skip to content

Finance Creating OPD Bill

Dr M H B Ariyaratne edited this page May 22, 2026 · 1 revision

Creating an OPD Bill

Introduction

An OPD bill is created at the billing counter when a patient receives outpatient services and payment is collected immediately. The bill records the patient, services rendered, fees, discount (if applicable), payment method, and generates a receipt.

Navigation

Main Menu → OPD → OPD Billing (privilege: OpdBilling) → opd/opd_bill.xhtml

Step-by-Step

  1. Search for the patient using the patient autocomplete (by name, ID, or phone number).
  2. Select the doctor/consultant if applicable (auto-populates from appointment if linked).
  3. Select the department (defaults to your assigned department).
  4. Add services or items:
    • Use the item autocomplete to search by name or code.
    • The system auto-fills the fee from the configured fee table (based on department, site, and payment scheme).
    • Enter the quantity (defaults to 1).
    • Repeat for each service.
  5. Review the fee breakdown — each line shows unit fee, quantity, line total, and applicable discount.
  6. Apply a discount if the payment scheme allows it — enter percentage or fixed amount.
  7. Select the payment method:
    • For a single method (e.g. Cash), select from the dropdown.
    • For split payment, select MultiplePaymentMethods — a panel opens to enter amounts per method.
  8. Enter the amount paid (for cash, verify the amount tendered and change due).
  9. Click Save / Pay. The bill is saved, a payment record is created, and the receipt print page opens.

Bill Fields Reference

Field Description
Patient Autocomplete — search by name, ID, phone
Visit Date Defaults to today; editable
Doctor / Consultant Optional; auto-populated from appointment
Department Service department
Item / Service Autocomplete — searches available services
Quantity Number of units
Unit Fee Auto-populated from fee table; may be editable if permitted
Discount % Percentage discount if scheme allows
Total Calculated: quantity × fee × (1 − discount)
Payment Method Single or multiple
Amount Paid For cash: amount tendered
Change Cash change due to patient
Reference Number Card/cheque reference if applicable

How Fees Are Resolved

The system looks up the fee in this priority order:

  1. Department-level fee for this item
  2. Site-level fee
  3. Base fee from the item master

The applicable fee is further modified by the cashier's payment scheme (see Payment Schemes).

Receipt

After saving, the bill receipt is printed automatically. Paper format (A4 or POS) is determined by configuration. Reprint is available from OPD Bill Search and Reprint.

Technical Reference

Item Detail
Controller BillController, BillBeanController, BillItemController
Page opd/opd_bill.xhtml, opd/opd_bill_ac.xhtml (autocomplete variant)
Privilege OpdBilling
Bill entity Bill (BillType.OpdBill)
Payment entity Payment

Clone this wiki locally