0% found this document useful (0 votes)
37 views18 pages

Hospital Management

This document describes the implementation of a hospital management system using a circular queue data structure in Java. Key aspects include: 1. The system uses arrays to store patient details like name, ID, address, disease, and date. 2. Methods like enqueue(), deque(), display() are used to add/remove patients from the circular queue and display patient details. 3. Enqueue adds a patient to the first available index of the circular queue by incrementing the rear pointer. 4. Display prints the patient details by traversing from front to rear or rear to front based on their positions in the queue.

Uploaded by

B. S Babu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views18 pages

Hospital Management

This document describes the implementation of a hospital management system using a circular queue data structure in Java. Key aspects include: 1. The system uses arrays to store patient details like name, ID, address, disease, and date. 2. Methods like enqueue(), deque(), display() are used to add/remove patients from the circular queue and display patient details. 3. Enqueue adds a patient to the first available index of the circular queue by incrementing the rear pointer. 4. Display prints the patient details by traversing from front to rear or rear to front based on their positions in the queue.

Uploaded by

B. S Babu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

K L UNIVERSITY

FRESHMAN ENGINEERING DEPARTMENT


A Project Based Lab Report
On
HOSPITAL MANAGEMENT

SUBMITTED BY:
I.D NUMBER NAME

190040517 Anudeep.T

190031481 Phani Dheeraj.S

190031812 Yaswanth.Y

190030175 Balaji

UNDER THE ESTEEMED GUIDANCE OF

Dr. Naveen Kumar

ASST.PROFESSOR

KL UNIVERSITY
Green fields, Vaddeswaram – 522 502
Guntur Dt., AP, India.
DEPARTMENT OF BASIC ENGINEERING SCIENCES

CERTIFICATE

This is to certify that the project based laboratory report entitled


“HOSPITAL MANAGEMENT” submitted by Mr./Ms. T.Anudeep , S.phani
Dheeraj , Y.Yaswanth , Balaji bearing Regd. No.190040517 ,190031481,
190031812, 190030175 to the Department of Basic Engineering Sciences, KL
University in partial fulfillment of the requirements for the completion of a
project in “Data Structure– 19SC1202 ”course in I B Tech II Semester, is a
bonafide record of the work carried out by him/her under my supervision during
the academic year 2019-20.

PROJECT SUPERVISOR HEAD OF THE DEPARTMENT

Dr.Naveen Kumar Dr. D.HARITHA


ACKNOWLEDGEMENTS

It is great pleasure for me to express my gratitude to our honorable


President Sri. Koneru Satyanarayana, for giving the opportunity and platform
with facilities in accomplishing the project based laboratory report.

I express the sincere gratitude to our director Dr. A Jagadeesh for his
administration towards our academic growth.

I express sincere gratitude to our Coordinator and HOD-BES Dr. D.Haritha


for her leadership and constant motivation provided in successful completion of
our academic semester. I record it as my privilege to deeply thank for providing
us the efficient faculty and facilities to make our ideas into reality.

I express my sincere thanks to our project supervisor Dr.Naveen Kumar


for his/her novel association of ideas, encouragement, appreciation and
intellectual zeal which motivated us to venture this project successfully.

Finally, it is pleased to acknowledge the indebtedness to all those who


devoted themselves directly or indirectly to make this project report success.

190040517 T.ANUDEEP

190031481 S.PHANI DHEERAJ

190031812 Y.YASWANTH

190030175 BALAJI
ABSTRACT

Hospitals currently use a manual system for the management and maintenance
of critical information. The current system requires numerous paper forms, with
data stores spread throughout the hospital management infrastructure. Often
information (on forms) is incomplete, or does not follow management
standards.

Forms are often lost in transit between departments requiring a comprehensive


auditing process to ensure that no vital information is lost. Multiple copies of
the same information exist in the hospital and may lead to inconsistencies in
data in various data stores. A significant part of the operation of any hospital
involves the acquisition, management and timely retrieval of great volumes of
information.

This information typically involves; patient personal information and medical


history, staff information, room and ward scheduling, staff scheduling, operating
theater scheduling and various facilities waiting lists. All of this information must
be managed in an efficient and cost wise fashion so that an institution's
resources may be effectively utilized HMS will automate the management of the
hospital making it more efficient and error free.

It aims at standardizing data, consolidating data ensuring data integrity and


reducing inconsistencies.
INDEX

S.NO TITLE PAGE NO

1 Introduction 6

2 Aim of the Project 7

3 Software & Hardware Details 8

4 Implementation 9-16

5 Output and screen shot 17

6 Conclusion 18
INTRODUCTION
The project Hospital Management system includes registration of patients,
storing their details into the system, and also computerized billing in the
pharmacy, and labs. The software has the facility to give a unique id for every
patient and stores the details of every patient and the staff automatically. 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
Hospital Management System can be entered using a username and password.
It is accessible either by an administrator or receptionist. Only they can add data
into the database. The data can be retrieved easily. The interface is very user-
friendly.
The data are well protected for personal use and makes the data processing very
fast. The purpose of the project entitled as “HOSPITAL MANAGEMENT SYSTEM”
is to computerize the Front Office Management of Hospital to develop software
which is user friendly, simple, fast, and cost – effective. It deals with the
collection of patient’s information, diagnosis details, etc. Traditionally, it was
done manually. The main function of the system is to 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
CRT screen. A form is a major part of Visual Basic application, which allows the
user to enter the data as well as view the result.
Circular Queue is a linear data structure in which the operations are performed
based on FIFO (First In First Out) principle and the last position is connected back
to the first position to make a circle. It is also called ‘Ring Buffer’.
AIM

