Bug 797 - Unable to search the newly added patient
Summary: Unable to search the newly added patient
Status: CONFIRMED
Alias: None
Product: Group 20 (2023)
Classification: Unclassified
Component: Services (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- normal
Assignee: mhlee64-c
URL:
Depends on:
Blocks:
 
Reported: 2023-11-28 23:18 HKT by mhlee64-c
Modified: 2023-11-28 23:18 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 mhlee64-c 2023-11-28 23:18:27 HKT
The problem is caused by misplacing inputted hkid and name in the patient constructor when a patient is created.
==================================================================================
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: A1234567
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: a1234567
============================================== ERROR ===============================================
exceptions.PatientNotFoundException: Patient(HKID: a1234567) not found!