MOD CLI 011 CDS
Domain specifications / D03-CLI / 5. Detailed Functional Requirements / 5.11 Module Specification: Clinical Decision Support, Alerts and Safety Checks
5.11 Module Specification: Clinical Decision Support, Alerts and Safety Checks¶
5.11.1 Module Overview¶
Module ID: MOD-CLI-011
Purpose:
Provide governed, contextual and explainable decision support following the Five Rights (right information, right person, right intervention format, right channel, right point in workflow), decoupled from the core record through documented service contracts (PRS 22.2), and hold the clinical safety assurance artefacts for the domain's workflows.
Business Capabilities: - CAP-CLI-011 Clinical decision support and safety assurance
Primary Actors: - ACT-CLI-008, ACT-CLI-009, ACT-CLI-010; all clinicians as alert recipients
Dependencies: - MOD-CLI-002, MOD-CLI-004, MOD-CLI-008, MOD-CLI-009 (inputs); Domain 4 (laboratory results as inputs); Domain 9 (guideline and evidence references; GuidelinePublished/Retired); Domain 10 (terminology, authorization for launched applications); Domain 8 (CDS analytics)
5.11.2 Functional Area: Rule Registry and Lifecycle¶
Functional Area ID: FA-CLI-025
Description:
Registry of rules with governance attributes, versioning, simulation and approval.
Scope: - Included: rule metadata, executable logic artefacts, test cohorts, regression packs. - Excluded: guideline and evidence repository (Domain 9).
5.11.2a Functional Area: Evaluation and Presentation¶
Functional Area ID: FA-CLI-026
Description:
Evaluation at workflow points, alert tiers, handling of unreliable data, launched applications.
Scope: - Included: service contract, context payload, timeout and failure behaviour, presentation tiers. - Excluded: pathway eligibility evaluation (Domain 9).
5.11.2b Functional Area: Medication Safety Checks¶
Functional Area ID: FA-CLI-027
Description:
Allergy, interaction, duplicate therapy, contraindication and dose checks with hard stops and governed overrides.
Scope: - Included: check execution and override handling. - Excluded: authorship of commercial or national drug-knowledge content. The content source is the hospital-curated medication knowledge base described in FR-CLI-CDS-003 part 16, with an optional licensed commercial source (CFG-CLI-035).
5.11.2c Functional Area: Alert Monitoring and Tuning¶
Functional Area ID: FA-CLI-028
Description:
Logging, suppression, tuning and override review.
Scope: - Included: decision log, suppression controls, review queue. - Excluded: dashboard delivery (Domain 8).
5.11.2d Functional Area: Clinical Safety Assurance¶
Functional Area ID: FA-CLI-029
Description:
Clinical hazard log and pre-release usability evidence.
Scope: - Included: hazard records and their links to requirements, controls, tests and incidents; usability test evidence for clinical releases. - Excluded: incident-reporting system for the hospital at large; security risk register (Domain 2).
5.11.3 Detailed Requirements¶
Requirement FR-CLI-CDS-001: CDS Rule Registry, Versioning and Simulation¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-CLI-CDS-001 |
| Requirement Name | CDS rule registry, versioning and simulation |
| Requirement Type | Functional |
| Module | Clinical Decision Support, Alerts and Safety Checks |
| Functional Area | FA-CLI-025 Rule registry and lifecycle |
| Priority | Must (CDS-001, CDS-003); standards-based logic representation per CDS-008 is Should |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | PRS CDS-001, CDS-003, CDS-008; contributes to CFG-001, CFG-002, ACC-010, SDLC-003 |
| Related Business Rule | BR-CLI-023, BR-CLI-024 |
| Related Workflow | WF-CLI-009 |
1. Requirement Statement
The system shall maintain a registry in which each CDS rule has an owner, evidence source, version, effective date, severity, trigger criteria, action, override policy and retirement date or review cadence; shall support simulation and validation of rules against representative test cohorts before activation; and should represent executable clinical logic in a standards-based, testable and versioned form such as CQL/ELM where selected.
2. Business Rationale
CDS is clinical content with patient-safety consequences. Ungoverned rules cause alert fatigue or silent failure to warn.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| ACT-CLI-008 | Create / Update draft rule versions; run simulation | On UI-CLI-016 |
| ACT-CLI-009 | Approve, suspend, reinstate, retire | Separate from author: the approver is never the author of the version |
| ACT-CLI-011 | Promote across environments; roll back | Change control; a rollback requires prior approval by the clinical content committee |
| ACT-CLI-018 | Own the rule; record review decisions | Named owner of the rule |
| All clinicians | Read rule rationale and evidence from an alert |
4. Preconditions - A named owner and evidence source exist; a test cohort is available in a non-production environment with synthetic or de-identified data.
5. Trigger - Rule proposal or change; review date; override-review outcome; guideline publication or retirement from Domain 9.
6. Functional Behaviour
- The registry shall store for each rule version the attributes named in the requirement statement plus target population, exclusions, workflow points, alert tier, input data elements with freshness limits, structured override reasons and suppression controls.
- Rule versions shall follow the CDS rule version states of section 4.3; a version shall not be activated unless all mandatory attributes are present, simulation and regression have passed and clinical sign-off is recorded. The system shall activate an approved version at its effective date; there is no manual activation. A suspended version may be reinstated to Active by the approver with a reason. A rollback re-activates the previous version and marks the rolled-back version Superseded.
- Simulation shall execute a draft version against a representative cohort and report firing count and rate, firing by context, example cases and comparison with the current active version, without presenting alerts to users or writing to patient records.
- Each rule shall have a regression pack of positive, negative, missing-data and stale-data cases, executed automatically on every change to the rule, its value sets or the rule runtime.
- Executable logic shall be stored as a versioned artefact traceable to its evidence source; where CQL/ELM or an equivalent is selected, logic shall be expressed in it.
- When Domain 9 retires or supersedes a guideline referenced as a rule's evidence source, the rule shall be flagged for review.
- The registry shall be exportable and shall show the complete history of versions, approvals and decisions.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Owner | Role / person reference | Yes | Active | Accountable clinical owner |
| Evidence source | Reference (Domain 9 guideline or citation) | Yes | Non-empty | |
| Version, effective date | String; date | Yes | Unique version | |
| Severity and alert tier | Codes | Yes | Hard stop requires governance flag | |
| Trigger criteria and logic artefact | Structured / logic | Yes | Compiles; bindings valid | |
| Action(s) | Structured | Yes | Supported action types | |
| Override policy and reasons | Structured | Yes for interruptive tiers | ||
| Review cadence or retirement date | Duration / date | Yes |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-CDS-001-01 | Activation is blocked while any mandatory attribute, simulation result or sign-off is missing | BR-CLI-023 |
| PR-CDS-001-02 | Only one active version per rule and scope; activation supersedes the previous version | Deterministic behaviour |
| PR-CDS-001-03 | Value-set or terminology version changes trigger the regression pack of dependent rules | Semantic drift detected |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Rule registry | Screen; export | Governance, informatics, auditors | UI-CLI-016 |
| Simulation report | Report | Steward, approver | |
| CdsRuleVersionChanged | Event | Domain 8; CDS runtime | EVT-CLI-026 |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Missing governance attribute | Completeness | Block submission | Lists missing attributes |
| Regression failure | Test result | Block submission | Failing cases shown |
| Logic does not compile or binding invalid | Pipeline validation | Fail | Error detail |
11. State and Lifecycle Behaviour
Implements CDS rule version transitions of section 4.3, including Draft creation, reinstatement from Suspended, rollback and activation by the system at the effective date.
12. Audit Requirements
- Every create, change, simulation run, approval, activation, suspension, reinstatement, rollback and retirement with identity and rationale.
13. Security and Privacy Requirements
- Author and approver duties are separated. Simulation uses approved synthetic or de-identified cohorts unless controlled production validation is authorized (PRS 17.3). Rule content is Internal.
14. Acceptance Criteria
- AC-01: Given the registry, when audited, then every active rule has owner, evidence source, version, effective date, severity, trigger criteria, action, override policy and review cadence (PRS CDS-001 acceptance).
- AC-02: Given a rule change, when submitted, then it cannot be activated until regression passes and clinical sign-off is recorded (PRS CDS-003 acceptance).
- AC-03: Given a rule, when traced, then its executable logic is linked to its source evidence and passes regression tests (PRS CDS-008 acceptance).
15. Dependencies and Integration
- Upstream dependencies: Domain 9 guideline references and events; Domain 10 terminology and configuration lifecycle.
- Downstream dependencies: CDS runtime; Domain 8.
- Required events or APIs: EVT-CLI-026; consumed GuidelinePublished/GuidelineRetired.
16. Open Questions / Assumptions
- The CDS runtime is CDS Hooks with CQL/ELM (DEC-CLI-005, resolved 2026-11-16).
- Separation of duties for this domain's content is author and approver only: the author and the approver are different people. There is no separate reviewer role, no local variant of a rule, and no suspension other than the rule suspension of this requirement.
Requirement FR-CLI-CDS-002: Workflow-Context Evaluation, Alert Tiers and Unreliable-Data Handling¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-CLI-CDS-002 |
| Requirement Name | Workflow-context evaluation, alert tiers and unreliable-data handling |
| Requirement Type | Functional |
| Module | Clinical Decision Support, Alerts and Safety Checks |
| Functional Area | FA-CLI-026 Evaluation and presentation |
| Priority | Must (CDS-005, CDS-006, CDS-007, CDS-013, CDS-014); the sub-100 ms evaluation target of CDS-009 is Should |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | PRS CDS-005, CDS-006, CDS-007, CDS-009, CDS-013, CDS-014; PRS 11.2, 22.2 |
| Related Business Rule | BR-CLI-024, BR-CLI-026 |
| Related Workflow | WF-CLI-004 |
1. Requirement Statement
The system shall evaluate CDS at patient view, order selection and order signing or equivalent governed workflow points, each with a defined context payload, authorization scope, timeout and failure behaviour; shall distinguish passive informational, inline advisory and interruptive safety alerts; shall identify stale, missing or low-confidence data used by a rule and avoid presenting a definitive recommendation when required context is unreliable; and shall give any launched SMART on FHIR application only scoped, time-limited authorization.
2. Business Rationale
Advice at the wrong moment or in the wrong format is ignored; advice computed from stale or missing data conveys false certainty.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Clinicians | Receive and respond to alerts | In the workflow context |
| CDS service (service identity) | Read context data | Scope limited to the patient and data elements declared by the rule |
| Launched application | Read (and write where granted) | Scoped, time-limited, patient-context token; revocable |
4. Preconditions - Active rule versions are bound to the workflow point.
5. Trigger - A governed workflow point is reached (patient view, order selection, order signing; also pharmacist verification and bedside administration where configured).
6. Functional Behaviour
- Each workflow point shall have a defined contract: context payload (user, role, patient, encounter, draft orders or action), pre-fetched data elements, authorization scope, timeout and failure behaviour.
- The service shall return zero or more results, each with rule identifier and version, tier, severity, summary, detail, the triggering data with source and date, suggested actions (machine-applicable where possible), override reasons and links to evidence.
- The workspace shall present results by tier: passive (shown in a non-blocking panel or as a task), inline advisory (adjacent to the triggering field or order line), interruptive (modal, requiring a response). Interruptive hard stops shall be used only for rules flagged as approved high-risk scenarios.
- Before evaluating, each rule shall assess every required input for presence, age against its freshness limit, verification status and conflict; where a required input is missing, stale, low-confidence (for example unconfirmed imported allergy, uncoded medication) or conflicting, the rule shall return a "cannot evaluate reliably" result naming the data gap (shown "Cannot be checked reliably · [reason]" or "Not checked · [missing or old data]", glossary 8), and shall apply its configured policy (for example require dose review or justification) instead of a definitive recommendation or a silent pass.
- On timeout or service failure the workflow point's failure behaviour shall apply and shall always be visible to the user and logged.
- Locally hosted, pre-fetched, latency-sensitive rules should evaluate within the CDS-009 target; evaluation latency (p50, p95, p99), cache hit rate and timeouts shall be measured per workflow point, and the end-to-end workflow latency shall be measured separately.
- A launched application shall receive a token limited to the patient in context, the declared scopes and a short lifetime; it shall access data only through the published API and never the database; tokens shall be revocable.
- Preventive and guideline reminders shall use passive or task-based presentation where interruption is not necessary.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Workflow point | Code | Yes | Registered point | |
| Context payload | Structured | Yes | Schema of the point | User, patient, encounter, draft action |
| Pre-fetch data | Structured | Per rule | Declared elements only | With recorded times and verification status |
| Correlation ID | String | Yes | Links decision to the action |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-CDS-002-01 | Missing or stale required input never evaluates as "no problem found" | No false certainty |
| PR-CDS-002-02 | A result's tier comes from the approved rule version and cannot be raised or lowered at runtime | Governed severity |
| PR-CDS-002-03 | Timeout applies per workflow point; results arriving after timeout are logged and not presented as if timely | Predictable workflow |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| CDS results | Service response (CDS Hooks-style cards or equivalent) | Workspace | IF-CLI-011 |
| Alert presentation | UI component | Clinician | UI-CLI-015 |
| Decision record | Log / event | MOD-CLI-011 analytics; Domain 8 | EVT-CLI-025 |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Stale creatinine for renal dose rule | Freshness limit | "Cannot evaluate reliably"; apply rule policy | "Latest creatinine is from [date]; review dose" |
| No weight | Presence | As above | "No weight recorded" |
| Uncertain (unconfirmed) allergy | Verification status | Advisory noting uncertainty | "Unconfirmed allergy to [substance]" |
| Conflicting medication lists | Conflict flag | Advisory noting conflict | "Medication list has unresolved conflicts" |
| CDS service timeout (2 seconds at order selection and signing, CFG-CLI-016) | Timer | Continue; amber banner; the order records "Checks did not run" | Medication orders: "Medication checks unavailable — check manually"; other orders: "Decision support unavailable — check manually" (CUX-27) |
| Application token expired or revoked | Token validation | Deny access | Application must relaunch: the application panel shows "Application session ended — open again" |
11. State and Lifecycle Behaviour
Creates CDS alerts in Fired and moves them to Displayed (section 4.3).
12. Audit Requirements
- Each evaluation request, result, presentation, timeout and failure; each application launch with scopes and expiry.
13. Security and Privacy Requirements
- The CDS service reads only declared data elements for the patient in context under a scoped service identity; launched applications receive scoped, time-limited authorization (PRS CDS-014). Classification of payloads: Sensitive.
14. Acceptance Criteria
- AC-01: Given each workflow point, when its definition is inspected, then context payload, authorization scope, timeout and failure behaviour are defined (PRS CDS-006 acceptance).
- AC-02: Given tests with stale creatinine, missing or stale weight, uncertain allergy and conflicting medication lists, when rules are evaluated, then behaviour is safe and no definitive recommendation is presented (PRS CDS-005, CDS-013 acceptance).
- AC-03: Given rules of each tier, when fired, then passive, inline and interruptive presentations are distinct and hard stops occur only for governance-approved rules (PRS CDS-007 acceptance).
- AC-04: Given a performance test, when run, then p50, p95, p99, cache hit rate and timeout behaviour are recorded (PRS CDS-009 acceptance).
- AC-05: Given a launched application, when its token is inspected and then revoked, then scope, patient context and expiry are enforced and access stops on revocation (PRS CDS-014 acceptance).
15. Dependencies and Integration
- Upstream dependencies: record modules for inputs; Domain 4 results; Domain 10 authorization.
- Downstream dependencies: all ordering, verification and administration workflows.
- Required events or APIs: IF-CLI-011; EVT-CLI-025.
16. Open Questions / Assumptions
- Default failure behaviour per workflow point is proposed in WF-CLI-004 and must be approved (ASM-CLI-004).
- Freshness limits per data element are governance configuration; the PRS gives none (CFG-CLI-015, GAP-CLI-001). The CUX-50 thresholds are the defaults until governance sets a limit per rule.
Requirement FR-CLI-CDS-003: Medication Safety Checks, Hard Stops and Governed Override¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-CLI-CDS-003 |
| Requirement Name | Medication safety checks, hard stops and governed override |
| Requirement Type | Functional |
| Module | Clinical Decision Support, Alerts and Safety Checks |
| Functional Area | FA-CLI-027 Medication safety checks |
| Priority | Must |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | PRS MED-003, MED-004; PRS 11.2 CDS category table; Architecture 8.4, 10.3 |
| Related Business Rule | BR-CLI-024, BR-CLI-025, BR-CLI-026 |
| Related Workflow | WF-CLI-003, WF-CLI-004 |
1. Requirement Statement
The system shall evaluate medication orders for allergies, interactions, duplicate therapy, contraindications, dose limits, age, weight, pregnancy status where relevant, and renal and hepatic context where data are available; shall support interruptive hard stops with governed override pathways for high-severity checks; and shall present lower-value checks non-interruptively where appropriate.
2. Business Rationale
Medication checks prevent the most common serious prescribing errors, but only if high-severity warnings stand out from low-value ones.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| ACT-CLI-001 | Respond to and override alerts | Per rule override policy |
| ACT-CLI-003 | Respond at verification; authorize overrides where the policy requires pharmacist authorization | |
| ACT-CLI-009 | Approve severity, evidence, override reasons | Governance |
4. Preconditions - Medication knowledge content and rule versions are approved and active; the order is coded.
5. Trigger - Medication selection, order signing, reconciliation signing, pharmacist verification.
6. Functional Behaviour
- The following check categories shall be supported with the behaviour of PRS 11.2:
| Category | Required behaviour |
|---|---|
| Critical contraindication / severe risk | Interruptive alert or hard stop where clinically justified; explicit override only under approved policy with reason and audit |
| Renal / hepatic dose safety | Use current relevant laboratory and patient context; identify stale or missing data; require dose review or justification per governed policy |
| Allergy and intolerance | Use reaction, severity, prior tolerance and cross-reactivity context; avoid repetitive low-value pop-ups |
| Duplicate therapy | Differentiate intentional combination, one-time peri-procedural use and true unintended duplication |
| Drug-drug interaction | Prioritize by severity and clinical relevance; include monitoring and action guidance; suppress or downgrade low-value alerts under governance |
| Dose limits, age, weight, pregnancy | Check against limits for the patient context; state when the required context is missing |
| Formulary substitution | Support pharmacist-led alternatives and continuity of home medication |
- Each check result shall be presented according to the tier of its governing rule (FR-CLI-CDS-002).
- For a hard stop, the order cannot be signed unless the rule defines an override pathway and its conditions are met: permitted role, structured reason, and any additional authorization (second clinician or pharmacist). The additional authorization is given in place: the second person authenticates in the step-up dialog on the prescriber's screen and may refuse with a reason (CUX-64). If no authorized person is present, the order stays Draft and the alert names the role that must authorize. There is no asynchronous request.
- An override shall be recorded on the order and shown to the pharmacist at verification and to the nurse on the eMAR.
- Checks shall run again when relevant patient data changes materially after signing (for example a new allergy or a new critical laboratory result) and shall notify the responsible clinician or pharmacist through a work-list task to the responsible prescriber and pharmacist, never a modal outside a point of decision (CUX-23); for a rule classified critical the task has priority Critical and the sound of CUX-63.
- Uncoded medications and uncoded allergies shall be reported as unchecked, shown "Uncoded · not checked". An unconfirmed allergy is shown "Unverified".
- Pathway proposals (set 17 Nov 2026). Orders proposed by a Domain 9 pathway through IF-CLI-010 are checked like any other order. The duplicate-therapy and drug-drug interaction checks run when the suggestion is shown in the order session, against the patient's active and draft orders and the suggestions of the patient's other pathway instances, and again when the clinician adds it and signs it. A pathway proposal is never signed without these checks; when the checks do not run, the order records "Checks did not run" as for any order. When Domain 9 reports a conflict between two of the patient's pathway instances (PathwayConflictDetected, EVT-EBP-021), the chart and the order session show the conflict, the held activity is not offered for adding, and the responsible clinician works the Domain 10 task that Domain 9 raises.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Draft or active medication orders | Structured | Yes | Coded | |
| Patient context | Structured | Yes | Each element with time and verification status | Allergies, medications, age, weight, pregnancy status, renal and hepatic results, diagnoses |
| Override reason | Code + text | For override | From the rule's list | |
| Additional authorizer | User credential | Where policy requires | Permitted role; different user |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-CDS-003-01 | Absence of data for a check yields "Not checked · [missing or old data]" and never "No issue" | PRS MED-003 missing-data case |
| PR-CDS-003-02 | Prior documented tolerance of a substance downgrades or suppresses a repeat allergy alert only where the rule allows | Fewer repetitive pop-ups, governed |
| PR-CDS-003-03 | Override permission is evaluated by the service, not the UI | No front-end-only control |
| PR-CDS-003-04 | Pathway-proposed orders pass duplicate-therapy and drug-drug interaction checks against active orders, draft orders and other pathway suggestions before signing | No unchecked pathway order is signed |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Check results | CDS results | Prescriber, pharmacist | |
| Override record | Decision record on order | Pharmacist, nurse, reviewers |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Hard stop without override pathway | Rule policy | Block signing | States reason and alternative |
| Override by non-permitted role | Policy | Reject | "Override requires [role]" |
| Override without reason | Mandatory | Reject | "Select a reason" |
| Knowledge content unavailable | Service status | Failure behaviour of FR-CLI-CDS-002 | "Medication checks unavailable — check manually" (CUX-27) |
11. State and Lifecycle Behaviour
CDS alert transitions of section 4.3; a Blocked alert prevents the Draft to Pending Verification transition of the order.
12. Audit Requirements
- Each check result, response, override, reason and authorizer, linked to the order.
13. Security and Privacy Requirements
- Checks use sensitive data only within the patient context of the session. Classification: Sensitive.
14. Acceptance Criteria
- AC-01: Given rule tests for each check category, when executed, then positive, negative, missing-data and stale-data cases produce the expected results (PRS MED-003 acceptance).
- AC-02: Given a high-severity rule, when its configuration is reviewed, then clinical governance approval of severity, evidence, override reason and audit is recorded (PRS MED-004 acceptance).
- AC-03: Given a hard stop with an override pathway, when a permitted clinician overrides with a reason, then the order proceeds and the override is visible at verification and on the eMAR.
- AC-04: Given a low-severity interaction, when it fires, then it is presented non-interruptively.
- AC-05: Given two active pathways that each suggest a medication of the same class for a patient, when the second suggestion is shown in the order session, then the duplicate-therapy check result is shown on it and signing applies the check as for any order.
15. Dependencies and Integration
- Upstream dependencies: FR-CLI-CDS-001, FR-CLI-CDS-002; medication knowledge content; MOD-CLI-002, MOD-CLI-004, MOD-CLI-008; Domain 4 results.
- Downstream dependencies: MOD-CLI-009, MOD-CLI-010.
- Required events or APIs: IF-CLI-011; IF-CLI-010; EVT-CLI-025; consumed PathwayConflictDetected (EVT-EBP-021).
16. Open Questions / Assumptions
- Medication knowledge content (GAP-CLI-005, closed; CFG-CLI-035). The default source is a hospital-curated knowledge base held in this domain's rule store as CQL rules and value sets. It is keyed to ingredient (WHO ATC and the KFA virtual product code), so every medication catalogue item reaches it through its KFA code. It is seeded from open sources: the BPOM national drug information (Informatorium Obat Nasional Indonesia and PIONas), the Formularium Nasional, the WHO ATC/DDD index, the ONC high-priority drug-drug interaction list and the product information of BPOM-registered products. Dose ranges and allergy cross-reactivity groups (for example beta-lactams, sulfonamides) are written by the pharmacy from the same sources. A deployment may instead license a commercial source with Indonesian product data (for example MIMS Integrated); it is loaded through the same import adapter and mapped to KFA, and the hospital's own rules stay on top of it.
- Governance and updates. The Pharmacy and Therapeutics Committee (Komite Farmasi dan Terapi) owns the content; the clinical content committee approves each release with author and approver separated (FR-CLI-CDS-001). A scheduled release is issued every quarter, and with each Formularium Nasional or KFA update. An urgent release follows a BPOM safety notice or a serious incident within 5 working days. Each release is a set of rule versions (DE-CLI-022) with its source references and source version, and is simulated against the last 30 days of orders before activation. Catalogue items without a KFA mapping are listed to the pharmacy and get no interaction check; the order shows "Medication checks incomplete for this item".
Requirement FR-CLI-CDS-004: Alert Logging, Suppression, Tuning and Override Review¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-CLI-CDS-004 |
| Requirement Name | Alert logging, suppression, tuning and override review |
| Requirement Type | Functional |
| Module | Clinical Decision Support, Alerts and Safety Checks |
| Functional Area | FA-CLI-028 Alert monitoring and tuning |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | PRS CDS-002, CDS-004, CDS-010, CDS-011, CDS-012; PRS 11.2; contributes to ANA-001 |
| Related Business Rule | BR-CLI-027, BR-CLI-028 |
| Related Workflow | WF-CLI-004, WF-CLI-009 |
1. Requirement Statement
The system shall log the firing, display, acknowledgement, override, reason and subsequent action or outcome of every CDS rule where available; shall implement governed alert suppression controls that never hide critical alerts and are fully auditable; shall flag rules whose override rate exceeds a configurable review threshold for informatics review without deleting or disabling them automatically; shall support tuning based on specificity, patient context, workflow timing and observed harm; and shall distinguish override frequency from override appropriateness and clinical outcome in rule analytics.
2. Business Rationale
Alert fatigue is a principal risk (PRS 19.1). Rules must be measured and tuned on evidence, and a high override rate is a prompt for review, not proof that an alert is wrong.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| ACT-CLI-008, ACT-CLI-010 | Read decision logs; perform appropriateness review; propose tuning | Patient identity is shown only when the reviewer opens a case; each opening is audited |
| ACT-CLI-009 | Approve tuning and suppression configuration | |
| ACT-CLI-018 | Record review decision | Owner of the rule under review |
| ACT-CLI-003, ACT-CLI-010 | Decide review items for verification exemptions | BR-CLI-015 |
| ACT-CLI-007, ACT-CLI-010 | Decide review items for late entries beyond threshold | Late medication entries by ACT-CLI-010 |
4. Preconditions - Rules are active and producing decision records.
5. Trigger - Each rule evaluation; periodic review computation; threshold breach.
6. Functional Behaviour
- For every firing the system shall record rule and version, workflow point, patient, encounter, user and role, inputs summary with data ages, tier, whether displayed or suppressed (with the suppression control that applied), user response, override reason and free text, time to response, and the subsequent action (for example order cancelled, modified, signed unchanged).
- Where available, outcome signals linked to the decision (for example a subsequent adverse-event flag, laboratory change or administration) shall be associated for review.
- Suppression controls shall include duplicate-alert cooldown (same rule, patient and unchanged triggering facts within a period), order-in-flight lookahead (do not alert for a gap that a pending order already addresses), care-context exclusions (for example a documented palliative care context) and rule-specific logic; each control shall be configured per rule under governance.
- Suppression shall not be applied to alerts classified critical; each suppression decision shall be recorded.
- The system shall compute, per rule and context, firing rate, override rate and acceptance rate; a rule whose override rate exceeds the review threshold (initial reference 70%, configurable) shall be placed on the informatics review queue with firing rate, override reasons and a sample of overrides for appropriateness assessment. The rule shall remain active unless governance decides otherwise.
- Reviewers shall classify sampled overrides as appropriate or inappropriate with rationale; analytics shall report override frequency, appropriateness and actionability separately, by rule category. A sampled override is shown without patient identity; the identity is shown only when the reviewer opens the case, and the opening is audited.
- Tuning proposals (changing specificity, context conditions, timing, tier or suppression) shall be recorded with the evidence considered (specificity, patient context, workflow timing, observed harm) and shall become a new rule version through FR-CLI-CDS-001.
- The review console on UI-CLI-016 shall hold review items (DE-CLI-030) of these types: rule above the review threshold, sampled override, late entry beyond threshold (CFG-CLI-023) and verification exemption (administration or cabinet release before pharmacist verification, BR-CLI-015). Each review item follows the states Open, In Review and Decided (section 4.3). For a sampled override, the alert becomes Under Review when its review item opens and Reviewed when the review item is Decided.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Decision record fields | Structured | Yes | Schema | From FR-CLI-CDS-002 and FR-CLI-CDS-003 |
| Review threshold | Percentage | Yes | 0 to 100; minimum firing count for statistical relevance | Configuration |
| Appropriateness classification | Code + text | For sampled overrides | appropriate, inappropriate, indeterminate | |
| Owner decision | Code + rationale | For each flagged rule | keep, tune, re-tier, retire |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-CDS-004-01 | Override rate alone never changes a rule's state | PRS CDS-011 |
| PR-CDS-004-02 | Alert count alone is not accepted as the justification for a tuning decision | PRS CDS-004 |
| PR-CDS-004-03 | Decision records are append-only | Reliable analytics |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Decision log | Event stream; query | Informatics; Domain 8 | EVT-CLI-025 |
| Review queue | Worklist | Informatics, rule owners, medication safety officer, pharmacists, charge nurses | UI-CLI-016; item types as in part 6.8 |
| Governance report | Report via Domain 8 | Clinical governance | REP-CLI-007 |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Attempt to configure suppression on a critical rule | Tier check | Reject | "Critical alerts cannot be suppressed" |
| Review overdue | Due date | Escalate to governance | Listed in report |
11. State and Lifecycle Behaviour
CDS alert: Overridden to Under Review to Reviewed. Review item: Open, In Review, Decided. The alert is Under Review while its review item is Open or In Review, and Reviewed when the review item is Decided (section 4.3).
12. Audit Requirements
- Suppression configuration changes, each suppression decision, review classifications and owner decisions; each opening of a review case that shows patient identity.
13. Security and Privacy Requirements
- Decision logs contain patient and clinician identities; access is limited to stewardship and governance roles; analytics feeds to Domain 8 follow its governed access. Classification: Sensitive.
14. Acceptance Criteria
- AC-01: Given fired rules, when CDS analytics are run, then firing and override patterns can be calculated from the log (PRS CDS-002 acceptance).
- AC-02: Given suppression controls, when a critical alert and a non-critical duplicate alert are triggered, then the critical alert is shown, the duplicate is suppressed and the suppression is auditable (PRS CDS-010 acceptance).
- AC-03: Given a rule above the review threshold, when the review queue is opened, then it shows firing rate, override reasons, appropriateness sampling and the owner decision, and the rule has not been disabled automatically (PRS CDS-011 acceptance).
- AC-04: Given governance dashboards, when viewed, then category-level appropriateness and actionability are reported separately from override frequency (PRS CDS-012 acceptance).
- AC-05: Given a tuning decision, when recorded, then the governance review documents the decision and its outcome (PRS CDS-004 acceptance).
15. Dependencies and Integration
- Upstream dependencies: FR-CLI-CDS-002, FR-CLI-CDS-003.
- Downstream dependencies: Domain 8 (CDS governance dashboards).
- Required events or APIs: EVT-CLI-025.
16. Open Questions / Assumptions
- The PRS gives 70% as the initial review threshold (CDS-011); Architecture 10.3 names 90% for interruptive alerts. The PRS value is used as the default and the difference is logged (DEC-CLI-011).
Requirement FR-CLI-CDS-005: Clinical Hazard Log and Pre-Release Usability Evidence¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-CLI-CDS-005 |
| Requirement Name | Clinical hazard log and pre-release usability evidence |
| Requirement Type | Functional |
| Module | Clinical Decision Support, Alerts and Safety Checks |
| Functional Area | FA-CLI-029 Clinical safety assurance |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | PRS SAFE-001, SAFE-006; PRS 11.1; Architecture 10.1; contributes to NFR-010, ACC-002 |
| Related Business Rule | BR-CLI-023 |
| Related Workflow | WF-CLI-009 |
1. Requirement Statement
The product shall maintain a clinical hazard log in which each hazard is linked to requirements, design controls, tests, incidents and a residual-risk owner and is traceable from identification through closure or acceptance, and shall record usability testing with representative users and tasks before each major clinical release, with findings prioritized and resolved or formally accepted.
2. Business Rationale
PRS 11.1 requires each safety-significant release to include a hazard review, mitigation evidence, clinical validation, a training plan and post-release monitoring. A linked hazard log makes that evidence auditable.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Clinical safety lead (ACT-CLI-009 role holder) | Create / Update hazards; accept residual risk | |
| ACT-CLI-008, product team | Update controls, tests and links | |
| ACT-CLI-009 | Approve closure or acceptance |
The hazard register is a view on UI-CLI-016. Each hazard is linked to the content releases and CDS rules it concerns. A content release on UI-CLI-020 names the hazards reviewed for it. The tooling for the log follows DEC-CLI-013.
4. Preconditions - Requirements, tests and incidents have stable identifiers that can be referenced.
5. Trigger - Hazard identification (analysis, incident, near miss, user report); a safety-significant change; a major clinical release.
6. Functional Behaviour
- Each hazard record shall hold description, affected workflow, cause, potential harm, initial risk rating, design controls, linked requirement IDs, linked test IDs and results, linked incidents, linked content releases and CDS rules, residual risk rating, residual-risk owner and status.
- Hazard analysis shall cover at least wrong-patient selection, wrong encounter, allergy omission, medication mismatch, result misrouting, duplicate orders, stale data, device artefact and downtime reconciliation (Architecture 10.1).
- A release containing changes to order sets, terminology, CDS rules, result routing, medication logic or high-risk UI components shall be linked to the hazards it affects and shall not be marked safety-approved until the linked hazards have been reviewed. A content release on UI-CLI-020 shall name the hazards reviewed for it.
- Usability test records shall hold release, participants by role, tasks, success criteria, findings, severity, disposition (resolved or accepted with approver) and evidence references.
- The hazard log shall be reportable by status, residual risk and owner.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Hazard description, cause, harm | Text | Yes | ||
| Risk ratings | Codes | Yes | Scheme approved by clinical governance | Initial and residual |
| Linked requirement, test, incident IDs | References | At least one requirement or control | Exist | |
| Residual-risk owner | Role / person | Yes before closure or acceptance | ||
| Usability finding disposition | Code | Yes before release | resolved, accepted |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-CDS-005-01 | A hazard cannot be closed without a linked verified control or a recorded acceptance by the owner | Traceable closure |
| PR-CDS-005-02 | Hazard records are versioned; history is retained | Auditable evolution |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Hazard log | Register; export | Clinical governance; auditors | Hazard register view on UI-CLI-016; REP-CLI-011 |
| Release safety summary | Report | Go-live approvers | Input to the clinical safety case |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Closure without evidence | Link check | Reject | "Link a verified control or record acceptance" |
| Release with open unreviewed linked hazards | Status check | Flag release as not safety-approved | Listed for governance |
11. State and Lifecycle Behaviour
Hazard: Identified, Assessed, Controlled, Verified, Closed or Accepted; reopened on a linked incident.
12. Audit Requirements
- All hazard changes, acceptances and release safety approvals with identity and time.
13. Security and Privacy Requirements
- Hazard records must not contain identifiable patient data; incidents are referenced by identifier. Classification: Confidential.
14. Acceptance Criteria
- AC-01: Given a hazard, when traced, then it can be followed from identification through closure or acceptance with its requirements, controls, tests and incidents (PRS SAFE-001 acceptance).
- AC-02: Given a major clinical release, when its evidence is reviewed, then usability findings are prioritized and each is resolved or formally accepted (PRS SAFE-006 acceptance).
15. Dependencies and Integration
- Upstream dependencies: test management and incident sources (default tooling: the hazard log and safety cases as issues in the self-managed GitLab, test cases in Kiwi TCMS, incidents from the hospital incident reporting system); section 11 of this document.
- Downstream dependencies: go-live gates ACC-002 and ACC-010.
- Required events or APIs: none.
16. Open Questions / Assumptions
- SAFE-001 and SAFE-006 are product-wide obligations with no module in REF-002. They are placed in this domain because the hazards are predominantly clinical; accountability stays with clinical governance and the default tooling is the self-managed GitLab for the hazard log and Kiwi TCMS for test cases, replaceable by the hospital's own tools (DEC-CLI-013, resolved 2026-11-16). The function is placed on UI-CLI-016 whatever tooling is selected.
← 5.10 Module Specification: Medication Administration Record (eMAR) and Barcode Medication Workflows | Contents | Identifier index | 5.12 Module Specification: Clinical Documentation Workspaces and Result Presentation →