Skip to content

MOD FIN 007 GLP

Domain specifications / D05-FIN / 5. Detailed Functional Requirements / 5.7 Module Specification: Finance Posting and Reconciliation Interfaces

5.7 Module Specification: Finance Posting and Reconciliation Interfaces

5.7.1 Module Overview

Module ID: MOD-FIN-007 (code GLP)

Purpose:
Translate this domain's ledger entries and stock values into balanced postings for the hospital's finance system using documented mappings, reconcile them, and expose financial resources through standard APIs.

Business Capabilities: - CAP-FIN-007 Finance posting and financial interfaces

Primary Actors: - Finance accountant (ACT-FIN-006), external finance / ERP system (ACT-FIN-017)

Dependencies: - MOD-FIN-003, MOD-FIN-006, MOD-FIN-008, MOD-FIN-009 - Domain 2 finance/ERP adapter and API gateway

5.7.2 Functional Areas

Functional Area ID: FA-FIN-014 Finance posting and reconciliation

Description:
Posting batches, account mappings, acknowledgements and reconciliation with the finance system.

Scope: - Included: mapping of revenue, receivable, cash, adjustment, refund and inventory movements to accounting postings; batch control; reconciliation. - Excluded: the general ledger, period close and statutory reporting (external finance system).

Functional Area ID: FA-FIN-015 Financial API exposure

Description:
Standards-based exposure of financial resources to authorized consumers.

Scope: - Included: FHIR Coverage, Claim, ClaimResponse, ChargeItem and Account where supported by the selected profile. - Excluded: gateway, scopes infrastructure and partner onboarding (Domain 2 and Domain 10).

5.7.3 Detailed Requirements

Requirement FR-FIN-GLP-001: Finance-system posting and reconciliation

Attribute Description
Requirement ID FR-FIN-GLP-001
Requirement Name Finance-system posting and reconciliation
Requirement Type Functional
Module Finance Posting and Reconciliation Interfaces
Functional Area FA-FIN-014 Finance posting and reconciliation
Priority Should (integration, FIN-006); Must (balanced, auditable postings, FIN-003)
Criticality High
Requirement Status Draft
Source FIN-006, FIN-003; contributes to DEP-001, DEP-007, INT-005, NFR-014
Related Business Rule BR-FIN-024, BR-FIN-006
Related Workflow WF-FIN-003, WF-FIN-005

1. Requirement Statement

The system shall produce balanced financial postings from its ledger entries using documented, effective-dated accounting and inventory mappings, deliver them to the hospital's finance system through an open, documented interface that does not require a proprietary ERP, and reconcile delivered postings against acknowledgements and against the source ledger.

2. Business Rationale

FIN-006 requires finance-system integration without a proprietary ERP, with documented accounting and inventory mappings. FIN-003 requires that financial postings balance and are auditable.

3. Actors and Permissions

Actor Permission Conditions
Finance accountant Maintain mappings (draft); review batches; resolve failures; run reconciliation Mapping changes approved by a different user
Finance supervisor Approve mappings; approve re-posting Not the author of the mapping or the requester of the re-post
Finance adapter service identity Deliver batches; record acknowledgements Scoped service identity

4. Preconditions - Account mappings are published for the posting types in use.

5. Trigger - Posting schedule (for example daily); a period-end request; ledger events where near-real-time posting is configured.

