This is a terminal-based hospital management system that facilitates efficient patient and staff management through command-line interaction.
Clone this project to your local system
https://github.com/lakshanJKL/Hospital-Management-System.git
Or Download and extract the zip file.
Select number 1, Patient Management
Select number 2, Doctor Management
Select number 3, Appointment Management
In this step, appointment ID will be automatically generated and you can proceed by providing Doctor and Patient ID
public static void appointmentgenerateid() {
Random rand = new Random();
int apmnt;
for (apmnt = 0; apmnt < appointment.length; apmnt++) {
if (appointment[apmnt][0] == null) {
break;
}
}
if (apmnt < appointment.length) {
System.out.print("Appointment ID : "+resetclr);
String appoinmentId =light_purple+ "#" + ((rand.nextInt(1001)*2) + (rand.nextInt(1001)*2)+resetclr);
System.out.println(appoinmentId);
appointment[apmnt][0] = appoinmentId;
}
}
Select number 4, All appointments by doctor id
Select number 5, Exit