Skip to content

Domain specifications / D03-CLI / 8. Integration and Interoperability Requirements

8. Integration and Interoperability Requirements

8.1 Integration Overview

The domain exchanges information only through published, versioned APIs and durable, versioned events. Commands and immediate queries are synchronous (order submission, verification, stock availability, CDS evaluation, bedside verification); state propagation and long-running fulfilment are asynchronous through the Domain 2 event backbone using a transactional outbox and idempotent consumers (PRS INF-001 to INF-003; Architecture 5.2, 5.3). External systems (external LIS, RIS/PACS, blood bank, ADCs, national exchange) are reached only through the Domain 2 integration layer. FHIR is the interoperability facade for clinical resources and is not assumed to be the persistence schema (PRS 7.4). Standards versions and national profiles, including the Indonesia deployment profile (PRS 9.4), are selected by governance and Domain 2; this domain supplies the semantic mappings for its entities.

8.2 Internal Integration Catalogue

Integration ID Source Module Target Module Purpose Pattern
INT-CLI-001 Domain 1 (encounter, ADT, assignment) MOD-CLI-005, 007, 008, 010, 012 Patient and encounter context; transfer, discharge and assignment changes Event; API for status check
INT-CLI-002 Domain 1 (MPI) MOD-CLI-001 Patient merge and unmerge re-linking Event
INT-CLI-003 MOD-CLI-007 Domain 4 (LIS, RIS, pathology, blood bank, procedures) Order dispatch, cancellation, modification Event / message via Domain 2
INT-CLI-004 Domain 4 MOD-CLI-007 Acknowledgement, acceptance, rejection, fulfilment status Event / message
INT-CLI-005 Domain 4 MOD-CLI-012 Validated results, corrections, critical-result notifications Event / message
INT-CLI-006 MOD-CLI-012 Domain 4 Critical-result acknowledgement status Event
INT-CLI-007 Domain 4 (device interface) MOD-CLI-004 Validated device observations Event
INT-CLI-008 Domain 4 (theatre, ICU) MOD-CLI-010 Administration recording in Domain 4 settings API
INT-CLI-009 MOD-CLI-009 Domain 5 (stock) Availability query; issue and return movement API; event for reconciliation
INT-CLI-010 MOD-CLI-006, 007, 009, 010 Domain 5 (charge capture) Chargeable order, dispense, administration and service events Event (asynchronous, non-blocking)
INT-CLI-011 MOD-CLI-003, 002, 007 Domain 6 Signed and amended documentation, diagnoses, order events for completion and coding Event; API
INT-CLI-012 Domain 6 MOD-CLI-003 Lock and legal-hold status; deficiency items API / event
INT-CLI-013 MOD-CLI-001, 008, 012 Domain 7 Approved clinical information, medication instructions, release status API (governed projection)
INT-CLI-014 Domain 7 MOD-CLI-001, 008 Patient-reported information and correction requests Event
INT-CLI-015 All CLI modules Domain 8 Governed clinical events and CDS decision feed Event
INT-CLI-016 Domain 9 MOD-CLI-005, 006, 003 Proposed orders, tasks and documentation activities API
INT-CLI-017 MOD-CLI-001, 002, 004, 008 Domain 9 Clinical facts for eligibility; activity status API; event
INT-CLI-018 Domain 9 MOD-CLI-011 Guideline published or retired Event
INT-CLI-019 All CLI modules Domain 10 Terminology, authorization decision, consent decision, audit, notification, workflow, document reference, master data API; event
INT-CLI-020 MOD-CLI-010 (mobile) Domain 2 (offline edge) Encrypted cache and synchronization Sync protocol

8.3 External Integration Catalogue

All external integrations are mediated by Domain 2; this domain is the business owner of the content listed.

