0% found this document useful (0 votes)
70 views

Hospital Management System

This document discusses a hospital management system project that aims to develop a computerized system to manage various aspects of a hospital's operations. It will keep records of employees, doctors, patients, accounts, and generate reports. The system will use Microsoft Visual Basic and Oracle database. It provides an overview of the system's modules and objectives like keeping records of patient admission and doctors' schedules. It also includes the entity relationship diagram and discusses converting it to tables.

Uploaded by

AnkitThakkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views

Hospital Management System

This document discusses a hospital management system project that aims to develop a computerized system to manage various aspects of a hospital's operations. It will keep records of employees, doctors, patients, accounts, and generate reports. The system will use Microsoft Visual Basic and Oracle database. It provides an overview of the system's modules and objectives like keeping records of patient admission and doctors' schedules. It also includes the entity relationship diagram and discusses converting it to tables.

Uploaded by

AnkitThakkar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 56

HOSPITAL MANAGEMENT SYSTEM

INTRODUCTION
Visual Basic is an interesting topic, wic as !i""erent t#pes$ It as all te
%eto!s a&e teir won "eatures wit eac a&ing %erits an! !e%erits wic elp in
!ata processing$ Te topic inclu!es teir arcitecture representing te ele%ents
in&ol&e! in it an! teir action is also speci"ie!$
Visual Basic '$( allows creating o)*ect+oriente! applications$ Visual Basic '$(
pro"oun!l# concentrates on te Internet !e&elop%ent "eatures, Acti&e , tecnolog#,
enance! controls, enance! "eatures o" e-isting control, client.ser&er, new language
"eatures !e&elop%ent, !ata access, a "ew !esign enance%ent etc$,
/elational !ata)ases are logical collection o" inter+relate! !ata in ta)ular "or%
relational !ata)ases a&e alwa#s )een core to an# %anage%ent s#ste%$ Its rele&ance
is pro"oun! an! ence te nee! to incorporate new "unctionalities, utilities )eco%es
i%portant$ Tese are currentl# te pre!o%inant coice in storing "inancial recor!s
%anu"acturing an! logistical in"or%ation, personnel !ata an! %uc %ore$
/elational !ata)ases are use! in uge %anage%ent s#ste%s li0e Post O""ice,
Ban0ing, /ailwa#, 1e"ence Logistics$ 1ata)ases pertaining to E!ucational Institutions
an! oter large collection o" relate! !ata$
/elational !ata)ases a&e largel# replace! ierarcical !ata)ases an! networ0
!ata)ases )ecause te# are eas# to un!erstan! an! use e&en toug te# are %uc less
e""icient$ Te# a&e )een owe&er callenge! )# O)*ect 1ata)ases an! ,ML
!ata)ases$
Te tree lea!ing co%%ercial relational !ata)ase &en!ors are Oracle,
Microso"t, an! IBM$Te tree lea!ing open Source i%ple%entations are
M#S2L,PostgreS2L, an! S2Lite$
Te so"twar co%ponents use! in our pro*ect are as un!er3
4$ Microso"t Visual Basic '$(
5$ Oracle 6 !ata)ase

4

HOSPITAL MANAGEMENT SYSTEM
OVERVIEW
A 7HOSPITAL MANAGEMENT SYSTEM88 is a co%puteri9e!
%anage%ent s#ste%$ Tis %anage%ent s#ste% as )een !e&elope! to "or% wole
%anage%ent s#ste% inclu!ing E%plo#ees, 1octors :consultants;, Nurses, Patients,
Bills, an! <o%plains etc$ Tis s#ste% also 0eeps te recor!s o" ar!ware assets
)esi!es so"tware o" tis organi9ation$ Te propose! s#ste% will 0eep a trac0 o"
E%plo#ees, 1octors, Patients, Accounts an! generation o" report regar!ing te present
status$ Tis pro*ect as G=I )ase! so"tware tat will elp in storing, up!ating an!
retrie&ing te in"or%ation troug &arious user+"rien!l# %enu+!ri&en %o!ules.
INTRODUCTION
Healt o" citi9en is te wealt o" Nation$ In!ia as contri)ute! te %ost ancient
Me!ical science 7AYURVEDA> to te worl! )esi!es oter Me!ical sciences$ Tis
"iel! a! witnesse! a rapi! %eta%orposis in all o" its sections$ ?it i%%ensel#
increasing a!&ance%ent in te "iel! o" tecnolog#, a%)it o" %e!ical sciences as
enlarge! %a0ing it %ore sopisticate!, !iagnosis an! cure+oriente!$ ?it te a!&ent
o" 54st centur#, Healt care as )eco%e an in!ustr# a&ing tre%en!ous potential$
Tis centur# witnesse! a giant leap in in"or%ation tecnolog#$ <o%puters are not
onl# use! to !iagnose te illness or "or !oing surger# wit one un!re! percent
accurac#, )ut also te# are use! to increase te e""icienc# in all "iel!s ranging "ro%
"i-ing te appoint%ent wit te 1octor to 0eeping te recor! o" te Patient$
So"tware application can pro&i!e solution an! ser&ices "or te glo)al ealt care
in!ustr#$ B# using te cutting e!ge tecnologies, Hospital Manage%ent can )e
i%pro&e! wit e""icient wor0 "low an! co%%unication$ An# ti%e an# were "acilities
o" te INTERNET a&e elpe! te Me!ical "iel!s to integrate into a single unit$
Various Hospitals across te glo)e can )e connecte! togeter$ Te# can sare
in"or%ation an! e&en ser&ices$ 1etails o" te Patients, teir pre&ious &isits etc$ are
totall# not percepti)le witout a co%puter$ /ele&ant In"or%ations are alwa#s store! in
te co%puter an! are a&aila)le instantl# in "ront o" te user$
Me!ical Transcription, one o" te latest tecnologies in ealt worl! pro&i!e!
wit Internet "acilities elps patient8s interaction wit !i""erent Healt E-perts o"
te worl! "or an astute clinical anal#sis as i" treat%ent is going on at is o%e an!
!oorstep$
OBJECTIVES OF THE PROJECT
Te pro*ect 7Hospital Manage%ent S#ste%> is ai%e! to !e&elop to %aintain
te !a#+to+!a# state o" a!%ission.!iscarge o" Patients, List o" 1octors :<onsultants;,
List o" %e!icines, Bills etc$
Tere are "ollowing %ain o)*ecti&es o" te Hospital:
@eeping recor!s o" a!%ission o" patient$
@eeping patient+care as ut%ost priorit#$
Sce!uling te appoint%ent o" Patient wit 1octor :<onsultant; to %a0e

4

HOSPITAL MANAGEMENT SYSTEM
it con&enient "or )ot$
Sce!uling te ser&ices o" speciali9e! 1octor :<onsultant; an! e%ergenc#
properl# so tat "acilities pro&i!e! )# Hospital are "ull# utili9e! in e""ecti&e
an! e""icient %anner$
@eeping recor!s o" Me!icine !epart%ent in a %eticulousl# arrange! or!er so
tat te treat%ent o" Patient )eco%es Auic0 an! satis"actor#$
@eeping !etails a)out te consultants, teir Prescriptions an! treat%ents,
surger# reports etc$
@eeping te )est la)orator# "acilities an! !iagnostic tools "or earl# an! clear
1iagnosis o" te !isease an! earl# cure an! !isposal o" te patient$
@eeping e-plicit !etails a)out te patient8s !iseases, !iagnosis an!
%anage%ent "or co%preensi&e researc$
@eeping te recor!s o" salar# structure o" te e%plo#ees o" Hospital )# )illing
approac$

4

HOSPITAL MANAGEMENT SYSTEM

E-R DIAGRAM

