Username must have both letters and numbers, min 8 like username1
password standard password qualification like Password@1
Http session needs to be created which hold login details and doesn’t logout till the user logouts.
session needs to hold patient details so that if we add document , it needs to be stored in database for
particular patient and needs to retrieve the document too.
if the user clicks on back to previous page in patient details page, it needs to go to dashboard where
user can search patients.
Try these things bro till where it is possible.
manadatory is session usage for this
if the user clicks on back to previous page in patient details page, it needs to go to dashboard where
user can search patients.
And document part please give an idea I will work on it if it doesn’t work then we will discuss.
SQL code:
INSERT INTO patient (id, patient_name, age, gender, surgery, medical_history,
treatment_date,assigned_doctor)
VALUES
( 101,'Akhil', 30, 'Male', 'Appendectomy', 'No significant medical history.', '2023-08-15','Dr. Ashok'),
( 102,'Ashok', 30, 'Male', 'Appendectomy', 'No significant medical history.', '2023-08-15','Dr. Ashok'),
(103,'Priya', 25, 'Female', 'Knee Replacement', 'Asthma diagnosed in childhood.', '2023-09-10','Dr.
Hemanth'),
(104,'Priya', 45, 'Female', NULL, 'Diabetes Type II.', '2023-07-22','Dr. Ashok'),
(105,'Mahesh', 50, 'Male', 'Hip Replacement', 'Previous fracture in left arm.', '2023-05-18','Dr.Akhil');
commit;
use “/createHospital” in hospital controller for creating hospital login details and make sure they meet
the given validations.
Username must have both letters and numbers, min 8 like username1
password standard password qualification like Password@1