Integration ID External System Direction Purpose Standard / Protocol
EXT-CLI-001 External LIS, RIS/PACS, pathology or blood bank (where not provided in-platform) Bidirectional Orders out; acknowledgements, status and results in HL7 v2 order and result messages or FHIR ServiceRequest / DiagnosticReport / Observation per selected profile
EXT-CLI-002 Automated dispensing cabinets Bidirectional Release decision; removal, return and wastage transactions Authenticated interface per device; mutual TLS where appropriate (PRS ANC-009, SEC-018)
EXT-CLI-003 External health organizations (partner exchange) Bidirectional Exchange of clinical summaries, medication, allergy and condition data with partner facilities FHIR profiles and the national conformance pack. Submission to SATUSEHAT is made by the Domain 6 national record exchange (IF-HIM-006) from this domain's records through its API (DEC-HIM-018)
EXT-CLI-004 CDS-launched applications Outbound launch; inbound API Scoped application access to patient context SMART on FHIR where selected (PRS CDS-014)
EXT-CLI-005 External CDS services (if any are approved) Outbound Rule evaluation outside the platform CDS Hooks where selected; subject to dependency policy and DEP-006
EXT-CLI-006 Patient-authorized third-party applications Outbound Scoped access to the patient's clinical data FHIR with scoped, revocable authorization (PRS INT-007; owned by Domains 2, 7, 10)
EXT-CLI-007 SATUSEHAT Rujukan (Kemenkes national referral service, including SISRUTE) Bidirectional External referral out (FR-CLI-CAR-001 part 6.8); acceptance, decline and reply letter in FHIR R4 ServiceRequest with the referral letter as an attached document, per the SATUSEHAT profiles of the Indonesia conformance pack (DEC-ISE-010); OAuth2 client credentials held by Domain 2 through its national gateway (EXT-ISE-008). Fallback: printed referral letter with QR code. This domain is the business owner

8.4 Interface Specification

Common to all interfaces unless stated: authentication of users and workloads and authorization by Domain 10 policy; encrypted channels; correlation ID and patient and encounter identifiers on every call; schema validation; errors returned as structured problem details; audit of every call that reads or changes PHI; monitoring through Domain 2 observability. Schemas are to be published in the API catalogue (PRS CFG-004) during design.

Interface IF-CLI-001: Clinical Facts API

Interface Purpose: Read access to clinical record content (problems, allergies, observations, medications, documents metadata, results references, care plans).

Producer: MOD-CLI-001 and owning modules.

Consumer: Domains 6, 7, 9; CDS service; authorized applications.

Interface Type: REST API.

Protocol and Standard: Versioned REST; FHIR resources (Condition, AllergyIntolerance, Observation, MedicationStatement, MedicationRequest, CarePlan, DocumentReference) for profiled exchange.

Authentication and Authorization: User or scoped service identity; ABAC decision including purpose of use, consent and privacy labels.

Request Structure: Patient identifier, optional encounter, resource type, filters (date, status, code), paging.

Response Structure: Resources with status, version, provenance (author, source, times), verification status and privacy labels.

Error Handling: Authorization failure returns a denial without revealing existence beyond policy; partial-source failure is indicated explicitly.

Idempotency and Duplicate Handling: Read-only.

Monitoring and Audit: Every read is audited with purpose of use; latency and error rate monitored.

Interface IF-CLI-002: Order API

Interface Purpose: Create draft and proposed orders, sign, and request lifecycle transitions; read catalogue and order sets.

Producer: MOD-CLI-006, MOD-CLI-007.

Consumer: Clinical workspaces; Domain 9 (propose only); Domain 4 settings ordering through CPOE.

Interface Type: REST API.

Protocol and Standard: Versioned REST; FHIR ServiceRequest and MedicationRequest representations where profiled.

Authentication and Authorization: Human identity required to sign; service identities may create proposals only.

Request Structure: Order content per catalogue definition; idempotency key; expected version for transitions; reason where required.

Response Structure: Order identifier, state, version, dispatch status, CDS decision references, validation errors.

Error Handling: Validation errors by field; invalid transition and version conflict as distinct errors.

Idempotency and Duplicate Handling: Idempotency key mandatory on create and transition; duplicate clinical orders handled by BR-CLI-011.

Monitoring and Audit: All writes audited; rejected transitions logged.

Interface IF-CLI-003: Order Dispatch (outbound)

Interface Purpose: Deliver released, modified and cancelled orders to performing services.

Producer: MOD-CLI-007.

Consumer: Domain 4 services; external systems through Domain 2.

Interface Type: Event / Message.

Protocol and Standard: Domain event (OrderPlaced, OrderCancelled) on the event backbone; HL7 v2 order message or FHIR per partner profile, transformed by Domain 2.

Authentication and Authorization: Service identity; node authentication by Domain 2.

Request Structure: Placer order identifier, patient and encounter identifiers with assigning authority, orderable code, urgency (stored as priority, CFG-CLI-008), indication, requested time, destination, ordering practitioner, catalogue version, clinical context.

Response Structure: Technical acknowledgement, then business acceptance or rejection through IF-CLI-004.

Error Handling: Negative acknowledgement and timeouts retried with backoff by Domain 2; dead-letter with replay; unacknowledged orders escalate (BR-CLI-013).

