Skip to content

MOD PEX 001 PRT

Domain specifications / D07-PEX / 5. Detailed Functional Requirements / 5.1 Module Specification: Patient Portal and Patient-Facing Web/Mobile Experience

5.1 Module Specification: Patient Portal and Patient-Facing Web/Mobile Experience

5.1.1 Module Overview

Module ID: MOD-PEX-001

Purpose: Provide the patient-facing application shell, navigation and home view through which all other PEX modules are reached, on web and mobile, and define how the experience behaves when a source is unavailable.

Business Capabilities: - CAP-PEX-001 Patient-facing digital experience

Primary Actors: - Patient (ACT-PEX-001), authorized representative (ACT-PEX-002)

Dependencies: - MOD-PEX-002 for session and acting-for context; all other PEX modules for content. - Domain 2 (ISE) web gateway, API gateway and hosting; Domain 10 (ESS) authorization and configuration services.

5.1.2 Functional Area: Application Shell and Home (FA-PEX-001); Availability and Degraded Mode (FA-PEX-002)

Functional Area ID: FA-PEX-001, FA-PEX-002

Description: FA-PEX-001 covers the shell, the patient identity banner, navigation, the home summary, and language and locale. FA-PEX-002 covers behaviour when a source domain or shared service cannot be reached and the isolation of the portal from core services.

Scope: - Included: responsive web client; mobile experience where validated (PRS 11.3); home summary of items needing attention; language selection; degraded-mode messages. - Excluded: staff workspaces of other domains; offline transaction capture on the patient's device (not required by the PRS for patients).

5.1.3 Detailed Requirements

Requirement FR-PEX-PRT-001: Patient-Facing Shell and Governed Projections

Attribute Description
Requirement ID FR-PEX-PRT-001
Requirement Name Patient-facing shell and governed projections
Requirement Type Functional
Module Patient Portal and Patient-Facing Web/Mobile Experience
Functional Area FA-PEX-001 Application shell and home
Priority Should
Criticality High
Requirement Status Draft
Source PAT-011; SAFE-002; SAFE-003; EHR-009; NFR-011; NFR-012; PRS section 8.1 (experience plane); PRS section 8.3
Related Business Rule BR-PEX-003, BR-PEX-028
Related Workflow WF-PEX-001

1. Requirement Statement

The system shall provide a patient-facing application shell, on web and on validated mobile form factors, that gives a signed-in requester access to approved appointments, instructions, selected results, documents, bills and communication for the patient they are authorized to see, and shall obtain every such item from the owning domain's published interface at the time of the request.

2. Business Rationale

PAT-011 defines the portal's content. REF-002 requires patient-facing views to be governed projections so that the portal cannot diverge from, or outlive, the authoritative record.

3. Actors and Permissions

Actor Permission Conditions
Patient Read own approved information; use enabled functions Active account link
Authorized representative Read and act within grant scope Active grant; acting-for context selected
Patient-engagement administrator Configure navigation items and facility enablement Change-controlled configuration

4. Preconditions - Authenticated session with an Active account link.

5. Trigger - The requester signs in or navigates within the portal.

6. Functional Behaviour

  1. The shell displays a persistent identity banner with the subject patient's full name and date of birth; the shell greeting keeps the requester's first name. A representative sees only the sentence "You are viewing [name]'s record as [relationship]" (PH-17), with the switch between the people they may act for.
  2. The home view lists items needing attention: upcoming appointments, assigned forms, unread messages, newly released items and new statements. It shows counts and titles only; newly released results are announced without values.
  3. Navigation offers only functions enabled for the facility and permitted for the requester.
  4. Each data view calls the PEX service, which asks Domain 10 for an authorization decision and reads the item from the owning domain. No patient data is cached in the browser or device beyond the session unless explicitly approved.
  5. Each view shows the status and date of the information and, where it is not live, the "as at" time.
  6. The requester can choose a display language from those configured; dates, times, units and currency follow the configured locale without changing stored values.
  7. A representative with more than one Active grant chooses the patient to act for; switching patient clears the previous patient's data from the view and requires an explicit action.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Session token Token Yes Valid, unexpired, bound to account Session context
