Exercise: Design a Smart Appointment System
Scenario
You are building a Smart Appointment Booking System for a healthcare startup. The system
should allow patients to book, reschedule, and cancel appointments with doctors.
Tasks
1. Requirement Analysis (20 marks)
Write functional and non-functional requirements.
2. Use Case Diagram (20 marks)
Draw a Use Case Diagram.
3. Class Design (30 marks)
Design core classes.
Minimum expected classes:
• User
• Patient
• Doctor
• Appointment
• Schedule
Include:
• Attributes
• Methods
• Relationships (inheritance, association)
4. Sequence Diagram (30 marks)
Draw a sequence diagram for:
“Booking an Appointment”
Steps to consider:
1. Patient selects doctor
2. System checks availability
3. Slot is reserved
4. Confirmation is sent