Idempotency and Duplicate Handling: Event identifier and placer identifier deduplicate; replays do not create duplicate worklist items.

Monitoring and Audit: Sent, acknowledged, rejected and processed reconciled against orders (PRS INT-005).

Interface IF-CLI-004: Order Status (inbound)

Interface Purpose: Receive acknowledgement, acceptance, rejection and fulfilment milestones.

Producer: Domain 4 / external systems. Consumer: MOD-CLI-007.

Interface Type: Event / Message.

Protocol and Standard: Domain 4 events: FulfilmentOrderAccepted (EVT-ANC-001), FulfilmentOrderStatusChanged (EVT-ANC-002), SpecimenCollected, SpecimenReceived and SpecimenRejected (EVT-ANC-003 to EVT-ANC-005), ImagingAcquisitionStatusChanged (EVT-ANC-009), ProcedureStarted and ProcedureCompleted (EVT-ANC-021, EVT-ANC-022) and TheatreCaseStatusChanged (EVT-ANC-024). External fulfillers send HL7 v2 or FHIR via Domain 2, mapped to the same events.

Authentication and Authorization: Service identity restricted to orders routed to that service.

Request Structure: Placer and filler identifiers, milestone, time, performer, reason for rejection.

Response Structure: Processed or rejected with reason.

Error Handling: Unknown placer identifier goes to the Domain 4 unmatched worklist (UI-ANC-004; in stage 3, an integration exception on UI-ISE-001); invalid transition held for reconciliation.

Idempotency and Duplicate Handling: Inbox deduplication by event identifier; ordering by sequence and event time.

Monitoring and Audit: Unmatched and stale counts monitored.

Interface IF-CLI-005: Result Delivery (inbound)

Interface Purpose: Receive validated results and corrections for presentation and review.

Producer: Domain 4. Consumer: MOD-CLI-012.

Interface Type: Event / Message.

Protocol and Standard: ResultFinalized, ResultCorrected events; HL7 v2 result messages or FHIR DiagnosticReport / Observation via Domain 2; DICOM references for imaging.

Authentication and Authorization: Service identity.

Request Structure: Fields of FR-CLI-RSP-001 part 7.

Response Structure: Business acknowledgement: processed, unmatched or rejected.

Error Handling: Unmatched results queued; invalid content quarantined by Domain 2 with reason and replay path.

Idempotency and Duplicate Handling: Result identifier plus version; older versions never replace newer.

Monitoring and Audit: Unmatched results, processing latency against NFR-CLI-003.

Interface IF-CLI-006: Medication Stock Interface

Interface Purpose: Check availability and request issue and return movements for dispenses.

Producer / Consumer: MOD-CLI-009 calls Domain 5.

Interface Type: REST API with reconciliation events.

Protocol and Standard: Versioned REST.

Authentication and Authorization: Service identity scoped to pharmacy locations.

Request Structure: Inventory item, location, quantity, lot and expiry as scanned, dispense identifier, order identifier, patient and encounter, idempotency key.

Response Structure: Stock movement reference and status, or insufficiency or error.

Error Handling: On timeout, or while the posting has not completed, the dispense proceeds with "Stock posting pending"; a reconciliation job retries and lists exceptions on UI-FIN-017. An insufficiency response does not stop the dispense: it is shown as "Stock not confirmed" and Domain 5 raises a stock exception.

Idempotency and Duplicate Handling: Dispense identifier as idempotency key; one movement per dispense or return.

Monitoring and Audit: Pending postings count and age; daily reconciliation report.

Interface IF-CLI-007: Automated Dispensing Cabinet Interface

Interface Purpose: Authorize release against verified orders and record cabinet transactions.

Producer / Consumer: ADC and MOD-CLI-009, via Domain 2.

Interface Type: API / Message per device capability.

Protocol and Standard: Authenticated, auditable interface; device protocol adapted by Domain 2.

Authentication and Authorization: Mutual authentication of cabinet; user identity passed for each transaction.

Request Structure: Cabinet, pocket, user, patient, item, quantity, order reference or override reason.

Response Structure: Allow or deny with order reference and validity period.

Error Handling: Link loss: cabinet local policy applies; transactions reconciled on reconnection. Override removals create review items on UI-CLI-016; discrepancies between cabinet transactions and stock are reviewed on UI-FIN-017.

Idempotency and Duplicate Handling: Cabinet transaction identifier.

Monitoring and Audit: All decisions and transactions audited; override rate monitored.

Interface IF-CLI-008: External and Patient-Reported Information (inbound)

