Challenge

Project - Design a Hospital Management system

Introduction of heath care system

Health care management system is a web application developed for hospitals to manage staff data and patients data effectively. the main aim of developing “HEALTH CARE MANAGEMENT SYSTEM” is to computerize the Front Office Management of Hospital. Hospital Management System is designed for multi-specialty hospitals, to cover a wide range of hospital administration and management processes. The project Hospital Management system includes registration of patients, storing their details into the system, and also computerized billing in the pharmacy, and labs. Healthcare is a field in which accurate record keeping and communication are critical. The software has the facility to give a unique id for every patient and stores the details of every patient and the staff automatically. With the increase of demand in hospitals, we need effective data management system for handling patient’s data, staff data and treatment details in an effective way. It deals with the collection of patient’s information, diagnosis details, etc. It includes a search facility to know the current status of each room. User can search availability of a doctor and the details of a patient using the id.

The main intention of introducing this system is to reduce the manual work at Health center counters. Quicker processing of receipt would mean better service to the patients . It would also help in the complexity of maintaining the records manually and thus less time is wasted on rework. The system is used to enter the patient details and to enter the details about the health center and the details about the in-patient and out-patient in detail and about the reports of the patients . User can login into the The Hospital Management System using a username and password. To develop a Health Center Management system, we take care of patient registration, drug information and concerns such as drug inquiries and complaints. It is accessible either by an administrator or receptionist. Only they can add data into the database. Proper maintenance of the drug information timely dispatching of the drugs from the main stores to the pharmacy and also maintenance of daily dispatching of the drugs to the out patients from the pharmacy to the out patients . The main function of the system is register and store patient details and doctor details and retrieve these details as and when required, and also to manipulate these details meaningfully System input contains patient details, diagnosis details, while system output is to get these details on to the screen. Every sort of task is performed by the system, such as registering different types of persons (i.e employees , students and others) ,enquiries, and complaints etc reducing much paper work and burden of file storage. Hospital Management System is powerful, flexible, and easy to use and is designed and developed to deliver real conceivable benefits to hospitals.

Hospital Management System enables you to develop your organization and improve its effectiveness and quality of work Also the latest information is right available for the officials and executives wherever they require. The system also facilitates the pharmacist to enquire about the drugs and about the stock to be ordered and about the expiry date . The data are well protected for personal use and makes the data processing very fast. Towards this achievement the computerization of the Health Center will help greatly in maintaining of proper information about the out patients who are eligible for the free services and the patients who are not eligible for the free services , drug information , patients records ,and daily dispatching of the drugs to various patients . The drug information and the specifications is also provided in this Health Center Management System.

CURRENT HEALTH CARE SYSTEM -

In current healthcare, information is conveyed from one healthcare professional to another through paper notes or personal communication. It is very difficult to analyze the usage percentage of hospital resources, Bed occupation Ratio, Administration, Laboratory information even in a single center. Then we can expect the complexity while integrating multi-specialty Medicare Centers. For example, in the United States, electronic communication between physicians and pharmacists is not typically employed but, rather, the physician writes a prescription on paper and gives it to the patient. The patient carries the prescription to the pharmacy, waits in line to give it to a pharmacist, and waits for the pharmacist to fill the prescription. Room Reservations, Doctor Appointment Schedules, Operation Schedules, and Medicine indentation information is very difficult to maintain and share among the different Medicare Centers. To improve this process, the prescriptions could be communicated electronically from the physician to the pharmacist, and the human computer interfaces for the physicians, nurses, pharmacists and other healthcare professionals could be voice enabled. The current manual system is slow laborious and error prone to computerize the same for quicker efficient results and customer satisfaction

Technologies Adopted by Physicians for Better Healthcare Practices

Following are some of the technologies that Indian medical physicians and hospitals are using to make the healthcare system more efficient:

Telemedicine

Telemedicine refers to the concept of providing medical services remotely to patients. Using tech devices, videos, emails, and smartphones, communication is established between the patients and the doctors. The patient then explains his medical situation or problem to the doctor, and the doctor diagnoses and treats the patient accordingly while sitting at an external location.

