You are on page 1of 68

Mini Project Report Hospital Management System By

Miss Bondita Handique


Enrolment no. 091751542

Under the Guidance of Mr. Rupam Baruah, HOD, Computer Science Dept., JEC, Jorhat Submitted to the name of the Institute, IGNOU In partial fulfillment of the requirements for the degree of

Master of Computer Applications (MCA)

Indira Gandhi National Open University Maidan Garhi New Delhi 110068

CERTIFICATE OF AUTHENTICATED WORK

This is to certify that the project report entitled Patient Information System submitted to Indira Gandhi National Open University in partial fulfillment of the requirement for the award of the degree of MASTER OF COMPUTER APPLICATIONS (MCA) is an original work carried out by Miss Bondita Handique, enrolment no. 091751542, under my guidance. The matter embodied in this project is authentic and is genuine work done by the student and has not been submitted whether to this University or to any other University / Institute for the fulfillment of the requirement of any course of study.

....................................... ........... Signature of the Student the Counselor Date: . Name and Address Of the Student Counselor Bondita Handique

................................. Signature Date: of

Name, Designation and Address of the Mr. Rupam Baruah

ABSTRACT
Abstraction is an indispensable part of the design process and is essential for problem partitioning. Partitioning essentially is the exercise in determining the system components are not isolated from each other but interacts with other components. Abstraction is used for exiting components as well as components that are being designed. Using this abstraction behavior of the entire system can be understood. ABSTRACT STRUCTURE:

Login

Patient Registration

Entry/Discharge

Search

Others

IP History IPD OPD

Search IP

Search Doctors

IP Entry / Discharge Doctors

Search OP

Rooms

Rooms Available

About Us

ACKNOWLEDGEMENT

At the outset, we offer our sincere thanks and deep gratitude to Mr.Rupam Baruah sir. I had the privilege to receive great inspiration and guidance from him, which helped us to set the objectives of this study and complete the report. I am fortunate to have constant encouragement and practical guidance in all aspect of our study. His experience in this line has been a boon to us in this respect.

BONDITA HANDIQUE ENROL.NO:

TABLE OF CONTENTS
Page CHAPTER 1: INTRODUCTION 1.1 Background 1.2 Objective 1.3 Purpose, Scope and Applicability 1.3.1 Purpose 1.3.2 Scope 1.4 Achievements 1.5 Organization of Report CHAPTER 2: SERVEY OF TECHNOLOGY 13 CHAPTER 3: REQUIREMENTS AND ANALYSIS 15 3.1 Problem Definition 3.2 Requirement Specification 3.3 Planning and Scheduling 3.4 Software and Hardware Requirements 3.4.1 Hardware Requirements 3.4.2 Software Requirements 3.5 Preliminary Product Description 3.6 Conceptual Models 3.6.1 Module Specifications 3.6.2 Screen Views 3.6.3 Data Flow Diagrams CHAPTER 4: SYSTEM DESIGN 70 4.1 Basic Modules 4.2 Data Design 4.2.1 Schema Design 70 70 70 61 63 15 16 51 53 53 53 54 61 61 11 11 12 10 10 10 10 10

4.2.2 Data Integrity and Constraints 4.3 Procedural Design 4.3.1 Logic Diagrams 4.4 User Interface Design 4.5 Security Issues CHAPTER 5: IMPLEMENTATION AND TESTING 78 5.1 Implementation Approaches 5.2 Coding Details and Code Efficiency 78 5.2.1 Coding 5.2.2 Code Efficiency 5.3 Testing Approach 5.3.1 Unit Testing 5.3.2 Integrated Testing 5.4 Modifications and Improvements CHAPTER 6: RESULTS AND DISCUSSION 97 6.1 Test Reports 6.2 User Documentation CHAPTER 7: CONCLUSION 101 7.1 Conclusion 101 7.2 Limitations of the System 101 7.3 Future scope of the Project 101 REFERENCES 102 78 74

71 72 72 74

78

93 93 93 96 96

97 98

1.1 INTRODUCTION Today, computerized processing of transaction data is an activity of almost any organization. In this generation, everybodys life becomes in computerized. They go ahead with the computer. The areas of computer applications are literally too numerous to mention. Computers have become an integral part of mans everyday. They dominate every sphere of life be it entertainment, education, banking, insurance, medicine, design or manufacturing. Actually this generation is the era of rapid growth of Information Technology. IT has change the working process in all fields of human being. So they continue grow and the open new horizons of discovery and application. One of the primary reasons for the immense popularly of computers is the speed with which they can accomplish specific tasks. However computer applications are not always easy to use. It is a simple small system illustrated by using the most common features of Visual Basic. This project includes Patient registration and record management in the Hospital. With this project it is tried to manage this things easily and with less time of the organization Sanjivani hospital. The data within an organization will increasingly be regarded as a basic resource needed to run the organization. Lack of data will have a major on the growth and survival of an organization. The basic language used in this project is Microsoft Visual Basic and the database of the whole project is created used Microsoft SQL Server. The front end is designed in VB and the back end is Microsoft SQL Server. By using the forms of front-end user can access data from database as well as store data in the database. By using the Main form user can go to the other forms. The Organization of Sanjivani Hospital, a partnership firm established on 14 th of March 2005 with 26 staff members including 8 doctors. It had 2 Operation Theater, 1 Labour room, 20 beds, at initial, with departments like Gynecology, Surgery (Open and Laparoscopy), Medicines, ENT, Radiology, Pathology and Endoscopy.

