Skip to content

MOD EBP 009 RUN

Domain specifications / D09-EBP / 5. Detailed Functional Requirements / 5.9 Module Specification: Pathway Runtime, Step/Task Coordination and Due Dates

5.9 Module Specification: Pathway Runtime, Step/Task Coordination and Due Dates

5.9.1 Module Overview

Module ID: MOD-EBP-009

Purpose: Hold the state of patient pathway instances and their activities, coordinate the approved activities through the owning domains, and track due dates and progress.

Business Capabilities: - CAP-EBP-010 Pathway execution coordination

Primary Actors: - Treating Clinician (ACT-EBP-009), Care Team Member (ACT-EBP-010), EBP Service Identity (ACT-EBP-014)

Dependencies: - Domain 3 (CLI): CPOE and order sets, documentation, medication workflows, nursing worklists, results presentation, CDS - Domain 4 (ANC): diagnostic and therapeutic fulfilment events, where a pathway coordinates such steps - Domain 1 (ADM): encounter and ADT events, responsible care team - Domain 10 (ESS): workflow orchestration capability, notification, authorization, audit - Domain 2 (ISE): event backbone, outbox/inbox, replay

5.9.2 Functional Area: Pathway Instance Management; Activity Coordination with Owning Domains; Due Dates and Progress Tracking

Functional Area ID: FA-EBP-015, FA-EBP-016, FA-EBP-017

Description: FA-EBP-015 covers the instance and its care-team view. FA-EBP-016 covers proposals to owning domains, native record references and pathway guidance through CDS. FA-EBP-017 covers due times and progress.

Scope: - Included: instance and activity state, proposals, references to native records, idempotency, reconciliation queue, due-time calculation, progress derived from events, pathway timeline. - Excluded: creation, signing, verification, fulfilment or administration of any native clinical record; nursing worklist and task engine (Domain 3); CDS evaluation and alert presentation (Domain 3).

5.9.3 Detailed Requirements

Requirement FR-EBP-RUN-001: Create and Maintain Pathway Instances

Attribute Description
Requirement ID FR-EBP-RUN-001
Requirement Name Create and maintain pathway instances
Requirement Type Functional
Module Pathway Runtime, Step/Task Coordination and Due Dates
Functional Area FA-EBP-015 Pathway instance management
Priority Must
Criticality Critical
Requirement Status Draft
Source PRS EBP-007 (acceptance: instance displays assigned activities and status); PRS EBP-006; PRS EBP-011; PRS section 22.4 (execution and clinical integration)
Related Business Rule BR-EBP-012, BR-EBP-016, BR-EBP-017
Related Workflow WF-EBP-004, WF-EBP-005

1. Requirement Statement

The system shall create a pathway instance on confirmed activation, bound to the patient, encounter, responsible care team and immutable pathway version, shall maintain its state and the state of its activities, and shall display to the care team the assigned activities, their owners, due times and status.

2. Business Rationale

The pathway instance is the patient-specific execution record defined by the PRS glossary. It gives the care team one view of what the pathway expects, what has been done and what is outstanding.

3. Actors and Permissions

Actor Permission Conditions
Treating Clinician (ACT-EBP-009) Read / Update Instances for patients they are authorized for; updates through exception and step-outcome actions
Care Team Member (ACT-EBP-010) Read / Update Assigned patients; step outcomes within role
EBP Service Identity (ACT-EBP-014) Create / Update On a Confirmed activation decision and on consumed events

4. Preconditions - A Confirmed ActivationDecision exists.

5. Trigger - Activation confirmed; thereafter owning-domain events, clinician actions and timers.

