A busy hospital has a list of dates that a doctor is available to see patients. Their process is manual and error prone leading to overbooking. They also have a hard time visualizing all of the available time for a doctor for specific dates.
Create a REST API that enables a simple scheduling system that manages doctor availabilities and allows patients to book appointments.
Define a set of data models that include:
- a way track assign booked appointments
- a way to track patients
- a way to track doctors
- a way to track a doctor's working hours and days
Implement the following functionality:
- Find a doctor's working hours
- Book an doctor opening
- Create and update the list of doctor's working hours
The code should be delivered as a library that anyone can import and use. It should contain documentation and unit tests that show your understanding of the problem. Once you're finished, submit a PR to this repo.