MOD ANC 007 RES
Domain specifications / D04-ANC / 5. Detailed Functional Requirements / 5.7 Module Specification: Diagnostic result validation and critical-result communication
5.7 Module Specification: Diagnostic result validation and critical-result communication¶
5.7.1 Module Overview¶
Module ID: MOD-ANC-007
Purpose: Own the lifecycle of diagnostic results and reports common to all diagnostic services: states, versions, provenance, correlation to orders, publication to the clinical record, and the critical-result workflow.
Business Capabilities: - CAP-ANC-008 Diagnostic result validity and publication - CAP-ANC-009 Critical-result communication
Primary Actors: - ACT-ANC-002, ACT-ANC-005, ACT-ANC-006, ACT-ANC-017, ACT-ANC-021
Dependencies: - MOD-ANC-001 to MOD-ANC-006 - Domain 3 (result consumer, care team, order service); Domain 1 (care team, location); Domain 2 (transport, reconciliation tooling); Domain 10 (notification, workflow, audit)
5.7.2 Functional Areas¶
Functional Area ID: FA-ANC-014 Result lifecycle and publication
Scope: - Included: result states and versions, provenance, placer/filler correlation, unmatched result handling, publication. - Excluded: result display, trend views, routine clinician acknowledgement and patient release (Domain 3, Domain 7).
Functional Area ID: FA-ANC-015 Critical-result communication
Scope: - Included: critical criteria, case creation, recipient resolution, acknowledgement, escalation, closure. - Excluded: the notification delivery channels (Domain 10).
5.7.3 Detailed Requirements¶
Requirement FR-ANC-RES-001: Result lifecycle, versioning and provenance¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ANC-RES-001 |
| Requirement Name | Result lifecycle, versioning and provenance |
| Requirement Type | Functional |
| Module | Diagnostic result validation and critical-result communication |
| Functional Area | FA-ANC-014 |
| Priority | Must |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | PRS RES-001, RES-002, ANC-005, SEC-020, DAT-004 |
| Related Business Rule | BR-ANC-006, BR-ANC-007 |
| Related Workflow | WF-ANC-001, WF-ANC-003, WF-ANC-004 |
1. Requirement Statement
The system shall hold every diagnostic result and report as a versioned record with preliminary, final, corrected, cancelled and withdrawn states, shall preserve for each version the value, unit, reference range, abnormal flag, specimen or observation time, performing facility, instrument or device, operator, validator, validation state and correction history, and shall publish each released version to the clinical record so that a corrected or withdrawn version supersedes the active display while earlier versions remain auditable.
2. Business Rationale
Clinicians act on the current result; investigators need the history. Both depend on an unambiguous active version and preserved provenance.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Validating roles (ACT-ANC-002, ACT-ANC-005, ACT-ANC-006) | Create versions, release, correct, withdraw | Per service |
| Domain 3 service | Read published versions | Service identity |
| Authorized reviewers | Read version history | Audit or quality role |
4. Preconditions - A result exists against an accepted fulfilment order.
5. Trigger - A release, correction, withdrawal or cancellation in a diagnostic module; or an inbound result from an integrated external system.
6. Functional Behaviour
- Store each released result as a new immutable version with a status and a pointer to the version it supersedes.
- Keep event time (collection or observation), analysis time, validation time, recorded time and ingestion time as separate fields.
- Record performing facility, instrument or device, operator and validator on every version.
- For results received from an external or departmental system, validate structure, identifiers, units and status; preserve the source payload reference and source system.
- Publish the released version to Domain 3 with the superseded-version reference so the display can be replaced.
- On correction or withdrawal, notify per BR-ANC-007.
- Serve the version history to authorized users.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Result identifier and version | Identifier / integer | Yes | Version increments by one | Version key |
| Status | Code | Yes | Allowed transition (section 4.3) | Lifecycle state |
| Value, unit, reference range, abnormal flag | As typed | For numeric results | Unit valid for the code | RES-002 content |
| Observation / specimen time | Date-time | Yes | Not after validation time | Clinical time |
| Performing source, instrument, operator, validator | References | Yes (instrument and operator where applicable) | Known entities | ANC-005 provenance |
| Reason | Code + text | For corrected, withdrawn, cancelled | Mandatory | Why |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-RES-001-1 | Exactly one version per result is active at any time | Unambiguous current result |
| PR-RES-001-2 | An inbound message carrying an older version than the active one does not replace it | Out-of-order delivery handled |
| PR-RES-001-3 | Units are stored as received and as the governed canonical unit; display conversion never alters the stored value | Round-trip integrity |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| ResultFinalized / ResultCorrected / ResultWithdrawn | EVT-ANC-006, EVT-ANC-007 | Domains 3, 5, 6, 8, 9 | Published version |
| Result payload | HL7 v2 ORU / FHIR Observation and DiagnosticReport per profile | Domain 3; external consumers via Domain 2 | Result content with provenance |
| Version history | Screen / API | Authorized users | All versions |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Invalid unit or code on inbound result | DAT-002 check | Quarantine with reason | Steward queue |
| Invalid state transition | State model | Reject | Reason returned |
| Publication not acknowledged | Delivery tracking | Retry; list on reconciliation worklist | Visible to service staff |
11. State and Lifecycle Behaviour
Implements the result version state model of section 4.3.
12. Audit Requirements
Creation of each version, release, correction, withdrawal, views of superseded versions and export are audited; provenance records link each assertion to author, validator, device and source (SEC-020).
13. Security and Privacy Requirements
Published results carry privacy labels defined by Domain 10 policy. This domain does not decide patient release; it supplies status and labels for Domain 3 and Domain 7 policy (RES-004).
14. Acceptance Criteria
- AC-01: Given a final result, when corrected, then Domain 3 receives a version that supersedes the active display and the original remains retrievable here.
- AC-02: Given a numeric result, when inspected, then value, unit, reference range, abnormal flag, observation time and performing source are present.
- AC-03: Given a withdrawn result, when the chart is viewed, then it is no longer shown as active and the withdrawal reason is available.
- AC-04: Given an out-of-order older version, when received, then the active version is unchanged.
- AC-05: Given any result, when provenance is opened, then facility, instrument, operator, timestamps and validation state are visible.
15. Dependencies and Integration
- Upstream dependencies: diagnostic modules; external systems via Domain 2.
- Downstream dependencies: Domain 3 (display, review, release), Domains 5, 6, 8, 9.
- Required events or APIs: IF-ANC-002, EVT-ANC-006, EVT-ANC-007.
16. Open Questions / Assumptions
- This document treats RES-001 and RES-002 as primarily owned here for the receive, validate and version obligations, with display owned by Domain 3 (see section 17.1 and DEC-ANC-007).
Requirement FR-ANC-RES-002: Order-to-result correlation and unmatched result handling¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ANC-RES-002 |
| Requirement Name | Order-to-result correlation and unmatched result handling |
| Requirement Type | Functional |
| Module | Diagnostic result validation and critical-result communication |
| Functional Area | FA-ANC-014 |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | PRS RES-005, ORD-005, INT-005 (contributing); BCP-006 and PRS 14.2 (downtime reconciliation, contributing) |
| Related Business Rule | BR-ANC-008, BR-ANC-009, BR-ANC-023 |
| Related Workflow | WF-ANC-001, WF-ANC-004; BP-ANC-013 |
1. Requirement Statement
The system shall associate every result, imaging study and status event with its order using stable placer and filler identifiers, shall prevent orphaned results by holding any item that cannot be matched, shall list accepted orders with no result and items with no order on a reconciliation worklist, and shall reconcile records entered after downtime on the same worklist.
2. Business Rationale
A result that cannot be tied to an order either reaches no one or reaches the wrong chart.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Service staff (ACT-ANC-001, ACT-ANC-004, ACT-ANC-021) | Read worklist; propose matches; link studies; reconcile downtime entries | Own service |
| ACT-ANC-002 / service supervisor | Approve manual match in place; discard an item | Supervisor of the service; a different person from the one who proposed the match |
| Integration operations (ACT-ISE-003) | Read worklist; request replay | No match or discard |
4. Preconditions - Fulfilment orders carry placer and filler identifiers with assigning authority.
5. Trigger - A result, study or status event is received or released; a scheduled reconciliation run; entry of a downtime record.
6. Functional Behaviour
- Match each result, study and status event to a fulfilment order by filler identifier and placer identifier, or for a study by accession number, then verify patient identity agreement.
- If no match, or the patient differs, hold the item as an unmatched item in Open and add it to the unmatched worklist of UI-ANC-004. An unmatched item records: item type (result, study or status event), received time, source system or instrument, placer and filler identifiers with assigning authority, accession and Study Instance UID where present, the patient identifiers as received, the reason it is unmatched and the service.
- Let an authorized user search for the candidate order by accession, placer or filler identifier and propose a match with a reason; the item is then Awaiting approval. The supervisor approves in place, as a second person, after a confirmation summary that names the item, the order and both patients where they differ. The matched item then follows normal validation.
- Imaging studies whose accession or patient identifiers do not match a scheduled procedure, and emergency studies acquired without an order, are held as Awaiting reconciliation and resolved on the same worklist (PR-RIS-001-2, PR-RIS-001-3). The radiology workspace shows only "Awaiting reconciliation" with a link here.
- A status event that names an unknown placer identifier is held in the same way and is never applied to another order (FR-CLI-ORD-003 part 6.5).
- Allow the supervisor to discard an unmatched item with a reason; the item is kept with the reason.
- Identify accepted orders, and specimens collected but not received or received but not progressing, with no progress or result beyond the stale age (CFG-ANC-003); list them on the stale worklist and escalate to the section supervisor.
- List orders queued because the Domain 1 patient or encounter lookup was unavailable on the interface worklist of UI-ANC-004 until the lookup succeeds (FR-ANC-LIS-001 part 10).
- List each record entered after downtime (BR-ANC-023) on the downtime reconciliation worklist of UI-ANC-004. Downtime entries are made on each owning workbench, tagged "Downtime", with the downtime form identifier, original time and author; the system checks each for duplicates against records already present. A reconciler marks each entry Reconciled, or Exception with a reason, as in the downtime pattern of UI-CLI-018.
- Report matched, unmatched and stale counts for the integration operations dashboard.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Placer and filler identifiers | Identifier with assigning authority | Yes | Both qualified | Correlation keys |
| Patient identifier on result | Identifier | Yes | Agrees with the order's patient | Safety cross-check |
| Manual match reason | Text | On manual match | Mandatory | Justification |
| Identity resolution reference | Reference to the Domain 1 identity case | When the patient differs | Recorded before approval | Documented identity resolution |
| Discard reason | Code + text | On discard | Mandatory | Why the item is discarded |
| Downtime form identifier, original time, original author | Identifier / date-time / person | For downtime entries | Form identifier from the controlled range; original time not after entry time | Downtime provenance |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-RES-002-1 | Identifier match with patient disagreement is treated as unmatched | Never auto-attached |
| PR-RES-002-2 | Unsolicited results permitted by policy (for example reflex tests) are linked to the originating order as child results | No orphan |
| PR-RES-002-3 | The person who proposes a match cannot approve it | Second person in place |
| PR-RES-002-4 | A downtime entry that matches a record already present (same patient, order, item and original time) is not filed twice; it is shown with the existing record for the reconciler to decide | No duplicate records after downtime |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Unmatched, stale, interface and downtime reconciliation worklists | Screen (UI-ANC-004) | Service staff, integration operations | Items to resolve |
| Reconciliation counts | Metrics / EVT-ANC-019 | Domain 2 dashboard, Domain 8 | Unmatched orders and results |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Manual match to a different patient than the result states | Identity check | Block without supervisor approval and documented identity resolution | "Patient mismatch" |
| Placer identifier missing | Field check | Hold as unmatched | Listed as unmatched |
| Possible duplicate downtime entry | PR-RES-002-4 | Hold the entry beside the existing record | "Possible duplicate" |
11. State and Lifecycle Behaviour
An unmatched item has the states Open, Awaiting approval, Matched and Discarded (section 4.3). It has no clinical state and appears on no chart until Matched; a discarded item is retained with its reason. A downtime entry is Unreconciled until it is Reconciled or marked Exception.
12. Audit Requirements
Hold, manual match proposal and approval (user, approver, reason), discard, study linking, downtime entry and its reconciliation, and reconciliation runs are audited.
13. Security and Privacy Requirements
Unmatched items are visible only to the performing service and integration operations.
14. Acceptance Criteria
- AC-01: Given a result with a known filler identifier and matching patient, when received, then it is linked to its order.
- AC-02: Given a result with an unknown filler identifier, when received, then it is quarantined, listed and shown on no chart.
- AC-03: Given an accepted order older than the configured age with no result, when the worklist runs, then it is listed as stale.
- AC-04: Given a manual match, when completed, then user, approver and reason are recorded.
- AC-05: Given a match proposed by one user, when the same user tries to approve it, then approval is refused.
- AC-06: Given a downtime entry that duplicates a record already present, when it is entered, then it is not filed twice and is listed for the reconciler.
15. Dependencies and Integration
- Upstream dependencies: Domain 2 message reconciliation (INT-005).
- Downstream dependencies: FR-ANC-RES-001.
- Required events or APIs: IF-ANC-002, EVT-ANC-019.
16. Open Questions / Assumptions
- Stale-order age thresholds are configuration (CFG-ANC-003); the default is twice the stage timer, and unmatched results escalate after 60 minutes. Workbenches mark rows "Overdue" against their stage timers (CFG-ANC-001); this worklist lists only items past the stale age.
Requirement FR-ANC-RES-003: Critical-result notification, acknowledgement, escalation and closure¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ANC-RES-003 |
| Requirement Name | Critical-result notification, acknowledgement, escalation and closure |
| Requirement Type | Functional |
| Module | Diagnostic result validation and critical-result communication |
| Functional Area | FA-ANC-015 |
| Priority | Must |
| Criticality | Critical |
| Requirement Status | Draft |
| Source | PRS RES-003, ANC-018, ANC-002 (critical finding communication); PRS section 27 (critical result acknowledgement); PRS 25.1 ("Right time") |
| Related Business Rule | BR-ANC-005, BR-ANC-007 |
| Related Workflow | WF-ANC-002 |
1. Requirement Statement
The system shall, for every critical or panic result and every finding marked critical, open a critical-result case, notify a named responsible recipient, require acknowledgement, escalate through a configured chain when acknowledgement is not received within the configured time, timestamp every attempt, and keep the case open and visible until closure is recorded.
2. Business Rationale
A critical value that nobody acts on is a direct patient-safety failure. PRS RES-003 and ANC-018 make acknowledgement and escalation mandatory.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| ACT-ANC-002, ACT-ANC-005, ACT-ANC-006 | Create case; record verbal communication; close | Performing service |
| ACT-ANC-017 | Acknowledge; reassign; close | Named recipient or member of the escalation chain |
| ACT-ANC-019 | Configure criteria and chains | Approved by clinical governance |
4. Preconditions - Approved critical criteria exist for the test, or the reporting clinician marks the finding.
5. Trigger - Release of a result meeting critical criteria; a critical-finding flag on a report; a correction that newly meets or no longer meets criteria.
6. Functional Behaviour
- Evaluate critical criteria at release using test, value, patient age and location type where configured.
- Open a case linked to result version, order, patient and encounter.
- Resolve the first recipient: the ordering practitioner or the current responsible clinician for the encounter, per configured rule; if unresolved, use the fallback role for the location.
- Request notification through the Domain 10 notification service with priority and require delivery status.
- Start the acknowledgement timer.
- Accept acknowledgement only from an authenticated named user; record identity, time and optional action taken.
- On timer expiry, escalate to the next level, start a new timer, and record the attempt.
- Support recording of a telephone communication with person contacted, time and read-back confirmation, which counts as acknowledgement when the person is identified.
- Keep unacknowledged cases on the performing service's critical worklist and on the recipient's work queue.
- Record closure; report time to acknowledgement and time to closure.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Critical criterion | Rule (test, limits, population) | Yes | Approved and effective-dated | When a result is critical |
| Escalation chain | Ordered roles / users + timers | Yes | At least one fallback level | Who is notified next |
| Acknowledging user | User identity | Yes | Authenticated; permitted recipient | Accountable person |
| Verbal communication details | Structured | When telephoned | Person, time, read-back | Manual communication record |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-RES-003-1 | One open case per result; repeated criticals on the same analyte may be grouped only under an approved rule and never suppressed silently | No hidden criticals |
| PR-RES-003-2 | Delivery of a notification is not acknowledgement | Case stays Notified until a person acknowledges |
| PR-RES-003-3 | The chain never ends without an owner; after the last level the case remains escalated and visible to the service supervisor | No silent expiry |
| PR-RES-003-4 | Notification retries are idempotent for the same case and level | No duplicate cases |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Notification request | API call to Domain 10 notification service | Named recipient | Critical alert with no patient name, identifier, diagnosis or result outside the application (CUX-65): "1 critical result to acknowledge — open the hospital app". Opening it requires sign-in and shows the case with the patient context zone |
| Critical-result events | EVT-ANC-017 (opened), EVT-ANC-018 (acknowledged, escalated, closed) | Domains 3, 8 | Status for chart and KPI; in-app acknowledgements arrive from Domain 3 through IF-ANC-011 |
| Critical worklist | Screen (UI-ANC-003) | Performing service, recipients | Open cases with age |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Recipient cannot be resolved | Lookup | Route to fallback role; flag | Service prompted to telephone |
| Notification service unavailable | Delivery status / timeout | Case stays on critical worklist with "not delivered" | Manual communication per procedure |
| Acknowledgement by a user outside the chain | Authorization | Reject | Not an authorized recipient |
| Result withdrawn while case open | Version change | Update case; notify recipient of withdrawal | Close with reason |
11. State and Lifecycle Behaviour
Implements the critical-result case states Open, Notified, Escalated, Acknowledged and Closed.
12. Audit Requirements
Case opening, every notification attempt and delivery status, acknowledgement, reassignment, escalation, verbal communication record and closure are audited with timestamps.
13. Security and Privacy Requirements
Notifications contain the minimum content the channel policy allows; full detail requires authenticated access. Recipients outside the care relationship gain access only through the escalation role.
14. Acceptance Criteria
- AC-01: Given a released result that meets critical criteria, when released, then a case is opened and a named recipient is notified.
- AC-02: Given no acknowledgement within the configured time, when the timer expires, then the case escalates to the next level and the attempt is timestamped.
- AC-03: Given an acknowledgement, when recorded, then the user identity and time are stored and the case can be closed.
- AC-04: Given the notification service is down, when a critical result is released, then the case is visible on the critical worklist as not delivered.
- AC-05: Given a reporting period, when KPI-ANC-005 is computed, then receipt, acknowledgement, escalation and closure times are available for every case and unresolved cases remain listed.
15. Dependencies and Integration
- Upstream dependencies: FR-ANC-SPM-003, FR-ANC-RIS-002, FR-ANC-PTH-001; Domain 1 and Domain 3 care-team and responsible-clinician data.
- Downstream dependencies: Domain 10 notification and workflow services; Domain 3 (case shown in chart); Domain 8.
- Required events or APIs: IF-ANC-008, EVT-ANC-017, EVT-ANC-018.
16. Open Questions / Assumptions
- Acknowledgement time limits are "locally approved" (PRS section 27); no default is given (CFG-ANC-005).
- Critical value lists are clinical content owned by clinical governance, not by the product (PRS 2.2).
← 5.6 Module Specification: Blood bank, component traceability and compatibility workflow | Contents | Identifier index | 5.8 Module Specification: Procedure and consultation fulfilment →