You are on page 1of 38

PROJECT Report

On

“HOSPITAL MANAGEMENT SYSTEM”


Submitted in the partial Fulfilment of Bachelor of

Science in information technology Application

To

UTTARANCHAL UNIVERSITY

Under The Supervision of Submitted By

Ms. Pratibha Pandey Aman Tomar

[Assistant Professor] Aditya Kamboj

BSc.-IT(2020-23)
ACKNOWLEDGEMENT
The most awaited moment of any endeavor is successful completion, but nothing
can be done successfully if done alone. Success is the outcome of contribution
and consistent help of various persons and we thank those ones who helped us in
successful completion of this project.

Primarily, we would like to Prof (Dr). Pradeep Suri, Director UIM for providing
a healthy and encouraging environment to study.

We profusely thankful to the department of Information technology, and our


guide HOD mam Prof (Dr). Sonal Sharma and our Project Coordinator Ms.
Pratibha Pandey, my parents. She has been generous enough to provide us an
opportunity and accepting our candidature for the most valuable guidance and
affordable treatment given to us at every stage to boost our morale.

Aman Tomar

Aditya Kamboj
DECLARATION

I hereby declare that the project report entitled HOSPITAL MANAGMENT


SYSTEM submitted by Aman Tomar & Aditya Kamboj to Uttaranchal Institute
of Management. The project was done under the guidance of Ms. Pratibha
Pandey. I further declare that the work reported in this project has not
been submitted and will not be submitted, either in part or in full, for the
award of any other degree or diploma in this university or any other
university or institute.

Aman Tomar

Aditya Kamboj
CERTIFICATE OF ORIGINALITY

This is to certify that Aman Tomar & Aditya Kamboj student of BSc.-IT
1st Semester, at Uttaranchal Institute of Management, Dehradun, has
completed the Project titled HOSPITAL MANAGEMENT SYESTEM using
Codeblocks v20.03,Eclipse IDE, Turbo c IDE and MySQL for the Batch (2020-
23)

[Ms. Pratibha Pandey]

[Assistant Professor]
TABLE OF CONTENTS
SNO. CONTENT PAGE NO.

i. Acknowledgment I

ii. Declaration II

iii. Certificate of Originality III

1. Introduction 1.

2. Objective 2.

3. Hardware and Software Used 3.

4. Main Features of the Project 4

5. scope of the project hospital management system 5.

6. Modules of hospital Management system 6.

7. About Hospital Management System C Project 7-8


1. add new patient record
2. search or edit patient record
3. List record of patients
4. Delete patient records
5. exit

8. Functionalities provided by Hospital Management 9


System are as follows
9. The proposed system has the following requirements 10-16

10. Advantages of hospital information management 17-18


software
1.Advantage
2.Disadvantage
11. Conclusion 18
MODULES
FIG FIGURE NUMBER PAGE NO

Module 1 Enter choice of No by(User/Admin)

Module 2 Add patient record

Module 3 View information

Module 4 serach

Module 5 Edit Information

Module 6 Delete Information

Module 7 Exit
1.INTRODUCTION
Diagnosis details; while system output is to get these details on to the CRT screen.
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.

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
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 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
2.OBJECTIVE

1. The system will be less probable to make mistake, since it’s a machine:

As it is a software, there will be less chance of errors. However a manforce can


do mistakes but a software can rarely.
2.Safety and speedy: To avoid stepping out of the house due to covid-19 and the
speed of execution and number of optimum screens to accommodate the
maximum throughput.

3.To design a user-friendly interface.-To provide an easy to use and user


friendly software.

4.To provide regular updates on latest software.-Means that admin can add
patient record any time to the software and user can access it to their ease.
3.HARDWARE AND SOFTWARE USED

Hardware Used:-

• Processor- AMD ryzen 5 4500U 10th Gen Processor


• Installed RAM-8GB
• SSD – 526 GB
• Graphics – Radeon Graphics 2.38 Ghz

