0% found this document useful (0 votes)
27 views

Java Micro-Project

Uploaded by

karpearyan939
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Java Micro-Project

Uploaded by

karpearyan939
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Project Report

On
“HOSPITAL MANAGEMENT SYSTEM”
Submitted to
Amrutvahini Polytechnic, Sangamner
Department of Information Technology
In partial fulfilment of the requirement for the diploma in
Information Technology
Submitted By
38. Anap Prathamesh Rajesh 2100800862
40. Barbade Jagrutee Santosh 2100800864
52. Ghodekar Sujal Santosh 2100800918
Under The Guidance Of
Prof. SARIKA KADLAG

Amrutvahini Polytechnic, Sangamner


(Approved by AICTE, NEW DELHI and affiliated To MSBTE) 2022-2023

Amrutvahini Polytechnic, Sangamner


Department of Information Technology
CERTIFICATE
This is to that the project report entitled,
“Report on HOSPITAL MANAGEMENT SYSYTEM”
It is benefited work carrier out by,
38. Anap Prathamesh Rajesh 2100800862
40. Brabade Jagrutee Santosh 2100800864
52. Ghodekar Sujal Santosh 2100800918

In partial fulfilment of the requirement for the diploma in


Information Technology
During the academic year 2022-2023

Prof. SARIKA KADLAG Prof.Chaudhari N.K


(Project Guide) (H.O.D) IT
ACKNOWLEDGEMENT

We have taken lots of efforts in this project. However, it would have been possible without
the kind support and help of many individuals and organization. We would to kind to extend
our sincere thanks to all of them.
First and for most we want to thanks Prof. Chaudhari N.K. H.O.D (Information Technology)
Amrutvahini Polytechnic
Sangamner for giving us an opportunity to work on this project.
We are highly indebted to Prof. SARIKA KADLAG (Project Guide) for his guidance and
constant supervision as well as for providing necessary information regarding the project and
also for his support in the project.
We would like to express our gratitude towards our parents and members of Information
Technology department for their kind
Co-operation and encouragement which helps us in completion of this micro project.
Our thanks and appreciations also go to our colleagues in developing the micro-project and
people who have willingly helped us with their abilities.

38. Anap Prathamesh Rajesh 2100800862


40. Barbade Jagrutee Santosh 2100800864
52. Ghodekar Sujal Santosh 2100800918
INDEX

Sr.no Contents

1. Rationale

2. Aims and Benefits

3. Course Outcomes

4. Literature Review

5. Actual Methodology Followed

6. Conclusion

7. References

8. Actual resources used

9. Skill developed/learning outcomes of the micro-project


MICROPROJECT
Report on hospital management system
1. RATIONALE :
Hospital Management System improves the quality control on the products and services of
the hospital. Improved Management Visibility: It also improves the management visibility of
hospital, all information, and data regarding the patient, doctor and medicine could be seen
by any department easily.

2. AIM :
To prepare report on Hospital management system.
BENEFITS:
• Less Paper Work.
• Costs Reduction.
• Improves Patient's Experience.
• Improve data security.
• Better Collaboration & Communication.
• Error-free administration.
• MIS reports.

3. COURSE OUTCOMES :
CI401.1 Implement programs using object-oriented methodology and basics of java.
CI401.2 Apply concept of inheritance for code reusability
CI401.3 Implement programs using multithreading and exception handling.
CI401.4 Execute programs using graphics and applets.
CI401.5 Use concept of file handling I/O and file streams.

4. Literature Review :
One of the major challenges existing hospital management systems face is around
operational efficiency and wait times between different processes, departments and
persons. This paper highlights such limitations of existing systems and proposes a RFID
(Radio Frequency ID) and wireless sensor based, location and information management
framework that facilitates real time tracking of hospital assets, personnel and patients as
they move through pre-set procedures as part of daily activities of the hospitals. The
system covers the visual simulation and providing ability to analyse the ongoing
operations so they can be corrected to achieve increased process efficiency
and service levels.

5. Actual Methodology :
• Introduction :
Human Body is a very complex and sophisticated structure and comprises of millions of
functions. All these complicated functions have been understood by man him, part-by-part
their research and experiments. As science and technology progressed, medicine became
an integral part of the research. Gradually, medical science became an entirely new branch
of science. As of today, the Health Sector comprises of Medical institutions i.e. Hospitals,
HOSPITALs etc. research and development institutions and medical colleges. Thus the
Health sector aims at providing the best medical facilities to the common man. Still being
a developing nation India has seen a tremendous growth of the Health sector in the field of
research as well as in the field of development of numerous large and small scale Hospital
institutions still lacking in inter-structure facilities. Government of India has still aimed at
providing medical facilities by establishing hospital. The basic working of various hospitals
in India is still on paper as compared to hospitals in European countries where computers
have been put in to assist the hospital personals their work. The concept of automation of
the administration and management of hospital is now being implemented in India also,
with large hospitals like APPOLO and AIIMS in Delhi, ESCORTS in Chennai, having
automated their existing system.

