Admin Inpatient Discount Matrix - hmislk/hmis GitHub Wiki
Admin — Inpatient Discount Matrix
The Inpatient Discount Matrix configures discount rules that are automatically applied to the final bill. Discounts can be set for services & investigations, pharmacy items, and room facility charges, and can be applied per patient type, credit company, or payment mode.
Page: Admin → Manage Inpatient Services → Discount Matrix
XHTML: (accessed via InwardDiscountMatrixController)
- Services & Investigations:
navigateToDiscountMatrixServiceInvestigation() - Pharmacy:
navigateToDiscountMatrixPharmacy() - Room Facility Charges:
navigateToDiscountMatrixRoomCharges()
Controller:InwardDiscountMatrixController
Privilege:InwardAdministration
Discount Types
Three separate discount matrices exist, each for a different charge category:
| Category | Applies To |
|---|---|
| Services & Investigations | Service bills, investigation bills |
| Pharmacy | Pharmacy BHT issue bills |
| Room Facility Charges | Room occupancy charges |
Discount Matrix Fields
| Field | Notes |
|---|---|
| Item or Category | The service, investigation, or room category to which the discount applies |
| Discount % | Percentage discount |
| Patient Type / Credit Company | Restrict the discount to a specific patient type or credit company |
| Active | Toggle to enable or disable a discount rule |
Duplicate Prevention
The system prevents duplicate discount rules for the same item/category + patient type combination (Issue #20061). Adding a duplicate will display a validation error.
How Discounts Are Applied
When the final bill is processed (BhtSummeryController.updateTotal()), the discount matrix is evaluated for each bill line item. Matching discount rules are applied, and the discounted amounts appear as separate line items in the bill breakdown.
Related Articles
- Inpatient — Final Bill Generation — discounts applied here
- Admin — Inpatient Price Adjustments — per-BHT price overrides (different from discounts)
- Admin — Inpatient Module Configuration Overview — navigation overview