4

HOSPITAL MANAGEMENT SYSTEM

4

HOSPITAL MANAGEMENT SYSTEM

4

HOSPITAL MANAGEMENT SYSTEM
CONVERTING ER DIAGRAM INTO TABLES

1. Conve!"n# $!on# en!"!% !%&e$
Eac single &alue! attri)ute )eco%es a colu%n
1eri&e! attri)utes are ignore!
<o%posite attri)utes are represente! )# co%ponents
Eac entit# t#pe )eco%es a ta)le
Multi+&alue! attri)utes are represente! )# a separate ta)le
@e# attri)utes o" te entit# t#pe is te Pri%ar# @e#
'. Conve!"n# (e)* en!"!% !%&e$
+. Conve!"n# e,)!"on$-"&$
/elationsips are )ase! on car!inalities an! !egree o" te relation
B"n)% n:1
so "ro% tis relation 43n two separate ta)les will )e "or%e! na%e! as
!octor an! patient an! te# will )e *oine! )# a "oreign 0e# !eptBi!$

4
PATIENT
PATIENT_
IDD
PAT_NAM
E
D_O_
B
DEPT_I
D
BLD_G
RP
PHN_N
O
FATHERS_NA
ME
DOC_F
EE

SEX
PATIENT
DOCTOR
S
IS
APPOIN
TED

HOSPITAL MANAGEMENT SYSTEM
B"n)% 1:1
B"n)% .:n

4
PATIENT
BILL
TRANS
ACTS
PATIENT
DOCTOR
IS
APPOIN
TED
M
N
1 1

