Domain specifications / D09-EBP / 15. Testing and Verification Requirements
15. Testing and Verification Requirements¶
15.1 Verification Strategy¶
Verification follows the PRS section 17.1 test strategy, applied to this domain as follows.
- Unit testing. State machines for content, evaluations, instances and activities; business rules BR-EBP-001 to 032; criteria evaluation including data-quality statuses; due-time calculation including pause and time-zone cases; idempotency logic.
- Component testing. Each logical component against its interfaces with dependencies stubbed: lifecycle enforcement, hash binding of approvals, release checks, escalation rules, outbox and inbox behaviour.
- Integration testing. Contract tests for IF-EBP-001 to 011 and for each event schema, with Domains 1, 3, 4, 8 and 10; retries, duplicates, out-of-order delivery, dead-letter and replay; proposal acceptance and rejection; terminology validation.
- End-to-end workflow testing. WF-EBP-001 to 008 across domains with synthetic patients, including the flow in REF-002 section 5.3 from publication through eligibility, activation, execution, exception and evaluation.
- Content verification. Each pathway version is verified by its own scenario pack as part of the content lifecycle; this is a clinical content control and is additional to software testing. Clinical schemas, terminology bindings and pathway definitions are validated automatically before deployment (PRS SDLC-003).
- Clinical safety testing. Each control in section 11.1 has at least one test; negative tests cover activation without a clinician, eligibility on missing or stale data, duplicate proposals, and EBP failure during Tier 1 workflows.
- Performance testing. NFR-EBP-001 to 005 at modelled peak load, including slow dependencies and event backlog recovery; confirmation that measurement never touches OLTP.
- Security testing. Threat model; authorization matrix for every role, resource and action in section 9.2, including denied cases; service-identity scope tests; content integrity tests; PHI minimization in events; SAST, DAST, dependency scanning and penetration testing under the enterprise programme (PRS SEC-011).
- Usability testing. Task-based tests with representative clinicians, nurses, designers and governance users before each major clinical release (PRS SAFE-006); accessibility tests.
- User acceptance testing. Scenario-based UAT with clinical owner approval; clinical governance signs off the released content for go-live.
- Operational readiness testing. Monitoring, alerts, runbooks, backup and restore, DR with replay and reconciliation, downtime and restoration rehearsal including pathway reconciliation (PRS ACC-006, ACC-007, ACC-009).
- Migration testing. Trial loads of legacy content with quarantine behaviour verified.
Test evidence is retained with test case ID, requirement ID, build, environment, data classification, tester, date, outcome and approver, using synthetic or de-identified data (PRS section 17.3).
15.2 Test Scenario Catalogue¶
| Test ID | Requirement ID | Scenario | Test Type | Expected Result |
|---|---|---|---|---|
| TEST-EBP-001 | FR-EBP-EVR-001 | Register an evidence item with all mandatory fields; attempt edit after it is referenced by a published guideline | Functional | Item stored with provenance; edit refused; new version possible |
| TEST-EBP-002 | FR-EBP-EVR-001, FR-EBP-GDL-003 | Mark referenced evidence withdrawn | Functional | Review trigger raised on each referencing published guideline version |
| TEST-EBP-003 | FR-EBP-EVR-002 | Search by topic; retrieve as-of a past date; search as a user without licence permission | Functional / Security | Effective version returned; correct historical version; restricted content withheld |
| TEST-EBP-004 | FR-EBP-GDL-001 | Submit a guideline with a missing review date; save an adapted recommendation without rationale | Functional | Submission blocked; save refused |
| TEST-EBP-005 | FR-EBP-GDL-002 | Publish a version with no approval; publish after content changed post-approval | Functional / Safety | Both refused |
| TEST-EBP-006 | FR-EBP-GDL-002 | Publish version 2 with an effective date; attempt to edit version 2 | Functional | Version 1 superseded and retrievable; edit refused |
| TEST-EBP-007 | FR-EBP-GDL-002, FR-EBP-PGV-001 | Author attempts to review and approve own version | Security | Refused and audited |
| TEST-EBP-008 | FR-EBP-GDL-003 | Review date passes; overdue period passes; record "no change" | Functional | Review-due marker and task; escalation; review recorded without new content version |
| TEST-EBP-009 | FR-EBP-EGR-001 | Record a grade under a scheme; submit a value outside the scheme; revise the scheme after publication | Functional | Stored with scheme version; rejected; published assessments unchanged |
| TEST-EBP-010 | FR-EBP-MAP-001 | Bind a concept to SNOMED CT and separately to ICD-10; publish with second-steward review | Functional | Separate typed targets; versioned, effective-dated, immutable |
| TEST-EBP-011 | FR-EBP-MAP-002 | Validate a draft with an inactive code and an ambiguous one-to-many mapping | Functional / Safety | Exceptions raised; publication blocked until resolved |
| TEST-EBP-012 | FR-EBP-MAP-002 | New terminology version inactivates a code used in a published mapping | Integration / Safety | Exception raised; published version unchanged; no automatic replacement; review triggers on dependent content |
| TEST-EBP-013 | FR-EBP-PAU-001 | Configure a complete pathway (criteria, phases, activities, milestones, branches, orders, tasks, escalation, outcomes) | Functional | Saved and rendered with no code change or deployment; references stored with versions |
| TEST-EBP-014 | FR-EBP-PAU-002 | Declare weight and renal-function parameters; omit missing-data behaviour on a branch | Functional / Safety | Blocking finding until behaviour is declared |
| TEST-EBP-015 | FR-EBP-PAU-003 | Validate a draft with an unreachable node, a loop and an inactive order-set reference | Functional | Blocking findings identify each defect; submission refused |
| TEST-EBP-016 | FR-EBP-PAU-003 | Run a scenario pack with all required categories; edit the draft afterwards | Functional | Evidence recorded with content hash; evidence invalidated by the edit; preview creates no instance or native record |
| TEST-EBP-017 | FR-EBP-PGV-001 | Attempt approval with safety review outstanding; then complete the route | Functional / Safety | Refused; then approved with complete approval record |
| TEST-EBP-018 | FR-EBP-PGV-002 | Promote with a suspended linked guideline, an open mapping exception, or an inactive reference | Functional / Safety | Each release check fails and blocks promotion |
| TEST-EBP-019 | FR-EBP-PGV-002 | Release version 2 while an instance is active on version 1; alter the package in transit | Functional / Security | Instance stays on version 1; new activations use version 2; hash mismatch aborts release |
| TEST-EBP-020 | FR-EBP-PGV-003 | Roll back version 2; roll back when no prior version exists | Functional | Version 1 restored as effective; second case refused with suspension offered |
| TEST-EBP-021 | FR-EBP-PGV-003 | Emergency suspension with three active instances | Functional / Safety | Version no longer offered; instances flagged and unchanged; clinicians notified; retrospective review task created |
| TEST-EBP-022 | FR-EBP-ELG-001 | Evaluate a patient meeting all inclusions; a patient meeting an exclusion | Functional | Potentially eligible with rationale and sources; not eligible with the exclusion shown |
| TEST-EBP-023 | FR-EBP-ELG-002, FR-EBP-PAU-002 | Evaluate with missing weight, stale renal result, uncertain allergy, conflicting medication lists, unverified imported diagnosis | Safety | Affected criteria indeterminate; overall result not "potentially eligible"; data needed listed |
| TEST-EBP-024 | FR-EBP-ELG-001, FR-EBP-ACT-001 | Leave an eligible result undecided; change a contributing diagnosis and attempt confirmation | Safety | No instance created; evaluation expired and re-evaluation required |
| TEST-EBP-025 | FR-EBP-ACT-001, FR-EBP-RUN-001 | Authorized clinician confirms activation | Functional | Active instance bound to patient, encounter, version, author and timestamp; event emitted; audited |
| TEST-EBP-026 | FR-EBP-ACT-001 | Service identity submits Confirm; clinician defers; clinician rejects | Security / Functional | Service request refused and audited; decisions recorded with reason and no instance |
| TEST-EBP-027 | FR-EBP-ACT-001 | Submit the same confirmation twice; confirm when an active instance exists | Safety | Exactly one instance; duplicate refused with existing instance shown |
| TEST-EBP-028 | FR-EBP-RUN-001 | Ward transfer, discharge and patient merge events for an active instance | Integration | Care team updated; instance flagged at discharge; references re-pointed per Domain 1 and recorded |
| TEST-EBP-029 | FR-EBP-RUN-002 | Order-set activity proposed to CPOE; inspect signed order and the EBP store | Integration | Unsigned draft in CPOE; signed order retains pathway and version references; EBP store holds references only |
| TEST-EBP-030 | FR-EBP-RUN-002 | Deliver the same proposal twice; reach an activity already satisfied by an existing order | Integration / Safety | One native record; activity linked to the existing order with no new proposal |
| TEST-EBP-031 | FR-EBP-RUN-002 | Domain 3 rejects a proposal; Domain 3 unavailable for a period | Integration | Activity Blocked with reason and in reconciliation queue; proposals queued and delivered after recovery |
| TEST-EBP-032 | FR-EBP-RUN-003 | Timed activity; completion by validated result event; activity not completed by due time | Integration | Correct due time; completed with link and event time; overdue flag and event |
| TEST-EBP-033 | FR-EBP-RUN-003 | Duplicate and out-of-order events; consumer outage; paused instance | Integration / Resilience | One step event per source event; correct final state; freshness indicator; no overdue during pause |
| TEST-EBP-034 | FR-EBP-RUN-004 | CDS requests guidance for an active instance; guidance service unavailable at order signing; suspended version | Integration / Safety | Guidance returned with version and provenance; signing proceeds; no guidance from the suspended version |
| TEST-EBP-035 | FR-EBP-EXC-001 | Record a deviation with reason; place a native order that differs from the pathway | Functional / Safety | Exception stored and visible to care team; native order not blocked |
| TEST-EBP-036 | FR-EBP-EXC-001 | Pause, resume and discontinue an instance that has a signed pathway-originated order | Functional / Safety | States change correctly; unsigned proposals withdrawn; signed order unchanged and listed |
| TEST-EBP-037 | FR-EBP-EXC-002, FR-EBP-OUT-002 | Record not applicable, deferred and declined; task marked not done in Domain 3 | Functional / Integration | Outcomes recorded with reason; no double entry; variances appear in reporting by classification |
| TEST-EBP-038 | FR-EBP-EXC-003 | Activity overdue beyond threshold; escalation unacknowledged; activity then completed | Functional | Recipient notified; next level notified; escalation closes on completion |
| TEST-EBP-039 | FR-EBP-EXC-003 | Escalation fires with notification service down; original due time passes while paused; recipient unresolved | Resilience | Escalation recorded and visible, delivered later; none raised while paused; fallback role used |
| TEST-EBP-040 | FR-EBP-OUT-001 | Publish a measure without exclusions defined; change a published definition | Functional | Refused; new version required |
| TEST-EBP-041 | FR-EBP-OUT-002 | Register a result; trace lineage; instances on two versions; payload without lineage | Integration | Numerator, denominator, exclusions, period and lineage shown; each instance counted under its version; incomplete payload rejected |
| TEST-EBP-042 | FR-EBP-OUT-003 | Record a "revise" decision and release the resulting version | Functional | Draft linked to decision; released content unchanged until release; version history shows the decision |
| TEST-EBP-043 | FR-EBP-GOV-001 | Open the console with overdue reviews and shared mapping versions; export catalogue as at a date | Functional | Warnings and queues correct; dependents listed; catalogue lists versions effective on the date |
| TEST-EBP-044 | FR-EBP-GOV-002 | Perform lifecycle and patient-level actions with the audit service down, then restore | Integration / Security | Actions proceed; every action has an audit record after recovery; step events cannot be altered |
| TEST-EBP-045 | FR-EBP-GOV-003 | Reconstruct an instance completed under version 1 after two revisions and a later amendment of an input fact | Functional | Version 1 content, mappings, evidence and evaluated values shown as at the time; later change indicated; referenced versions cannot be deleted |
| TEST-EBP-046 | FR-EBP-RUN-002, NFR-EBP-004 | Stop all EBP services during emergency, ordering, medication administration and documentation scenarios | Resilience / Safety | Tier 1 workflows complete without delay; host workspaces show pathway functions unavailable |
| TEST-EBP-047 | NFR-EBP-011, NFR-EBP-007 | Restore EBP stores to a recovery point; replay owning-domain events; run reconciliation; rehearse HIS downtime and restoration | Operational readiness | State converges; no duplicate native records; mismatches listed; downtime-window activities identifiable |
| TEST-EBP-048 | Section 9.2 access model | Authorization matrix for every role, resource and action, including denied cases and consent-withheld facts | Security | Allowed and denied outcomes match the matrix; denials audited; withheld facts yield indeterminate criteria |
| TEST-EBP-049 | NFR-EBP-001 to NFR-EBP-005 | Load test at modelled peak with slow dependencies and event backlog | Performance | Targets met or deviations recorded for decision |
| TEST-EBP-050 | NFR-EBP-016 | Export all content, mappings, patient-level records and configuration; parse with an independent consumer | Operational readiness | Complete, documented, parsable export preserving identifiers, versions and provenance |
| TEST-EBP-051 | BR-EBP-032, MIG-EBP-001 | Load legacy guideline without verifiable approval; attempt activation of dependent pathway | Migration / Safety | Content quarantined; activation impossible until the full lifecycle is completed |
| TEST-EBP-052 | UX-EBP-001 to UX-EBP-008, NFR-EBP-009 | Task-based usability and accessibility tests on activation, timeline, exception and authoring | Usability | Agreed task success criteria met; findings resolved or accepted |
| TEST-EBP-053 | NFR-EBP-017 | Run measurement and dashboards under load while auditing queries on EBP and clinical OLTP | Performance | No analytical query on transactional stores |
| TEST-EBP-054 | FR-EBP-ELG-003 | Run the worklist with one pathway opted in and one not; view as users of two units; reject a listed patient | Functional / Security | Only the opted-in pathway is screened; each unit sees only its patients; the rejected patient leaves the list; no instance is created |
| TEST-EBP-055 | FR-EBP-ACT-001, FR-EBP-RUN-002 | Activate a second pathway that is declared mutually exclusive, then one with a duplicate and a contradictory activity; release a version that creates a conflict for a running instance | Safety | Confirm refused without override reason; duplicate linked, not proposed twice; contradictory activity held; late conflict emits PathwayConflictDetected and a task reaches the attending practitioner |
| TEST-EBP-056 | FR-EBP-RUN-001 | Declare a downtime with the EBP stores reachable and an owning domain unavailable; then run the scheduled shift print | Business continuity | A plan for every Active or Paused instance of each unit is in the downtime report set, with remaining activities, owners, due times and print time |
| TEST-EBP-057 | FR-EBP-ACT-001, FR-EBP-EXC-002 | Record activation decisions and a declined step with each patient preference value | Functional | Preference, shared-decision flag and alternative are stored, shown on the timeline and in reconstruction |
15.3 Acceptance Criteria¶
The domain is accepted for a release when all of the following hold.
- All Must requirements in the agreed release scope (section 16.1) are implemented and pass verification, or have an approved, time-bound waiver (PRS ACC-001).
- WF-EBP-001 to WF-EBP-008 pass end-to-end tests with clinical owner approval, including the patient-level workflow gate of REF-003 (explainable eligibility, authorized clinician activation, linked execution activities, safe missing and stale data behaviour) and the clinical exception gate (deviation, pause, resume, discontinuation preserve reason, author, timestamp, context and audit trail).
- Integration contracts IF-EBP-001 to 011 and all event schemas pass contract tests with the owning and consuming domains; acknowledgement, error handling, replay, reconciliation and monitoring are demonstrated (PRS ACC-005).
- Security and privacy controls pass assessment; no unresolved critical or high vulnerability remains without formal risk acceptance (PRS ACC-003).
- Performance targets are met, or deviations are approved against the provisional baselines.
- Failure of EBP services is demonstrated not to block core clinical transactions; downtime, queue replay, access, audit and recovery tests pass (REF-003 addendum section 6).
- Content migration is validated: inventory reconciled, unverified legacy content quarantined, every released pathway approved through the lifecycle.
- Clinical governance has approved the guidelines, pathways and mappings released for go-live, and named owners, review cadence and approval body are in place (PRS ACC-010; REF-003 clinical content governance gate).
- Analytics and improvement are demonstrated: reproducible measures with cohort, numerator, denominator, exclusions, period and lineage, a governance review and a new-version approval.
- Operational documentation, runbooks, dashboards, support paths and training are complete (PRS ACC-009).
- Hazards in section 11 are entered in the hazard log with controls verified; outstanding risks are formally accepted or resolved.
- Complete export of EBP data and configuration is demonstrated (PRS ACC-008).
15.4 Requirement Verification Matrix¶
| Requirement ID | Test ID | Verification Method | Result | Evidence |
|---|---|---|---|---|
| FR-EBP-EVR-001 | TEST-EBP-001, 002 | Test | Pending | To be recorded |
| FR-EBP-EVR-002 | TEST-EBP-003 | Test | Pending | To be recorded |
| FR-EBP-GDL-001 | TEST-EBP-004 | Test | Pending | To be recorded |
| FR-EBP-GDL-002 | TEST-EBP-005, 006, 007 | Test | Pending | To be recorded |
| FR-EBP-GDL-003 | TEST-EBP-002, 008 | Test | Pending | To be recorded |
| FR-EBP-EGR-001 | TEST-EBP-009 | Test | Pending | To be recorded |
| FR-EBP-MAP-001 | TEST-EBP-010 | Test | Pending | To be recorded |
| FR-EBP-MAP-002 | TEST-EBP-011, 012 | Test | Pending | To be recorded |
| FR-EBP-PAU-001 | TEST-EBP-013 | Test / Inspection | Pending | To be recorded |
| FR-EBP-PAU-002 | TEST-EBP-014, 023 | Test | Pending | To be recorded |
| FR-EBP-PAU-003 | TEST-EBP-015, 016 | Test | Pending | To be recorded |
| FR-EBP-PGV-001 | TEST-EBP-007, 017 | Test | Pending | To be recorded |
| FR-EBP-PGV-002 | TEST-EBP-018, 019 | Test | Pending | To be recorded |
| FR-EBP-PGV-003 | TEST-EBP-020, 021 | Test | Pending | To be recorded |
| FR-EBP-ELG-001 | TEST-EBP-022, 024 | Test | Pending | To be recorded |
| FR-EBP-ELG-002 | TEST-EBP-023 | Test | Pending | To be recorded |
| FR-EBP-ELG-003 | TEST-EBP-054 | Test | Pending | To be recorded |
| FR-EBP-ACT-001 | TEST-EBP-024, 025, 026, 027, 055, 057 | Test | Pending | To be recorded |
| FR-EBP-RUN-001 | TEST-EBP-025, 028, 056 | Test | Pending | To be recorded |
| FR-EBP-RUN-002 | TEST-EBP-029, 030, 031, 046, 055 | Test / Inspection | Pending | To be recorded |
| FR-EBP-RUN-003 | TEST-EBP-032, 033 | Test | Pending | To be recorded |
| FR-EBP-RUN-004 | TEST-EBP-034 | Test | Pending | To be recorded |
| FR-EBP-EXC-001 | TEST-EBP-035, 036 | Test | Pending | To be recorded |
| FR-EBP-EXC-002 | TEST-EBP-037, 057 | Test | Pending | To be recorded |
| FR-EBP-EXC-003 | TEST-EBP-038, 039 | Test | Pending | To be recorded |
| FR-EBP-OUT-001 | TEST-EBP-040 | Test | Pending | To be recorded |
| FR-EBP-OUT-002 | TEST-EBP-037, 041, 053 | Test / Analysis | Pending | To be recorded |
| FR-EBP-OUT-003 | TEST-EBP-042 | Test | Pending | To be recorded |
| FR-EBP-GOV-001 | TEST-EBP-043 | Test | Pending | To be recorded |
| FR-EBP-GOV-002 | TEST-EBP-044 | Test | Pending | To be recorded |
| FR-EBP-GOV-003 | TEST-EBP-045 | Test | Pending | To be recorded |
| NFR-EBP-001 to 005 | TEST-EBP-049 | Test | Pending | To be recorded |
| NFR-EBP-006 | TEST-EBP-048 | Test / Assessment | Pending | To be recorded |
| NFR-EBP-007, NFR-EBP-011 | TEST-EBP-027, 030, 033, 047 | Test / Exercise | Pending | To be recorded |
| NFR-EBP-009, NFR-EBP-013 | TEST-EBP-052 | Evaluation | Pending | To be recorded |
| NFR-EBP-016 | TEST-EBP-050 | Test | Pending | To be recorded |
| NFR-EBP-017 | TEST-EBP-053 | Test | Pending | To be recorded |
| NFR-EBP-008, 010, 012, 014, 015 | — | Inspection / Review at operational readiness | Pending | To be recorded |
← 14. Technical and Architectural Constraints | Contents | Identifier index | 16. Implementation and Deployment Considerations →