PracticeLess likely on exam

Question 214

214 of 293

Question 214

Question 214

Your scheduling agent uses get_available_slots(date, provider_id) to retrieve open appointment times, then book_appointment(provider_id, slot_time, patient_id) to reserve a slot. Support tickets show that 15% of booking attempts fail with "slot no longer available" because another user booked the slot between the availability check and the booking call. How should you redesign these tools?