Software Used:-
• Codeblocks v20.03
• Eclipse IDE for Enterprise C Developers - 2020-09
• Turbo c++
• Operating System :Windows 10
4. Main Features of the Project:
• The user can perform all the CRUD operations such as Add, Edit, Delete
and View patient’s record.

• They can add the details by entering a patient’s name, disease name,
phone number, and cabin number, etc.

• Moreover, the user can also view all the records of the patients that are
recorded.

• Besides, they can also edit information and delete patient record in the
system.

• All the details that are related to the patient can be searched by their
name, age, disease, cabin number.

This project basically creates an external file for the permanent storage of the
user data. Thus, the system is developed using the C programming language and
various variables, strings are used to develop it.
5. scope of the project hospital management system
It may help colleting perfect management in details. In very short time, the
collection will be obvious, simple and sensible. It will help a person to know the
management of passed year perfectly and vividly. It also helps in current all works
relative to hospital management system. It will be also reduced the cost of
colleting the management

Our project aims at business process automation, i.e. we have tried to


computerized various processes of hospital management system.

• In computer system the person has to fill the various forms and number of
copies of the form can be easily generated at a time
• In computer system, it is not necessary to create the manifest but we can
directly print it, which save our time.
• To assist the staff in capturing the effort spent on their respective working
areas.
• To utilize resources in an efficient manner by increasing their abroad
productivity thought Automation.
• the system generates types of information that can be used for various
purpose.
• It safety the user requirement be easy to understand by the user and
operator be easy to operate.
• have a good user interface.
• be Expendable.
• delivered on schedule within the budget.
6. Modules of hospital Management system

• hospital management module: used for managing the hospital details.


• Test module: used for managing the details of test.

• Medical module: used for managing details of medicine.

• Doctor management module: used for managing the information and


details of the doctors.

• Patient module: used for managing the patient details.

• Employee module: used for managing the employee information

• Login module: is used for managing the login details

• User module: used for managing the user of the system


7.About Hospital Management System C Project:

This mini project, like any other, is built without graphics and comes with simple
file handling operations. The key features in hospital management system are:

Add new patient record:

In this feature, user can add a new patient record choosing between O.P.D. service
and Emergency service. In O.P.D. service (shown in output screen below), name,
address, age, sex, disease description and specialist room number to be referred
are available. Thus given information is stored in file. The information to be given
are same in Emergency service.

2. Search or edit patient record:

In this mini project, two features – searching and editing patient records are
placed under a single feature. User can search or edit via. Record number of the
patient or his/her full name.
All the information corresponding to the respective patient are displayed. These
include the ones provided while adding a new patient record. If wrong
information about record number or patient full name is provided, the program
displays a message saying that no records were available.

Also, user can view the list of expenditures of the particular patient whose record
is sought. In the program, the financial information include total charge, total
deposited and total money to return.

3. List record of patients:

In hospital management system c project, users can list patient records by


choosing any one of the four options listed below:

• Records of patients in alphabetical order


• Records of Emergency patients
• Records of O.P.D. patients
• Records of patients in a particular date

As in the two features mentioned above, user can view financial records
corresponding to any particular patient listed according to any one of the four
options mentioned above. Pressing ‘Enter’ user can view the records of next
patients.

4. Delete patient records:

This features allows user to delete added record of any patient. For this the patient
number to be removed is to be provided. Upon ‘Enter’, user can view the patient
record and the financial records of the patient. To delete the record, press ‘Enter’
and the respective patient record will be deleted from the file.

5. Exit

Last option is exit after fill all detail’s we use exit function.
8.

Functionalities provided by Hospital Management System are as


