Bug 819

Summary: The Ticket treated from the AE system does not hold the doctor’s information.
Product: Hospital System Reporter: hongjlee2-c
Component: AE SystemAssignee: klhwong3-c
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: beta release   
Hardware: PC   
OS: Windows   
URL: N/A

Description hongjlee2-c 2023-12-08 21:26:08 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 “3. Check your sick history,” and then the information about illness, Medicine, and Doctor in charge should be displayed.

Actual Results:
The information about Doctor in charge is blank.

Expected Results:
The information about illness, Medicine, and Doctor in charge should be displayed. should be printed out.

Suggested Fix:
I checked the TicketPrinter.java and I think the doctor attribute of the ticket object is null. Try to use ticket.setDoctor() in AE.