Multi-clinic patient triage, atomic slot deposit and waitlist console
These are representative scopes we quote and build. Client names are withheld; ask us for a walkthrough.
The problem
Clinics with several locations lose time to double-booked slots, patients who book and never pay or turn up, and late cancellations that leave a slot empty while other patients wait.
What we build
A booking console that asks patients a few triage questions on the web or WhatsApp, holds the chosen slot while they pay a deposit, sends reminders, and offers any freed slot to waitlisted patients straight away.
How it works
Step 1: Triage
The patient answers symptom triage questions on the web or on WhatsApp.
Step 2: Hold the slot
The chosen slot is locked for 10 minutes while the deposit is paid.
Step 3: Confirm on payment
The payment provider's webhook confirms the booking.
Step 4: Remind
Reminders go out 24 hours and 2 hours before the appointment.
Step 5: Backfill cancellations
When a booking is cancelled, the slot is offered to the waitlist at once.
Edge cases handled
Two patients, one slot
Row locks (SELECT ... FOR UPDATE) and a database exclusion constraint on time ranges make double booking impossible.
Unpaid holds
A scheduled worker releases any 10-minute hold that was not paid.
Late cancellations
A slot freed within 24 hours sends a 15-minute claim link to the top 3 patients on the waitlist.
What you get at handover
- The full source code, in your own repository
- Acceptance test: A race test firing 20 parallel requests at one slot
- Acceptance test: An end-to-end test reconciling payment webhooks with bookings