Skip to content

Domain specifications / D06-HIM / 15. Testing and Verification Requirements

15. Testing and Verification Requirements

15.1 Verification Strategy

Verification follows the PRS test strategy (PRS 17.1) and evidence rules (PRS 17.3). Test evidence uses synthetic or de-identified data.

  • Unit testing. State transitions of section 4.3, business rules BR-HIM-001 to BR-HIM-020, processing rules, validation and permission checks.
  • Component testing. Each component of section 14.2 against its API, including idempotency, optimistic concurrency and error responses.
  • Integration testing. Contract tests for IF-HIM-001 to IF-HIM-005 and all EVT-HIM events; consumption of Domain 1, 3, 4 and 10 events with duplicates, delays, reordering and outages; consent, terminology, document and audit service failure behaviour.
  • End-to-end workflow testing. WF-HIM-001 to WF-HIM-006 across domains, including discharge to chart completion to coding to billing readiness (REF-002 flow 5.4) and request to release to accounting.
  • Performance testing. Interactive targets of NFR-HIM-001 under agreed HIM workload; retention evaluation and reconciliation at projected record volumes; proof that HIM batch work does not degrade clinical services.
  • Security testing. Threat model of disclosure, disposal and hold functions; access control tests by role, purpose and facility; separation of duties; fail-closed behaviour; time-limited access; audit completeness and tamper detection with Domain 10.
  • Usability testing. Task-based tests with coders, HIM analysts, indexing clerks and ROI officers (NFR-010, SAFE-006).
  • User acceptance testing. Scenario-based UAT signed by the Head of HIM, the Privacy Officer and the legal or compliance function.
  • Operational readiness testing. Monitoring and alerts, backup and restore with post-restore reconciliation, runbooks, downtime procedure for manual disclosures.
  • Migration testing. Trial migrations for MIG-HIM-001 to MIG-HIM-007 with counts, checksums, sampling and exception queues.

15.2 Test Scenario Catalogue