follows:
• Provides the searching facilities based on various factors. Such as
Hospital, Patient, Employee, Test.
• Hospital Management System also manage the Medicine details
online for Employee details, Test details, Hospital.
• It tracks all the information of Doctors, Medicine, Employee etc.
• Manage the information of Doctors
• Shows the information and description of the Hospital, Patient
• To increase efficiency of managing the Hospital, Doctors
• It deals with monitoring the information and transactions of
Employee.
• Manage the information of Hospital
• Editing, adding and updating of Records is improved which results in
proper resource management of Hospital data.
• Manage the information of Employee.
• Integration of all records of Test.
9.The proposed system has the following requirements:
• System needs store information about new entry of Hospital.
• System needs to help the internal staff to keep information of Doctors
and find them as per various queries.
• System need to maintain quantity record.
• System need to keep the record of Patient.
• System need to update and delete the record.
• System also needs a search area.
• It also needs a security system to prevent data.
• Feasibility Study:
After doing the project Hospital Management System, study and analyzing
all the existing or required functionalities of the system, the next task is to
do the feasibility study for the project. All projects are feasible - given
unlimited resources and infinite time. Feasibility study includes
consideration of all the possible ways to provide a solution to the given
problem. The proposed solution should satisfy all the user requirements
and should be flexible enough so that future changes can be easily done
based on the future upcoming requirements.
A. Economical Feasibility
This is a very important aspect to be considered while developing a project.
We decided the technology based on minimum possible cost factor.
• All hardware and software cost has to be borne by the organization.
• Overall we have estimated that the benefits the organization is going to
receive from the proposed system will surely overcome the initial costs and
the later on running cost for system.
B. Technical Feasibility This included the study of function,
performance and constraints that may affect the ability to achieve an
acceptable system. For this feasibility study, we studied complete
functionality to be provided in the system, as described in the System
Requirement Specification (SRS), and checked if everything was possible
using different type of frontend and backend platforms.
C. Operational Feasibility No doubt the proposed system is fully GUI
based that is very user friendly and all inputs to be taken all self-
explanatory even to a layman. Besides, a proper training has been
conducted to let know the essence of the system to the users so that they
feel comfortable with new system. As far our study is concerned the clients
are comfortable and happy as the system has cut down their loads and
doing.

User Interface Design


User Interface Design is concerned with the dialogue between a user and
the computer.
It is concerned with everything from starting the system or logging into
the system to the eventually presentation of desired inputs and outputs. The
overall flow of screens and messages is called a dialogue.
The following steps are various guidelines for User Interface
Design:
1. The system user should always be aware of what to do next.
2. The screen should be formatted so that various types of information,
instructions and messages always appear in the same general display area.
3. Message, instructions or information should be displayed long enough
to allow the system user to read them.
4. Use display attributes sparingly.
5. Default values for fields and answers to be entered by the user should be
specified.
6. A user should not be allowed to proceed without correcting an error.
7. The system user should never get an operating system message or fatal
error.
Analysts working on the preliminary investigation should
accomplish the following objectives:
• Clarify and understand the project request
• Determine the size of the project.
• Assess costs and benefits of alternative approaches.
•Determine the technical and operational feasibility of alternative approaches.
• Report the findings to management, with recommendations outlining the
acceptance or rejection of the proposal.
• Benefit to Organization The organization will obviously be able to gain benefits
such as savings in operating cost, reduction in paperwork, better utilization of
human resources and more presentable image increasing goodwill.
• The Initial Cost The initial cost of setting up the system will include the cost of
hardware software (OS, add-on software, utilities) & labor (setup &
maintenance). The same has to bear by the organization
• Running Cost
Besides, the initial cost the long term cost will include the running cost for
the system including the AMC, stationary charges, cost for human
resources, cost for update/renewal of various related software.
• Need for Training
The users along with the administrator need to be trained at the time of
implementation of the system for smooth running of the system.
The client will provide the training site. We talked to the management
people who were managing a the financial issues of the center, the staff
who were keeping the records in lots of registers and the reporting manager
regarding their existing system, their requirements and their expectations
from the new proposed system. Then, we did the system study of the entire
system based on their requirements and the additional features they wanted
to incorporate in this system.
Reliable, accurate and secure data was also considered to be a complex task
without this proposed system. Because there was no such record for
keeping track of all the activities, which was done by the Hospital
Management System on the daily basis. The new system proposed and then
developed by me will ease the task of the organization in consideration.
It will be helpful in generating the required reports by the staff, which will
help them to track their progress and services. Thus, it will ease the task of
Management to a great extent as all the major activities to be performed,
are computerized through this system.
Existing System of Hospital Management System: In the existing system the
exams are done only manually but in proposed system we have to
computerize the exams using this application.
• Lack of security of data.
• More man power.
• Time consuming.
• Consumes large volume of pare work.
• Needs manual calculations.
• No direct role for the higher officials Proposed System of Hospital
Management System: The aim of proposed system is to develop a
system of improved facilities. The proposed system can overcome all
the limitations of the existing system. The system provides proper
security and reduces the manual work.
• Security of data.
• Ensure data accuracy’s.
• Minimize manual data entry.
• Minimum time needed for the various processing.
• Greater efficiency.
• Better service.
• User friendliness and interactive.
• Minimum time required.
• no repetition of information
• more secure