Till date it has 30 beds (including 21 cabins and 9 general). It has also introduced Neonatology. 1.2 OBJECTIVE The Hospital Management system is managed in almost all the hospital a manual procedure. But in the manual procedure there may be so many drawbacks. In the manual procedure it is quite lengthy to keep all the records. Sometimes information may be recorded incorrectly. The major objective of the proposed computerized system is to overcome the drawback of the existing manual system to provide a paperless office environment. The other objective of this system includes providing an information sources, increasing efficiency, productivity and build greater user satisfaction and eliminating duplication of records. So we have found the required information quickly to improve the various data processing. The proposed system is important for the store of data with minimum redundancy. It is also important for further use. This will maintain the data integrity. During the designing of the software my main objective will be make it a user friendly one. Primary Objectives can be notified as listed below: o Develop a model of the enterprise from an information viewpoint in order to improve communications, both within and outside the organization. o Monitoring inventory, document and other resources that create, process, store, and disseminate information. o Utilization of information resources effectively to achieve the overall goals and mission of the organization.

1.3 Purpose and Scope 1.3.1 Purpose Hospital Management System would have the following goals. Provide a user interface to add, view, delete records in different categories. Provide an user interface to register patient Provide a user interface to change user settings like password and their profiles. Provide a user interface for administrator to manage the accounts and database.

1.3.2 Scope The main scope and deliverables of the project would be to: Understand and prepare detailed requirement and specifications Prepare high level and detailed design specifications of the system Prepare Test Plan and Test cases Develop the system and coding Perform unit testing, integration and system testing Demonstrate a bug free application after suitable modification if needed.

1.4 Achievements By successfully implementing Hospital Management System, a substantial knowledge has been acquired on the implementation of a Desktop based database system. This knowledge will be useful in the future in creating any type of application or database systems. The objective of Hospital Management System was the creation of a useful application for the hospital which has been fulfilled. This system can be easily modified to serve the needs of any reminder.

1.5 Organization of Report This report is organized in seven chapters, as indicated in the Table of Contents. These chapters deal with the important aspects of the Systems Development Cycle. Each of the chapters is divided into Headings and Sub-Headings. Chapter 1 introduces the project, its background and purpose. The technologies used in the project and the reason thereof are explained in Chapter 2. Chapter 3 broadly deals with the requirements, analysis and planning of the project. All the design aspects have been dealt with in Chapter 4 including schema design, interface design, security and test cases. The actual implementation has been discussed in Chapter 5, which includes coding and testing of the working of the system. Chapter 6 discusses the test reports and project documentation and finally the conclusions have been drawn in Chapter 7. At the end of the report, the references made and the glossary has been included.

2. SURVEY OF TECHNOLOGY
In a web based application like Online Discussion Forum, there is a scope for a large number of platforms, languages, web servers and frameworks to choose from. Before selecting from this large array of technologies, the following aspects, which are characteristic to web based application like this one, have been kept in mind: Dynamic page generation Data validation Performance Reliability Scalability Security Portability Performance Time constraint Cost constraint

3. REQUIREMENTS AND ANALYSIS


The first step to the system analysis process involves the identification of need. The intent is to understand the software objectives and to define the goals required to meet the objectives. THE EXISTING SYSTEM Description of the existing system is explained below(a) Outdoor Patient Registration: In this shift the patients are treated without any interaction with the internal management of the hospital patient will directly go to the reception counter, the sister on duty then records his/her name, address, primary symptoms of disease and according to his problem he/she referred to specific doctors of that particular branch along with the allotted room number. Now a days no records is available about (b) Patient patient but in future we are opting to store the same. Now a day the hospital keeps all these particulars manually. This is quite a laborious task, after computerized the system they will be able to maintain a database where details of all the registered patients will be stored. If any complain from patient came or if the patient came for revisit after quite a long days also, hospital management through a query can retrieve the details quickly from the all his personal details and medical details. They will have to no longer keep all these manually.

(c) Indoor patient registration covers that part of the hospital through which patient under goes treatment after admitting to the hospital. They need continuous observation of the doctors and sisters critical or serious or they may need future treatment which is not possible only in a single visit. The doctors have to collect various information for the patients such as about medicines, pathological tests, pulse, and temperature timely. These records are kept by them manually which is very risking. If such important records are lost it will cause a great problem for the patients as well as for the doctor. These records have to store very carefully which is quite a tedious job. If the system will be computerized then they will be able to store the particulars in a database and prepare reports on these data Drawbacks of the existing system:The main drawbacks of the existing system are: Maintenance of paper is very tedious process. Data inconsistency can occur due to the duplication of information. The data processing speed of the manual process is very slow. Redundant and repetitive works had to be done manually. Often errors may occur due to concerned persons fatigue, tiredness, and boredom Calculation of bill is also a time consuming and erroneous job. Searching process is very problematic since data are stored in files. Data may be lost. Reports are generated manually. There is also a chance of missing of the reports when they are generated manually. 3.2 Requirement Specification Requirements Specification: Requirements Specification involves the basic requirements that the system to be developed should posses. These can be broadly classified into two types. 1. Performance Requirements. 2. Functional Requirements.

Understanding the requirements specification is critical for the projects success otherwise the system does not get developed according to the customers wishes. Performance Requirements: 1. The system should be built in a way such that it is independent of the type of database used (SQL Server, Oracle etc). 2. Response should be fast. 3. High throughput. 4. Security should be high such that no intruder can tamper with data. 5. The access of the system should be traceable to identify who are the users of the system and when they last logged in to the system.

FEASIBILITY STUDY
Feasibility Study is one of the fundamental aspects in design of system. The key-points are as follows:1) Form a project team and appoint a project leader. 2) Prepare system flow chart. 3) Enumerate potential candidate systems. 4) Describe and identify characteristics of candidate systems. 5) Determine and evaluate performance and cost effectiveness of each candidate system. 6) Weight system performance and cost data. 7) Select the best candidate system. 8) Prepare and report final project directive to management.

Three key considerations are involved in the feasibility analysis:


i. ii. iii. Technical. Operational. Economical.

Technical Feasibility:
It specifies whether the proposed solution in the project is possible to be implemented using available hardware and software.

Operational Feasibility :
Operational feasibility considers the factors that how the software will satisfy the need of the users, how it could be changed for future requirements and the operational factors of the computer.

