Date post: | 07-Apr-2018 |
Category: |
Documents |
Upload: | shefeek-ibrahim-ki |
View: | 216 times |
Download: | 0 times |
of 54
8/6/2019 Project Report 2010
1/54
8/6/2019 Project Report 2010
2/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 2 S R G P T C TRIPRAYAR
ABSTRACT
I t is a crucial problem to store the detailsof hospital which further include details of patients . To store the detailsof patient is more relevant in day to day life because we have to retrievethe details for further usage . I decided to select a topic related tothis .The patients details in this project contain the information likename, age, sex, address, occupation, admission details and dischargedetails .
This mini project is a VB based application . I n thisproject I had 10 forms and 3 tables . The software is more advanced andwe can easily manage it . These all are interconnected with each other . I tincludes the adding, deleting and updating functions . To provide littlemore security this project includes username and password .
This project is designed in Visual Basic 6 . 0software . I nstead of using any particular relational database theapplication uses ODBC server for data storage
8/6/2019 Project Report 2010
3/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 3 S R G P T C TRIPRAYAR
CONTENTS
1. INTRODUCTION
1.1 AB OUT MINI PROJECT
2 . SYS TEM STUD Y AND AN ALYS IS
2 .1 EXI STING SYS TEM
2 . 2 PROPO SED SYS TEM
2 . 2 .1 O BJECTIVE OF PROPO SED SYS TEM
2 .3 FE AS IBILIT Y AN ALYS IS
2 .3.1 TECHNIC AL FE AS IB ILIT Y
2 .3. 2 ECONOMI AL FE AS IBILIT Y
2 .3.3 OPER ATION AL FE AS IB ILIT Y
2 .4 D AT A F LOW DI AGR AM
3. SYS TEM CONFIGUR ATION
3.1 H ARDW ARE CONFIGUR ATON
3. 2 SOFTW ARE CONFIGUR ATION
4. SYS TEM DE SIGN
4.1 INTRODUCTION
4. 2 INPUT DE S IGN
4.3 OUTPUT DE S IGN
4.4 D AT ABAS E DE S IGN
5 . SYS TEM TE STING AND IMP LEMENT ATION
6 . SOFTW ARE ENVIRONMENT
6 .1 INTRODUCTION TO MICRO SOFT VI SU AL BAS IC 6 .0
6 . 2 SQL P LU S 8 .0
7 . SA MP LE OUTPUT S
8 . SOUR SE CODE S
9 . CONC LU SION
8/6/2019 Project Report 2010
4/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 4 S R G P T C TRIPRAYAR
1. I
NTRODUCTION
1.1 ABOUT M I NI PROJECT
I n todays fast evolving scientific scenario timemanagement is a decisive criteria . This characterized the evolution of internet as a popular means of worldwide communication . Software canbe application & package . Network based systems work based on the
client/server architecture.
The client makes request to the server and heserver response the request by providing the service requested by theclient
The project HOSP I TAL MANAGEMENTSYSTEM is a VB based application . Visual Basic provides graphicalenvironment, in which the programmer can easily design the forms andcontrols that become the building blocks of the application . VB supportsmany useful tools . An application in VB can have any number of terms .
I n this project the visual basic is used as the front end tool and databaseis used as the back end tool . The database design methodology includemore of the concepts for specifying operations on database objects ,andas software engineering methodologies specify in more detail thestructure of the database that software programs will use and access, itis clear that the operations are strongly related each other . So, it isconnected as the back end for visual basic . The whole extremities of thedatabase manipulation were involved in the realization of this project .
I n the situation we can create a mini program thatcontains these values . This project includes the adding and searchingfunctions . I t had a password . This program is designed in Visual Basic6 .0 software . I nstead of using any particular rational data base theapplication uses ODBC SERVER for data storage
8/6/2019 Project Report 2010
5/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 5 S R G P T C TRIPRAYAR
2 . SYSTEM STUDY AND ANALYS I S
2 .1 EX I ST I NG SYSTEM
I n todays fast evolving scientific scenariotime management is a decisive creation . I n Hospital ManagementSystem there uses record books for keeping details of each customer . I trequires the current storage of details of admission details and dischargedetails . Thus needs additional time for all these tasks in this fast world .
2 .2 PROPSED SYSTEM
My proposed system is HospitalManagement System . That is we can do all the tasks at the resortthrough a computer . Through this we can store all data about patients,and their registration details . And we can delete and edit all the detailsvery fast
2 .2 .1 OBJECT I VE OF PROPOSED SYSTEM
Enable the user to access the bill through the computer Q uantity searching is made very easy Provides a facility for quick information retrieval Give more accurate information of data
2 .3 FEAS I BI L I TY ANALYS I S
8/6/2019 Project Report 2010
6/54
8/6/2019 Project Report 2010
7/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 7 S R G P T C TRIPRAYAR
2 .3.3 OPERAT I ONAL FEAS I B I L I TY
There is no barrier for implementing thesystem . The user has enough time to feed the inputs of the system . Thesystem also helps to access the information immediately as on the need . Thus the system is fond operational feasibility . The software used for theabove system can also work efficiently for satisfying users and siteadministrators needs .
8/6/2019 Project Report 2010
8/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 8 S R G P T C TRIPRAYAR
2 .4 DATA FLOW D I AGRAM
The data flow diagram is a structuredanalysis and designed to that can be used for flow charting in place of,or I association with, information oriented and process oriented systemflow cart . A DFD is a network that describes the flow of data andprocess that change or transform that data throughout a system . TheDFD is a way of expressing a system requirement in a graphical form .
Basic symbol
Process
External entity
Data flow
8/6/2019 Project Report 2010
9/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 9 S R G P T C TRIPRAYAR
UserDATA
STORE
DETA I LS
ABOUT
HOSP I TAL
V I EW
EX I T
ADM I SSI ON DETALS
PAT I ENT DETA I LS
DI SCHARGE
DETA I LS
DATA I N TABLE
8/6/2019 Project Report 2010
10/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 10 S R G P T C TRIPRAYAR
3 .0 SYSTEM CONF I GURAT I ON
3 .1 HARDWARE CONF I GURAT I ON
I n order to implement a new system, the
choice of a processor with maximum possible speed is made.
Thereshould be sufficient memory to store data and software tools for efficientprocessing . A keyboard is necessary for entering the input data .
System : I BM-COMPAT I ABLE PC
Processor : Pentium III
Processor speed : 500
Monitor : 15SVGA
RAM : 51 2 MB
HDD : 80 GB
Keyboard : 10 4 Keys
3.2 SOFTWARE CONFGURAT
ION
Operating system : Windows XP Professional
Front end : Microsoft Visual Basic
Back end : S Q L Plus 8 .0
8/6/2019 Project Report 2010
11/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 11 S R G P T C TRIPRAYAR
4.0 STSTEM DES
IGN
4. 1 I NTRODUCT I ON
The most creative and challengingphase of the system life cycle is system design . System design is vital forefficient database management . I n the present software,conceptualization of the system involved, deciding the different tables,
form layouts for inputs and reports for the output . The importance of the software design can be stated with a single word quality . Design is aplace where quality is fostered in software development . Design is theonly way where requirements are actually translated into a finishedsoftware product or system .
4. 2 I NPUT DES I GN
I nput design is the process of converting the user oriented inputs to a computer based format . Thecollection of input data is considered to be most expensive part of design . I naccurate input data are the most common cause of errors indata processing . Errors entered by a data entry can be controlled byinput design . I nput design is the process of converting user -orientedinputs to a computer based format . There are three major approachesfor entering data into the computer: menus, formatted forms andprompts . A menu is a selection list that simplifies the data access orentry . I nstead of remembering what to enter, the user chooses from alist of options letter associated with it . A formatted form is a preprintedform or template that requests the user to data in appropriate locations . I t is a fill-in-the-blank type form . The form is flashed on the screen as aunit . I n prompt the system displays the one enquiry at a time, asking theuser for a response .
8/6/2019 Project Report 2010
12/54
8/6/2019 Project Report 2010
13/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 13 S R G P T C TRIPRAYAR
4.4 DATABASE DES I GN
Database design is required to managelarge bodies of information . The management of data involves both thedefinition of structures for the storage of information and provision of mechanism offer the manipulation of the information . I n addition thedata management system must provide for the safety of the informationhandled despite system crashes or due to attempt at unauthorized
access . For developing an efficient database, we have to fulfill certainconditions such as
1 . Control redundancy2 . Ease of use3 . Data independence4. Privacy and security5 . Performance
For achieving the above criterias we have to make use of variousfeatures that are available with DBMS such as:
Enforcing integrity constraints to ensure data integrity and toreduce data inconsistency .
Recovery from failures using backup facility
.
8/6/2019 Project Report 2010
14/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 14 S R G P T C TRIPRAYAR
The database structure consists of tables:
1 . Table name : ADM I SS I ON_DETA I LS
F I ELD NAME DATA TYPE
ADM_NO VARCHAR 2(5)
ADM_DATE DATE
PAT I ENT_NAME VARCHAR 2(35)
AGE NUMBER(3)
SEX VARCHAR 2(8)
DOCTOR_NAME VARCHAR 2(35)
ROOM_NO NUMBER(5)
2 . Table name: PAT I ENT_DETA I LS
F I ELD NAME DATATYPEADM_NO VARCHAR 2(5)PA I ENT_NAME VARCHAR 2(35)AGE NUMBER(3)
SEX VARCHAR 2(8)OCCUPAT I ON VARCHAR 2(35)ADDRESS VARCHAR 2(35)D I AGNOS I S VARCHAR 2(35)
DOCTOR_NAME VARCHAR 2(35)
3 . Table name : D I SCHARGE_DETA I LS
F I ELD NAME DATATYPEADM_NO VARCHAR(5)D I S_DATE DATEPAT I ENT_NAME VARCHAR 2(35)AGE NUMBER(3)SEX VARCHAR 2(8)MED I C I NES_USED VARCHAR 2(50)
8/6/2019 Project Report 2010
15/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 15 S R G P T C TRIPRAYAR
5 .0 SYSTEM TEST I NG ANDI MPLEMENTAT I ON
5.1 System testing
System Testing is the stage of implementation, which is aimed at ensuring that the system worksaccurately and sufficiently before live operation commences . Testing is
vital to the success of the system . System testing makes a logicalassumption that if all the parts of the system are correct, the goal will besuccessfully achieved . The candidate system is subject to recovery &security and usability test . A series of testing are performed for theproposed system before the system is ready for user acceptance testing
The testing phase involves the testing of developed system using various test data . Preparation of test data playsa different role in system testing . After preparing test data, the system
under study was tested under those test data . While testing the systemby using test data, errors were found and corrected . Thus a series of tests were performed for the proposed system before the system is readyfor implementation .
The distributed nature of client/server systemspose a set of unique problems while conduct tests we noted followingareas while testing:
y Client-GU I considerations . y Target environment and platform diversity considerationsy Distributed database considerationsy Distributed processing considerations
8/6/2019 Project Report 2010
16/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 16 S R G P T C TRIPRAYAR
Testing of client/server software occurs at the three different levels;
1. Client applications are tested in a disconnected mode2 . Client and server applications together tested . 3. The complete client/server architecture, including network
operations and performance is tested .
The testing phases are:
Unit testing I ntegration Testing
Validation Output testing User Acceptance Testing
Unit testing
Unit testing focuses verification efforts onthe smallest unit of software design the module . This is also known asModule Testing .The modules are tested separately . This testing iscarried out during
User acceptance Testing
User acceptance of a system is the key factorfor the success of any system . The system under consideration is testedfor user acceptance by constantly keeping in touch with the prospective
system users at time of developing and making changes where everrequired .
I ntegration Testing
Testing with the system package was also done . Data were inputted ad undergone checking . I ts privacy and security
8/6/2019 Project Report 2010
17/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 17 S R G P T C TRIPRAYAR
were analyzed . Outputs from the package was also checked andcompared with the expected output and it was found to be error free .
I ntegration testing is a systematic technique forconstructing program structure while at the same time, conducting testto uncover errors associated with interface . I n the testing, the programswere constructed and tested in small segments . Thus the errors areeasier to isolate .
Proper error handling methods were adopted tomake the system performance more efficient . So testing was a very easyprocess . Expected output of the system that is desired to get was
compared with the obtained actual output and found to be matching . Core part of the system was temporarily deployed in the organization . I nputs were given and the outputs were analyzed and found to be errorfree and satisfied
A bottom-up integration strategy may be implemented with thefollowing steps;
Low-level components are combined into clusters that perform aspecific software sub function .
A driver is written to coordinate test case input and output . Thecluster is tested .
Drivers are removed and clusters are combined moving upwardsin the program structure .
Data Validation Testing
Data validation checking is done to seewhether the corresponding entries made in different tables are donecorrectly . Proper validation checks are done in case of insertion andupdating of tables, in order to see that no duplication of data hasoccurred . I f any such case arises proper warning message will bedisplayed .
8/6/2019 Project Report 2010
18/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 18 S R G P T C TRIPRAYAR
Double confirmation is done before theadministrator deletes data in order to get positive results and to see that
no data have been deleted accident.
White box testing is a test case design method thatuses the control structure of other procedural designs to divide the testcases .
TEST CASES:
a) Guarantee that all independent parts within a module havebeen exercised at least once
b) Exercise all logical decisions on their true or false sides . c) Executes all loops at their boundaries and within their
operational bounds . d) Exercise internal data structure to ensure their va lidity
Output Testing
This is the final step in testing . I n this theentire system was tested as a whole with all the forms, code & modules . This form of testing is properly known as Black Box testing or system istesting . And represents the ultimate review of specification, design andcoding . Testing is a process of executing a program with the intend of finding an error . A good test is one that has a probability of finding anas yet undiscovered error . The purpose of testing is to identify andcorrect bugs in the developed system .
Complete without testing: Testing is the vital to the success of thesystem . I n the code testing the logic of the developed system is tested.For this every module of the program is executed to find an error . Toperform specification test, the examination of the specifications stating
8/6/2019 Project Report 2010
19/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 19 S R G P T C TRIPRAYAR
what the program should do and how it should perform under variousconditions .
A software configuration that includes a software requirementsspecification, a design specification and source code .
A test configuration that includes a test plan and procedure,any testing tools that are to be used and test cases and theirexpected results .
6 .0 SOFTWARE ENV I RONMENT
6.1 I NTRODUCT I ON TO M I CROSOFTV I SUALBAS I C 6 .0
Visual Basic is a programming languageintroduced by Microsoft in 1991 .I t is a popular programming languagefor the Windows environment .
Visual Basic I s a Unique language in Nearlyall respects ; a different interface, a different style & a differentmethod of doing things must be learned . A good understanding of
the Procedures and modular Programming will be invaluable inlearning Visual Basic . A good knowledge of BAS I C programming willalso help . Unlike other languages, Visual Basic is completely graphicallyoriented . Visual Basic is also a fun & practical language becauseall the drudgery & tedium of coding is minimized with its easy touse graphical interface . Visual Basic can be used for creating games,applications, diagnostic programs etc
8/6/2019 Project Report 2010
20/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 20 S R G P T C TRIPRAYAR
Advantages of Visual Basic
1. Graphical User I nterface
Visual Basic provides a graphicalenvironment in which you visually designed your programs withforms & controls that become the building blocks of yourapplication . The term Graphical User I nterface is quite often usedto refer to the use of pictures & visual objects rather than justwords to represent the input & output of a program . A program
with GU I runs under some windowing system . The program displayscertain icons, buttons, dialogue boxes etc . I n its window on thescreen and the user controls it mainly by moving a pointer on thescreen and selecting certain objects by pressing buttons on themouse while the pointer is pointing at them
2 . Event Driven Programming
Event Driven Programming is a computerprogramming paradigm . Most of the windows programs are EventDriven . By Event Driven we mean that a program responds to events,mostly generated by the user . An event corresponds to some actionmade by the user . Event Driven Programming is a flexible way to allowyour program too many different inputs or events .
6.2 SQ L PLUS 8 .0
SQ L plus 8 .0 is the main direct access interface toOracle relational DBMS . For DBAs, high level system developers, orothers who want to go straight to the heart of Oracle DBMS, S Q L Plus8 .0 is the right path . The program provides a full implementation of ANS I standard S Q L , an assortment of extensions you can use whenstrict standardization is not required .
8/6/2019 Project Report 2010
21/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 21 S R G P T C TRIPRAYAR
SQ L plus 8 .0 Forms provide convenient and easymethod for non experts to query a database and update, delete, or add
information.
Its forms-driven, query-b-example approach is a boon forusers not familiar with the S Q L language .
For more knowledgeable users, S Q L plus 8 .0 formsoffer applications building software that is must for those buildingscreen-driven applications or using a form-driven interface to Oracle . With this advanced tool, you can convert, design, generate, and runsophisticated forms for accessing the database .
You can use ADODB to connect to access, S Q L,
ORACLE, MS Exchange, and many other data sources . ADODB uses anew database connection frame work called ODBC, which allows youfaster, more flexible access to multiple data providers, and ADODBwraps it all into one easy-to-use interface . What this means is you canwrite database applications that you can scale easily from single -userdatabases such as Access to complex client/server systems usingMicrosofts S Q L Server, Oracle, or almost other databases that haseither OLEB provider or ODBC provider . ADODB can connect to anydata source that uses an ODBC provider .
8/6/2019 Project Report 2010
22/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 22 S R G P T C TRIPRAYAR
7.0 SAMPLE OUTPUTS
8/6/2019 Project Report 2010
23/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 23 S R G P T C TRIPRAYAR
8/6/2019 Project Report 2010
24/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 24 S R G P T C TRIPRAYAR
8/6/2019 Project Report 2010
25/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 25 S R G P T C TRIPRAYAR
8/6/2019 Project Report 2010
26/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 26 S R G P T C TRIPRAYAR
8/6/2019 Project Report 2010
27/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 27 S R G P T C TRIPRAYAR
8/6/2019 Project Report 2010
28/54
8/6/2019 Project Report 2010
29/54
8/6/2019 Project Report 2010
30/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 30 S R G P T C TRIPRAYAR
8/6/2019 Project Report 2010
31/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 31 S R G P T C TRIPRAYAR
8/6/2019 Project Report 2010
32/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 32 S R G P T C TRIPRAYAR
8 .0 SOURCE CODES
Welcome Form
Private Sub Command1_Click ()
Login . Show
End Sub
Login Form
Option Explicit
Public Login Succeeded As Boolean
Private Sub cmdCancel_Click ()
'Set the global var to false'To denote a failed login
Login Succeeded = Fals
Me . Hide
End Sub
Private Sub cmdOK_Click ()
'Check for correct password
I f txtPassword = "S" And txtUserName = "S" Then
'Place code to here to pass the
8/6/2019 Project Report 2010
33/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 33 S R G P T C TRIPRAYAR
'Success to the calling sub
'Setting a global var is the easiest
Login Succeeded = True
Me . Hide
MD I Form1 .Show
Else
MsgBox "Invalid Password, try again!", , "Login"
txtPassword .SetFocus
Send Keys "{Home} + {End}"
End I f
End Sub
MD I FORM (CHO I CE)
Private Sub MD I Form_Load ()
OPENDB
End Sub
Private Sub MNUADM I SS I ON_Click ()
Admission . Show
End Sub
Private Sub MNUDATA_Click ()
8/6/2019 Project Report 2010
34/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 34 S R G P T C TRIPRAYAR
table1 .Show
End Sub
Private Sub MNUD I SCHARGE_Click ()
Discharge . Show
End Sub
Private Sub MNUEX I TEX_Click ()
Logout . Show
End Sub
Private Sub MNUFAC I L I T I ES_Click ()
Facility . Show
End Sub
Private Sub MNUPAT I ENT_Click ()
Patient . Show
End Sub
FORM 2 (ADM I SS I ON_DETA I LS)
Private Sub Form Load ()
Text 2 .Text = Format$(Now, "DD-MMMM-YY")
8/6/2019 Project Report 2010
35/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 35 S R G P T C TRIPRAYAR
Combo1 .Add I tem ("male")
Combo1 .Add I tem ("female")
Combo 2 .Add I tem ("Dr .shahina ")
Combo 2 .Add I tem ("Dr .sahana ")
Combo 2 .Add I tem ("Dr .sajina ")
End Sub
Private Sub MNUADD_Click ()Set RS = New ADODB .Recordset
SQ L = "select * from admission details"
RS .Open S Q L, CONN, adOpenKeyset, adLockOptimistic
RS .AddNew
RS .Fields ("adm_no") . Value = Val (Text1 .Text)
RS .Fields ("adm_date") .Value = CDate (Text 2 .Text)
RS .Fields ("patient_name") .Value = UCase (Text3 .Text)
RS .Fields ("age") .Value = Val (Text 4. Text)
RS .Fields ("sex") .Value = UCase (Combo1 . Text)
RS .Fields (doctr_name") . Value = UCase (Combo 2 . Text)
RS .Fields ("room_no") . Value = Val (Text5 .Text)
RS .Update
MsgBox ("record inserted successfully")
Text1 .Text = ""
Text 2 .Text = ""
8/6/2019 Project Report 2010
36/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 36 S R G P T C TRIPRAYAR
Text3 .Text = ""
Text 4. Text = ""
Combo1 .Text = ""
Combo 2 .Text = ""
Text5 .Text = ""
Text1 .SetFocus
End Sub
Private Sub MNUCANCEL_Click ()
Unload Me
End Sub
Private Sub MNUDELETE_Click ()
Set RS = New ADODB .Recordset
X = MsgBox ("DO U WANT TO DELETE A RECORD?", vbYesNo +vb Q uestion, "DELETE")
I f X = vbYes Then
RS .Open "SELECT * FROM admission_details WHERE adm_no=" &Val(Text1 . Text), CONN, adOpenKeyset, adLockOptimistic
RS .Delete
RS .Update
MsgBox ("RECORD DELETED SUCCESSFULLY")
End I f
I f X = vbNo Then
8/6/2019 Project Report 2010
37/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 37 S R G P T C TRIPRAYAR
MsgBox ("RECORD NOT DELETED")
End I f
Text1 .Text = ""
Text 2 .Text = ""
Text3 .Text = ""
Text 4. Text = ""
Combo1 .Text = ""
Combo 2.Text = ""
Text5 .Text = ""
End Sub
Private Sub MNUSEARCH_Click ()
Set RS = New ADODB .Recordset
SQ L = "SELECT * FROM ADM I SS I ON_DETA I LS WHEREadm_no=" & Val (Text1 . Text)
RS .Open S Q L, CONN, adOpenKeyset, adLockOptimistic
Text 2 .Text = RS .Fields ("adm_date") .Value
Text3 .Text = RS .Fields ("patient_name") .Value
Text 4. Text = RS .Fields ("age") . Value
Combo1 .Text = RS .Fields ("sex") . Value
Combo 2 .Text = RS .Fields ("doctor_name") .Value
Text5 .Text = RS .Fields ("room_no") . Value
End Sub
8/6/2019 Project Report 2010
38/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 38 S R G P T C TRIPRAYAR
FORM 3(PAT I ENT_DETA I LS)
Private Sub Form Load ()
Combo1 .Add I tem ("male")
Combo1 .Add I tem ("female")
Combo 2 .Add I tem ("Dr .shahina khader")
Combo 2 .Add I tem ("Dr .sahana khader")
Combo 2 .Add I tem ("Dr .sajina khader")
End Sub
Private Sub MNUADD_Click ()
Set RS = New ADODB .Recordset
SQ L = "select * from patient _details"
RS .Open S Q L, CONN, adOpenKeyset, adLockOptimistic
RS .AddNew
RS .Fields ("adm_no") . Value = Val (Text1 .Text)
RS .Fields ("patient_name") .Value = UCase (Text 2 .Text)
RS .Fields ("age") .Value = Val (Text3 .Text)
RS .Fields ("sex") .Value = UCase (Combo1 . Text)
RS .Fields ("occupation") .Value = UCase (Text 4. Text)
RS .Fields ("address") .Value = UCase (Text5 .Text)
RS .Fields ("diagnosis") .Value = UCase (Text6 .Text)
RS .Fields ("doctor_name") .Value = UCase( Combo 2 .Text)
8/6/2019 Project Report 2010
39/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 39 S R G P T C TRIPRAYAR
RS .Update
MsgBox ("record inserted successfully")
Text1 .Text = ""
Text 2 .Text = ""
Text3 .Text = ""
Combo1 .Text = ""
Text 4. Text = ""
Text5.Text = ""
Text6 .Text = ""
Combo 2 .Text = ""
Text1 .SetFocus
End Sub
Private Sub MNUCANCEL_Click ()
Unload Me
End Sub
Private Sub MNUDELETE_Click ()
Set RS = New ADODB .Recordset
X = MsgBox ("DO U WANT TO DELETE A RECORD?", vbYesNo +vb Q uestion, "DELETE")
I f X = vbYes Then
RS .Open "SELECT * FROM patient details WHERE adm_no=" & Val(Text1 .Text), CONN, adOpenKeyset, adLockOptimistic
8/6/2019 Project Report 2010
40/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 40 S R G P T C TRIPRAYAR
RS .Delete
RS .Update
End I f
MsgBox ("RECORD DELETED SUCCESSFULLY")
Text1 .Text = ""
Text 2 .Text = ""
Text3 .Text = ""
Combo1.Text = ""
Text 4. Text = ""
Text5 .Text = ""
Text6 .Text = ""
Combo 2 .Text = ""
End Sub
Private Sub MNUSEARCH_Click ()
Set RS = New ADODB .Recordset
SQ L = "SELECT * FROM patient details WHERE adm_no=" & Val(Text1 .Text)
RS .Open S Q L, CONN, adOpenKeyset, adLockOptimistic
Text 2 .Text = RS .Fields ("patient_name") .Value
Text3 .Text = RS .Fields ("age") . Value
Combo1 .Text = RS .Fields ("sex") . Value
Text 4. Text = RS .Fields ("occupation") . Value
8/6/2019 Project Report 2010
41/54
8/6/2019 Project Report 2010
42/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 42 S R G P T C TRIPRAYAR
RS .Fields ("age") .Value = Val (Text 4. Text)
RS .Fields ("sex") .Value = UCase (Combo1 . Text)
RS .Fields ("diagnosis") .Value = UCase (Text5 .Text)
RS .Fields ("Medicines_used") .Value = UCase (Text6 .Text)
RS .Update
MsgBox ("RECORD I NSERTED SUCCESSFULLY")
Text1 .Text = ""
Text 2.Text = ""
Text3 .Text = ""
Text 4. Text = ""
Combo1 .Text = ""
Text5 .Text = ""
Text6 .Text = ""
Text1 .SetFocus
End Sub
Private Sub MNUCANCEL_Click ()
Unload Me
End Sub
Private Sub MNUDELETE_Click ()
Set RS = New ADODB .Recordset
8/6/2019 Project Report 2010
43/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 43 S R G P T C TRIPRAYAR
X = MsgBox ("DO U WANT TO DELETE A RECORD?", vbYesNo +vb Q uestion, "DELETE")
I f X = vbYes Then
RS .Open "SELECT * FROM discharge_details WHERE adm_no=" &Val (Text1 .Text), CONN, adOpenKeyset, adLockOptimistic
RS .Delete
RS .Update
MsgBox ("PAT I ENT D I SCHARGED")
End I f
MsgBox ("RECORD DELETED SUCCESSFULLY")
Text1 .Text = ""
Text 2 .Text = ""
Text3 .Text = ""
Text 4. Text = ""
Combo1 .Text = ""
Text5 .Text = ""
Text6 .Text = ""
End Sub
Private Sub MNUSEARCH_Click ()
Set RS = New ADODB .Recordset
SQ L = "SELECT * FROM discharge_details WHERE adm_no=" &Val (Text1 .Text)
RS .Open S Q L, CONN, adOpenKeyset, adLockOptimistic
8/6/2019 Project Report 2010
44/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 44 S R G P T C TRIPRAYAR
Text 2 .Text = RS .Fields ("Dis_date") . Value
Text3 .Text = RS .Fields ("patient_name") .Value
Text 4. Text = RS .Fields ("age") . Value
Combo1 .Text = RS .Fields ("sex") . Value
Text5 .Text = RS .Fields ("diagnosis") . Value
Text6 .Text = RS .Fields ("Medicines_used") . Value
End Sub
FORM5 (D I SCHARGE_CARD)
Private Sub MNUCANCEL_Click ()
Unload Me
End Sub
Private Sub MNUDELETE_Click ()
Set RS = New ADODB .Recordset
X = MsgBox ("DO U WANT TO DELETE A RECORD?", vbYesNo +vb Q uestion, "DELETE")
I f X = vbYes Then
RS .Open "SELECT * FROM discharge_details WHERE adm_no=" &
Val (Text1.Text), CONN, adOpenKeyset, adLockOptimistic
RS .Delete
RS .Update
End I f
MsgBox ("PAT I ENT D I SCHARGED")
8/6/2019 Project Report 2010
45/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 45 S R G P T C TRIPRAYAR
Text1 .Text = ""
Text 2 .Text = ""
Text3 .Text = ""
Text 4. Text = ""
Combo1 .Text = ""
Text5 .Text = ""
Text6 .Text = ""
End Sub
Private Sub MNUD I SPLAY_Click ()
Set RS = New ADODB .Recordset
SQ L = "SELECT * FROM discharge_details WHERE adm_no=" &Val(Text1 . Text)
RS .Open S Q L, CONN, adOpenKeyset, adLockOptimistic
Text 2 .Text = RS .Fields ("Dis_date") . Value
Text3 .Text = RS .Fields ("patient_name") .Value
Text 4. Text = RS .Fields ("age") . Value
Combo1 .Text = RS .Fields ("sex") . Value
Text5 .Text = RS .Fields ("diagnosis") . Value
Text6 .Text = RS .Fields ("Medicines_used") . Value
End Sub
FORM 6(FAC I L I TY)
8/6/2019 Project Report 2010
46/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 46 S R G P T C TRIPRAYAR
Private Sub Command1_Click ()
Unload Me
End Sub
FORM 7(DATA_V I EW)
Private Sub Command1_Click ()
I f Combo1 . Text = "ADM I SS I ON DETA I LS" Then
Set RS = New ADODB .Recordset
MSFlexGrid1 .Clear
RS .Open "SELECT * FROM ADM I SS I ON_DETA I LS", CONN,adOpenKeyset, adLockOptimistic
RS .MoveFirst
MSFlexGrid1 .TextMatrix (0, 0) = "adm_no"
MSFlexGrid1.TextMatrix (0, 1) = "adm_date"
MSFlexGrid1 .TextMatrix (0, 2) = "patient_name"
MSFlexGrid1 .TextMatrix (0, 3) = "age"
MSFlexGrid1 .TextMatrix (0, 4 ) = "sex"
MSFlexGrid1 .TextMatrix (0, 5) = "doctor_name"
MSFlexGrid1 .TextMatrix (0, 6) = "room_no"
I = 0
While RS . EOF = False
I = I + 1
MSFlexGrid1 .Rows = MSFlexGrid1 . Rows + 1
8/6/2019 Project Report 2010
47/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 47 S R G P T C TRIPRAYAR
MSFlexGrid1 .TextMatrix ( I , 0) = RS (0) .Value
MSFlexGrid1 .TextMatrix ( I , 1) = RS (1) .Value
MSFlexGrid1 .TextMatrix ( I , 2) = RS ( 2).Value
MSFlexGrid1 .TextMatrix ( I , 3) = RS (3) .Value
MSFlexGrid1 .TextMatrix ( I , 4 ) = RS ( 4 ).Value
MSFlexGrid1 .TextMatrix ( I , 5) = RS (5) .Value
MSFlexGrid1 .TextMatrix ( I , 6) = RS (6) .Value
RS.MoveNext
Wend
MSFlexGrid1 .AllowUserResizing = flexResizeColumns
MSFlexGrid1 .ColWidth ( 2 ) = MSFlexGrid1 .Width / 4. 25
MSFlexGrid1 .ColWidth (5) = MSFlexGrid1 .Width / 3 .65
MSFlexGrid1 .ColWidth (0) = MSFlexGrid1 .Width / 10
MSFlexGrid1 .ColWidth (3) = MSFlexGrid1 .Width / 10
MSFlexGrid1 .ColWidth (6) = MSFlexGrid1 .Width / 10
End I f
I f Combo1 . Text = "PAT I ENT DETA I LS" Then
Set RS1 = New ADODB .Recordset
MSFlexGrid1 .Clear
RS1 .Open "SELECT * FROM PAT I ENT_DETA I LS", CONN,adOpenKeyset, adLockOptimistic
RS1 .MoveFirst
MSFlexGrid1 .TextMatrix (0, 0) = "adm_no"
8/6/2019 Project Report 2010
48/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 48 S R G P T C TRIPRAYAR
MSFlexGrid1 .TextMatrix (0, 1) = "patient_name"
MSFlexGrid1 .TextMatrix (0, 2) = "age"
MSFlexGrid1 .TextMatrix (0, 3) = "sex"
MSFlexGrid1 .TextMatrix (0, 4 ) = "occupation"
MSFlexGrid1 .TextMatrix (0, 5) = "address"
MSFlexGrid1 .TextMatrix (0, 6) = "diagnosis"
MSFlexGrid1 .TextMatrix (0, 7) = "doctor_name"
I= 0
While RS1 . EOF = False
I = I + 1
MSFlexGrid1 .Row = MSFlexGrid1 . Row + 1
MSFlexGrid1 .TextMatrix ( I , 0) = RS1 (0) .Value
MSFlexGrid1 .TextMatrix ( I , 1) = RS1 (1) .Value
MSFlexGrid1 .TextMatrix ( I , 2) = RS1 ( 2).Value
MSFlexGrid1 .TextMatrix ( I , 3) = RS1 (3) .Value
MSFlexGrid1 .TextMatrix ( I , 4 ) = RS1 ( 4 ).Value
MSFlexGrid1 .TextMatrix ( I , 5) = RS1 (5) .Value
MSFlexGrid1 .TextMatrix ( I , 6) = RS1 (6) .Value
MSFlexGrid1 .TextMatrix ( I , 7) = RS1 (7) .Value
RS1 .MoveNext
Wend
MSFlexGrid1 .AllowUserResizing = flexResizeColumns
MSFlexGrid1 .ColWidth (1) = MSFlexGrid1 .Width / 4. 25
8/6/2019 Project Report 2010
49/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 49 S R G P T C TRIPRAYAR
MSFlexGrid1 .ColWidth (7) = MSFlexGrid1 .Width / 3 .65
MSFlexGrid1 .ColWidth (0) = MSFlexGrid1 .Width / 9
MSFlexGrid1 .ColWidth (3) = MSFlexGrid1 .Width / 10
End I f
I f Combo1 . Text = "D I SCHARGE DETA I LS" Then
Set RS 2 = New ADODB .Recordset
MSFlexGrid1 .Clear
RS 2.Open "SELECT * FROM discharge_details", CONN,adOpenKeyset, adLockOptimistic
RS 2 .MoveFirst
MSFlexGrid1 .TextMatrix (0, 0) = "Adm_no"
MSFlexGrid1 .TextMatrix (0, 1) = "Dis_date"
MSFlexGrid1 .TextMatrix (0, 2) = "Patient_name"
MSFlexGrid1 .TextMatrix (0, 3) = "Age"
MSFlexGrid1 .TextMatrix (0, 4 ) = "Sex"
MSFlexGrid1 .TextMatrix (0, 5) = "Diagnosis"
MSFlexGrid1 .TextMatrix (0, 6) = "Medicines_used"
I = 0
While RS 2 . EOF = False
I = I + 1
MSFlexGrid1 .Rows = MSFlexGrid1 . Rows + 1
MSFlexGrid1 .TextMatrix ( I , 0) = RS 2 (0) .Value
MSFlexGrid1 .TextMatrix ( I , 1) = RS 2 (1) .Value
8/6/2019 Project Report 2010
50/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 50 S R G P T C TRIPRAYAR
MSFlexGrid1 .TextMatrix ( I , 2) = RS 2 (2).Value
MSFlexGrid1 .TextMatrix ( I , 3) = RS 2 (3) .Value
MSFlexGrid1 .TextMatrix ( I , 4 ) = RS 2 (4 ).Value
MSFlexGrid1 .TextMatrix ( I , 5) = RS 2(5) .Value
MSFlexGrid1 .TextMatrix ( I , 6) = RS 2(6) .Value
RS 2 .MoveNext
Wend
MSFlexGrid1.AllowUserResizing = flexResizeColumns
MSFlexGrid1 .ColWidth ( 2 ) = MSFlexGrid1 .Width / 4. 25
MSFlexGrid1 .ColWidth (5) = MSFlexGrid1 .Width / 5
MSFlexGrid1 .ColWidth (6) = MSFlexGrid1 .Width / 3 .65
MSFlexGrid1 .ColWidth (3) = MSFlexGrid1 .Width / 10
End I f
End Sub
Private Sub Command 2 _Click()
Unload Me
End Sub
Private Sub Form Load ()
Combo1 .Add I tem ("ADM I SS I ON DETA I LS")
Combo1 .Add I tem ("PAT I ENT DETA I LS")
8/6/2019 Project Report 2010
51/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 51 S R G P T C TRIPRAYAR
Combo1 .Add I tem ("D I SCHARGE DETA I LS")
End Sub
FORM8 (LOGOUT)
Private Sub Command1_Click ()
Thank . Show
Unload Me
End Sub
FORM 9(THANK)
Private Sub Command1_Click ()
End
End Sub
MODULE
Public CONN As ADODB .Connection
Public RS as ADODB .Recordset
Public S Q L As String
Sub OPENDB ()
Set CONN = New ADODB .Connection
CONN . Open "PROV I DER=MSDAS Q L; DR I VER= {M I CROSOFTODBC FOR ORACLE}; SERVER=ajeesha; U I D=SCOTT;PWD=T I GER;"
End Sub
8/6/2019 Project Report 2010
52/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 52 S R G P T C TRIPRAYAR
9 .0 CONCLUS I ON
This project HOSP I TAL MANAGEMENT SYSTEM is a circulationsoftware and subscrption management for a hospital .The patientsdetails I this project contain the information likename,addressage,sex,occupation,admission details and discharge details .
This project is developed by using Micrft VisualBasic is the graphical user interface .So I choose this software toimplement this mini project .
The software which I developed wasimplemented and tested with the real data and their found to be errorfree . Also it is found that the system will work successfully .Security is themain consideration in this project .The system is protected fromunauthorized access by giving username and passord during the login
process
8/6/2019 Project Report 2010
53/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT
COMPUTER ENGG 53 S R G P T C TRIPRAYAR
10 .0 B I BL I OGRAPHY
System Analysis And Desgn Elias M Awad
Software Engineering--Roger S Pressman
Visual Basic 6 .0--GaryCornell
8/6/2019 Project Report 2010
54/54
PROJECT REPORT 2010-2011 HOSPITAL MANAGEMENT