This system already exists, its an app called Patient Access.
My GP, and by the sounds of things many others, turned off the option to book appointments on it when covid shut everything down and its never been turned back on.
It worked brilliantly, as someone with ongoing health issues I...