Domain specifications / D07-PEX / 14. Technical and Architectural Constraints
14. Technical and Architectural Constraints¶
14.1 Architectural Alignment¶
PEX is the "Patient Engagement" bounded context of REF-003 section 4.2 (portal access, appointments, patient forms, approved result release and secure messages). REF-004 lists its candidate components as a portal backend-for-frontend, patient access policy, messaging service and form service. Patient-facing clients sit in the experience plane; the backend-for-frontend and patient identity federation sit in the edge and access plane operated with Domain 2.
The domain follows the enterprise rules: it owns its state and exposes versioned APIs and events (PRS 8.2); it calls other domains only through published contracts; it uses the transactional outbox, idempotency, durable retry and replay (REF-002 section 6); it is isolated from core identity and encounter services (PRS 8.2); it has no runtime dependence on a third-party hosted module registry for its user interface (PRS 8.3); and it does not require a commercial product or an unmaintained component (DEP-001, DEP-003).
14.2 Logical Components¶
| Component ID | Component | Responsibility | Interfaces |
|---|---|---|---|
| CMP-PEX-001 | Patient web and mobile clients | Rendering, input, accessibility, locale. No business rules or authorization. | IF-PEX-001 |
| CMP-PEX-002 | Portal backend-for-frontend | Session handling, subject resolution, composition of projections, degraded-mode responses. | IF-PEX-001; INT-PEX-001 |
| CMP-PEX-003 | Account and access service | Accounts, links, proofing records, representative grants, reaction to identity events. | IF-PEX-002; INT-PEX-002; EVT-PEX-001 to 003 |
| CMP-PEX-004 | Appointment engagement service | Appointment projections, requests, reminders, confirmations. | IF-PEX-003; INT-PEX-003; EVT-PEX-004 |
| CMP-PEX-005 | Release service | Rule sets, release decisions, clinician actions, decision query. | IF-PEX-004, IF-PEX-006; INT-PEX-004 to 006, 009; EVT-PEX-005 to 007 |
| CMP-PEX-006 | Messaging service | Threads, messages, routing, timers, escalation. | INT-PEX-007, 012, 013; EVT-PEX-008 |
| CMP-PEX-007 | Form and submission service | Form versions, assignments, responses, review, correction requests, education assignments. | INT-PEX-002, 006, 007, 012, 015; EVT-PEX-009 to 011 |
| CMP-PEX-008 | Billing view adapter | Read-only projection of statements; online payment start through Domain 5 and hand-over to the provider's hosted page. | INT-PEX-008 |
| CMP-PEX-009 | Preference and consent presentation service | Communication preferences, contact-point verification, consent presentation. | INT-PEX-009; EVT-PEX-012 |
| CMP-PEX-010 | Notification orchestration and engagement history | Trigger rules, templates, notification requests, engagement history, audit outbox. | IF-PEX-005; INT-PEX-010, 011, 014; EVT-PEX-013 |
| CMP-PEX-011 | Staff engagement views | Inbox, review tasks, release panel, proofing console, administration console; embeddable in other workspaces. | Internal PEX APIs; Domain 10 workforce identity |
This decomposition is logical. Services should follow the bounded context rather than one service per table (REF-003 section 4.3); the number of deployable units is a design decision.
14.3 Deployment Considerations¶
- Deployment model. On-premises, private cloud or hybrid under hospital control, with no assumption of a specific cloud provider (PRS 8.4). Patient-facing endpoints are published through the Domain 2 web application firewall and gateways in a network zone separated from clinical services.
- Runtime dependencies. Domain 2 gateways, event backbone and secrets management; Domain 10 identity, authorization, consent, audit, notification, workflow, document and configuration services; source domains for content. PEX starts and serves available functions when a source domain is down.
- Infrastructure requirements. Sized from the capacity model (NFR-PEX-004). Resource quotas and priority classes keep PEX from competing with Tier 1 workloads (REF-003 section 15.1).
- High availability. Multi-instance stateless services with health-based routing, appropriate to Tier 3. PEX data stores are backed up and recoverable to the objectives in NFR-PEX-013.
- Disaster recovery. Recovered after Tier 1 and Tier 2 services. Release reconciliation runs before result and document views resume.
- Environment separation. Production, disaster recovery, pre-production, development and training environments are isolated; no real patient data in development; training uses synthetic patients and a clear banner (PRS 8.4). Non-production environments must not send notifications to real contact points.
- Upgrade and rollback. Controlled releases with rollback or forward-fix (NFR-016); patient clients tolerate one API version behind; mobile application store release lead time, if installed applications are chosen, is planned into release management (DEC-PEX-008).
- Internet dependency. The portal by nature requires internet connectivity for patients; this is acceptable because no critical clinical workflow depends on it (DEP-006).
14.4 Technology and Dependency Policy¶
No product is selected by this specification. The rows are dependency classes that PEX needs; each candidate must pass the PRS section 3 dependency policy.
| Dependency | Purpose | Mandatory / Optional | Maintenance Status | Licensing | Exit Strategy |
|---|---|---|---|---|---|
| External SMS, WhatsApp, email and push delivery providers | Delivery of minimal-content notifications | Optional per channel; at least one external channel is needed for reminders and security notices | To be assessed per provider | To be assessed | Provider-neutral adapter behind the Domain 10 notification service; second provider or channel fallback; no patient data retained by provider beyond delivery where avoidable |
| External patient identity provider or national digital identity, where approved | Federated sign-in and proofing evidence | Optional | To be assessed | To be assessed | Local credentials with staff-assisted proofing remain available; federation uses an open standard |
| Web and mobile client frameworks and libraries | Patient-facing clients | Mandatory as a class; specific choice open | Must show active maintenance (DEP-003) | Compatible licences recorded in the SBOM (DEP-004) | Clients hold no business rules, so they can be rebuilt against IF-PEX-001 |
| Mobile application distribution platforms, if installed applications are chosen | Distribution and push notification | Optional | Platform-controlled | Platform terms | Responsive web client remains fully functional |
| Malware scanning component for attachments | Attachment safety | Mandatory if attachments are enabled | To be assessed | To be assessed | Attachments can be disabled; scanner behind an internal interface |
| Licensed education content or outcome instruments | Education material; questionnaires | Optional | Default instruments are maintained by their developers (PROMIS by HealthMeasures, EQ-5D by EuroQol, PHQ-9 and GAD-7 by the Pfizer PHQ screeners) | Assessed 17 Nov 2026: PHQ-9 and GAD-7 free; PROMIS-10 free under HealthMeasures terms; EQ-5D-5L under EuroQol licence (FR-PEX-PRO-001 part 6.10). Any further instrument or licensed content is checked before use | Locally authored content; instruments replaceable by form version |
| FHIR and SMART on FHIR (standards, not products) | Patient-authorized application access | Mandatory where EXT-PEX-004 is in scope | Standards maintained by HL7 | Open specification; implementation subject to review | Standards-based; implementation replaceable |
← 13. Configuration and Administration Requirements | Contents | Identifier index | 15. Testing and Verification Requirements →