You are on page 1of 20

Government Polytechnic

Nandurbar.

A Project Report on
Hospital Management System. 2021-2022
Semester III

Branch: - Computer Engineering


Subject: - Object-Oriented Programming using C++ (22316)

Project Tittle: - Hospital Management System

Project Submitted to GOVERNMENT


POLYTECHNIC NANDURBAR

Under the guidance of


Prof. M. P. Vasave
(Lecturer in Object-Oriented
Programming using C++)
at
1432 GOVERNMENT POLYTECHNIC NANDURBAR.

MAHARASHTRA STATE BOARD OF TECHNICAL


EDUCATION, MUMBAI

Page 1 of 20
Government Polytechnic
Nandurbar.

CERTIFICATE

This is Certify that Mr./Ms. 1) Abhijeet Sharad Kulkarni


2) Shreya Jitendra Wagh
3) Siddhi Vijay Wagh
4) Chetana Gangadhar Mahajan
Roll No…… 3rd Semester of Diploma in Computer
Engineering of Institute Government Polytechnic,
Nandurbar has Completed the micro–Project Satisfactorily
in the subject Object-Oriented Programming using C++
(22316) for the academic Year 2021-2022 as prescribed in
the curriculum.
PLACE: NANDURBAR ENROLLMENT NO: 2014320084
2014320112
2014320113
2014320114

DATE…………………. EXAM SEAT NO………………

Signatures and stamp

Subject Teacher Head of the Department Principal


(Prof. M. P. Vasave.) (Prof. M. M. Goswami) (Dr .S. D. Pable)

Page 2 of 20
Government Polytechnic
Nandurbar.

1. INTRODUCTION

Introduction

Problem introduction

2. REQUIREMENTS SPECIFICATION

Introduction

Hardware requirements

Software requirements

3. SYSTEM IMPLEMENTATION

Sample code

4. SAMPLE SCREENSHOTS

5. Conclusion

6. Progress Report

7. ANNEXURE-II

Page 3 of 20
Government Polytechnic
Nandurbar.

 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.

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 is designed for multispecialty hospitals, to cover a wide range of
hospital administration and management processes. It is an integrated end-to-end Hospital
Management System that provides relevant information across the hospital to support effective
decision making for patient care, hospital administration and critical financial accounting, in a
seamless flow.

Hospital Management System is a software product suite designed to improve the quality and
management of hospital management in the areas of clinical process analysis and activity-based
costing. Hospital Management System enables you to develop your organization and improve its
effectiveness and quality of work. Managing the key processes efficiently is critical to the
success of the hospital helps you manage your processes

Problem Introduction:

Lack of immediate retrievals: -

The information is very difficult to retrieve and to find particular information like- E.g. - To find
out about the patient’s history, the user has to go through various registers. This results in in
convenience and wastage of time.

Lack of immediate information storage: -

The information generated by various transactions takes time and efforts to be stored at right
place

Page 4 of 20
Government Polytechnic
Nandurbar.
Lack of prompt updating: -

Various changes to information like patient details or immunization details of child are difficult
to make as paper work is involved.

Error prone manual calculation: -

Manual calculations are error prone and take a lot of time this may result in incorrect
information. For example, calculation of patient’s bill based on various treatments.

Preparation of accurate and prompt reports: -

This becomes a difficult task as information is difficult to collect from various register.

Objective: -

1) Define hospital
2) Recording information about the Patients that come.
3) Generating bills.
4) Recording information related to diagnosis given to patients.
5) Keeping record of the immunization provided to children/patients.
6) Keeping information about various diseases and medicines available to cure them.

These are the various jobs that need to be done in a hospital by the operational staff and Doctors.
All these works are done on papers.

Scope of the Project:-

1) Information about Patients is done by just writing the Patients name, age and gender.
Whenever the Patient comes up his information is stored freshly.
2) Bills are generated by recording price for each facility provided to Patient on a separate
sheet and at last they all are summed up.
3) Diagnosis information to patients is generally recorded on the document, which contains
Patient information. It is destroyed after some time period to decrease the paper load in
the office.
4) Immunization records of children are maintained in pre-formatted sheets, which are kept
in a file.

