Skip to content

MOD PEX 005 MSG

Domain specifications / D07-PEX / 5. Detailed Functional Requirements / 5.5 Module Specification: Secure Patient-Provider Messaging

5.5 Module Specification: Secure Patient-Provider Messaging

5.5.1 Module Overview

Module ID: MOD-PEX-005

Purpose: Provide threaded, authenticated, non-urgent messaging between patients or representatives and hospital staff, with routing to an accountable pool, response tracking and escalation.

Business Capabilities: - CAP-PEX-006 Secure messaging

Primary Actors: - Patient, authorized representative, message-pool staff, treating clinician, billing staff, scheduling staff

Dependencies: - Domain 1 for care-team, encounter and appointment context; Domain 10 notification, workflow and document services; Domain 3 API for filing to the clinical record.

5.5.2 Functional Areas

Functional Area ID: FA-PEX-012 Message threads; FA-PEX-013 Routing, safety and escalation

Description: Thread and message handling for patients and staff, and the controls that keep the channel safe as a non-urgent route.

Scope: - Included: compose, reply, attachments, read status, staff inbox, reassignment, closing, response timers, escalation, non-urgent notice. - Excluded: real-time chat, telephony, video, clinician-to-clinician messaging, automated clinical triage of message content.

5.5.3 Detailed Requirements

Requirement FR-PEX-MSG-001: Secure Message Threads

Attribute Description
Requirement ID FR-PEX-MSG-001
Requirement Name Secure message threads
Requirement Type Functional
Module Secure Patient-Provider Messaging
Functional Area FA-PEX-012 Message threads
Priority Should
Criticality High
Requirement Status Draft
Source PAT-011 ("communication"); PRS section 5 (Patient engagement: secure messaging); PRS section 4 (Patient / representative: secure communications); SEC-005; SEC-006
Related Business Rule BR-PEX-019, BR-PEX-021
Related Workflow WF-PEX-005

1. Requirement Statement

The system shall allow a requester and authorized staff to exchange messages in threads inside the authenticated portal and staff workspace, shall keep every message unaltered after sending with sender, time and read status, and shall never transmit message content through channels outside the authenticated session.

2. Business Rationale

Email and consumer messaging are not controlled channels for health information. The PRS lists secure messaging as a patient engagement capability.

3. Actors and Permissions

Actor Permission Conditions
Patient / representative Create threads, reply, read own threads Active link; grant scope includes messaging
Message-pool staff Read, reply, reassign, close threads in their pool; start a thread to a patient Pool membership from Domain 10 role assignments; facility
Clinician Read and reply to assigned threads; start a thread to a patient; file to the clinical record Care relationship
Billing / scheduling staff Read and reply to threads on their topics Pool membership

4. Preconditions - Messaging is enabled for the facility and a pool mapping exists for the topic.

5. Trigger - A message is sent by a requester or staff member, or a staff member starts a thread from the patient context.

6. Functional Behaviour

  1. A new thread has a topic from the configured list, an optional link to an appointment, encounter, released item or statement, and a first message.
  2. Messages are plain text within the length limit of CFG-PEX-035 (default 2000 characters) and may carry attachments of permitted types and sizes, scanned for malware before they are stored through the Domain 10 document service.
  3. Sent messages cannot be edited or deleted by either party. A correction is a new message.
  4. Staff reply as a named individual with role; the pool name is also shown to the patient.
  5. Read status and time are recorded for each party.
  6. Staff can reassign a thread to another pool or individual with a note that is not visible to the patient.
  7. An authorized clinician can file a thread or selected messages to the clinical record through the Domain 3 API. The filed entry is a Domain 3 record marked with patient origin for patient-authored text.
  8. Notifications of new messages outside the portal say only that a message is available.
  9. A representative's messages are marked as sent by the representative on behalf of the patient.
  10. Closed threads remain readable and offer no reply box; "Send a new message about this" opens a new linked thread, which needs the acknowledgement of the notice like any new thread.
  11. Staff can start a thread to a patient from the patient context, that is, with the patient selected in the staff engagement inbox (UI-PEX-013). The staff member picks the topic, an optional related item and writes the first message. The thread starts in Awaiting Patient and is held by the staff member's pool. The patient's reply to a staff-started thread needs no acknowledgement, but the notice line stays visible above the reply box. A reviewer's request for clarification of a submission is sent this way (FR-PEX-PRO-001, behaviour 9).

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Topic Code Yes In configured topic list for the facility Routing key
Related context Reference No Visible to the requester Appointment, encounter, item, statement
Body Text Yes Length limit; not empty Message text
Attachment File No Type and size limits; malware scan passed Supporting file

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-MSG-001-1 Store before acknowledge; idempotent on client message key. No lost or duplicated messages.
PR-MSG-001-2 Messages are immutable once sent. Reliable record.
PR-MSG-001-3 Staff visibility is limited to pools they belong to and to patients they may access under Domain 10 policy. Least privilege.

