7/31/2019 Hospital Mangemnt Software Word
1/35
TABLE OF CONTENTS
PROJECT DETAIL: ................................................................................................................3DATA STRUCTURE USED: .............................................................................................3MAIN FUNCTIONS: ..........................................................................................................3
MAIN FEATURES: ........................................................................................................3
PROGRAM: .............................................................................................................................4OUTPUT: ...............................................................................................................................25
ENTERING DATE: .......................................................................................................25
ENTERING PATIENTS DATA: ..................................................................................26
ERROR CHECKING: ...................................................................................................27VIEW OF PATIENTS IN DATABASE: ......................................................................27
DETAIL OF PATIENT: ................................................................................................28
MOVING BACK TO MAIN MENUE: ........................................................................28SEARCHING A PATIENT FROM DATABASE: ......................................................29
SEARCHING BY CITY: ..............................................................................................29
DETAILED VIEW OF SEARCHED PATIENT: ........................................................30SEARCH BY BLOOD GROUP: ..................................................................................31
DELETING AN ENTERY: ...........................................................................................33
RECYCLE BIN: ............................................................................................................33
RESTORING ENTERIES: ............................................................................................34ABOUT SOFTWARE: ..................................................................................................35
EXIT: .............................................................................................................................36
2
7/31/2019 Hospital Mangemnt Software Word
2/35
HOSPITAL MANGEMNT SOFTWARE:
Hospital Management Information System plays an important role in Information processing in health care.
It is the system used for the benefit of the hospital in which date are coherently stored in a database, from
where they are put at the disposal of authorized users at the place and at the time the data are required, in a
format adapted to the specific needs of the users. It has many advantages such as faster access, storage and
retrieval of data, cost effective, user friendly, more secure and involve less manpower.
PROJECT DETAIL:
DATA STRUCTURE USED:
Arrays
Structures
MAIN FUNCTIONS:
Add a new patient
View record of existing patient
Search a patient by city or blood group
Delete the record of dead or left patient
Recycle bin to view or restore the deleted record of patient
View the details about software
MAIN FEATURES:
Recurssion
Switch statement
Jump statement
Continue,break,exit
If-else statement
loops
3
7/31/2019 Hospital Mangemnt Software Word
3/35
7/31/2019 Hospital Mangemnt Software Word
4/35
char answer1;char s_city[30];
char exit_answer;char delete_confirm;char after_search_answer;}; //end of class "all"
class date //declaration for class "date"
{ private:
int date;int month;int year;
public:void enter_date();
void show_date();}; //end of class "date"class dob //declaration for class "dob"
{ private:struct dob1
{ int date;int month;int year;int rem;}DOB11[100];
public:char birth_answer;
void show_date();void enter_date();
void search_show_date();}; //end of class "dob"
//temporary variables declared with global scopeint m, i=0,j=0,k,d=0,e=0,f=0, rem,temp,count=0,regis, index,entry,serial=0;int attempt, current,d_index=0,ssi_count=0, show_count=0, delete_show=0;int search_index, delete_attempt=0, restore_attempt=0;
int search_count,current_year, delete_count=0, search_number, restore_serial;int entry_index[100], after_search_choice, after_restore_choice;char enter_now, restore_confirm, duplicate_answer, delete_all_confirm, restore_all_confirm, after_search_answer;
all A1; //object for class "all" declareddate D1; //object for class "date" declared
dob DOB1; //object for class "dob" declaredvoid all::tasks()
{ clrscr();
textbackground(3);textcolor(1);D1.show_date();cout
7/31/2019 Hospital Mangemnt Software Word
5/35
A1.delete_entry();break;}case 5:{
A1.recycle_bin(); break;}case 6:{
A1.software_detail(); break;}case 7:{
A1.exit_function(); break;}
default:{clrscr();cout
7/31/2019 Hospital Mangemnt Software Word
6/35
cout
7/31/2019 Hospital Mangemnt Software Word
7/35
{ cout
7/31/2019 Hospital Mangemnt Software Word
8/35
7/31/2019 Hospital Mangemnt Software Word
9/35
{ clrscr();coutanswer; } //end of "for loop" for entering information
cout
7/31/2019 Hospital Mangemnt Software Word
10/35
{case 1:
case 3:case 5:case 7:case 8:
case 10:
case 12:{ cin>>DOB11[temp].date; //for months with 31 dayswhile(DOB11[temp].date31){ cout
7/31/2019 Hospital Mangemnt Software Word
11/35
{continue;}}cout
7/31/2019 Hospital Mangemnt Software Word
12/35
cout
7/31/2019 Hospital Mangemnt Software Word
13/35
case 15:case 16:
case 17:case 18:case 19:case 20:{cout
7/31/2019 Hospital Mangemnt Software Word
14/35
clrscr();switch(s_choice)
{case 1:{ search_index=1;
cout
7/31/2019 Hospital Mangemnt Software Word
15/35
getch();A1.after_search_options(); }
if(search_count>1){cout
7/31/2019 Hospital Mangemnt Software Word
16/35
void all::search_show_info(){ ssi_count++;
clrscr();cout
7/31/2019 Hospital Mangemnt Software Word
17/35
}if(PI[index].sex==2)
{ cout
7/31/2019 Hospital Mangemnt Software Word
18/35
goto over; } } //end of switchswitch(rem)
{case 1:{
cout
7/31/2019 Hospital Mangemnt Software Word
19/35
break; } } //end of switch} //end of function
void all::delete_entry(){clrscr();if(current==0){cout
7/31/2019 Hospital Mangemnt Software Word
20/35
cin>>delete_confirm;while(delete_confirm!='Y'&&delete_confirm!='y'&&delete_confirm!='N'&&delete_confirm!='n')
{ coutdelete_confirm; }if(delete_confirm=='y'||delete_confirm=='Y'){ entry_index[en_del_index]=0; //entry now deleted. index value set to 0
current--;
cout
7/31/2019 Hospital Mangemnt Software Word
21/35
switch(delete_choice){
case 1:{A1.delete_entry();break; }
case 2:{A1.tasks();
break; } } //end of switch
} //end of function
void all::recycle_bin()
{ clrscr();delete_count=0;
if(serial==0){ cout
7/31/2019 Hospital Mangemnt Software Word
22/35
else{cout
7/31/2019 Hospital Mangemnt Software Word
23/35
case 2:{A1.tasks();
break;}default:{ cout
7/31/2019 Hospital Mangemnt Software Word
24/35
cout
7/31/2019 Hospital Mangemnt Software Word
25/35
ENTERING PATIENTS DATA:
26
7/31/2019 Hospital Mangemnt Software Word
26/35
ERROR CHECKING:
VIEW OF PATIENTS IN DATABASE:
27
7/31/2019 Hospital Mangemnt Software Word
27/35
DETAIL OF PATIENT:
MOVING BACK TO MAIN MENUE:
28
7/31/2019 Hospital Mangemnt Software Word
28/35
SEARCHING A PATIENT FROM DATABASE:
SEARCHING BY CITY:
29
7/31/2019 Hospital Mangemnt Software Word
29/35
DETAILED VIEW OF SEARCHED PATIENT:
30
7/31/2019 Hospital Mangemnt Software Word
30/35
SEARCH BY BLOOD GROUP:
31
7/31/2019 Hospital Mangemnt Software Word
31/35
32
7/31/2019 Hospital Mangemnt Software Word
32/35
DELETING AN ENTERY:
RECYCLE BIN:
33
7/31/2019 Hospital Mangemnt Software Word
33/35
RESTORING ENTERIES:
34
7/31/2019 Hospital Mangemnt Software Word
34/35
ABOUT SOFTWARE:
35
7/31/2019 Hospital Mangemnt Software Word
35/35
EXIT:
36
Top Related