The following Use Case Template, as shown in Table 1, describes the Patient Appointment System for a particular hospital.
Table 1
Use Case Template: "Patient Appointment System"
Use Case Name: Patient Appointment System
Use Case: Patient makes an online appointment for doctor's consultation and treatment.
Actor: Patient, Receptionist, Doctor
Pre-conditions: Patient has registered to use the online system.
1. Get patient information
2. Check patient details
2.1 If new patient, then create a new patient
3. Get appointment request details
3.1 To make a new appointment, create a new appointment
3.2 To change, change appointment
3.3 To cancel, cancel the appointment
4. Check appointment slot
4.1 If a slot is found, go to 5 Basic Flow
4.2 If slot is not found, take an alternative date/time
4.2.1 If an alternative date/time is provided, repeat step 4
5. Schedule appointment
6. When the patient arrives, get appointment details
6.1 If it is a new patient, update patient details
7. Obtain treatment
8. Make payment (Show two activities - Obtain treatment and Make payment as parallel events.)
Post-conditions: Patient has received treatment from the doctor.
Alternate Flows: No alternative date/time found (alternative stop states), Patient cancelled the appointment, Patient absent from the scheduled appointment.