6. Functional Behaviour

  1. The system maintains mappings from posting types (charge revenue by service class, receivables by party, payments by method, deposits, adjustments, refunds, taxes, stock receipts, issues and adjustments) to finance-system accounts and dimensions, with effective dates.
  2. The system builds posting batches from ledger entries not yet posted, each batch carrying a unique identifier, control totals and references to its source entries.
  3. The system verifies that each batch balances before delivery; an unbalanced batch is not sent.
  4. The system delivers batches in a documented, open format through the Domain 2 finance adapter, with an idempotency identifier so that redelivery is not double-posted.
  5. The system records acknowledgement, rejection and finance-system reference for each batch and marks the source entries as posted, rejected or pending.
  6. The system posts corrections as new postings in the open period; it never asks the finance system to edit a previous posting.
  7. The system provides a reconciliation report comparing, by period and posting type, ledger totals, batched totals and acknowledged totals, and listing unposted entries.
  8. The system operates fully, including billing and cashiering, when the finance system is unavailable; batches queue for delivery and are shown "Built · waiting to send" until they are sent.
  9. The system re-posts a rejected batch only after the cause is corrected and a finance supervisor other than the requester approves the re-post. While the request waits, the batch is shown "Re-post awaiting approval"; on approval a correcting batch is built in the open period with a reference to the original, which is shown "Re-posted as [batch]".
  10. The account mappings of CFG-FIN-013 are edited by the finance accountant on the finance posting console (UI-FIN-010) and approved there on the governed-content lifecycle by a different user.
  11. Stock movements are valued by the method of CFG-FIN-024, set by the ownership profile of the legal entity (GAP-FIN-007, settled 17 Nov 2026). The reference mapping has posting types for stock receipts against goods received not invoiced, issues to departments and patient use as cost of the consuming centre, transfers between stores at carrying value, and write-offs of expired, damaged and recalled stock and stocktake variances. While no ownership profile is set, stock movements are not placed in a batch; their finance posting status is "Not yet posted · valuation method not set", the stock posting types show "Valuation method not set" on the console, and they are posted in the open period once the profile is set.
  12. Chart of accounts (settled 17 Nov 2026, GAP-FIN-006). The chart of accounts belongs to the hospital's finance system; the HIS holds no chart of its own, only the mapping of its posting types and dimensions to finance-system account codes. The mapping is validated against the account list imported from the finance system, and an account code that is not in that list is refused.
  13. Reference mapping by ownership profile. The HIS ships a reference mapping, used as the first draft of CFG-FIN-013 and chosen by the legal entity's ownership profile: a private for-profit hospital (PT) reporting under SAK (PSAK 201 presentation, PSAK 115 revenue from contracts with customers); a private non-profit hospital (yayasan) reporting under ISAK 335, with net assets with and without restrictions; a public hospital (BLU or BLUD) reporting under the government accounting standards (SAP, accrual basis) with the Bagan Akun Standar of its jurisdiction, and, for a Ministry of Health vertical hospital, the SAK business report of HK.02.02/D/40376/2024. The finance accountant replaces the reference codes with the hospital's own before the first posting.
  14. Posting types. Besides those of part 6.1, the reference mapping has posting types for unbilled revenue of patients still in hospital, patient deposits held as a liability, doctors' fees (jasa medis) payable where the hospital collects them for the practitioner, discounts and contractual adjustments as reductions of revenue, write-offs and the allowance for doubtful receivables, payer cash not yet applied, and the clearing accounts of the cash points, the bank terminal, QRIS and the online payment provider.
  15. Dimensions instead of extra accounts. Each posting line carries dimensions rather than one account per combination: legal entity and facility, revenue or cost centre (the unit or installation), service category (outpatient, inpatient, emergency, diagnostic, pharmacy, theatre), payer type (self-pay, private insurer, corporate guarantor; JKN when added), care class, and practitioner where a fee is passed through. Dimensions the finance system does not hold are kept in the HIS and reported there.
  16. Granularity and frequency. By default a batch is built once a day after the cut-off at 23:59 facility time and after the cashier sessions of the day are closed, and summarises entries by posting date, posting type, account and dimension set. Every summarised line keeps the list of its source entries, so a finance user can drill back from a journal line to the charges, payments and adjustments behind it on UI-FIN-010. Period-end closing builds a final batch for the period and then blocks postings dated in it.
  17. Daily reconciliation. Each day the system compares its sub-ledger balances with the finance system's control accounts for receivables by payer, unbilled revenue, patient deposits, payer cash not yet applied and each clearing account, and raises an exception for any difference.
  18. Finance system and file format (settled 17 Nov 2026, GAP-FIN-006). The HIS posts to whatever finance system the hospital runs, through one documented journal import (IF-FIN-007), in one of two bindings chosen per legal entity in CFG-FIN-013: (a) a journal file in CSV (UTF-8, comma-separated, one header record with the batch identifier, posting date, line count and control totals, then one record per journal line) placed on the finance system's SFTP server, with an acknowledgement file returned to an agreed folder; or (b) the same content as JSON through the finance system's REST API, where it offers one. The file layout and the JSON schema are published with the interface. Where the hospital has no finance system, the reference target is ERPNext (open source, GPLv3): batches post as Journal Entries through its REST API, and its account list is imported for the mapping check of part 6.12. A new finance system needs only a new adapter mapping in Domain 2, never a change to this domain.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Posting type to account mapping Configuration Yes Account code present; effective period valid Accounting mapping
