Appointment Booking Portal
A small clinic takes bookings by phone, so the front desk is overloaded and patients cannot see free slots or change an appointment themselves.
- Estimated effort
- 24-32 hours
- Difficulty
- Intermediate
- Stack
- TypeScript, React or similar front end, REST API, SQL database, Accessibility testing
- Related program
- 01 · New Project Creation
Project brief
Ashgrove Family Clinic is a fictional clinic with four clinicians and two front-desk staff. At present, every booking is made by phone. The clinic manager, Dara Okafor, wants patients to book online and the front desk to spend less time on the phone. Patients should see only free slots, book one, and later reschedule or cancel it. Staff must be able to set each clinician's working hours, block out time, and see the day's appointments.
Appointments are for a single clinician and a fixed length per appointment type. Two people must never be able to book the same slot, even if they click at the same moment. Cancellation is allowed until a cut-off time that the clinic sets, and after that the patient sees a message asking them to phone. The portal collects only the information needed to book: a name and a contact method. It must not display one patient's information to another, and staff access is separate from patient access.
All data is synthetic: invent patients (for example 'Patient A'), clinicians and slots, and do not use real names, contact details or health information. The portal must work with a keyboard alone and give clear messages when something fails. Where the brief is silent, record your assumption. You may use AI assistance for planning and review, but you log each prompt, review the output and justify what you accept.
Skills you will practise
- Planning a screen-by-screen user flow from workflows
- Designing components, state ownership and error states
- Preventing double booking
- Building accessible forms and keyboard-operable interfaces
- Handling personal data carefully, even in a synthetic project
Deliverables
- User flows and acceptance criteria for patient and staff journeys
- A working web application with a back end and a seeded synthetic database
- A component plan and a short note on state ownership
- Automated tests for booking rules and a manual accessibility test record
- A threat model note for the booking and personal-data flows
- A prompt log with review notes
Prerequisites
- Experience building a front end and a small back end
- Basic SQL and transactions
- Familiarity with writing acceptance criteria
- A keyboard and a screen reader or accessibility checker available for testing
Helpful lessons: Problem Framing, Stakeholders and Workflows, Requirements, Acceptance Criteria.
Suggested architecture
A single-page or server-rendered front end talks to a REST API. The API enforces booking rules inside a transaction and the database has a uniqueness constraint that makes double booking impossible even if application code fails.
| Component | Responsibility |
|---|---|
| Patient interface | Shows available slots, booking, rescheduling and cancellation with clear loading, empty and error states. |
| Staff interface | Manages clinician availability and shows the day's appointments, behind separate authentication. |
| Booking API | Validates requests, applies rules such as the cancellation cut-off, and returns consistent errors. |
| Availability service | Computes free slots from working hours, blocked time and existing appointments. |
| Database | Stores clinicians, appointment types, appointments and blocks, with a unique constraint on clinician and start time. |
| Notification stub | Records the confirmation message that would be sent; it never sends a real message in this project. |
- Choose slot
Patient picks a free slot
- Submit
Front end posts the booking
- Check and reserve
API validates and inserts inside a transaction
- Conflict or success
A taken slot returns a clear conflict error
- Confirm
Screen shows the booking; stub logs the confirmation
Milestones and tasks
- 1
Plan the flows
Describe who does what, and what counts as done.
- Map the patient and staff workflows and note where each can fail.
- Write acceptance criteria for booking, rescheduling, cancelling and availability.
- List open questions such as time zones and the cancellation cut-off.
- 2
Design the screens and data
Decide the structure before building it.
- Produce a component tree with props and the owner of each piece of state.
- List loading, empty and error states for each screen.
- Design the schema and the constraint that prevents double booking.
- Write a short threat model note covering personal data and access control.
- 3
Build the booking back end
Make the rules correct and safe under concurrent use.
- Implement availability computation and the booking endpoint.
- Implement reschedule and cancel with the cut-off rule.
- Show that two simultaneous bookings for one slot result in one success and one conflict.
- Review any AI-generated code for injection and authorisation problems.
- 4
Build the interfaces
Give patients and staff usable, accessible screens.
- Build the patient booking flow and the staff day view.
- Make every action operable by keyboard with visible focus and announced status messages.
- Handle conflict, validation and server errors with understandable messages.
- 5
Test, review and submit
Verify behaviour and record your reasoning.
- Complete automated tests for booking rules.
- Run and record a keyboard and screen reader test script.
- Finish the README and the prompt log, and walk through the submission checklist.
Tests to write
- T1A patient can book a free slot and sees a confirmation.
- T2A slot that has already been booked is not offered, and booking it directly returns a conflict error.
- T3Two simultaneous requests for the same slot result in exactly one booking.
- T4Cancelling before the cut-off succeeds; cancelling after it is refused with a clear message.
- T5Rescheduling moves the appointment and frees the original slot.
- T6A patient cannot read or change another patient's appointment.
- T7A staff user can block time, and blocked time is no longer offered.
- T8The booking flow can be completed using only the keyboard.
- T9Validation errors are announced and associated with their fields.
Submission checklist
Assessment rubric
| Criterion | Weight | Strong | Adequate | Needs work |
|---|---|---|---|---|
| Flows and requirements | 15% | Workflows cover success and failure paths; criteria are testable; assumptions are recorded. | Main flows are described, with gaps in failure cases. | Flows are vague or missing; criteria untestable. |
| Component design and user interface | 20% | Clear component boundaries and state ownership; loading, empty and error states are all handled. | Works for the main path; some states are missing or state is duplicated. | Monolithic screens; errors silently ignored. |
| Booking correctness | 25% | Double booking is impossible, with a database constraint and a demonstrated concurrency test; rules are enforced server-side. | Double booking is prevented in application code only, or the test is missing. | Double booking is possible or rules exist only in the front end. |
| Accessibility and security | 25% | Keyboard and screen reader test recorded; access control tested; threat model drives real changes. | Some accessibility checks and basic access control; threat note is generic. | No accessibility testing; patients can see each other's data. |
| AI use, review and documentation | 15% | Prompt log is complete and justifications show real review; README is complete. | Log exists but review is superficial. | AI output accepted without review; no log. |
- Written by
- PromptFable Editorial
- Last updated 13 Nov 2026
- Review
- Not yet reviewed
PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.