Economical Feasibility :

This defines the measurement cost effectiveness of the project. It further consists of two parts : a. Direct cost. b. Indirect cost.

Economical Feasibility of the Project:


a. Initial cost for development is not high since a machine with required configuration was available in the company. b. Necessary software for back-end and front-end use were also available there.

DATA FLOW DIAGRAM


A DFD is a graphical tool, which has the purpose of clarifying system requirement and identifying major transaction that will become programs in the system design. It is also known as Bubbles Chart, which has the purpose of defining system requirement and in functionally decomposes of requirement specification down to the lowest level of detail. The DFD consists of series of bubbles joined by a line. The bubbles represent data transformation and the line represents the flow of the data in the system. The DFD provides a mechanism for function modeling as well as information modeling. So, it is the starting phase of the design phase. DFD symbols are:A process The destination system data The flow of information The table in which information will be started

Request
External Source

SANJIVANI HOSPITAL PATIENT REGISTRATION AND RECORD MANAGEMENT

Query DATABASE DATABASE DATABASE Response

Response

Context Diagram (0 Level DFD)

Patient

Doctor
Treatmen t

Fees

IPD

OPD

Room

Admission

Fees

ment Admission

External data Billing System

Bill

Print Bill

Billing amount paid

Discharg e Discharge 1st LEVEL DFD

Doctor report

Print report

External data

Verificatio n

Staff

Attendance Register

Register

Report

1st LEVEL DFD

Patient

Doctor

Treatment

Fees

IPD

OPD

Doctors report

Billing System

Doctors report

Print Report

2nd LEVEL DFD Result Doctor info. Administration Search Room-id In-patient registration IPD OPD Room Doctor

DATA DICTIONARY
In DFD, a data item that flows between processes is identified by unique names. Dada Dictionary is repository of various data flows defined in a DFD. It contains the details of the structure of data items and files used in DFDs. A data dictionary defines each term encountered during the analysis and design of a new system. Data elements can describe files, data flows as usual processes. The term may have one of several closely related meanings pertaining to databases and database management systems (DBMS):

a document describing a database or collection of databases an integral component of a DBMS that is required to determine its structure a piece of middleware that extends or supplants the native data dictionary of a DBMS
Admission Details: Regd_no + Patient_name + Address + Ph_no + Age + Sex + Diagnosis + Patient_type + Guardian + Relationship + Room + Date_of_admission + Time_of_admission + Refered _by_doctor + Consultant_doctor + Case_history. IPD Patient Details: Regd_no + Patient_name + Sex + Permanent_address + Temporary_address + Age + Ph_no + Guardian + Relationship + Marry + Patient_disease + Patient_type + Admit_time Refer_by_doctor + Consultant_doctor + Case_history + Admit_date +

OPD Patient Details: Regd_no + Patient_name + Address + Ph_no + Age + Sex + Guardian + Relationship + Diagnosis + Patient_type + Consulting_doctor + Consulting_date + Consulting_time + Consulting_fees. Doctor Details: Doctor_id + Doctor_name + Address + Contact_no + Sex + Specialist + Visiting_date + Visiting_time. Staff Details: Staff id + Name + Sex + Address + Contact no + Age + Designation + Date of join + Time of join + Marital status +Salary. Room Details: Room_id + Room_no + Room_rate + Room_type + Total_room Bill Details: Bill_no + Regd_no + Patient_name + Date + Room_c + I/D_c + Spe_c + Labo_c + Sur_c + Bloot_test_c + ECG_c + Ambulance_c

+ Other_c + Total_amt + Daily_bill + Pharmacy + Advance + Net_amt + Paid Discharge Details: Regd_no + P_name + Address + Ph_no + Age + Sex + Depertment + Date_of_admit + Time_of_admit + Date_of_discharge + Time_of_discharge + Room + Diagnosis + Treatment_summery + Instruction_to_patient + Result. Register Details: Staff_id + Staff_name + Designation + Attending_time + Leaving_time

ANALYSIS & DESIGN


4.1 SYSTEM ANALYSIS
System analysis is a study of various operation performed by a system and their relationship within and outside of the system. It is a systematic technique that defines goals and objectives. The goal of system development is to deliver the system in line with the users requirement and analysis is the heart of this process. Out of the main aspects of analysis it is defining the boundaries of the system and determining whether or not a candidate system should consider other related system. System study has been conducted with the following objectives in mind: Identify the users needs. Evaluate the system concept for feasibility. Perform economical and technical analysis. Allocate functional to hardware, software, people, database and other system elements and Establish cost and schedule constraints. Both hardware and software expertise is required to successfully attain the objectives listed above.

4.2

SYSTEM DESIGN
The most creative and challenging phase of the System Life Cycle is System Design.

It refers to the technical specifications that will be applied in implementing the candidate system. System design specifies how the system will achieve the objective of the proposed system. System Design goes through two phases of development. These are: Logical Design: Logical System Design involves developing general specification for how the basic information system activities of input, processing, output, storage and control can meet end user requirements. Physical Design: Physical Design involves the detail design of user interface methods and products, database structures, processing and control procedures.

4.3

USER INTERFACE DESIGN

The first step in System Design is the User Interface Design. The User Interface Design activity focuses on the preparation of input and design of output reports in a form acceptable to the users. User Interface Design consists of two steps Input Design and Output design. Input Design: Input Design is the process of converting user originated inputs to a computer based format. The goal is a make the data entry as easy, logical and free from errors as possible. Output Design: Computer output is the most important and direct source of information to the user. Efficient, intelligible output design helps the user in decisionmaking.

4.4