Interface Purpose: Receive external records and patient submissions for reconciliation.

Producer: Domain 2 (external exchange), Domain 7. Consumer: MOD-CLI-001, MOD-CLI-008.

Interface Type: Event / API.

Protocol and Standard: FHIR resources or documents per profile.

Authentication and Authorization: Service identity; patient matched by Domain 1.

Request Structure: Fields of FR-CLI-EHR-002 part 7 with original payload reference.

Response Structure: Accepted for review; later review outcome event.

Error Handling: Unmatched patient rejected to Domain 1 workflow; unmapped codes flagged.

Idempotency and Duplicate Handling: Source system plus source record identifier.

Monitoring and Audit: Pending review counts and age.

Interface IF-CLI-009: Device Observation Delivery (inbound)

Interface Purpose: Receive validated device observations into the record.

Producer: Domain 4 device interface. Consumer: MOD-CLI-004.

Interface Type: Event.

Protocol and Standard: Domain event; device side per ISO/IEEE 11073 SDC where supported (Domain 4 and Domain 2).

Authentication and Authorization: Service identity.

Request Structure: Patient, encounter, device identity, code, value, UCUM unit, device timestamp, validity.

Response Structure: Processed or rejected.

Error Handling: Missing patient association rejected back to Domain 4.

Idempotency and Duplicate Handling: Device identifier, code and device timestamp.

Monitoring and Audit: Volume and rejection rate; high-frequency data must not degrade core transactions (PRS SPEC-003).

Interface IF-CLI-010: Care Activity Proposal API

Interface Purpose: Let Domain 9 propose orders, tasks and documentation activities and read their status.

Producer: MOD-CLI-005, MOD-CLI-006, MOD-CLI-003. Consumer: Domain 9.

Interface Type: REST API and events (TaskAssigned, TaskCompleted, OrderPlaced, ClinicalEntrySigned).

Protocol and Standard: Versioned REST.

Authentication and Authorization: Scoped service identity; propose only.

Request Structure: Patient, encounter, pathway instance, activity and version references, proposed content, due time, owner role.

Response Structure: Proposal identifier; later the identifier of the native record created on clinician acceptance.

Error Handling: Invalid context or inactive orderable rejected with reason. A proposed order is checked by CDS for duplicate therapy and drug-drug interactions before it can be signed (FR-CLI-CDS-003 part 6.7). A conflict that Domain 9 finds after activation arrives as PathwayConflictDetected (EVT-EBP-021) and is shown in the clinician workspace (UI-CLI-001, UI-CLI-008).

Idempotency and Duplicate Handling: Pathway activity identifier.

Monitoring and Audit: Proposals, acceptance and rejection audited.

Interface IF-CLI-011: CDS Service Contract

Interface Purpose: Evaluate rules at workflow points.

Producer: CDS service (MOD-CLI-011). Consumer: Clinical workspaces; Domain 4 and Domain 9 where approved.

Interface Type: REST API.

Protocol and Standard: Documented service contract; HL7 CDS Hooks where selected (PRS 22.2).

Authentication and Authorization: Scoped service authorization per workflow point; data limited to declared elements.

Request Structure: Workflow point, context payload, pre-fetched data with times and verification status, correlation ID.

Response Structure: Results with rule and version, tier, severity, summary, triggering data, suggested actions, override reasons, evidence links.

Error Handling: Per-point timeout and failure behaviour, always visible and logged.

Idempotency and Duplicate Handling: Evaluation is side-effect free apart from decision logging keyed by correlation ID.

Monitoring and Audit: p50, p95, p99 latency, cache hit rate, timeouts; decision log.

Interface IF-CLI-012: Medication Administration API

Interface Purpose: Verify and record administrations from bedside clients and Domain 4 settings.

Producer: MOD-CLI-010. Consumer: Mobile and desktop eMAR clients; Domain 4.

Interface Type: REST API. Offline synchronization is not used in release 1 (DEC-CLI-006).

Protocol and Standard: Versioned REST; FHIR MedicationAdministration representation where profiled.

Authentication and Authorization: Unique human identity; device posture where policy requires.

Request Structure: Dose identifier, scans, confirmed dose and route, time, reasons, witness, idempotency key; source (Ward, Anesthesia record, ICU flowsheet, Procedure area) and the setting's record reference; for an administration under the exemption of BR-CLI-015, the order content and the administering prescriber as orderer in place of the dose identifier; offline envelope for synchronized actions (later release).

Response Structure: Verification result; committed record or conflict; for an exempted administration, the created order and dose identifiers.