Acting-for patient reference Identifier Yes for representatives Must match an Active grant Subject patient
Display language Code No In configured language list Presentation language

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-PRT-001-1 Resolve the subject patient from the account link or the selected grant, never from a client-supplied patient identifier alone. Requests for another patient are refused.
PR-PRT-001-2 Apply facility enablement and grant scope to the navigation model on the server. Disabled or out-of-scope functions are absent and their APIs refuse calls.
PR-PRT-001-3 Render stored canonical values using the selected locale. Display changes; stored values do not.

9. Output Requirements

Output Format Recipient Description
Home summary Screen Requester Items needing attention, without clinical values
Navigation model API response Client Enabled functions for this requester

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Client supplies a patient identifier not covered by link or grant Server-side subject resolution Refuse; audit as denied access "You do not have access to this information."
Session expired Token validity End session; discard view state Sign in again; unsent drafts are restored where saved
Unsupported language requested Language list Fall back to facility default None

11. State and Lifecycle Behaviour

The shell holds no business state. It reflects the state of the account link and grants (section 4.3).

12. Audit Requirements

Sign-in, sign-out, acting-for selection and every denied request are audited. Views of patient data are audited by the module that serves them.

13. Security and Privacy Requirements

Authorization is enforced by PEX services and Domain 10 policy decisions, not by the client (PRS 10.2). Data shown is Confidential or Sensitive health information; transport is encrypted (SEC-005). The client must not write patient data to shared device storage or logs.

14. Acceptance Criteria

  • AC-01: Given a patient with an Active link, when they sign in, then the banner shows their full name and date of birth on every screen.
  • AC-02: Given a representative acting for patient A, when the client sends a request naming patient B for whom no grant exists, then the request is refused and a denied-access audit event is recorded.
  • AC-03: Given a facility where billing views are disabled, when a patient of that facility signs in, then no billing navigation item is shown and the billing API refuses the call.
  • AC-04: Given a patient who selects another configured language, when a result with a date and unit is displayed, then labels and date format change and the value and unit are unchanged from the source.

15. Dependencies and Integration

  • Upstream dependencies: MOD-PEX-002; Domain 10 authorization and configuration; Domain 2 gateways.
  • Downstream dependencies: all PEX modules render inside the shell.
  • Required events or APIs: IF-PEX-001 (patient experience API).

16. Open Questions / Assumptions

  • Whether the mobile experience is a responsive web application or installed applications is not stated in the sources (DEC-PEX-008).

Requirement FR-PEX-PRT-002: Degraded Mode and Isolation from Core Services

Attribute Description
Requirement ID FR-PEX-PRT-002
Requirement Name Degraded mode and isolation from core services
Requirement Type Functional
Module Patient Portal and Patient-Facing Web/Mobile Experience
Functional Area FA-PEX-002 Availability and degraded mode
Priority Must
Criticality High
Requirement Status Draft
Source BCP-007; BCP-001; NFR-005; SAFE-003; PRS section 8.2 (isolation of optional patient engagement); PRS section 12.1 (Tier 3: non-urgent portal functions)
Related Business Rule BR-PEX-029
Related Workflow WF-PEX-003, WF-PEX-004

1. Requirement Statement

The system shall continue to offer the portal functions whose sources are available when another source domain or shared service is unavailable, shall tell the requester which functions are unavailable, shall not lose any submission it has acknowledged, and shall not place load on Tier 1 or Tier 2 services beyond the limits allotted to it.

2. Business Rationale

PRS 8.2 requires core patient identity and encounter services to be isolated from optional patient engagement. PRS 12.1 places non-urgent portal functions in Tier 3, which may tolerate delay but must not impair Tier 1 or Tier 2.

3. Actors and Permissions

Actor Permission Conditions
Patient / representative Use available functions Active link or grant
Platform operations (Domain 2) Set quotas and circuit-breaker thresholds Change control

