Domain specifications / D09-EBP / 8. Integration and Interoperability Requirements
8. Integration and Interoperability Requirements¶
8.1 Integration Overview¶
The EBP context exchanges information with Domains 1, 3, 4, 8 and 10 over the platform provided by Domain 2. It uses synchronous APIs for interactive eligibility explanation, pathway preview, authorized activation, guidance queries and reads of clinical facts, and durable asynchronous events for pathway lifecycle propagation, activity coordination, progress tracking and analytics (REF-003 addendum section 3.3). All contracts are versioned, schema-validated, idempotent, correlated to patient and encounter context and replayable. The domain never bypasses another domain's API or writes to its database.
Pathway execution is coordinated as a long-running saga: each domain commits its own transaction and emits events through a transactional outbox; this domain stores orchestration state and references; retries are idempotent; rejected or failed downstream work is visible in a reconciliation queue (REF-004 section 6.6).
External interoperability is limited. Pathway definitions and patient-level execution are not exposed externally in the first release (DEC-EBP-016, resolved 2026-11-17); exposure is not a mandatory requirement of the PRS. The internal model is kept aligned with FHIR PlanDefinition and CarePlan so that later exposure is configuration, and the decision is revisited when an approved national or partner implementation guide asks for it. There is no mandated external evidence feed.
8.2 Internal Integration Catalogue¶
| Integration ID | Source Module | Target Module | Purpose | Pattern |
|---|---|---|---|---|
| INT-EBP-001 | Domain 1 (ADM) encounter and identity services | MOD-EBP-007, MOD-EBP-008, MOD-EBP-009 | Resolve patient and encounter context, encounter status and responsible care team | API |
| INT-EBP-002 | Domain 1 (ADM) ADT, transfer, merge and discharge events | MOD-EBP-009, MOD-EBP-010 | Follow the patient; re-resolve care team; flag instances at discharge; apply merges | Event |
| INT-EBP-003 | Domain 3 (CLI) clinical record | MOD-EBP-007, MOD-EBP-009 | Read current clinical facts with provenance for eligibility and branch decisions | API |
| INT-EBP-004 | MOD-EBP-009 | Domain 3 (CLI) CPOE / order sets, medication workflow, documentation, nursing worklist | Propose pathway activities with pathway context; withdraw unacted proposals | API |
| INT-EBP-005 | Domain 3 (CLI) order, medication, documentation and task events | MOD-EBP-009, MOD-EBP-010 | Derive activity progress, completion and native dispositions | Event |
| INT-EBP-006 | Domain 3 (CLI) CDS | MOD-EBP-007, MOD-EBP-009 | Query pathway guidance at governed workflow points; return CDS interaction references | API / Event |
| INT-EBP-007 | Domain 3 (CLI) catalogue | MOD-EBP-005, MOD-EBP-006 | Resolve and validate order-set, catalogue, template and task-type references and versions | API |
| INT-EBP-008 | Domain 4 (ANC) results and fulfilment | MOD-EBP-007, MOD-EBP-009 | Validated diagnostic facts for eligibility; fulfilment status for diagnostic and therapeutic steps | Event / API (see DEC-EBP-010) |
| INT-EBP-009 | EBP modules | Domain 8 (ANL) | Publish pathway events and definitions for governed analytics | Event |
| INT-EBP-010 | Domain 8 (ANL) | MOD-EBP-011, MOD-EBP-012 | Return measurement results and operational indicators | API / Batch |
| INT-EBP-011 | MOD-EBP-004, MOD-EBP-005, MOD-EBP-007 | Domain 10 (ESS) terminology service | Validate codes, expand value sets, obtain versions; receive terminology release notices | API / Event |
| INT-EBP-012 | All EBP modules | Domain 10 (ESS) identity, authorization and consent policy decision | Authenticate, authorize every state transition and read; apply consent | API |
| INT-EBP-013 | All EBP modules | Domain 10 (ESS) audit service | Emit audit events | Event (outbox) |
| INT-EBP-014 | MOD-EBP-002, MOD-EBP-006, MOD-EBP-010 | Domain 10 (ESS) workflow and notification | Review and approval tasks; escalation and notice notifications; delivery status | API / Event |
| INT-EBP-015 | MOD-EBP-001, MOD-EBP-012 | Domain 10 (ESS) document service | Store and reference source documents and reconstruction exports | API |
| INT-EBP-016 | Domain 6 (HIM) | MOD-EBP-012 | Retention, disposal and legal-hold instructions for pathway records | API / Event |
| INT-EBP-017 | MOD-EBP-006 | Domain 2 (ISE) release promotion; Domain 10 configuration lifecycle | Promote content packages between environments | Batch / pipeline |
8.3 External Integration Catalogue¶
| Integration ID | External System | Direction | Purpose | Standard / Protocol |
|---|---|---|---|---|
| EXT-EBP-001 | External evidence and guideline publishers | Inbound | Obtain source evidence and guideline documents for registration. Registration is manual in the first release, with provenance (GAP-EBP-003, closed). Computable content, where a publisher supplies it, is imported as Draft content and reviewed like any other version. For Indonesia the national source is the PNPK set issued by KMK. | Manual registration; for computable content HL7 FHIR CPG-on-FHIR (PlanDefinition, ActivityDefinition, Library with CQL) through the Domain 2 integration layer (PRS section 9.1); CDS Hooks for guidance services (DEC-EBP-009) |
| EXT-EBP-002 | Authorized external or partner systems | Outbound | Optional exposure of pathway definitions and patient-level pathway plans and tasks. | HL7 FHIR resources where supported by the approved implementation guide (REF-004 mentions PlanDefinition, ActivityDefinition, CarePlan, Goal and Task); through the Domain 2 API gateway. Not enabled in the first release (DEC-EBP-016) |
| EXT-EBP-003 | National or regional programmes (Indonesia deployment profile) | Outbound | None for pathway data (confirmed 17 Nov 2026, GAP-EBP-012): SATUSEHAT and SIRS carry no pathway resources, and the facts a pathway coordinates are sent by their owning domains. Accreditation and JKN quality and cost-control evidence is produced as reports from pathway measures, not as an interface (COMP-EBP-010). A future obligation is implemented in the maintained country profile, not in the domain core (PRS section 9.4). | No interface in the first release |
8.4 Interface Specification¶
Common rules for all interfaces: transport, gateway routing, mutual authentication of services and encryption in transit are provided by Domain 2; authorization decisions come from Domain 10; every request and event carries a correlation ID; schemas are versioned and published in the API catalogue with a compatibility and deprecation policy (PRS CFG-004, NFR-009); errors return a machine-readable code and a human-readable message without leaking PHI. Field lists below are the minimum contract content; schema references are to be assigned in design.
Interface IF-EBP-001: Content Query API¶
Interface Purpose: Search and retrieve evidence, guidelines, recommendations, mapping versions and pathway versions with provenance and version history.
Producer: MOD-EBP-001, MOD-EBP-002, MOD-EBP-004, MOD-EBP-005, MOD-EBP-012
Consumer: EBP workspaces; Domain 3 clinician workspace and CDS; Domain 8
Interface Type: REST API
Protocol and Standard: Versioned HTTPS/JSON internal API. A FHIR representation of definitions may be added where the approved implementation guide supports it.
Authentication and Authorization: User or service token; role and scope checked by Domain 10 policy; licensing restrictions applied.
Request Structure: Search filters (topic, concept, owner, status, type, date ranges), identifier and version, optional as-of date, paging.
Response Structure: Content record with identifier, version, state, effective period, owner, approving body, review date, linked evidence and grades, statement types, mapping and guideline version references, content hash, status markers.
Error Handling: Not found, not authorized, invalid filter. Read-only; safe to retry.
Idempotency and Duplicate Handling: Read-only; naturally idempotent.
Monitoring and Audit: Latency and error-rate metrics; access denials audited.
Interface IF-EBP-002: Eligibility Evaluation API¶
Interface Purpose: Request and retrieve an explainable eligibility evaluation for a patient and encounter.
Producer: MOD-EBP-007
Consumer: Domain 3 clinician workspace; MOD-EBP-008; internal trigger handler
Interface Type: REST API (synchronous); the result is also announced by event EVT-EBP-008
Protocol and Standard: Versioned HTTPS/JSON internal API.
Authentication and Authorization: User token with patient context, or the EBP service identity for workflow triggers; Domain 10 policy decision including care relationship, purpose of use and consent.
Request Structure: Patient identifier, encounter identifier, optional pathway identifier and version, requester, purpose of use, optional trigger event reference, request key.
Response Structure: Evaluation identifier; pathway identifier and content version; evaluation time; overall result; per-criterion result with the facts used (reference, value, unit, effective time, source, verification status, data-quality status); missing and conflicting data list; human-readable rationale; validity time (REF-004 section 8: every pathway API response identifies pathway and content version, evaluation time, input freshness, applicability rationale and any missing or conflicting data).
Error Handling: Unknown patient or encounter; encounter status not permitting activity; not authorized; version not available; source unavailable (response returned as Incomplete with the unavailable source named). Timeout on a fact source yields Incomplete, not an error that hides partial results.
Idempotency and Duplicate Handling: The same request key, or identical inputs within the validity period, returns the stored evaluation.
Monitoring and Audit: Latency (p50, p95, p99), incomplete-result rate, source timeout rate. Every evaluation is audited as PHI access.
Interface IF-EBP-003: Activation Decision API¶
Interface Purpose: Record a clinician's confirm, defer or reject decision and, on confirm, create the pathway instance.
Producer: MOD-EBP-008
Consumer: Domain 3 clinician workspace (on behalf of the treating clinician)
Interface Type: REST API (synchronous command)
Protocol and Standard: Versioned HTTPS/JSON internal API.
Authentication and Authorization: Interactive human clinician token only; service identities are refused for Confirm. Domain 10 policy decision for patient, encounter and pathway scope.
Request Structure: Evaluation identifier, decision, reason code and text where required, optional re-evaluation time, idempotency key.
Response Structure: Activation decision identifier, decision, author, time; on confirm, pathway instance identifier and state.
Error Handling: Evaluation expired; version suspended or not effective; duplicate active instance (returns the existing instance reference); not authorized; reason missing; encounter status invalid. No partial outcome: decision and instance are created together or not at all.
Idempotency and Duplicate Handling: Idempotency key mandatory; a repeat returns the original outcome. Duplicate-instance rule enforced server-side (BR-EBP-017).
Monitoring and Audit: Decision counts by type; refusal reasons. Every decision and refusal is audited.
Interface IF-EBP-004: Pathway Instance and Timeline API¶
Interface Purpose: Read pathway instances and timelines; record exceptions, step outcomes and escalation acknowledgements.
Producer: MOD-EBP-009, MOD-EBP-010
Consumer: Domain 3 clinician and nursing workspaces; Domain 4 workspaces (read, where a pathway coordinates their steps); EBP workspaces
Interface Type: REST API
Protocol and Standard: Versioned HTTPS/JSON internal API.
Authentication and Authorization: User token with patient context; Domain 10 policy decision; action permissions by role and instance state.
Request Structure: Queries by patient, encounter or instance identifier. Commands: record exception (type, reason, affected activities, context references), record step outcome, acknowledge or close escalation; each with idempotency key.
Response Structure: Instance (identifiers, pathway and version, state, activation author and time, care team, notices), activities (state, owner, due times, flags, native record reference), exceptions, escalations, last-updated time and degraded-coordination indicator.
Error Handling: Invalid action for state; not authorized; reason missing; activity terminal. Commands are atomic.
Idempotency and Duplicate Handling: Idempotency key on every command.
Monitoring and Audit: Read latency; command error rates. Patient-level reads and all commands are audited.
Interface IF-EBP-005: Owning-Domain Activity Proposal Contract¶
Interface Purpose: Propose pathway work to the domain that owns the native record and withdraw unacted proposals.
Producer: MOD-EBP-009 (caller)
Consumer: Domain 3 services for orders and order sets, medication, documentation and nursing tasks (API owners)
Interface Type: REST API (command), with acknowledgement; outcome also observed through Domain 3 events
Protocol and Standard: Versioned internal API owned and published by Domain 3. Where Domain 3 exposes FHIR-aligned request resources internally, the proposal maps to a draft request; this is a Domain 3 design choice.
Authentication and Authorization: EBP service identity scoped to proposal and withdrawal operations only; it cannot sign, verify, release or administer. Domain 3 applies its own authorization and validation.
Request Structure: Proposal type; patient and encounter identifiers; catalogue item, order set, template or task-type identifier and version; owner role; due time; pathway context (pathway identifier, version, instance identifier, activity identifier); parameter context with data-quality status; idempotency key; correlation ID. No clinical narrative.
Response Structure: Accepted with native record identifier, type and state (draft or pending); or rejected with reason code and text; or existing-record reference where an existing record satisfies the proposal.
Error Handling: Timeouts and transient errors are retried with backoff from the outbox; business rejections are not retried and set the activity to Blocked; exhausted retries go to the reconciliation queue.
Idempotency and Duplicate Handling: Stable idempotency key per activity proposal; Domain 3 returns the same native record for a repeated key.
Monitoring and Audit: Proposal volume, acceptance and rejection rates, retry counts, outbox depth, reconciliation queue size. Each proposal and response is audited in this domain; Domain 3 audits the native record.
Interface IF-EBP-006: Clinical Facts and Context Read¶
Interface Purpose: Read the patient and encounter context and the specific clinical facts required by released pathway criteria and parameters.
Producer: Domain 1 (context, care team); Domain 3 (clinical facts); Domain 4 (validated results, subject to DEC-EBP-010)
Consumer: MOD-EBP-007, MOD-EBP-009
Interface Type: REST API (owned by the producing domains)
Protocol and Standard: Versioned internal APIs; FHIR-aligned read models where the producing domain provides them.
Authentication and Authorization: EBP service identity acting for a user or workflow with purpose "treatment"; scoped, logged, minimum-necessary access; Domain 10 consent and policy decision.
Request Structure: Patient and encounter identifiers; list of requested concepts (from the pathway version's criteria and parameters) with look-back periods.
Response Structure: For each fact: native record reference, concept code, value and unit, effective time, recorded time, source (local, imported, device, patient-reported), verification status, record status.
Error Handling: Per-source timeout; a source that does not respond is reported as unavailable and the evaluation is Incomplete. No cached read model is used for safety-relevant criteria.
Idempotency and Duplicate Handling: Read-only.
Monitoring and Audit: Per-source latency and timeout rates; PHI access audited by the producing domain and, at evaluation level, by this domain.
Interface IF-EBP-007: Owning-Domain Event Subscription¶
Interface Purpose: Consume the events from which pathway triggers, progress, completion and context changes are derived.
Producer: Domain 1 (ADT, transfer, merge, discharge, encounter correction); Domain 3 (diagnosis recorded, order lifecycle, medication lifecycle, note signed, task lifecycle, result presented, CDS interaction); Domain 4 (result validated, fulfilment status)
Consumer: MOD-EBP-007, MOD-EBP-009, MOD-EBP-010
Interface Type: Event
Protocol and Standard: Versioned domain events on the Domain 2 event backbone (PRS INF-001, INF-002).
Authentication and Authorization: Service identity with subscription scoped to the listed topics.
Request Structure: Not applicable (subscription). Events carry event ID, type and schema version, event time, patient and encounter references, aggregate identifier and version, pathway context where the native record originated from a proposal, correlation ID.
Response Structure: Acknowledgement to the backbone after durable inbox write.
Error Handling: Schema-invalid events are dead-lettered with reason; processing failures are retried; poison events are quarantined and alerted; replay is permissioned and audited.
Idempotency and Duplicate Handling: Inbox deduplication by event ID; ordering enforced per aggregate using aggregate version where correctness requires it (PRS INF-003).
Monitoring and Audit: Consumer lag, dead-letter count, replay operations, uncorrelated-event count.
Interface IF-EBP-008: Terminology Validation and Resolution¶
Interface Purpose: Validate codes, expand value sets, obtain code-system versions and receive terminology release notices; publish this domain's approved mapping versions to Domain 10 as concept maps (DEC-ESS-020).
Producer: Domain 10 (ESS) terminology service
Consumer: MOD-EBP-004, MOD-EBP-005, MOD-EBP-007, MOD-EBP-011
Interface Type: REST API and Event
Protocol and Standard: Versioned internal API owned by Domain 10; FHIR terminology operations where Domain 10 provides them.
Authentication and Authorization: EBP service identity; read, plus write limited to publishing concept maps owned by this domain.
Request Structure: Code, code system and version; value-set reference and version; validity date.
Response Structure: Valid or invalid, active or inactive, display, successor suggestions; expansion members.
Error Handling: Unavailability blocks mapping publication and release checks; run-time evaluation uses the expansions resolved and frozen for the released version, so a terminology-service outage does not stop eligibility evaluation (Proposed design constraint; ASM-EBP-014).
Idempotency and Duplicate Handling: Reads are side-effect free; a map publication is idempotent by mapping set and version; release notices are deduplicated by event ID.
Monitoring and Audit: Validation latency and failures; revalidation runs audited.
Interface IF-EBP-009: Clinical Catalogue Reference API¶
Interface Purpose: Resolve and validate references to order sets, catalogue items, documentation templates and task types, with versions and active status.
Producer: Domain 3 (CLI)
Consumer: MOD-EBP-005, MOD-EBP-006
Interface Type: REST API
Protocol and Standard: Versioned internal API owned by Domain 3.
Authentication and Authorization: EBP service identity or authoring user; read-only.
Request Structure: Item type, identifier, optional version, target environment.
Response Structure: Identifier, version, display, active status, effective period, owning facility scope.
Error Handling: Unavailability leaves the reference unverified and blocks submission and release checks.
Idempotency and Duplicate Handling: Read-only.
Monitoring and Audit: Reference validation failures reported as content-health warnings.
Interface IF-EBP-010: Pathway Guidance Query for CDS¶
Interface Purpose: Supply pathway suggestions, active pathway context and due activities to CDS at governed workflow points.
Producer: MOD-EBP-007, MOD-EBP-009
Consumer: Domain 3 (CLI) CDS
Interface Type: REST API (synchronous, latency-sensitive)
Protocol and Standard: Versioned internal API; mechanism-neutral with respect to CDS Hooks or an equivalent (DEC-EBP-009).
Authentication and Authorization: CDS service identity with scoped, time-limited authorization for the patient in context and the user on whose behalf it acts.
Request Structure: Patient and encounter identifiers, workflow point, user context.
Response Structure: Guidance items, each with type (eligibility suggestion, active pathway, due activity), classification, pathway and content version, recommendation and evidence reference, rationale, evaluation time, input freshness, missing or conflicting data.
Error Handling: On timeout or failure the response is "no guidance available" with reason; the clinical workflow proceeds.
Idempotency and Duplicate Handling: Read-only.
Monitoring and Audit: Latency against the CDS hook budget; timeout rate; guidance queries audited as service access to PHI.
Interface IF-EBP-011: Measure Definition and Result Exchange¶
Interface Purpose: Receive measure and cohort definitions authored on the Domain 8 metric definition registry (UI-ANL-010, pathway measure type) into this domain's record, which is the system of record (DEC-EBP-004); provide published definitions to the analytics platform; and register measurement results and operational indicators returned by it.
Producer: MOD-EBP-011 (published definitions); Domain 8 (definition drafts, submissions and approvals entered on the registry; results)
Consumer: MOD-EBP-011 (definition writes from the registry); Domain 8 (published definitions); MOD-EBP-011, MOD-EBP-012 (results)
Interface Type: REST API / Batch
Protocol and Standard: Versioned internal API; documented machine-readable definition format.
Authentication and Authorization: Service identities on both sides, scoped to these operations.
Request Structure: Definitions: measure and cohort definition versions with all fields of DE-EBP-026 and DE-EBP-027; registry writes carry the acting user, so that this domain applies the lifecycle, the separation of duties and the audit. Results: definition version, pathway versions, period, cohort size, numerator, denominator, exclusions by reason, stratified values, completeness, lineage reference, run identifier.
Response Structure: Acknowledgement with registered identifier; validation errors.
Error Handling: Results that reference unknown definitions or lack mandatory elements are rejected with reasons; transient failures retried.
Idempotency and Duplicate Handling: Run identifier is the idempotency key; a re-submitted run is not duplicated; a new run for the same period supersedes the earlier one without deleting it: the earlier run is marked "Superseded" and figures from the new run show "Restated · [date]".
Monitoring and Audit: Result registration counts and rejections; reconciliation of event counts sent versus ingested for each period.
8.5 Event Requirements¶
Event names follow REF-003 addendum section 3.3 where it names them. EVT-EBP-003, EVT-EBP-007, EVT-EBP-009, EVT-EBP-018, EVT-EBP-019, EVT-EBP-021 and EVT-EBP-022 are added by this document to cover mapping publication, content withdrawal, deferral and rejection, completion, escalation, concurrent-pathway conflict and the daily control totals for analytics, which the functional requirements need (REF-004 section 8 lists pathway events for eligibility, activation, step status, exception, completion and suspension).
| Event ID | Event Name | Producer | Consumers | Trigger |
|---|---|---|---|---|
| EVT-EBP-001 | GuidelinePublished | MOD-EBP-002 | MOD-EBP-006, Domain 3 CDS, Domain 8 | Guideline version becomes Published |
| EVT-EBP-002 | GuidelineRetired | MOD-EBP-002 | MOD-EBP-006, Domain 3 CDS, Domain 8 | Guideline version retired (also emitted with action type for suspension and reinstatement) |
| EVT-EBP-003 | MappingVersionPublished | MOD-EBP-004 | MOD-EBP-005, MOD-EBP-006, Domain 8 | Mapping version published |
| EVT-EBP-004 | PathwayVersionSubmitted | MOD-EBP-006 | Domain 10 workflow, Domain 8 | Pathway version submitted for review |
| EVT-EBP-005 | PathwayVersionApproved | MOD-EBP-006 | Domain 10 workflow, Domain 3 CDS, Domain 8 | Governance approval recorded |
| EVT-EBP-006 | PathwayVersionReleased | MOD-EBP-006 | Domain 10 workflow, Domain 3 CDS and workspace, Domain 8 | Version becomes Released at effective time |
| EVT-EBP-007 | PathwayVersionStatusChanged (Suspended / Reinstated / RolledBack / Retired) | MOD-EBP-006 | Domain 3 CDS and workspace, Domain 10 workflow, Domain 8 | Withdrawal or reinstatement action |
| EVT-EBP-008 | PathwayEligibilityEvaluated | MOD-EBP-007 | Domain 3 workspace and CDS, Domain 8 | Evaluation stored |
| EVT-EBP-009 | PathwayActivationDeclined (Deferred / Rejected) | MOD-EBP-008 | Domain 3 workspace, Domain 8 | Clinician defers or rejects |
| EVT-EBP-010 | PathwayActivated | MOD-EBP-008 / MOD-EBP-009 | Domain 3, Domain 4 (where relevant), Domain 10 workflow, Domain 8 | Instance created after validated clinician confirmation |
| EVT-EBP-011 | PathwayActivityAssigned | MOD-EBP-009 | Domain 3, Domain 10 workflow, Domain 8 | Proposal accepted by owning domain or existing record linked |
| EVT-EBP-012 | PathwayActivityDue | MOD-EBP-009 | Domain 3 worklists, Domain 10 notification, Domain 8 | Activity passes its due time without completion |
| EVT-EBP-013 | PathwayActivityCompleted | MOD-EBP-009 | Domain 3, Domain 8 | Completion evidence received or clinician-recorded completion |
| EVT-EBP-014 | PathwayDeviationRecorded | MOD-EBP-010 | Domain 3, Domain 8 | Deviation or step variance recorded |
| EVT-EBP-015 | PathwayPaused | MOD-EBP-010 | Domain 3, Domain 10 workflow, Domain 8 | Instance paused |
| EVT-EBP-016 | PathwayResumed | MOD-EBP-010 | Domain 3, Domain 10 workflow, Domain 8 | Instance resumed |
| EVT-EBP-017 | PathwayDiscontinued | MOD-EBP-010 | Domain 3, Domain 10 workflow, Domain 8 | Instance discontinued |
| EVT-EBP-018 | PathwayCompleted | MOD-EBP-009 | Domain 3, Domain 8 | Completion criteria met |
| EVT-EBP-019 | PathwayEscalationRaised | MOD-EBP-010 | Domain 10 notification, Domain 8 | Escalation rule fires |
| EVT-EBP-020 | PathwayOutcomeCalculated | MOD-EBP-011 (on registration of a Domain 8 result) | Clinical governance workflow (attention rule CFG-EBP-025), MOD-EBP-012 | Measurement result registered |
| EVT-EBP-021 | PathwayConflictDetected | MOD-EBP-009 | Domain 3 workspace, Domain 10 workflow (task to the responsible clinician), Domain 8 | A conflict between two Active or Paused instances of the same patient is found after activation (CFG-EBP-029) |
| EVT-EBP-022 | PathwayControlTotalsReported | MOD-EBP-009 | Domain 8 | Daily control totals for the previous local day (by 01:00 local); re-sent with a higher version on correction |
Requirements applying to all EBP events (PRS INF-001 to INF-004, INT-004; REF-003 addendum section 3.3; REF-004 section 8):
- Purpose. Lifecycle events (EVT-EBP-001 to 007) let CDS, workflow and analytics use only current, approved content. Patient-level events (EVT-EBP-008 to 019, and EVT-EBP-021) propagate pathway state to clinical workspaces and feed evaluation. EVT-EBP-020 notifies governance of new results. EVT-EBP-022 gives Domain 8 the daily counts it reconciles its ingestion against (control-total contracts).
- Schema and version. Every event has a named, versioned schema registered in the enterprise schema registry and is schema-validated on publish. Schema evolution is backward compatible within a major version, with a published deprecation window.
- Required identifiers. Event ID (globally unique), event type and schema version, producing service, aggregate identifier and aggregate version. Lifecycle events carry content identifier and version, state, effective period, owner, approvers, test-evidence reference and supersession reference as applicable. Patient-level events carry patient and encounter references, facility, pathway identifier and version, instance identifier, and where applicable activity identifier, owner role, due time, status, native record reference, reason code, actor and resulting state. EVT-EBP-020 carries measure version, cohort, numerator, denominator, exclusions, period, stratification and lineage reference. EVT-EBP-022 carries producing domain, facility, business date (local calendar day), cutoff time in UTC and one line per event type (PathwayActivated, PathwayActivityCompleted, PathwayDeviationRecorded, PathwayCompleted, PathwayDiscontinued) with the schema version and the count of events published with an event time in that day; it carries no patient identifiers. It is published by 01:00 local for the previous local day, and again with a higher version when a day already reported is corrected, for example after a replay.
- PHI minimization. Events carry stable references and codes, not clinical narratives or free-text reasons; consumers retrieve detail from the owning domain under their own authorization.
- Timestamps and correlation. Event (business) time and publish time in UTC; correlation ID linking to the originating request or source event; causation ID where the event results from a consumed event.
- Delivery and ordering. At-least-once delivery through a transactional outbox. Ordering is preserved per aggregate (per content item; per pathway instance); consumers enforce aggregate-version ordering where required. Target propagation latency follows NFR-EBP-003.
- Retry and dead-letter. Publishing retries until acknowledged by the backbone. Consumer failures are retried with backoff; events that cannot be processed are moved to a monitored dead-letter queue with reason and can be replayed after correction.
- Duplicate detection and idempotency. Consumers deduplicate by event ID. Duplicate delivery may occur; duplicate business effects must not.
- Retention and replay. Events are retained on the backbone for the period set by Domain 2 policy and are replayable under a permissioned, audited procedure. The authoritative history remains the EBP stores (content history and step events), from which events can be regenerated. Retention is 7 days on the broker topics and 2 years in the domain event archive, per the enterprise retention baseline (GAP-EBP-007, closed).
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-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-015 | EncounterCancelled | D01-ADM | Encounter cancelled | – |
| 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-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-002 | ClinicalEntrySigned | D03-CLI | 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 | D03-CLI | Amendment, new version or entered in error; carries the CIN, entry type and document type | – |
| EVT-CLI-005 | ObservationRecorded | D03-CLI | Observation or set committed | – |
| EVT-CLI-008 | TaskAssigned | D03-CLI | Task created or reassigned | – |
| EVT-CLI-009 | TaskCompleted | D03-CLI | Task completed or cancelled | – |
| EVT-CLI-010 | TaskOverdue | D03-CLI | Task overdue or escalated | – |
| 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-020 | MedicationAdministered | D03-CLI | Dose recorded as administered | – |
| EVT-CLI-021 | MedicationHeld | D03-CLI | Dose or order held or released | – |
| EVT-CLI-022 | MedicationOmitted | D03-CLI | Dose omitted or refused | – |
| EVT-CLI-025 | CdsDecisionRecorded | D03-CLI | Rule fired (displayed or suppressed) and response captured | – |
| 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-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-022 | ProcedureCompleted | D04-ANC | Procedure completed: for theatre, when the operative record is signed | – |
| EVT-ANC-027 | ObservationValidated | D04-ANC | Device or ICU observation validated | – |
| EVT-HIM-008 | LegalHoldApplied | D06-HIM | Hold created or scope changed | – |
| EVT-HIM-009 | LegalHoldReleased | D06-HIM | Hold released | – |
| EVT-ANL-001 | DataProductRefreshed | D08-ANL | A certified product publishes a new snapshot | – |
| EVT-ANL-003 | MetricDefinitionPublished | D08-ANL | A definition version is approved, activated, superseded or retired | – |
| 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. Interactive reads (IF-EBP-002, IF-EBP-004, IF-EBP-010) have defined timeouts. A fact source that times out yields an Incomplete evaluation naming the source; a guidance query that times out yields "no guidance available". Timeout values are agreed with the consuming and producing domains and recorded in the interface contracts (Proposed defaults in CFG-EBP-020).
- Retry policy. Outbound proposals and audit and event publication are retried with exponential backoff from a durable outbox using stable idempotency keys. Business rejections are not retried. Retries exhausted move the item to the reconciliation queue with an operational alert.
- Circuit breaker behaviour. Calls to each dependency are isolated behind a circuit breaker. When a breaker is open: eligibility evaluation returns Incomplete; proposals accumulate in the outbox; the timeline shows a degraded-coordination indicator and last-update time. An open breaker in the EBP context never propagates failure into Domain 3 or Domain 4 workflows (PRS section 8.2; REF-003 addendum section 5).
- Safe failure of the EBP context itself. If EBP services are unavailable, host workspaces show pathway functions as unavailable. Native ordering, medication administration, documentation, results and urgent care proceed unaffected. No pathway is activated and no pathway state is assumed.
- Reconciliation. A scheduled reconciliation compares (a) Assigned and In Progress activities against the state of their native records in the owning domains, (b) proposals sent against acknowledgements received, and (c) events published against events ingested by Domain 8 for each period; Domain 8 makes this comparison daily against the control totals of EVT-EBP-022 and a variance raises ReconciliationVarianceDetected (EVT-ANL-004) and a stewardship item. Mismatches are listed in the coordination reconciliation queue (UI-EBP-014) with age and owner (PRS INT-005).
- Manual recovery. Each mismatch is a coordination exception (DE-EBP-030) with the states Open, In Progress, Resolved and Closed (with reason). Authorized clinical informatics or pathway operations staff (ACT-EBP-005) can re-send a proposal, link an activity to an existing native record, mark an activity Blocked with reason (a person may do so; section 4.3), request event replay, or close the exception with a reason. Event replay is requested by opening the replay dialog of Domain 2 (UI-ISE-001) with the scope filled in; Domain 2 runs the replay and records the reason (OV-56). Escalations with no resolved recipient (PR-EXC003-3) and escalations whose notification failed are listed in the same queue. Each manual action requires a reason and is audited. Manual recovery never fabricates a clinical record.
- Data consistency after failure. Instance and activity state converge on the owning domains' authoritative state through event replay and reconciliation. After a restore of the EBP stores to a recovery point, events from the owning domains since that point are replayed and deduplicated; proposals whose acknowledgements were lost are re-sent with their original idempotency keys so that no duplicate native record results.
- Downtime. During planned or unplanned HIS downtime, pathway coordination is suspended; care continues under the hospital's downtime procedures (PRS BCP-005). The printed pathway plan of each Active or Paused instance, refreshed before each shift and when the downtime is declared (EVT-ISE-017; CFG-EBP-027), is the reference; staff record completed work on the hospital downtime forms. After restoration, when owning domains reconcile downtime entries (PRS BCP-006), the resulting events update pathway activities with their true clinical times; activities that became overdue only because of the downtime are identifiable from the downtime window (see section 11.2).
← 7. Domain Data Requirements | Contents | Identifier index | 9. Security, Privacy, and Compliance Requirements →