Distributed Patient Scheduling in Hospitals