MOD ADM 007 SCH
Domain specifications / D01-ADM / 5. Detailed Functional Requirements / 5.7 Module Specification: Appointment Scheduling, Resource Calendars and Waitlists
5.7 Module Specification: Appointment Scheduling, Resource Calendars and Waitlists¶
5.7.1 Module Overview¶
Module ID: MOD-ADM-007
Purpose: Manage appointment templates, provider and resource availability, booking across multiple resources, the appointment lifecycle, waitlists and reminder triggers for clinic, diagnostic and procedure resources.
Business Capabilities: - CAP-ADM-007 Scheduling and waitlists
Primary Actors: - Scheduler / clinic clerk (ACT-ADM-006) - Scheduling and flow administrator (ACT-ADM-009) - Registration supervisor (ACT-ADM-010) - Patient / representative through Domain 7 (ACT-ADM-011)
Dependencies: - MOD-ADM-001, MOD-ADM-004, MOD-ADM-008. - Domain 10: practitioner, room, equipment and service registries; notification service; authorization; audit. - Domain 7: patient appointment requests and confirmations. Domain 4: consumes slots and calendars for diagnostic and procedure resources. Domain 5: eligibility checks at pre-scheduling (RCM-001).
5.7.2 Functional Areas¶
Functional Area ID: FA-ADM-015 Templates and resource calendars
Description: Appointment templates, operating calendars and availability of practitioners, rooms, equipment and services.
Scope: - Included: templates, slot generation, availability exceptions, multi-resource rules. - Excluded: workforce rostering; theatre list management (Domain 4).
Functional Area ID: FA-ADM-016 Appointment lifecycle
Description: Booking, rescheduling, cancellation, check-in, no-show and reminders.
Scope: - Included: staff booking, booking requests from Domain 7, reminder triggers. - Excluded: delivery of notifications (Domain 10); patient-facing screens (Domain 7).
Functional Area ID: FA-ADM-017 Waitlist management
Description: Prioritized waiting lists and offer of released capacity.
Scope: - Included: waitlist entry, priority policy, traceable priority change, offers. - Excluded: surgical waiting list clinical prioritization content (Domain 4 and clinical governance supply the urgency category).
5.7.3 Detailed Requirements¶
Requirement FR-ADM-SCH-001: Appointment templates and resource availability¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ADM-SCH-001 |
| Requirement Name | Appointment templates and resource availability |
| Requirement Type | Functional |
| Module | Appointment scheduling, resource calendars and waitlists |
| Functional Area | FA-ADM-015 Templates and resource calendars |
| Priority | Must |
| Criticality | Medium |
| Requirement Status | Draft |
| Source | FLOW-001; CFG-001, CFG-002 (contribute); PRS section 4.1 |
| Related Business Rule | BR-ADM-017 |
| Related Workflow | WF-ADM-007 |
1. Requirement Statement
The system shall manage appointment templates and provider and resource availability for clinic, diagnostic and procedure resources, from which bookable slots are derived.
2. Business Rationale
Templates encode how each service is delivered (duration, resources, capacity). Without them booking is manual and conflicts are undetected.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Scheduling and flow administrator | Create, Read, Update, retire (templates, calendars) | Governed, versioned change |
| Scheduler / clinic clerk | Read; Update (ad hoc availability exceptions where permitted, entered on UI-ADM-005) | Own clinic |
| Consuming domain service (Domains 4, 7) | Read (slots) | Scoped |
4. Preconditions - Practitioners, rooms, equipment and services exist in the Domain 10 registries; facility operating hours and local calendars are configured (PRS 4.1).
5. Trigger - Creation or change of a template or calendar; an availability exception; a slot query.
6. Functional Behaviour
- A template defines service, facility and location, default duration, required resources by type or named resource, slot capacity, operating calendar, booking rules (for example lead time, referral required, eligible booking channels) and preparation requirements.
- Each schedulable resource has a calendar of availability with recurring patterns and dated exceptions (leave, maintenance, closure). Recurring patterns are governed configuration; a clinic clerk may enter an ad hoc dated exception for a resource of the clerk's own clinic where permitted, on the scheduling workspace (UI-ADM-005).
- The system derives bookable slots from templates and calendars in the facility's time zone.
- Templates and calendars are versioned and effective-dated; a change does not alter existing appointments silently. Appointments affected by a change, or by an availability exception, are listed for review on the scheduling workspace (UI-ADM-005).
- A resource marked inactive or out of service in the registry is removed from future availability and affected appointments are listed.
- Slots are exposed to authorized consumers by service, resource, location and period.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Service | Reference | Yes | Active in registry | What is delivered |
| Required resources | List of resource types or references | Yes | Exist in registry | Practitioner, room, equipment |
| Duration and capacity | Integer | Yes | Positive | Slot length and patients per slot |
| Calendar pattern and exceptions | Structured | Yes | No internal overlap for one resource | Availability |
| Effective from / to | Date | Yes (from) | From ≤ to | Version validity |
| Booking rules | Structured | No | — | Lead time, referral, channel |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-SCH-001-1 | Calendar exception overlaps booked appointments | Appointments listed for rescheduling; not cancelled automatically |
| PR-SCH-001-2 | Template version superseded | Existing appointments keep the version under which they were booked |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Bookable slots | API / screen | Schedulers, Domains 4 and 7 | Availability |
| Affected-appointment list | Worklist (UI-ADM-005) | Schedulers | Appointments needing action after a template or calendar change or an availability exception |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Template references an inactive resource | Registry check | Reject activation | "Resource is not active." |
| Overlapping availability pattern for one resource | Overlap check | Reject | "Availability overlaps an existing pattern." |
11. State and Lifecycle Behaviour
Template and calendar versions: draft, approved, effective, superseded, retired.
12. Audit Requirements
Template and calendar changes are audited with before and after values, approver and effective date.
13. Security and Privacy Requirements
Template data is Internal. Practitioner availability is visible to scheduling roles; patient-facing exposure is limited to bookable slots.
14. Acceptance Criteria
- AC-01: Given templates for a clinic, a diagnostic resource and a procedure resource, when slots are queried, then slots are derived for each from template and calendars.
- AC-02: Given a practitioner leave exception over booked appointments, when it is saved, then the affected appointments are listed and none is cancelled automatically.
- AC-03: Given a template change with a future effective date, when the date arrives, then new slots use the new version and existing appointments are unchanged.
15. Dependencies and Integration
- Upstream dependencies: Domain 10 registries and configuration governance.
- Downstream dependencies: FR-ADM-SCH-002, FR-ADM-SCH-003; Domains 4 and 7.
- Required events or APIs: IF-ADM-006.
16. Open Questions / Assumptions
- The boundary between Domain 1 general scheduling and Domain 4 perioperative and theatre scheduling follows REF-002; Domain 4 is assumed to consume Domain 1 resource calendars rather than keep separate calendars for shared resources (ASM-ADM-007).
Requirement FR-ADM-SCH-002: Appointment booking, rescheduling, cancellation and reminders¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ADM-SCH-002 |
| Requirement Name | Appointment booking, rescheduling, cancellation and reminders |
| Requirement Type | Functional |
| Module | Appointment scheduling, resource calendars and waitlists |
| Functional Area | FA-ADM-016 Appointment lifecycle |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | FLOW-001; PAT-011, RCM-001 (contribute) |
| Related Business Rule | BR-ADM-017, BR-ADM-025 |
| Related Workflow | WF-ADM-007 |
1. Requirement Statement
The system shall support booking, rescheduling and cancellation of appointments and the issue of reminders, such that the end-to-end appointment lifecycle works for clinic, diagnostic and procedure resources.
2. Business Rationale
Appointments regulate access to outpatient and diagnostic capacity. Reminders reduce non-attendance; retained history supports access reporting.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Scheduler / clinic clerk | Create, Read, Update, cancel | Permitted clinics |
| Patient / representative via Domain 7 | Create (request), cancel, reschedule (request) | Own or represented patient; channels permitted by template |
| Registration / admission clerk | Update (check-in) | — |
4. Preconditions - Bookable slots exist; the patient has an enterprise identity.
5. Trigger - A booking, reschedule or cancellation request; check-in; a reminder schedule point; the no-show rule time.
6. Functional Behaviour
- Booking creates an appointment linked to patient, service, slot, resources, location, referral where applicable and booking channel, in the Booked state.
- Booking enforces template rules, including referral requirement and validity, and rejects resource conflicts (FR-ADM-SCH-003).
- Rescheduling releases the original resources and reserves the new ones in one operation; the appointment keeps its identifier and a history of prior slots.
- Cancellation records who cancelled (patient or facility), reason and time, and releases resources.
- The system sends reminder and confirmation requests to the Domain 10 notification service according to configured schedule, channel and patient contact preferences, and records the delivery status returned.
- Check-in sets Arrived, creates or activates the encounter and the queue item (FR-ADM-ENC-001, FR-ADM-FLW-001).
- The no-show rule sets No-show when the patient has not arrived by the configured time after the slot start.
- Requests arriving from Domain 7 are processed by the same rules; where a template requires staff confirmation, the request is held as a pending request on a scheduler worklist. From the request detail the scheduler books the requested slot, offers another time, or declines the request with a reason from a governed list; these set the Domain 7 request states Booked, Alternative Offered and Declined.
- Where configured, booking triggers a pre-scheduling eligibility check by Domain 5 and records the returned verification reference on the appointment (FR-ADM-REF-001).
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Patient | Enterprise person identifier | Yes | Active or provisional identity | Subject |
| Service / template | Reference | Yes | Effective template | What is booked |
| Slot | Reference | Yes | Available for all required resources | When and with what |
| Referral | Reference, validity | Conditional | Required by template; valid on appointment date | Referral basis |
| Booking channel | Code | Yes | Staff, portal, other | Origin |
| Cancellation / reschedule reason | Code / text | Yes for those actions | Governed list | Justification |
| Idempotency key | String | Yes (API) | — | Prevents duplicate booking |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-SCH-002-1 | Same patient already booked for an overlapping time | Warning, or block per configuration |
| PR-SCH-002-2 | Repeated request with the same idempotency key | One appointment only |
| PR-SCH-002-3 | Cancellation releases capacity | Waitlist evaluated for an offer (FR-ADM-SCH-004) |
| PR-SCH-002-4 | Patient merged | Appointments follow the surviving identity |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Appointment | Stored record; API (FHIR Appointment where applicable); HL7 v2 SIU where a partner requires it | Users, Domains 4 and 7, external systems | Appointment and status |
| Appointment events | Domain events | Clinical and operational workspaces | EVT-ADM-019 to EVT-ADM-021 |
| Reminder request | Notification request | Domain 10 notification service | Template, channel, recipient, schedule |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Slot no longer available | Availability at commit | Reject | "Slot is no longer available." with alternatives |
| Referral missing or expired | Template rule | Reject or route to pending per configuration | "A valid referral is required." |
| Notification service unavailable | — | Appointment committed; reminder request queued | Delivery status "pending" visible |
11. State and Lifecycle Behaviour
Appointment lifecycle of section 4.3.
12. Audit Requirements
Booking, reschedule, cancellation, check-in and no-show are audited with actor or channel, time and reason; the appointment history holds prior slots.
13. Security and Privacy Requirements
Appointment data is Confidential; the service booked can reveal clinical information, so reminder content follows the configured minimum-content rule and the patient's communication preferences held by Domain 10.
14. Acceptance Criteria
- AC-01: Given a clinic, a diagnostic and a procedure template, when an appointment is booked, rescheduled, reminded, checked in and completed for each, then every lifecycle step succeeds and is recorded.
- AC-02: Given a booked appointment, when it is rescheduled, then the original slot is free and the history shows both slots.
- AC-03: Given a cancellation, when it is saved, then reason and canceller are stored and resources are released.
- AC-04: Given a reminder schedule, when the reminder time is reached, then a notification request is issued and its delivery status is recorded.
- AC-05: Given a duplicate booking request with the same idempotency key, when processed, then one appointment exists.
15. Dependencies and Integration
- Upstream dependencies: FR-ADM-SCH-001; Domain 7 requests; Domain 10 notification.
- Downstream dependencies: FR-ADM-ENC-001, FR-ADM-FLW-001; Domains 3, 4, 7, 8.
- Required events or APIs: IF-ADM-006; EVT-ADM-019 AppointmentBooked, EVT-ADM-020, EVT-ADM-021.
16. Open Questions / Assumptions
- FLOW-001 assigns reminders to scheduling. Domain 1 owns the reminder trigger and schedule; Domain 10 delivers; Domain 7 owns the patient-facing presentation and confirmation (XD-ADM-010).
- The no-show interval and reminder schedule are not given in the sources; the defaults are 30 minutes after the slot start and reminders 72 and 24 hours before the appointment (CFG-ADM-016, CFG-ADM-017).
Requirement FR-ADM-SCH-003: Multi-resource appointment matching¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ADM-SCH-003 |
| Requirement Name | Multi-resource appointment matching |
| Requirement Type | Functional |
| Module | Appointment scheduling, resource calendars and waitlists |
| Functional Area | FA-ADM-015 Templates and resource calendars; FA-ADM-016 Appointment lifecycle |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | ADM-014 |
| Related Business Rule | BR-ADM-017 |
| Related Workflow | WF-ADM-007 |
1. Requirement Statement
The system shall match appointments across practitioner, room, equipment, service, preparation and patient availability, shall reject resource conflicts and shall expose unmet dependencies.
2. Business Rationale
Many services need several resources at once. Booking one without the others produces appointments that cannot take place.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Scheduler / clinic clerk | Create (multi-resource booking) | — |
| Scheduling and flow administrator | Update (dependency rules) | Governed configuration |
| Registration supervisor | Approve (overbooking where the template allows) | Reason mandatory |
4. Preconditions - The template lists required resources and preparation requirements.
5. Trigger - A slot search or booking for a service with more than one required resource.
6. Functional Behaviour
- Slot search returns only times at which every required resource is simultaneously available for the required duration, including preparation and turnaround time.
- Patient availability is checked against the patient's other appointments and, where known, admission status.
- Preparation requirements (for example a prior test or a fasting period) are evaluated where the dependency is a schedulable item; unmet preparation dependencies are shown.
- Booking reserves all required resources atomically; if any reservation fails, none is held.
- When no slot satisfies all dependencies in the requested period, the system reports which resource or dependency is the constraint.
- Overbooking is permitted only where the template allows it, by an authorized user with a reason, and never for a resource that the template marks as exclusive.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Service / template | Reference | Yes | Effective | Defines the dependencies |
| Search period | Date range | Yes | End after start | Search window |
| Preferred practitioner or location | Reference | No | Eligible for the template | Narrows search |
| Patient | Enterprise person identifier | Yes | — | For patient availability |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-SCH-003-1 | Any required resource unavailable | Slot not offered; constraint reported |
| PR-SCH-003-2 | Partial reservation failure | All reservations rolled back |
| PR-SCH-003-3 | Exclusive resource already reserved | Rejected; no override |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Matching slots | Screen / API | Scheduler, Domain 7 | Slots satisfying all dependencies |
| Unmet dependency report | Screen / API | Scheduler | Constraining resource or preparation step |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Conflict detected at commit | Atomic reservation | Reject | "Room is no longer available for this time." |
| Unmet preparation dependency | Dependency check | Warn or block per template | "Preparation step not scheduled: (step)." |
11. State and Lifecycle Behaviour
No additional states; resource reservations follow the appointment lifecycle.
12. Audit Requirements
Overbooking and dependency overrides are audited with actor and reason.
13. Security and Privacy Requirements
Patient-availability checks use the patient's other appointments without disclosing their content to users not authorized to see them.
14. Acceptance Criteria
- AC-01: Given a service requiring a practitioner, a room and an equipment item, when slots are searched, then only times at which all three are free are offered.
- AC-02: Given a room already reserved, when a conflicting booking is attempted, then it is rejected and no other resource remains reserved.
- AC-03: Given no slot in the period, when the search completes, then the unmet dependency is identified.
- AC-04: Given the patient has another appointment at the same time, when booking, then the overlap is exposed.
15. Dependencies and Integration
- Upstream dependencies: FR-ADM-SCH-001; Domain 10 resource registries.
- Downstream dependencies: FR-ADM-SCH-002; Domain 4 diagnostic and procedure scheduling.
- Required events or APIs: IF-ADM-006; EVT-ADM-018 ResourceReleased.
16. Open Questions / Assumptions
- "Preparation" in ADM-014 is interpreted as preparation time and schedulable preparation steps; clinical preparation instructions are Domain 3 and Domain 7 content.
Requirement FR-ADM-SCH-004: Prioritized waiting lists¶
| Attribute | Description |
|---|---|
| Requirement ID | FR-ADM-SCH-004 |
| Requirement Name | Prioritized waiting lists |
| Requirement Type | Functional |
| Module | Appointment scheduling, resource calendars and waitlists |
| Functional Area | FA-ADM-017 Waitlist management |
| Priority | Must |
| Criticality | High |
| Requirement Status | Draft |
| Source | FLOW-001 (waitlists), ADM-015 |
| Related Business Rule | BR-ADM-019 |
| Related Workflow | WF-ADM-007 |
1. Requirement Statement
The system shall support prioritized waiting lists based on clinical urgency, referral validity, triage category and configurable policy, in which priority changes are traceable and cannot be silently overridden.
2. Business Rationale
When demand exceeds capacity, access must follow an explicit, defensible order. Untraceable reordering undermines fairness and clinical safety.
3. Actors and Permissions
| Actor | Permission | Conditions |
|---|---|---|
| Scheduler / clinic clerk | Create, Read, Update (entry); make offers | — |
| Physician / responsible clinician | Update (clinical urgency category) | For own patients or service |
| Registration supervisor | Approve (manual priority override) | Reason mandatory |
4. Preconditions - A waitlist and its priority policy are configured for the service.
5. Trigger - No suitable slot at booking; a referral placed on a list; capacity released; urgency or referral validity changes.
6. Functional Behaviour
- A waitlist entry records patient, service, date placed, clinical urgency category, triage category where applicable, referral reference and validity, and patient availability constraints.
- The system orders entries by the configured policy using those attributes and waiting time.
- Any change of priority attribute or manual reordering records actor, time, prior and new values and reason; manual override requires authorization.
- Entries whose referral validity is about to expire or has expired are flagged on a worklist.
- When capacity is released or added, the system proposes the highest-priority eligible entries to the scheduler; acceptance creates an appointment and closes the entry.
- Entries are closed with a reason (booked, patient declined further offers, no longer required, referral expired, deceased).
- An offer the patient declines returns the entry to Active with the reason recorded. The entry keeps its place unless the waitlist policy says otherwise (CFG-ADM-018).
- An offer not answered within the configured response time expires: the entry returns to Active with the outcome "offer expired", and the slot is proposed to the next eligible entry.
7. Input Requirements
| Input Field | Data Type | Mandatory | Validation | Description |
|---|---|---|---|---|
| Patient, service | References | Yes | Valid | Subject and service |
| Clinical urgency category | Code | Yes | Governed value set | Clinical priority |
| Triage category | Code | No | Governed value set | Where applicable |
| Referral reference and validity | Reference, dates | Conditional | Required by policy | Access basis |
| Override reason | Code / text | Conditional | Mandatory for manual override | Justification |
| Decline reason | Code / text | Conditional | Mandatory when an offer is declined | Why the patient declined |
8. Processing Rules
| Rule ID | Processing Rule | Expected Result |
|---|---|---|
| PR-SCH-004-1 | Priority attribute changes | Order recalculated; change recorded |
| PR-SCH-004-2 | Manual reorder without authorization | Rejected |
| PR-SCH-004-3 | Duplicate entry for the same patient and service | Rejected or merged per configuration |
| PR-SCH-004-4 | Offer declined | Entry returns to Active; place kept unless the policy says otherwise; reason recorded |
| PR-SCH-004-5 | Offer not answered within the configured response time | Offer expires; entry returns to Active; slot proposed to the next eligible entry |
9. Output Requirements
| Output | Format | Recipient | Description |
|---|---|---|---|
| Ordered waitlist | Screen / report | Schedulers, service managers | With basis of order |
| Priority change history | Screen / report | Supervisors, auditors | Per entry |
| Waitlist events | Domain events | Domain 8 | Entry created, changed, closed |
10. Validation and Error Handling
| Scenario | Validation | System Response | User Message / Action |
|---|---|---|---|
| Override without reason | Mandatory | Block | "Enter the reason for the priority change." |
| Expired referral at offer | Referral validity | Flag; offer per policy | "Referral expired on (date)." |
11. State and Lifecycle Behaviour
Waitlist entry: active, offered, closed (with reason). From offered, the entry is closed when the offer is accepted and booked, or returns to active when the offer is declined or expires (section 4.3).
12. Audit Requirements
Every priority change and override is audited with before and after values, actor and reason.
13. Security and Privacy Requirements
Waitlists are Confidential. Clinical urgency is visible to scheduling roles only as a category.
14. Acceptance Criteria
- AC-01: Given entries with different urgency categories and waiting times, when the list is displayed, then the order follows the configured policy.
- AC-02: Given an entry, when its urgency category is changed, then the history shows who changed it, when, from what to what and why.
- AC-03: Given a user without override authority, when manual reordering is attempted, then it is rejected and audited.
- AC-04: Given a cancelled appointment, when capacity is released, then the highest-priority eligible entry is proposed.
- AC-05: Given an offered entry, when the patient declines with a reason, then the entry is Active in its previous place (unless the policy says otherwise); when no answer is received within the configured response time, then the offer expires, the entry is Active and the slot is proposed to the next entry.
15. Dependencies and Integration
- Upstream dependencies: FR-ADM-SCH-001; urgency category from clinicians (Domain 3 referral context).
- Downstream dependencies: FR-ADM-SCH-002; Domain 8 waiting-time reporting.
- Required events or APIs: IF-ADM-006; EVT-ADM-022.
16. Open Questions / Assumptions
- The priority policy itself (weights of urgency, waiting time and referral validity), the offer response time and whether a declined offer keeps its place are hospital policy to be approved, not product defaults (CFG-ADM-018).
← 5.6 Module Specification: Bed, Ward, Room and Location Management | Contents | Identifier index | 5.8 Module Specification: Queue Management, Triage Routing and Patient-Flow Boards →