HOSPITAL MANAGEMENT SYSTEM
TABLE STRUCTURES
Te structure o" all ta)les inclu!e! in te pro*ect is as un!er3+
1.PATIENT
Na%e NullC T#pe
+++++++++++++++++++++++++++++++++++++++++ ++++++++ ++++++++++++++++++++++++++++
DPATIENTBI1 NOT N=LL N=MBE/:4(;
PATBNAME NOT N=LL VA/<HA/5:5(;
1BOBB NOT N=LL 1ATE
1O<BEEE NOT N=LL VA/<HA/5:4(;
EATHE/SBNAME NOT N=LL VA/<HA/5:5(;
PHNBNO NOT N=LL N=MBE/:44;
BL1BG/P NOT N=LL VA/<HA/5:F;
G 1EPTBI1 NOT N=LL N=MBE/:4(;
SE, NOT N=LL VA/<HA/5:4(;
CONSTRAINTS:
S2LH select colu%nBna%e,constraintBna%e,position "ro% =serBconsBcolu%ns
?HE/E TABLEBNAMEIJPATIENTJK
<OL=MNBNAME
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<ONST/AINTBNAME POSITION
++++++++++++++++++++++++++++++ ++++++++++
PATIENTBI1
PATP@ 4

4

HOSPITAL MANAGEMENT SYSTEM
1EPTBI1
PATE@ 4

'.DOCTOR
Na%e NullC T#pe
+++++++++++++++++++++++++++++++++++++++++ ++++++++ ++++++++++++++++++++++++++++
1O<TBNAME NOT N=LL VA/<HA/5:5F;
2=ALIEI<ATION NOT N=LL VA/<HA/5:4F;
1BOBB NOT N=LL 1ATE
SALA/Y NOT N=LL VA/<HA/5:L;
EATHE/SBNAME NOT N=LL VA/<HA/5:5(;
PHNBNO NOT N=LL N=MBE/:44;
EMAILBI1 NOT N=LL VA/<HA/5:5F;
D1O<TO/BI1 NOT N=LL N=MBE/:4(;
G 1EPTBI1 NOT N=LL N=MBE/:4(;
CONSTRAINTS:
S2LH select colu%nBna%e,constraintBna%e,position "ro% =serBconsBcolu%ns
?HE/E TABLEBNAMEIJ1O<TO/JK
<OL=MNBNAME
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<ONST/AINTBNAME POSITION
++++++++++++++++++++++++++++++ ++++++++++
1O<TO/BI1
1O<P@ 4
1EPTBI1

4

HOSPITAL MANAGEMENT SYSTEM
1O<E@ 4
+ . NURSE
Na%e NullC T#pe
+++++++++++++++++++++++++++++++++++++++++ ++++++++ ++++++++++++++++++++++++++++
N=/BNAME NOT N=LL VA/<HA/5:5(;
2=ALIEI<ATION NOT N=LL VA/<HA/5:5(;
1BOBB NOT N=LL 1ATE
SALA/Y NOT N=LL VA/<HA/5:L;
EATHE/SBNAME NOT N=LL VA/<HA/5:5(;
DN=/BI1 NOT N=LL N=MBE/:4(;
G1EPTBI1 NOT N=LL N=MBE/:4(;
CONSTRAINTS:
S2LH select colu%nBna%e,constraintBna%e,position "ro% =serBconsBcolu%ns
?HE/E TABLEBNAMEIJN=/SEJK
<OL=MNBNAME
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<ONST/AINTBNAME POSITION
++++++++++++++++++++++++++++++ ++++++++++
N=/BI1
N=/P@ 4
1EPTBI1
N=/E@ 4
/. DEPARTMENT

4

HOSPITAL MANAGEMENT SYSTEM
Na%e NullC T#pe
+++++++++++++++++++++++++++++++++++++++++ ++++++++ ++++++++++++++++++++++++++++
D1EPTBI1 NOT N=LL N=MBE/:4(;
1EPTBNAME NOT N=LL VA/<HA/5:5(;
1EPTB1O<TO/ NOT N=LL VA/<HA/5:5(;
1EPTBHEA1 NOT N=LL VA/<HA/5:5(;
1EPTBSALA/Y NOT N=LL VA/<HA/5:4(;
PHNBNO NOT N=LL N=MBE/:44;
CONSTRAINTS:
S2LH select colu%nBna%e,constraintBna%e,position "ro% =serBconsBcolu%ns
?HE/E TABLEBNAMEIJ1EPA/TMENTJK
<OL=MNBNAME
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<ONST/AINTBNAME POSITION
++++++++++++++++++++++++++++++ ++++++++++
1EPTBI1
1EPTP@ 4
0.BILL
Na%e NullC T#pe
+++++++++++++++++++++++++++++++++++++++++ ++++++++ ++++++++++++++++++++++++++++
D BILLBNO NOT N=LL VA/<HA/5:4(;
GPATIENTBI1 NOT N=LL N=MBE/:4(;
ME1BAMT NOT N=LL N=MBE/:4(;
1IAGNOSISBEEE NOT N=LL N=MBE/:4(;
1O<TBEEE NOT N=LL N=MBE/:4(;

4

HOSPITAL MANAGEMENT SYSTEM
BILLB1ATE NOT N=LL 1ATE
MO1EBPAY NOT N=LL VA/<HA/5:5(;
CONSTRAINTS:
S2LH select colu%nBna%e,constraintBna%e,position "ro% =serBconsBcolu%ns
?HE/E TABLEBNAMEIJBILLJK
<OL=MNBNAME
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<ONST/AINTBNAME POSITION
++++++++++++++++++++++++++++++ ++++++++++
BILLBNO
BILLP@ 4
PATIENTBI1
BILLE@ 4
1.SCHEDULE
Na%e NullC T#pe
+++++++++++++++++++++++++++++++++++++++++ ++++++++ ++++++++++++++++++++++++++++
DGEMPBI1 NOT N=LL N=MBE/:4(;
DSHIET NOT N=LL VA/<HA/5:5(;
D1ATES NOT N=LL 1ATE
<ONST/AINTS3
S2LH select colu%nBna%e,constraintBna%e,position "ro% =serBconsBcolu%ns
?HE/E TABLEBNAMEIJS<HE1=LEJK
<OL=MNBNAME
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<ONST/AINTBNAME POSITION
++++++++++++++++++++++++++++++ ++++++++++
EMPBI1

4

HOSPITAL MANAGEMENT SYSTEM
S<P@ 4
SHIET
S<P@ 5
1ATES
S<P@ M
EMPBI1
S<E@ 4
2.ROOMS
Na%e NullC T#pe
+++++++++++++++++++++++++++++++++++++++++ ++++++++ ++++++++++++++++++++++++++++
D,GPATIENTBI1 NOT N=LL N=MBE/:4(;
DBE1BNO NOT N=LL N=MBE/:';
TYPE <HA/:4F;
<HA/GES N=MBE/:';
ALLOB1ATE 1ATE
CONSTRAINTS:
S2LH select colu%nBna%e,constraintBna%e,position "ro% =serBconsBcolu%ns
?HE/E TABLEBNAMEIJ/OOMSJK
<OL=MNBNAME
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<ONST/AINTBNAME POSITION
++++++++++++++++++++++++++++++ ++++++++++
PATIENTBI1
/MP@ 4
BE1BNO

4

HOSPITAL MANAGEMENT SYSTEM
/MP@ 5
PATIENTBI1
/ME@ 4
3.APPOINTMENT
Na%e NullC T#pe
+++++++++++++++++++++++++++++++++++++++++ ++++++++ ++++++++++++++++++++++++++++
D,GPATIENTBI1 NOT N=LL N=MBE/:4(;
D,G1O<TO/BI1 NOT N=LL N=MBE/:4(;
DAPPB1ATE NOT N=LL 1ATE
P/ES</IPTION <HA/:N(;
1ES</IPTION VA/<HA/5:N(;
CONSTRAINTS:
S2LH select colu%nBna%e,constraintBna%e,position "ro% =serBconsBcolu%ns
?HE/E TABLEBNAMEIJAPPOINTMENTJK
<OL=MNBNAME
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
<ONST/AINTBNAME POSITION
++++++++++++++++++++++++++++++ ++++++++++
PATIENTBI1
APP@ 4
1O<TO/BI1
APP@ 5
APPB1ATE
APP@ M
1O<TO/BI1
APE@ 4
PATIENTBI1
APPE@ 4
4.MEDICINE
Na%e NullC T#pe
+++++++++++++++++++++++++++++++++++++++++ ++++++++ ++++++++++++++++++++++++++++
DME1B<O1E NOT N=LL N=MBE/:4(;
ME1BNAME NOT N=LL VA/<HA/5:45;

4

HOSPITAL MANAGEMENT SYSTEM
MAN=EA<TBNAME NOT N=LL VA/<HA/5:45;
MEGB1ATE NOT N=LL 1ATE
ME1BTYPE NOT N=LL VA/<HA/5:4F;
E,PB1ATE NOT N=LL 1ATE
BAT<HBNO N=MBE/:4(;
CONSTRAINTS:
S2LH select colu%nBna%e,constraintBna%e,position "ro% =serBconsBcolu%ns
?HE/E TABLEBNAMEIJME1I<INEJK
<OL=MNBNAME
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<ONST/AINTBNAME POSITION
++++++++++++++++++++++++++++++ ++++++++++
ME1B<O1E
ME1P@ 4

4

HOSPITAL MANAGEMENT SYSTEM
NORMALISATION
Normalisation is a %eto! "or organi9ing !ata ele%ents in a !ata)ase into ta)les$
It 0eeps trac0 to 0eep te !ata)ase less &ulnera)le to so%e t#pes o" logical
inconsistencies an! ano%alies$Ta)lescan )e nor%ali9e! to &ar#ing !egrees li0e
"irst,secon!,B<NE$Greater te !egree o" nor%ali9ation %ore is te protecte! "ro%
inconsistencies an! ano%alies$Te ta)les %a# )e nor%ali9e! un!er te "ollowing
gui!eline3
1. 1NF
1EEINITION3
A relation sce%a is in 4NE i" all o" its attri)utes are3
S"n#,e v),5e6
/estricte! to assu%ing ato%ic &alues
Eunctionall# !epen!ent on te pri%ar# 0e#
All ta)les "ollows te a)o&e con!itions an! rules ,so te# are in 4NE$All
attri)utes are single &alue!$
'. 'NF
1EEINITION3
A relational ta)le is sai! to )e in secon! nor%al "or% 5NE i" it is in 4NE an!
e&er# non+0e# attri)ute is "ull# "unctionall# !epen!ent upon pri%ar# 0e#$
Te criteria "or secon! nor%ale "or%:5NE; are3
Te ta)le %ust )e in ONE$
E&er# non+0e# attri)utes o" te ta)le %ust )e !epen!ent upon te
entire pri%ar# 0e#$
In Patient,Doctor,Nurse, tables all te
att!"b#tes a!e t$tall% &e'en&ent $n te &e't_"&.
In (Bill table all att!"b#tes a!e &e'en&ent $n b"ll_n$.
S$ all tables a!e "n ) NF

4

HOSPITAL MANAGEMENT SYSTEM
+. +NF
1EEINITION3
A relation is in MNE i" an! onl# i",it is in 5NE an! tere are no
transiti&e "unctional !epen!encies$
Transiti&e "unctional !epen!encies arise$
?en one non+0e# attri)ute is "unctionall# !epen!ent on anoter non+
0e# attri)ute$
Eunctional 1epen!enc#3non+0e# attri)uteHnon+0e# attri)ute$
?en tere is re!un!anc# in te !ata)ase$
7S7-e65,e8 ta)le is in MNE )ecause all te attri)utes are pri%ar# 0e#$
B# !e"inition transiti&e "unctional !epen!enc# can onl# occur i" tere is %ore
tan one non+0e# "iel!,so we can sa# tat a relation in 5NE wit 9ero or one
non+0e# "iel! %ust auto%aticall# )e in MNE$All ta)les are in MNE too$

4

HOSPITAL MANAGEMENT SYSTEM
CODE
FORM1-ADDDOCTOR
Pri&ate Su) !octor:;
Set rs I New A1O1B$/ecor!set
rs$<ursorT#pe I a!Open1#na%ic
rs$Loc0T#pe I a!Loc0Opti%istic
rs$Open P!octorP, cn, , , a!<%!Ta)le
Set r0 I rs
Set Te-t5$1ataSource I r0
Te-t5$1ataEiel! I P!octBna%eP
Set Te-tN$1ataSource I r0
Te-tN$1ataEiel! I PAuali"icationP
Set Te-tM$1ataSource I r0
Te-tM$1ataEiel! I P!BoB)P
Set Te-t'$1ataSource I r0
Te-t'$1ataEiel! I Psalar#P
Set Te-tQ$1ataSource I r0
Te-tQ$1ataEiel! I P"atersBna%eP
Set Te-tL$1ataSource I r0
Te-tL$1ataEiel! I PpnBnoP
Set Te-t6$1ataSource I r0
Te-t6$1ataEiel! I Pe%ailBi!P
Set Te-t4$1ataSource I r0
Te-t4$1ataEiel! I P!octorBi!P

4

HOSPITAL MANAGEMENT SYSTEM
Set Te-tF$1ataSource I r0
Te-tF$1ataEiel! I P!eptBi!P
Set <o%)o4$1ataSource I r0
<o%)o4$1ataEiel! I PSE,P
En! Su)
Pri&ate Su) c%!5B<lic0:In!e- As Integer;
=nloa! Me
En! Su)
Pri&ate Su) c%!MB<lic0:In!e- As Integer;
On Error GoTo error!esc
r0$Mo&eEirst
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all !octor
En! Su)
Pri&ate Su) c%!NB<lic0:In!e- As Integer;
On Error GoTo error!esc
I" :r0$EOE I True; Ten
r0$Mo&eEirst
Else
r0$Mo&eNe-t
En! I"
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;

4

HOSPITAL MANAGEMENT SYSTEM
<all !octor
En! Su)
1i% ai! As String
ai! I InputBo-:PEnter te !octor i! to searcP, PsearcP, Pi!P;
sA0 I Pselect D "ro% !octor were !octorBi! I P R Val:ai!;
Set r0 I New A1O1B$/ecor!set
Set rs I New A1O1B$/ecor!set
r0$<ursorT#pe I a!Open1#na%ic
r0$Loc0T#pe I a!Loc0Opti%istic
r0$Open sA0, cn, , , a!<%!Te-t
rs$<ursorT#pe I a!Open1#na%ic
rs$Loc0T#pe I a!Loc0Opti%istic
rs$Open P!octorP, cn, , , a!<%!Ta)le
I" r0$EOE I True Ten
MsgBo- P !octor i! not e-istP
Set r0 I rs
En! I"
Set Te-t5$1ataSource I r0
Te-t5$1ataEiel! I P!octBna%eP
Set Te-tN$1ataSource I r0
Te-tN$1ataEiel! I PAuali"icationP
Set Te-tM$1ataSource I r0
Te-tM$1ataEiel! I P!BoB)P
Set Te-t'$1ataSource I r0
Te-t'$1ataEiel! I Psalar#P
Set Te-tQ$1ataSource I r0

4

HOSPITAL MANAGEMENT SYSTEM
Te-tQ$1ataEiel! I P"atersBna%eP
Set Te-tL$1ataSource I r0
Te-tL$1ataEiel! I PpnBnoP
Set Te-t6$1ataSource I r0
Te-t6$1ataEiel! I Pe%ailBi!P
Set Te-t4$1ataSource I r0
Te-t4$1ataEiel! I P!octorBi!P
Set Te-tF$1ataSource I r0
Te-tF$1ataEiel! I P!eptBi!P
Set <o%)o4$1ataSource I r0
<o%)o4$1ataEiel! I PSE,P
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all !octor
En! Su)
FORM'-ADDMEDICINES
Pri&ate Su) c%!4(B<lic0:In!e- As Integer;
1i% %e!icineno As Integer
%e!icineno I 4
sA0 I PSELE<T %e!Bco!e E/OM :SELE<T %e!Bco!e E/OM %e!icine O/1E/
BY %e!Bco!e !esc; ?HE/E /O?N=M SI 4 P
Set r0 I New A1O1B$/ecor!set
r0$<ursorT#pe I a!Open1#na%ic
r0$Loc0T#pe I a!Loc0Opti%istic
r0$Open sA0, cn, , , a!<%!Te-t

4

HOSPITAL MANAGEMENT SYSTEM
%e!icineno I r0$Eiel!s:(;
Te-t4$Te-t I %e!icineno T 4
r0$<lose
Te-t5$Te-t I P P
Te-tM$Te-t I P P
Te-tQ$Te-t I P P
Te-t'$Te-t I P P
Te-tF$Te-t I P P
Te-tN$Te-t I P P
En! Su)
Pri&ate Su) c%!5B<lic0:In!e- As Integer;
=nloa! a!!%e!icines
En! Su)
Pri&ate Su) c%!MB<lic0:In!e- As Integer;
On Error GoTo error!esc
r0$Mo&eEirst
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all %e!icine
En! Su)
Pri&ate Su) c%!NB<lic0:In!e- As Integer;
On Error GoTo error!esc
I" :r0$EOE I True; Ten
r0$Mo&eEirst
Else

