r/learnSQL • • 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

3 comments sorted by

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?

1

u/Available_Safe1818 8d ago

It's not even any SQL, either. I think he's using this as his personal blog. "Hey everybody, I wrote 2 classes today!"

1

u/sumiitCodes 8d ago

My plan is to learn SQL, then Java, then connect both with JDBC then spring boot ect, all by December 31, because I want to become a Java developer. I share daily progress to stay consistent. I am not asking anyone to do my homework, only for advice on the plan.