DATABASE DESIGN
Usually, a collection of interrelated data is referred to as database. The database contains information about one particular enterprise. The management of data involves both definitions of structures of the stage of information. In addition, the database system must provide for safely information storage in the database, system crash or unauthorized access. List of database tables with their description and structures are given below Table 1: Admission
Sl. No 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Field Name Regd_no P_Name Add Ph_no Age Sex Diagnosis P_type Guardian Relationship Room Date_O_Admit Time_O_Admit Reffered_by_Dr Consultant_Dr Case_history Data Type Nvarchar Nvarchar Nvarchar float int Nvarchar Nvarchar Nvarchar Nvarchar Nvarchar nvarchar smalldatetime smalldatetime nvarchar Nvarchar Nvarchar Size 30 50 50 4 10 50 50 50 50 20 50 50 30 Key Primary

Table2: Room
Sl. No 1 2 3 4 5 Field Name Room_id Room_no Room_rate Room_type Total_room Data type nvarchar int float nvarchar float Size 30 4 20 Key Primary

Table3: Doctor
Sl. No 1 2 3 4 5 6 7 8 Field Name Dr_id Dr_name Add Ph-no Sex Specialist Visiting Date Visiting Time Data Type Nvarchar Nvarchar Nvarchar Float Nvarchar Nvarchar smalldatetime smalldatetime Size 30 50 20 10 Key Primary

Table4: IPD Patient


Sl. No 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Field Name Regd_no P_name Sex Per_add Tem_add Age Ph_no Guardian Relationship P_Disease P_type Admit_time Admit_Date Refer_by_dr Consultant_Dr Case_history Data Type Nvarchar Nvarchar Nvarchar Nvarchar nvarchar int float nvarchar nvarchar nvarchar nvarchar Smalldatetime Smalldatetime nvarchar nvarchar nvarchar Size 30 50 10 30 30 4 30 50 30 20 30 30 20 Key Primary

Table5: Staff
Sl. No 1 Field Name Staff_id Data Type Nvarchar Size 30 Key Primary

2 3 4 5 6 7 8 9 10 11

Name Sex Add Ph_no Age Designation Date_O_join Time_O_join Mari_status Salary

Nvarchar Nvarchar Nvarchar Float int Nvarchar Smalldatetime smalldatetime Nvarchar Nvarchar

30 30 30 10 4 30 30 30

Table6: Register
Sl. No 1 2 3 4 5 Field Name Staff_id Staff_name Designation Atten_time Leav_time Data Type Nvarchar Nvarchar Nvarchar Smalldatetime Smalldatetime Size 30 30 30 Key Primary

Table7: Hospital
Sl. No 1 2 3 4 5 Field Name Hospital_id Hos-name Hos_add Hos_ph_no Dept Data Type Nvarchar Nvarchar Nvarchar Float Nvarchar Size 30 30 30 10 30 Key Primary

Table8: OPD Patient


Sl. No 1 2 3 4 5 6 7 8 9 10 Field Name Regd_no P_name Add Ph_no Age Sex Guardian Relationship Diagnosis P_type Data Type Nvarchar Nvarchar Nvarchar Float int Nvarchar Nvarchar Nvarchar Nvarchar Nvarchar Size 30 30 30 10 4 30 30 30 30 30 Key Primary

11 12 13 14

Con_dr Con_date Con_time Con_fees

Nvarchar Smalldatetime Smalldatetime Float

30 10

FORM LAYOUTS
Design of the Splash Form

Login Form

Main Form

Admission

Doctor

Discharge

IPD

Bill

View Admission

View Bill

View Discahrge

View IPD

CODING SECTIONS
Coding for admission: Dim con As ADODB.Connection Dim rs As ADODB.Recordset Private Sub cmdback_Click() Unload Me End Sub Private Sub cmdsave_Click() If txtreg.Text = "" Or txtpname.Text = "" Or txtaddress.Text = "" Or txtphno.Text = "" Or txtage.Text = "" Or txtsex.Text = "" Or txtdiagnosis.Text = "" Or txtptype.Text = "" Or txtguardian.Text = "" Or txtrelation.Text = "" Or txtroom.Text = "" Or txtadmitdate.Text = "" Or txtadmittime.Text = "" Or txtreferdr.Text = "" Or txtcondr.Text = "" Or txtcasehistory.Text = "" Then MsgBox "Blank records cannot be saved" Else Set rs = New ADODB.Recordset Set rs = con.Execute("select Regd_no from Admission where Regd_no='" & Trim(txtreg.Text) & "'") If Not rs.EOF Then MsgBox "Duplicate id,Change it" txtreg.Text = "" txtreg.SetFocus Else con.Execute "insert into Admission values('" & Trim(txtreg.Text) & "','" & Trim(txtpname.Text) & "','" & Trim(txtaddress.Text) & "','" & Trim(txtphno.Text) & "','" & Trim(txtage.Text) & "','" & Trim(txtsex.Text) & "','" & Trim(txtdiagnosis.Text) & "','" & Trim(txtptype.Text) & "','" & Trim(txtguardian.Text) & "','" & Trim(txtrelation.Text) & "','" & Trim(txtroom.Text) & "','" & Trim(txtadmitdate.Text) & "','" & Trim(txtadmittime.Text) & "','" & Trim(txtreferdr.Text) & "','" & Trim(txtcondr.Text) & "','" & Trim(txtcasehistory.Text) & "')" MsgBox "Record Saved"

txtreg.Text = "" txtpname.Text = "" txtaddress.Text = "" txtphno.Text = "" txtage.Text = "" txtsex.Text = "" txtdiagnosis.Text = "" txtptype.Text = "" txtguardian.Text = "" txtrelation.Text = "" txtroom.Text = "" txtadmitdate.Text = "" txtadmittime.Text = "" txtreferdr.Text = "" txtcondr.Text = "" txtcasehistory.Text = "" End If End If End Sub Private Sub cmdview_Click() frmviewadm.Show frmviewadm.Top = 0 frmviewadm.Left = 0 frmviewadm.Width = 8595 frmviewadm.Height = 7650 End Sub Private Sub Form_Load() Set con = New ADODB.Connection con.Open End Sub Private Sub optfemale_Click() txtsex.Text = "Female" "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=..\SANJIVANI\sanjivani.mdb;Persist Security Info=False"

