WWW Programmingwithbasics Com 2017 11 Hospital Management System Project in HTML
WWW Programmingwithbasics Com 2017 11 Hospital Management System Project in HTML
Home Java Programs Projects Hospital Management System Project in Java | Free Code PDF
Create a mini Hospital Management System projects in Java with source code and
download a repo몭 PDF free. This mini-project should contain the doctor-patient table
with all records. for example Doctor name, Timinimng speciality, and availability.
Hospital Management projects should have all the necessary requirements and to full
몭ll, the needs create a java project for management sta몭 of the hospital also download
the code and repo몭 in free. Do you know This is the most impo몭ant and mostly asked
projects in schools and colleges?.
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.
659
S HA RE S
1 ID:
2 Name:
3 Specialization:
4 Working Time:
5 Quali몭cation:
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 1004 MBBS, MD 17
32 Dr Vikram Physician 1004 MBBS, MD 45
17 Dr Rekha Child 1004 BDM 8
33 Dr Pramod Artho 1004 MBBS, MS 40
17 Dr Yadav Artho 0812 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 몭ne(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
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 a몭er 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 몭rst, command for compile the program and
second one for run the program.
javac hospitalmanagement.java
java hospitalmanagement
Now your program is ready to work do whatever you want to pe몭orm operations. We
also have some competitive websites solution in C, C++, and Java Programming
languages. Free Download Java Projects and others here.
import java.io.*;
import java.util.*;
import java.util.Calendar;
/* Hospital Management System Project in Java with Source Code PDF Visit for m
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"
}
}
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" +
}
}
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
}
}
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
System.out.println("\n‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
System.out.println(" *** Welcome to Hospital Management Sys
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
System.out.print("Date: " + months[calendar.get(Calendar.MONTH)] + " "
System.out.println("\t\t\t\t\t\tTime: " + calendar.get(Calendar.HOUR)
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,
while (status == 1)
{
System.out.println("\n MAIN MEN
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
System.out.println("1.Doctos 2. Patients 3.Medicines 4.Laborato
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
choice = input.nextInt();
switch (choice)
{
case 1:
{
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
System.out.println(" **DOCTOR SEC
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
s1 = 1;
while (s1 == 1)
{
System.out.println("1.Add New Entry\n2.Existing Do
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 Speci
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
for (j = 0; j < count1; j++)
{
d[j].doctor_info();
}
break;
}
}
System.out.println("\nReturn to Back Press 1 and f
s1 = input.nextInt();
}
break;
}
case 2:
{
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
System.out.println(" **PATIENT SEC
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
s2 = 1;
while (s2 == 1)
{
System.out.println("1.Add New Entry\n2.Existing Pa
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 Dise
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
for (j = 0; j < count2; j++) {
p[j].patient_info();
}
break;
}
}
System.out.println("\nReturn to Back Press 1 and f
s2 = input.nextInt();
}
break;
}
case 3:
{
s3 = 1;
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
System.out.println(" **MEDICINE SE
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
while (s3 == 1)
{
System.out.println("1.Add New Entry\n2. Existing M
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
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
for (j = 0; j < count3; j++) {
m[j].find_medi();
}
break;
}
}
System.out.println("\nReturn to Back Press 1 and f
s3 = input.nextInt();
}
break;
}
case 4:
{
s4 = 1;
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
System.out.println(" **LABORATORY S
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
while (s4 == 1)
{
System.out.println("1.Add New Entry \n2.Existing L
c1 = input.nextInt();
switch (c1)
{
case 1:
{
l[count4].new_feci();count4++;
break;
}
case 2:
{
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
System.out.println("Fecilities\t\t Cos
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
for (j = 0; j < count4; j++) {
l[j].feci_list();
}
break;
}
}
System.out.println("\nReturn to Back Press 1 and f
s4 = input.nextInt();
}
break;
}
case 5:
{
s5 = 1;
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
System.out.println(" **HOSPITAL FACILITY SECT
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
while (s5 == 1)
{
System.out.println("1.Add New Facility\n2.Existing
c1 = input.nextInt();
switch (c1)
{
case 1:
{
f[count5].add_feci();count5++;
break;
}
case 2:
{
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
System.out.println("Hospital Facility
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
for (j = 0; j < count5; j++) {
f[j].show_feci();
}
break;
}
}
System.out.println("\nReturn to Back Press 1 and f
s5 = input.nextInt();
}
break;
}
case 6:
{
s6 = 1;
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
System.out.println(" **STAFF SEC
System.out.println("‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
while (s6 == 1)
{
String a = "nurse", b = "worker", c = "security";
System.out.println("1.Add New Entry \n2.Existing N
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 Gend
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 Gend
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 Gend
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 f
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();
}
}
}
At the end you can 몭nd that we have includes similar mini-projects just like this one
Hospital Management System Project in Java with Source Code PDF. So enjoy and
show your suppo몭 by sharing on your social media. Create this type of project you
need to have a knowledge of ASCII Code Table.
Related Posts
JAVA Project SMS (School Management C++ Program For HANGMAN ( GAME
System) Using Multiple Classes PROJECT ) With Source Code
How to use it: 1. Copy The Code Into #include #include #include #include
One Folder And Save As sms.java Your using namespace std; const int
Code Will Be Work 100% Here Is A Step MAX_TRIES=5; int le몭erFill (char, string,
By Step Explana… string&); int …
C++ Program for Casino Game: Number C++ Program For Student Repo몭 Card ( SRC
Guessing Program(GAME PROJECT) PROJECT ) With Source Code
63 Comments:
Reply
Replies
Thank you.
Reply
Unknown 13/08/2018, 21:09
How to run
Step
Reply
Replies
Follow this a몭icle How to Run Java Applets and Swing Using
Command Line
Reply
It's Working and I just want to know that who are the patient name.
Reply
Replies
Reply
Reply
Reply
Reply
GS o몭cial 11/10/2019,
16:25
Reply
Replies
Reply
Unknown 21/10/2019, 19:22
VERY HELPFULL
Reply
Replies
Thank You.
Reply
Unknown 30/12/2019,
16:34
Plz sir send me This Hospital management system project repo몭 using
uml diagram on below email
[email protected]
Reply
Replies
Unknown 15/12/2020,
14:04
Reply
Reply
Replies
Reply
Reply
Replies
Unknown 15/12/2020,
14:00
Reply
Reply
Replies
Reply
Unknown 12/07/2020,
16:50
Sir I need library management system similar to this. Please send if you
have got one.
Reply
[email protected] 14/07/2020, 11:30
Reply
Reply
Replies
Unknown 15/12/2020,
13:58
Reply
Reply
Sir kindly send me the program and output as well.. It will be a great help!!
��please
Reply
Sir please send me the program and ss of the output please... It will be a
great ὤplease!!
Reply
sir could you please send me the Hospital Management Repo몭 sir
plzzzzzzzz
send it to : swalihaki몭[email protected]
Reply
sir could you please send me the repo몭 of HOSPITAL MANAGEMENT plzzz
sir
Reply
Replies
Reply
Reply
SIR CAN U SEND THE ALGORITHM AND THE LIST OF VARIABLES USED IN
THIS PROGRAM
Reply
Reply
Reply
Bro can u send me copy of repo몭 which must includes the possible
questions of interviewer may ask so
That it can help me get job plz send it bro. @,,
[email protected]
Reply
Unknown 08/02/2021,
12:51
Reply
Reply
Unknown 15/04/2021,
20:41
i wrote the codding but this is not full code its not showing list below can
you help me please contact me
Reply
Reply
Reply
Unknown 21/04/2021, 23:12
Reply
Reply
Reply
Reply
Reply
Reply
Reply
Reply
sir could you send me a full source code of the above code
Reply
Reply
Reply
Unknown 16/08/2021,
18:41
Sir can you send the repo몭 of this project please sir. Here is my gmail:
[email protected]
Reply
Unknown 16/08/2021,
20:51
Reply
Unknown 16/08/2021,
20:51
Reply
Sir this content is great and much appreciated. It would be even more
helpful if you can send me a repo몭 on:
[email protected] Thankyou in advance.
Reply
Unknown 22/10/2021, 19:25
Reply
What do u use here for save the data. Data is not saved a몭er refreshing
the programme
Reply
Reply
Unknown 16/04/2022,
15:33
Reply
To leave a comment, click the button below to sign in with Google.
SIGN IN WITH GOOGLE
ADVERTISEMENT
POPULAR POSTS
Create an HTML 몭le to link to di몭erent html page which contains images,
tables.
C Program To Store Student Information Like (Name, Roll & Marks) Using
Structure
Structure
Create A Hospital Web Page With All The Required Menu And Information And
Registration And Login in Form.
Web Designing
in your inbox
instantly by Subscribing to us. So you will get email everytime we post something new
here
enter email id here...
SUBSCRIBE NOW