Booking to checkout
The appointment lifecycle from request to completed visit and aftercare.
- Book.
bookAppointmentchecks availability, creates theClientandUserif needed, apendingAppointment,AppointmentLineItemsnapshots, and room, device and supervisor reservations. No payment is taken. Guests get a link token forstorefrontAppointmentandcancelGuestAppointment. - Waitlist.
joinWaitlist(staff) andrequestWaitlistSpot(storefront). Entries goactive,notified, thenconvertedorremoved(transitionWaitlistEntry). - Confirm.
transitionAppointment:pendingtoconfirmed,cancelledorno_show;confirmedtoin_progress,cancelledorno_show;in_progresstocancelled. Revision-checked. - Intake. Client uses
submitIntake; clinical staffreviewIntake(submitted,in_review,reviewed,superseded). - Treat. See Treatment workspace.
- Check out.
completeAppointmentCheckouton aconfirmedorin_progressappointment. See Checkout. - Aftercare.
scheduleFollowUp; clientsubmitFollowUpResponseandsubmitAppointmentReview; staffmoderateReview.
Mutations that change money or clinical state take an idempotency key and, where relevant, a record revision, and many run in serializable transactions.