9. Output Requirements

Output Format Recipient Description
Thread and messages Screen Requester; staff Conversation view
New-message notification Notification Patient; staff inbox No content
PatientMessageSent Event Domain 8; Domain 10 workflow Thread, topic, pool, times; no body

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Attachment type or size not allowed File rules Reject attachment; keep draft "This file type or size is not accepted."
Malware detected Scan Reject; security event "The file could not be accepted."
Empty or over-length body Length rule Reject Field message
Topic has no pool mapping BR-PEX-019 Route to default pool; flag configuration gap None to patient

11. State and Lifecycle Behaviour

Thread states: Awaiting Staff, Awaiting Patient, Escalated, Closed (section 4.3).

12. Audit Requirements

Audited: message sent, read, reassigned, filed to record, thread closed; each with actor identity and, for representatives, the patient acted for.

13. Security and Privacy Requirements

Message bodies and attachments are Sensitive, encrypted in transit and at rest (SEC-005), and are not included in analytics events or logs.

14. Acceptance Criteria

  • AC-01: Given a patient sends a message on topic "appointments", when it is stored, then it appears in the scheduling pool inbox and the thread is Awaiting Staff.
  • AC-02: Given staff reply, when the patient is notified by email, then the email contains no message text.
  • AC-03: Given a sent message, when either party attempts to edit it, then the action is not available and the API refuses it.
  • AC-04: Given a staff member outside the pool and without access to the patient, when they request the thread, then access is refused.
  • AC-05: Given a representative sends a message, when staff read it, then it is shown as sent by the representative on behalf of the patient.
  • AC-06: Given a pool member with a patient in context, when they start a new thread, then the thread is Awaiting Patient, belongs to their pool, and the patient is notified that a message is available.

15. Dependencies and Integration

  • Upstream dependencies: Domain 1 context; Domain 10 authorization and document service.
  • Downstream dependencies: Domain 3 filing API; Domain 10 notification.
  • Required events or APIs: EVT-PEX-008; INT-PEX-007.

16. Open Questions / Assumptions

  • The PRS does not say whether the staff inbox is part of the clinician workspace (Domain 3) or a PEX staff view. The working position is a PEX staff inbox that can be embedded in role workspaces (DEC-PEX-004).

Requirement FR-PEX-MSG-002: Non-Urgent Safeguards, Routing and Escalation

Attribute Description
Requirement ID FR-PEX-MSG-002
Requirement Name Non-urgent safeguards, routing and escalation
Requirement Type Functional
Module Secure Patient-Provider Messaging
Functional Area FA-PEX-013 Routing, safety and escalation
Priority Should
Criticality Critical
Requirement Status Draft
Source PRS section 5 (Patient engagement: secure messaging); PRS section 11.3 (human factors); SAFE-001; NUR-004 (due/overdue and escalation pattern, by analogy)
Related Business Rule BR-PEX-018, BR-PEX-019, BR-PEX-020
Related Workflow WF-PEX-005

1. Requirement Statement

The system shall tell the requester, before every new thread, that messaging is not for urgent or emergency needs and show the facility's urgent-care route, shall require acknowledgement of that notice, shall route every thread to an accountable pool, and shall escalate any thread not answered within the configured response time.

2. Business Rationale

A patient who reports an urgent symptom by message and waits for a reply may come to harm. An unowned or unanswered thread has the same effect.

3. Actors and Permissions

Actor Permission Conditions
Patient / representative Acknowledge notice; send Active link
Message-pool supervisor (ACT-PEX-015) Receive escalations; reassign; mark the pool unstaffed or staffed Pool supervisor role, assigned in Domain 10
Head of the department that owns the pool Receive second-level escalations; reassign Department head role, assigned in Domain 10
Patient-engagement administrator Configure notice text, routes, topics, pools, service hours, response times; activate and roll back approved versions Change control; clinical governance approval for notice text and response times; approval by a second configuration administrator (ACT-PEX-017) for topics, pools and service hours

4. Preconditions - Notice text and urgent-care route are configured for the facility.

5. Trigger - Compose opened; message sent; response timer elapsed.