However, if any tests are required, the doctor will prescribe them to the patient. The patient can either get them done at their location and upload the reports on a co-shared online platform or go to the hospital itself for the prescribed tests. This concept of remotely treating the patients without the need for in-person visits to clinics is becoming extremely popular. It helps provide medical accessibility at different remote locations of the country.

Hospital Management System

A hospital management system (HMS) is a healthcare software used for streamlining the numerous activities of the hospital from billing to inventory and making them paperless. Traditionally, all the hospital operations had to be conducted manually, which took a vast amount of time and effort. However, with HMS, most of the operations are now automated, which results in higher workflow efficiency and improved patient experience.

A good hospital management software is efficient in managing the following operations:

  1. Appointment Management
  2. Staff Management
  3. Patient Management
  4. Facility Management
  5. Supply Management
  6. Laboratory Management
  7. Report Management
  8. Financial Management
  9. Inventory Management
  10. Support Management

Electronic Health Records

EHR is software that helps to consolidate a patient’s medical history and data to a digital format. The patient records are updated in the system so that they can be accessed in real-time by any authorized users. Typically EHR consists of medical history, allergies, medications, radiology images, treatment plans, and laboratory results of the patient.

Different departments of the hospital can access EHR records. Hence, when required by the physician, they will just open their system, enter the patient ID and access the information they want instead of waiting for files to manually come to them through non-digital mediums. Some of the benefits of EHR are:

  1. Enhanced quality of care.
  2. Accuracy in patient information.
  3. Increased interoperability.
  4. Higher efficiency.
  5. Increase in the revenue of hospitals.
  6. Better data security.

Digital Imaging and Communication

DICOM is an international standard protocol to communicate and transmit medical images and data. Its goal is to ensure higher interoperability of systems used to produce, share, store, send, display, process, retrieve, print medical images, and manage related workflows. With evolving technologies, the need for medical imaging has extensively grown.

A system such as DICOM will highly enhance the imaging system by standardizing a common method to transfer images and other crucial data such as CT scans, X-RAYs, etc., between different vendors. This will be useful in easy sharing and accessing imaging reports among different physicians and hospitals and will finally result in improved patient care.

CathLab Software

Cath lab operations and reporting are some of the most complex tasks of a healthcare system. Generating precise reports for the tests conducted are immensely important as it determines how efficiently the physician will diagnose a patient’s issue. Traditional cardiovascular information systems (CVIS) used in cath labs earlier had many shortcomings. They relied on variable content and could not produce reliable results as most of the time, the data used to get corrupt and become useless.

Now with cath lab software, the results obtained are more reliable. Besides, the software is efficient in successfully conducting and managing several cath lab operations with ease. A good cath lab healthcare software must have the following characteristics:

  1. Rich configurability with high data integrity.
  2. Ability to conduct clinical data analysis for better reporting and results generation.
  3. High interoperability to avoid data duplication.
  4. Set of coded algorithms and data to help medical staff with consistent cross-checks, reminders, and logical analysis to obtain the best results for the patient.

Where to Begin Your Search to Avail these High-End Healthcare Softwares?

Healthcare tech in India is forwarding ahead at a significant velocity and there are various medical tech organizations that have developed healthcare software for all kinds of medical needs. SoftClinic is one of the esteemed organizations that provides end-to-end clinic software solutions for healthcare management which covers modules such as laboratory, HR, pharmacy, accounting, and inventory management. Just tell your hospital’s requirements, and their tech-savvy experts will provide you with an optimal IT solution according to your needs.

Wrapping Up

All the healthcare software mentioned above are essentially designed to make the healthcare operations streamlined for the hospitals and the services accessible to the patients. Though there are still many challenges, the government’s acknowledgment regarding the necessity of technology to improve healthcare services is a big step forward for the progress of the Indian healthcare system. Hence, every medical organization must step ahead and join this movement by leveraging these technologies to provide better medical services for their patients and inherently grow as an organization.

5 Best Hospital Management Software of 2022

1. SoftClinic Hospital Software:

Website – https://www.softclinicsoftware.com/