Test ID Requirement ID Scenario Test Type Expected Result
TEST-HIM-001 FR-HIM-WBN-001 Work item created, taken, passes due time, closed Functional Item escalates with owner unchanged; closure reports age and reason
TEST-HIM-002 FR-HIM-WBN-001 Two users take the same item Functional Second take rejected, holder shown
TEST-HIM-003 FR-HIM-WBN-002 Merge then unmerge of two identities with HIM records, an active hold and a restriction Integration Records follow links, originals kept, hold persists, restriction flagged, post-merge records listed
TEST-HIM-004 FR-HIM-COD-001 Discharge event creates coding record; coder assigns codes; on hold raises deficiency Functional / Integration Pending record created; codes stored with role, sequence, version; deficiency raised
TEST-HIM-005 FR-HIM-COD-002 Candidates from crosswalk; undecided candidate at finalisation; unmapped concept Functional / Integration Candidates show source, confidence, version; finalisation refused; stewardship item raised
TEST-HIM-006 FR-HIM-COD-003 Retired code; historical encounter; terminology outage with and without valid cache Functional / Integration Invalid code blocked; effective version used; cache used or finalisation blocked
TEST-HIM-007 FR-HIM-COD-003 Problem list inspected after coding Integration Clinical concepts unchanged
TEST-HIM-008 FR-HIM-COD-004 Finalise, revise, read status through IF-HIM-001; coding-related rejection received Integration Events emitted; versions retrievable; recode work item created
TEST-HIM-009 FR-HIM-COD-004 HIM coding service stopped during clinical documentation and ordering Resilience No clinical transaction fails
TEST-HIM-010 FR-HIM-CDT-001 Missing and unsigned discharge summary; re-evaluation; rule with future effective date; lost event then reconciliation Functional / Integration Correct deficiency type; no duplicate; correct rule version; gap detected
TEST-HIM-011 FR-HIM-CDT-002 Assign, notify, escalate, close on signature, inactive owner, waive Functional / Integration States and notifications as specified; fallback queue used; waiver needs manager and reason
TEST-HIM-012 FR-HIM-RAC-001 Components from Domains 3 and 4 and a scan; corrected report; duplicate event; reconciliation Integration List complete with versions; no duplicates; differences reported
TEST-HIM-013 FR-HIM-RAC-002 Completion blocked by open mandatory deficiency; completion and lock; order on another encounter Functional / Integration Refused; ChartCompleted and RecordLocked emitted; care not blocked
TEST-HIM-014 FR-HIM-RAC-003 Addendum on locked record; coding review; patient correction request; partial outcome; withdrawal in the portal Integration Original intact; Reopened; work items created; no change before clinician amendment; Partly Amended shown as Partly Accepted; Withdrawn with review task closed and EVT-HIM-016 published
TEST-HIM-015 FR-HIM-DOC-001 Search by patient, encounter, type, author, date; encounter of another patient; reclassification Functional Found by each attribute; mismatch rejected; history kept
TEST-HIM-016 FR-HIM-DOC-002 Version chain; delete attempt; entered in error; hash mismatch Functional / Security Versions retrievable; delete refused and audited; integrity alert
TEST-HIM-017 FR-HIM-DOC-003 Downtime form batch; duplicate form number; failed quality check; mis-indexing correction Functional Forms linked to downtime event; duplicate flagged; failed scan excluded; correction with history and exposure list
TEST-HIM-018 FR-HIM-RET-001 Draft rule; rule of another jurisdiction; overlap; class without rule; period below 25 years; co-approval; rollback Functional Not applied; not applied; rejected; listed; warning, submitted only with a reason; In review until both approve; earlier version Active, nothing archived changed
TEST-HIM-019 FR-HIM-RET-002 Eligible record archived; held record; restore Functional / Integration Archived and retrievable; held record excluded; restore audited
TEST-HIM-020 FR-HIM-RET-003 Disposal with all approvals; missing approval; preparer approves; hold applied after approval; delete outside workflow Functional / Security Disposed with tombstone and disposal record; refused; refused; skipped; refused and audited
TEST-HIM-021 FR-HIM-LHD-001 Hold by patient; new document after hold; two holds, one released; history Functional / Integration Records held; new document held; still held; history complete
TEST-HIM-022 FR-HIM-LHD-002 Disposal of held record through every path; addendum on held record; hold register unavailable; hold across merged identity Security / Resilience Refused and notified; addendum accepted and held; nothing disposed; refused
TEST-HIM-023 FR-HIM-ROI-001 Register complete request; missing recipient; portal-submitted request; overdue request Functional / Integration Number and due date assigned; refused; visible with channel; escalated
TEST-HIM-024 FR-HIM-ROI-002 Release without verification; authorization limited to one encounter; expired authorization Security Blocked; other content not selectable; cannot be Verified
TEST-HIM-025 FR-HIM-ROI-003 Labelled content with restrictive consent; masking; change after approval; preparer approves Security / Functional Excluded by default; source unchanged and masked text absent; returns to In Preparation; rejected
TEST-HIM-026 FR-HIM-ROI-004 Release with valid consent; consent withdrawn after approval; consent service down; access expiry; retry Integration / Security Entry with four attributes; blocked, no entry; blocked; access ends; one entry only
TEST-HIM-027 FR-HIM-CEV-001 Scan consent form with directive link; withdrawn directive; directive without evidence Integration Evidence resolvable per version; original retrievable; gap listed
TEST-HIM-028 FR-HIM-CEV-002 Deny decision with and without Privacy Officer exception; withdrawal event on approved request; restriction request at HIM Integration / Security Blocked unless exception with legal basis; request returns to review; directive in Domain 10 with evidence link
TEST-HIM-029 FR-HIM-AUD-001 Accounting for a period; update or delete of entry; recordable external exchange; search without reason; patient version; SATUSEHAT per-patient lines Functional / Security Lists disclosures; refused; entry with correlation ID; refused; staff by role, withheld law-enforcement entry left out; lines from the submission record
TEST-HIM-030 FR-HIM-AUD-002 Access report with reason; emergency access marked; user without role; report run audited; merged identifier; change to a Closed review Security Events listed; marked; refused; run recorded; access under the merged identifier listed; refused, new review references it
TEST-HIM-031 NFR-HIM-001 Interactive HIM actions at 2x the peak of 10.1 Performance p95 and p99 targets of NFR-HIM-001 met
TEST-HIM-032 NFR-HIM-009 Restore HIM stores, then reconcile before disposition Operational readiness Tier 2 RTO ≤ 4 hours and RPO ≤ 1 hour met; hold and disposal state consistent
TEST-HIM-033 NFR-HIM-014 Export all HIM data and configuration and validate independently Other (export) Identifiers, relationships, versions and provenance preserved
TEST-HIM-034 WF-HIM-001, WF-HIM-002 Discharge to chart completion to coding to billing readiness End-to-end Status reaches Domain 5; all events reconciled
TEST-HIM-035 MIG-HIM-001 to MIG-HIM-007 Trial migration with reconciliation Migration Counts and checksums match; exceptions queued; HIM sign-off obtained
TEST-HIM-036 FR-HIM-ROI-005 Encounter and Condition triggered together; correction of a sent Condition; profile rejection; SATUSEHAT unavailable for a day; patient without IHS number Integration / Conformance Encounter accepted first and referenced; update, no duplicate; work item to owner; queue drains in order with clinical work unaffected; resources held with a Domain 1 work item