4. Preconditions - None beyond an authenticated session.

5. Trigger - A call to a source domain or shared service fails, times out or is rejected by a quota.

6. Functional Behaviour

  1. Each source dependency is called with a timeout and circuit breaker. When a breaker is open the affected function shows an "unavailable at present" message and the rest of the portal remains usable.
  2. Patient submissions (appointment request, message, form response, correction request, consent action) are stored durably by PEX before they are acknowledged to the patient, then forwarded with an idempotency key and retried until the target accepts or the item is placed on an exception list.
  3. A submission that has been stored but not yet accepted by the target is shown to the patient as "submitted, being processed", never as completed.
  4. Where a cached read model is used for appointments or statements, the "as at" time is shown. Results and documents are never shown from cache (CFG-PEX-015 is 0 for them). A source outage shows the function-level text "[Function] is not available at the moment. Please try again later."; a consent or authorization decision that cannot be obtained shows "This information is temporarily unavailable." (glossary 10).
  5. Calls from PEX to other domains pass through quotas so that portal traffic cannot exhaust their capacity.
  6. During a planned maintenance window the portal displays the notice published under the Domain 2 release process.

7. Input Requirements

Input Field Data Type Mandatory Validation Description
Dependency health state Enumeration Yes From circuit breaker Drives function availability
Idempotency key String Yes for submissions Unique per submission Duplicate prevention

8. Processing Rules

Rule ID Processing Rule Expected Result
PR-PRT-002-1 Persist, then acknowledge, then forward. No acknowledged submission is lost (NFR-005).
PR-PRT-002-2 Retry with backoff; after the retry limit, move to the PEX exception list. Stale items are visible to operations.
PR-PRT-002-3 Fail closed for authorization, consent and release decisions. No data shown without a positive decision.

9. Output Requirements

Output Format Recipient Description
Function-unavailable notice Screen Requester Names the function and the alternative contact route
Exception list entry Work item PEX operations Submission not accepted by the target after retries

10. Validation and Error Handling

Scenario Validation System Response User Message / Action
Domain 1 scheduling unavailable Breaker open Accept and hold the request "Submitted. We will confirm when scheduling has processed it."
Domain 10 consent service unavailable No decision Do not display results or documents "This information is temporarily unavailable."
Duplicate forward after retry Idempotency key Target treats as the same submission None

11. State and Lifecycle Behaviour

Held submissions keep their pre-acceptance state (for example Submitted) until the target acknowledges.

12. Audit Requirements

Held, retried and exception-listed submissions are logged with correlation IDs. Fail-closed denials are audited as denied access with reason "decision unavailable".

13. Security and Privacy Requirements

Degraded mode never relaxes authorization, consent or release checks. Cached read models carry the same classification and encryption as their source.

14. Acceptance Criteria

  • AC-01: Given the Domain 1 scheduling API is unavailable, when a patient submits an appointment request, then the request is stored, the patient sees "submitted, being processed", and after recovery Domain 1 receives exactly one request.
  • AC-02: Given the Domain 10 consent service is unavailable, when a patient opens a released result, then the result is not displayed and messaging and appointment views still work.
  • AC-03: Given a portal load test at the agreed peak, when it runs alongside Tier 1 clinical workload, then Tier 1 response-time targets are still met.
  • AC-04: Given all PEX services are stopped, when registration and clinical workflows are exercised, then they complete without error.

15. Dependencies and Integration

  • Upstream dependencies: Domain 2 resilience patterns (bulkheads, quotas, durable queues).
  • Downstream dependencies: all PEX submission interfaces.
  • Required events or APIs: INT-004 and INF-002 capabilities provided by Domain 2.

16. Open Questions / Assumptions

  • The maximum cache age and the availability, RTO and RPO values for this tier are not set by the PRS (DEC-PEX-009).

← 5. Detailed Functional Requirements | Contents | Identifier index | 5.2 Module Specification: Patient Identity Linking and Account Access →