Posting period / cut-off Date-time Yes Not in the future Batch scope
Finance-system acknowledgement Structured From finance system References a known batch Outcome

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-GLP-001-01 A ledger entry is included in exactly one accepted posting batch No double or missed posting
PR-GLP-001-02 Batch debits equal credits Balanced posting
PR-GLP-001-03 An entry with no mapping is excluded and raised as an exception; the rest of the batch proceeds only if it still balances Controlled failure

9. Output Requirements

Output Format Recipient Description
Posting batch Documented open format Finance system Journal-level postings with reconciliation identifiers
Posting reconciliation report Report Finance accountant, auditor Ledger versus posted versus acknowledged
Mapping documentation Document / export Finance, integration Accounting and inventory mappings

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Unmapped posting type Mapping lookup Exception; entry held "No account mapping for posting type"
Batch rejected by finance system Acknowledgement Mark rejected; exception with reason "Batch rejected: reason"; correct and re-post
No acknowledgement within configured period Timer List as stale "Batch awaiting acknowledgement"

11. State and Lifecycle Behaviour

Finance posting batch: Built, Sent, Acknowledged, Rejected (section 4.3). A Built batch held by a finance-system outage is shown "Built · waiting to send"; Acknowledged is shown "Posted to general ledger · [journal reference]", never "Closed"; a Rejected batch shows "Re-post awaiting approval" while its re-post waits for approval and "Re-posted as [batch]" afterwards. Ledger entries and stock movements carry a finance posting status: Not yet posted, Posted to general ledger, Rejected by general ledger.

12. Audit Requirements

The system shall audit mapping changes, batch creation, delivery, acknowledgement, rejection, re-posting and reconciliation runs.

13. Security and Privacy Requirements

Postings to the finance system are aggregated or pseudonymised to the level the finance system needs; patient-identifiable detail is not sent unless required by the agreed mapping (data minimization, SEC-012). The interface uses authenticated, encrypted system-to-system connectivity.

14. Acceptance Criteria

  • AC-01: Given a day's charges, payments, refunds and adjustments, when the posting batch is built, then debits equal credits and control totals equal the ledger totals for the period.
  • AC-02: Given a delivered batch that is redelivered after a timeout, when acknowledged, then the finance system holds one posting and source entries are marked posted once.
  • AC-03: Given the finance system is unavailable, when billing and cashiering continue, then no user workflow is blocked and batches are delivered after recovery.
  • AC-04: Given a period, when the reconciliation report is run, then ledger, batched and acknowledged totals agree or every difference is listed as an identified item.
  • AC-05: Given the documented open format, when an independent consumer parses a batch using the published specification, then it succeeds without proprietary software.
  • AC-06: Given a rejected batch whose cause is corrected, when the accountant requests a re-post, then nothing is sent until a different user approves it, and the correcting batch references the original.

15. Dependencies and Integration

