It fetches doctor ids from client-side dom. It also generates a set of availability data.