Skip to content

MOD PEX 008 BIL

Domain specifications / D07-PEX / 5. Detailed Functional Requirements / 5.8 Module Specification: Billing Statement and Payment-Status Views

5.8 Module Specification: Billing Statement and Payment-Status Views

5.8.1 Module Overview

Module ID: MOD-PEX-008

Purpose: Show patients their statements and payment status, where the facility enables it, as a read-only projection of Domain 5 records, and let them pay a statement online through the payment provider's own page.

Business Capabilities: - CAP-PEX-009 Billing views

Primary Actors: - Patient, authorized representative, billing staff

Dependencies: - Domain 5 (FIN) patient account, invoice and payment records; Domain 5 payment channels (EXT-FIN-010) for online payment; MOD-PEX-005 for billing enquiries.

5.8.2 Functional Area: Billing Views

Functional Area ID: FA-PEX-018

Description: Statement list, statement detail, payment status, online payment through the payment provider's hosted page, and a route to raise a billing enquiry.

Scope: - Included: issued invoices or statements, amounts due and paid, payment and refund status, download of the statement document, enquiry link, hand-over to the payment provider's hosted page to pay a statement balance (DEC-FIN-008). - Excluded: card data entry or storage in the HIS, posting of payments (Domain 5 posts them), partial payment, estimates, claim detail, adjustments, any write to financial records by PEX.

5.8.3 Detailed Requirements

Requirement FR-PEX-BIL-001: Billing Statement and Payment-Status Views

Attribute Description
Requirement ID FR-PEX-BIL-001
Requirement Name Billing statement and payment-status views
Requirement Type Functional
Module Billing Statement and Payment-Status Views
Functional Area FA-PEX-018 Billing views
Priority Should
Criticality Medium
Requirement Status Draft
Source PAT-011 ("bills"); PRS section 4 (Patient / representative: billing statements); FIN-003; FIN-007; RCM-011
Related Business Rule BR-PEX-025
Related Workflow None

1. Requirement Statement

Where billing views are enabled for the facility, the system shall display to the requester the patient's issued statements and their payment status as read from Domain 5 at the time of viewing, with the "as at" time, and shall provide a route to raise a billing enquiry.

2. Business Rationale

PAT-011 lists bills among portal content. Showing only issued, Domain 5-sourced figures avoids the portal becoming a second ledger.

3. Actors and Permissions

Actor Permission Conditions
Patient Read own statements Active link; feature enabled
Representative Read Grant scope includes billing
Billing staff Answer enquiries Billing pool

4. Preconditions - Feature enabled; Domain 5 exposes issued statements for patient display.

5. Trigger - The requester opens billing; InvoiceIssued or PaymentPosted arrives.

6. Functional Behaviour

  1. The list shows issued statements with number, date, encounter, total, amount paid, balance and status in the facility currency.
  2. Detail shows line descriptions in the patient-facing wording supplied by Domain 5, payer and patient portions where provided, payments, refunds and adjustments as separate entries.
  3. Corrections appear as the reversing or adjusting entries Domain 5 holds; the portal never nets or hides them (FIN-007).
  4. Draft or unissued charges are not shown.
  5. The statement document can be downloaded through a secure reference.
  6. "Ask about this statement" opens a message thread on the billing topic linked to the statement.
  7. A new-statement notification states only that a statement is available.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Subject patient / account Identifier Yes From link or grant Whose statements
Statement reference Identifier For detail Belongs to subject patient Statement

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-BIL-001-1 Amounts are displayed as supplied; no local calculation other than display formatting. Portal equals ledger.
PR-BIL-001-2 Show the time of the Domain 5 read. Patient knows currency of data.
PR-BIL-001-3 Line descriptions that would reveal a category excluded for a representative are suppressed to a generic label for that representative. No leakage through billing.

9. Output Requirements

Output Format Recipient Description
Statement list and detail Screen Requester As described
Statement document Download Requester From Domain 5 / document service

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Domain 5 unavailable Call failure Show read model with "as at" time or unavailable notice "Billing information shown as at [time]."
Feature disabled Configuration No navigation item; API refuses None
Statement not owned by subject Ownership check Refuse; audit "You do not have access to this."

11. State and Lifecycle Behaviour

None in PEX; invoice and payment states are Domain 5's.

12. Audit Requirements

Statement views and downloads are audited.

13. Security and Privacy Requirements

Billing lines can reveal clinical services and are treated as Confidential health-related information.

14. Acceptance Criteria

  • AC-01: Given an issued invoice with a part payment in Domain 5, when the patient opens billing, then total, paid and balance equal the Domain 5 values.
  • AC-02: Given an invoice with a credit note, when the patient opens the detail, then the original and the adjusting entry are both shown.
  • AC-03: Given unissued charges, when the patient opens billing, then they are not shown.
  • AC-04: Given a facility with billing views disabled, when the billing API is called, then it refuses.

15. Dependencies and Integration

  • Upstream dependencies: Domain 5 statement query and events (INT-PEX-008).
  • Downstream dependencies: MOD-PEX-005.
  • Required events or APIs: InvoiceIssued, PaymentPosted.

16. Open Questions / Assumptions

  • Online payment is added by FR-PEX-BIL-002 under DEC-FIN-008 (GAP-PEX-006, closed 17 Nov 2026). REF-002 qualifies this module with "where enabled"; it is a facility-level configuration.

Requirement FR-PEX-BIL-002: Online Payment of a Statement

Attribute Description
Requirement ID FR-PEX-BIL-002
Requirement Name Online payment of a statement
Requirement Type Functional
Module Billing Statement and Payment-Status Views
Functional Area FA-PEX-018 Billing views
Priority Should
Criticality High
Requirement Status Draft
Source DEC-FIN-008 (online payment through the portal comes with the portal); PAT-011 ("bills"); FIN-007; SEC-005
Related Business Rule BR-PEX-025
Related Workflow None

