Skip to content

MOD PEX 010 NTF

Domain specifications / D07-PEX / 5. Detailed Functional Requirements / 5.10 Module Specification: Patient Notifications and Engagement History

5.10 Module Specification: Patient Notifications and Engagement History

5.10.1 Module Overview

Module ID: MOD-PEX-010

Purpose: Decide when the patient is notified and with what content, record the history of engagement with each patient, and give the patient a view of activity on their account.

Business Capabilities: - CAP-PEX-011 Notifications and engagement history

Primary Actors: - Patient, authorized representative, patient-engagement administrator, privacy officer

Dependencies: - Domain 10 (ESS) notification service for delivery and delivery status, and audit service; Domain 2 (ISE) external messaging integration; MOD-PEX-009 preferences.

5.10.2 Functional Areas

Functional Area ID: FA-PEX-021 Notification triggering and content; FA-PEX-022 Engagement history

Description: Rules and templates that turn PEX and source-domain events into patient notifications; the record of notifications, responses and patient activity.

Scope: - Included: trigger rules, templates, content minimisation, in-portal notification centre, engagement history, patient-visible account activity. - Excluded: channel delivery, provider integration and delivery receipts (Domain 10 and Domain 2); clinician notifications such as critical-result alerts (Domains 3 and 4); marketing communications (not in the PRS).

5.10.3 Detailed Requirements

Requirement FR-PEX-NTF-001: Patient Notification Triggering and Content Control

Attribute Description
Requirement ID FR-PEX-NTF-001
Requirement Name Patient notification triggering and content control
Requirement Type Functional
Module Patient Notifications and Engagement History
Functional Area FA-PEX-021 Notification triggering and content
Priority Should
Criticality High
Requirement Status Draft
Source PAT-011; FLOW-001; SEC-012; SEC-005; CFG-001; CFG-002; PRS section 5 (Enterprise services: notification)
Related Business Rule BR-PEX-010, BR-PEX-027
Related Workflow WF-PEX-003, WF-PEX-004, WF-PEX-005, WF-PEX-006

1. Requirement Statement

The system shall request a patient notification from the Domain 10 notification service for each configured trigger, using a versioned template in the patient's language, addressed only to verified contact points and limited to the content level that policy and the patient's preferences allow, and shall record the request and the delivery status returned.

2. Business Rationale

Notifications sent over SMS, email or push leave the authenticated session and can be seen by others. Minimising their content is a privacy control (SEC-012).

3. Actors and Permissions

Actor Permission Conditions
System Request notifications Trigger and preferences
Patient-engagement administrator Maintain trigger rules and templates Change control; privacy review of templates
Patient / representative Read the in-portal notification centre Active link or grant

4. Preconditions - A template exists for the trigger and language; a verified contact point exists for the channel.

5. Trigger - A PEX event (release, message, form assignment, request outcome, account change) or a source-domain event (appointment, invoice issued).

6. Functional Behaviour

  1. Each trigger maps to a category, template and default content level.
  2. PEX resolves recipients: the patient, and representatives whose grant scope covers the category and the item's sensitivity.
  3. PEX applies preferences, quiet hours and suppression rules (for example no notification for an item released and withdrawn before sending).
  4. PEX submits the request to Domain 10 with an idempotency key, template identifier and version, language, channel, recipient contact reference and merge fields. Merge fields at the minimal level contain no clinical or financial values.
  5. Every notification is also listed in the in-portal notification centre, where the full item is reached after authentication. The notification centre is part of the portal home (UI-PEX-002).
  6. Delivery status returned by Domain 10 is recorded. Permanent failure on a channel marks the contact point for re-verification.
  7. Links in notifications lead to the sign-in page and carry no patient data in the URL.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Trigger event Event Yes Schema-valid; unique Cause
Template and version Identifier Yes Approved and effective; language available Content
Recipient contact reference Reference Yes Verified Destination
Content level Code Yes From policy and preferences Detail allowed

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-NTF-001-1 One notification per trigger event, recipient and channel. No duplicates on replay.
PR-NTF-001-2 Sensitivity filtering precedes recipient resolution for representatives. No disclosure by notification.
PR-NTF-001-3 A template cannot be made effective without privacy review recorded. Governed content.

9. Output Requirements

Output Format Recipient Description
Notification request API call Domain 10 notification service As described
Notification centre entry Screen Requester In-portal item
Notification record Data Engagement history Request and delivery status

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
No verified contact point for any chosen channel Preference check In-portal entry only; record "not delivered externally" Prompt at next sign-in to verify a contact
Notification service unavailable Call failure Queue and retry; drop time-bound reminders that would be late None
Template missing for language Template lookup Use facility default language None

11. State and Lifecycle Behaviour

Notification record: Requested, Sent, Delivered, Failed, Suppressed.

12. Audit Requirements

Template and rule changes are audited with before and after versions. Notification requests are kept in engagement history, not duplicated to the audit service except for security notifications.

13. Security and Privacy Requirements

External channels are treated as untrusted. Message bodies sent externally are retained only as template identifier, version and merge-field values, under the retention class in section 7.6.

14. Acceptance Criteria

  • AC-01: Given a result is released, when the notification is sent by SMS at the minimal level, then it contains no test name, value or clinician name.
  • AC-02: Given a replayed release event, when processed, then no second notification is requested.
  • AC-03: Given a representative whose scope excludes the item's category, when the item is released, then the representative receives no notification.
  • AC-04: Given a permanent delivery failure, when status is received, then the contact point is marked for re-verification.
  • AC-05: Given a notification link, when inspected, then the URL contains no patient identifier or item detail.