4

HOSPITAL MANAGEMENT SYSTEM
r0$Mo&eNe-t
En! I"
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all %e!icine
En! Su)
Pri&ate Su) c%!FB<lic0:In!e- As Integer;
On Error GoTo error!esc
r0$Mo&eLast
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all %e!icine
En! Su)
Pri&ate Su) c%!'B<lic0:In!e- As Integer;
On Error GoTo error!esc
I" :r0$BOE I True; Ten
r0$Mo&eLast
Else
r0$Mo&ePre&ious
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all %e!icine
En! Su)

4

HOSPITAL MANAGEMENT SYSTEM
Pri&ate Su) c%!6B<lic0:In!e- As Integer;
On Error GoTo error!esc
r0$A!!New
r0$=p!ate
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all %e!icine
En! Su)
Pri&ate Su) %e!icine:;
Set rs I New A1O1B$/ecor!set
rs$<ursorT#pe I a!Open1#na%ic
rs$Loc0T#pe I a!Loc0Opti%istic
rs$Open P%e!icineP, cn, , , a!<%!Ta)le
Set r0 I rs
Set Te-t5$1ataSource I r0
Te-t5$1ataEiel! I PME1BNAMEP
Set Te-tN$1ataSource I r0
Te-tN$1ataEiel! I PME1BTYPEP
Set Te-tM$1ataSource I r0
Te-tM$1ataEiel! I PMAN=EA<TBNAMEP
Set Te-t'$1ataSource I r0
Te-t'$1ataEiel! I PMEGB1ATEP
Set Te-tQ$1ataSource I r0
Te-tQ$1ataEiel! I PE,PB1ATEP
Set Te-t4$1ataSource I r0

4

HOSPITAL MANAGEMENT SYSTEM
Te-t4$1ataEiel! I PME1B<O1EP
Set Te-tF$1ataSource I r0
Te-tF$1ataEiel! I P)atcBnoP
En! Su)
FORM+-ADDMISSIONPATIENT
1i% "lag As Integer
Pri&ate Su) patient:;
Set rs I New A1O1B$/ecor!set
rs$<ursorT#pe I a!Open1#na%ic
rs$Loc0T#pe I a!Loc0Opti%istic
rs$Open PpatientP, cn, , , a!<%!Ta)le
Set r0 I rs
Set Te-t4$1ataSource I r0
Te-t4$1ataEiel! I PpatientBi!P
Set Te-t5$1ataSource I r0
Te-t5$1ataEiel! I PpatBna%eP
Set <o%)o5$1ataSource I r0
<o%)o5$1ataEiel! I Pse-P
Set Te-tN$1ataSource I r0
Te-tN$1ataEiel! I P!ocB"eeP
Set Te-tF$1ataSource I r0
Te-tF$1ataEiel! I P"atersBna%eP
Set Te-t'$1ataSource I r0
Te-t'$1ataEiel! I PpnBnoP
Set Te-tL$1ataSource I r0

4

HOSPITAL MANAGEMENT SYSTEM
Te-tL$1ataEiel! I P!eptBi!P
Set Te-t6$1ataSource I r0
Te-t6$1ataEiel! I P!BoB)P
Set Te-t4($1ataSource I r0
Te-t4($1ataEiel! I P!iseaseP
En! Su)
Pri&ate Su) c%!4(B<lic0:In!e- As Integer;
1i% patientno As Integer
patientno I 4
sA0 I PSELE<T patientBi! E/OM :SELE<T patientBi! E/OM patient O/1E/ BY
patientBi! !esc; ?HE/E /O?N=M SI 4 P
Set r0 I New A1O1B$/ecor!set
r0$<ursorT#pe I a!Open1#na%ic
r0$Loc0T#pe I a!Loc0Opti%istic
r0$Open sA0, cn, , , a!<%!Te-t
patientno I r0$Eiel!s:(;
Te-t4$Te-t I patientno T 4
r0$<lose
Te-t5$Te-t I P P
Te-tL$Te-t I P P
Te-t6$Te-t I P P
<o%)o5$Te-t I P P
Te-t'$Te-t I P P
Te-tF$Te-t I P P
Te-tN$Te-t I P P
En! Su)
error!esc3