6. Functional Behaviour

  1. The notice and the urgent-care route are shown at compose and must be acknowledged for each new thread.
  2. The expected response time for the selected topic is displayed to the requester, with the pool's service hours.
  3. Each thread starts a response timer measured in the pool's service hours.
  4. At the warning threshold the thread is highlighted in the pool inbox; at the response-time limit it is escalated to the pool supervisor and shown on the overdue list.
  5. Staff can mark a thread "needs clinical escalation", which records that the facility's escalation procedure was started; the procedure itself runs outside the portal.
  6. Outside service hours, and when the pool supervisor has marked a pool unstaffed, the requester is told "Messages on [topic] will next be read on [date time]" with the urgent-care route and the expected response time, and may still send. Compose is disabled only for a pool marked closed in CFG-PEX-016, with the alternative contact route. The supervisor marks the pool staffed again when cover returns; both marks are recorded with the supervisor's identity and time.
  7. An automatic acknowledgement after sending repeats the non-urgent statement with the urgent-care route (119 and the facility's emergency department number, CFG-PEX-017) and the expected response time.
  8. Default policy, from CFG-PEX-016: every topic is answered within 2 working days, with the warning at 1 working day. Service hours are Monday to Friday 08:00 to 16:00 and Saturday 08:00 to 12:00 local time, without national public holidays and collective leave days of the facility calendar. A thread still unanswered 1 working day after escalation to the pool supervisor is escalated again, to the head of the department that owns the pool, and is shown on the Patient Experience Office overdue report.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Notice acknowledgement Boolean + notice version Yes Current notice version Evidence the notice was shown
Pool service hours and response times Configuration Yes Effective version Timer basis

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-MSG-002-1 A thread cannot be created without an acknowledgement of the current notice version. Notice always shown.
PR-MSG-002-2 Timers count service hours only and restart on each patient message. Fair, consistent escalation.
PR-MSG-002-3 An escalated thread stays on the overdue list until a staff reply or closure with reason. Nothing silently ages.
PR-MSG-002-4 Escalation has two levels: pool supervisor at the response-time limit, department head 1 working day later. Unanswered threads reach someone accountable.

9. Output Requirements

Output Format Recipient Description
Non-urgent notice Screen Requester Notice text and urgent-care route
Escalation task Task via Domain 10 workflow Pool supervisor Overdue thread
Overdue list Work list Pool staff and supervisors Threads beyond response time

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Notice not acknowledged PR-MSG-002-1 Block send "Please confirm you have read the notice."
Pool unstaffed Pool status Show the next-read time and allow sending; disable compose only for a pool marked closed (CFG-PEX-016) "Messages on [topic] will next be read on [date time]."; for a closed pool, the alternative contact route
No supervisor configured Configuration check Escalate to facility default role; flag gap None to patient

11. State and Lifecycle Behaviour

Moves threads from Awaiting Staff to Escalated.

12. Audit Requirements

Recorded: notice version acknowledged per thread, timer start, warning, escalation, the "needs clinical escalation" mark with staff identity, and each change of pool status (unstaffed or staffed) with the supervisor's identity.

13. Security and Privacy Requirements

Escalation tasks carry the thread reference, not the message body.

14. Acceptance Criteria

  • AC-01: Given a requester opens compose, when they try to send without acknowledging the notice, then sending is blocked.
  • AC-02: Given a thread unanswered beyond the configured response time in service hours, when the limit passes, then an escalation task exists for the pool supervisor and the thread is on the overdue list.
  • AC-03: Given a pool marked unstaffed, when a requester selects its topic, then they see when messages will next be read and can still send; given a pool marked closed, compose is disabled and the alternative contact route is shown.
  • AC-04: Given a sent message, when the acknowledgement is returned, then it states the expected response time and the non-urgent statement.
  • AC-05: Given usability testing with representative patients, when asked what to do in an emergency while composing, then participants identify the urgent-care route at the rate agreed in the test plan.
  • AC-06: Given a thread escalated to the pool supervisor and still unanswered 1 working day later, when that time passes, then an escalation task exists for the head of the owning department.
  • AC-07: Given a message sent on Friday at 15:00, when the response time is computed, then it counts only service hours and excludes public holidays of the facility calendar.

15. Dependencies and Integration

  • Upstream dependencies: configuration (Domain 10); pool and service-hour master data. Pool membership and the pool supervisor role come from Domain 10 role assignments; PEX keeps no member list of its own.
  • Downstream dependencies: Domain 10 workflow tasks; section 12 monitoring.
  • Required events or APIs: IF-PEX-005.

16. Open Questions / Assumptions

  • The PRS states no response-time target or escalation policy for patient messages (GAP-PEX-004). Closed 17 Nov 2026 on common practice: the defaults of behaviour 8 are set in CFG-PEX-016 and CFG-PEX-017; a facility may shorten the response time per topic.
  • Automated detection of urgent wording is not specified; it would be an AI-assisted feature subject to PRS 13.2 governance and is not assumed.

← 5.4 Module Specification: Approved Results and Document Release | Contents | Identifier index | 5.6 Module Specification: Patient Forms, Questionnaires and Education →