0% found this document useful (0 votes)
4 views23 pages

Bank Management

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 23

 CONTENT

1.Abstract

2.Introduction

3.Methodology

4.Project Description

5.System Study and Analysis

6.problem statement

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.

BACK GROUND TO STUDY

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 Benefits of HMS in hospitals:

Following benefits of hospital management system are:

 Improved clinical care & patient safety

 Quick & coordinated care

 Reduced readmissions

 Reduced waiting times  Reduced cost.

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.

Recording requirements: Requirements may be documented in various forms, usually including


a summary list and may include natural-language documents, use cases, user stories, process
specifications and a variety of models including data models.

The system should also embrace the following requirements:

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

• Performance: The system should have a quick response time.

• 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.
State chart Diagrams:
The state diagram shows the states of an object and represents activities as arrows connecting the states.
The Activity Diagram highlights the activities. Each activity is represented by a rounded rectanglenarrower
and more oval-shaped than the state icon. An arrow represents the transition from the one activity to the
next. The activity diagram has a starting point represented by filled-in circle, and an end point represented
by bulls eye.
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(FILE *fp);//find a

particular record void printChar(char ch,int n);//printing a

character ch n times struct doc

{ char name[100]; char

specialisation[50]; int id;

double salary; }; int

main()

FILE * fp; doctor d;

int option; char another; if((fp=fopen("doctorInfo.txt","rb+"))==NUL


L)

{ if((fp=fopen("doctorInfo.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\t\t2. DELETE

Record"); printf("\n\n\t\t\t3.

MODIFY "); printf("\n\n\t\t\t4.

DISPLAY"); printf("\n\n\t\t\t5. Search Record");

printf("\n\n\t\t\t0. EXIT"); 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(f

p); break;

default:

printf("\n\t\tYo

u Pressed

wrong key");

printf("\n\t\tPro

gram

terminated");

exit(0);

} } return

1;

//----printing character ch at n times -----void printChar(char

ch,int n)

{ while(n--)

{ putchar(ch);

//-----Printing Head Line of the program -----

/*void printHead()
{ system("cls");

printf("\n\n\t");

printChar('=',16);

printf("[STUDENT] [INFORMATION] [SYSTEM]");

printChar('=',16); printf("\n");

*/

// ==========ADDING NEW RECORD==========================

void add(FILE * fp)

{ char

another='y';

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\n\t\tEnter


salary \t"); scanf("%u",&d.salary); fwrite(&d,sizeof(d),1,fp);

printf("\n\n\t\tWant to enter another info

(Y/N)\t"); fflush(stdin); another=getchar();

//====================DISPLAY THE LIST =================

void displayList(FILE * fp)

{ 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); printf("\n\n\t\tID : %d",d.id); printf("\n\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\tEnter ID of

Doctor to Delete the Record");

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.specialisation,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");

printf("\n\n\t\tEnter New Data for the Record"); printf("\n\n\t\tEnter

Full Name of Doctor\t"); 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 printf("\n\n\t!!!! ERROR !!!! RECORD NOT FOUND");

printf("\n\n\t"); system("pause");

//===========SEARCHING A RECORD ===========================

void searchRecord(FILE *fp)

{ 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",&tempRoll); rewind(fp); while((fread(&d,siz,1,fp))==1)

{ if(d.id==tempR

oll) {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);

} else printf("\n\n\t\t!!!! ERROR RECORD NOT FOUND

!!!!"); printf("\n\n\t\tWant to enter another search (Y/N)");

fflush(stdin); another=getchar(); } }
patient.c
#include<stdio.h>

#include<string.h>

#include<stdlib.h>

#include<math.h>

#define patient struct pat void add1(FILE * fp1); //to add to list

FILE * del1(FILE * fp1);//to delete from list void

modify1(FILE * fp1);//to modify a

record void displayList1(FILE * fp1);//display whole list

void searchRecord1(FILE *fp1);//find a particular record void

printChar(char ch,int

n);//printing a character ch n times struct pat

{ char name[100];

char pbm[50]; int

rno;

int pno;

}; int

main()

{
FILE * fp1;

patient p; int

option; char

another;

if((fp1=fope

n("patientInf

o.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\t1. ADD

Record");

printf("\n\n\t\t\t2. DELETE Record");

printf("\n\n\t\t\t3. MODIFY "); printf("\n\n\t\t\t4.

DISPLAY"); printf("\n\n\t\t\t5. Search

Record");

printf("\n\n\t\t\t0. EXIT"); printf("\n\n\t\tEnter Your


Option :--> "); 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;

//=========printing character ch at n times======= void

printChar(char ch,int n)

{ while(n--) { fflush(stdin); fgets(p.name,100,stdin); //fgets takes an extra

\n character as input

p.name[strlen(p.name)-1]='\0';

printf("\n\n\t\tEnter Patient's Problem \t");

fflush(stdin); fgets(p.pbm,50,stdin);
p.pbm[strlen(p.pbm)-1]='\0';

printf("\n\n\t\tEnter REGD NO \t");

scanf("%d",&p.rno); printf("\n\n\t\tEnter phone

number
\t"); scanf("%u",&p.pno);

fwrite(&p,sizeof(p),1,fp1); printf("\n\n\t\tWant to

enter another info (Y/N)\t"); fflush(stdin);

another=getchar();

//====================MODIFY THE LIST =================

void modify1(FILE * fp1)

patient p; int i,flag=0,tempRoll,siz=sizeof(p); printf("\n\n\tEnter

RNO of Patient to MODIFY the Record : "); printf("\n\n\t\tEnter ID \t");

scanf("%d",&p.rno);

printf("\n\n\t\tEnter Phone number\n\t"); scanf("%d",&p.pno); fwrite(&p,sizeof(p),1,fp1);

} else printf("\n\n\t!!!! ERROR !!!! RECORD NOT FOUND");

printf("\n\n\t"); system("pause");

}
//====================DISPLAY THE LIST ================= void displayList1(FILE *
fp1)

{ 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); printf("\n\n\t\tPATIENT

PROBLEM : %s",p.pbm);

printf("\n\n\t\t REGD NUMBER : %d",p.rno);

printf("\n\n\tPHONE NUMBER: %u",p.pno);

printChar('-',65);

printf("\n\n\n\t");

printChar('*',65);

printf("\n\n\t");

system("pause");

}
Sample Screen Shots

 The output screen shot for doctor.c source code :


 The output screenshot for patient.c source 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.

You might also like