Page 5 of 20
Government Polytechnic
Nandurbar.
5) Information about various diseases is not kept as any document. Doctors themselves do
this job by remembering various medicines.

All this work is done manually by the receptionist and other operational staff and lot of papers
are needed to be handled and taken care of. Doctors have to remember various medicines
available for diagnosis and sometimes miss better alternatives as they can’t remember them at
that time.

Page 6 of 20
Government Polytechnic
Nandurbar.

 REQUIREMENT SPECIFICATION


INTRODUCTION:

To be used efficiently, all computer software needs certain hardware components or the other
software resources to be present on a computer. These pre-requisites are known as(computer)
system requirements and are often used as a guideline as opposed to an absolute rule. Most
software defines two sets of system requirements: minimum and recommended. With increasing
demand for higher processing power and resources in newer versions of software, system
requirements tend to increase over time. Industry analysts suggest that this trend plays a biggerpart
in driving upgrades to existing computer systems than technological advancements.

HARDWARE REQUIREMENTS:

The most common set of requirements defined by any operating system or software application
is the physical computer resources, also known as hardware. A hardware requirements list is
often accompanied by a hardware compatibility list (HCL), especially in case of operating
systems. An HCL lists tested, compatibility and sometimes incompatible hardware devices for a
particular operating system or application. The following sub-sections discuss the various aspects
of hardware requirements.

HARDWARE REQUIREMENTS FOR PRESENT PROJECT:


PROCESSOR : Intel dual Core ,i3

RAM : 1 GB

HARD DISK : 80 GB

SOFTWARE REQUIREMENTS:

Software Requirements deal with defining software resource requirements and pre-requisites that
need to be installed on a computer to provide optimal functioning of an application. These
requirements or pre-requisites are generally not included in the software installation package and
need to be installed separately before the software is installed.

Page 7 of 20
Government Polytechnic
Nandurbar.

 SYSTEM IMPLEMENT

// C++ program to implement the Hospital


// Management System
#include <bits/stdc++.h>
using namespace std;

// Store the data of Hospital


class Hospital {
public:
string H_name;
string location;
int available_beds;
float rating;
string contact;
string doctor_name;
int price;
};

// Stores the data of Patient


class Patient : public Hospital {
public:
string P_name;
int P_id;
};

// Hospital Data
void PrintHospitalData(
vector<Hospital>& hospitals)
{
cout << "PRINT hospitals DATA:"
<< endl;

cout << "HospitalName "


<< "Location "
<< "Beds_Available "
<< "Rating "
<< "Hospital_Contact "
<< "Doctor_Name "
<< "Price_Per_Bed \n";

for (int i = 0; i < 4; i++) {


cout << hospitals[i].H_name
<< " "

Page 8 of 20
Government Polytechnic
Nandurbar.

<< " "


<< hospitals[i].location
<< " "
<< hospitals[i].available_beds
<< " "
<< hospitals[i].rating
<< " "
<< hospitals[i].contact
<< " "
<< hospitals[i].doctor_name
<< " "
<< " "
<< hospitals[i].price
<< " "
<< endl;
}

cout << endl


<< endl;
}

// Function to print the patient


// data in the hospital
void PrintPatientData(
vector<Patient>& patients,
vector<Hospital>& hospitals)
{
cout << "PRINT patients DATA:"
<< endl;
cout << "Patient_Name "
<< "Patient_Id "
<< "Patient_Contact "
<< "Alloted_Hospital "
<< "Patient_Expenditure \n";

for (int i = 0; i < 4; i++) {


cout << patients[i].P_name
<< " "
<< " "
<< patients[i].P_id
<< " "
<< " "
<< patients[i].contact
<< " "
<< hospitals[i].H_name
<< " "

Page 9 of 20
Government Polytechnic
Nandurbar.

<< patients[i].price
<< " "
<< endl;
}

cout << endl


<< endl;
}

// Comparator function to sort the


// hospital data by name
bool name(Hospital& A, Hospital& B)
{
return A.H_name > B.H_name;
}

// Function to sort the hospital


// data by name
void SortHospitalByName(
vector<Hospital> hospitals)
{
// Sort the date
sort(hospitals.begin(),
hospitals.end(),
name);

cout << "SORT BY NAME:"


<< endl
<< endl;
PrintHospitalData(hospitals);
}