End Sub Private Sub optmale_Click() txtsex.Text = "Male" End Sub Private Sub txtage_Change() If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtphno_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Coding for Bill Form: Dim con As ADODB.Connection Dim rs As ADODB.Recordset Private Sub cmdback_Click() Unload Me End Sub Private Sub cmdsave_Click() If txtbilno.Text = "" Or txtregdno.Text = "" Or txtptname.Text = "" Or txtdate.Text = "" Or txtrmcharge.Text = "" Or txtidc.Text = "" Or txtspec.Text = "" Or txtlabc.Text = "" Or txtserc.Text = "" Or txtbldtstc.Text = "" Or txtecgc.Text = "" Or txtambulc.Text = "" Or txtoderc.Text = "" Or txttotalamt.Text = "" Or txtdailybill.Text = "" Or txtpharmacy.Text = "" Or txtadvance.Text = "" Or txtnetamt.Text = "" Or txtbal.Text = "" Then MsgBox "Blank records cannot be saved"

Else Set rs = New ADODB.Recordset Set rs = con.Execute("select Bill_no from Bill where Bill_no='" & Trim(txtbilno.Text) & "'") If Not rs.EOF Then MsgBox "Duplicate id, Change it" txtbilno.Text = "" txtbilno.SetFocus Else con.Execute "insert into Bill values('" & Trim(txtbilno.Text) & "','" & Trim(txtregdno.Text) & "','" & Trim(txtptname.Text) & "','" & Trim(txtdate.Text) & "','" & Trim(txtrmcharge.Text) & "','" & Trim(txtidc.Text) & "','" & Trim(txtspec.Text) & "','" & Trim(txtlabc.Text) & "','" & Trim(txtserc.Text) & "','" & Trim(txtbldtstc.Text) & "','" & Trim(txtecgc.Text) & "','" & Trim(txtambulc.Text) & "','" & Trim(txtoderc.Text) & "','" & Trim(txttotalamt.Text) & "','" & Trim(txtdailybill.Text) & "','" & Trim(txtpharmacy.Text) & "','" & Trim(txtadvance.Text) & "','" & Trim(txtnetamt.Text) & "','" & Trim(txtbal.Text) & "')" MsgBox "Record Saved" txtbilno.Text = "" txtregdno.Text = "" txtptname.Text = "" txtdate.Text = "" txtrmcharge.Text = "" txtidc.Text = "" txtspec.Text = "" txtlabc.Text = "" txtserc.Text = "" txtbldtstc.Text = "" txtecgc.Text = "" txtambulc.Text = "" txtoderc.Text = "" txttotalamt.Text = "" txtdailybill.Text = "" txtpharmacy.Text = "" txtadvance.Text = ""

txtnetamt.Text = "" txtbal.Text = "" End If End If End Sub Private Sub cmdview_Click() frmvwbl.Show frmvwbl.Top = 0 frmvwbl.Left = 0 frmvwbl.Width = 7830 frmvwbl.Height = 7125 End Sub Private Sub Form_Load() Set con = New ADODB.Connection con.Open End Sub Private Sub txtadvance_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtambulc_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=..\SANJIVANI\sanjivani.mdb;Persist Security Info=False"

Private Sub txtbal_GotFocus() txtbal.Text = Val(txttotalamt.Text) - Val(txtadvance.Text) End Sub Private Sub txtbal_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtbilno_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtbldtstc_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtdailybill_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtecgc_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub

If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtidc_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtlabc_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtnetamt_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtoderc_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub

Private Sub txtpharmacy_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtrmcharge_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtserc_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtspec_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txttotalamt_GotFocus()

txttotalamt.Text = Val(txtrmcharge.Text) + Val(txtidc.Text) + Val(txtspec.Text) + Val(txtlabc.Text) End Sub Private Sub txttotalamt_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Coding For Change room: Dim con As ADODB.Connection Dim rs As ADODB.Recordset Private Sub cmdbac_Click() Unload Me End Sub Private Sub cmdback_Click() Unload Me End Sub Private Sub cmdsav_Click() If txtregdno.Text = "" Or txtipatient.Text = "" Or txtold.Text = "" Or txtnew.Text = "" Or txtroomc.Text = "" Then MsgBox "Blank records cannot be saved" Else Set rs = New ADODB.Recordset + Val(txtserc.Text) + Val(txtbldtstc) + Val(txtecgc.Text) + Val(txtambulc.Text) + Val(txtoderc.Text) + Val(txtdailybill.Text) + Val(txtpharmacy.Text)

Set

rs

con.Execute("select

Regd_no

from

Change

where

Regd_no='"

&

Trim(txtregdno.Text) & "'") If Not rs.EOF Then MsgBox "Duplicate id, Change it" txtregdno.Text = "" txtregdno.SetFocus Else con.Execute "insert into Change values('" & Trim(txtregdno.Text) & "','" & Trim(txtipatient.Text) & "','" & Trim(txtold.Text) & "','" & Trim(txtnew.Text) & "','" & Trim(txtroomc.Text) & "')" MsgBox "Record Saved" txtregdno.Text = "" txtipatient.Text = "" txtold.Text = "" txtnew.Text = "" txtroomc.Text = "" End If End If End Sub Private Sub cmdview_Click() If cmdview.Caption = "&VIEW ALL" Then frmchangeroom.Height = 8430 cmdview.Caption = "&HIDE ALL" Else frmchangeroom.Height = 4500 cmdview.Caption = "&VIEW ALL" End If End Sub Private Sub Form_Load() Set con = New ADODB.Connection

con.Open

"Provider=Microsoft.Jet.OLEDB.4.0;Data

Source=..\SANJIVANI\sanjivani.mdb;Persist Security Info=False" End Sub Private Sub txtnew_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtold_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtroomc_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Coding For Discharge: Dim con As ADODB.Connection Dim rs As ADODB.Recordset