10.Advantages of hospital information management software


1. Anyhow to integration of the software into our system has made the
correspondence more powerful in the healthcare system.
In this way, subsequently every data can be gotten to any place
thought authorized login aside from all these the method of communication
has turned out to be considerably less expensive it has turned out to
resemble no report will be postponed from achieving the right hand of the
experts.

2. Here information is available 24 hours consistently this implies the


report can be sent whenever on quickly so the likelihood of postponement
in getting treatment no more support as an issue.

3. Another preferred standpoint of the hospital management system is cost


effectiveness as well as edition enchange efficiency we know how
productive a thing can be overseen naturally when compared with old de
manual set up

1.Advantages
• communication more effective patient
• information available 24 hours
• cost effectiveness
• faster than manual system

2.Disadvantage
1. One of the greatest disadvantages is related to the security. It is a common
matter of concern, if you go online without enough protection that can create big
security problem. The data breach is one of the greatest problems of health care
industry and is considered as the most sophisticated problem.

2. Another thing is lack of employment. When system becomes automated the


chances of employment becomes less or need of the manual drafting of data
becomes irrelevant.

3. The process of software implementation is a tough task. Anyhow the process


of getting training properly is another difficulty. It has been found that it is
important to learn everything regarding the software for utilizing it to the
maximum. So apart from integrating the software for your organizational need,
make sure that the employees are well trained on that.

Conclusion:- The hospital management system is a great improvement


over the manual system using case fields and paper the computerization of the
system has sped up the process in the current system the front office managing
is very slow the hospital managing system was thoroughly checked and tested
with dummy data and truth is found to be very reliable.
CODEING

