You are on page 1of 38

Project Report

ON

HOSPITAL MANAGEMENT SYSTEM
Prepared as a part of major project
In partial fulfill of diploma course in Computer Engg. To be

Awarded by Punjab Technical Education Board

SUBMITTED TO: SUBMITTED BY:Mr. R.K. CHOPRA ANKUSH GARG (506/09) H.O.D OF COMP. ENGG. (009196227464) ASHIHS CHUGH (510/09) (009196206191) BHARAT BHUSHAN (511/09)

(009196206192)

DEPARTMENT OF COMPUTER ENGINEERING

GOVT. POLYTECHNIC COLLEGE BATHINDA
ACKNOWLEDGEMENT
We cannot achieve anything worthwhile in the field of technical education until or unless the theoretical education acquired in the classroom is effectively wedded to it is practical approach that is taking place in modern industries and research institute. We express our deep sense of gratitude to Mr. R.K. CHOPRA (H.O.D Comp. & I.T. Dept) for providing us requisite facilities and cordial atmosphere during my project. We also express our sincere thanks to staff members for kind co-operation and valuable guidance for the completion of the project.

Team Members:ANKUSH GARG (506/09)

2

Hospital Management System

(009196227464) ASHIHS CHUGH (510/09) (009196206191) BHARAT BHUSHAN (511/09) (009196206192)

CERTIFICATE
It is to certify GARG that , project is titled “HOSPITAL out by BHARAT MANAGEMENT ANKUSH SYSTEM” developed CHUGH,

ASHISH

BHUSHAN students of 6th semester COMPUTER ENGINEERING and hereby submitted for partial fulfillment for Award of “Diploma in Computer Engineering” from Government polytechnic college, Bathinda affiliated to Punjab State Board of Technical Education & Industrial Training Chandigarh.

3

Hospital Management System

& I.Date: __________ Project Guided By:Mr.K. R.O. Chopra (H. Dept) CONTENTS 1 2 3 4 5 6 7 8 9 Abstract Problem Description System Specification System Study Software Description Database Design Output Conclusion Bibliography 4 4 5 6 7 11 27 30 34 Hospital Management 35 System .T.D Comp.

and also computerized billing in the pharmacy.ABSTRACT Our project Hospital Management system includes registration of patients. It is accessible either by an administrator or receptionist. and labs. The Hospital Management System can be entered using a username and password. It includes a search facility to know the current status of each room. storing their details into the system. The data can be 5 Hospital Management System . Our software has the facility to give a unique id for every patient and stores the details of every patient and the staff automatically. User can search availability of a doctor and the details of a patient using the id. Only they can add data into the database.

6 Hospital Management System . etc. It deals with the collection of patient’s information. The data are well protected for personal use and makes the data processing very fast. fast. diagnosis details. The main function of the system is to register and store patient details and doctor details and retrieve these details as and when required. and cost – effective.retrieved easily. simple. PROBLEM DESCRIPTION The purpose of the project entitled as “HOSPITAL MANAGEMENT SYSTEM” is to computerize the Front Office Management of Hospital to develop software which is user friendly. and also to manipulate these details meaningfully System input contains patient details. Traditionally. it was done manually. The interface is very user-friendly.

Efficiently maintains the details about the patient 2. It is faster than manual system SYSTEM SPECIFICATION 1. while system output is to get these details on to the CRT screen. Simultaneously updates changes made to any data.diagnosis details. Hardware Requirements Processor Clock speed System bus RAM HDD Monitor Keyboard Mouse : Intel Pentium IV 2.4 GHZ or above : 500 MHZ : 32 bits : 256MB of RAM : 40 GB or higher : SVGA COLOR : 108 keys : 2 button mouse 7 Hospital Management System . NEED 1. item in the entire data base. 3.

2. During analysis. decision points and transactions handled by the present system. Software Requirements OS Front End Back End : : : MS WINDOWS XP SP2 Visual Basic 6. data collected on the files. Different kinds of tools are used in analysis of which interview is a common one. 8 Hospital Management System . Analysis is the study of the various operations performed by the system and their relationship within and outside of the system. user-friendly and most suited to the user’s analysis is the heart of the process.0 Microsoft Access 2003 SYSTEM STUDY INTRODUCTION The goal of any system development is to develop and implement the system cost effectively.