6. Functional Behaviour

  1. The system creates the instance with: instance identifier, enterprise person identifier, encounter identifier, facility, pathway and version identifiers, the mapping and guideline versions referenced by that pathway version, activation decision reference, activation author and time, responsible care team at activation and state Active.
  2. The system instantiates the activities of the entry phase and, as phases are reached, of later phases, each with owner role, due time and state Planned.
  3. The system maintains the instance and activity states defined in section 4.3 and appends a PathwayStepEvent for every change.
  4. The system provides the pathway timeline: phases, milestones, activities with owner, due time, state, overdue and escalation flags, links to native records, exceptions, notices, concurrent-pathway conflicts with their decisions, and the activation rationale.
  5. The system follows the patient across locations within the encounter: on a Domain 1 transfer event it updates the responsible care team reference and keeps the instance unchanged otherwise.
  6. On a Domain 1 patient merge or unmerge event the system re-points instance references to the surviving identity as directed by Domain 1 and records the change; it does not merge two instances.
  7. When the encounter is discharged, closed or cancelled while the instance is Active or Paused, the system flags the instance for clinician disposition and suspends inpatient-only timers; the instance is not closed automatically unless the version defines discharge as a completion criterion.
  8. The instance moves to Completed when the version's completion criteria are met, and PathwayCompleted is emitted.
  9. Downtime pathway plan. For each Active or Paused instance the system generates a printable pathway plan from the instance's pathway version and current state: patient name, medical record number and date of birth, encounter and unit, pathway title and version, activation author and time, current phase, each remaining activity with owner role and due time, activities already completed with time, open exceptions and escalations, the escalation criteria of the version, and a column to record work done on paper. The plan is printed in the deployment language with the print time and "valid until the next print" on each page. It is regenerated on the schedule in CFG-EBP-027 (before each shift and at once when a downtime is declared, EVT-ISE-017) as one document per unit, placed in the unit's downtime report set, and can be printed on request from the timeline (GAP-EBP-002, closed).
  10. Daily control totals. By 01:00 local each day the system publishes PathwayControlTotalsReported (EVT-EBP-022) per facility for the previous local day: the count, per event type and schema version, of PathwayActivated, PathwayActivityCompleted, PathwayDeviationRecorded, PathwayCompleted and PathwayDiscontinued events published with an event time in that day. When a day already reported changes (for example after a replay or a late event), it publishes the totals again with a higher version. Domain 8 reconciles its ingestion against these totals (control-total contracts).

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Activation decision reference Reference Yes State Confirmed Authorizing decision
Patient, encounter, facility Identifiers Yes Resolve in Domain 1 Context
Pathway version Reference Yes Released and effective at activation time Immutable content version
Responsible care team Reference Yes From Domain 1 Team at activation

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-RUN001-1 Patient, encounter and pathway version references are mandatory and never null. BR-EBP-016.
PR-RUN001-2 The instance's pathway version never changes after creation, except by an explicit governed migration decision. BR-EBP-012.
PR-RUN001-3 Step events are append-only. No silent overwrite of history.
PR-RUN001-4 Instance state is authoritative in this domain; read models in other domains are projections. Single source for pathway state.
PR-RUN001-5 The downtime pathway plan is generated from stored instance state and the frozen version only, with no call to owning domains, and is generated by the EBP service identity under purpose "treatment". The plan is produced even when an owning domain is unavailable; each generation is audited.

9. Output Requirements

Output Format Recipient Description
Pathway instance and timeline Structured response (IF-EBP-004) Clinician workspace, nursing views (Domain 3) Activities, owners, due times, states, references
PathwayCompleted Domain event (EVT-EBP-018) Domain 3, Domain 8 Instance, version, completion time
PathwayControlTotalsReported Domain event (EVT-EBP-022) Domain 8 Facility, business date, counts per event type; no patient identifiers
Downtime pathway plan Printable document (PDF), one per unit per run Unit downtime report set; print on request from the timeline Remaining and completed activities, owners, due times, escalation criteria, print time
Patient-level export Documented machine-readable format Authorized export (PRS section 15.2) Instances, activities, step events with references and version history

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Instance creation without confirmed decision PR-ACT001-2 Refuse Not reachable through the user interface; API returns an authorization error
Encounter cancelled at activation Encounter status Refuse "Encounter status does not permit activation."
Merge event references unknown instance patient Reference check Route to the coordination reconciliation queue (UI-EBP-014) Coordination exception "Merge reference unresolved" (DE-EBP-030)

