Skip to content

Domain specifications / D01-ADM / 15. Testing and Verification Requirements

15. Testing and Verification Requirements

15.1 Verification Strategy

Verification follows the test levels of PRS section 17.1. Evidence is retained in the controlled repository with the content required by PRS 17.3, using synthetic or de-identified data.

  • Unit testing. Matching comparators and scoring, band classification, identifier generation and uniqueness, state machines for encounter, bed, appointment, queue and transfer, priority ordering rules, temporal validation.
  • Component testing. Each service of section 14.2 against its API contract, including permissions, idempotency, version conflicts and error responses.
  • Integration testing. HL7 v2 ADT, FHIR and IHE PIX / PDQ / PAM conformance packs; event contracts with every consuming domain; retries, duplicates, ordering and reconciliation; Domain 5 payer and Domain 10 consent, notification and task interactions.
  • End-to-end workflow testing. Registration to discharge journeys for outpatient, emergency and inpatient encounters, including transfer and closure (PRS 16.1 phase 2 exit criterion); merge and unmerge across all consumers.
  • Performance testing. Peak front-desk and emergency load, slot search, bed search, event bursts, duplicate scans, consumer recovery; latency against NFR-ADM-001 and NFR-ADM-002.
  • Security testing. Access control by role, facility and relationship; privilege separation for merge, correction and override; audit completeness; enumeration resistance of search and query interfaces; penetration testing with the platform.
  • Usability testing. Task-based tests with registration clerks, stewards, bed managers, ward nurses, schedulers and triage nurses; accessibility paths (UX-ADM-001 to UX-ADM-008).
  • User acceptance testing. Scenario-based UAT owned by registration governance, operations and emergency leadership; identity safety scenarios of ACC-004 with steward workflow evidence.
  • Operational readiness testing. Monitoring, runbooks, backup and restore, failover, downtime and restoration reconciliation for registration and ADT (ACC-006, ACC-007, ACC-009).
  • Migration testing. Trial migrations with counts, checksums, identity matching, census reconciliation and sampling (section 7.7).

15.2 Test Scenario Catalogue