etc. Here the key question is – What all problems exist in the present system? What must be done to solve the problem? Analysis begins when a user or manager begins a study of the program using existing system.INITIAL INVESTIGATION The first step in system development life cycle is the identification of need of change to improve or enhance an existing system. training. The present system of hospital is completely manual. An initial investigation on existing system was carried out. decision points and transactions handled by the present system. The commonly used tools in the system are Data Flow Diagram. experience and 9 Hospital Management System . During analysis. data collected on the various files. EXISTING SYSTEM System analysis is a detailed study of the various operations performed by a system and their relationships within and outside of the system. interviews. Many problems were identified during the initial study of the existing system.

common sense are required for collection of relevant information needed to develop the system. 10 Hospital Management System . It is difficult to handle the whole system manually and it is less accurate and to keep the data in case files for future reference because it may get destroyed. thoroughly investigated and properly carried out through the choice of solution. The manual system is so time-consuming. Redundancy of data may occur and this may lead to the inconsistency. Then the proposed system should be analyzed thoroughly in accordance with the needs. A good analysis model should provide not only the mechanisms of problem understanding but also the framework of the solution. PROPOSED SYSTEM The drawback of the existing system is that it is very difficult to retrieve data from case files. Moreover it is very difficult to retrieve data. The success of the system depends largely on how clearly the problem is defined.

it can be easily receive and used at any time. Speed and accuracy are the main advantages of proposed system. The data are stored in the computer’s secondary memories like hard disk. Windows XP is the successor to both Windows 2000 and Windows Me and is first consumer oriented operating system produced by Microsoft to be built on the Windows NT kernel and architecture. The letters ‘XP’ stand for experience. The proposed system will easily handle all the data and the work done by the existing systems. There is no redundancy of data.The proposed system is very easy to operate. etc. The proposed systems eliminate the drawbacks of the existing system to a great extent and it provides tight security to data. ABOUT OPERATING SYSTEM Windows XP is a line of operating systems developed by Microsoft for use on general purpose computer systems. 11 Hospital Management System . including home and business desktops. notebook computers and media centers.

support for Windows server domain and two physical processors and is targeted at power users and business clients. Visual Basic reduces the effort required on your part. SOFTWARE DESCRIPTION Microsoft Visual Basic 6.0 is Microsoft’s latest version of the Visual Basic Programming language.0 Visual Basic 6. Windows XP Tablet PC edition is designed to run the ink-aware Tablet PC platform. and Windows XP professional. Visual Basic makes many aspects of programming as simple as dragging graphics objects on to screen with your mouse.The most common editions of operating systems are Windows XP home edition. Windows XP 64 bit edition for IA-64(Itanium) processors and Windows XP Professional x64 edition for x86-64 processors. 12 Hospital Management System . and makes programming enjoyable. which is targeted at home users. Although writing programs can be a tedious chore at time. Two separate 64 bit versions of Windows XP were also released. which has additional features such as.

• Select Programs. Visual Basic is not just a languages. which allows the user to enter the data as well as view the result. test and debug your applications. A form is a major part of Visual Basic application. the user can visually design the objects that your application uses. it’s an integrated development environment in which you can develop.The environment provided by Visual Basic is suitable for any type of application. Hence a Visual Basic application is a combination of object like forms and controls. A control is an object that we draw on a form to enable or enhance user interaction with an application. run. then Microsoft Visual Basic # (where # is your version of Visual Basic). Using this environment. procedures that can respond to Events and other general-purpose procedures. Starting Visual Basic To start Visual Basic: • Click on the Start button on the Windows task bar. • Click on Visual Basic # (where again # is your version). 13 Hospital Management System .