Error Handling: Mismatch-specific errors; conflicts routed to the reconciliation worklist.

Idempotency and Duplicate Handling: Idempotency key; one terminal status per dose.

Monitoring and Audit: Scan compliance, overrides, sync backlog and conflicts.

Interface IF-CLI-013: Critical-Result Notification and Acknowledgement

Interface Purpose: Receive critical-result notifications and case state, and return the recipient's acknowledgement, action and reassignment to Domain 4.

Producer / Consumer: Domain 4 and MOD-CLI-012, with Domain 10 notification.

Interface Type: Event (inbound) and command API (outbound).

Protocol and Standard: Inbound: CriticalResultOpened (EVT-ANC-017) and CriticalResultAcknowledged, CriticalResultEscalated and CriticalResultClosed (EVT-ANC-018). Outbound: the acknowledgement command IF-ANC-011. This domain publishes no critical-result event.

Authentication and Authorization: Service identities.

Request Structure: Result reference, patient, encounter, order, criticality, intended recipient basis.

Response Structure: Work item identifier; acknowledgement, action and reassignment sent to Domain 4 with user and time. If Domain 4 does not confirm, the work item stays open and shows "Acknowledgement not delivered".

Error Handling: Undeliverable notification escalates immediately along the chain.

Idempotency and Duplicate Handling: Result identifier and version.

Monitoring and Audit: Time to acknowledgement; open critical items.

Interface IF-CLI-014: Patient Release Projection

Interface Purpose: Expose approved clinical information, medication instructions and result release status for patient-facing use.

Producer: MOD-CLI-001, MOD-CLI-008, MOD-CLI-012. Consumer: Domain 7.

Interface Type: REST API / event.

Protocol and Standard: Versioned REST; FHIR where profiled.

Authentication and Authorization: Service identity; release policy, consent and privacy labels applied before exposure.

Request Structure: Patient, resource type, since-time.

Response Structure: Only items whose release condition is met, with release time.

Error Handling: Policy-denied items are omitted.

Idempotency and Duplicate Handling: Read-only; release events deduplicated by item and version.

Monitoring and Audit: Every release audited.

8.5 Event Requirements

Event ID Event Name Producer Consumers Trigger
EVT-CLI-001 ClinicalEntryCreated MOD-CLI-002, 003, 008 1, 6, 8 Entry created (saved summary entity or saved document; drafts are not published); carries the CIN and the entry type (for example diagnosis)
EVT-CLI-002 ClinicalEntrySigned MOD-CLI-003 1, 6, 7, 8, 9 Document signed or co-signed; carries the CIN and the document type (outpatient note, emergency note, discharge summary, death documentation and others)
EVT-CLI-003 ClinicalEntryAmended MOD-CLI-002, 003, 008 1, 6, 7, 8, 9 Amendment, new version or entered in error; carries the CIN, entry type and document type
EVT-CLI-004 AllergyChanged MOD-CLI-002 CDS, 4, 8 Allergy or allergy status created or changed
EVT-CLI-005 ObservationRecorded MOD-CLI-004 CDS, 8, 9 Observation or set committed
EVT-CLI-006 DeteriorationEscalated MOD-CLI-004 8; team worklists Escalation protocol started or escalated
EVT-CLI-007 ReferralStatusChanged MOD-CLI-005 1, 8 Referral, internal or external, requested, accepted, declined, completed, cancelled
EVT-CLI-008 TaskAssigned MOD-CLI-005 9, 8 Task created or reassigned
EVT-CLI-009 TaskCompleted MOD-CLI-005 9, 8 Task completed or cancelled
EVT-CLI-010 TaskOverdue MOD-CLI-005 9, 8 Task overdue or escalated
EVT-CLI-011 ClinicalHandoverAcknowledged MOD-CLI-005 1, 4, 8 Clinician-to-clinician handover acknowledged by the named receiver, or on the receiver's behalf by the charge nurse. The single acknowledgement event for every handover; for a transfer, Domain 1 publishes EVT-ADM-024 when it receives it
EVT-CLI-012 OrderPlaced MOD-CLI-007 1, 4, 5, 8, 9 Order signed and released
EVT-CLI-013 Retired: was OrderAccepted – – Retired 2026-11-17. Acceptance is a Domain 4 fact, published once as FulfilmentOrderAccepted (EVT-ANC-001); Domains 8 and 9 subscribe to it directly
EVT-CLI-014 OrderCancelled MOD-CLI-007 1, 4, 5, 8, 9 Order cancelled
EVT-CLI-015 OrderDiscontinued MOD-CLI-007 1, 4, 5, 8, 9 Order discontinued or held / released
EVT-CLI-016 OrderCompleted MOD-CLI-007 1, 5, 8, 9 Terminal fulfilment state reached
EVT-CLI-017 MedicationOrdered MOD-CLI-009 5, 6, 8 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-018 MedicationVerified MOD-CLI-009 MAR, 8 Pharmacist verification
EVT-CLI-019 MedicationDispensed MOD-CLI-009 5, 8 Dispense recorded
EVT-CLI-020 MedicationAdministered MOD-CLI-010 5, 8, 9 Dose recorded as administered
EVT-CLI-021 MedicationHeld MOD-CLI-010 8, 9 Dose or order held or released
EVT-CLI-022 MedicationOmitted MOD-CLI-010 8, 9 Dose omitted or refused
EVT-CLI-023 MedicationReturned MOD-CLI-009 5, 8 Return recorded
EVT-CLI-024 MedicationReconciliationCompleted MOD-CLI-008 1, 7, 8 Reconciliation signed
EVT-CLI-025 CdsDecisionRecorded MOD-CLI-011 8, 9 Rule fired (displayed or suppressed) and response captured
EVT-CLI-026 CdsRuleVersionChanged MOD-CLI-011 8, CDS runtime Rule version activated, suspended, superseded, retired
EVT-CLI-027 ResultReviewed MOD-CLI-012 4, 8 Result version acknowledged; release status changed
EVT-CLI-028 Retired: was CriticalResultAcknowledged – – Retired 2026-11-17. Domain 4 owns the critical-result record (DEC-CLI-010) and publishes the event (EVT-ANC-018); this domain sends the recipient's acknowledgement to Domain 4 by command (IF-ANC-011)
EVT-CLI-029 ControlledSubstanceDiscrepancyRaised MOD-CLI-009 5, 8 Reconciliation discrepancy or sign-off time breach
EVT-CLI-030 ClinicalControlTotalsReported MOD-CLI-001 8 Daily control totals for the previous local day (by 01:00 local); re-sent with a higher version on correction