Key Features –

  • Online appointment system
  • Mobile app access to physicians
  • HIPAA compliant cloud backup
  • Fingerprint lock
  • Barcoded reporting system
  • Automatic notification and SMS system
  • Advance data analysis and report
  • Online appointment booking
  • Online consultations
  • Access to real-time information

SoftClinic is one of the most comprehensive hospital software for physicians and hospitals. It can be optimized to suit the needs of various departments – Cardiology, Gynecology and OB, Orthopedic, Ophthalmology, General Surgery, Neurology, Pediatrics, Dental, and even Ayurvedic.

The hospital management software comes with the latest technology that has the power to change the management system fundamentally. Once you add on this software, there will be:

  1. Zero maintenance requirement
  2. You can access data from anywhere, anytime, and on any device.
  3. You are provided with multi-location support and a secure backup.
  4. You will be capable of going fully paperless and all of this with minimal cost of ownership.

It is designed specifically for clinical purposes, and its efficient system is already powering more than 20 thousand clinics globally. It can streamline and optimize the entire patient experience, including the frontend, backend, and caregiving process.

If you intend to start a new clinic or expand an existing clinic without disrupting the clinical experience, you should definitely adopt SoftClinic’s hospital management system in your daily practice.

2. Insta by Practo:

Website – https://www.instahms.com/

Key Features –

  • Enables you to gain insight and scale faster
  • Enhances patient experience with targeted solutions
  • Provide a comprehensive medical directory
  • Subscription-based health plans
  • Medicine delivery
  • Diagnostic labs through associate labs

This is one of the best hospital software that has been empowering healthcare providers since 2008. It is being used in 1250 centers with more than 18 thousand active users across 22 countries.

The team has mission is to make quality healthcare affordable and accessible to all world citizens. So we strive to empower our clients with HMS software that is the most accurate and comprehensive. It will help them make better healthcare decisions.

Their top priority is to ensure data privacy and security. The HMS software can be incorporated into any healthcare facility.

3. MocDoc Hospital Management Software:

Website – https://mocdoc.in/

Key Features –

  • Out-patient management
  • In-patient management
  • Doctor discovery
  • Pharmacy/stock management
  • Electronic medical records
  • Lab management

A user-friendly interface at an affordable rate enables a clinic or a hospital to go completely paperless smoothly. It is a cloud-based platform that can provide you with robust and secure solutions to your hospital management needs.

If you want a simple hospital management system that will work smoothly and efficiently with minimum input required from your side, you should consider this one of the hospital software. They have more than 500 clients nationwide that swear by this hospital management software.

4. Napier Healthcare:

Website – https://www.napierhealthcare.com/home/mynapier/

Key Features –

  • It is hosted on Microsoft Azure
  • Usage of SQL DB as a Service
  • Cloud-based HIS
  • Friendly user experience
  • Multi-facility collaboration
  • Access to real-time information

myNapier is one of the leading providers globally for innovative, technology-enabled solutions for healthcare providers. They have specifically designed products for hospitals, nursing homes, home care, occupational health and safety, and remote monitoring.

The hospital software unlocks the best of the cloud. It simplifies your processes, makes your organization efficient, and improves patient care outcomes. Napier Healthcare has more than 17 years of experience in providing these efficient hospital management systems. This is why they offer world-class solutions at affordable rates.

5. Medstar HIS:

Website – http://medstarhis.com/

Key Features –

  • Instant access for Doctors through tablets
  • Lab technicians can scan, track all the samples, and upload reports
  • Seamless Outpatient treatment
  • Access data through mobile on the go
  • An intelligent robot that fetches all the relevant information within nanoseconds

MedStar HIS is known for its ability to integrate all HIS systems and processes and sends it all through an intelligent information system that increases efficiency by helping the hospitals in decision making. It is advanced hospital software that works 100% on mobile compatible platforms, and it is also available on Android, iOS, and Windows platforms.

They offer premium features that are affordable even for small hospitals and private clinics. Doctors can easily view lab reports and even X-rays at the highest quality instantly. They can store all the relevant information on the software, including diagnosis and prescription, which comes in especially handy for Outpatient treatment.

