MOD FIN 001 CHG
Domain specifications / D05-FIN / 5. Detailed Functional Requirements / 5.1 Module Specification: Charge Capture and Service Consumption Capture
5.1 Module Specification: Charge Capture and Service Consumption Capture¶
5.1.1 Module Overview¶
Module ID: MOD-FIN-001 (code CHG)
Purpose:
Consume chargeable events from clinical, diagnostic, procedural, medication, supply and accommodation activity and convert them into priced, traceable charge items without affecting the originating transaction.
Business Capabilities: - CAP-FIN-001 Charge capture
Primary Actors: - Clinical event source (ACT-FIN-015) - Billing officer (ACT-FIN-001)
Dependencies: - MOD-FIN-002 (pricing), MOD-FIN-003 (account posting), MOD-FIN-005 (coverage context), MOD-FIN-010 (supply consumption), MOD-FIN-011 (exceptions) - Domain 1 encounter and ADT events; Domain 3 order and medication events; Domain 4 fulfilment events - Domain 2 event backbone; Domain 10 master data, audit and authorization
5.1.2 Functional Areas¶
Functional Area ID: FA-FIN-001 Event-driven charge capture
Description:
Asynchronous, idempotent consumption of chargeable events and creation of charge items.
Scope: - Included: subscription to chargeable events; de-duplication; mapping to chargeable services; pricing request; posting; automatic reversal on source cancellation; accommodation charges from ADT events. - Excluded: definition and emission of the source events (owning domains); tariff content (MOD-FIN-002).
Functional Area ID: FA-FIN-002 Charge item integrity
Description:
The mandatory content of a charge item, validation of its encounter context and its traceability to source.
Scope: - Included: charge item attributes; encounter status validation; source-to-charge trace; manual charge entry with source reference. - Excluded: encounter state machine (Domain 1).
5.1.3 Detailed Requirements¶
Requirement FR-FIN-CHG-001: Asynchronous event-driven charge capture¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-FIN-CHG-001 |
| Requirement Name | Asynchronous event-driven charge capture |
| Requirement Type | Functional |
| Module | Charge Capture and Service Consumption Capture |
| Functional Area | FA-FIN-001 Event-driven charge capture |
| Priority | Must |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | FIN-001, RCM-003; contributes to INF-004, INT-004, SAFE-004; PRS section 24 |
| Related Business Rule | BR-FIN-001, BR-FIN-003, BR-FIN-020 |
| Related Workflow | WF-FIN-001 |
1. Requirement Statement
The system shall capture charges from clinical events, services, supplies, medications, procedures and accommodation by consuming the corresponding domain events asynchronously, such that a failure of charge processing never blocks or rolls back the originating clinical transaction and every consumed event results in exactly one charge outcome.
2. Business Rationale
The PRS requires clinical and financial domains to be architecturally separated: billing errors must never block urgent bedside care, and a simulated outage of the revenue cycle must leave clinical care unaffected with all events replayed and reconciled (PRS section 24, RCM-003).
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Charge capture service identity | Create charge items | Scoped, non-human service identity |
| Billing officer | Read charge items; create a manual charge | Within assigned facility; manual charge requires a source reference and reason |
| Finance supervisor | Approve manual charges above threshold | Where configured |
4. Preconditions - The source transaction is committed in its owning domain and its event is published with a unique identifier. - A chargeable-service mapping exists for the event type, or the event will be exceptioned.
5. Trigger - Receipt of a chargeable event from Domain 1, 3 or 4 or from MOD-FIN-010; receipt of a cancellation or correction of such an event.
6. Functional Behaviour
- The system subscribes to the configured set of chargeable event types and records each received event in a durable inbox before processing.
- The system processes each event idempotently by event identifier.
- The system charges only from the charge-source event type of each service (PR-CHG-001-06). It maps the event to chargeable services through the charge master, requests a price from the tariff engine (FR-FIN-TAR-001, FR-FIN-TAR-002) and creates charge items as specified in FR-FIN-CHG-002.
- The system derives accommodation charges from admission, transfer, leave, return and discharge events on the configured charging basis.
- On a cancellation or correction event for an already charged source event, the system creates a reversing entry and, where applicable, a new charge (FR-FIN-BIL-003).
- An event that cannot be charged is recorded as an exception item (FR-FIN-EXC-001); processing of other events continues.
- After an outage, the system processes the retained backlog in the order required for correctness for each encounter and produces the same result as uninterrupted processing.
- The system publishes ChargeCaptured for each posted charge item.
- The system supports manual charge entry by the billing officer on the charge review screen (UI-FIN-002) for an encounter in context, with service, quantity, service date, source reference and reason. The charge is priced by the tariff in force at the service date like an event-sourced charge. Within the threshold of CFG-FIN-006 it is posted; above it, it is an approval request shown "Awaiting approval" with no ledger effect until a finance supervisor approves it on UI-FIN-006. Downtime charges are entered on the same screen (FR-FIN-EXC-002).
- The mapping of event types to chargeable services (CFG-FIN-001) is governed configuration edited by the tariff administrator on the tariff screen (UI-FIN-003) and approved by a different user.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Event identifier | Identifier | Yes | Unique; used for de-duplication | Identity of the source event |
| Event type and schema version | Code | Yes | In the subscribed, supported set | Determines mapping |
| Patient identifier | Identifier | Yes | Resolves to an enterprise identity | Domain 1 reference |
| Encounter / CIN | Identifier | Yes | Exists; status checked per FR-FIN-CHG-002 | Domain 1 reference |
| Service or item reference | Code | Yes | Maps to a chargeable service | From order catalogue or item master |
| Performer / performing unit | Reference | Yes where the source provides it | Valid practitioner or organization reference | Required by RCM-004 |
| Quantity and unit | Decimal, code | Yes | Greater than zero; valid unit | Quantity delivered |
| Event time | Timestamp | Yes | Not later than received time beyond permitted clock tolerance | Service date used for pricing |
| Facility | Reference | Yes | Valid facility | Selects facility tariff |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-CHG-001-01 | An event identifier already processed is acknowledged without effect | No duplicate charge |
| PR-CHG-001-02 | Charge creation and the "processed" marker for the event are committed together | No event is half-processed |
| PR-CHG-001-03 | Charge processing failure is contained in this domain | Source transaction unaffected (BR-FIN-001) |
| PR-CHG-001-04 | A reversal is created only for an existing, unreversed charge of the same source event | No double reversal |
| PR-CHG-001-05 | Service date is the source event time, not the processing time | Late processing does not change the price |
| PR-CHG-001-06 | Each chargeable service has exactly one charge-source event type. Domain 4 activity, including blood products: ChargeableActivityRecorded (EVT-ANC-020) only. Medication: MedicationDispensed or MedicationAdministered, one of the two per item class and payer rule (DEC-FIN-005), never both. Implants and tracked consumables: the stock consumption posted from ImplantOrConsumableUsed (EVT-ANC-025) through INT-FIN-013. Accommodation: the Domain 1 ADT events. Other events about the same activity (ProcedureCompleted, ResultFinalized, TherapySessionCompleted, BloodUnitIssued, TransfusionStarted and TransfusionCompleted, OrderCompleted) never create a charge; they are the expected-activity side of source-to-charge reconciliation (FR-FIN-EXC-001) |
No service is charged twice from two events about the same activity; an activity with no charge is found by reconciliation |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Charge item | Ledger record | MOD-FIN-003 | Posted to the patient account |
| ChargeCaptured event | Versioned domain event | Domain 8; MOD-FIN-004; other subscribers | Charge posted |
| Exception item | Workqueue item | MOD-FIN-011 | Event not charged, with reason |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Malformed or unsupported event | Schema validation | Quarantine with reason and replay path | Exception: "Event failed validation"; integration support resolves |
| No chargeable-service mapping | Mapping lookup | Hold as exception | "No charge mapping for service"; tariff administrator maps on UI-FIN-003, then reprocess |
| Manual charge above the threshold | Threshold check (CFG-FIN-006) | Approval request; not posted | "Awaiting approval" |
| No tariff in force at service date | Tariff lookup | Hold as exception | "No tariff version effective on service date" |
| Duplicate delivery | Identifier check | Acknowledge, no effect | None |
| Downstream posting failure | Transaction outcome | Retry with backoff; then exception | "Charge posting failed"; retained for reprocess |
11. State and Lifecycle Behaviour
A charge item is created in Posted state, or the event is held in Exception state until resolved. A manual charge above the threshold is an approval request (Awaiting approval, Approved, Rejected) and becomes a Posted charge item only when Approved. A posted charge moves to Invoiced when billed and to Reversed when a reversing entry is posted (section 4.3).
12. Audit Requirements
The system shall audit charge creation, automatic reversal, manual charge entry and reprocessing of exceptions, with service or user identity, timestamp, source event identifier, encounter and correlation identifier. Manual charges record the reason and source reference.
13. Security and Privacy Requirements
Event consumption uses an authenticated, authorized service identity over encrypted channels. Charge items reference patient and encounter and may reveal the nature of care; they are classified Confidential and access is limited by role and facility. Only the minimum event content needed for charging is retained.
14. Acceptance Criteria
- AC-01: Given a committed medication administration (for an item class charged on administration) and Domain 4
ChargeableActivityRecordedevents for a procedure and a laboratory test on an open encounter, when the events are published, then one charge item per chargeable service is posted, each traceable to its source event and tariff version. - AC-01a: Given a procedure for which Domain 4 publishes both
ProcedureCompletedandChargeableActivityRecorded, when both are consumed in either order, then exactly one charge item is posted, and the reconciliation shows the procedure as charged (PR-CHG-001-06). - AC-02: Given this domain is stopped, when clinicians place orders, administer medication and record results, then all clinical transactions succeed, and when this domain is restarted, then all retained events are charged or exceptioned and the source-to-charge reconciliation shows no unaccounted event.
- AC-03: Given an event already charged, when the same event is delivered again or replayed, then no additional charge item exists.
- AC-04: Given a charged event, when its source domain publishes a cancellation, then a reversing entry referencing the original is posted and the original remains retrievable.
- AC-05: Given an inpatient encounter with one transfer between bed classes, when the patient is discharged, then accommodation charges reflect each bed class for its period under the configured basis.
- AC-06: Given a manual charge above the configured threshold, when the billing officer submits it, then it has no ledger effect until a different user approves it, and when approved it is posted with its source reference and reason.
15. Dependencies and Integration
- Upstream dependencies: Domain 1 (encounter, ADT events); Domain 3 (orders, medication dispense and administration events); Domain 4 (procedure, diagnostic, theatre, ICU and therapy activity events); MOD-FIN-010.
- Downstream dependencies: MOD-FIN-002, MOD-FIN-003, MOD-FIN-011; Domain 8.
- Required events or APIs: IF-FIN-001 (chargeable event consumption contract); EVT-FIN-001 ChargeCaptured.
16. Open Questions / Assumptions
- The catalogue of chargeable event types and the minimum billing payload each source domain emits are given in IF-FIN-001 (settled 17 Nov 2026, GAP-FIN-001).
- Whether medication is charged on dispense or on administration is a hospital and payer policy decision (DEC-FIN-005).
Requirement FR-FIN-CHG-002: Charge item content, encounter validation and source traceability¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-FIN-CHG-002 |
| Requirement Name | Charge item content, encounter validation and source traceability |
| Requirement Type | Functional |
| Module | Charge Capture and Service Consumption Capture |
| Functional Area | FA-FIN-002 Charge item integrity |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | RCM-004, FIN-001; contributes to ADM-002, ADM-010, ADM-007 |
| Related Business Rule | BR-FIN-002, BR-FIN-004 |
| Related Workflow | WF-FIN-001 |
1. Requirement Statement
The system shall ensure that every charge item preserves its source clinical event, patient, encounter/CIN, service, performer, tariff version, quantity, price and posting status, shall validate the encounter status and context before accepting a charge, and shall allow any charge to be traced to its source event and tariff version.
2. Business Rationale
A charge that cannot be traced to its source cannot be reconciled or defended to a payer. Cancelled or unconfirmed encounters must not silently accept routine downstream charges (ADM-010).
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Charge capture service identity | Create | All mandatory attributes present |
| Billing officer | Read; trace to source | Assigned facility; drill-through to source record is subject to the source domain's authorization |
| Auditor | Read | Read-only |
4. Preconditions - A chargeable event or manual charge request has been received.
5. Trigger - Creation of a charge item; a trace request on an existing charge item.
6. Functional Behaviour
- The system creates a charge item only when all attributes named in the requirement statement are present; performer is mandatory where the source event supplies one.
- The system validates that the encounter exists and that its status permits charging under the configured rule; a charge against a cancelled or unconfirmed encounter is routed to exception review.
- The system supports an approved emergency exception so that charges for emergency care with a provisional encounter or unidentified patient are held against that encounter and follow it when identity is reconciled.
- The system stores the tariff version identifier and the pricing rule outcomes used, so that the price can be recomputed.
- The system provides a trace from a charge item to its source event reference and, through the owning domain's API, to the source record.
- After a patient merge or unmerge in Domain 1, the system re-points account and charge references to the surviving identity while retaining original identifiers, so that financial history remains intact.
- Unmerge (set 17 Nov 2026, per the Domain 1 procedure of FR-ADM-MPI-005 part 6 item 9). On
EncounterCorrected(EVT-ADM-026) with the reason "Reattributed after unmerge", the system moves the account and charges of that encounter to the attributed identity. An issued invoice of the encounter is never edited: it is credited in full and reissued under the attributed identity, linked to the credit note and to the unmerge reference. Deposits, payments and invoices of the two identities with no encounter go to the billing supervisor's review queue in MOD-FIN-011, which closes each item within 2 working days.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Source event reference | Identifier | Yes | Unique per charge outcome; for manual charges, a reference to the source record or downtime form | Traceability |
| Encounter / CIN | Identifier | Yes | Encounter status permits charging | Context |
| Service code | Code | Yes | Active in charge master at service date | Chargeable service |
| Tariff version | Identifier | Yes (system-derived) | Published and effective at service date | Reproducibility |
| Quantity, unit price, extended amount, currency | Decimal, code | Yes | Amount equals quantity times unit price after rule outcomes | Price |
| Posting status | Code | Yes | Valid state | Lifecycle |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-CHG-002-01 | A charge item with a missing mandatory attribute is not posted | Exception raised |
| PR-CHG-002-02 | Encounter status is evaluated as at the event time and at processing time; either being invalid routes to review | No silent acceptance (ADM-010) |
| PR-CHG-002-03 | Event time, recorded time and posting time are stored separately (DAT-004) | Correct temporal queries |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Charge item detail with source trace | Screen / API | Billing officer, auditor | All attributes and source reference |
| Charge trace report | Report | Auditor, finance | Charge to source event and tariff version |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Encounter cancelled | Encounter status | Hold in exception queue | "Encounter is cancelled; charge held for review" |
| Encounter not found | Reference check | Hold in exception queue | "Encounter reference not resolved" |
| Source record no longer accessible to user | Source-domain authorization | Show reference only | "You are not authorized to view the source record" |
11. State and Lifecycle Behaviour
Charge item attributes other than posting status are immutable after posting. Identity re-pointing after merge is recorded as a linked event, not as an edit of the original identifiers.
12. Audit Requirements
The system shall audit charge creation, exception routing with reason, emergency exception use, trace access to source records and identity re-pointing, with before and after references.
13. Security and Privacy Requirements
Trace to the clinical source record is governed by the source domain's access policy; holding a billing role does not by itself grant access to clinical content. Charge descriptions for sensitive services follow the privacy labels supplied by Domain 10.
14. Acceptance Criteria
- AC-01: Given any posted charge item, when an authorized user requests its trace, then the source event, encounter, service, performer, tariff version, quantity, price and posting status are shown.
- AC-02: Given a cancelled encounter, when a routine chargeable event referencing it is received, then no charge is posted and an exception item exists with the reason.
- AC-03: Given an emergency encounter for an unidentified patient, when chargeable events are received, then charges are held against that encounter and remain linked after identity reconciliation.
- AC-04: Given two patients merged and later unmerged in Domain 1, when the accounts are inspected, then each financial history is intact and original identifiers are retained.
15. Dependencies and Integration
- Upstream dependencies: Domain 1 encounter status API and PatientMerged / PatientUnmerged events.
- Downstream dependencies: MOD-FIN-003, MOD-FIN-004, Domain 8.
- Required events or APIs: IF-FIN-001; Domain 1 encounter query API.
16. Open Questions / Assumptions
- The encounter states that permit charging and the emergency exception policy are configuration to be approved by finance and Domain 1 (CFG-FIN-002).
← 5. Detailed Functional Requirements | Contents | Identifier index | 5.2 Module Specification: Tariff, Price List and Package Management →