Event names follow the bounded-context events in Architecture 4.2 where it names them. The following applies to all events:

  • Purpose. State propagation to other domains; events are facts about committed state, not commands.
  • Schema and version. Each event has a registered, versioned schema; the envelope carries event_id, event_type, schema_version, aggregate_id, facility, occurred_at, recorded_at, producer, correlation_id, causation_id and actor and purpose context (Architecture 5.2). Schema evolution is backward compatible within a major version (PRS INF-002, SDLC-006).
  • Required identifiers. Enterprise person ID, encounter ID (CIN), facility, the entity identifier and version; for orders the placer identifier; for medication events the order and dose identifiers.
  • Timestamps and correlation. occurred_at (event time) and recorded_at in UTC; correlation ID links the user action, CDS decisions and resulting events.
  • Delivery and ordering. At-least-once delivery through a transactional outbox; ordering preserved per aggregate (per order, per patient medication stream) where business correctness requires it (PRS INF-003).
  • Retry and dead-letter. Bounded retries with backoff; dead-letter with operator-controlled replay by Domain 2. Medication and order events are never replayed blindly into consuming workflows (Architecture 12.3).
  • Duplicate detection. Consumers persist an inbox marker by event_id before applying effects; duplicate delivery must not create duplicate business effects (PRS INT-004).
  • Retention and replay. Per the enterprise retention baseline: broker topics are kept 7 days, so a consumer can replay from the broker within 7 days; the domain event archive keeps events 2 years for operator replay and reconciliation by Domain 2; dead letters are kept until resolved plus 90 days; interface message payloads 30 days and message metadata 2 years (GAP-CLI-006, closed). Replay older than 2 years is done from this domain's records, not from events.
  • Control totals. ClinicalControlTotalsReported (EVT-CLI-030) follows the Domain 8 control-total contract, added 17 Nov 2026. Payload: producing domain, facility, business date (local calendar day), cutoff time in UTC, and one line per event type with the schema version and the count of events published with an event time in that day, for ClinicalEntrySigned, OrderPlaced, OrderCancelled, MedicationOrdered, MedicationVerified, MedicationAdministered, MedicationOmitted, CdsDecisionRecorded, ObservationRecorded and TaskCompleted. No patient identifiers. Published by 01:00 local for the previous local day, and again with a higher version when this domain corrects a day already reported.
  • Domain 1 closure inputs. Domain 1 consumes EVT-CLI-001, 002, 003, 012, 014, 015, 016 and 024 for encounter closure and the flow boards (closure and flow-board inputs), correlated by the CIN each event carries.
  • Critical events. OrderPlaced, MedicationVerified, MedicationAdministered and AllergyChanged, and the critical-result acknowledgement command to Domain 4 (IF-ANC-011), are subject to the critical event latency target (NFR-CLI-003).

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-015 EncounterCancelled D01-ADM Encounter cancelled –
EVT-ADM-016 BedStateChanged D01-ADM Any bed state change –
EVT-ADM-017 BedReserved D01-ADM Reservation created –
EVT-ADM-019 AppointmentBooked D01-ADM Appointment created –
EVT-ADM-020 AppointmentChanged D01-ADM Rescheduled, cancelled or no-show –
EVT-ADM-021 AppointmentArrived D01-ADM Check-in –
EVT-ADM-023 QueueStateChanged D01-ADM Queue item state or priority change –
EVT-ADM-024 TransferHandoverAcknowledged D01-ADM Published by Domain 1 when it receives ClinicalHandoverAcknowledged (EVT-CLI-011) for a transfer; the acknowledgement is made by the named receiver in Domain 3 –
EVT-ADM-025 ResponsibilityChanged D01-ADM Responsible unit, team or attending practitioner changes –
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-014 EdgeSyncConflictDetected D02-ISE Offline action conflicts at synchronization –
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-ANC-001 FulfilmentOrderAccepted D04-ANC Order validated and accepted –
EVT-ANC-002 FulfilmentOrderStatusChanged (including Rejected, Cancelled, Completed) D04-ANC Any fulfilment state transition –
EVT-ANC-003 SpecimenCollected D04-ANC Collection recorded –
EVT-ANC-004 SpecimenReceived D04-ANC Laboratory receipt –
EVT-ANC-005 SpecimenRejected D04-ANC Rejection at receipt –
EVT-ANC-006 ResultFinalized (ResultPublished; includes preliminary releases with status) D04-ANC Result version or report released –
EVT-ANC-007 ResultCorrected / ResultWithdrawn D04-ANC Correction or withdrawal –
EVT-ANC-008 StudyScheduled D04-ANC Imaging procedure scheduled –
EVT-ANC-009 ImagingAcquisitionStatusChanged D04-ANC Acquisition started, completed, discontinued –
EVT-ANC-010 StudyAvailable D04-ANC Study indexed and linked –
EVT-ANC-011 BloodUnitAllocated D04-ANC Compatible unit allocated –
EVT-ANC-012 BloodUnitIssued / BloodUnitCustodyChanged D04-ANC Issue, transport, return, disposal –
EVT-ANC-013 TransfusionStarted / TransfusionCompleted D04-ANC Administration start and end –
EVT-ANC-015 TransfusionReactionRecorded D04-ANC Reaction recorded –
EVT-ANC-016 HumanMilkFeedRecorded D04-ANC Verified feed –
EVT-ANC-017 CriticalResultOpened D04-ANC Critical case opened –
EVT-ANC-018 CriticalResultAcknowledged / CriticalResultEscalated / CriticalResultClosed D04-ANC Case state change. Acknowledgement from any channel: in the Domain 3 work item through IF-ANC-011, or telephone read-back recorded here. This domain is the only publisher of these names –
EVT-ANC-021 ProcedureStarted D04-ANC Procedure start or incision –
EVT-ANC-022 ProcedureCompleted D04-ANC Procedure completed: for theatre, when the operative record is signed –
EVT-ANC-023 TheatreCaseScheduled D04-ANC Case scheduled or rescheduled –
EVT-ANC-024 TheatreCaseStatusChanged D04-ANC Ready, in theatre, time-out complete, in recovery, cancelled –
EVT-ANC-026 PostoperativeHandoffAcknowledged D04-ANC Follows EVT-CLI-011 for the postoperative handover and marks the theatre case Completed. It is not a second acknowledgement; Domain 1 takes the transfer acknowledgement from EVT-CLI-011 –
EVT-ANC-027 ObservationValidated D04-ANC Device or ICU observation validated –
EVT-ANC-028 IcuEscalationRaised D04-ANC Threshold or overdue bundle rule met –
EVT-ANC-029 TherapySessionCompleted D04-ANC Session documented –
EVT-ANC-030 DeviceAssociationChanged D04-ANC Association started or ended –
EVT-FIN-014 LotStatusChanged (proposed) D05-FIN Lot expired, placed On hold (including recall) or released –
EVT-HIM-001 ChartDeficiencyOpened D06-HIM Deficiency created –
EVT-HIM-002 ChartDeficiencyClosed D06-HIM Deficiency closed, waived or cancelled –
EVT-HIM-004 RecordLocked D06-HIM Record locked or re-locked –
EVT-HIM-008 LegalHoldApplied D06-HIM Hold created or scope changed –
EVT-HIM-009 LegalHoldReleased D06-HIM Hold released –
EVT-PEX-005 ResultReleased D07-PEX Release decision for a result becomes Released –
EVT-PEX-006 DocumentReleased D07-PEX Release decision for a document becomes Released –
EVT-PEX-007 ReleaseWithdrawn D07-PEX Released decision becomes Withdrawn, Withheld or Superseded –
EVT-PEX-010 PatientReportedOutcomeReceived D07-PEX Patient-reported outcome or item submitted –
EVT-EBP-001 GuidelinePublished D09-EBP Guideline version becomes Published –
EVT-EBP-002 GuidelineRetired D09-EBP Guideline version retired (also emitted with action type for suspension and reinstatement) –
EVT-EBP-005 PathwayVersionApproved D09-EBP Governance approval recorded –
EVT-EBP-006 PathwayVersionReleased D09-EBP Version becomes Released at effective time –
EVT-EBP-007 PathwayVersionStatusChanged (Suspended / Reinstated / RolledBack / Retired) D09-EBP Withdrawal or reinstatement action –
EVT-EBP-008 PathwayEligibilityEvaluated D09-EBP Evaluation stored –
EVT-EBP-009 PathwayActivationDeclined (Deferred / Rejected) D09-EBP Clinician defers or rejects –
EVT-EBP-010 PathwayActivated D09-EBP Instance created after validated clinician confirmation –
EVT-EBP-011 PathwayActivityAssigned D09-EBP Proposal accepted by owning domain or existing record linked –
EVT-EBP-012 PathwayActivityDue D09-EBP Activity passes its due time without completion –
EVT-EBP-013 PathwayActivityCompleted D09-EBP Completion evidence received or clinician-recorded completion –
EVT-EBP-014 PathwayDeviationRecorded D09-EBP Deviation or step variance recorded –
EVT-EBP-015 PathwayPaused D09-EBP Instance paused –
EVT-EBP-016 PathwayResumed D09-EBP Instance resumed –
EVT-EBP-017 PathwayDiscontinued D09-EBP Instance discontinued –
EVT-EBP-018 PathwayCompleted D09-EBP Completion criteria met –
EVT-EBP-021 PathwayConflictDetected D09-EBP A conflict between two Active or Paused instances of the same patient is found after activation (CFG-EBP-029) –
EVT-ESS-001 IdentityChanged D10-ESS Account, service identity or role assignment created, changed, suspended, revoked –
EVT-ESS-002 ConsentChanged D10-ESS Directive activated, superseded, expired, withdrawn, entered in error –
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 have explicit timeouts. CDS timeout applies the workflow point's failure behaviour visibly. Stock interface timeout results in "posting pending". Terminology timeout allows flagged uncoded entry.
  • Retry policy. Idempotent retries with backoff for outbound events and commands; user-initiated retries are safe because of idempotency keys.
  • Circuit breaker behaviour. Calls to secondary consumers and non-critical services (billing, analytics, portal, notification) are isolated so their failure cannot block ordering, documentation or administration (PRS INF-004, BCP-007). An open circuit is shown to users only where it changes what they must do.
  • Reconciliation. Automated reconciliation of orders to acknowledgements and results, dispenses to stock movements, administrations to charge events and offline actions to committed records, each with an exception worklist (PRS INT-005).
  • Manual recovery. Exception worklists for stale orders and order consistency exceptions (UI-CLI-009) and downtime items (UI-CLI-018), each with assigned owner and ageing. Pending stock postings and controlled-substance discrepancies are reconciled on the Domain 5 console UI-FIN-017; UI-CLI-012 shows their status with a link there. Sync conflicts do not arise in release 1, because offline recording is disabled. Unmatched status events and results are worked by Domain 4 on UI-ANC-004.
  • Data consistency after failure. No acknowledged clinical transaction is lost (PRS NFR-005). An order is not treated as delivered until acknowledged. After recovery, replay is controlled and deduplicated, and downtime entries are reconciled with provenance (WF-CLI-008).

← 7. Domain Data Requirements | Contents | Identifier index | 9. Security, Privacy, and Compliance Requirements →