// Comparator function to sort the


// hospital data by rating
bool rating(Hospital& A, Hospital& B)
{
return A.rating > B.rating;
}

// Function to sort the hospital


// data by namerating
void SortHospitalByRating(vector<Hospital> hospitals)
{
sort(hospitals.begin(),
hospitals.end(),
rating);

Page 10 of 20
Government Polytechnic
Nandurbar.

cout << "SORT BY Rating:"


<< endl
<< endl;

PrintHospitalData(hospitals);
}

// Comparator function to sort the


// hospital data by Bed Available
bool beds(Hospital& A, Hospital& B)
{
return A.available_beds > B.available_beds;
}

// Function to sort the hospital


// data by Bed Available
void SortByBedsAvailable(
vector<Hospital> hospitals)
{
sort(hospitals.begin(),
hospitals.end(),
beds);

cout << "SORT BY Available Beds:"


<< endl
<< endl;

PrintHospitalData(hospitals);
}

// Comparator function to sort the


// hospital data by Bed Price
bool beds_price(Hospital& A, Hospital& B)
{
return A.price < B.price;
}

// Function to sort the hospital


// data by Bed Price
void SortByBedsPrice(
vector<Hospital> hospitals)
{
sort(hospitals.begin(),
hospitals.end(),
beds_price);

Page 11 of 20
Government Polytechnic
Nandurbar.

cout << "SORT BY Available Beds Price:"


<< endl
<< endl;

PrintHospitalData(hospitals);
}

// Comparator function to sort the


// hospital data by City
void PrintHospitalBycity(
string city, vector<Hospital> hospitals)
{
cout << "PRINT hospitals by Name :"
<< city << endl;

cout << "HospitalName "


<< "Location "
<< "Beds_Available "
<< "Rating "
<< "Hospital_Contact "
<< "Doctor_Name "
<< "Price_Per_Bed \n";

for (int i = 0; i < 4; i++) {

if (hospitals[i].location != city)
continue;
cout << hospitals[i].H_name
<< " "
<< " "
<< hospitals[i].location
<< " "
<< hospitals[i].available_beds
<< " "
<< hospitals[i].rating
<< " "
<< hospitals[i].contact
<< " "
<< hospitals[i].doctor_name
<< " "
<< " "
<< hospitals[i].price
<< " "
<< endl;
}

Page 12 of 20
Government Polytechnic
Nandurbar.

cout << endl


<< endl;
}

// Function to implement Hospital


// Management System
void HospitalManagement(
string patient_Name[], int patient_Id[],
string patient_Contact[], int bookingCost[],
string hospital_Name[], string locations[], int beds[],
float ratings[], string hospital_Contact[],
string doctor_Name[], int prices[])
{
// Stores the Hospital data
// and user data
vector<Hospital> hospitals;

// Create Objects for hospital


// and the users
Hospital h;

// Initialize the data


for (int i = 0; i < 4; i++) {
h.H_name = hospital_Name[i];
h.location = locations[i];
h.available_beds = beds[i];
h.rating = ratings[i];
h.contact = hospital_Contact[i];
h.doctor_name = doctor_Name[i];
h.price = prices[i];
hospitals.push_back(h);
}

// Stores the patient data


vector<Patient> patients;
Patient p;

// Initialize the data


for (int i = 0; i < 4; i++) {
p.P_name = patient_Name[i];
p.P_id = patient_Id[i];
p.contact = patient_Contact[i];
p.price = bookingCost[i];
patients.push_back(p);
}

Page 13 of 20
Government Polytechnic
Nandurbar.

cout << endl;

// Call the various operations


PrintHospitalData(hospitals);
PrintPatientData(patients, hospitals);

SortHospitalByName(hospitals);
SortHospitalByRating(hospitals);
PrintHospitalBycity("Bangalore", hospitals);
SortByBedsAvailable(hospitals);
SortByBedsPrice(hospitals);
}