#include<stdio.h>
#include<string.h>
struct ad
{
char name[30];
char disease[30];
int cabin,phone,age;
} x[100];
int n,i,j=0,a=0,sum=0,g,flag,num;
void read();
void add();
void view();
void search();
void edit();
void del();
void show();
int main()
{
read();
int c,i,q;
printf("Simple Hospital Management System\n");
int m,n;
//making out the pattern

for(m=1; m<=4; m++)


{
for(n=1; n<=5; n++)
printf(" ");
for(n=1; n<=m-1; n++)
{
printf(" ");
}
for(n=1; n<=4-m+1; n++)
{
if(n==4-m+1 || m==1 || m==4)
printf("*");
else
printf(" ");
}
for(n=1; n<=4-m+1; n++)
{
if(n==1 ||m==1 || m==4)
printf("*");
else
printf(" ");
}
printf("\n");
}
while(c!=6)
{

printf("**Enter your choice**\n\n1. Add Information\n2. View Information\n3. Search\n4. Edit


Information\n5. Delete Information\n6. Exit\n\nOption=");
scanf("%d",&c);//choice for option
fflush(stdin);//making it clear
if(c==1)//add
{
system("cls");
add();
}
else if(c==2)//view
{
system("cls");
view();
}
else if(c==3)//search
{
system("cls");
search();
}
else if(c==4)//edit
{
system("cls");
edit();
}
else if(c==5)//delete
{
system("cls");
del();
}
else if(c==6)
{
write();
return 0;
}
else
{
system("cls");
printf("\n\nInvalid input , try again by using valid inputs");
}
printf("\n\n");
}
}
void add()
{
printf("\n\n");
printf("Already data inputed on the database =%d\n\n",num);//how many inputs
printf("How many entry do you want to add=\n");
scanf("%d",&n);
sum=n+num;

for(i=num,j=0; i<sum; i++)


{
printf("\n");
fflush(stdin);
printf("Enter patient's Name = ");
gets(x[i].name);
fflush(stdin);
printf("Enter disease = ");
gets(x[i].disease);
fflush(stdin);
printf("Enter the age = ");
scanf("%d",&x[i].age);
fflush(stdin);
printf("Enter cabin no = ");
scanf("%d",&x[i].cabin);
fflush(stdin);
printf("Enter phone number = ");
scanf("%d",&x[i].phone);
fflush(stdin);
printf("\n");
j++;
a++;
num++;
}
}

void view()
{
for(i=0; i<num; i++)
{
printf("\n");
printf("Serial Number=%d\n",i);
printf("Name = ");
puts(x[i].name);
printf("Disease = ");
puts(x[i].disease);
printf("Cabin no = %d\nPhone number = 0%d\nAge=%d",x[i].cabin,x[i].phone,x[i].age);
printf("\n\n");
}
}
void edit()
{
int q,p;
fflush(stdin);
printf("What do you want to edit ?\n");
printf("Enter your option\n");
printf("1.Name\n2.Disease\n3.Age\n4.Cabin\n5.Phone no.\n");
printf("Option=");
scanf("%d",&q);//option
if(q<=5)
{
printf("Enter the serial no of that patient= (0 - %d)=",num-1);
scanf("%d",&p);//serial number
if(p<num)
{
if(q==1)
{
fflush(stdin);
printf("Enter the new name=");
gets(x[p].name);

}
else if(q==2)
{
fflush(stdin);
printf("Enter the new Disease=");
gets(x[p].disease);
}
else if(q==3)
{
fflush(stdin);
printf("Enter the new Age=");
scanf("%d",&x[p].age);
}

else if(q==4)
{
fflush(stdin);
printf("Enter the new Cabin no=");
scanf("%d",&x[p].cabin);
}
else if(q==5)
{
fflush(stdin);
printf("Enter the new Phone no =");
scanf("%d",&x[p].phone);
}
}
else
{
printf("\n\nInvalid Serial \nTry Again !!\n\n");
}
}
else
{
printf("\n\nInvalid option\nTry Again!!\n\n");
}
}
void search()
{
int s,h,f;
char u[100];
printf("By what do you want to search ?\n");
printf("1.Serial no.\n2.Name\n3.Disease\n4.Cabin no.\n5.Phone no.\n6.Age\n\nOption = ");
scanf("%d",&h);
if(h==1)
{
printf("Enter Serial number of the patient=");
scanf("%d",&s);
if(s<num)
{
printf("\n");
printf("Serial Number=%d\n",s);
printf("Name = ");
puts(x[s].name);
printf("Disease = ");
puts(x[s].disease);
printf("Cabin no = %d\nPhone number = 0%d\nAge = %d",x[s].cabin,x[s].phone,x[s].age);
printf("\n\n");
}
else
printf("\n\nNot Found\n\n");
}
else if(h==2)//problem is here.........
{
int f=1;
fflush(stdin);
printf("Enter your name=");
gets(u);
fflush(stdin);
for(g=0; g<num; g++)
{
if(strcmp(u,x[g].name)==0)
{
printf("\n");
printf("Serial Number=%d\n",g);
printf("Name = ");
puts(x[g].name);
printf("Disease = ");
puts(x[g].disease);
printf("Cabin no = %d\nPhone number = 0%d\nAge = %d",x[g].cabin,x[g].phone,x[g].age);
printf("\n\n");
f=0;

}
}
if(f==1)
printf("\nNot Found\n");

}
else if(h==3)
{
int f=1;
fflush(stdin);
printf("Enter Disease = ");
gets(u);
fflush(stdin);
for(g=0; g<num; g++)
{
if(strcmp(u,x[g].disease)==0)
{
printf("\n");
printf("Serial Number=%d\n",g);
printf("Name = ");
puts(x[g].name);
printf("Disease = ");
puts(x[g].disease);
printf("Cabin no = %d\nPhone number = 0%d\nAge = %d",x[g].cabin,x[g].phone,x[g].age);
printf("\n\n");
f=0;
}

}
if(f==1)
printf("\nNot Found\n");

}
else if(h==4)
{
int f=1;
printf("Enter Cabin number = ");
scanf("%d",&f);
for(g=0; g<num; g++)
{
if(f==x[g].cabin)
{
printf("\n");
printf("Serial Number=%d\n",g);
printf("Name = ");
puts(x[g].name);
printf("Disease = ");
puts(x[g].disease);
printf("Cabin no = %d\nPhone number = 0%d\nAge = %d",x[g].cabin,x[g].phone,x[g].age);
printf("\n\n");
f=0;
}

}
if(f==1)
printf("Not Found\n\n");

}
else if(h==5)
{
int f=1;
printf("Enter Phone number = ");
scanf("%d",&f);
for(g=0; g<num; g++)
{
if(f==x[g].phone)
{
printf("\n");
printf("Serial Number=%d\n",g);
printf("Name = ");
puts(x[g].name);
printf("Disease = ");
puts(x[g].disease);
printf("Cabin no = %d\nPhone number = 0%d\nAge = %d",x[g].cabin,x[g].phone,x[g].age);
printf("\n\n");
f=0;
}

}
if(f==1)
printf("Not Found");
}
else if(h==6)
{
int f=1;
printf("Enter Age = ");
scanf("%d",&f);
for(g=0; g<num; g++)
{
if(f==x[g].age)
{
printf("\n");
printf("Serial Number=%d\n",g);
printf("Name = ");
puts(x[g].name);
printf("Disease = ");
puts(x[g].disease);
printf("Cabin no = %d\nPhone number = 0%d\nAge = %d",x[g].cabin,x[g].phone,x[g].age);
printf("\n\n");
f=0;
}

}
if(f==1)
printf("Not Found\n\n");

}
else
printf("\n\nInvalid input\n\n");

}
void del()
{
int f,h;
printf("Enter the serial number of the patient that you want to delete=");
scanf("%d",&f);
if(f<num)
{
printf("What do you want ?\n");
printf("1.Remove the whole record\n2.Remove Name\n3.Remove Disease\n4.Remove
age\n5.Remove Cabin\n6.Remove phone number\nOption = ");
scanf("%d",&h);
if(h==1)
{
while(f<num)
{
strcpy(x[f].name,x[f+1].name);
strcpy(x[f].disease,x[f+1].disease);
x[f].age=x[f+1].age;
x[f].cabin=x[f+1].cabin;
x[f].phone=x[f+1].phone;
f++;
}
num--;
}
else if(h==2)
{
strcpy(x[f].name,"Cleared");

}
else if(h==3)
{
strcpy(x[f].disease,"Cleared");
}
else if(h==4)
{
x[f].age=0;
}
else if(h==5)
{
x[f].cabin=0;
}
else if(h==6)
{
x[f].phone=0;
}

}
else
printf("\n\nInvalid Serial number\n");

}
void read()
{
FILE *fp = fopen("patient.txt","r");
if(fp == NULL)
{
//create empty file, so that we can open it
//in the next execution of this program
fp = fopen("patient.txt","w");
fclose(fp);
printf("File does not exist, I JUST CREATED IT, exiting...\n\n\n");
return 0;
}

num = fread(x, sizeof(struct ad),100, fp);


fclose(fp);
}
void write()
{
FILE *fp = fopen("patient.txt","w");
if(fp == NULL)
{
printf("Error");
exit(1);
}
fwrite(x, sizeof(struct ad),num, fp);
fclose(fp);
}

OUTPUT

You might also like