Simple Exercise
Main routes:
/appointments
/doctors
/patients
The following are required:
- Add a way to keep track of a patient's ailment and a doctor's specialty.
- Add a way to book appointments for treatment that match doctors to patients
ensuring that:
a. the doctor's address is within 10 miles of the patient's
b. the doctor's specialty is appropriate for the patient's injury
c. these appointments are scheduled at least 3 days in the future.
d. an email is sent to both the doctor and the patient when the appointment
is scheduled with the appointment details including:
- doctor's name and address
- patient's name
- time and date of appointment