11. State and Lifecycle Behaviour

Creates PathwayInstance (Active) and ActivityInstances (Planned); drives their lifecycles as in section 4.3.

12. Audit Requirements

Audit: instance creation, every state change with cause (event reference or actor), care-team reference changes, identity re-pointing, views of the instance by users (PHI access).

13. Security and Privacy Requirements

Patient-level, Sensitive. Access follows the Domain 10 policy decision for the patient and encounter, including consent and sensitivity labels inherited from the pathway's clinical area where configured (section 9.3).

14. Acceptance Criteria

  • AC-01: Given a confirmed activation, when the instance is created, then it holds patient, encounter, pathway version, activation author and timestamp and state Active.
  • AC-02: Given an Active instance, when a care team member opens the timeline, then assigned activities are shown with owner, due time and status.
  • AC-03: Given an Active instance and a newer released version, when the timeline is viewed, then the instance still shows the version it was started under.
  • AC-04: Given a ward transfer event from Domain 1, when consumed, then the instance shows the new responsible care team and all activities and history are unchanged.
  • AC-05: Given a discharge event for an Active inpatient instance without discharge as a completion criterion, when consumed, then the instance is flagged for clinician disposition and is not closed automatically.
  • AC-06: Given Active instances on a unit, when a scheduled plan run or a downtime declaration occurs, then a printable plan for every Active or Paused instance on the unit is in the unit's downtime report set, showing remaining activities with owner role and due time and the print time.

15. Dependencies and Integration

16. Open Questions / Assumptions

  • Whether a pathway may span more than one encounter (for example an outpatient follow-up phase) is not stated by the sources; the PRS defines the instance as "patient- and encounter-specific". This document binds an instance to the activating encounter and allows activities to reference later encounters of the same patient (DEC-EBP-012).
  • Patient-facing pathway view (Could, later release): the active pathway plan shown to the patient in the Domain 7 portal in plain language (phases, planned next steps and expected timing), without internal reasons or staff names, and only after the treating clinician releases it for that instance (GAP-EBP-011, closed). The plan is read through IF-EBP-004 and shown under FR-PEX-REL-005, using the patient labels of the pathway version and leaving out phases and steps marked "not for patient display" (DE-EBP-012, DE-EBP-013).

Requirement FR-EBP-RUN-002: Coordinate Activities Through Owning-Domain APIs

Attribute Description
Requirement ID FR-EBP-RUN-002
Requirement Name Coordinate activities through owning-domain APIs
Requirement Type Functional
Module Pathway Runtime, Step/Task Coordination and Due Dates
Functional Area FA-EBP-016 Activity coordination with owning domains
Priority Must
Criticality Critical
Requirement Status Draft
Source PRS EBP-007; PRS section 22.4 (coordinate through existing clinical workflows rather than create duplicate clinical records); PRS SAFE-004, INT-004 and ADM-010, contributing
Related Business Rule BR-EBP-018, BR-EBP-019, BR-EBP-020, BR-EBP-021
Related Workflow WF-EBP-005

1. Requirement Statement

The system shall carry out pathway activities by proposing work to the owning domains through their published APIs — the clinical record, CPOE and order sets, medication workflows, nursing worklists and, through orders, diagnostic and therapeutic services — shall store only references to the resulting native records, and shall ensure that each proposal and resulting record carries the patient, encounter, pathway, pathway version, instance and activity references.

2. Business Rationale

PRS EBP-007 and section 22.4 require coordination through existing workflows and prohibit duplicate clinical records. The owning domains keep their own validation, safety checks, signature and audit, so a pathway cannot become a way round them.

3. Actors and Permissions

Actor Permission Conditions
EBP Service Identity (ACT-EBP-014) Create (proposals) Scoped to proposal endpoints of owning domains; cannot sign, verify, release or administer
Treating Clinician (ACT-EBP-009) Approve Reviews and signs proposed orders and prescriptions in the owning domain
Care Team Member (ACT-EBP-010) Update Performs proposed tasks in the owning domain
Pathway Designer (ACT-EBP-005), acting for clinical informatics and pathway operations Update Works coordination exceptions on UI-EBP-014: re-send a proposal, link to an existing record, mark an activity Blocked, request event replay, close with reason; never creates a clinical record