Private Sub cmdback_Click() Unload Me End Sub Private Sub cmdsave_Click() If txtregdno.Text = "" Or txtpname.Text = "" Or txtadd.Text = "" Or txtphno.Text = "" Or txtage.Text = "" Or txtsex.Text = "" Or txtdept.Text = "" Or txtadmitdt.Text = "" Or txtadmittim = "" Or txtdcdate.Text = "" Or txtdctime = "" Or txtroom.Text = "" Ortxtdiagnosis.Text = "" Or txttrtsummery.Text = "" Or txtinstopt.Text = "" Or txtresult.Text = "" Then MsgBox "Blank records cannot be saved" Else Set rs = New ADODB.Recordset Set rs = con.Execute("select Regd_no from Discharge where Regd_no='" & Trim(txtregdno.Text) & "'") If Not rs.EOF Then MsgBox "Duplicate id, Change it" txtregdno.Text = "" txtregdno.SetFocus Else con.Execute "insert into Discharge values('" & Trim(txtregdno.Text) & "','" & Trim(txtpname.Text) & "','" & Trim(txtadd.Text) & "','" & Trim(txtphno.Text) & "','" & Trim(txtage.Text) & "','" & Trim(txtsex.Text) & "','" & Trim(txtdept.Text) & "','" & Trim(txtadmitdt.Text) & "','" & Trim(txtadmittim) & "','" & Trim(txtdcdate.Text) & "','" & Trim(txtdctime.Text) & "','" & Trim(txtroom.Text) & "','" & Trim(txtdiagnosis.Text) & "','" & Trim(txttrtsummery.Text) & "','" & Trim(txtinstopt.Text) & "','" & Trim(txtresult.Text) & "')" MsgBox "Record Saved" txtregdno.Text = "" txtpname.Text = "" txtadd.Text = "" txtphno.Text = "" txtage.Text = "" txtsex.Text = ""

txtdept.Text = "" txtadmitdt.Text = "" txtadmittim = "" txtdcdate.Text = "" txtdctime = "" txtroom.Text = "" txtdiagnosis.Text = "" txttrtsummery.Text = "" txtinstopt.Text = "" txtresult.Text = "" End If End If End Sub Private Sub cmdview_Click() frmviewdicharge.Show frmviewdicharge.Top = 0 frmviewdicharge.Left = 0 frmviewdicharge.Width = 8205 frmviewdicharge.Height = 6900 End Sub Private Sub Form_Load() Set con = New ADODB.Connection con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=..\SANJIVANI\sanjivani.mdb;Persist Security Info=False" End Sub Private Sub optmale_Click() txtsex.Text = "Male" End Sub

Private Sub optfemale_Click() txtsex.Text = "Female" End Sub Private Sub txtadmitdt_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtage_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtdcdate_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtphno_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted")

End If End Sub Private Sub txtroom_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Coding For Doctor Dim con As ADODB.Connection Dim rs As ADODB.Recordset Private Sub cmdback_Click() Unload Me End Sub Private Sub cmdsave_Click() If txtdrid.Text = "" Or txtdrname.Text = "" Or txtadd.Text = "" Or txtphno.Text = "" Or txtsex.Text = "" Or txtspecialist.Text = "" Or txtvisitdate.Text = "" Or txtvisittime = "" Then MsgBox "Blank records cannot be saved" Else Set rs = New ADODB.Recordset Set rs = con.Execute("select dr_id from Doctor where dr_id='" & Trim(txtdrid.Text) & "'") If Not rs.EOF Then MsgBox "Duplicate id, Change it" txtdrid.Text = "" txtdrid.SetFocus Else con.Execute "insert into Doctor values('" & Trim(txtdrid.Text) & "','" & Trim(txtdrname.Text) & "','" & Trim(txtadd.Text) & "','" & Trim(txtphno.Text) & "','" & Trim(txtsex.Text) & "','" & Trim(txtspecialist.Text) & "','" & Trim(txtvisitdate.Text) & "','" & Trim(txtvisittime.Text) & "')" MsgBox "Record Saved"

txtdrid.Text = "" txtdrname.Text = "" txtadd.Text = "" txtphno.Text = "" txtsex.Text = "" txtspecialist.Text = "" txtvisitdate.Text = "" txtvisittime.Text = "" End If End If End Sub Private Sub cmdview_Click() frmvwdr.Show frmvwdr.Top = 0 frmvwdr.Left = 0 frmvwdr.Width = 7575 frmvwdr.Height = 6720 End Sub Private Sub Form_Load() Set con = New ADODB.Connection con.Open End Sub Private Sub optfemale_Click() txtsex.Text = "Female" End Sub Private Sub optmale_Click() txtsex.Text = "Male" End Sub Private Sub txtphno_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then "provider=Microsoft.Jet.OLEDB.4.0;Data Source=..\SANJIVANI\sanjivani.mdb;persist security info=false"

KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtvisitdate_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Coding for hospital: Dim con As ADODB.Connection Dim rs As ADODB.Recordset Private Sub cmdsave_Click() If txtid.Text = "" Or txtname.Text = "" Or txtadd.Text = "" Or txtphno.Text = "" Or txtdept.Text = "" Then MsgBox "Blank records cannot be saved" Else Set rs = New ADODB.Recordset Set rs = con.Execute("select Hospital_id from Hospital where Hospital_id='" & Trim(txtid.Text) & "'") If Not rs.EOF Then MsgBox "Duplicate id, Change it" txtroomid.Text = "" txtroomid.SetFocus Else con.Execute "insert into Hospital values('" & Trim(txtid.Text) & "','" & Trim(txtname.Text) & "','" & Trim(txtadd.Text) & "','" & Trim(txtphno.Text) & "','" & Trim(txtdept.Text) & "')"