4

HOSPITAL MANAGEMENT SYSTEM
i I MsgBo-:Err$1escription, &)<ritical;
<all patient
En! Su)
Pri&ate Su) c%!6B<lic0:In!e- As Integer;
=nloa! Me
En! Su)
Pri&ate Su) Te-t4BLostEocus:;
1i% ai! As Integer
1i% 9 As Integer
ai! I Te-t4$Te-t
sA0 I Pselect D "ro% patient were patientBi!I P R Val:ai!;
Set rs I New A1O1B$/ecor!set
rs$<ursorT#pe I a!Open1#na%ic
rs$Loc0T#pe I a!Loc0Opti%istic
rs$Open sA0, cn, , , a!<%!Te-t
I" :rs$EOE I True; Ten
Else
9 I rs$Eiel!s:(;
En! I"
I" :9 I ai!; Ten
MsgBo- PEnter 1i""erent I!, tis i! alrea!# e-istOO$$$$$$$$P
Te-t4$Te-t I PP
Te-t4$SetEocus
En! I"
En! Su)
FORM0-APPOINTMENT

4

HOSPITAL MANAGEMENT SYSTEM
Pri&ate Su) <o%%an!4B<lic0:;
Set r0 I New A1O1B$/ecor!set
r0$<ursorT#pe I a!Open1#na%ic
r0$Loc0T#pe I a!Loc0Opti%istic
r0$Open Pappoint%entP, cn, , , a!<%!Ta)le
r0$A!!New
r0$Eiel!s:(; I Te-t4$Te-t
r0$Eiel!s:4; I Te-t5$Te-t
r0$Eiel!s:5; I Te-tM$Te-t
r0$Eiel!s:M; I Te-tF$Te-t
r0$=p!ate
=nloa! Me
En! Su)
Pri&ate Su) Eor%BLoa!:;
On Error /esu%e Ne-t
Te-t4$Te-t I a!!%issionpatient$Te-t4$Te-t
Set cn I New A1O1B$<onnection
cn$<onnectionString I PPro&i!erIOraOLE1B$Oracle$4KPasswor!ItigerKPersist
Securit# In"oITrueK=ser I1IscottP
cn$<ursorLocation I a!=se<lient
cn$Open
Set r0 I New A1O1B$/ecor!set
r0$<ursorT#pe I a!Open1#na%ic
r0$Loc0T#pe I a!Loc0Opti%istic
r0$Open Pappoint%entP, cn, , , a!<%!Ta)le
MsgBo- Ploa!ing please wait OO$$$$$$$$$$$$$$ P, , PLoa!ing Message$$$$$$$P
Te-tM$Te-t I 1ate

4

HOSPITAL MANAGEMENT SYSTEM
Set Te-t5$1ataSource I r0
Te-t5$1ataEiel! I P!octorBi!P
Set Te-tF$1ataSource I r0
Te-tF$1ataEiel! I PprescriptionP
En! Su)
FORM1-BEDS
Pri&ate Su) <o%%an!4B<lic0
Set rs I New A1O1B$/ecor!set
rs$<ursorT#pe I a!Open1#na%ic
rs$Loc0T#pe I a!Loc0Opti%istic
sA0 I Pselect D "ro% roo%sP
rs$Open sA0, cn, , , a!<%!Te-t
rs$A!!New
rs$Eiel!s:(; I a!!%issionpatient$Te-t4$Te-t
rs$Eiel!s:4; I Te-t4$Te-t
rs$Eiel!s:5; I <o%)o4$Te-t
rs$Eiel!s:M; I 4((
rs$Eiel!s:N; I 1ate
rs$=p!ate
1ataGri!4$/e"res
En! Su)
Pri&ate Su) <o%%an!5B<lic0:;
=nloa! Me
En! Su)
Pri&ate Su) <o%%an!MB<lic0:;

4

HOSPITAL MANAGEMENT SYSTEM
1ataGri!4$/e"res
En! Su)
Pri&ate Su) Eor%BLoa!:;
1i% roo%no As Integer
roo%no I 4
sA0 I PSELE<T )e!Bno E/OM :SELE<T )e!Bno E/OM roo%s O/1E/ BY )e!Bno
!esc; ?HE/E /O?N=M SI 4 P
Set cn I New A1O1B$<onnection
cn$<onnectionString I PPro&i!erIOraOLE1B$Oracle$4KPasswor!ItigerKPersist
Securit# In"oITrueK=ser I1IscottP
cn$<ursorLocation I a!=se<lient
cn$Open
Set r0 I New A1O1B$/ecor!set
r0$<ursorT#pe I a!Open1#na%ic
r0$Loc0T#pe I a!Loc0Opti%istic
r0$Open sA0, cn, , , a!<%!Te-t
roo%no I r0$Eiel!s:(;
Te-t4$Te-t I roo%no T 4
En! Su)
FORM2-DEPARTMENTS
Pri&ate Su) !epart%ent:;
Set rs I New A1O1B$/ecor!set
rs$<ursorT#pe I a!Open1#na%ic
rs$Loc0T#pe I a!Loc0Opti%istic
rs$Open P!epart%entP, cn, , , a!<%!Ta)le
Set r0 I rs

4

HOSPITAL MANAGEMENT SYSTEM
Set Te-t4$1ataSource I r0
Te-t4$1ataEiel! I P!eptBi!P
Set Te-t5$1ataSource I r0
Te-t5$1ataEiel! I P1EPTBNAMEP
Set Te-tN$1ataSource I r0
Te-tN$1ataEiel! I P1EPTB1O<TO/P
Set Te-tF$1ataSource I r0
Te-tF$1ataEiel! I P1EPTBHEA1P
Set Te-t'$1ataSource I r0
Te-t'$1ataEiel! I P1EPTBSALA/YP
Set Te-tQ$1ataSource I r0
Te-tQ$1ataEiel! I PPHNBNOP
En! Su)
Pri&ate Su) c%!MB<lic0:In!e- As Integer;
On Error GoTo error!esc
r0$Mo&eEirst
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all !epart%ent
En! Su)
Pri&ate Su) c%!NB<lic0:In!e- As Integer;
On Error GoTo error!esc
I" r0$EOE I True Ten
r0$Mo&eEirst
En! I"

4

HOSPITAL MANAGEMENT SYSTEM
r0$Mo&eNe-t
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all !epart%ent
En! Su)
Pri&ate Su) c%!'B<lic0:In!e- As Integer;
On Error GoTo error!esc
r0$Mo&eLast
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all !epart%ent
En! Su)
Pri&ate Su) c%!QB<lic0:In!e- As Integer;
On Error GoTo error!esc
Set r0 I New A1O1B$/ecor!set
r0$<ursorT#pe I a!Open1#na%ic
r0$Loc0T#pe I a!Loc0Opti%istic
sA0 I Pselect D "ro% !epart%ent P
r0$Open sA0, cn, , , a!<%!Te-t
r0$A!!New
r0$Eiel!s:(; I Te-t4$Te-t
r0$Eiel!s:4; I Te-t5$Te-t
r0$Eiel!s:5; I Te-tN$Te-t
r0$Eiel!s:M; I Te-tF$Te-t

4

HOSPITAL MANAGEMENT SYSTEM
r0$Eiel!s:N; I Te-t'$Te-t
r0$Eiel!s:F; I Te-tQ$Te-t
r0$=p!ate
Set Te-t4$1ataSource I r0
Te-t4$1ataEiel! I P!eptBi!P
Set Te-t5$1ataSource I r0
Te-t5$1ataEiel! I P1EPTBNAMEP
Set Te-tM$1ataSource I r0
Te-tM$1ataEiel! I P1EPTBSALA/YP
Set Te-tN$1ataSource I r0
Te-tN$1ataEiel! I P1EPTB1O<TO/P
Set Te-tF$1ataSource I r0
Te-tF$1ataEiel! I P1EPTBHEA1P
Set Te-t'$1ataSource I r0
Te-t'$1ataEiel! I P1EPTBSALA/YP
Set Te-tQ$1ataSource I r0
Te-tQ$1ataEiel! I PPHNBNOP
r0$Mo&eEirst
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all !epart%ent
En! Su)
Pri&ate Su) Eor%BLoa!:;
Set cn I New A1O1B$<onnection
cn$<onnectionString I PPro&i!erIOraOLE1B$Oracle$4KPasswor!ItigerKPersist
Securit# In"oITrueK=ser I1IscottP

4

HOSPITAL MANAGEMENT SYSTEM
cn$<ursorLocation I a!=se<lient
cn$Open
Set r0 I New A1O1B$/ecor!set
r0$<ursorT#pe I a!Open1#na%ic
r0$Loc0T#pe I a!Loc0Opti%istic
r0$Open P!epart%entP, cn, , , a!<%!Ta)le
MsgBo- Ploa!ing please wait OO$$$$$$$$$$$$$$ P, , PLoa!ing Message$$$$$$$P
Set Te-t4$1ataSource I r0
Te-t4$1ataEiel! I P!eptBi!P
Set Te-t5$1ataSource I r0
Te-t5$1ataEiel! I P1EPTBNAMEP
Set Te-tN$1ataSource I r0
Te-tN$1ataEiel! I P1EPTB1O<TO/P
Set Te-tF$1ataSource I r0
Te-tF$1ataEiel! I P1EPTBHEA1P
Set Te-t'$1ataSource I r0
Te-t'$1ataEiel! I P1EPTBSALA/YP
Set Te-tQ$1ataSource I r0
Te-tQ$1ataEiel! I PPHNBNOP
r0$Mo&eEirst
En! Su)
Pri&ate Su) c%!5B<lic0:In!e- As Integer;
=nloa! !epart%ents
En! Su)
FORM3-DISCHARGEPATIENT

4

HOSPITAL MANAGEMENT SYSTEM
Pu)lic &aria)le As String
Pri&ate Su) patient:;
Set rs I New A1O1B$/ecor!set
rs$<ursorT#pe I a!Open1#na%ic
rs$Loc0T#pe I a!Loc0Opti%istic
rs$Open PpatientP, cn, , , a!<%!Ta)le
Set r0 I rs
Set Te-t4$1ataSource I r0
Te-t4$1ataEiel! I PpatientBi!P
Set Te-t5$1ataSource I r0
Te-t5$1ataEiel! I PpatBna%eP
Set Te-tM$1ataSource I r0
Te-tM$1ataEiel! I Pse-P
Set Te-tN$1ataSource I r0
Te-tN$1ataEiel! I P!ocB"eeP
Set Te-tF$1ataSource I r0
Te-tF$1ataEiel! I P"atersBna%eP
Set Te-t'$1ataSource I r0
Te-t'$1ataEiel! I PpnBnoP
Set Te-tQ$1ataSource I r0
Te-tQ$1ataEiel! I P)l!BgrpP
Set Te-tL$1ataSource I r0
Te-tL$1ataEiel! I P!eptBi!P
Set Te-t6$1ataSource I r0
Te-t6$1ataEiel! I P!BoB)P
Set Te-t4($1ataSource I r0

4

HOSPITAL MANAGEMENT SYSTEM
Te-t4($1ataEiel! I P!iseaseP
En! Su)
Pri&ate Su) c%!4(B<lic0:In!e- As Integer;
Te-t4$Te-t I P P
Te-t5$Te-t I P P
Te-tM$Te-t I P P
Te-tQ$Te-t I P P
Te-tL$Te-t I P P
Te-t6$Te-t I P P
Te-t4($Te-t I P P
Te-t'$Te-t I P P
Te-tF$Te-t I P P
Te-tN$Te-t I P P
En! Su)
Pri&ate Su) c%!5B<lic0:In!e- As Integer;
On Error GoTo error!esc
&aria)le I Te-t4$Te-t
=nloa! Me
transaction$Sow
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all patient
En! Su)
Pri&ate Su) c%!MB<lic0:In!e- As Integer;
On Error GoTo error!esc

4

HOSPITAL MANAGEMENT SYSTEM
r0$Mo&eEirst
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all patient
En! Su)
Pri&ate Su) c%!NB<lic0:In!e- As Integer;
On Error GoTo error!esc
I" r0$EOE I True Ten
r0$Mo&eEirst

En! I"
r0$Mo&eNe-t
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all patient
En! Su)
Pri&ate Su) c%!FB<lic0:In!e- As Integer;
On Error GoTo error!esc
r0$Mo&eLast
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all patient
En! Su)

4

HOSPITAL MANAGEMENT SYSTEM
Pri&ate Su) c%!'B<lic0:In!e- As Integer;
On Error GoTo error!esc
I" :r0$BOE I True; Ten
r0$Mo&eLast
Else
r0$Mo&ePre&ious
En! I"
E-it Su)
error!esc3
i I MsgBo-:Err$1escription, &)<ritical;
<all patient
En! Su)
Pri&ate Su) c%!LB<lic0:In!e- As Integer;
1i% ai! As Integer
ai! I InputBo-:PEnter te patienti! to searcP, PsearcP, Pi!P;
sA0 I Pselect D "ro% patient were patientBi!I P R Val:ai!;
Set r0 I New A1O1B$/ecor!set
r0$<ursorT#pe I a!Open1#na%ic
r0$Loc0T#pe I a!Loc0Opti%istic
r0$Open sA0, cn, , , a!<%!Te-t
I" r0$EOE I True Ten
MsgBo- P patient i! not e-istP
<all patient
En! I"
Set Te-t4$1ataSource I r0

4

HOSPITAL MANAGEMENT SYSTEM
Te-t4$1ataEiel! I PpatientBi!P
Set Te-t5$1ataSource I r0
Te-t5$1ataEiel! I PpatBna%eP
Set Te-tM$1ataSource I r0
Te-tM$1ataEiel! I Pse-P
Set Te-tN$1ataSource I r0
Te-tN$1ataEiel! I P!ocB"eeP
Set Te-tF$1ataSource I r0
Te-tF$1ataEiel! I P"atersBna%eP
Set Te-t'$1ataSource I r0
Te-t'$1ataEiel! I PpnBnoP
Set Te-tQ$1ataSource I r0
Te-tQ$1ataEiel! I P)l!BgrpP
Set Te-tL$1ataSource I r0
Te-tL$1ataEiel! I P!eptBi!P
Set Te-t6$1ataSource I r0
Te-t6$1ataEiel! I P!BoB)P
Set Te-t4($1ataSource I r0
Te-t4($1ataEiel! I P!iseaseP
En! Su)
Pri&ate Su) c%!6B<lic0:In!e- As Integer;
=nloa! Me
En! Su)
Pri&ate Su) Eor%BLoa!:;
Set cn I New A1O1B$<onnection
cn$<onnectionString I PPro&i!erIOraOLE1B$Oracle$4KPasswor!ItigerKPersist
Securit# In"oITrueK=ser I1IscottP

4

HOSPITAL MANAGEMENT SYSTEM
cn$<ursorLocation I a!=se<lient
cn$Open
Set r0 I New A1O1B$/ecor!set
r0$<ursorT#pe I a!Open1#na%ic
r0$Loc0T#pe I a!Loc0Opti%istic
r0$Open PpatientP, cn, , , a!<%!Ta)le
MsgBo- Ploa!ing please wait OO$$$$$$$$$$$$$$ P, , PLoa!ing Message$$$$$$$P
Set Te-t4$1ataSource I r0
Te-t4$1ataEiel! I PpatientBi!P
Set Te-t5$1ataSource I r0
Te-t5$1ataEiel! I PpatBna%eP
Set Te-tM$1ataSource I r0
Te-tM$1ataEiel! I Pse-P
Set Te-tN$1ataSource I r0
Te-tN$1ataEiel! I P!ocB"eeP
Set Te-tF$1ataSource I r0
Te-tF$1ataEiel! I P"atersBna%eP
Set Te-t'$1ataSource I r0
Te-t'$1ataEiel! I PpnBnoP
Set Te-tQ$1ataSource I r0
Te-tQ$1ataEiel! I P)l!BgrpP
Set Te-tL$1ataSource I r0
Te-tL$1ataEiel! I P!eptBi!P
Set Te-t6$1ataSource I r0
Te-t6$1ataEiel! I P!BoB)P
Set Te-t4($1ataSource I r0

4

HOSPITAL MANAGEMENT SYSTEM
Te-t4($1ataEiel! I P!iseaseP
r0$Mo&eEirst
En! Su)
Pri&ate Su) La)el5B<lic0:;
En! Su)
FORM4-EMPLOYEEATTENDANCE
Pri&ate Su) c%!4(B<lic0:In!e- As Integer;
Te-t4$Te-t I PP
Te-tQ$Te-t I PP
Te-tF$Te-t I PP
Te-t5$Te-t I PP
Te-tM$Te-t I PP
En! Su)
Pri&ate Su) c%!5B<lic0:In!e- As Integer;
=nloa! e%plo#eeatten!ance
En! Su)
Pri&ate Su) c%!MB<lic0:In!e- As Integer;
On Error GoTo error!esc
r0$Mo&eEirst
En! Su)
Pri&ate Su) c%!NB<lic0:In!e- As Integer;
I" :r0$EOE I True; Ten
r0$Mo&eEirst
Else
r0$Mo&eNe-t

4

HOSPITAL MANAGEMENT SYSTEM
En! I"
&ar I Te-t4$Te-t
sAlc%! I Pselect D "ro% !octor were !octorBi!IP R Val:&ar;
Set rs I New A1O1B$/ecor!set
rs$<ursorT#pe I a!Open1#na%ic
rs$Loc0T#pe I a!Loc0Opti%istic
rs$Open sAlc%!, cn, , , a!<%!Te-t
Set Te-t5$1ataSource I rs
Te-t5$1ataEiel! I P!octBna%eP
Set Te-tM$1ataSource I rs
Te-tM$1ataEiel! I P!eptBi!P
En! Su)
Pri&ate Su) c%!FB<lic0:In!e- As Integer;
On Error GoTo error!esc
r0$Mo&eLast
r0$=p!ate
En! Su)
Pri&ate Su) c%!'B<lic0:In!e- As Integer;
On Error GoTo error!esc
I" :r0$BOE I True; Ten
r0$Mo&eLast
Else
r0$Mo&ePre&ious
En! Su)
Pri&ate Su) c%!LB<lic0:In!e- As Integer;
1i% ai! As String

4

HOSPITAL MANAGEMENT SYSTEM
ai! I InputBo-:PEnter te !octor i! to searcP, PsearcP, Pi!P;
sA0 I Pselect D "ro% !octor were !octorBi! I P R Val:ai!;
Set r0 I New A1O1B$/ecor!set
r0$<ursorT#pe I a!Open1#na%ic
r0$Loc0T#pe I a!Loc0Opti%istic
r0$Open sA0, cn, , , a!<%!Te-t
Set Te-t4$1ataSource I r0
Te-t4$1ataEiel! I PEMPBI1P
Set Te-tQ$1ataSource I r0
Te-tQ$1ataEiel! I P1ATESP
Set Te-tF$1ataSource I r0
Te-tF$1ataEiel! I PSHIETP
Set rs I New A1O1B$/ecor!set
rs$<ursorT#pe I a!Open1#na%ic
rs$Loc0T#pe I a!Loc0Opti%istic
rs$Open sAlc%!, cn, , , a!<%!Te-t
Set Te-t5$1ataSource I rs
Te-t5$1ataEiel! I P!ocBna%eP
Set Te-tM$1ataSource I rs
Te-tM$1ataEiel! I P!eptBi!P
En! Su)
Pri&ate Su) c%!6B<lic0:In!e- As Integer;
r0$A!!New
En! Su)
Pri&ate Su) Eor%BLoa!:;
1i% &ar As String

4

HOSPITAL MANAGEMENT SYSTEM
Set cn I New A1O1B$<onnection
cn$<onnectionString I PPro&i!erIOraOLE1B$Oracle$4KPasswor!ItigerKPersist
Securit# In"oITrueK=ser I1IscottP
cn$<ursorLocation I a!=se<lient
cn$Open
Set r0 I New A1O1B$/ecor!set
r0$<ursorT#pe I a!Open1#na%ic
r0$Loc0T#pe I a!Loc0Opti%istic
r0$Open Psce!uleP, cn, , , a!<%!Ta)le
MsgBo- Ploa!ing please wait OO$$$$$$$$$$$$$$ P, , PLoa!ing Message$$$$$$$P
Set Te-t4$1ataSource I r0
Te-t4$1ataEiel! I PEMPBI1P
Set Te-tQ$1ataSource I r0
Te-tQ$1ataEiel! I P1ATESP
Set <o%)o4$1ataSource I r0
<o%)o4$1ataEiel! I PSHIETP
&ar I Te-t4$Te-t
sAlc%! I Pselect D "ro% !octor were !octorBi!IP R Val:&ar;
Set rs I New A1O1B$/ecor!set
rs$<ursorT#pe I a!Open1#na%ic
rs$Loc0T#pe I a!Loc0Opti%istic
rs$Open sAlc%!, cn, , , a!<%!Te-t
Set Te-t5$1ataSource I rs
Te-t5$1ataEiel! I P!octBna%eP
Set Te-tM$1ataSource I rs
Te-tM$1ataEiel! I P!eptBi!P
En! Su)

4

HOSPITAL MANAGEMENT SYSTEM
FORM19-FRMLOGIN
Option E-plicit
Pu)lic LoginSuccee!e! As Boolean
Pri&ate Su) c%!<ancelB<lic0:;
LoginSuccee!e! I Ealse
Me$Hi!e
En! Su)
Pri&ate Su) La)el5B<lic0:;
I" Te-t4$Te-t I PP An! Te-t5$Te-t I PP Ten
LoginSuccee!e! I True
Me$Hi!e
"r%Splas$Sow
Else
MsgBo- PIn&ali! Passwor!, tr# againOP, , PLoginP
Te-t5$SetEocus
Sen!@e#s PUHo%eVTUEn!VP
En! I"
En! Su)
FORM11-FRMSPLASH
Pri&ate Su) Eor%BLoa!:;
ProgressBar4$Value I ProgressBar4$Min
En! Su)
Pri&ate Su) Ti%er4BTi%er:;
ProgressBar4$Value I ProgressBar4$Value T 4(

4

HOSPITAL MANAGEMENT SYSTEM
I" ProgressBar4$Value HI ProgressBar4$Ma- Ten
Ti%er4$Ena)le! I Ealse
En! I"
I" ProgressBar4$Value I 4(( Ten
"r%Splas$Hi!e
"r%%ain$Sow
En! I"
En! Su)
FORM1'-FRMMAIN
Option E-plicit
Pu)lic cn As A1O1B$<onnection
Pu)lic c%!4 As String
Pu)lic rs As A1O1B$/ecor!set
Pu)lic r0 As A1O1B$/ecor!set
Pu)lic i, *, &aria)le As Integer
Pu)lic sAlc%!, sA0, strsAl, strna%e, str4, rate, a, ), c As String
Pri&ate Su) a)outB<lic0:;
"r%A)out$Sow
En! Su)
Pri&ate Su) a!!atten!anceB<lic0:;
e%plo#eeatten!ance$Sow
En! Su)
Pri&ate Su) a!!!octorB<lic0:;
a!!!octors$Sow
En! Su)

4

HOSPITAL MANAGEMENT SYSTEM
Pri&ate Su) a!!wor0ti%eB<lic0:;
e%plo#eeatten!ance$Sow
En! Su)
Pri&ate Su) A!o!c4B?illMo&e:B#Val a!/eason As A1O1B$E&ent/easonEnu%,
a!Status As A1O1B$E&entStatusEnu%, B#Val p/ecor!set As A1O1B$/ecor!set;
En! Su)
Pri&ate Su) !eleteatten!anceB<lic0:;
e%plo#eeatten!ance
En! Su)
Pri&ate Su) !elete!octorB<lic0:;
re%o&e!octor$Sow
En! Su)
Pri&ate Su) !elete%e!icineB<lic0:;
a!!%e!icines$Sow
En! Su)
Pri&ate Su) !eletewor0ti%eB<lic0:;
e%plo#eewor0ti%e$Sow
En! Su)
Pri&ate Su) !epart%ent!etailB<lic0:;
!epart%ents$Sow
En! Su)
Pri&ate Su) !etailB<lic0:;
reporte%plo#ee$Sow
En! Su)
Pri&ate Su) !iscargepatientB<lic0:;
!iscargpatient$Sow
En! Su)

4

HOSPITAL MANAGEMENT SYSTEM
Pri&ate Su) !octorsB<lic0:;
Set cn I New A1O1B$<onnection
cn$<onnectionString I PPro&i!erIOraOLE1B$Oracle$4KPasswor!ItigerKPersist
Securit# In"oITrueK=ser I1IscottP
cn$<ursorLocation I a!=se<lient
cn$Open
1i% ai! As String
ai! I InputBo-:PEnter te !octor i! to searcP, PsearcP, Pi!P;
Set r0 I New A1O1B$/ecor!set
r0$<ursorT#pe I a!Open1#na%ic
r0$Loc0T#pe I a!Loc0Opti%istic
sA0 I P create or replace &iew report!octor as :select e$1O<TBNAME,e$
1BOBB,e$ SALA/Y,e$PHNBNO,e$EMAILBI1,e$1O<TO/BI1,e$ SE,,e$1EPTBI1
"ro% !octor e were e$!octorBI1 I 3Val:ai!;; P
r0$Open sA0, cn, 5, M
!octor/eport$Sow
En! Su)
Pri&ate Su) e-itB<lic0:;
I" MsgBo-:P1o #ou reall# want to e-itC press #es or noP, &)YesNo, PHospital
Manage%ent S#ste%P; I &)Yes Ten
=nloa! "r%%ain
En! I"
En! Su)
Pri&ate Su) %e!icineB<lic0:;
report%e!icine$Sow
En! Su)
Pri&ate Su) patientsB<lic0:;
Set cn I New A1O1B$<onnection

4

HOSPITAL MANAGEMENT SYSTEM
cn$<onnectionString I PPro&i!erIOraOLE1B$Oracle$4KPasswor!ItigerKPersist
Securit# In"oITrueK=ser I1IscottP
cn$<ursorLocation I a!=se<lient
cn$Open
1i% ai! As String
ai! I InputBo-:PEnter te !octor i! to searcP, PsearcP, Pi!P;
Set r0 I New A1O1B$/ecor!set
r0$<ursorT#pe I a!Open1#na%ic
r0$Loc0T#pe I a!Loc0Opti%istic
sA0 I P create or replace &iew report as :select
e$PATIENTBI1,e$PATBNAME,e$1O<BEEE,e$BL1BG/P,e$1ISEASE,e$SE,,e$ME1B
<O1E,)$BILLBNO,)$ME1BAMT,)$1IAGNOSISBEEE,)$MO1EBPAY "ro% patient
e,)ill ) were e$PATIENTBI1 I 3ai! An! )$PATBI1 I 3 ai! ;P
r0$Open sA0, cn, 5, M
Patient/eport$Sow
En! Su)
Pri&ate Su) /e%o&eNurseB<lic0:;
a!!nurses$Sow
En! Su)
Pri&ate Su) up!ateatten!anceB<lic0:;
e%plo#eeatten!ance
En! Su)
Pri&ate Su) up!ate!octorB<lic0:;
re%o&e!octor$Sow
En! Su)

4

HOSPITAL MANAGEMENT SYSTEM
SNAPSHOTS
1.LOGIN FORM

4

HOSPITAL MANAGEMENT SYSTEM
+.ADDPATIENT
0.EMPLOYEESCHEDULE

4

HOSPITAL MANAGEMENT SYSTEM
1.DEPARTMENT

4

HOSPITAL MANAGEMENT SYSTEM
3.SPLASH SCREEN

4

HOSPITAL MANAGEMENT SYSTEM
CONCLUSION
A (HOSPITAL MANAGEMENT SYSTEM** "s a +$,'#te!"-e&
,ana.e,ent s%ste,.
T"s ,ana.e,ent s%ste, as been &e/el$'e& t$ 0$!, 1$le
,ana.e,ent s%ste, "n+l#&"n. E,'l$%ees, D$+t$!s 2+$ns#ltants3,
N#!ses, Pat"ents,B"lls, an& A''$"nt,ents et+. T"s s%ste, als$ 4ee's
te !e+$!&s $0 a!&1a!e assets bes"&es s$0t1a!e $0 t"s

4

HOSPITAL MANAGEMENT SYSTEM
$!.an"-at"$n. Te '!$'$se& s%ste, 1"ll 4ee' a t!a+4 $0 E,'l$%ees,
D$+t$!s, Pat"ents, A++$#nts an& .ene!at"$n $0 !e'$!t !e.a!&"n. te
'!esent stat#s.
T"s '!$5e+t as G6I base& s$0t1a!e tat 1"ll el' "n st$!"n.,
#'&at"n. an& !et!"e/"n. te "n0$!,at"$n t!$#. /a!"$#s #se!7
0!"en&l% ,en#7&!"/en ,$&#les.
A +$,'#te!"-e& $s'"tal ,ana.e,ent s%ste, as been
&e/el$'e& an& te s%ste, 1as teste& 1"t sa,'le &ata.
Te s%ste, !es#lts "n !e.#la! t",el% '!e'a!at"$ns $0 !e8#"!e&
$#t'#ts. In +$,'a!"s$n 1"t ,an#al s%ste, te bene9ts #n&e! a
+$,'#te! s%ste, a!e +$ns"&e!able "n te sa/"n. $0 ,an '$1e!
1$!4"n. $#!s .
P!$/"s"$n 0$! a&&"t"$n an& &elet"$n $0 'at"ents "s te!e "n te
s%ste, "t "s '$ss"ble t$ /"e1 tat '!$'e! 9ll"n. s%ste, as been
a&$'te& t$ slate &ate 0$! 0#t#!e. Te ent"!e '!$5e+t !#ns $n 1"n&$1s
en/"!$n,ents.
SCOPE O ENHANCEMENT
Te s#ste% %a# )e "urter up!ate! to an!le %ore nu%)er o" patients
e""icientl#.

4

You might also like