Bug 818 - The patient’s AE Ticket is not removed after seeing a doctor.
Summary: The patient’s AE Ticket is not removed after seeing a doctor.
Status: RESOLVED FIXED
Alias: None
Product: Hospital System
Classification: Unclassified
Component: AE System (show other bugs)
Version: beta release
Hardware: PC Windows
: Normal normal
Assignee: klhwong3-c
URL:
Depends on:
Blocks:
 
Reported: 2023-12-08 20:35 HKT by hongjlee2-c
Modified: 2023-12-08 21:28 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-08 20:35:58 HKT
Step To Reproduce:
1. Remove all AE patients in the queue. (You can use “admin clp” to do so)
2. Make sure to have at least one AE doctor for treatment. (You can add AE doctor using “admin aed [doctor_name]:[password]”)
3. Login and get the ticket using the “2. Take A&E treatment” function.
4. Use “5. See Doctor” to get treatment, and then “See Doctor.” will be printed out. 
5. Use “5. See Doctor” again.

Actual Results:
“See Doctor.” is printed out again.

Expected Results:
“You are not holding a ticket currently.” should be printed out.

Suggested Fix:
We have to make sure to remove the ticket from the patient after seeing a doctor. I think we can create a method removeTicket() in the patient class and call this in the AESeeDoctor class.