Bug 830

Summary: AE system generates multiple tickets for one user.
Product: Hospital System Reporter: hongjlee2-c
Component: AE SystemAssignee: klhwong3-c
Status: CONFIRMED ---    
Severity: minor    
Priority: Low    
Version: beta release   
Hardware: PC   
OS: Windows   
URL: N/A

Description hongjlee2-c 2023-12-10 00:30:39 HKT
Step To Reproduce:
1. Login.
2. Make sure to have at least one AE doctor. (You can do so using “admin aed [username]:[password]”) 
3. Input “2” to enter the AE system.
4. Input “1” to get a ticket and input any illness (e.g. “fever”)
5. Repeat steps 3 and 4.

Actual Results:
The AE system generates multiple tickets for the same user, causing the same user to be on the waiting list multiple times.

Expected Results:
The program should not allow the user to get multiple tickets.

Suggested Fix:
Create a boolean hasTicket() function in Patient.java and use it in the AE system to prevent this bug.