Test ID Requirement ID Scenario Test Type Expected Result
TEST-ADM-001 FR-ADM-MPI-001 Search by a facility A identifier from facility B; search by alias; unqualified identifier Functional One person with both identifiers; alias found; unqualified search rejected
TEST-ADM-002 FR-ADM-MPI-002 Deterministic and probabilistic matching on a reference data set; benchmark a candidate configuration Functional / Analysis Scores with evidence and version; performance report; production unchanged
TEST-ADM-003 FR-ADM-MPI-003 Pairs in each band; exclusion flags; automatic merge disabled Functional / Safety Correct routing; no merge without policy; decisions explained
TEST-ADM-004 FR-ADM-MPI-004 Work item creation, assignment, resolution, aging report, duplicate item prevention Functional Items managed; reason mandatory; metrics reported
TEST-ADM-005 FR-ADM-MPI-005 Merge two records with encounters, then unmerge Functional / Safety Identifiers, encounters and authorship intact after both operations
TEST-ADM-006 FR-ADM-REG-001 Register emergency and planned inpatient encounters under different field sets and a jurisdiction profile Functional Mandatory fields enforced per configuration
TEST-ADM-007 FR-ADM-REG-002 Change demographics; conflicting interface update; concurrent edit; as-at view Functional Provenance stored; conflict queued; version conflict rejected; history reconstructs
TEST-ADM-008 FR-ADM-REG-003 Duplicate prompt; high-risk ambiguity blocks routine registration; emergency path proceeds Functional / Safety Prompt mandatory; block enforced; emergency path available
TEST-ADM-009 FR-ADM-REG-004 Unidentified patient registered and later reconciled; alias; legal name change Functional / Safety Provisional identity; temporary identifiers retained; former name searchable
TEST-ADM-010 FR-ADM-XRF-001 Identifier assignment, concurrent PIN generation, reuse attempt, correction Functional Unique values; no reuse; correction retained in history
TEST-ADM-011 FR-ADM-XRF-002 Cross-reference and demographics query conformance; unauthorized consumer; merged identifier Integration / Security Conformance passes; access denied and audited; survivor returned
TEST-ADM-012 FR-ADM-ENC-001 Encounter creation, CIN uniqueness, idempotent repeat, resolution from CIN Functional One encounter; unique CIN; patient and facility traceable
TEST-ADM-013 FR-ADM-ENC-002 Every valid and invalid transition; correction; concurrent transitions Functional Invalid rejected with reason; valid audited; history preserved
TEST-ADM-014 FR-ADM-ENC-003 Validation for cancelled, unconfirmed, admitted and mismatched encounters; emergency exception; timeout Functional / Safety Correct decisions; no default "valid"
TEST-ADM-015 FR-ADM-ADT-001 Admission with reserved bed; leave with bed-hold; return Functional States, bed and responsibility consistent
TEST-ADM-016 FR-ADM-ADT-002 Admit, transfer, discharge, update and merge events and HL7 v2 messages end-to-end Integration Unique ordered events; messages validated and acknowledged
TEST-ADM-017 FR-ADM-ADT-003 Discharge, closure with met and unmet criteria, waiver, discharge reversal Functional Bed to Cleaning; closure governed; reversal compensates
TEST-ADM-018 FR-ADM-BED-001 Bed state transitions, turnover, blocking, census Functional Only modelled transitions; timestamps and responsible unit recorded
TEST-ADM-019 FR-ADM-BED-002 Allocate blocked, occupied and cleaning beds; concurrent reservation; isolation constraint; expiry Functional / Safety Refused; one reservation; constraint respected; expiry releases
TEST-ADM-020 FR-ADM-SCH-001 Templates and calendars for clinic, diagnostic and procedure resources; exception over bookings Functional Slots derived; affected appointments listed
TEST-ADM-021 FR-ADM-SCH-002 Book, reschedule, remind, cancel, check in, no-show; duplicate request Functional Full lifecycle; history kept; one appointment
TEST-ADM-022 FR-ADM-SCH-003 Multi-resource slot search and conflicting booking Functional Only fully available slots; conflict rejected; unmet dependency shown
TEST-ADM-023 FR-ADM-SCH-004 Waitlist ordering, priority change, unauthorized override, offer on release Functional Policy order; change traceable; override rejected
TEST-ADM-024 FR-ADM-FLW-001 Five arrival types; triage-based ordering; override Functional Correct queues and order; override audited
TEST-ADM-025 FR-ADM-FLW-002 Board update latency; feed interruption; count reconciliation Functional / Performance Within objective; stale indicator; counts reconcile
TEST-ADM-026 FR-ADM-FLW-003 Emergency scenario with non-critical services stopped; re-triage; downtime entry End-to-end / Resilience Domain 1 steps complete; re-routing recorded; no duplicate from downtime
TEST-ADM-027 FR-ADM-TRF-001 Transfer completion; failure of one condition; correction Functional / Safety All-or-nothing; all views agree; compensation works
TEST-ADM-028 FR-ADM-TRF-002 Responsibility at any time across two transfers; handover acknowledgement and escalation Functional Exactly one ward and team; acknowledgement recorded; escalation raised
TEST-ADM-029 FR-ADM-REF-001 Payer capture with Domain 5 available and unavailable Integration Reference and status stored; registration not blocked
TEST-ADM-030 FR-ADM-REF-002 Consent prompt, existing directive, consent service unavailable, emergency Integration Reference stored; no repeat capture; pending listed; emergency unblocked
TEST-ADM-031 FR-ADM-MPI-003, FR-ADM-MPI-002 Identity safety set: twins, aliases, changed demographics, shared contact data (ACC-004, PAT-005) Safety No unsafe silent merge
TEST-ADM-032 FR-ADM-MPI-005 Unmerge with records created after the merge, across consuming domains, following the procedure of FR-ADM-MPI-005 part 6 item 9: post-merge encounters with and without records in Domains 3 to 7, one issued invoice and one administered medication End-to-end / Safety Records held for attribution; each attributed encounter publishes EncounterCorrected and its records move with it in every consumer; records without encounter appear on the owning domain's review; the invoice is credited and reissued; the unmerge item stays open until every domain's items are closed
TEST-ADM-033 FR-ADM-REG-004 Newborn and multiple-birth registration; simultaneous unidentified patients (ACC-004, PAT-010) Safety Distinct persons; mother link; distinct placeholders
TEST-ADM-034 FR-ADM-ADT-002 Consumer outage, duplicate and delayed delivery, replay Resilience No loss; no duplicate effect; order preserved; gaps visible
TEST-ADM-035 FR-ADM-REG-001, FR-ADM-ENC-001, FR-ADM-ADT-001, FR-ADM-TRF-001, FR-ADM-ADT-003 End-to-end registration, admission, transfer and discharge UAT (PRS 16.1 phase 2) User acceptance Journey completes with consistent state in all consumers
TEST-ADM-036 FR-ADM-FLW-003, FR-ADM-XRF-001, FR-ADM-ADT-002 Downtime registration and ADT with restoration reconciliation (ACC-007, BCP-006) Operational readiness All downtime entries reconciled; no duplicate identities
TEST-ADM-037 NFR-ADM-001, NFR-ADM-002 Peak load on search, registration, bed and slot search, event propagation Performance Proposed baseline targets met or deviation recorded
TEST-ADM-038 Section 9.2 Access by role, facility and relationship; merge, correction and override privileges; audit completeness Security Allowed and denied cases as specified; all events audited
TEST-ADM-039 Section 7.7 Trial migration of patients, encounters, beds and appointments Migration Counts and checksums reconcile; uncertain matches queued; census matches
TEST-ADM-040 NFR-ADM-010, NFR-ADM-015 Restore, failover and complete export of Domain 1 data Operational readiness Recovery objectives met; export validated
TEST-ADM-041 NFR-ADM-011 Downtime rehearsal per facility: downtime lists read at the protected local location; registration, admission, transfer and discharge on forms with numbers from the issued blocks; back-entry after recovery, including one known patient given a downtime No. RM and one number used twice Operational readiness Lists no older than 2 hours; all forms back-entered within 24 hours; the downtime No. RM is merged into the existing record; the duplicate number is refused and listed; census matches the bed board

