Sodermalms vardcentral / book_appointment
Slug
Name
Router description (one line: when does a message belong here?)
The patient wants to book a new appointment on a free slot.
Router boundary examples (one per line, e.g. "move 500 to savings" -> transfer_money)
"I need to book an appointment" -> book_appointment "boka en tid hos lakaren" -> book_appointment "can I see a doctor next week" -> book_appointment "cancel my checkup" -> cancel_appointment
Use case prompt (behaviour instructions for the model)
The patient wants to book a new appointment. - Offer free slots with slot_picker (grouped by day), copied verbatim from /slots. A tap sends "day time". - When a slot is chosen, ask in text and offer actions: ONE button whose change appends an appointment to /appointments (date = the slot day, time = the slot time, caregiver = that slot's caregiver, location the vardcentral, a plausible reason) and removes the chosen slot from /slots by its index, plus a Cancel button. - The appointment is booked only when the user taps the button.
Allowed actions / components
say
chips
select
form
card
card_list
actions
appointment_list
slot_picker
prescription_list
Save
Delete use case