15. Dependencies and Integration

16. Open Questions / Assumptions

  • Channels (PRS 19.3) are set by DEC-PEX-010, resolved 2026-11-17: portal or app notification and email by default; SMS as fallback; WhatsApp through the official business API as an opt-in channel, subject to a processor agreement and a cross-border transfer assessment in the privacy impact assessment. Results are never sent by message, only a notice that something is available in the portal. Any external messaging provider is a replaceable dependency under PRS section 3 (section 14.4).

Requirement FR-PEX-NTF-002: Engagement History, Patient-Visible Account Activity and Audit Emission

Attribute Description
Requirement ID FR-PEX-NTF-002
Requirement Name Engagement history, patient-visible account activity and audit emission
Requirement Type Functional
Module Patient Notifications and Engagement History
Functional Area FA-PEX-022 Engagement history
Priority Must
Criticality High
Requirement Status Draft
Source SEC-006; SEC-019; PAT-011; ANA-004; PRS section 10.3; PRS section 27 (audit coverage indicator)
Related Business Rule BR-PEX-005, BR-PEX-028
Related Workflow All

1. Requirement Statement

The system shall emit an audit event for every view, creation, change, download, print and disclosure of patient information performed through PEX, by a patient, representative, staff member or patient-authorized application, shall keep an engagement history for each patient, and shall show the patient the recent activity on their own account.

2. Business Rationale

SEC-006 and SEC-019 require audit of views, creates, changes, exports and disclosures. The PRS scorecard proposes 100% audit coverage of defined sensitive-data access events. Showing account activity to the patient helps detect misuse of an account or a grant.

3. Actors and Permissions

Actor Permission Conditions
System Emit audit and engagement events Always
Patient View own account activity, including representative and application access Active link
Privacy officer Query portal access history for a patient or account Through the Domain 10 audit service under its access rules
Staff View a patient's engagement history (notifications, requests, forms) Role and relationship

4. Preconditions - The Domain 10 audit service is reachable, or the local durable outbox is available.

5. Trigger - Any PEX action on patient information.

6. Functional Behaviour

  1. Each audited action produces an event with the fields in PRS 10.3, including acting identity, the patient acted for, the item reference and version, outcome and correlation ID.
  2. Events are written to a durable outbox in the same transaction as the action and delivered to the Domain 10 audit service; failure to record the event fails the action for views of Sensitive information.
  3. The engagement history records notifications, reminders and responses, requests, form assignments and completions, education opened, messages (metadata only) and account events.
  4. The account-activity view shows the patient: sign-ins, items viewed by a representative, application access, grant and preference changes, for the configured period (12 months by default, CFG-PEX-033). It does not show an accounting of disclosures to third parties. The view says that the patient can ask the medical records unit for one; the unit handles the request as a disclosure on UI-HIM-010.
  5. Engagement events are published for Domain 8 with governed, minimised content.
  6. Staff views of the engagement history are themselves audited.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Action context Structured Yes All PRS 10.3 fields present Audit content
Correlation ID Identifier Yes Propagated from gateway Traceability

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-NTF-002-1 No audited action completes without its outbox entry. Complete audit.
PR-NTF-002-2 Audit events carry references, not clinical values or message bodies. Audit does not become a second copy of the record.
PR-NTF-002-3 Timestamps are UTC with the display zone applied at presentation (NFR-018). Consistent time.

9. Output Requirements

Output Format Recipient Description
Audit events Event Domain 10 audit service As PRS 10.3
Engagement events Event Domain 8 Minimised engagement facts
EngagementControlTotalsReported (EVT-PEX-014) Event Domain 8 Daily counts per engagement event type for the previous local day, by 01:00 local, for reconciliation
Account activity Screen Patient Recent activity

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Audit service unavailable Delivery failure Hold in outbox; alert operations when backlog exceeds threshold None
Outbox write fails Transaction Fail the action "This information is temporarily unavailable."

11. State and Lifecycle Behaviour

Engagement history is append-only.

12. Audit Requirements

This requirement is the audit mechanism for the domain. Access to audit records is governed by Domain 10 and is itself audited.

13. Security and Privacy Requirements

The patient-visible activity view excludes staff identities unless policy allows their display, and excludes access to categories hidden from the viewer.

14. Acceptance Criteria

  • AC-01: Given any view of a released result, when the audit store is queried, then one event exists with actor, patient, item reference, version, time and outcome.
  • AC-02: Given a representative views a document, when the patient opens account activity, then the access is listed with the representative's name and time.
  • AC-03: Given the audit service is unavailable, when a patient views a result, then the event is held and delivered after recovery with its original timestamp.
  • AC-04: Given a sampled set of portal actions in a test run, when reconciled with audit events, then every action has a matching event.

15. Dependencies and Integration

  • Upstream dependencies: all PEX modules.
  • Downstream dependencies: Domain 10 audit service; Domain 8.
  • Required events or APIs: EVT-PEX-013; INT-PEX-010.

16. Open Questions / Assumptions

  • Whether patients are entitled to see which staff accessed their record is a jurisdiction and policy matter outside this requirement, which covers only activity on the portal account.

← 5.9 Module Specification: Consent and Communication Preference Presentation | Contents | Identifier index | 6. User Interface and Interaction Requirements →