4. Preconditions - The instance is Active and the activity is due for instantiation. - The activity's referenced catalogue item, order set, template or task type is active in the owning domain.

5. Trigger - Phase entry, branch resolution, completion of a predecessor activity, or resumption from pause.

6. Functional Behaviour

  1. For each activity the runtime builds a proposal according to activity type and sends it to the owning domain's proposal API (IF-EBP-005) with an idempotency key derived from the instance and activity identifiers.
  2. Order and order-set activities are proposed to Domain 3 CPOE as unsigned drafts or order-set suggestions for the responsible clinician. Medication activities are proposed to the Domain 3 medication workflow in the same way. Neither is signed, verified or released by this domain.
  3. Documentation activities are proposed to Domain 3 as a documentation prompt referencing the governed template. Nursing and care tasks are proposed to the Domain 3 nursing worklist as tasks with owner role and due time.
  4. Diagnostic and therapeutic steps are proposed as Domain 3 order drafts; once signed, Domain 3 routes them to Domain 4 in the normal order flow. This domain does not send orders to Domain 4 directly.
  5. The owning domain validates the proposal under its own rules (including encounter status, duplicate-order detection, medication checks, authorization) and accepts or rejects it. On acceptance it returns the native record identifier; the runtime stores the reference and sets the activity to Assigned.
  6. Before proposing, the runtime checks whether a native record that already satisfies the activity exists for the encounter (as reported by the owning domain) and, if so, links to it instead of proposing a duplicate.
  7. On rejection the activity becomes Blocked with the owning domain's reason and is shown on the timeline and, as a coordination exception (DE-EBP-030), in the coordination reconciliation queue UI-EBP-014. Proposal items reach the queue from slice PA-3, when proposals are first sent.
  8. If the owning domain is unavailable the proposal is held in a durable outbox and retried with backoff; the instance shows a degraded-coordination indicator. Native workflows are not blocked or delayed by pathway unavailability.
  9. When an instance is paused or discontinued the runtime withdraws proposals not yet acted on, through the owning domain's API. It never cancels a signed order, a verified prescription or a completed task; those are listed for the clinician.
  10. High-risk actions keep their native authorization and human confirmation (BR-EBP-019).

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Activity definition reference and version Reference Yes From the instance's pathway version What to propose
Patient, encounter, instance, activity identifiers Identifiers Yes Non-null Pathway context (BR-EBP-020)
Owner role, due time Role reference, date-time Yes Valid Task ownership and timing
Parameter context Structured Conditional Per FR-EBP-PAU-002 Data-quality status of dependent parameters
Idempotency key Text Yes Stable per activity proposal BR-EBP-021

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-RUN002-1 Proposals go only through published owning-domain APIs. No direct database access (BR-EBP-018).
PR-RUN002-2 A proposal is retried with the same idempotency key until acknowledged or rejected. At most one native record per activity proposal.
PR-RUN002-3 The runtime stores the native record identifier, type and owning domain, not its clinical content. No duplicate clinical facts.
PR-RUN002-4 A proposal that exhausts retries moves to the reconciliation queue and raises an operational alert. Failed downstream work is visible, never silently dropped.
PR-RUN002-5 Withdrawal applies only to proposals in an unsigned or unstarted native state. Signed or completed native records are untouched.
PR-RUN002-6 Before proposing an activity, and when a further instance starts or a version changes for the patient, the runtime checks the patient's other Active and Paused instances under CFG-EBP-029: a duplicate activity is linked to the existing proposal or record and not proposed twice; a contradictory activity is held, not proposed, and recorded as a conflict on both instances. A conflict found after activation emits PathwayConflictDetected (EVT-EBP-021) and creates a Domain 10 task for the attending practitioner of the encounter, fallback CFG-EBP-015. Drug interactions, duplicate therapy and allergy checks stay with the Domain 3 CDS at proposal and order signing. No duplicate or contradictory proposal is sent silently; the responsible clinician decides (GAP-EBP-008, closed).

