Pps Project
Pps Project
(An UGC Autonomous Institution, Approved by AICTE, New Delhi & Affiliated to JNTU, Hyderabad).
Accredited by NAAC with ‘A++’ Grade (Cycle- III), NBA Tier –I Accredited
(B.Tech – CE, EEE, ME, ECE & CSE, M.Tech – Structural Engg, Electrical Power Systems,
Thermal Engg.IIC – Four Star Rating, NIRF Rank Band 250-300, ARIIA Band Performer,
Maisammaguda(H), Medchal - Malkajgiri District, Secunderabad, Telangana State – 500100,
www.mrec.ac.in
D . NIKSHITH (24J41A67L6)
BACHELOR OF TECHNOLOGY
in
1.Abstract
2.Introduction
3.Methodology
4.Project Description
7.Diagram Design
8.Future Scope
9.Conclusion
ABSTRACT
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 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 screen. The Hospital Management System can be entered using a user name 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 data are well protected for personal use and makes the data processing very
fast.
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.
Hospial Management System is designed for multispeciality 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 medical management in the areas of clinical process analysis and activity-based costing.
Hospial 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 hospitals
helps you manage your processes
Purpose: Main aim of developing Hospital management System is to provide an easy way not only to
automate all functionalities involved managing leaves and Payroll for the employees of Company, but
also to provide full functional reports to management of Hospital with the necessary details. HOSPITAL
MANAGEMENT SYSTEM 2016 10 Nowadays large scale organizations (hospitals in this case) are
committed to bring the best way of management in the various forms
EXISTING SYSTEM:
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 through out the hospital
management infrastructure. Often information 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.
PROPOSED SYSTEM:
The Hospital Management System is designed for any hospital to replace their existing manual paper
based system. The new system is to control the information of patients. Room availability, staff and
operating room schedules and patient invoices. These services are to be provided in an efficient, cost
effective manner, with the goal of reducing the time and resources currently required for such tasks .
REQUIREMENT ANALYSIS
Conceptually, requirements analysis includes three types of activities:
Eliciting requirements:(e.g. the project charter or definition), business process documentation, and
stakeholder interviews. This is sometimes also called requirements gathering or requirements discovery.
Analyzing requirements: determining whether the stated requirements are clear, complete, consistent
and unambiguous, and resolving any apparent conflicts.
User-friendly: The system must accommodate a clearly understandable user interface as well
as documentation help at any stage of the user interaction with the system.
Security: The system should be designed to make it impossible for anybody to logon without a valid
username and password. Data encryption should be employed to keep the user login name and password
secret.
Reliability: The system would be used by the accounting section of any organisation. Since this
application is subject to process monetary matters, this must be reliable to the users of this
application.
Ease of Use: The views and operations should be easy to use and intuitive. Documentation should
be provided.
System requirements: This system would be designed to run on a minimum hardware configuration
like 500MHz x86 machines. Considering the vast hardware available nowadays, this would not pose any
problems.
Class Diagram:
A Class is a category or group of things that has similar attributes and common behavior. A Rectangle is
the icon that represents the class it is divided into three areas. The upper most area contains the name,
the middle; area contains the attributes and the lowest areas show the operations. Class diagrams
provides the representation that developers work from. Class diagrams help on the analysis side, too.
Person
+name_string
Hospital
+age_number
+date of +name_string
+* +
birth_number +address_string
+address_string 1
+phon_number
+phone num_number
+gender_string +available
+date of join() time()
+date of discharge() +states()
+
1
+*
Patient
+gender_string Staff
+prescription_strin
g +joined: date
-allergies_string +qulification_string
+in_time() +certification_strin
+out_time() g
+languages_string
+work dutes()
+hoil days()
Administrative Technical
Operations staff
staff +name of staff
+names_string +name_string
emp_string +location_string
+deprt_string #details_string
-time +join time()
+join time() +open_list()
period_number
+close_list()
surgen
+opr_type
+free_number
+block_string
+opr_time()
+week period()
Takes
Appointment
Undergo
Diagnosis
not cur
Takes ed
Treatment
u n d e r g o l a b t es ts a n d b u y
medicines
gets cur
ed
SOURCE CODE
doctor.c
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
#define doctor
struct doc
void add(FILE *
fp); //to add to list
FILE * del(FILE *
fp);//to delete
from list
void modify(FILE
* fp);//to modify a
record
void
displayList(FILE *
fp);//display whole
list
void
searchRecord(FIL
E *fp);//find a
particular record
struct doc
char name[100];
char specialisation[50];
int id;
{
FILE * fp;
doctor d;
int option;
char another;
if((fp=fopen(
"doctorInfo.t
xt","rb+"))=
=NULL)
if((fp=fop
en("doctor
Info.txt","
wb+"))==
NULL)
{
printf(
"can't
open
file");
return
0;
while(1)
printf("\n\
t");
printChar('
-',64);
printf("\n\
n\t\t\t1.
ADD
Record");
printf("\n\n\t\tEnter Your Option :--> ");
scanf("%d",&option);
switch(option)
{
case 0: return 1;
break;
case 1: add(fp);
break;
case 2: fp=del(fp);
break;
case 3: modify(fp);
break;
case 4: displayList(fp);
break;
case 5: searchRecord(fp);
break;
default: printf("\n\t\tYou
Pressed wrong key");
printf("\n\t\tProgram
terminated");
exit(0);
return 1;
}
//----printing character ch at n times ------
while(n--)
putchar(ch);
//-----Printing
Head Line of the
program -----
/*void
printHead()
{
system("cls");
printf("\n\n\t");
printChar('=',16);
printf("[STUDE
NT]
[INFORMATIO
N] [SYSTEM]");
printChar('=',16);
printf("\n");
*/
//
==========AD
DING NEW
RECORD=====
============
=========
void add(FILE *
doctor d;
int i;
fseek(fp,0,SEEK_END);
while(another=='y'||
another=='Y')
{
printf("\n\n\t\tEnter
Full Name of Doctor\
t");
fflush(stdin);
fgets(d.name,100,stdin
); //fgets takes an
extra \n character as
input
d.name[strlen(d.name)
-1]='\0';
printf("\n\n\t\tEnter Specialisation\t");
fflush(stdin);
fgets(d.specialisation,50,stdin);
d.specialisation[strlen(d.specialisation)
-1]='\0';
printf("\n\n\t\tEnter id \t");
scanf("%d",&d.id); printf("\n\
scanf("%u",&d.salary);
fwrite(&d,sizeof(d),1,fp);
fflush(stdin);
another=getchar();
}
//====================DISPLAY THE LIST =================
doctor d;
int i,siz=sizeof(d);
rewind(fp);
while((fread(&d,siz,1,fp))==1)
printf("\n\t\tNAME : %s",d.name);
printf("\n\n\t\tSPECIALISATION : %s",d.specialisation);
n\t\tSALARY: %u",d.salary);
printChar('-',65);
}
printf("\n\n\n\t");
printChar('*',65);
printf("\n\n\t");
system("pause");
//
==============
=====DELETING
A RECORD
FROM LIST
============
FILE * del(FILE *
fp)
doctor d;
int flag=0,tempRoll,siz=sizeof(d);
FILE *ft;
if((ft=fopen("temp.txt","wb+"))==NULL)
{
printf("\n\n\t\t\t\\t!!! ERROR !!!\n\t\t");
system("pause");
return fp;
printf("\n\n\t\t\tID : ");
scanf("%d",&tempRoll);
rewind(fp);
while((fread(&d,siz,1,fp)
)==1)
if(d.id==tempRoll)
{ flag=1;
printf("\n\tRecord
Deleted for");
printf("\n\n\t\t%s\n\n\
t\t%s\n\n\t\t%d\n\n\t\t
%d\n\
t",d.name,d.specialisat
ion,d.id,d.salary);
continue;
fwrite(&d,siz,1,ft);
fclose(fp);
{
if(d.id==tempRoll)
{flag=1;
break;
if(flag==1)
fseek(fp,-siz,SEEK_CUR);
printf("\n\n\t\tRECORD FOUND");
fflush(stdin);
fgets(d.name,100,stdin);
d.name[strlen(d.name)-1]='\0';
printf("\n\n\t\tEnter Specialisation\t");
fflush(stdin);
fgets(d.specialisation,50,stdin);
d.specialisation[strlen(d.specialisation)-1]='\0';
printf("\n\n\t\tEnter ID \t");
scanf("%d",&d.id);
printf("\n\n\t\tEnter Salary\n\t");
scanf("%d",&d.salary);
fwrite(&d,sizeof(d),1,fp);
else
system("pause");
int tempRoll,flag,siz,i;
doctor d;
char another='y';
siz=sizeof(d);
while(another==
'y'||another=='Y')
{
printf("\n\n\
tEnter ID of
Doctor to search
the record : ");
scanf("%d",&te
mpRoll);
rewind(fp);
while((fread(&d,siz,1,fp))==1)
if(d.id==tempRoll)
{flag=1;
break;
if(flag==1)
{
printf("\n\t\tNAME : %s",d.name);
printf("\n\n\t\tSPECIALISATION : %d",d.specialisation);
printf("\n\n\t\tID : %d",d.id);
printf("\n\n\t\tSALARY: %d",d.salary);
fflush(stdin);
another=getchar();
patient.c
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
struct pat
{
char name[100];
char pbm[50];
int rno;
int pno;
};
int main()
{
FILE * fp1;
patient p;
int option;
char another;
if((fp1=fopen("patientInfo.txt","rb+"))==NULL)
if((fp1=fopen("patientInfo.txt","wb+"))==NULL)
{
printf("can't open file");
return 0;
while(1)
printf("\n\t");
printChar('-',64);
printf("\n\n\t\t\t4. DISPLAY");
printf("\n\n\t\t\t0. EXIT");
scanf("%d",&option);
switch(option)
case 0: return 1;
break;
case 1: add1(fp1);
break;
case 2: fp1=del1(fp1);
break;
case 3: modify1(fp1);
break;
case 4: displayList1(fp1);
break;
case 5: searchRecord1(fp1);
break;
default: printf("\n\t\tYou
Pressed wrong key");
printf("\n\t\tProgram terminated");
exit(0);
return 1;
while(n--)
{
fflush(stdin);
p.name[strlen(p.name)-1]='\0';
fgets(p.pbm,50,stdin);
p.pbm[strlen(p.pbm)-1]='\0'; printf("\
scanf("%d",&p.rno);
scanf("%u",&p.pno);
fwrite(&p,sizeof(p),1,fp1);
fflush(stdin);
another=getchar();
patient p;
int i,flag=0,tempRoll,siz=sizeof(p);
scanf("%d",&p.pno);
fwrite(&p,sizeof(p),1,fp1);
else
system("pause");
patient p;
int i,siz=sizeof(p);
rewind(fp1);
while((fread(&p,siz,1,fp1))==1)
{
printf("\n\t\t PATIENT NAME : %s",p.name);
printChar('-',65);
}
printf("\n\n\n\t");
printChar('*',65);
printf("\n\n\t");
system("pause");
The
outpu
t
scree
n
shot
for
patie
nt.c
sourc
e
code :
Conclusions
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.