Skip to content

Git repo for a Terminal-based Hospital Management System, facilitating efficient patient and staff management through command-line interactions

Notifications You must be signed in to change notification settings

lakshanJKL/Hospital-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HOSPITAL MANAGEMENT SYSTEM

This is a terminal-based hospital management system that facilitates efficient patient and staff management through command-line interaction.

Follow the steps below to use this system

Step 1

Clone this project to your local system

https://github.com/lakshanJKL/Hospital-Management-System.git

Or Download and extract the zip file.

Running - Open the HMS.java file with IDE or CMD

Step 2

Select number 1, Patient Management

Screenshot 2024-01-18 151234

You can perform CRUD (Create, Read, Update, Delete) operation on patients

Screenshot 2024-01-18 154821

Step 3

Select number 2, Doctor Management

you can perform CRUD (Create, Read, Update, Delete) operation on doctors

image

Step 4

Select number 3, Appointment Management

In this step, appointment ID will be automatically generated and you can proceed by providing Doctor and Patient ID

image

The following Java method is used to generate the id automatically
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;
        }
    }

Step 5

Select number 4, All appointments by doctor id

Enter the doctor's ID and you will get a list of appointments

image

Step 6

Select number 5, Exit

Stop running this program

About

Git repo for a Terminal-based Hospital Management System, facilitating efficient patient and staff management through command-line interactions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages