KARNATAKA STATE OPEN UNIVERSITY MANASA GANGOTHRI, MYSORE- 570006

A PROJECT REPORT

Hospital Management System
for

B-Tech in Computer Science
Submitte b!

"eb#$i$ P#t%# &0&'()TC0*5
I+ ,#%ti#- .u-.i--me+t /. t0e %e1ui%eme+t 2/% t0e #3#% /. t0e e4%ee U+ e% t0e 4ui #+5e /.
"6S6 K#++#+, M6C6A6, M6P0i-

S0#%# # Vi7#$ T%u$t
N/6*508&8&*, 9+ .-//%6 (#7$0mi 5/m,-e:, &0t0 m#i+ 97t0 5%/$$, *t0 b-/57, J#!#+#4#%, )#+4#-/%e-&&

CERTI2ICATE

This is to certify that this project entitled Hospilat Management system submitted by Debasis patra with roll no 1013L T!0"# on 0$%13 to the KARNATAKA STATE OPEN UNIVERSITY & in partial fulfillment of the re'uirements for the award of ( th Semester& )-Te50 i+ C/m,ute% S5ie+5e& is a record of bonafied wor) underta)en by him* +ST,D-.T/ Signature2 .ame2 Date2 +ST,D3 !-.T4-/ Signature2 .ame2 Date2 Seal of Study !entre2 +0,1D-/ Signature%date2 Designation2

A57+/3-e 4eme+t

1 would li)e to e5press my deepest appreciation to all those who pro6ided me the possibility to complete this report* 7part from the efforts of myself the success of any project depends largely on the encouragement and guidelines of many others* 1 would li)e to show my greatest appreciation to D*S* 8annan& 1 can9t say than) you enough for his tremendous support and Help 1 feel moti6ated and encouraged e6ery lime 1 attend his meeting :ithout his encouragement and guidance this project would not ha6e materiali;ed The guidance and support recei6ed from all the members who contributed for this project was 6ital for the success of the project 1 am grateful for their constant support and help 1 ha6e to appreciate the guidance gi6en by him especially in the project guidelines& than)s to his comment and ad6ices*

HOSPITA( MANAGEMENT
PRO)(EM "ESCRIPTION;
This project is all about student mar) and its management* This project is to manage the student details including personal& academic and pro6iding mar) list in a college* This program also pro6ides immediate details needed in the student mar) management* This also pro6ides the & where it is located* This comple5 project has the scope of adding new employees doctors admitting outpatients& fi5ing appointments etc* This project also displays the ser6ices pro6ided to outpatient*

INTER2ACES;
o :elcome interface o Login interface o MD1 main interface o 7pplication interface o Doctor interface o -mployees interface o :ard interface o <utpatient interface o Ser6ices interface <E(COME INTER2ACE; 1n welcome interface& it includes just a progressing& intimates that the administrator is getting in the management program* (OGIN INTER2ACE; 1n login interface& we pro6ide authori;ation to the user getting in* M"I MAIN INTER2ACE; The multiple document interface& pro6ides base screen for all management program actions present in the management program* 1t contains menu bar which list the manipulation forms for management* APP(ICATION INTER2ACE; 7pplication interface pro6ides the basic accessories that is re'uired for certain essential operations* "OCTOR INTER2ACE; This interface pro6ides us the facilities such as 6iewing doctor=s details including his%her id& 'ualification and speciali;ation& address etc** 1t also display the list of doctors present in 6arious departments* :e can search a doctor by his id and then 6iew his details* This interface alsor pro6ides us the facility to add new doctors in* EMP(OYEES INTER2ACE;

&

This interface pro6ides us the facilities such as 6iewing employee=s details including his%her id& 'ualification& address etc** 1t also display the list of employees present in 6arious departments* :e can search an employee by his id and then 6iew his details* This interface also pro6ides us the facility to add new employees in* <AR" INTER2ACE; This interface pro6ides us the details about wards and the habited patients in those wards* OUTPATIENT INTER2ACE; This interface pro6ides us the information about the outpatients& what for they are in& appointments with doctor& bill details& time they are in etc** SERVICES INTER2ACE; This interface pro6ides us the information about the ser6ices present in that hospital& which time they are scheduled to be open& and the incharge administrator*

2UNCTIONA( CAPA)I(ITIES;
The basic functionalities of this hospital management system are2 1*This pro6ides the easy way of management to the administrator* >*Highly user defined* 3*The details about doctors& employees& patients can be maintained and managed in an easy manner due to presence of database*

PER2ORMANCE (EVE(;
?erformance wise this system pro6ide the opportunity to the user+administrator/ to manage the details about doctors& employees& patients in a great user defined manner* 7part from management it also entertains the user* 1t also pro6ides the basic accessories to the user+administrator/* This project is completely user friendly*

"ATA STRUCTURES;
The data related to 6arious fields are aligned in the database in the form of tables* <racle is used in the form of database* 7ll the details of the management system are maintained in the database and can be accessed when re'uired*

SA2ETY;
1* 7 person can login& only when he%she enters a correct username and password& e5cept& the new user who can register himself% herself*

RE(IA)I(ITY;
4eliability is highly concerned with user satisfaction* 7s per reliability is concerned& it pro6ides cent percent user satisfaction* 1t meets all the possible re'uirements of the user* The data are secured and thus pro6ides more reliability*

SECURITY AN" PRIVACY;
?roper security and pri6acy policy has been used to build this project* 7uthentication is the basic moti6e to precede the further processes* !orruption of database and software is not possible by any means*

=UA(ITY;
The most user friendly software& 6isual basic is used to build this project* This software is chec)ed for its wor)ing in e5ceptional conditions* The 6arious features used in this projet enhances the 'uality of the project* -ach and e6ery module indi6idually ser6es its purpose and ultimately pro6ides a 'uality product*

(IMITATIONS AN" CONSTRAINTS;

9

7part from all the 'uality features& the loss of data in database affects the whole system* 7lso 6isual basic is not a proper platform to wor) with& when compared to other software in this upcoming technology trends*

'

(OGIN 2ORM

(OGIN 2ORM CO"ING; ?ri6ate Sub @ormALoad+/ !all Shoc)wa6e@lash1*LoadMo6ie+0& B!2CDocuments and SettingsCfriendsCDes)topCD*swfB/ -nd Sub ?ri6ate Sub Shoc)wa6e@lash1A<n4eadyState!hange+newState 7s Long/ -nd Sub

*

?ri6ate Sub !ommand1A!lic)+/ 1f Trim+Te5t1*Te5t/ E Bcare"uB 7nd Trim+Te5t>*Te5t/ E BadminB Then MD1Main*Show -lse Msg o5 B1n6alid username or passwordB -nd 1f -nd Sub

M"I2ORM;

5

M"I 2ORM CO"ING;
?ri6ate Sub appA!lic)+/ applications*Show -nd Sub

?ri6ate Sub docA!lic)+/ doctors*Show -nd Sub

?ri6ate Sub enpA!lic)+/ employees*Show -nd Sub

?ri6ate Sub -5itA!lic)+/ -nd -nd Sub

?ri6ate Sub logoffA!lic)+/ login*Show -nd Sub

6

?ri6ate Sub outA!lic)+/ outpatient*Show -nd Sub

?ri6ate Sub Ser6iceA!lic)+/ ser6ices*Show -nd Sub

?ri6ate Sub Timer1ATimer+/ Status ar1*?anels+1/*Te5t E Time Status ar1*?anels+>/*Te5t E Date -nd Sub

?ri6ate Sub wardA!lic)+/ warddetails*Show -nd Sub

A"" "OCTOR 2ORM

7

A"" "OCTOR CO"ING;
<ption -5plicit Dim !n 7s 7D<D *!onnection ?ri6ate !onn 7s String Dim 4s 7s 7D<D *4ecordset

?ri6ate Sub !ommand1A!lic)+/
>

4s*7dd.ew !ommand1*Fisible E @alse !ommand>*Fisible E True -nd Sub ?ri6ate Sub !ommand>A!lic)+/ 4s+0/ E Fal+Te5t1*Te5t/ 4s+1/ E Te5t>*Te5t 4s+>/ E !ombo1*Te5t 4s+3/ E Te5t3*Te5t 4s+"/ E Te5t"*Te5t 4s+#/ E !ombo>*Te5t 4s+$/ E Te5t#*Te5t 4s+(/ E Fal+Te5t$*Te5t/ 4s+G/ E Fal+Te5t(*Te5t/ 4s*,pdate !ommand>*Fisible E @alse !ommand1*Fisible E True -nd Sub =HHModel1dE3-"$>$$!011 ?ri6ate Sub !ommand3A!lic)+/ 4s*Delete -nd Sub =HHModel1dE3-"$>$$!01>G ?ri6ate Sub !ommand"A!lic)+/

?

,nload Me -nd Sub =HHModel1dE3-"$>$$!01>I ?ri6ate Sub !ommand#A!lic)+/ Dim i 7s 1nteger Dim a 7s 1nteger aE0 i E 1nput o5+Benter the id to be searchedB/ 4s*Mo6e@irst :hile .ot 4s*-<@ 1f i E 4s+0/ Then aE1 Te5t1*Te5t E 4s+0/ Te5t>*Te5t E 4s+1/ !ombo1*Te5t E 4s+>/ Te5t3*Te5t E 4s+3/ Te5t"*Te5t E 4s+"/ !ombo>*Te5t E 4s+#/ Te5t#*Te5t E 4s+$/ Te5t$*Te5t E 4s+(/ Te5t(*Te5t E 4s+G/ -lse 4s*Mo6e.e5t -nd 1f

&0

:end 1f a E 0 Then Msg o5 +Benter a 6alid idB/ -nd 1f -nd Sub =HHModel1dE3-"$>$$!013G ?ri6ate Sub @ormALoad+/ !onn E B,1DEscottJ?:DEtigerJD41F-4EKMicrosoft <D ! for <racleLJB Set !n E .ew 7D<D *!onnection :ith !n *!onnectionString E !onn *!ursorLocation E ad,se!lient *<pen -nd :ith Set 4s E .ew 7D<D *4ecordset 4s*<pen BadddoctorsB& !n& ad<penDynamic& adLoc)<ptimistic& ad!mdTable Set Data0rid1*DataSource E 4s !ommand>*Fisible E @alse -5it Sub -nd Sub

&&

&9

SERVICES 2ORM;

SERVICES 2ORM CO"ING; <ption -5plicit = @orm Diposit Dim !n 7s 7D<D *!onnection ?ri6ate !onn 7s String Dim 4s 7s 7D<D *4ecordset

?ri6ate Sub Label1A!lic)+/

&'

!onn E B,1DEscottJ?:DEtigerJD41F-4EKMicrosoft <D ! for <racleLJB Set !n E .ew 7D<D *!onnection :ith !n *!onnectionString E !onn *!ursorLocation E ad,se!lient *<pen -nd :ith Set 4s E .ew 7D<D *4ecordset 4s*<pen Bser6icesB& !n& ad<penDynamic& adLoc)<ptimistic& ad!mdTable -nd Sub

APP(ICATION 2ORM;

&*

APP(ICATION 2ORM CO"ING;
?ri6ate Sub !ommand1A!lic)+/ Shell B.otepad*e5eB& 6b.ormal@ocus -nd Sub

?ri6ate Sub !ommand>A!lic)+/ Shell Bcalc*e5eB& 6b.ormal@ocus

&5

-nd Sub

?ri6ate Sub !ommand3A!lic)+/ Msg o5 BSure you want to log offB login*Show -nd Sub

?ri6ate Sub !ommand"A!lic)+/ ,nload Me -nd Sub ?ri6ate Sub @ormALoad+/ Label(*!aption E Time LabelG*!aption E Date -nd Sub

&6

&7

A"" OUTPATIENT 2ORM;

A"" OUTPATIENT 2ORM CO"ING;

?ri6ate Sub !ommand1A!lic)+/ 4s*7dd.ew !ommand1*Fisible E @alse
&>

!ommand>*Fisible E True -nd Sub

?ri6ate Sub !ommand>A!lic)+/ 4s+0/ E Te5t1*Te5t 4s+1/ E !ombo1*Te5t 4s+>/ E Te5t>*Te5t 4s+3/ E !ombo>*Te5t 4s+"/ E Fal+Te5t3*Te5t/ 4s+#/ E Fal+Te5t"*Te5t/ 4s+$/ E Fal+Te5t#*Te5t/ 4s+(/ E Fal+Te5t$*Te5t/ 4s+G/ E !ombo3*Te5t 4s*,pdate !ommand>*Fisible E @alse !ommand1*Fisible E True -nd Sub

?ri6ate Sub !ommand3A!lic)+/ r;*Delete -nd Sub

?ri6ate Sub !ommand"A!lic)+/ ,nload Me

&?

-nd Sub

?ri6ate Sub @ormALoad+/ !onn E B,1DEscottJ?:DEtigerJD41F-4EKMicrosoft <D ! for <racleLJB Set !n E .ew 7D<D *!onnection :ith !n *!onnectionString E !onn *!ursorLocation E ad,se!lient *<pen -nd :ith Set 4s E .ew 7D<D *4ecordset 4s*<pen B:ard DetailsB& !n& ad<penDynamic& adLoc)<ptimistic& ad!mdTable Set Data0rid1*DataSource E 4s !ommand>*Fisible E @alse -5it Sub -nd Sub

?ri6ate Sub !ommand#A!lic)+/ @ormI*Show -nd Sub

90

<AR" "ETAI(S 2ORM;

<AR" "ETAI(S 2ORM CO"ING;
<ption -5plicit
9&

Dim !n 7s 7D<D *!onnection ?ri6ate !onn 7s String Dim 4s 7s 7D<D *4ecordset

?ri6ate Sub Label1A!lic)+/ !onn E B,1DEscottJ?:DEtigerJD41F-4EKMicrosoft <D ! for <racleLJB Set !n E .ew 7D<D *!onnection :ith !n *!onnectionString E !onn *!ursorLocation E ad,se!lient *<pen -nd :ith Set 4s E .ew 7D<D *4ecordset 4s*<pen B:ard DetailsB& !n& ad<penDynamic& adLoc)<ptimistic& ad!mdTable -nd Sub

EMP(OYEES "ETAI(S 2ORM ;

99

EMP(OYEES "ETAI(S 2ORM CO"ING;
<ption -5plicit Dim !n 7s 7D<D *!onnection ?ri6ate !onn 7s String Dim 4s 7s 7D<D *4ecordset

?ri6ate Sub !ommand1A!lic)+/
9'

4s*7dd.ew !ommand1*Fisible E @alse !ommand>*Fisible E True -nd Sub ?ri6ate Sub !ommand>A!lic)+/ 4s+0/ E Fal+Te5t1*Te5t/ 4s+1/ E Te5t>*Te5t 4s+>/ E !ombo1*Te5t 4s+3/ E Te5t3*Te5t 4s+"/ E !ombo>*Te5t 4s+#/ E !ombo3*Te5t 4s+$/ E Fal+Te5t"*Te5t/ 4s+(/ E Te5t#*Te5t 4s+G/ E Te5t$*Te5t 4s+I/ E Fal+Te5t(*Te5t/ 4s*,pdate !ommand>*Fisible E @alse !ommand1*Fisible E True -nd Sub

?ri6ate Sub !ommand3A!lic)+/ 4s*Delete -nd Sub

9*

?ri6ate Sub !ommand"A!lic)+/ ,nload Me -nd Sub

?ri6ate Sub @ormALoad+/ !onn E B,1DEscottJ?:DEtigerJD41F-4EKMicrosoft <D ! for <racleLJB Set !n E .ew 7D<D *!onnection :ith !n *!onnectionString E !onn *!ursorLocation E ad,se!lient *<pen -nd :ith Set 4s E .ew 7D<D *4ecordset 4s*<pen BemployeeB& !n& ad<penDynamic& adLoc)<ptimistic& ad!mdTable Set Data0rid1*DataSource E 4s !ommand>*Fisible E @alse Set Data0rid1*DataSource E 4s -nd Sub

95

USE CASE "IAGRAM;

login

doctors

services Admin

database

employees

warddetails

outpatients

96

C(ASS "IAGRAM;

<< orm!!

splas&

<< orm!!

login
name

<<'() orm!!

'()'ain

<< orm!! << orm!!

<< orm!!

outpatient
Command1_Click() Command"_Click() Command#_Click() Command$_Click() orm_Load() Command%_Click()

doctors
Conn : String Command1_Click() Command"_Click() Command#_Click() Command$_Click() Command%_Click() orm_Load()

<< orm!! << orm!!

employees
Conn : String Command1_Click() Command"_Click() Command#_Click() Command$_Click() orm_Load()

<< orm!!

warddetails
Conn : String name Label1_Click()

services
Conn : String Label1_Click()

applications
Command1_Click() Command"_Click() Command#_Click() Command$_Click() orm_Load()

97

ACTIVITY "IAGRAM;

splas& login

mdi main

applicati ons

services

warddeta ils display wards

doctors

employe es

outpatien ts

important tools displays services

add employees and display add doctors and display

add outpatients and display

SE=UENCE "IAGRAM;
9>

Admin 1:

Login

'() 'ain

(octor

Services

Applications

*ut +atients

,mployee

-ard (etails

(ata

": Login #: (octor $: .o add or delete or searc& or update doctor/s details %: 0eturn doctor1s details 2: Services 3: .o view services 4: 0eturn services 5: Applications 16: *ut +atients

11: .o add or delete or searc& or update patient deta 1": 0eturn patient details 1#: ,mployee

1$: .o add or delete or searc& or update emp 1%: 0eturn employee details 12: -ard details

13: 7iew ward deta

14: (isplay ward de

9?

CONC(USION;
The Fisual asic project for Hospital Management was completed successfully and e5ecuted using oracle database connection* This system was tested and pro6ed for bug free project*

'0