OBJECTIVE OF PROPOSED HEALTH CARE MANAGEMENT SYSTEM

1) user can store information about the Patients that come to the hospital.

2) Information about Patients is done by just writing the Patients name, age and gender.

3) Generating bills. This system also help user in generating bills.

4) Bills are generated by recording price for each facility provided to Patient on a separate sheet and at last they all are summed up.

5) This system also store information related to diagnosis given to Patients.

6) Diagnosis information of patients is generally recorded on a document, which contains Patient information.

7) This system also store information of the Immunization provided to children/patients.

8) Immunization records of children are maintained in pre-formatted sheets, which are kept in a file.

9) Keeping information about various diseases and medicines available to cure them.

10) Information about various diseases is not kept as any document. Doctors themselves do this job by remembering various medicines.

MODULES OF HEALTH CARE MANAGEMENT SYSTEM

Admin module

User module (patient)

Doctor module

Nurse module

Pharmacist module

Laboratory module

Accountant module

Admin module:

Using this module admin can manage department of hospitals, user, doctor, nurse, pharmacist, laboratory accounts. Using this module he check appointment of doctors. This module also allow user to check transaction reports of patient payment. he can check Bed ,ward, cabin status in the hospital. blood bank report can also check through this module. he can also check medicine status of hospital stock.

Admin can also check following report using this module.

operation report

birth report

diagnosis report

death report

User module(patient):

Using this module patient can view appointment list and status with doctors. He can check prescription details and can view medication from doctor. patient can also check all doctor list of the hospital.

patient can view operation history and admit history through this module.

Doctor module:

Manage patient. account opening and updating

Create, manage appointment with patient

Create prescription for patient

Provide medication for patients

Issue for operation of patients and creates operation report

Manage own profile

Nurse module:

Manage patient. account opening and updating

Allot bed, ward, cabin for patients

Provide medication according to patient prescription

Manage blood bank and update status

Keep record of patient operation, baby born and death of patient

Manage own profile

Pharmacist module:

Maintain medicine

Keep records of hospitals stock medicines and status

Manage medicine categories

Watch prescription of patient

Provide medication to prescriptions

Laboratory module:

Watch prescription list

Upload diagnostic report

Preview of report files. like xray images, ct scan, mri reports

Manage own profile

Accountant module:

Create invoice for payment

Order invoice to patient

Take cash payment

Watch payment history of patients

Manage own profile

Health care management system project abstract: Health center system project is developed in java platform. Main aim of this project is to implement a online software. Corporate Medicare Management or E health care management system project in Java is a web application developed for (at least in the same national healthcare system). HEALTHCARE MANAGEMENT SYSTEM DATABASE PROJECT Of CIS 9340 Database Management Systems Fall 2000 By JMTZ Bee Healthcare, Inc. Business Computer Information Systems. Software Requirements Management System Project Source Code » Email Client Project Asp.Net Source Code And Project Report HEALTH CARE MANAGEMENT SYSTEM PROJECT REPORT.doc View Download

Hospital Management System Project in Java Explanation


This(Hospital Management System Project in Java with Source Code PDF) is very popular projects among students. In this project, I cover 1. DOCTOR, 2. PATIENT, 3. MEDICAL, 4. LAB, 5. FACILITY, 6. STAFF tables. Now take an example of Doctor table, I already saved some doctor details, when you select option 1. The doctor than 2 option will occur and 1.new entry or 2.doctor list Here you can save the details of New Doctor like Below.
  1. ID:
  2. Name:
  3. Specialization:
  4. Working Time:
  5. Qualification:

Simple Java Program for Hospital Management System


You can see the newly updated list of the doctors and by pressing 2 you can see those details Check Below.

Doctors List

ID Name Specialist Timing Qualification Room No.
21 Dr Ghanendra ENT 10-04 MBBS, MD 17
32 Dr Vikram Physician 10-04 MBBS, MD 45
17 Dr Rekha Child 10-04 BDM 8
33 Dr Pramod Artho 10-04 MBBS, MS 40
17 Dr Yadav Artho 08-12 MBBS 12