15.3 Acceptance Criteria

The domain is accepted when all of the following hold.

  • All Must requirements in the agreed release scope pass verification or have an approved, time-bound waiver (ACC-001).
  • WF-HIM-001 to WF-HIM-006 pass end-to-end tests with sign-off by the Head of HIM, the Privacy Officer and the legal or compliance function.
  • Interface and event contracts IF-HIM-001 to IF-HIM-005 and EVT-HIM-001 to EVT-HIM-015 are validated with their consumers, including duplicate, delay, replay and outage cases (ACC-005 where the interface is classed critical).
  • Security and privacy controls pass assessment: no release without verification, basis and consent check; no disposal without approval or under hold; no unresolved critical or high vulnerability without formal risk acceptance (ACC-003).
  • HIM merge and unmerge handling passes as part of identity safety testing (ACC-004).
  • Performance and recoverability targets, once validated, are met (ACC-006).
  • Migration of legacy records is reconciled and signed off by HIM, privacy and, where clinical content is involved, clinical owners (PRS 16.2).
  • Complete export of HIM data and configuration is demonstrated (ACC-008).
  • Retention rules, the legal record definition, completeness rules and disclosure request types are approved by their owners.
  • Runbooks, dashboards, support paths and HIM downtime procedures are operational (ACC-009).
  • Outstanding risks in section 11.3 and open items in section 18 are resolved or formally accepted.

15.4 Requirement Verification Matrix

Requirement ID Test ID Verification Method Result Evidence
FR-HIM-WBN-001 TEST-HIM-001, TEST-HIM-002 Test Pending TBD
FR-HIM-WBN-002 TEST-HIM-003 Test Pending TBD
FR-HIM-COD-001 TEST-HIM-004 Test Pending TBD
FR-HIM-COD-002 TEST-HIM-005 Test Pending TBD
FR-HIM-COD-003 TEST-HIM-006, TEST-HIM-007 Test Pending TBD
FR-HIM-COD-004 TEST-HIM-008, TEST-HIM-009, TEST-HIM-034 Test Pending TBD
FR-HIM-CDT-001 TEST-HIM-010 Test Pending TBD
FR-HIM-CDT-002 TEST-HIM-011 Test Pending TBD
FR-HIM-RAC-001 TEST-HIM-012 Test Pending TBD
FR-HIM-RAC-002 TEST-HIM-013, TEST-HIM-034 Test Pending TBD
FR-HIM-RAC-003 TEST-HIM-014 Test Pending TBD
FR-HIM-DOC-001 TEST-HIM-015 Test Pending TBD
FR-HIM-DOC-002 TEST-HIM-016 Test Pending TBD
FR-HIM-DOC-003 TEST-HIM-017 Test Pending TBD
FR-HIM-RET-001 TEST-HIM-018 Test; Inspection of approved schedule Pending TBD
FR-HIM-RET-002 TEST-HIM-019 Test Pending TBD
FR-HIM-RET-003 TEST-HIM-020 Test Pending TBD
FR-HIM-LHD-001 TEST-HIM-021 Test Pending TBD
FR-HIM-LHD-002 TEST-HIM-022 Test Pending TBD
FR-HIM-ROI-001 TEST-HIM-023 Test Pending TBD
FR-HIM-ROI-002 TEST-HIM-024 Test Pending TBD
FR-HIM-ROI-003 TEST-HIM-025 Test Pending TBD
FR-HIM-ROI-004 TEST-HIM-026 Test Pending TBD
FR-HIM-ROI-005 TEST-HIM-036 Test Pending TBD
FR-HIM-CEV-001 TEST-HIM-027 Test Pending TBD
FR-HIM-CEV-002 TEST-HIM-028 Test Pending TBD
FR-HIM-AUD-001 TEST-HIM-029 Test Pending TBD
FR-HIM-AUD-002 TEST-HIM-030 Test Pending TBD
NFR-HIM-001 TEST-HIM-031 Test Pending TBD
NFR-HIM-009 TEST-HIM-032 Test (exercise) Pending TBD
NFR-HIM-014 TEST-HIM-033 Test Pending TBD
NFR-HIM-002 to NFR-HIM-008, NFR-HIM-010 to NFR-HIM-013, NFR-HIM-015 To be defined in the test plan Test / Analysis / Inspection Pending TBD

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