MsgBox "Record Saved" txtid.Text = "" txtname.Text = "" txtadd.Text = "" txtphno.Text = "" txtdept.Text = "" End If End If End Sub Private Sub Form_Load() Set con = New ADODB.Connection con.Open End Sub Private Sub txtphno_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Coding For IPD: Dim con As ADODB.Connection Dim rs As ADODB.Recordse Private Sub cmdback_Click() Unload Me End Sub Private Sub cmdsave_Click() If txtreg.Text = "" Or txtpname.Text = "" Or txtsex.Text = "" Or txtperadd.Text = "" Or txttempadd.Text = "" Or txtage.Text = "" Or txtphno.Text = "" Or txtguardian.Text = "" Or "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=..\SANJIVANI\sanjivani.mdb;Persist Security Info=False"

txtrelation = "" Or txtpdisease.Text = "" Or txtptype = "" Or txtadmittime.Text = "" Or txtadmitdate.Text = "" Or txtrefdr.Text = "" Or txtcondr.Text = "" Or txtcasehstry.Text = "" Then MsgBox "Blank records cannot be saved" Else Set rs = New ADODB.Recordset Set rs = con.Execute("select Regd_no from IPD where Regd_no='" & Trim(txtreg.Text) & "'") If Not rs.EOF Then MsgBox "Duplicate id, Change it" txtreg.Text = "" txtreg.SetFocus Else con.Execute "insert into IPD values('" & Trim(txtreg.Text) & "','" & Trim(txtpname.Text) & "','" & Trim(txtsex.Text) & "','" & Trim(txtperadd.Text) & "','" & Trim(txttempadd.Text) & "','" & Trim(txtage.Text) & "','" & Trim(txtphno.Text) & "','" & Trim(txtguardian.Text) & "','" & Trim(txtrelation.Text) & "','" & Trim(txtpdisease.Text) & "','" & Trim(txtptype.Text) & "','" & Trim(txtadmittime.Text) & "','" & Trim(txtadmitdate.Text) & "','" & Trim(txtrefdr.Text) & "','" & Trim(txtcondr.Text) & "','" & Trim(txtcasehstry.Text) & "')" MsgBox "Record Saved" txtreg.Text = "" txtpname.Text = "" txtsex.Text = "" txtperadd.Text = "" txttempadd.Text = "" txtage.Text = "" txtphno.Text = "" txtguardian.Text = "" txtrelation = "" txtpdisease.Text = "" txtptype = "" txtadmittime.Text = "" txtadmitdate.Text = ""

txtrefdr.Text = "" txtcondr.Text = "" txtcasehstry.Text = "" End If End If End Sub Private Sub cmdview_Click() frmviewipd.Show frmviewipd.Top = 0 frmviewipd.Left = 0 frmviewipd.Width = 8145 frmviewipd.Height = 6900 End Sub Private Sub Form_Load() Set con = New ADODB.Connection con.Open End Sub Private Sub optfemale_Click() txtsex.Text = "Female" End Sub Private Sub optmale_Click() txtsex.Text = "Male" End Sub Private Sub txtadmitdate_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=..\SANJIVANI\sanjivani.mdb;Persist Security Info=False"

End Sub Private Sub txtage_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtphno_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Coding For Register Dim con As ADODB.Connection Dim rs As ADODB.Recordset Private Sub cmdbac_Click() Unload Me End Sub Private Sub cmdback_Click() Unload Me End Sub Private Sub cmdprin_Click() printresister.Show End Sub Private Sub cmdsave_Click()

If txtstaffid.Text = "" Or txtstaffname.Text = "" Or txtdesignation.Text = "" Or txtattend.Text = "" Or txtleave.Text = "" Then MsgBox "Blank records cannot be saved" Else Set rs = New ADODB.Recordset Set rs = con.Execute("select Staff_id from Register where Staff_id='" & Trim(txtstaffid.Text) & "'") If Not rs.EOF Then MsgBox "Duplicate id, Change it" txtstaffid.Text = "" txtstaffid.SetFocus Else con.Execute "insert into Register values('" & Trim(txtstaffid.Text) & "','" & Trim(txtstaffname.Text) & "','" & Trim(txtdesignation.Text) & "','" & Trim(txtattend.Text) & "','" & Trim(txtleave.Text) & "')" MsgBox "Record Saved" txtstaffid.Text = "" txtstaffname.Text = "" txtdesignation.Text = "" txtattend.Text = "" txtleave.Text = "" End If End If Adodc1.Refresh End Sub Private Sub cmdview_Click() If cmdview.Caption = "&VIEW ALL" Then frmresister.Height = 7530 cmdview.Caption = "&HIDE ALL" Else frmresister.Height = 4500 cmdview.Caption = "&VIEW ALL"

End If End Sub Private Sub cmddelete_Click() If MsgBox("Are you sure?", vbYesNo, "confirmed delete") = vbYes Then Adodc1.Recordset.Delete MsgBox "Record deleted!!", vbExclamation, "SAN" cmdview_Click End If End Sub Private Sub cmdviewall_Click() Adodc1.RecordSource = "select * from register" Adodc1.Refresh txtdrid.Text = "" txtdrname.Text = "" End Sub Private Sub Form_Load() Set con = New ADODB.Connection con.Open End Sub Private Sub name_Change() Adodc1.RecordSource = "select * from Register where Staff_name like '" & Trim(txtname.Text) & "%'" Adodc1.Refresh txtdel.Text = DataGrid1.Columns(0) End Sub Private Sub txtattend_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=..\SANJIVANI\sanjivani.mdb;Persist Security Info=False"

MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtstaid_Change() Adodc1.RecordSource = "select * from Register where Staff_id like '" & Trim(txtstaid.Text) & "%'" Adodc1.Refresh txtdel.Text = DataGrid1.Columns(0) End Sub Coding for room: Dim con As ADODB.Connection Dim rs As ADODB.Recordset Private Sub cmdback_Click() Unload Me End Sub Private Sub cmdsave_Click() If txtroomid.Text = "" Or txtroomno.Text = "" Or txtroomrate.Text = "" Or cbormtype.Text = "" Or txttotrm.Text = "" Or txtoccupy.Text = "" Or txtempty.Text = "" Then MsgBox "Blank records cannot be saved" Else Set rs = New ADODB.Recordset Set rs = con.Execute("select Room_id from Room where Room_id='" & Trim(txtroomid.Text) & "'") If Not rs.EOF Then MsgBox "Duplicate id, Change it" txtroomid.Text = "" txtroomid.SetFocus Else

con.Execute

"insert

into

Room

values('"

&

Trim(txtroomid.Text)

&

"','"

&

Trim(txtroomno.Text) & "','" & Trim(txtroomrate.Text) & "','" & Trim(cbormtype.Text) & "','" & Trim(txttotrm.Text) & "','" & Trim(txtoccupy.Text) & "','" & Trim(txtempty.Text) & "')" MsgBox "Record Saved" txtroomid.Text = "" txtroomno.Text = "" txtroomrate.Text = "" cbormtype.Text = "" txttotrm.Text = "" txtoccupy.Text = "" txtempty.Text = "" End If End If End Sub Private Sub cmdview_Click() frmviewroom.Show frmviewroom.Top = 0 frmviewroom.Left = 0 frmviewroom.Width = 7650 frmviewroom.Height = 7185 End Sub Private Sub Form_Load() Set con = New ADODB.Connection con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=..\SANJIVANI\sanjivani.mdb;Persist Security Info=False" End Sub Private Sub txtroomno_KeyPress(KeyAscii As Integer)

If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txtroomrate_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub Private Sub txttotrm_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) = vbBack Then Exit Sub If Not IsNumeric(Chr(KeyAscii)) Then KeyAscii = 0 MsgBox ("Only numbers are accepted") End If End Sub

SOFTWARE TESTING
TESTING PROCEDURE
In system testing, performance and acceptance standards are developed for substandard performance or service interruption that results in system failure are checked during the test. The purpose of system testing is to identify the correct errors in the candidate system. A system should always be tested before implementing it, as regards its individual programs, the system as a whole, users acceptance etc. This is because implanting a major job, which requires lot of man, and lot of other resources. So, errors not detected before implementation may cost lot. Effective testing early in the process translates directly into long term cost saving from reduced number of errors. Testing is done on the basis of following principles: All tests should be treatable to customer requirements. The objective of system testing is to uncover errors. The most severe defects are those that cause the program to fail to meet its requirements. Test should be planned long run before testing begins. Test planning can begin as soon as requirement model is complete. Therefore, all tests can be planned and designed before any code has been generated. Testing should begin in the small and progress towards in the large. The first test planned and executed generally focus on individual program modules. As testing progresses, testing shifts focus in an attempt to find errors in integrated clusters of modules and ultimately the entire system.

SYSTEM TESTING
After a successful testing of individual programs, the system can run through a series of tests to ensure the working of a system as a whole. The objectives of testing the entire system is to verify the programs meet the original programming specification, to ensure the computer operation staff has adequate documentation to run the system and to ensure that the user is able to input data when all the programs are connected with files and input/output.

TESTING REPORT
As soon as the software is complete, I tested the software in the following manner: First, I tested the software with Test Data which acted correctly and the response is positive. Having positive response I tested the software using Real Time Data and it worked properly. After a thorough testing of different aspects of the system as described above, the system worked error free and the same is ready for implementation.

DOCUMENTATION
System Documentation means coordinated effort to communicate the information of the system in a written form. Its purpose is to ensure that the details of the system are understood by all the persons concerned during the development process and subsequent operation. In coding phase, the output document is the code itself. However, some amount of internal documentation in the code can be extremely useful in enhancing the understandability. Internal documentation of code is done using comments in the program. Comments are textual statements that are meant for the program reader and are not executed. The comments should explain what the code is doing and not how it is doing. This means that comments is not required for every line of the code. Providing comments for modules is most useful, as modules from the unit testing, compiling, verification and modification. Comments for a module are often called prologue for the module. It describes to have the following information in the prologue. Module functionality or what the module is doing. Parameter and their purpose. Assumptions about the inputs, if any. Global variables accessed and/or modified in the modules.

SALIENT FEATURES/LIMITATION/FUTURE SCOPE


SALIENT FEATURES
The proposed system provides many facilities. Some of these are: The system has capability of taking correct date. Better accuracy, speed and reliability. More users friendly. It provides the required information quality. System provides satisfactory services. System enhancement data security. The most important facility is that the system is time saving.

LIMITATION
Though, the proposed system has many useful features, it has some limitation also because availability of all the required software and hardware facility is more expensive and difficult process. Though the new system has no doubt many advantages and flexibilities, the system also has some limitations as follows: Security and authentication is not considered (partially). Distribution aspect of information is ignored. The system has only a fixed number of queries for information processing.

FUTURE SCOPE
Software development is never ending process and continues the life of the software as per the changing needs of the user from time to time. The project is no doubt has been developed keeping in mind easy modification and enhancement that may be required from time to time. However, there are many scopes to modify this software. As because due to shortage of time, we here become unable to include many things. We are trying to cover all their existing system for sales return records of the items but due to shortage of time we become unable to include many things. Due to lake of time I here include none of them and a future scope one can develop these returns which are so much essential. Only with a little more doing it is possible to design the formats for those returns. Moreover, an on-line system will be more helpful to the organization. . With almost the same data with only a little modification an on-line system can be designed to fulfill their demands. All these can be considered to be future scope for this project.

CONCLUSION
The proposed system HOSPITAL MANAGEMENT SYSTEM is designed and developed to satisfy the organizational data so far as possible. The design of the package is done in such manner, so that the user can operate the system using either the key board or the mouse in order to invoke commands and options. The menus are designed in a user friendly manner. As a whole it can be said that the proposed system is portable, efficient, easy to use and reliable to a great extend.

You might also like