In this Hospital Management System Project in Java with Source Code PDF. You can also check the patient list or you can admit new patient same as Doctors List for that you have to go to the main menu and select patient than 2 option will occur 1. Add New Entry or 2. Existing Patients List and by pressing 2 you can check the patient details. These are the list of my friend and they are not patient they are absolutely fine(Just for Fun).

Patients List

ID Name Disease Gender Admit Status Age
12 Pankaj Cancer Male y 30
13 kuli Cold Male y 23
14 Samya Malaria Female n 45
15 Ravi Sugar Male y 25

You can find all the tables at the end.

How to Run Hospital Management System in Java


How to run this Hospital Management System Project in Java with Source Code PDF. First, create a folder in your desktop with any name then after save or download the code as hospitalmanagement.java. Now open a command prompt by pressing win+r simultaneously and go to the location of the hospitalmanagement.java by using the cd command.

CD desktop
CD “folder name”(without quotes)


Now run the below command. The first, command for compile the program and second one for run the program.

javac hospitalmanagement.java
java hospitalmanagement


after running the command their will be 7 .class(doctor.class, fecility.class,hospitalmanagement.class, lab.class, medical.class, patient.class, and staff.class) will be created.

Now your program is ready to work do whatever you want to perform operations. We also have some competitive websites solution in C, C++, and Java Programming languages. Free Download Java Projects and others here.

Hospital Management System in Java with Source Code


