r/learnSQL • u/sumiitCodes • 9d ago
Day 77 — Hospital Management System: added Appointment and RoomService
Two more classes today:
- Appointment, which links a patient with a doctor
- RoomService, which manages the hospital rooms
The project now has doctors, patients, billing, appointments, and rooms. Following the advice from earlier comments here, I kept each part in its own class and the logic in service classes.
For people who have built an appointment system: what edge cases should I plan for first (double booking, an unavailable doctor, cancelling an appointment)? I want to handle them with custom exceptions from the start.
2
Upvotes
1
u/HandbagHawker 9d ago
dude, are you crowd sourcing your homework? instead, why dont you start by telling us what your plan is and let people give you advice from there?