The double-booking guard I actually shipped
RxClinic prevents overlapping appointments with a read before the write. That is a real guard with a real race window, and it is worth being honest about both.
Insights
Notes on software design, testing and building software for clinics, by Mahsa Hassani.