Below you can find the Hospital Management System Project in Java with Source Code PDF. This is a very important mini or we can say that the medium size of project for bachelors and masters student.
import java.io.*;
import java.util.*;
import java.util.Calendar;
/* Hospital Management System Project in Java with Source Code PDF Visit for more https://www.programmingwithbasics.com/ */
class staff
{
String sid, sname, desg, sex;
int salary;
void new_staff()
{
Scanner input = new Scanner(System.in);
System.out.print("id:-");
sid = input.nextLine();
System.out.print("name:-");
sname = input.nextLine();
System.out.print("desigination:-");
desg = input.nextLine();
System.out.print("sex:-");
sex = input.nextLine();
System.out.print("salary:-");
salary = input.nextInt();
}
void staff_info()
{
System.out.println(sid + "\t" + sname + "\t" + sex + "\t" + salary);
}
}
class doctor
{
String did, dname, specilist, appoint, doc_qual;
int droom;
void new_doctor()
{
Scanner input = new Scanner(System.in);
System.out.print("id:-");
did = input.nextLine();
System.out.print("name:-");
dname = input.nextLine();
System.out.print("specilization:-");
specilist = input.nextLine();
System.out.print("work time:-");
appoint = input.nextLine();
System.out.print("qualification:-");
doc_qual = input.nextLine();
System.out.print("room no.:-");
droom = input.nextInt();
}
void doctor_info()
{
System.out.println(did + "\t" + dname + " \t" + specilist + " \t" + appoint + " \t" + doc_qual + " \t" + droom);
}
}
class patient
{
String pid, pname, disease, sex, admit_status;
int age;
void new_patient()
{
Scanner input = new Scanner(System.in);
System.out.print("id:-");
pid = input.nextLine();
System.out.print("name:-");
pname = input.nextLine();
System.out.print("disease:-");
disease = input.nextLine();
System.out.print("sex:-");
sex = input.nextLine();
System.out.print("admit_status:-");
admit_status = input.nextLine();
System.out.print("age:-");
age = input.nextInt();
}
void patient_info()
{
System.out.println(pid + "\t" + pname + " \t" + disease + " \t" + sex + " \t" + admit_status + "\t" + age);
}
}
class medical
{
String med_name, med_comp, exp_date;
int med_cost, count;
void new_medi()
{
Scanner input = new Scanner(System.in);
System.out.print("name:-");
med_name = input.nextLine();
System.out.print("comp:-");
med_comp = input.nextLine();
System.out.print("exp_date:-");
exp_date = input.nextLine();
System.out.print("cost:-");
med_cost = input.nextInt();
System.out.print("no of unit:-");
count = input.nextInt();
}
void find_medi()
{
System.out.println(med_name + " \t" + med_comp + " \t" + exp_date + " \t" + med_cost);
}
}
class lab
{
String fecility;
int lab_cost;
void new_feci()
{
Scanner input = new Scanner(System.in);
System.out.print("fecility:-");
fecility = input.nextLine();
System.out.print("cost:-");
lab_cost = input.nextInt();
}
void feci_list()
{
System.out.println(fecility + "\t\t" + lab_cost);
}
}
class fecility //Sorry Facility but do not change the name
{
String fec_name;
void add_feci()
{
Scanner input = new Scanner(System.in);
System.out.print("fecility:-");
fec_name = input.nextLine();
}
void show_feci()
{
System.out.println(fec_name);
}
}
public class HospitalManagement
{
public static void main(String args[])
{
String months[] = {
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
};
Calendar calendar = Calendar.getInstance();
//System.out.println("--------------------------------------------------------------------------------");
int count1 = 4, count2 = 4, count3 = 4, count4 = 4, count5 = 4, count6 = 4;
System.out.println("\n--------------------------------------------------------------------------------");
System.out.println(" *** Welcome to Hospital Management System Project in Java ***");
System.out.println("--------------------------------------------------------------------------------");
System.out.print("Date: " + months[calendar.get(Calendar.MONTH)] + " " + calendar.get(Calendar.DATE) + " " + calendar.get(Calendar.YEAR));
System.out.println("\t\t\t\t\t\tTime: " + calendar.get(Calendar.HOUR) + ":" + calendar.get(Calendar.MINUTE) + ":" + calendar.get(Calendar.SECOND));
doctor[] d = new doctor[25];
patient[] p = new patient[100];
lab[] l = new lab[20];
fecility[] f = new fecility[20];
medical[] m = new medical[100];
staff[] s = new staff[100];
int i;
for (i = 0; i < 25; i++)
d[i] = new doctor();
for (i = 0; i < 100; i++)
p[i] = new patient();
for (i = 0; i < 20; i++)
l[i] = new lab();
for (i = 0; i < 20; i++)
f[i] = new fecility();
for (i = 0; i < 100; i++)
m[i] = new medical();
for (i = 0; i < 100; i++)
s[i] = new staff();

d[0].did = "21";
d[0].dname = "Dr.Ghanendra";
d[0].specilist = "ENT";
d[0].appoint = "5-11AM";
d[0].doc_qual = "MBBS,MD";
d[0].droom = 17;
d[1].did = "32";
d[1].dname = "Dr.Vikram";
d[1].specilist = "Physician";
d[1].appoint = "10-3AM";
d[1].doc_qual = "MBBS,MD";
d[1].droom = 45;
d[2].did = "17";
d[2].dname = "Dr.Rekha";
d[2].specilist = "Surgeon";
d[2].appoint = "8-2AM";
d[2].doc_qual = "BDM";
d[2].droom = 8;
d[3].did = "33";
d[3].dname = "Dr.Pramod";
d[3].specilist = "Artho";
d[3].appoint = "10-4PM";
d[3].doc_qual = "MBBS,MS";
d[3].droom = 40;

p[0].pid = "12";
p[0].pname = "Pankaj";
p[0].disease = "Cancer";
p[0].sex = "Male";
p[0].admit_status = "y";
p[0].age = 30;
p[1].pid = "13";
p[1].pname = "Sumit";
p[1].disease = "Cold";
p[1].sex = "Male";
p[1].admit_status = "y";
p[1].age = 23;
p[2].pid = "14";
p[2].pname = "Alok";
p[2].disease = "Maleriya";
p[2].sex = "Male";
p[2].admit_status = "y";
p[2].age = 45;
p[3].pid = "15";
p[3].pname = "Ravi";
p[3].disease = "Diabetes";
p[3].sex = "Male";
p[3].admit_status = "y";
p[3].age = 25;

m[0].med_name = "Corex";
m[0].med_comp = "Cino pvt";
m[0].exp_date = "9-5-16";
m[0].med_cost = 55;
m[0].count = 8;
m[1].med_name = "Nytra";
m[1].med_comp = "Ace pvt";
m[1].exp_date = "4-4-15";
m[1].med_cost = 500;
m[1].count = 5;
m[2].med_name = "Brufa";
m[2].med_comp = "Reckitt";
m[2].exp_date = "12-7-17";
m[2].med_cost = 50;
m[2].count = 56;
m[3].med_name = "Pride";
m[3].med_comp = "DDF pvt";
m[3].exp_date = "12-4-12";
m[3].med_cost = 1100;
m[3].count = 100;

l[0].fecility = "X-ray ";
l[0].lab_cost = 800;
l[1].fecility = "CT Scan ";
l[1].lab_cost = 1200;
l[2].fecility = "OR Scan ";
l[2].lab_cost = 500;
l[3].fecility = "Blood Bank";
l[3].lab_cost = 50;

f[0].fec_name = "Ambulance";
f[1].fec_name = "Admit Facility ";
f[2].fec_name = "Canteen";
f[3].fec_name = "Emergency";

s[0].sid = "22";
s[0].sname = "Prakash";
s[0].desg = "Worker";
s[0].sex = "Male";
s[0].salary = 5000;
s[1].sid = "23";
s[1].sname = "Komal";
s[1].desg = "Nurse";
s[1].sex = "Female";
s[1].salary = 2000;
s[2].sid = "24";
s[2].sname = "Raju";
s[2].desg = "Worker";
s[2].sex = "Male";
s[2].salary = 5000;
s[3].sid = "25";
s[3].sname = "Rani";
s[3].desg = "Nurse";
s[3].sex = "Female";
s[3].salary = 20000;

Scanner input = new Scanner(System.in);
int choice, j, c1, status = 1, s1 = 1, s2 = 1, s3 = 1, s4 = 1, s5 = 1, s6 = 1;
while (status == 1)
{
System.out.println("\n MAIN MENU");
System.out.println("-----------------------------------------------------------------------------------");
System.out.println("1.Doctos 2. Patients 3.Medicines 4.Laboratories 5. Facilities 6. Staff ");
System.out.println("-----------------------------------------------------------------------------------");
choice = input.nextInt();
switch (choice)
{
case 1:
{
System.out.println("--------------------------------------------------------------------------------");
System.out.println(" **DOCTOR SECTION**");
System.out.println("--------------------------------------------------------------------------------");
s1 = 1;
while (s1 == 1)
{
System.out.println("1.Add New Entry\n2.Existing Doctors List");
c1 = input.nextInt();
switch (c1)
{
case 1:
{
d[count1].new_doctor();count1++;
break;
}
case 2:
{
System.out.println("--------------------------------------------------------------------------------");
System.out.println("id \t Name\t Specilist \t Timing \t Qualification \t Room No.");
System.out.println("--------------------------------------------------------------------------------");
for (j = 0; j < count1; j++)
{
d[j].doctor_info();
}
break;
}
}
System.out.println("\nReturn to Back Press 1 and for Main Menu Press 0");
s1 = input.nextInt();
}
break;
}
case 2:
{
System.out.println("--------------------------------------------------------------------------------");
System.out.println(" **PATIENT SECTION**");
System.out.println("--------------------------------------------------------------------------------");
s2 = 1;
while (s2 == 1)
{
System.out.println("1.Add New Entry\n2.Existing Patients List");
c1 = input.nextInt();
switch (c1)
{
case 1:
{
p[count2].new_patient();count2++;
break;
}
case 2:
{
System.out.println("--------------------------------------------------------------------------------");
System.out.println("id \t Name \t Disease \t Gender \t Admit Status \t Age");
System.out.println("--------------------------------------------------------------------------------");
for (j = 0; j < count2; j++) {
p[j].patient_info();
}
break;
}
}
System.out.println("\nReturn to Back Press 1 and for Main Menu Press 0");
s2 = input.nextInt();
}
break;
}
case 3:
{
s3 = 1;
System.out.println("--------------------------------------------------------------------------------");
System.out.println(" **MEDICINE SECTION**");
System.out.println("--------------------------------------------------------------------------------");
while (s3 == 1)
{
System.out.println("1.Add New Entry\n2. Existing Medicines List");
c1 = input.nextInt();
switch (c1)
{
case 1:
{
m[count3].new_medi();count3++;
break;
}
case 2:
{
System.out.println("--------------------------------------------------------------------------------");
System.out.println("Name \t Company \t Expiry Date \t Cost");
System.out.println("--------------------------------------------------------------------------------");
for (j = 0; j < count3; j++) {
m[j].find_medi();
}
break;
}
}
System.out.println("\nReturn to Back Press 1 and for Main Menu Press 0");
s3 = input.nextInt();
}
break;
}
case 4:
{
s4 = 1;
System.out.println("--------------------------------------------------------------------------------");
System.out.println(" **LABORATORY SECTION**");
System.out.println("--------------------------------------------------------------------------------");
while (s4 == 1)
{
System.out.println("1.Add New Entry \n2.Existing Laboratories List");
c1 = input.nextInt();
switch (c1)
{
case 1:
{
l[count4].new_feci();count4++;
break;
}
case 2:
{
System.out.println("--------------------------------------------------------------------------------");
System.out.println("Fecilities\t\t Cost");
System.out.println("--------------------------------------------------------------------------------");
for (j = 0; j < count4; j++) {
l[j].feci_list();
}
break;
}
}
System.out.println("\nReturn to Back Press 1 and for Main Menu Press 0");
s4 = input.nextInt();
}
break;
}
case 5:
{
s5 = 1;
System.out.println("--------------------------------------------------------------------------------");
System.out.println(" **HOSPITAL FACILITY SECTION**");
System.out.println("--------------------------------------------------------------------------------");
while (s5 == 1)
{
System.out.println("1.Add New Facility\n2.Existing Fecilities List");
c1 = input.nextInt();
switch (c1)
{
case 1:
{
f[count5].add_feci();count5++;
break;
}
case 2:
{
System.out.println("--------------------------------------------------------------------------------");
System.out.println("Hospital Facility are:");
System.out.println("--------------------------------------------------------------------------------");
for (j = 0; j < count5; j++) {
f[j].show_feci();
}
break;
}
}
System.out.println("\nReturn to Back Press 1 and for Main Menu Press 0");
s5 = input.nextInt();
}
break;
}
case 6:
{
s6 = 1;
System.out.println("--------------------------------------------------------------------------------");
System.out.println(" **STAFF SECTION**");
System.out.println("--------------------------------------------------------------------------------");
while (s6 == 1)
{
String a = "nurse", b = "worker", c = "security";
System.out.println("1.Add New Entry \n2.Existing Nurses List\n3.Existing Workers List \n4.Existing Security List");
c1 = input.nextInt();
switch (c1)
{
case 1:
{
s[count6].new_staff();count6++;
break;
}
case 2:
{
System.out.println("--------------------------------------------------------------------------------");
System.out.println("id \t Name \t Gender \t Salary");
System.out.println("--------------------------------------------------------------------------------");
for (j = 0; j < count6; j++)
{
if (a.equals(s[j].desg))
s[j].staff_info();
}
break;
}
case 3:
{
System.out.println("--------------------------------------------------------------------------------");
System.out.println("id \t Name \t Gender \t Salary");
System.out.println("--------------------------------------------------------------------------------");
for (j = 0; j < count6; j++)
{
if (b.equals(s[j].desg))
s[j].staff_info();
}
break;
}
case 4:
{
System.out.println("--------------------------------------------------------------------------------");
System.out.println("id \t Name \t Gender \t Salary");
System.out.println("--------------------------------------------------------------------------------");
for (j = 0; j < count6; j++)
{
if (c.equals(s[j].desg))
s[j].staff_info();
}
break;
}
}
System.out.println("\nReturn to Back Press 1 and for Main Menu Press 0");
s6 = input.nextInt();
}
break;
}
default:
{
System.out.println(" You Have Enter Wrong Choice!!!");
}
}
System.out.println("\nReturn to MAIN MENU Press 1");
status = input.nextInt();
}
}

}

observation and result


Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.