// Driver Code
int main()
{
// Stores hospital data and
// the user data
string patient_Name[] = { "P1", "P2", "P3", "P4" };
int patient_Id[] = { 2, 3, 4, 1 };
string patient_Contact[]
= { "234534XXX7", "234576XXX2", "857465XXX9",
"567657XXX0" };
int bookingCost[] = { 1000, 1200, 1100, 600 };

string hospital_Name[] = { "H1", "H2", "H4", "H3" };


string locations[] = { "Bangalore", "Bangalore",
"Mumbai ", "Prayagraj" };
int beds[] = { 4, 5, 6, 9 };
float ratings[] = { 5.2, 4.1, 3.4, 5.9 };
string hospital_Contact[]
= { "657534XXX7", "298766XXX2", "324565XXX9",
"343456XXX4" };
string doctor_Name[] = { "D1", "D4", "D3", "D2" };
int prices[] = { 100, 200, 100, 290 };

// Function Call
HospitalManagement(
patient_Name, patient_Id, patient_Contact,
bookingCost, hospital_Name, locations, beds,
ratings, hospital_Contact, doctor_Name, prices);

return 0;

Page 14 of 20
Government Polytechnic
Nandurbar.

 SAMPLE SCREENSHOTS

Page 15 of 20
Government Polytechnic
Nandurbar.



Page 16 of 20
Government Polytechnic
Nandurbar.

 CONCLUSION

Since we are entering details of the patients electronically in the” Hospital


Management System”, data will be secured. Using this application we can
retrieve patient’s history with a single click. Thus processing information
will be faster. It guarantees accurate maintenance of Patient details. It
easily reduces the book keeping task and thus reduces the human effort and
increases accuracy speed

Page 17 of 20
Government Polytechnic
Nandurbar.

 Weekly Work / Progress Report

Details of 16 Engagement Hours of the Student


Regarding Completion of the Project
Week Dates Timing Work or activity Sign of the
No . Performed Guide
From To Duration
in hours
1. 3 4
30 min Discussion and
24/11/21 Finalization of the
Project Title
2. 4 5
1 hour Preparation and
26 /11/ 21 Submission of
Abstracts
3 30 /11/21 3 4
30 min Literature Review
4. 01 /12 /21 11 12
1:30 hour Collection of Data
5. 03/12 /21 3 4
1 hour Sorting of Data
6. 4 5
30 min Discussion and
05 /12 /21 Outline of
Content
7 4 5
1 hour Rough Writing of
07 /12 /21 the Projects
Contents
8. 4 5
1 hour Editing and Proof
10 /12 /21 Reading of the
Contents
9. 2 3
1 hour Final Completion
12 /12 /21
of the Project
10. 2 3 1 hour Seminar
23 /12 /21 Presentation, viva-
vice, Assessment
and Submission of
Report

Page 18 of 20
Government Polytechnic
Nandurbar.

ANNEXURE-II
Evaluation Sheet for the Micro Project
(Teachers Copy)

Academic Year: Name of Guider : Mr. M.V.Magan sir


2021-2022
Semister : Third Branch Name : Computer
Engineering
Course Name: Computer
Graphics Course Code: 22316

Name of 1) Abhijeet Sharad Kulkarni


Students: 2) Siddhi Vijay Wagh
3) Shreya Jitendra Wagh
4) Chetana Gangadhar Mahajan

Title of the Project: HOSPITAL MANAGEMENT


SYSTEM

 COs addressed by the Micro Project:


(A) Major Learning Outcomes achieved by students
by doing the Project:
a) Practical Outcomes:
1. Basic knowledge
2. Discipline knowledge
3. Experiments and Practice
b) Outcomes (in Cognitive domain)
1. Processing information
2. Constructing
3. Understanding
4. Applying knowledge
Page 19 of 20
Government Polytechnic
Nandurbar.

c) Outcomes in Affective Domain


1. Follow safety measures.
2. Follow ethical practices

d) Comment/Suggestion about team work/ leadership /


inter-personal Communication (If any : )

Students Name Marks out Marks out of Total


Roll of 6 for 4 for Out of
No. performa-- performance 10
nes in in Oral
group /
activity presentation
2119 Abhijeet Sharad Kulkarni

2144 Siddhi Vijay Wagh

2145 Shreya Jitendra Wagh


2146 Chetana Gangadhar Mahajan

( )
Signature with Name and Designation of the Faculty
Member..

Page 20 of 20

You might also like