16. Open Questions / Assumptions

  • The HIS is a sub-ledger that posts summarised journals to the hospital general ledger; it is not the general ledger (DEC-FIN-003, resolved 2026-11-17). The chart of accounts, granularity and frequency are set in parts 6.12 to 6.17, and the finance system binding and file format in part 6.18 (GAP-FIN-006, closed 17 Nov 2026).

Requirement FR-FIN-GLP-002: FHIR financial resource exposure

Attribute Description
Requirement ID FR-FIN-GLP-002
Requirement Name FHIR financial resource exposure
Requirement Type Functional
Module Finance Posting and Reconciliation Interfaces
Functional Area FA-FIN-015 Financial API exposure
Priority Should
Criticality Medium
Requirement Status Draft
Source RCM-012; contributes to INT-003, CFG-004, NFR-009
Related Business Rule BR-FIN-022
Related Workflow WF-FIN-002, WF-FIN-004

1. Requirement Statement

The system shall expose appropriate FHIR financial resources, including Coverage, Claim, ClaimResponse, ChargeItem and Account, where supported by the selected FHIR release and profile, with access controls enforced and conformance verified by API tests.

2. Business Rationale

RCM-012. Standards-based exposure supports external billing integration and patient-authorized access without exposing internal schemas (PRS section 7.2).

3. Actors and Permissions

Actor Permission Conditions
Authorized internal or external client Read (and other interactions the profile permits) Scoped authorization; patient, purpose and data scope enforced
API product owner Publish profiles and capability statement entries Through the API catalogue (CFG-004)

4. Preconditions - The FHIR release and financial profiles have been selected by governance.

5. Trigger - An API request from an authorized client.

6. Functional Behaviour

  1. The system maps its internal coverage, claim, claim response, charge item and account records to the selected FHIR profiles with versioned, tested mappings.
  2. The system publishes the supported financial resources, interactions, search parameters and scopes in the capability statement and API catalogue.
  3. The system enforces authorization at the service boundary for every request; token scope alone is not treated as sufficient domain authorization.
  4. The system exposes corrections as the current state together with references to superseded or reversed records, without removing history.
  5. The system rejects unsupported elements or interactions with an actionable error rather than silently ignoring them.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Access token and scopes Token Yes Valid, unexpired, scope covers resource and patient Authorization
Resource type, identifier or search parameters FHIR request Yes Supported by capability statement Query

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-GLP-002-01 The internal schema is never exposed directly Stable contract
PR-GLP-002-02 Mapping version is traceable for each response Lineage

9. Output Requirements

Output Format Recipient Description
FHIR financial resources FHIR (selected release and profile) Authorized clients Coverage, Claim, ClaimResponse, ChargeItem, Account
Capability statement entries FHIR CapabilityStatement API consumers Supported behaviour

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Scope does not cover patient or resource Authorization Deny FHIR OperationOutcome: forbidden
Unsupported search parameter Capability check Reject OperationOutcome naming the parameter

11. State and Lifecycle Behaviour

Read exposure does not change record state. Any write interaction, if a profile permits one, is processed through the owning module's rules.

12. Audit Requirements

The system shall audit every API read, search and export of financial resources with client identity, patient, purpose, scope and outcome.

13. Security and Privacy Requirements

Scoped, revocable authorization; consent-aware release through the Domain 10 policy decision; privacy labels applied to claim content.

14. Acceptance Criteria

  • AC-01: Given the selected profile, when the API conformance suite is run, then the financial resource profiles and access controls pass.
  • AC-02: Given a client authorized for one patient, when it requests another patient's Account, then the request is denied and audited.
  • AC-03: Given a reversed charge, when ChargeItem is read, then its status reflects the reversal and the original remains retrievable.

15. Dependencies and Integration

16. Open Questions / Assumptions

  • The FHIR release and financial profiles are a governance decision (PRS section 19.3 "FHIR and HL7 profile") (DEC-FIN-009).

← 5.6 Module Specification: Cashiering, Receipts, Refunds and Payment Allocation | Contents | Identifier index | 5.8 Module Specification: Inventory Item Master and Stock Ledger →