9. Output Requirements

Output Format Recipient Description
Activity proposal API command (IF-EBP-005) Domain 3 services Proposal with pathway context
PathwayActivityAssigned Domain event (EVT-EBP-011) Domain 3, Domain 10 workflow, Domain 8 Activity ID, owner, due time, status, native record reference
Coordination exception (DE-EBP-030) Item on UI-EBP-014 Pathway Designer (ACT-EBP-005), for clinical informatics and pathway operations Rejected or failed proposals; states Open, In Progress, Resolved, Closed

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Owning domain rejects proposal Response check Activity Blocked; reason stored Timeline shows "Not created: {reason}"
Owning domain timeout Timeout Queue and retry; degraded indicator "Pathway coordination delayed."
Duplicate delivery of acknowledgement Idempotency Ignore duplicate None
Referenced item inactive at run time Owning-domain response Activity Blocked; content-health warning raised on the version Notify pathway owner
Encounter no longer permits activity Owning-domain response (PRS ADM-010) Activity Blocked Flag instance for clinician disposition

11. State and Lifecycle Behaviour

ActivityInstance: Planned to Assigned on acceptance; Planned or Assigned to Blocked on rejection or dependency failure, or when marked Blocked with a reason during manual recovery (8.6); Blocked to Assigned on resolution.

12. Audit Requirements

Audit: each proposal sent, the owning domain's response, the native record reference stored, withdrawals, retries exhausted, and manual reconciliation actions.

13. Security and Privacy Requirements

Service-to-service calls are authenticated, authorized, encrypted and correlated (PRS section 8.2). The service identity is scoped to proposal and read endpoints. Proposals carry minimum necessary data and references, not narratives.

14. Acceptance Criteria

  • AC-01: Given an Active instance with an order-set activity, when the phase is reached, then a draft proposal appears in CPOE for the clinician, unsigned, carrying pathway, version, patient and encounter references, and the activity is Assigned with the native reference stored.
  • AC-02: Given a signed order created from a pathway proposal, when it is inspected in Domain 3, then it retains the patient, encounter, pathway and version references (PRS EBP-007 acceptance).
  • AC-03: Given the same proposal delivered twice, when processed, then one native record exists.
  • AC-04: Given Domain 3 rejecting a proposal, when the response is received, then the activity is Blocked with the reason and appears in the reconciliation queue.
  • AC-05: Given the EBP runtime stopped, when a clinician places and signs an order natively in CPOE, then the order succeeds without delay.
  • AC-06: Given an existing active native order that satisfies an activity, when the activity is reached, then it is linked to that order and no duplicate proposal is sent.
  • AC-07: Given a pathway data store inspected after execution, when examined, then it contains references to native records and no copies of order, note, medication or result content.

15. Dependencies and Integration

  • Upstream dependencies: Domain 3 proposal APIs for orders, order sets, medication, documentation and nursing tasks; Domain 2 event backbone and outbox.
  • Downstream dependencies: Domain 3, and Domain 4 through Domain 3 orders; MOD-EBP-010.
  • Required events or APIs: IF-EBP-005, IF-EBP-007; EVT-EBP-011.

16. Open Questions / Assumptions

  • It is assumed that Domain 3 will expose proposal (draft) endpoints that accept pathway context and return native identifiers, and a query for existing records satisfying an activity (ASM-EBP-003, XD-EBP-004).
  • Routing diagnostic and therapeutic steps through Domain 3 orders, and not by direct calls to Domain 4, is this document's working position; REF-002 says coordination is "through Domain 3 and Domain 4 APIs" (DEC-EBP-010).

Requirement FR-EBP-RUN-003: Due Dates and Progress Tracking