1. Requirement Statement

Where online payment is enabled for the facility, the system shall let the requester pay the balance of an issued statement by handing the requester over to the payment provider's hosted payment page. The payment shall be confirmed and posted by Domain 5, and the portal shall show its status as Domain 5 holds it. Card data shall never be entered into, pass through or be stored in the HIS.

2. Business Rationale

DEC-FIN-008 puts online payment in the first portal release. A hosted payment page is common practice: the provider handles card and bank details, which keeps the HIS out of card-data scope, and Domain 5 stays the only ledger.

3. Actors and Permissions

Actor Permission Conditions
Patient Pay own statement balance Active link; billing views and online payment enabled
Representative Pay a statement balance Grant scope includes billing
Billing staff Answer payment enquiries Billing pool

4. Preconditions - Online payment is enabled for the facility (CFG-PEX-028) and Domain 5 has a contracted payment provider (EXT-FIN-010). - The statement is issued and has a balance above zero.

5. Trigger - The requester chooses "Pay online" on an unpaid statement.

6. Functional Behaviour

  1. "Pay online" is shown on an issued statement with a balance. The amount is the balance as Domain 5 holds it; the requester cannot change it.
  2. The requester chooses a method offered by the facility: QRIS, virtual account or card.
  3. PEX asks Domain 5 to start a payment for the statement and amount. Domain 5 creates the payment order with the provider and returns a link to the provider's hosted page.
  4. The portal tells the requester they are leaving for the provider's secure page, then hands them over. Card numbers, bank credentials and one-time codes are entered only on the provider's page.
  5. The provider sends the payment result to Domain 5 through the governed integration layer. Domain 5 verifies it, posts the payment, issues the receipt and publishes PaymentPosted.
  6. When the requester returns to the portal, the statement shows "Payment being confirmed" until Domain 5 reports the result. It then shows "Paid" with the receipt, or "Payment not completed" with "Try again". The return from the provider's page is never treated as proof of payment.
  7. While a payment for a statement is in progress, a second "Pay online" for the same statement is refused until the first one ends or expires.
  8. A notification of a posted payment states only that a payment was received; it carries no amount or service.
  9. A "How to pay" panel on every unpaid statement also lists the facility's other payment routes (cashier, bank transfer).

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Statement reference Identifier Yes Belongs to subject patient; issued; balance above zero What is paid
Payment method Code Yes Enabled in CFG-PEX-028 QRIS, virtual account or card

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-BIL-002-1 PEX never receives, displays or stores card data or bank credentials. HIS outside card-data scope.
PR-BIL-002-2 Only Domain 5 posts a payment, and only on a provider result it has verified. One ledger; no false "paid".
PR-BIL-002-3 One payment start per statement at a time; the start request carries an idempotency key. No double payment from repeated taps.
PR-BIL-002-4 The hosted page link carries no patient data other than the provider's order reference. No leakage in URLs.

9. Output Requirements

Output Format Recipient Description
Payment start request API command Domain 5 Statement, amount, method, idempotency key
Hand-over Redirect Requester To the provider's hosted page
Payment status and receipt Screen, download Requester As Domain 5 holds them

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Balance changed since the statement was opened Domain 5 check Refresh the amount before hand-over "The amount has been updated. Please check it before paying."
Payment already in progress PR-BIL-002-3 Refuse a second start "A payment for this statement is already in progress."
Domain 5 or provider unavailable Call failure No hand-over; offer other routes "Online payment is not available at the moment. See How to pay for other ways."
Provider reports failure or expiry Domain 5 result Show not completed "Payment not completed. You have not been charged." with "Try again"
Online payment disabled Configuration No "Pay online"; API refuses None

11. State and Lifecycle Behaviour

None in PEX. The payment order and the payment are Domain 5's (FR-FIN-CSH-001). The portal shows them as "Payment being confirmed", "Paid" or "Payment not completed".

12. Audit Requirements

Audited: payment start with requester, patient acted for, statement and amount; the result shown. The payment itself is audited by Domain 5.

13. Security and Privacy Requirements

The hosted page is the provider's; the HIS handles no card data (DEC-FIN-008). The hand-over uses HTTPS and a provider order reference only. The provider is a processor under the facility's agreement, selected by the CFO.

14. Acceptance Criteria

  • AC-01: Given an issued statement with a balance, when the patient pays by QRIS on the provider's page and the provider confirms, then Domain 5 posts the payment and the portal shows "Paid" with the receipt.
  • AC-02: Given a patient who returns from the provider's page before the result arrives, when they open the statement, then it shows "Payment being confirmed" and not "Paid".
  • AC-03: Given any online payment, when PEX logs, storage and requests are inspected, then no card number or bank credential is present.
  • AC-04: Given a payment in progress, when "Pay online" is chosen again for the same statement, then it is refused.
  • AC-05: Given a facility with online payment disabled, when the payment API is called, then it refuses.

15. Dependencies and Integration

  • Upstream dependencies: Domain 5 payment start and statement query (INT-PEX-008); Domain 5 payment channels (EXT-FIN-010).
  • Downstream dependencies: MOD-PEX-010 for the payment-received notification.
  • Required events or APIs: PaymentPosted (EVT-FIN-005).

16. Open Questions / Assumptions

  • Domain 5 must offer the payment start request and hold the payment order state. The acquiring bank and payment provider are selected by the CFO (DEC-FIN-008).

← 5.7 Module Specification: Patient-Reported Outcomes and Submitted Information | Contents | Identifier index | 5.9 Module Specification: Consent and Communication Preference Presentation →