Bug 798

Summary: Patient cannot be searched after creation
Product: 2023 CS3343 Group 20 System Reporter: mhlee64-c
Component: PatientAssignee: mhlee64-c
Status: RESOLVED FIXED    
Severity: major CC: hfwong56-c
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Windows   
Attachments: testcase for mentioned bug

Description mhlee64-c 2023-11-29 22:26:23 HKT
Created attachment 156 [details]
testcase for mentioned bug

After adding a new patient to the system, users of the system should be able to search the new patient, in order to perform action like viewing personal information or giving diagnosis, but new patient cannot be searched after creation.

----------------------------------------------------------------------------------
Welcome to CMS!
============================================== Login ===============================================
Please enter your staff ID: n
Please enter your password: n
============================================ Main Menu =============================================
Login as [Nurse] dummy Nurse | n | 
0.	Patient Mangement
1.	Appointment Management
2.	MedRecord Management
3.	Medicine Management
4.	Admin
5.	Logoff
Please select a function: 0
======================================== Patient Mangement =========================================
0.	View Patient
1.	Create Patient
2.	Edit Patient
Please select a function: 1
========================================== Create Patient ==========================================
Please enter the patient's details below
Name: John
HKID: Y123456A
Date of Birth (YYYY-MM-DD): 1999-01-01
Sex: M
Allergies: 
Patient Successfully Added!
-Press enter to go back to main menu-
============================================ Main Menu =============================================
Login as [Nurse] dummy Nurse | n | 
0.	Patient Mangement
1.	Appointment Management
2.	MedRecord Management
3.	Medicine Management
4.	Admin
5.	Logoff
Please select a function: 0
======================================== Patient Mangement =========================================
0.	View Patient
1.	Create Patient
2.	Edit Patient
Please select a function: 0
=========================================== View Patient ===========================================
Please enter the patient's HKID: Y123456A
============================================== ERROR ===============================================
exceptions.PatientNotFoundException: Patient(HKID: Y123456A) not found!