Attribute Description
Requirement ID FR-EBP-RUN-003
Requirement Name Due dates and progress tracking
Requirement Type Functional
Module Pathway Runtime, Step/Task Coordination and Due Dates
Functional Area FA-EBP-017 Due dates and progress tracking
Priority Must
Criticality High
Requirement Status Draft
Source PRS EBP-007 (due dates and completion states); PRS section 22.4 (activities carry due dates, owners, status and links to resulting documentation, orders and results); PRS NUR-004 and INF-002, contributing
Related Business Rule BR-EBP-021, BR-EBP-022
Related Workflow WF-EBP-005

1. Requirement Statement

The system shall calculate a due time for each timed activity and milestone from the timing rules of the pathway version, shall derive activity progress and completion from authoritative owning-domain events and explicitly recorded clinician decisions, shall link each completed activity to the resulting documentation, order or result, and shall flag activities and milestones that pass their due time.

2. Business Rationale

A pathway is time- and activity-oriented by definition. Progress must reflect what actually happened in the native systems, not what the pathway assumed.

3. Actors and Permissions

Actor Permission Conditions
EBP Service Identity (ACT-EBP-014) Update From consumed events and timers
Treating Clinician, Care Team Member Read / Update Record explicit step outcomes (FR-EBP-EXC-002)

4. Preconditions - An Active instance with instantiated activities.

5. Trigger - Activity instantiation; consumed owning-domain event; timer expiry; pause or resume.

6. Functional Behaviour

  1. On instantiation the runtime calculates the due time from the timing rule (offset from activation, phase start, milestone or predecessor completion) and stores the rule's anchor and result.
  2. The runtime subscribes to the owning-domain events named as completion evidence in the version (for example order signed, order completed, result validated, medication administered, note signed, task completed) and correlates them to activities by the stored native reference, or by pathway context carried on the native record.
  3. On a correlated event the runtime updates the activity state, stores the event reference and time, appends a step event and emits PathwayActivityCompleted where the activity completes.
  4. Where a native record is cancelled, discontinued or corrected in the owning domain, the runtime reflects that on the activity (for example Assigned returns to Planned or becomes Blocked) and shows the change on the timeline.
  5. When the due time passes without completion the runtime sets the overdue flag, emits PathwayActivityDue and applies escalation rules (FR-EBP-EXC-003).
  6. Milestone status (met, missed, pending) is derived from the activities and events that define it.
  7. While the instance is Paused, due-time clocks are suspended and resume with the remaining time on resumption, unless the version defines an absolute clinical deadline for the activity.
  8. Events are processed idempotently and tolerate out-of-order delivery by using the owning domain's event time and aggregate version.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Owning-domain event Versioned event Yes Schema-validated; unique event ID; patient and encounter references Completion evidence
Timing rule From pathway version Yes for timed items — Due-time calculation

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-RUN003-1 Completion is recorded only from an owning-domain event or an attributed user decision. BR-EBP-022.
PR-RUN003-2 Completion time is the event (clinical) time from the owning domain; the time the event was received is stored separately. Adherence timing is not distorted by delivery delay (PRS DAT-004).
PR-RUN003-3 Duplicate events are ignored by event ID. No duplicate step events.
PR-RUN003-4 An event that cannot be correlated is not discarded; it is ignored for pathway purposes and counted, unless it carries pathway context for an unknown activity, in which case it becomes a coordination exception on the coordination reconciliation queue (UI-EBP-014). No orphaned pathway links.
PR-RUN003-5 Due and overdue status are computed in UTC and displayed in local time with zone context. PRS NFR-018.

9. Output Requirements

Output Format Recipient Description
PathwayActivityDue / PathwayActivityCompleted Domain events (EVT-EBP-012, EVT-EBP-013) Domain 3, Domain 10 workflow and notification, Domain 8 Activity ID, owner, due time, status, native record reference
Updated timeline IF-EBP-004 Care team Current states, links, overdue flags

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Event fails schema validation Schema check Quarantine (dead-letter) with reason Operational alert; replay after correction
Event backlog or consumer outage Lag monitoring Timeline shows "status may be delayed" with last-updated time Data freshness indicator (PRS SAFE-003)
Native record corrected after completion Correction event Reopen or annotate activity per version rule; append step event Timeline shows correction