15.3 Acceptance Criteria

Domain 1 is accepted for a release when all of the following hold.

  • All Must requirements of section 5 in the agreed release scope pass verification or have an approved, time-bound waiver (ACC-001).
  • The end-to-end registration, admission, transfer and discharge scenarios and the emergency scenario pass with operational and clinical owner approval (ACC-002; PRS 16.1 phase 2).
  • MPI duplicate, twin, newborn, unknown-patient and merge / unmerge scenarios pass identity safety tests, with steward workflow evidence (ACC-004).
  • ADT, cross-reference, demographics and scheduling interfaces demonstrate acknowledgement, error handling, replay, reconciliation and monitoring (ACC-005), and event contracts are validated with each consuming domain.
  • Security and privacy controls pass assessment with no unresolved critical or high vulnerability lacking formal risk acceptance (ACC-003).
  • Performance, latency and recovery targets are met as validated, or deviations are formally accepted (ACC-006).
  • Migration of patients, encounters, beds and appointments is reconciled and signed off by HIM, operations and privacy (PRS 16.2).
  • Downtime and restoration reconciliation for registration and ADT has been rehearsed (ACC-007).
  • Complete export of Domain 1 data and configuration is demonstrated (ACC-008).
  • Runbooks, dashboards, support paths and trained super-users are in place (ACC-009).
  • Outstanding risks and open decisions of section 18 are resolved or formally accepted.

15.4 Requirement Verification Matrix

Requirement ID Test ID Verification Method Result Evidence
FR-ADM-MPI-001 TEST-ADM-001 Test Pending To be recorded
FR-ADM-MPI-002 TEST-ADM-002, TEST-ADM-031 Test / Analysis Pending To be recorded
FR-ADM-MPI-003 TEST-ADM-003, TEST-ADM-031 Test Pending To be recorded
FR-ADM-MPI-004 TEST-ADM-004 Test Pending To be recorded
FR-ADM-MPI-005 TEST-ADM-005, TEST-ADM-032 Test Pending To be recorded
FR-ADM-REG-001 TEST-ADM-006, TEST-ADM-035 Test Pending To be recorded
FR-ADM-REG-002 TEST-ADM-007 Test / Inspection Pending To be recorded
FR-ADM-REG-003 TEST-ADM-008 Test Pending To be recorded
FR-ADM-REG-004 TEST-ADM-009, TEST-ADM-033 Test Pending To be recorded
FR-ADM-XRF-001 TEST-ADM-010, TEST-ADM-036 Test Pending To be recorded
FR-ADM-XRF-002 TEST-ADM-011 Test Pending To be recorded
FR-ADM-ENC-001 TEST-ADM-012, TEST-ADM-035 Test Pending To be recorded
FR-ADM-ENC-002 TEST-ADM-013 Test Pending To be recorded
FR-ADM-ENC-003 TEST-ADM-014 Test Pending To be recorded
FR-ADM-ADT-001 TEST-ADM-015, TEST-ADM-035 Test Pending To be recorded
FR-ADM-ADT-002 TEST-ADM-016, TEST-ADM-034, TEST-ADM-036 Test Pending To be recorded
FR-ADM-ADT-003 TEST-ADM-017, TEST-ADM-035 Test Pending To be recorded
FR-ADM-BED-001 TEST-ADM-018 Test Pending To be recorded
FR-ADM-BED-002 TEST-ADM-019 Test Pending To be recorded
FR-ADM-SCH-001 TEST-ADM-020 Test Pending To be recorded
FR-ADM-SCH-002 TEST-ADM-021 Test Pending To be recorded
FR-ADM-SCH-003 TEST-ADM-022 Test Pending To be recorded
FR-ADM-SCH-004 TEST-ADM-023 Test Pending To be recorded
FR-ADM-FLW-001 TEST-ADM-024 Test Pending To be recorded
FR-ADM-FLW-002 TEST-ADM-025 Test Pending To be recorded
FR-ADM-FLW-003 TEST-ADM-026, TEST-ADM-036 Test Pending To be recorded
FR-ADM-TRF-001 TEST-ADM-027, TEST-ADM-035 Test Pending To be recorded
FR-ADM-TRF-002 TEST-ADM-028 Test Pending To be recorded
FR-ADM-REF-001 TEST-ADM-029 Test Pending To be recorded
FR-ADM-REF-002 TEST-ADM-030 Test Pending To be recorded
NFR-ADM-001 to NFR-ADM-004 TEST-ADM-037 Test / Analysis Pending To be recorded
NFR-ADM-005 TEST-ADM-038 Test / Assessment Pending To be recorded
NFR-ADM-006, NFR-ADM-011 TEST-ADM-034, TEST-ADM-036, TEST-ADM-041 Test Pending To be recorded
NFR-ADM-010, NFR-ADM-015 TEST-ADM-040 Exercise Pending To be recorded
Section 7.7 migration requirements TEST-ADM-039 Test / Inspection Pending To be recorded

← 14. Technical and Architectural Constraints | Contents | Identifier index | 16. Implementation and Deployment Considerations →