• Need of Hospital Management :


This project designes the given proposed system in the JSP to automate the process of
day to day activities of Hospital like Room activities, Admission of New Patient,
Discharge of Patient, Assign a Doctor, and finally compute the bill etc., online facilities
to the multiple users etc.
a) The complete set of rules & procedures related to Hospital’s day to day activities and
generating report is called “HOSPITALMANAGEMENT SYSTEM”. This project
gives a brief idea regarding automated Hospital activities.
b) The following steps that give the detailed information of the need of proposed system
are:
Performance: During past several decades, the hospital management system is
supposed to maintain manual handling of all the hospital daily activities. The manual
Handling of the record is time consuming and highly prone to error. To improve the
performance of the hospital management system, the computerized hospital
management system is to be undertaken. The computerized hospital project is fully
computerized and user friendly even that any of the hospital’s members can see the
patient’s report and the doctor’s report.
Efficiency: The basic need of the project is efficiency. The project should be efficient
so that whenever a new patient is admitted, and automatically a bed is assigned and also
a doctor is assigned to the patient according to the patient’s disease. And if any patient
is getting discharged, the bed assigned to him/her should automatically free in the
computer.
Control: The complete control of the project is under the hands of authorized person
who has the password to access this project and illegal access is not supposed to deal
with. All the control is under the administrator and the other members have the rights
to just see the records not to change any transaction or entry.
Security: Security is the main criteria for the proposed system. Since illegal access may
corrupt the database and it will affect not only the hospital but also it also affects the
patient’s life. So security has to be given in this project.
➢ IMPLEMENTED JAVA CONCEPTS: -

The given code implements several Java concepts, including:


→ Inheritance: the programmer class extends the employee class, inheriting all its
attributes and methods.
→ Switch Case: Switch cases are used to select specific condition from multiple condition.
→ Encapsulation: the class's attributes are private, and their values are accessed and
modified using public methods.
→ Exception handling: try-catch blocks are used to handle exceptions that may occur
during input reading.
→ Input/output: the java.util.* and java.io.* packages are imported to support
input/output operations, such as reading input from the console and printing output to
the console.
→ Control statements: if statements are used to check whether the salary is less than 500
or not.
• PROGRAM CODE :
import java.io.*;
import java.util.*;
import java.util.Calendar;
class MyException extends Exception
{
MyException(String str)
{
super(str);
}
}
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();
try
{
if(salary<500)
{

throw new MyException("salary must be more than 500");


}
}
catch(MyException e)
{
System.out.println(e);
}
}
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);
StoreData();

}
}
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 prath
{
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.Doctor 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();
}
}
}

• PROGRAM OUTPUT :
6. Conclusion :
Since the Hospital Management System is essential for maintaining detail about the
Doctor, Patient, Hospital staff etc. we understand that by using of Hospital Management
System project the work became very easy and we save lot of time. Hospital
administrators would be able to significantly improve the operational control and thus
streamline operations. This would enable to improve the response time to the demands of
patient care because it automates the process of collecting, collating and retrieving patient
information. Accounting sometimes becomes awfully pathetic and complex. This product
will eliminate any such complexity.
7. REFERANCES :
https://en.wikipedia.org/wiki/Hospital
https://en.wikipedia.org/wiki/Hospital_information_system
https://artoftesting.com/hospitalmanagement

8. ACTUAL RESOURCES USED :

Sr. no. Name of resources Specification Quantity Remark

1 Computer system Windows 11 Processor 1 -


i5

2 Software Jdk1.7 1 -

9. SKILL DEVELOPED :
i. Critical Thinking
ii. Leadership
iii. Technical Skills: The system's users may develop technical skills related to the use of
the software or platform used to generate the hospital details

iv. Efficiency and Time Management: Using a hospital management system can improve
efficiency and save time compared to hospital management. Users of the system may
develop skills in time management and maximizing efficiency.

v. Inventory Management: The system can track medical supplies and equipment,
manage inventory levels, and provide alerts for low stock levels.
vi. Reporting and Analytics: The system can generate reports and provide analytics
on various aspects of the hospital's operations, including patient outcomes,
financial performance, and resource utilization.
vii. Scheduling and Time Management
viii. Technical Skill

SIGNATUR OF TEACHER
Prof .SARIKA KADLAG

You might also like