11. State and Lifecycle Behaviour

ActivityInstance: Assigned to In Progress to Completed; overdue flag set and cleared; milestone status derived.

12. Audit Requirements

Step events record the source event ID, correlation ID, actor where applicable, and both event time and processing time. Timer-driven changes are attributed to the service identity.

13. Security and Privacy Requirements

Consumed events are authenticated and schema-validated. Only references and minimal status are stored. Patient-level, Sensitive.

14. Acceptance Criteria

  • AC-01: Given an activity due four hours after activation, when instantiated, then its due time equals activation time plus four hours.
  • AC-02: Given a pathway-proposed laboratory order, when Domain 4's validated result is published and presented through Domain 3, then the activity is Completed with a link to the result and the event time as completion time.
  • AC-03: Given an activity not completed by its due time, when the time passes, then it is flagged overdue and PathwayActivityDue is emitted.
  • AC-04: Given the same completion event delivered twice, when processed, then one step event exists.
  • AC-05: Given a consumer outage of ten minutes, when the timeline is viewed during it, then a freshness indicator shows the last update time; after recovery all events are applied in the correct order.
  • AC-06: Given a Paused instance, when time passes, then no activity becomes overdue during the pause.

15. Dependencies and Integration

16. Open Questions / Assumptions

  • The catalogue of owning-domain events available as completion evidence depends on the event contracts of Domains 3 and 4 (XD-EBP-005, XD-EBP-007).

Requirement FR-EBP-RUN-004: Provide Pathway Guidance and Context to Clinical Decision Support

Attribute Description
Requirement ID FR-EBP-RUN-004
Requirement Name Provide pathway guidance and context to clinical decision support
Requirement Type Functional
Module Pathway Runtime, Step/Task Coordination and Due Dates
Functional Area FA-EBP-016 Activity coordination with owning domains
Priority Must
Criticality High
Requirement Status Draft
Source PRS EBP-007 (coordination with clinical decision support); PRS section 11.2 (CDS governed as clinical content; guideline reminders passive or task-based); PRS CDS-001, CDS-002, CDS-006, CDS-007 and CDS-010, contributing (primary owner Domain 3)
Related Business Rule BR-EBP-013, BR-EBP-031
Related Workflow WF-EBP-004, WF-EBP-005

1. Requirement Statement

The system shall make pathway guidance available to the Domain 3 clinical decision support capability — eligibility suggestions, the patient's active pathway context and the current recommended activities — with the pathway and content version, evidence source, rationale and evaluation time, so that CDS can present it at governed workflow points, and shall receive back the CDS presentation and response references needed for pathway audit and evaluation.

2. Business Rationale

PRS EBP-007 requires pathway execution to coordinate with CDS. CDS is the governed channel for presenting guidance to clinicians; pathway guidance must go through it so that alert burden, severity and presentation remain under one governance (PRS section 11.2).

3. Actors and Permissions

Actor Permission Conditions
Domain 3 CDS service identity Read Pathway guidance for the patient and encounter in its hook context
EBP Service Identity (ACT-EBP-014) Read CDS interaction references returned by Domain 3
Treating Clinician Read Guidance as presented by Domain 3

4. Preconditions - Released pathway versions exist; Domain 3 has registered pathway guidance as a governed CDS content source under its rule registry (PRS CDS-001).

5. Trigger - A CDS evaluation at a governed workflow point (patient view, order selection, order signing or equivalent; PRS CDS-006) requests pathway guidance; or this domain emits an eligibility or activity event.