Here little buttons with pictures also allow us to control Visual Basic. Under the main menu is the Toolbar. If you put the 14 Hospital Management System . much like the main menu. At the top of the main window is the Title Bar. The title bar gives us information about what program we’re using and what Visual Basic program we are working with.Title Bar Main Menu Toolbar At the top of the screen is the Visual Basic Main Window.

mouse cursor over one of these buttons for a second or so. and the controls. scroll bars. Recall the form itself is a control. Other words used to describe a project are application or program. Parts of a Visual Basic Project There are three major components in a Visual Basic project: the project itself. labels. command buttons). Pictorially. Controls are graphical features or tools that are placed on forms to allow user interaction (text boxes. The Form is the window where you create the interface between the user and the computer. a little ‘tool tip’ will pop up and tell you what that particular button does. the form. a project is: Control Project Control Control Form Control 15 Hospital Management System . Project is the word used to encompass everything in a Visual Basic project. Controls are also referred to as objects.

sizes. Visual Basic is governed by an event processor. Two primary files are used to save a Visual Basic project. The project file will have an extension of vbp (in addition. and contents.Project consists of a form containing several controls. colors. In looking around your computer’s file directory. Visual Basic is an event-driven language. Once an event is detected. That procedure is executed. and then program control is returned to the event: EVENT Event processor Event Procedure Event Event 16 Procedure Procedure Hospital Management System . captions. there is sometimes a form file with an frx extension). the project finds a series of instructions related to that event. Every characteristic of a control (including the form itself) is specified by a property. The form file has an extension of form (in addition. you may find some files associated with a Visual Basic project. An important concept concerning a Visual Basic project is that of a property. called an event procedure. position on the form. That means that nothing happens in a Visual Basic project until some event occurs. Example properties include names. there is sometimes a file with a vbw extension).

eliminate errors (if any) in our project. run and test our project. These procedures are where we write BASIC language statements. Within this one environment. Parts of the Visual Basic Program Visual Basic is more than just a computer language. You will learn a lot of programming and BASIC language in this course. It is a project building environment. The BASIC you will learn is very similar to the original BASIC used by Bill Gates and Paul Allen when starting Microsoft.Event procedures are where we do the actual computer programming and are saved with the form in the file with the frm extension. we can begin and build our project. 17 Hospital Management System .

and save our project for future use. Visual Basic integrates each step of the project building process into one environment. Notice that several windows appear. and then a different area to test your program. Main Window Start Visual Basic using the procedure learned in Class 1. Let’s look at the parts of the Visual Basic environment. With other computer languages. something called a compiler to create the program. The Main Window is used to control most aspects of the Visual Basic project building and running process. 18 Hospital Management System . many times you need a separate text editor to write your program.

The title bar indicates the project name and the current Visual Basic operating mode (design. If the form window is not present on the screen: Properties 19 Hospital Management System . The menu bar has drop-down menus from which you control the operation of the Visual Basic environment. It is where you develop your application.The main window consists of the title bar. break. run). menu bar. and toolbar. Form Window The Form Window is central to developing Visual Basic applications.

Reference to icon that appears in title bar of form. Top Distance from top side of computer screen to top side of form. Form Events 20 Hospital Management System . Background color of form. The properties we will be concerned with are: Property Name Description Name used to identify form. Caption Icon Left Text that appears in the title bar of form. Height of form in twips.Like all controls. Distance from left side of computer screen to left side of form. Three letter prefix for form names is frm. Fortunately. we only have to know about some of them. the form has many (over 40) properties. Form can either be sizable (can resize using the mouse) or fixed size. Width Height Back Color Border Style Width of the form in twips.

it can respond to some user interactions.The form primarily acts as a ‘container’ for other controls. This is a good place to set initial values for various properties and other project values. 21 Hospital Management System . That is. Load Event executed when the form first loads into the computer’s memory. but it does support events. We will only be concerned with two form events in this course: Event Click Description Event executed when user clicks on the form with the mouse.

then Toolbox. VB6: Pointer Label Frame Check Box Combo Box Horizontal Scroll Bar Timer Directory Shape Image OLE Picture Box Text Box Command Button Option Button List Box Vertical Scroll Bar Drive Files Line Data Control If the toolbox window is not present on the screen.Toolbox Window The Toolbox Window is the selection menu for controls used in your application. click View on the main menu. 22 Hospital Management System .

Areas of Application The term "Personal Programming" refers to the idea that. it inspires your imagination and creativity. 3. Online Help 7. wherever you work. OLE Features. Data Access. 23 Hospital Management System . However. 2. correct. VB encourages you to experiment. revise. you quickly translate an abstract idea into a program design you can actually see on the screen. 5. 4. Data Management 6.Features of Visual Basic: 1. Windows API Features. most of all. you can expand your computer's usefulness by writing applications to use in your own job. whatever you do. Good User Interface. 32 bit Programming Languages. Personal Programming is what Visual Basic is all about. and network your design until the new project meets your requirements. Using Visual Basic's tools.

VB presents a 3-step approach for creating programs: 1. Visual Basic can and is used in a number of different areas. Assign property settings to the objects of your program. for example: • • • • • • • • • • Education Research Medicine Business Commerce Marketing and Sales Accounting Consulting Law Science 24 Hospital Management System . Write the code to direct specific tasks at runtime.Visual Basic is ideal for developing applications that run in the new Windows 95 operating system. 2. Design the appearance of your application. 3.

Using Access we can organize our data according to subject and can store information about how different subject are related. reports. macros modules and shortcuts top data access pages. Microsoft Access 2003 provides many new features that make working with data and designing a database even easier. queries. forms. Microsoft Office Access.Microsoft Access 2003. Microsoft Access Database is a collection of data and objects related to particular topic or purpose. Microsoft Access is the default database of Microsoft Visual Basic. Microsoft Access Database may contain tables. previously known as Microsoft Access. Microsoft Access is a Relational Database Management System. In general MS-Access database can have several small tables. is a relational database management system from Microsoft that combines the relational Microsoft Jet Database Engine with a graphical user interface and 25 Hospital Management System .

within departments of large corporations. Relatively unskilled programmers and non-programmer "power users" can use it to build simple applications. Oracle. or any ODBC-compliant data container (including MySQL and PostgreSQL). and by hobby programmers to create ad hoc customized desktop systems for handling the creation and manipulation of data. meant to compete with ProComm and other programs. Skilled software developers and data architects use it to develop application software. It supports some objectoriented techniques but falls short of being a fully object-oriented development tool. It is a member of the 2007 Microsoft Office system. Microsoft SQL Server. Access was also the name of a communications program from Microsoft. Access can use data stored in Access/Jet. Years later Microsoft reused the name for its database software. Access can be used as a database for basic web based applications hosted on Microsoft's Internet Information Services and utilizing Microsoft Active Server Pages 26 Hospital Management System . Access is used by small businesses.software development tools. This proved a failure and was dropped.

Oracle. Microsoft SQL Server. However. used in Access by default). including JET (filebased database engine. and any other ODBC-compliant product. so applications that are used by more than a handful of people tend to rely on Client-Server based solutions. especially for the creation of prototypes and standalone applications that serve as tools for on-the-road salesmen. an Access "front end" (the forms. reports.ASP. Access does not scale well if data access is via a network. 27 Hospital Management System . and SQL statements can be used directly in Macros and VBA Modules to manipulate Access tables. Most typical web applications should use tools like ASP/Microsoft SQL Server or the LAMP stack. Features One of the benefits of Access from a programmer's perspective is its relative compatibility with SQL (structured query language) —queries may be viewed and edited as SQL statements. queries and VB code) can be used against a host of database back ends. Users may mix and use both VBA and "Macros" for programming forms and logic and offers object-oriented possibilities. Some professional application developers use Access for rapid application development.

Starting in MS Access 2003 (Jet 4. the Access and the Jet Engine implements database triggers and stored procedures in a non-standard way. in a way that looks like creating stored procedures. the databaserelated features are entirely different. and Triggers are only available from embedded Forms. Client applications built with VB or C++ are not able to access these features. In ADP files (supported in MS Access 2003 and later).0). is included with the developer edition of Office XP and may be used with Access as an alternative to the Jet Database Engine.MSDE (Microsoft SQL Server Desktop Engine) 2000. but these procedures are still limited to one statement per procedure. a mini-version of MS SQL Server 2000. Stored Procedures are implemented in VBA. Both Triggers and Stored procedures are only available to applications built completely within the Access database management system. because this type of file connects to a 28 Hospital Management System . and it is common to use pass-through queries and other techniques in Access to run stored procedures in RDBMSs that support these. Unlike a modern RDBMS. there is a new syntax for creating queries with parameters. Microsoft Access does allow forms to contain code that is triggered as changes are made to the underlying table (as long as the modifications are done only with that form).

After designing the input and output. reports. Thus. views. DATABASE DESIGN The general theme behind a database is to handle information as an integrated whole. instead of using the Jet Engine. stored procedures and UDF-s). the analyst must concentrate on database design or how data 29 Hospital Management System . macros and modules are stored in the ADP file (the other objects are stored in the back-end database). it supports the creation of nearly all objects in the underlying server (tables with constraints and triggers. A database is a collection of interrelated data stored with minimum redundancy to serve many users quickly and effectively. However.MSDE or Microsoft SQL Server. only forms.

During database design. easy. quick.Login Field Name Password Description User Name Data Type Text Width 50 File Name :.should be organized around user requirements.Doctor Registration 30 Hospital Management System . inexpensive and flexible for other users. the following objectives are concerned:• Controlled redundancy • Easy to learn and use • More information and low cost • Accuracy • Integrity File Name :. The general objective is to make information access.

Field Name Dr ID Dr Name Field Address Phone no Qualification Working Timing Room no Description Doctor ID Name Field Address Contact no Qualification Working Days Timing Room no Data Type Number Text Text Text Long Long Date/Time Text Double Width 50 50 50 50 50 50 50 50 50 File Name:-Patient Details Field Name Patient ID Name Age Sex Address Phone no Disease Symptoms Treatments Name of Doctor Description Patient ID Name Age Sex Address Phone no Disease Symptoms Treatments Name of Doctor Data Type Number Text Integer Text Text Text Text Double Date/Time Integer Width 50 50 50 50 50 50 50 50 50 50 File Name:-Medicine Field Name Name Quantity in Description Medicine Name Quantity Data Type Text Text Width 50 50 31 Hospital Management System .

Purchase Dealer Dealer’s Address Total Price Purchase Date Dealer Dealer’s Address Net Amount Date/Time Double Long Integer 50 50 50 50 OUTPUTS Login Main Form 32 Hospital Management System .

Doctor Registration 33 Hospital Management System .

Patient Registration 34 Hospital Management System .

Medicinal Stock 35 Hospital Management System .

Staff Registration 36 Hospital Management System .

In the current system. the front office managing is very slow. The computerization of the system has sped up the process. efficient and reliable • Avoids data redundancy and inconsistency • Very user-friendly • Easy accessibility of data • Number of personnel required is considerably less • Provides more security and integrity to data FUTURE ENHANCEMENTS The proposed system is Hospital Management System. We can enhance this system by including more facilities like billing system. The hospital managing system was thoroughly checked and tested with dummy data and thus is found to be very reliable. 37 Hospital Management System . ADVANTAGES • It is fast. inpatient room allotment for the admitted patients and the stock details of medicines in the pharmacy.CONCLUSION The HOSPITAL MANAGEMENT SYSTEM is a great improvement over the manual system using case fields and paper.

Tem R Neito • Advanced Programming Using Visual Basic: Version 6.0 -Julia Case Bradley • Access 2003 Power Programming with VBA -Allen G Taylor • Advanced MS Visual Basic -Peter Morris Site Address • • • www.com www.BIBLIOGRAPHY Books • A Complete Guide to Programming in Visual Basic .tripod.Net -Michael McMillian • A Complete Visual Basic 6 Training Course: How to Programme: Package -Harvey M deitel.vbcodesource.members.com www.associatedcontent.Paul j deitel.com 38 Hospital Management System .