Bug 830 - AE system generates multiple tickets for one user.
Summary: AE system generates multiple tickets for one user.
Status: CONFIRMED
Alias: None
Product: Hospital System
Classification: Unclassified
Component: AE System (show other bugs)
Version: beta release
Hardware: PC Windows
: Low minor
Assignee: klhwong3-c
URL: N/A
Depends on:
Blocks:
 
Reported: 2023-12-10 00:30 HKT by hongjlee2-c
Modified: 2023-12-10 00:30 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.