6. Functional Behaviour

  1. The system exposes a guidance query (IF-EBP-010) returning, for a patient and encounter: current eligibility suggestions awaiting a clinician decision; Active or Paused instances; currently due or recommended activities with classification (recommended, required-by-policy, optional); and, for each, the pathway and content version, linked recommendation and evidence source, rationale, evaluation time, input freshness and any missing or conflicting data.
  2. Guidance is labelled advisory. Its default presentation class is passive or task-based; an interruptive presentation is used only where clinical governance has approved it for a required-by-policy activity through Domain 3's alert governance (PRS CDS-007).
  3. The system responds within the timeout Domain 3 defines for the hook; if it cannot, Domain 3 proceeds without pathway guidance and the omission is logged.
  4. The system does not itself fire alerts or render them; presentation, suppression, acknowledgement and override handling are Domain 3 functions.
  5. Where Domain 3 publishes CDS interaction events for pathway-sourced guidance (displayed, acknowledged, overridden with reason), the system stores the references against the instance or evaluation for audit and evaluation.
  6. Guidance from suspended, superseded (for new activation) or retired versions is not returned.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Patient and encounter identifiers Identifiers Yes Resolve Hook context
Workflow point Coded Yes Value agreed with Domain 3 Determines which guidance is relevant
Requesting service identity and user context Identity Yes Authorized Policy decision and audit

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-RUN004-1 Every guidance item carries pathway and content version, evidence reference, evaluation time and input freshness. Guidance is explainable and traceable (REF-004 section 8).
PR-RUN004-2 The guidance query is read-only. A CDS call never changes pathway state.
PR-RUN004-3 Failure or timeout of the guidance query never blocks the clinical workflow. Safe degradation.

9. Output Requirements

Output Format Recipient Description
Pathway guidance Structured response (IF-EBP-010) Domain 3 CDS Suggestions, active pathway context, due activities with provenance
Stored CDS interaction references References on evaluation or instance MOD-EBP-011, MOD-EBP-012 For audit and burden monitoring

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Request without valid service identity or user context Authorization Deny; audit None (service error)
Guidance cannot be computed within timeout Timeout Return "no guidance available" with reason Domain 3 proceeds; omission logged
Evaluation inputs stale FR-EBP-ELG-002 Return guidance marked with data-quality status; no definitive recommendation Presented by Domain 3 as uncertain

11. State and Lifecycle Behaviour

No state change in this domain from a guidance query.

12. Audit Requirements

Audit: guidance queries (PHI access by a service on behalf of a user), and stored references to CDS display, acknowledgement and override events for pathway-sourced guidance.

13. Security and Privacy Requirements

The CDS service receives scoped, time-limited authorization for the patient in context (in line with PRS CDS-006 and CDS-014). Minimum necessary content.

14. Acceptance Criteria

  • AC-01: Given an Active instance with a due activity, when Domain 3 CDS requests guidance at patient view, then the activity is returned with pathway version, evidence reference, classification and evaluation time.
  • AC-02: Given a pending eligibility suggestion, when presented through CDS, then it is presented as a passive or task-based item unless an approved policy specifies otherwise.
  • AC-03: Given the guidance service unavailable, when a clinician signs an order, then signing proceeds and the omission of pathway guidance is logged.
  • AC-04: Given a suspended pathway version, when guidance is requested, then no new-activation guidance from that version is returned.

15. Dependencies and Integration

  • Upstream dependencies: Domain 3 CDS hook framework and rule registry; MOD-EBP-007, MOD-EBP-009.
  • Downstream dependencies: Domain 3 CDS presentation; MOD-EBP-011 (burden indicators).
  • Required events or APIs: IF-EBP-010; consumed Domain 3 event CdsDecisionRecorded (EVT-CLI-025), which carries the CDS interaction reference for pathway-sourced guidance (XD-EBP-006).

16. Open Questions / Assumptions

  • The CDS runtime and hook mechanism (CDS Hooks or equivalent) is an open decision in PRS section 28.1; the guidance contract here is mechanism-neutral (DEC-EBP-009).
  • CDS-001, CDS-002, CDS-006, CDS-007 and CDS-010 are primarily owned by Domain 3; this requirement states only this domain's contribution.

← 5.8 Module Specification: Clinician-Confirmed Pathway Activation | Contents | Identifier index | 5.10 Module Specification: Pathway Exception, Deferral, Variance and Escalation →