MOD PEX 003 APT
Domain specifications / D07-PEX / 5. Detailed Functional Requirements / 5.3 Module Specification: Appointment Requests, Confirmations and Reminders
5.3 Module Specification: Appointment Requests, Confirmations and Reminders¶
5.3.1 Module Overview¶
Module ID: MOD-PEX-003
Purpose: Show the patient their appointments, let them ask for new appointments or changes, and deliver confirmations and reminders. Domain 1 (ADM) owns the appointment, the resource calendars and the booking decision.
Business Capabilities: - CAP-PEX-004 Appointment self-service
Primary Actors: - Patient, authorized representative, scheduling staff (Domain 1)
Dependencies: - Domain 1 scheduling API and appointment events; Domain 10 notification service; MOD-PEX-009 for communication preferences; MOD-PEX-006 for pre-visit forms.
5.3.2 Functional Areas¶
Functional Area ID: FA-PEX-007 Appointment views; FA-PEX-008 Appointment requests; FA-PEX-009 Confirmations and reminders
Description: Projection of appointments, the request lifecycle, and reminder scheduling with confirmation capture.
Scope: - Included: upcoming and past appointment list, preparation instructions, new / reschedule / cancel requests, request status, reminders, patient confirmation. - Excluded: slot search and direct booking against live calendars (see DEC-PEX-006), waitlist management, queue and arrival handling, resource matching.
5.3.3 Detailed Requirements¶
Requirement FR-PEX-APT-001: Appointment Views¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-PEX-APT-001 |
| Requirement Name | Appointment views |
| Requirement Type | Functional |
| Module | Appointment Requests, Confirmations and Reminders |
| Functional Area | FA-PEX-007 Appointment views |
| Priority | Should |
| Criticality | Medium |
| Requirement Status | Draft |
| Source | PAT-011 ("approved appointments, instructions"); FLOW-001 |
| Related Business Rule | BR-PEX-025, BR-PEX-029 |
| Related Workflow | WF-PEX-003 |
1. Requirement Statement
The system shall display to the requester the patient's upcoming and past appointments approved for patient display, with date, time and time zone, facility and location, service, practitioner where policy allows, status and preparation instructions, as read from Domain 1.
2. Business Rationale
Patients need a reliable view of when and where to attend; PAT-011 lists appointments and instructions as portal content.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Patient | Read own appointments | Active link |
| Representative | Read | Grant scope includes appointments |
4. Preconditions - Active link or grant.
5. Trigger - The requester opens the appointments view, or an appointment event updates the read model.
6. Functional Behaviour
- The list shows upcoming appointments in date order and past appointments within the configured look-back period (24 months by default, CFG-PEX-029).
- Each entry shows the Domain 1 status (for example booked, confirmed, rescheduled, cancelled) in patient-language labels.
- Appointment types that policy marks as not for patient display are omitted.
- Preparation instructions and any assigned pre-visit forms are linked from the entry.
- Times are shown in the facility's local time with the zone stated (NFR-018).
- If the read model is stale, the "as at" time is shown.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Subject patient | Identifier | Yes | From link or grant | Whose appointments |
| Date range | Date range | No | Within configured bounds | Filter |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-APT-001-1 | Use the appointment identifier and status from Domain 1 without local alteration. | View matches the scheduling system. |
| PR-APT-001-2 | Apply the patient-display flag per appointment type. | Restricted types are hidden. |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Appointment list and detail | Screen | Requester | As described above |
| Calendar entry | Standard calendar file | Requester | Date, time, facility only; no clinical detail |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Domain 1 unavailable | Call failure | Show read model with "as at" time, or unavailable notice | "Appointments shown as at [time]." |
| Appointment cancelled at source | Event received | Update status; cancel reminders | Notification per preferences |
11. State and Lifecycle Behaviour
No PEX state; the appointment lifecycle is Domain 1's.
12. Audit Requirements
Views of appointment lists are audited as patient-data views.
13. Security and Privacy Requirements
Appointment data can reveal sensitive care (for example a specialty clinic). Display rules by appointment type and the content of exported calendar entries must follow privacy policy.
14. Acceptance Criteria
- AC-01: Given a booked appointment in Domain 1, when the patient opens appointments, then it appears with matching date, time, zone, facility and status.
- AC-02: Given an appointment type flagged not for patient display, when the list is opened, then it does not appear.
- AC-03: Given an appointment cancelled in Domain 1, when the event is received, then the portal shows it as cancelled and no further reminder is sent.
15. Dependencies and Integration
- Upstream dependencies: Domain 1 appointment query and events (INT-PEX-003).
- Downstream dependencies: FR-PEX-APT-003, FR-PEX-FRM-001.
- Required events or APIs:
AppointmentBookedand related Domain 1 events.
16. Open Questions / Assumptions
- Assumes Domain 1 exposes a patient-display flag or appointment type that PEX can map to one.
Requirement FR-PEX-APT-002: Appointment Requests¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-PEX-APT-002 |
| Requirement Name | Appointment requests (new, reschedule, cancel) |
| Requirement Type | Functional |
| Module | Appointment Requests, Confirmations and Reminders |
| Functional Area | FA-PEX-008 Appointment requests |
| Priority | Should |
| Criticality | Medium |
| Requirement Status | Draft |
| Source | PRS section 5 (Patient engagement: appointment requests); PRS section 4 (Patient / representative: appointment access); FLOW-001; ADM-014; ADM-015; SAFE-004 |
| Related Business Rule | BR-PEX-008 |
| Related Workflow | WF-PEX-003 |
1. Requirement Statement
The system shall allow the requester to submit a request for a new appointment, or to reschedule or cancel an existing appointment, shall pass each request to Domain 1 exactly once, and shall show the requester the current status and outcome of each request.
2. Business Rationale
The PRS capability map lists appointment requests under patient engagement. Keeping the booking decision in Domain 1 preserves resource matching and waitlist priority rules (ADM-014, ADM-015).
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Patient | Create, withdraw own requests; accept or decline an offered alternative | Active link |
| Representative | Same | Grant scope includes appointments |
| Scheduling staff | Read request; decide in Domain 1 | Domain 1 role |
4. Preconditions - The service is enabled for patient requests at the facility.
5. Trigger - The requester submits a request.
6. Functional Behaviour
- For a new request the requester selects service, facility, preferred date and time ranges and a short reason, and indicates whether a referral exists where the service requires one.
- The request form displays the non-urgent notice and the urgent-care route.
- PEX stores the request, acknowledges it, and sends it to Domain 1 with an idempotency key.
- PEX updates the request from Domain 1 outcomes: under review, booked (with appointment identifier), alternative offered, declined (with patient-facing reason).
- The requester can accept or decline an offered alternative, and can withdraw a request that is not yet booked.
- A reschedule or cancel request references the appointment identifier. Inside the configured cut-off before the appointment, the request is not accepted online and the contact route is shown.
- Requests not resolved within the configured period (2 working days by default, CFG-PEX-031) are flagged to scheduling supervision; requests past their validity period expire and the requester is told.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Request type | Enumeration | Yes | New / reschedule / cancel | Kind of request |
| Service | Code | Yes for new | Enabled for patient request | Requested service |
| Facility | Code | Yes for new | Service offered there | Preferred site |
| Preferred date/time ranges | List of ranges | Yes for new and reschedule | In the future; within the booking-request horizon (6 months by default, CFG-PEX-030) | Preferences |
| Reason | Text (limited length) | Yes | At most 500 characters by default (CFG-PEX-032); no attachments | Reason for visit or change |
| Appointment identifier | Identifier | Yes for reschedule/cancel | Belongs to subject patient; future; changeable status | Target appointment |
| Referral indicator | Boolean / reference | Where service requires | Present | Referral exists |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-APT-002-1 | One open request per patient, service and facility; a duplicate is refused with a pointer to the open request. | No duplicate requests (SAFE-004). |
| PR-APT-002-2 | Forward with idempotency key; retries do not create a second Domain 1 work item. | Exactly-once business effect. |
| PR-APT-002-3 | The request state only moves to Booked on a Domain 1 confirmation carrying an appointment identifier. | No false confirmation. |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Appointment request | API command | Domain 1 scheduling | Request with patient, preferences, reason |
| Request status | Screen, notification | Requester | Current state and outcome |
AppointmentRequestSubmitted |
Event | Domain 8 | Engagement measure |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Past date or beyond horizon | Date rule | Reject field | "Choose a date within the available period." |
| Cancel inside cut-off | Cut-off rule | Refuse online | "Please contact [route] to change this appointment." |
| Appointment not owned by subject | Ownership check | Refuse; audit | "You do not have access to this." |
| Duplicate open request | PR-APT-002-1 | Refuse | Link to open request |
11. State and Lifecycle Behaviour
Appointment request states as in section 4.3. The appointment's own state is Domain 1's.
12. Audit Requirements
Audited: submission, withdrawal, acceptance of alternative, and each outcome received with the Domain 1 actor reference where provided.
13. Security and Privacy Requirements
The reason text is health information and is visible only to scheduling staff with a need to act. It is not included in notifications.
14. Acceptance Criteria
- AC-01: Given an enabled service, when a patient submits a new request, then the request appears as Submitted and Domain 1 holds one corresponding work item.
- AC-02: Given a network retry of the same submission, when it is processed, then Domain 1 still holds one work item.
- AC-03: Given Domain 1 books the request, when the outcome is received, then the request is Booked with the appointment identifier and the appointment appears in the appointment view.
- AC-04: Given an appointment inside the cancellation cut-off, when the patient asks to cancel online, then the request is refused and the contact route is shown.
- AC-05: Given a declined request, when the patient opens it, then the patient-facing reason supplied by Domain 1 is shown.
15. Dependencies and Integration
- Upstream dependencies: Domain 1 service catalogue for patient-requestable services.
- Downstream dependencies: Domain 1 scheduling (IF-PEX-003).
- Required events or APIs: Domain 1 request outcome events; EVT-PEX-004.
16. Open Questions / Assumptions
- The PRS names "appointment requests", not direct self-booking. Direct booking is recorded as an open decision (DEC-PEX-006).
Requirement FR-PEX-APT-003: Appointment Confirmations and Reminders¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-PEX-APT-003 |
| Requirement Name | Appointment confirmations and reminders |
| Requirement Type | Functional |
| Module | Appointment Requests, Confirmations and Reminders |
| Functional Area | FA-PEX-009 Confirmations and reminders |
| Priority | Must |
| Criticality | Medium |
| Requirement Status | Draft |
| Source | FLOW-001 ("reminders"); PAT-011; SEC-012; NFR-012 |
| Related Business Rule | BR-PEX-009, BR-PEX-010 |
| Related Workflow | WF-PEX-003 |
1. Requirement Statement
The system shall send the patient a confirmation when an appointment is booked or changed and reminders at configured intervals before the appointment, through the channels the patient has chosen, shall capture the patient's confirmation response and pass it to Domain 1, and shall cancel or reschedule reminders when the appointment changes.
2. Business Rationale
FLOW-001 includes reminders in the appointment lifecycle. REF-002 places confirmations and reminders in Domain 7.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| System | Schedule and send | Appointment event; preferences allow |
| Patient / representative | Confirm; request change | Link within the reminder or in the portal |
| Patient-engagement administrator | Configure schedules and templates; activate and roll back approved versions | Change control; reminder schedules approved by a second configuration administrator (ACT-PEX-017) |
4. Preconditions - A booked appointment exists in Domain 1 and the patient has at least one verified contact point. A portal account is not required to receive a reminder where policy allows reminders to registered contact points.
5. Trigger
- AppointmentBooked, rescheduled or cancelled event from Domain 1; scheduled reminder time reached; patient response.
6. Functional Behaviour
- On a booked or changed appointment, PEX sends a confirmation and creates reminder entries from the reminder schedule for the appointment type and facility.
- At each reminder time PEX re-checks the appointment status in Domain 1 before sending.
- Reminder content follows the content level allowed: by default date, time, facility and a link to the portal, with no service name where the service is classed as sensitive.
- Reminders use the patient's preferred language and channels; delivery is requested from the Domain 10 notification service and delivery status is recorded.
- A reminder carries a confirm action and a request-change action. Confirm is sent to Domain 1 as a patient confirmation. Request-change opens the reschedule or cancel request flow after sign-in.
- Failed delivery on one channel falls back to the next preferred channel where configured.
- Quiet hours configured for the facility are respected; a reminder falling in quiet hours is sent at the next permitted time unless that would be after the appointment.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Appointment event | Event | Yes | Schema-valid; unique ID | Source of schedule |
| Reminder schedule | Configuration | Yes | Effective version | Offsets before appointment |
| Patient preferences | Data | Yes | Verified contact points | Channel, language, content level |
| Confirmation response | Signed link action | No | Token valid, single appointment | Patient confirm |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-APT-003-1 | Re-check status immediately before send. | No reminder for a cancelled appointment. |
| PR-APT-003-2 | One reminder per appointment, offset and channel. | No duplicate reminders after event replay. |
| PR-APT-003-3 | A confirmation link authorizes only the confirm action for that appointment and reveals no further data. | Safe unauthenticated confirm. |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Confirmation / reminder | Notification request | Domain 10 notification service | Template, language, channel, recipient |
| Patient confirmation | API command | Domain 1 | Confirmed by patient, with time |
| Reminder history | Data | Engagement history | Sent, delivered, failed, responded |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| No verified contact point | Preference check | Do not send; record "not contactable" | Listed for scheduling staff |
| Delivery failure | Status from Domain 10 | Fallback channel; record | None |
| Confirmation link expired or appointment changed | Token and status | Refuse action | "This appointment has changed. Please sign in to see details." |
11. State and Lifecycle Behaviour
Reminder entries: Scheduled, Sent, Delivered, Failed, Cancelled. Patient confirmation is recorded on the Domain 1 appointment.
12. Audit Requirements
Send requests, delivery status and confirmation responses are kept in engagement history. Confirmation actions are audited.
13. Security and Privacy Requirements
Outbound content is minimised (SEC-012, BR-PEX-010). Reminders may be sent to patients without a portal account, to the mobile number verified at registration, under the recorded communication preference and with an opt-out in every message (DEC-PEX-010, resolved 2026-11-17; PRS 10.4). On every channel a reminder carries the first name, date, time and facility only, with no clinic name for sensitive services, no diagnosis and no result.
14. Acceptance Criteria
- AC-01: Given a booked appointment and a schedule with two offsets, when the times are reached, then two reminders are sent on the preferred channel in the preferred language.
- AC-02: Given an appointment cancelled after reminders were scheduled, when the reminder time is reached, then no reminder is sent.
- AC-03: Given a reminder, when the patient uses the confirm action, then Domain 1 records the patient confirmation.
- AC-04: Given a sensitive service, when a reminder is sent by SMS or email, then the service name does not appear in the message.
- AC-05: Given a replayed booked event, when it is processed again, then no additional reminders are created.
15. Dependencies and Integration
- Upstream dependencies: Domain 1 appointment events; MOD-PEX-009 preferences.
- Downstream dependencies: Domain 10 notification service; Domain 2 external messaging channels; Domain 1 confirmation API.
- Required events or APIs: INT-PEX-003, IF-PEX-005.
16. Open Questions / Assumptions
- FLOW-001 is primarily owned by Domain 1. The working position is that Domain 1 owns the appointment and its events and PEX owns patient-facing reminder scheduling and confirmation capture (DEC-PEX-005).
← 5.2 Module Specification: Patient Identity Linking and Account Access | Contents | Identifier index | 5.4 Module Specification: Approved Results and Document Release →