Domain specifications / D05-FIN / 8. Integration and Interoperability Requirements
8. Integration and Interoperability Requirements¶
8.1 Integration Overview¶
This domain is a downstream consumer of patient, encounter and clinical activity and an upstream provider of coverage status, stock availability, procurement status and financial measures. Three rules shape every integration.
First, clinical-to-financial integration is asynchronous. Domains 1, 3 and 4 publish durable, versioned events; this domain consumes them idempotently through an inbox. Nothing in this domain is on the synchronous path of a clinical transaction (RCM-003, INF-004). The only synchronous calls made into this domain from other domains are queries and requests whose failure is tolerated by the caller: eligibility request, coverage and authorization status, stock availability and lot status, and the patient statement read model.
Second, all external exchange (payers, finance, ERP and procurement systems, ADC devices) passes through the Domain 2 governed integration layer; there are no point-to-point connections (PRS section 9.1). This domain defines canonical contracts; adapters map them to partner formats.
Third, every exchange is reconcilable: each transaction carries a correlation identifier and business identifiers, acknowledgements are recorded, and sent, acknowledged, rejected and processed messages are reconciled to business transactions (INT-005).
In the first release the payers are self-pay, private insurers and corporate guarantors (DEC-FIN-003). Guarantee letters are captured by staff, manually or from the administrator's portal, so the private-payer integrations (EXT-FIN-001 to EXT-FIN-004) start as staff workqueues with document capture behind the canonical contracts; a system adapter is added for a payer that offers an interface. No X12 or EDIFACT is built. JKN (BPJS Kesehatan) and its interfaces come in a later release (EXT-FIN-009).
8.2 Internal Integration Catalogue¶
| Integration ID | Source Module | Target Module | Purpose | Pattern |
|---|---|---|---|---|
| INT-FIN-001 | Domain 1 Patient Administration | MOD-FIN-001, MOD-FIN-003 | Encounter and ADT events for account opening, accommodation charging and billing triggers: EncounterOpened (EVT-ADM-008), PatientAdmitted (EVT-ADM-009), PatientTransferred (EVT-ADM-010), PatientDischarged (EVT-ADM-011), PatientLeaveStarted and PatientReturnedFromLeave (EVT-ADM-012, EVT-ADM-013), EncounterClosed (EVT-ADM-014), EncounterCancelled (EVT-ADM-015) and EncounterCorrected (EVT-ADM-026) |
Event |
| INT-FIN-002 | Domain 1 Patient Identity & MPI | MOD-FIN-003, MOD-FIN-005 | PatientMerged / PatientUnmerged for re-pointing accounts and coverage | Event |
| INT-FIN-003 | Domain 1 registration and scheduling | MOD-FIN-005 | Eligibility request and coverage creation from captured payer references; verification status returned | API (request) + Event (result) |
| INT-FIN-004 | Domain 3 Orders and Medication | MOD-FIN-001 | Medication charge sources: MedicationDispensed or MedicationAdministered, one of the two per item class and payer rule (DEC-FIN-005); order events for reconciliation only (PR-CHG-001-06 in MOD-FIN-001) |
Event |
| INT-FIN-005 | Domain 3 Medication (dispensing, returns, ADC) | MOD-FIN-008 | Stock-affecting medication events for ledger posting and reconciliation | Event |
| INT-FIN-006 | Domain 4 Diagnostics & Procedures | MOD-FIN-001, MOD-FIN-010 | Charge source: ChargeableActivityRecorded (EVT-ANC-020) only. Stock: ImplantOrConsumableUsed (EVT-ANC-025), charged through INT-FIN-013. Reconciliation only, never charged: ProcedureCompleted, ResultFinalized, TherapySessionCompleted, BloodUnitIssued, TransfusionStarted / TransfusionCompleted (PR-CHG-001-06 in MOD-FIN-001) |
Event |
| INT-FIN-007 | Domain 6 HIM | MOD-FIN-004 | Coding record and chart-completion status for claim readiness: ChartCompleted, CodingFinalized, CodingRevised, RecordReopened and the coding status API IF-HIM-001; in return, ClaimReturnedForRecoding (EVT-FIN-017) for a coding-related rejection or denial |
Event + API |
| INT-FIN-008 | MOD-FIN-008, MOD-FIN-010, MOD-FIN-009 | Domains 3 and 4 workspaces | Stock availability, lot status and procurement status | API + Event |
| INT-FIN-009 | MOD-FIN-003, MOD-FIN-006 | Domain 7 Patient Engagement | Billing statement and payment status read model; online payment start and its status (IF-FIN-012) | API + Event |
| INT-FIN-010 | All FIN modules | Domain 8 Analytics | Financial and supply-chain events and governed extracts; daily and fiscal-period control totals as FinancialControlTotalsReported (EVT-FIN-018) per the Domain 8 control-total contracts |
Event / Batch |
| INT-FIN-011 | All FIN modules | Domain 10 shared services | Authorization decisions, audit events, workflow tasks, notifications, terminology validation, master and reference data | API + Event |
| INT-FIN-012 | MOD-FIN-005, MOD-FIN-004 | Domain 3 workspaces | Authorization status for an order (informational) | API |
| INT-FIN-013 | MOD-FIN-010 | MOD-FIN-001 | Chargeable supply consumption | Event (internal) |
8.3 External Integration Catalogue¶
| Integration ID | External System | Direction | Purpose | Standard / Protocol |
|---|---|---|---|---|
| EXT-FIN-001 | Private insurers, third-party administrators and corporate guarantors | Bidirectional | Eligibility and guarantee confirmation | First release: a manual check, with no real-time exchange. "Verify eligibility" creates a verification task for the insurance verification officer and sets the coverage to Pending verification; the officer verifies against the guarantee letter or the administrator's portal and records Verified (method manual, source, reference) or Not eligible, with the document (FR-FIN-PAY-001 part 6.8). Later: payer API behind the canonical contract, FHIR Coverage-related exchange where the payer supports it |
| EXT-FIN-002 | Private insurers, third-party administrators and corporate guarantors | Bidirectional | Authorization (guarantee) request, extension and response | First release: manual recording with the guarantee letter attached, once, on the coverage workspace, with payer reference, validity, services, quantities and the guaranteed amount where the letter states one. An extension is recorded as a new version of the authorization (FR-FIN-PAY-003 part 6.6). Later a payer API where offered |
| EXT-FIN-003 | Private insurers, third-party administrators and corporate guarantors | Bidirectional | Claim submission, acknowledgement, status, adjudication | First release: claim package (invoice, itemised bill, discharge summary) produced for upload to the payer's portal or sending by email, with status recorded by staff. Later: payer API; FHIR Claim / ClaimResponse where supported (RCM-012). No X12 (DEC-FIN-003). The clinical documents of the package, such as the discharge summary, carry the certified electronic signature applied in Domain 3 (DEC-CLI-009); the invoice and itemised bill are not signed |
| EXT-FIN-004 | Private insurers, third-party administrators and corporate guarantors | Inbound | Remittance advice | First release: bank transfer matched to the payer's settlement statement, entered or imported by staff. Each remittance records the bank transfer reference and its source (entered, imported, payer file); a statement is imported from a file in the published import template with a validation report. Money that arrives before the adjudication is recorded is held as unapplied payer cash (FR-FIN-CLM-003 parts 6.1 and 6.8). Later: payer file or API |
| EXT-FIN-005 | Finance / ERP system | Outbound (with acknowledgement) | Charge, payment, adjustment, refund, stock and journal postings with reconciliation identifiers | Documented journal import (FIN-006, DEP-007): CSV file over SFTP with an acknowledgement file, or JSON through the finance system's REST API; reference target ERPNext Journal Entry API where the hospital has no finance system (FR-FIN-GLP-001 part 6.18; GAP-FIN-006) |
| EXT-FIN-006 | Procurement / ERP system | Bidirectional | Requisition, purchase order, order status, goods receipt | Documented open format (FIN-006): JSON through the procurement system's REST API, or CSV files over SFTP; reference target the ERPNext buying module (GAP-FIN-006) |
| EXT-FIN-007 | Partner billing or departmental systems | Bidirectional | Charge detail exchange where a partner system requires HL7 v2 | HL7 v2 DFT / BAR as required (PRS section 9.2; REF-004 section 8.3) |
| EXT-FIN-008 | Authorized external applications | Outbound | Financial resources for approved consumers | FHIR financial resources per selected release and profile (RCM-012) |
| EXT-FIN-009 | BPJS Kesehatan (JKN): VClaim and E-Klaim | Bidirectional | Later release, not the first (DEC-FIN-003). VClaim: eligibility, SEP and the BPJS referral (rujukan), created from the external referral of Domain 3 (EXT-CLI-007); E-Klaim: INA-CBG grouping (iDRG when live, switched by discharge date) and claim submission | JSON web services per the current official BPJS specification, in the Indonesia conformance pack (DEC-ISE-010). Antrean online and Aplicares belong to Domain 1 |
| EXT-FIN-010 | Payment channels | Bidirectional | Payment initiation and confirmation; online payment orders and settlement reports | Bank card terminal (amount pushed, approval reference returned); QRIS with a dynamic code; bank transfer and virtual account. For portal payments, the provider's hosted payment page (QRIS, virtual account or card): order registration, signed result notification, status query and daily settlement report, with the provider fee (FR-FIN-CSH-001 parts 6.9 to 6.12). Provider-specific interfaces behind an adapter; card data never enters or is stored in the HIS (DEC-FIN-008) |
| EXT-FIN-011 | SIPNAP (Kemenkes narcotics and psychotropics reporting system) | Outbound | Monthly report of narcotics and psychotropics per Permenkes 5/2023, due by the 10th of the following month (FR-FIN-INV-005 part 6.10; REP-FIN-023). This domain owns the content and the pharmacy in charge signs it off | Upload of the report in the current SIPNAP format, or entry by the pharmacy from the signed report where SIPNAP offers no interface; transmission through Domain 2 |
Automated dispensing cabinets connect to the medication workflow in Domain 3 through Domain 2 (ANC-009); this domain receives their stock effect through INT-FIN-005 and has no direct device interface.
8.4 Interface Specification¶
The first two interfaces are specified in full. The remaining interfaces follow the same conventions for authentication, error handling, idempotency and monitoring; their distinguishing content is given in the summary table at the end of this subsection.
Interface IF-FIN-001: Chargeable event consumption¶
Interface Purpose: Receive the events from which charges are created.
Producer: Domain 1 Patient Administration; Domain 3 Orders & Results and Medication; Domain 4 Diagnostics & Procedures; MOD-FIN-010.
Consumer: MOD-FIN-001.
Interface Type: Event.
Protocol and Standard: Versioned domain events on the Domain 2 event backbone; schemas registered and validated (INF-001, INF-002). No specific broker product is implied.
Authentication and Authorization: Authenticated service identities over encrypted channels; the consumer is authorized per topic.
Request Structure: Event envelope (IF-ISE-002): event identifier, event type, schema version, aggregate identifier, per-aggregate sequence, occurred time, recorded time, producer, correlation identifier. Billing payload (minimum): patient identifier, encounter/CIN, facility, service or item reference, performer or performing unit, quantity and unit, order or source record reference, and for cancellations the identifier of the event being cancelled. Each producer registers its event schema in the Domain 2 schema registry with these fields mandatory; this domain validates every event against the registered version.
Event catalogue (settled 17 Nov 2026, GAP-FIN-001):
- Charged. Domain 1:
EncounterOpened,PatientAdmitted,PatientTransferred,PatientDischarged,PatientLeaveStartedandPatientReturnedFromLeavefor registration and accommodation charges (INT-FIN-001). Domain 3:MedicationDispensedorMedicationAdministered, one of the two per item class and payer rule (INT-FIN-004). Domain 4:ChargeableActivityRecordedonly (INT-FIN-006). This domain: chargeable supply consumption from MOD-FIN-010, fed byImplantOrConsumableUsed(INT-FIN-013). - Reversing or correcting.
EncounterCancelled,EncounterCorrected,MedicationReturned, and any cancellation version of a charged event that names the event it cancels. - Stock-affecting (IF-FIN-010).
MedicationDispensed(including automated dispensing cabinet releases),MedicationReturnedandImplantOrConsumableUsed. - Reconciliation only, never charged. Order events (
OrderPlaced,OrderCancelled,OrderDiscontinued,OrderCompleted),ProcedureCompleted,ResultFinalized,TherapySessionCompleted,BloodUnitIssued,TransfusionStartedandTransfusionCompleted.
Source event counts for reconciliation come from the Domain 2 backbone: the per-subscription counts of published, delivered, acknowledged and dead-lettered events (FR-ISE-EVT-002 part 8), by event type, facility and day, with the event identifiers kept in the domain event archive for 2 years (retention baseline). No separate count feed is asked of the producers. This domain compares the counts and identifiers with its inbox outcomes (FR-FIN-EXC-001).
Response Structure: None to the producer. The consumer acknowledges to the backbone after durable inbox write.
Error Handling: Schema-invalid events are quarantined with reason and replay path. Business failures (no mapping, no tariff, invalid encounter) become exception items in MOD-FIN-011. Transient failures are retried with backoff, then dead-lettered under Domain 2 controls. No failure is returned to or blocks the producer.
Idempotency and Duplicate Handling: Processing is keyed on event identifier; duplicates are acknowledged without effect. Producers guarantee ordering per aggregate only (per order, fulfilment order, unit or case), not per encounter, so this domain does not rely on arrival order across aggregates (INF-003). A cancellation or correction names the event or source record it reverses; if it arrives before its original, it is held until the original arrives, or until the hold limit passes and it becomes an exception item in MOD-FIN-011. Within one aggregate, a gap in the envelope sequence holds later events for that aggregate in the same way.
Monitoring and Audit: Consumer lag, backlog age, quarantine and exception counts are monitored. Charge creation is audited with the event identifier and correlation identifier. Source-to-charge reconciliation runs per FR-FIN-EXC-001.
Interface IF-FIN-004: Claim submission, status and remittance¶
Interface Purpose: Exchange claims, acknowledgements, status, adjudication and remittance with payers.
Producer: MOD-FIN-004 (outbound claim); private insurer, third-party administrator or corporate guarantor (inbound responses and remittance).
Consumer: Private insurer, third-party administrator or corporate guarantor (outbound); MOD-FIN-004 (inbound).
Interface Type: First release: staff workqueue producing a claim package for the payer's portal or email, with responses and remittance recorded by staff. Later: REST API or file, per payer.
Protocol and Standard: Canonical claim, claim-response and remittance contracts defined by this domain; adapter-specific wire format per payer (FR-FIN-CLM-004). No X12 or EDIFACT (DEC-FIN-003). The JKN adapters (VClaim, E-Klaim) map to the same contracts when JKN enters scope (EXT-FIN-009).
Authentication and Authorization: Partner endpoint registration, certificates and credentials managed by Domain 2 (INT-006); mutual TLS for system-to-system interfaces where appropriate (SEC-018).
Request Structure: Canonical claim: claim identifier, idempotency key, payer and plan, coverage and subscriber identifiers, patient and encounter identifiers, classification codes with code-set version, authorization references, lines (service, date, quantity, amount, charge references), totals, attachments by reference.
Response Structure: Acknowledgement (accepted or rejected with reason, payer claim reference); status updates; adjudication (per line: allowed, paid, adjusted, denied with reason codes); remittance (payment reference, date, total, lines).
Error Handling: Timeouts lead to queued retry with backoff and a visible pending-transmission state. Negative acknowledgements set the claim to Rejected and route it to a workqueue. Invalid inbound messages are quarantined. Unmatched responses and remittance lines become exception items.
Idempotency and Duplicate Handling: Outbound claims carry an idempotency key; inbound messages are de-duplicated by payer message identifier and remittance reference.
Monitoring and Audit: Message volume, acknowledgement rate, queue depth, retries, latency, stale claims and partner availability are monitored on the integration operations dashboard (PRS Appendix B). Each submission is audited as a disclosure with payload reference, adapter and mapping version.
Summary of remaining interfaces¶
| Interface ID | Interface Name | Producer → Consumer | Type | Distinguishing content |
|---|---|---|---|---|
| IF-FIN-002 | Pricing API | MOD-FIN-002 → MOD-FIN-001, MOD-FIN-003 | Internal API | Request: service, quantity, service date, facility, coverage context. Response: price, applied rule versions, tariff version. Read-only, deterministic |
| IF-FIN-003 | Eligibility, coverage and authorization API | Domain 1, FIN workspaces → MOD-FIN-005 → payer workqueue or adapter | REST API; in the first release a request creates a verification task for the insurance verification officer, who verifies against the guarantee letter or the administrator's portal | Request: patient, encounter or appointment, payer, plan, member identifier, service date. Response: status from the one set of section 4.3 (Recorded, Pending verification, Verified, Not eligible, Inactive) with method, the flag "Old · [check date]" where it applies, plan, validity, benefits, timestamp. In the first release the response to a new request is Pending verification. Timeout returns Pending verification, never an assumed positive |
| IF-FIN-005 | Coding status and code retrieval | Domain 6 → MOD-FIN-004 | Event + REST API (Domain 6 contract) | Coding status and chart-completion status per encounter; classification codes with code-set version and coding record version. Read-only for this domain. Settled 17 Nov 2026 (GAP-FIN-002): Domain 6 serves IF-HIM-001 and publishes EVT-HIM-003, EVT-HIM-005, EVT-HIM-006 and EVT-HIM-015; a "not final" answer keeps the claim Draft (FR-FIN-CLM-001 parts 6.8 and 6.9) |
| IF-FIN-006 | Statement and payment status read API | MOD-FIN-003, MOD-FIN-006 → Domain 7 | REST API | Invoices, payments and outstanding amounts for one verified patient or authorized representative; privacy labels applied |
| IF-FIN-007 | Finance posting interface | MOD-FIN-007 → finance / ERP system | CSV file over SFTP, or JSON over the finance system's REST API (FR-FIN-GLP-001 part 6.18) | Header: batch identifier (idempotency key), legal entity, posting date, line count, total debit and total credit. Line: line number, account code, debit or credit amount in IDR, dimensions (facility, centre, service category, payer type, care class, practitioner), description and the drill-back reference. Acknowledgement: batch identifier, accepted or rejected with reason per line, finance-system journal reference |
| IF-FIN-008 | FHIR financial resources | MOD-FIN-007 → authorized clients via Domain 2 gateway | FHIR REST API | Coverage, Claim, ClaimResponse, ChargeItem, Account per selected profile; scoped authorization |
| IF-FIN-009 | Item, availability and lot status API | MOD-FIN-008, MOD-FIN-010 → Domains 3 and 4 | REST API + Event | Available quantity by item, location and lot; lot status and expiry; expected resupply; "as at" timestamp. Read-only |
| IF-FIN-010 | Stock-affecting event consumption | Domains 3 and 4 → MOD-FIN-008, MOD-FIN-010 | Event | Source event identifier, item, lot where captured, quantity, location (store, ward, cabinet, pocket), order or eMAR reference, patient and encounter for patient-level consumption, user and witness references; Domain 4 unit, serial or lot identifier for blood products, implants and reagents |
| IF-FIN-012 | Online payment start and result | Domain 7 portal → MOD-FIN-006 → payment provider adapter (EXT-FIN-010) → MOD-FIN-006 | REST API (portal command and status read); provider callback and status query through the Domain 2 adapter | Start request: statement, amount, method, idempotency key, requester and patient acted for. Response: order reference, state, hosted-page link carrying only the provider's order reference. Status: Created, Awaiting payment, Paid (with receipt reference), Failed, Expired. Provider result: order reference, status, amount, transaction reference, signature; verified and confirmed by status query before posting. Settlement report: order reference, amount, fee, settlement date. No card data or bank credential in any message |
| IF-FIN-011 | Procurement interface | MOD-FIN-009 ↔ procurement / ERP system | JSON over REST, or CSV file over SFTP, documented open format | Requisition, purchase order, order confirmation and status, goods receipt; item, unit, location and supplier mappings |
8.5 Event Requirements¶
Events 001 to 008 use the names given for the Revenue Cycle and Inventory & Procurement bounded contexts in REF-003 section 4.2. Events 009 to 017 are proposed by this specification, to be validated in design. Event 018 follows the Domain 8 control-total contract.
| Event ID | Event Name | Producer | Consumers | Trigger |
|---|---|---|---|---|
| EVT-FIN-001 | ChargeCaptured | MOD-FIN-001 | MOD-FIN-003, MOD-FIN-004, Domain 8 | Charge item posted |
| EVT-FIN-002 | InvoiceIssued | MOD-FIN-003 | MOD-FIN-004, MOD-FIN-007, Domain 1, Domains 7 and 8 | Invoice issued |
| EVT-FIN-003 | ClaimSubmitted | MOD-FIN-004 | Domain 8 | Claim transmitted |
| EVT-FIN-004 | ClaimAdjudicated | MOD-FIN-004 | MOD-FIN-003, Domain 8 | Payer adjudication recorded (paid, denied or adjusted) |
| EVT-FIN-005 | PaymentPosted | MOD-FIN-006, MOD-FIN-004 | MOD-FIN-007, Domains 7 and 8 | Patient or payer payment posted |
| EVT-FIN-006 | StockReceived | MOD-FIN-009 / MOD-FIN-008 | MOD-FIN-007, MOD-FIN-010, Domain 8 | Goods receipt posted |
| EVT-FIN-007 | StockIssued | MOD-FIN-008 / MOD-FIN-010 | MOD-FIN-007, MOD-FIN-010, Domain 8 | Issue, transfer or consumption movement posted |
| EVT-FIN-008 | ReorderTriggered | MOD-FIN-010 | MOD-FIN-009, Domain 8 | Reorder point reached |
| EVT-FIN-009 | TariffPublished (proposed) | MOD-FIN-002 | MOD-FIN-001, MOD-FIN-003, Domain 8 | Tariff version or rule set published |
| EVT-FIN-010 | ChargeReversed / AdjustmentPosted (proposed) | MOD-FIN-003, MOD-FIN-001 | MOD-FIN-004, MOD-FIN-007, Domain 8 | Reversal or adjustment posted |
| EVT-FIN-011 | CoverageVerified (proposed) | MOD-FIN-005 | Domain 1, MOD-FIN-003, MOD-FIN-004, Domain 8 | Verification status changes |
| EVT-FIN-012 | RefundPaid (proposed) | MOD-FIN-006 | MOD-FIN-007, Domains 7 and 8 | Refund paid out |
| EVT-FIN-013 | FinancePostingCompleted (proposed) | MOD-FIN-007 | Domain 8 | Batch acknowledged or rejected |
| EVT-FIN-014 | LotStatusChanged (proposed) | MOD-FIN-008 | Domains 3 and 4, MOD-FIN-010, Domain 8 | Lot expired, placed On hold (including recall) or released |
| EVT-FIN-015 | PurchaseOrderIssued (proposed) | MOD-FIN-009 | MOD-FIN-010, Domain 8 | Purchase order issued or status changed |
| EVT-FIN-016 | FinancialExceptionRaised (proposed) | MOD-FIN-011 | Domain 8, Domain 10 notification | Exception item created or escalated |
| EVT-FIN-017 | ClaimReturnedForRecoding (proposed) | MOD-FIN-004 | Domain 6, Domain 8 | Claim rejected or denied with a coding-related reason, or referred to coding by the claims officer |
| EVT-FIN-018 | FinancialControlTotalsReported | MOD-FIN-011 | Domain 8 | Daily control totals for the previous local day (by 01:00 local); re-sent with a higher version on correction. Also published at fiscal period close |
Requirements common to all events produced by this domain:
- Purpose. Each event states a completed business fact owned by this domain; it is not a command.
- Schema and version. Events are versioned, schema-validated and registered; schema evolution is backward-compatible within a major version (INF-002, SDLC-006).
- Required identifiers. Unique event identifier; business identifier of the subject (charge item, invoice, claim, payment, movement, lot, order); patient and encounter identifiers where the subject is patient-specific; facility.
- Timestamps and correlation. Occurred time, recorded time and a correlation identifier that links to the originating source event or user transaction.
- Delivery and ordering. At-least-once delivery through a transactional outbox. Ordering is preserved per account for financial events and per item and location for stock events, where correctness requires it (INF-003).
- Retry and dead-letter handling. Provided by the Domain 2 backbone: retry with backoff, dead-letter and controlled replay (INT-004).
- Duplicate detection and idempotency. Consumers de-duplicate on event identifier. This domain applies the same rule to events it consumes.
- Event-specific payload.
InvoiceIssued(EVT-FIN-002) carries the encounter (CIN) or episode and a final-invoice flag, which Domain 1 uses for encounter closure.ClaimReturnedForRecoding(EVT-FIN-017) is the single event for coding-related rejections and denials; Domain 6 uses it, notClaimAdjudicated. It carries the claim reference, the encounter, the coding record version the claim was built from, and per affected line the payer reason code and reason text.FinancialControlTotalsReported(EVT-FIN-018) carries the producing domain, facility, business date (local calendar day) or fiscal period, cutoff time in UTC and one line per event type with the schema version, the count of events published with an event time in the window and the sum of amounts per currency, forChargeCaptured,ChargeReversed / AdjustmentPosted,InvoiceIssued,ClaimSubmitted,ClaimAdjudicated,PaymentPosted,RefundPaid,StockReceivedandStockIssued. It carries no patient identifiers. - Retention and replay. Events are retained for controlled replay under the Domain 2 policy of the enterprise retention baseline: 7 days on the broker topics and 2 years in the domain event archive (GAP-FIN-009); replay into billing is never blind and always passes through idempotent consumers (REF-003 section 12.3). Events carry identifiers and amounts, not clinical narrative; EVT-FIN-014 to EVT-FIN-016 carry no patient data unless the exception concerns a patient-specific transaction.
Events consumed¶
The events this domain consumes, as listed in each publisher's section 8.5. The publisher's table is the single record of who consumes an event: to add or remove a consumer, change the publisher's Consumers column and rebuild.
| Event | Name | Producer | Producer's trigger | Condition |
|---|---|---|---|---|
| EVT-ADM-001 | PatientResolved | D01-ADM | A search or cross-reference resolves a person for a workflow | When this domain is the requesting domain |
| EVT-ADM-002 | IdentityUpdated | D01-ADM | Demographic or identifier change | – |
| EVT-ADM-005 | PatientMerged | D01-ADM | Merge committed | – |
| EVT-ADM-006 | PatientUnmerged | D01-ADM | Unmerge committed | – |
| EVT-ADM-007 | PatientRegistered | D01-ADM | Person registered at a facility | – |
| EVT-ADM-008 | EncounterOpened | D01-ADM | Encounter created | – |
| EVT-ADM-009 | PatientAdmitted | D01-ADM | Admission confirmed | – |
| EVT-ADM-010 | PatientTransferred | D01-ADM | Transfer completed | – |
| EVT-ADM-011 | PatientDischarged | D01-ADM | Discharge recorded | – |
| EVT-ADM-012 | PatientLeaveStarted | D01-ADM | Leave recorded | – |
| EVT-ADM-013 | PatientReturnedFromLeave | D01-ADM | Return recorded | – |
| EVT-ADM-014 | EncounterClosed | D01-ADM | Closure criteria met or waived | – |
| EVT-ADM-015 | EncounterCancelled | D01-ADM | Encounter cancelled | – |
| EVT-ADM-016 | BedStateChanged | D01-ADM | Any bed state change | – |
| EVT-ADM-026 | EncounterCorrected | D01-ADM | Compensating correction of an encounter attribute or transition | – |
| EVT-ISE-001 | InterfaceMessageQuarantined | D02-ISE | A message fails validation or routing | When this domain is the owning domain |
| EVT-ISE-002 | InterfaceMessageDeadLettered | D02-ISE | Delivery attempts exhausted | When this domain is the owning domain |
| EVT-ISE-003 | ReconciliationExceptionRaised | D02-ISE | Reconciliation finds an unmatched or stale item | – |
| EVT-ISE-004 | InterfaceStatusChanged | D02-ISE | Interface lifecycle transition or partner availability change | When this domain is the owning domain |
| EVT-ISE-008 | ServiceStateChanged | D02-ISE | A service becomes Degraded, Unavailable or Normal | – |
| EVT-ISE-011 | FailoverCompleted | D02-ISE | Failover or failback finished | – |
| EVT-ISE-017 | DowntimeDeclared / DowntimeEnded | D02-ISE | Downtime window opened or closed | – |
| EVT-ISE-018 | EventReplayExecuted | D02-ISE | Operator replay completed | When this domain is the owning domain |
| EVT-CLI-012 | OrderPlaced | D03-CLI | Order signed and released | – |
| EVT-CLI-014 | OrderCancelled | D03-CLI | Order cancelled | – |
| EVT-CLI-015 | OrderDiscontinued | D03-CLI | Order discontinued or held / released | – |
| EVT-CLI-016 | OrderCompleted | D03-CLI | Terminal fulfilment state reached | – |
| EVT-CLI-017 | MedicationOrdered | D03-CLI | Medication order signed; carries the fulfilment channel of a discharge or outpatient prescription, and Domain 6 submits a prescription for an external pharmacy to SATUSEHAT as a MedicationRequest | – |
| EVT-CLI-019 | MedicationDispensed | D03-CLI | Dispense recorded | – |
| EVT-CLI-020 | MedicationAdministered | D03-CLI | Dose recorded as administered | – |
| EVT-CLI-023 | MedicationReturned | D03-CLI | Return recorded | – |
| EVT-CLI-029 | ControlledSubstanceDiscrepancyRaised | D03-CLI | Reconciliation discrepancy or sign-off time breach | – |
| EVT-ANC-006 | ResultFinalized (ResultPublished; includes preliminary releases with status) | D04-ANC | Result version or report released | – |
| EVT-ANC-012 | BloodUnitIssued / BloodUnitCustodyChanged | D04-ANC | Issue, transport, return, disposal | – |
| EVT-ANC-013 | TransfusionStarted / TransfusionCompleted | D04-ANC | Administration start and end | – |
| EVT-ANC-020 | ChargeableActivityRecorded | D04-ANC | Chargeable service step completed, including blood products at the configured point (issue or transfusion). The only Domain 4 event that Domain 5 charges from; it carries the identifier of the clinical event it accompanies. Implants and tracked consumables are excluded: they are charged from ImplantOrConsumableUsed through stock | – |
| EVT-ANC-022 | ProcedureCompleted | D04-ANC | Procedure completed: for theatre, when the operative record is signed | – |
| EVT-ANC-025 | ImplantOrConsumableUsed | D04-ANC | Implant or tracked consumable recorded | – |
| EVT-ANC-029 | TherapySessionCompleted | D04-ANC | Session documented | – |
| EVT-HIM-003 | ChartCompleted | D06-HIM | Chart status becomes Complete | – |
| EVT-HIM-005 | CodingFinalized | D06-HIM | Coding record version becomes Final | – |
| EVT-HIM-006 | CodingRevised | D06-HIM | Revision of a Final coding record finalised | – |
| EVT-HIM-008 | LegalHoldApplied | D06-HIM | Hold created or scope changed | – |
| EVT-HIM-009 | LegalHoldReleased | D06-HIM | Hold released | – |
| EVT-HIM-015 | RecordReopened | D06-HIM | Locked record reopened by late content, amendment or authorised action | – |
| EVT-ESS-001 | IdentityChanged | D10-ESS | Account, service identity or role assignment created, changed, suspended, revoked | – |
| EVT-ESS-003 | PolicyUpdated | D10-ESS | Policy or label taxonomy version activated or rolled back | – |
| EVT-ESS-006 | TerminologyPublished | D10-ESS | Code system, value set or concept map version effective | – |
| EVT-ESS-007 | MasterDataChanged | D10-ESS | Master-data or registry entity version published or retired | – |
| EVT-ESS-009 | NotificationStatusChanged | D10-ESS | Delivered, failed, acknowledged, escalated, exhausted, closed, cancelled | When this domain is the requesting domain |
| EVT-ESS-010 | TaskStateChanged | D10-ESS | Task assigned, overdue, escalated, completed, cancelled, failed | When this domain is the owning domain |
| EVT-ESS-011 | ConfigurationChanged | D10-ESS | Configuration version activated or rolled back | When this domain is the owning domain |
| EVT-ESS-012 | StewardshipItemRaised / StewardshipItemResolved | D10-ESS | Item created or closed | When this domain is the reporting domain |
| EVT-ESS-014 | WorkflowInstanceStateChanged | D10-ESS | Instance accepted, completed, failed, cancelled, compensated | When this domain is the owning domain |
8.6 Integration Failure and Recovery¶
- Timeout handling. Synchronous calls into this domain have bounded timeouts set by the caller's workflow. Eligibility returns "pending"; availability returns the last known value marked stale or "unavailable". A caller never treats a timeout as a positive answer. Calls from this domain to payer, finance and procurement adapters time out to a queued state.
- Retry policy. Outbound messages are retried with backoff from a durable queue; inbound events are retried by the consumer and then dead-lettered. Retries carry the same idempotency key.
- Circuit breaker behaviour. Repeated failure of a partner endpoint opens a circuit so that requests queue without consuming resources; workflows in this domain continue with pending states (BCP-007). A failure of this domain is isolated from Domains 1, 3 and 4 by the event backbone and bulkheads (INF-004; REF-003 section 12.3).
- Reconciliation. Source events against charge outcomes and stock movements (FR-FIN-EXC-001); dispense records against movements (FR-FIN-INV-005); claims and remittance against account (FR-FIN-CLM-003); ledger against finance postings (FR-FIN-GLP-001); procurement messages against orders and receipts (FR-FIN-PRC-002). Unmatched or stale transactions appear on worklists (INT-005).
- Manual recovery. Authorized users can reprocess an exception, re-queue a message, record a payer status manually with evidence, and enter downtime transactions (FR-FIN-EXC-002). Controlled replay of retained events is requested through Domain 2 procedures.
- Data consistency after failure. Within the domain, a business effect and the marker that the triggering event or request was processed are committed atomically. Across domains, consistency is eventual and is demonstrated by the reconciliations above; no acknowledged financial or stock transaction may be lost (NFR-005 applied to this domain).
← 7. Domain Data Requirements | Contents | Identifier index | 9. Security, Privacy, and Compliance Requirements →