The main aim of our project is to provide a paper-less hospital up to 90%. It


also aims at providing low-cost reliable automation of the existing systems.
The system also provides excellent security of data at every level of user-
system interaction and also provides robust & reliable storage and backup
facilities.

Hospital management is a field which is related to management, health


care systems, leadership, hospital networks and administration of hospitals.
This study provides sufficient skills and knowledge on administrative operations
of clinical and service departments
SYSTEM REQUIREMENTS

 SOFTWARE REQUIREMENTS:
The major software requirements of the project are as follows:
Language : JAVA
Operating system:Windows Xp or later.

 HARDWARE REQUIREMENTS:

The hardware requirements that map towards the software are as follows:

RAM : 8GB

Processor : INTEL I5 CORE 8THGEN


IMPLEMENTATION
package Hospital;

import java.util.*;

public class Hospital

static int size=10;

static int patientid[]=new int [size];

static String fname[]=new String [size];

static String lname[]=new String [size];

static String date[]=new String [size];

static String adress[]=new String [size];

static String disease[]=new String [size];

static int f=-1;

static int r=-1;

static void enqueue(int c1,String g1,String a1,String b1,String d1,String e1)

if(f==0 && r==size-1 || f==r+1)

System.out.println("Queue is over flow");

else if(f==-1 && r==-1)

f=0;
r=0;

fname[r]=a1;

lname[r]=b1;

patientid[r]=c1;

adress[r]=d1;

disease[r]=e1;

date[r]=g1;

else if(f!=0 && r==size-1)

r=0;

fname[r]=a1;

lname[r]=b1;

patientid[r]=c1;

adress[r]=d1;

disease[r]=e1;

date[r]=g1;

else

++r;

fname[r]=a1;

lname[r]=b1;

patientid[r]=c1;

adress[r]=d1;

disease[r]=e1;
date[r]=g1;

static void deque()

if(f==-1)

System.out.println("Queue is under flow");

else if(f==r)

f=-1;

r=-1;

else if(f==size-1)

f=0;

else

f++;

static void display()

if(f==-1)

System.out.println("Queue is empty");

else if(r>=f)

for(int i=f;i<=r;i++)

System.out.println(fname[i]);
System.out.println(lname[i]);

System.out.println(patientid[i]);

System.out.println(adress[i]);

System.out.println(disease[i]);

System.out.println(date[i]);

else

for(int i=f;i<size;i++)

System.out.println(fname[i]);

System.out.println(lname[i]);

System.out.println(patientid[i]);

System.out.println(adress[i]);

System.out.println(disease[i]);

System.out.println(date[i]);

static void Search(int key)

if(f==-1)

System.out.println("Queue is empty");

else if(r>=f)

{
for(int i=f;i<=r;i++)

if(patientid[i]==key)

System.out.println("patient found");

else

System.out.println("patient not found");

else

for(int i=f;i<size;i++)

if(patientid[i]==key)

System.out.println("patient found");

else

System.out.println("patient not found");

}
}package Hospital;

import java.util.*;

public class Hospitaldemo

static Hospital obj=new Hospital();

public static void main(String args[])

Scanner sc=new Scanner(System.in);

boolean t=true;

while(t)

System.out.println(" **MENU** ");

System.out.println("1.Create");

System.out.println("2.Delete");

System.out.println("3.Display");

System.out.println("4.Search");

System.out.println("5.Exit");

System.out.println("Enter your choice");

int choice=sc.nextInt();

switch(choice)

case 1:

System.out.println("First name :-");

String a1=sc.next();

System.out.println("Last name :-");


String b1=sc.next();

System.out.println("Patient Id :-");

int c1=sc.nextInt();

System.out.println("Address :-");

String d1=sc.next();

System.out.println("Disease :-");

String e1=sc.next();

System.out.println("Date (dd-mm-yyyy) :-");

String g1=sc.next();

obj.enqueue(c1,g1,a1,b1,d1,e1);

break;

case 2:

obj.deque();

break;

case 3:

obj.display();

break;

case 4:

System.out.println("Enter the key");

int key=sc.nextInt();

obj.Search(key);

break;

default:System.exit(0);

break;

}
sc.close();

}
OUTPUTS

Screen Shots:
CONCLUSION

The project Hospital Management System (HMS) is for computerizing the


working in a hospital. The software takes care of all the requirements of an
average hospital and is capable to provide easy and effective storage of
information related to patients that come up to the hospital.

It generates test reports; provide prescription details including various tests,


dietadvice, and medicines prescribed to patient and doctor. It also provides
injection details and billing facility on the basis of patient’s status whether it is
anindoor or outdoor patient.

The system also provides the facility of backup as per the requirement .

You might also like