Hospital management report final.doc

Embed Size (px)

Citation preview

  • 7/27/2019 Hospital management report final.doc

    1/38

    Project Report

    ONHOSPITAL 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)

  • 7/27/2019 Hospital management report final.doc

    2/38

    Hospital ManagSystem

    (009196206192)

    DEPARTMENT OF COMPUTER ENGINEERING

    GOVT. POLYTECHNIC COLLEGEBATHINDA

    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

  • 7/27/2019 Hospital management report final.doc

    3/38

    Hospital ManagSystem

    (009196227464)

    ASHIHS CHUGH (510/09)

    (009196206191)BHARAT BHUSHAN (511/09)

    (009196206192)

    CERTIFICATE

    It is to certify that project titled HOSPITAL

    MANAGEMENT SYSTEM is developed out by

    ANKUSH GARG , ASHISH CHUGH, BHARAT

    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

  • 7/27/2019 Hospital management report final.doc

    4/38

    Hospital ManagSystem

    Date: __________

    Project Guided By:-

    Mr. R.K. Chopra(H.O.D Comp. & I.T. Dept)

    CONTENTS

    1 Abstract 4

    2 Problem Description 5

    3 System Specification 6

    4 System Study 7

    5 Software Description 11

    6 Database Design 27

    7 Output 30

    8 Conclusion 34

    9 Bibliography 354

  • 7/27/2019 Hospital management report final.doc

    5/38

    Hospital ManagSystem

    ABSTRACT

    Our project Hospital Management system includes registration of

    patients, storing their details into the system, and also computerized billing in

    the pharmacy, and labs. Our software has the facility to give a unique id for

    every patient and stores the details of every patient and the staff automatically.

    It includes a search facility to know the current status of each room. User can

    search availability of a doctor and the details of a patient using the id.

    The Hospital Management System can be entered using a

    username and password. It is accessible either by an administrator or

    receptionist. Only they can add data into the database. The data can be

    5

  • 7/27/2019 Hospital management report final.doc

    6/38

    Hospital ManagSystem

    retrieved easily. The interface is very user-friendly. The data are well

    protected for personal use and makes the data processing very fast.

    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, simple, fast, and cost effective. It

    deals with the collection of patients information, diagnosis details, etc.

    Traditionally, it was done manually.

    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 also to

    manipulate these details meaningfully System input contains patient details,

    6

  • 7/27/2019 Hospital management report final.doc

    7/38

    Hospital ManagSystem

    diagnosis details; while system output is to get these details on to the CRT

    screen.

    NEED

    1. Efficiently maintains the details about the patient

    2. Simultaneously updates changes made to any data, item in the entire data

    base.

    3. It is faster than manual system

    SYSTEM SPECIFICATION

    1. Hardware Requirements

    Processor : Intel Pentium IV 2.4 GHZ or above

    Clock speed : 500 MHZ

    System bus : 32 bits

    RAM : 256MB of RAM

    HDD : 40 GB or higher

    Monitor : SVGA COLOR

    Keyboard : 108 keys

    Mouse : 2 button mouse

    7

  • 7/27/2019 Hospital management report final.doc

    8/38

    Hospital ManagSystem

    2. Software Requirements

    OS : MS WINDOWS XP SP2

    Front End : Visual Basic 6.0

    Back End : Microsoft Access 2003

    SYSTEM STUDY

    INTRODUCTION

    The goal of any system development is to develop and implement the

    system cost effectively; user-friendly and most suited to the users analysis is

    the heart of the process. Analysis is the study of the various operations

    performed by the system and their relationship within and outside of the

    system. During analysis, data collected on the files, decision points and

    transactions handled by the present system. Different kinds of tools are used

    in analysis of which interview is a common one.

    8

  • 7/27/2019 Hospital management report final.doc

    9/38

    Hospital ManagSystem

    INITIAL INVESTIGATION

    The first step in system development life cycle is the identification of

    need of change to improve or enhance an existing system. An initial

    investigation on existing system was carried out. The present system of

    hospital is completely manual. Many problems were identified during the

    initial study of the existing system.

    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. 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.

    During analysis, data collected on the various files, decision points and

    transactions handled by the present system. The commonly used tools in the

    system are Data Flow Diagram, interviews, etc. training, experience and

    9

  • 7/27/2019 Hospital management report final.doc

    10/38

    Hospital ManagSystem

    common sense are required for collection of relevant information needed to

    develop the system. The success of the system depends largely on how clearly

    the problem is defined, thoroughly investigated and properly carried out

    through the choice of solution. A good analysis model should provide not only

    the mechanisms of problem understanding but also the framework of the

    solution. Then the proposed system should be analyzed thoroughly in

    accordance with the needs.

    PROPOSED SYSTEM

    The drawback of the existing system is that it is very difficult to retrieve data

    from case files. 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. Moreover it is very difficult to retrieve data. Redundancy

    of data may occur and this may lead to the inconsistency. The manual system

    is so time-consuming.

    10

  • 7/27/2019 Hospital management report final.doc

    11/38

    Hospital ManagSystem

    The proposed system is very easy to operate. Speed and accuracy are the

    main advantages of proposed system. There is no redundancy of data. The

    data are stored in the computers secondary memories like hard disk, etc. it

    can be easily receive and used at any time. The proposed system will easily

    handle all the data and the work done by the existing systems. 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, including home and business

    desktops, notebook computers and media centers. The letters XP stand for

    experience. 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.

    11

  • 7/27/2019 Hospital management report final.doc

    12/38

    Hospital ManagSystem

    The most common editions of operating systems are Windows XP

    home edition, which is targeted at home users, and Windows XP professional,

    which has additional features such as, support for Windows server domain and

    two physical processors and is targeted at power users and business clients.

    Windows XP Tablet PC edition is designed to run the ink-aware Tablet PC

    platform. Two separate 64 bit versions of Windows XP were also released,

    Windows XP 64 bit edition for IA-64(Itanium) processors and Windows XP

    Professional x64 edition for x86-64 processors.

    SOFTWARE DESCRIPTION

    Microsoft Visual Basic 6.0

    Visual Basic 6.0 is Microsofts latest version of the Visual Basic

    Programming language. Although writing programs can be a tedious chore at

    time. Visual Basic reduces the effort required on your part, and makes

    programming enjoyable. Visual Basic makes many aspects of programming

    as simple as dragging graphics objects on to screen with your mouse.

    12

  • 7/27/2019 Hospital management report final.doc

    13/38

    Hospital ManagSystem

    The environment provided by Visual Basic is suitable for any

    type of application. Using this environment, the user can visually design the

    objects that your application uses. Visual Basic is not just a languages, its an

    integrated development environment in which you can develop, run, test and

    debug your applications.

    A form is a major part of Visual Basic application, which allows the

    user to enter the data as well as view the result. A control is an object that we

    draw on a form to enable or enhance user interaction with an application.

    Hence a Visual Basic application is a combination of object like forms and

    controls, 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.

    Select Programs, then MicrosoftVisualBasic# (where # is

    your version of Visual Basic).

    Click on Visual Basic # (where again # is your version).

    13

  • 7/27/2019 Hospital management report final.doc

    14/38

    Hospital ManagSystem

    At the top of the screen is the Visual Basic MainWindow. At the top of the

    main window is the TitleBar. The title bar gives us information about what

    program were using and what Visual Basic program we are working with.

    Under the main menu is the Toolbar. Here little buttons with pictures also

    allow us to control Visual Basic, much like the main menu. If you put the

    14

    Title Bar Main Menu Toolbar

  • 7/27/2019 Hospital management report final.doc

    15/38

    Hospital ManagSystem

    mouse cursor over one of these buttons for a second or so, a little tool tip

    will pop up and tell you what that particular button does.

    Parts of a Visual Basic Project

    There are three major components in a Visual Basic project: the project

    itself, the form, and the controls. Project is the word used to encompass

    everything in a Visual Basic project. Other words used to describe a project

    are application orprogram. The Form is the window where you create the

    interface between the user and the computer. Controls are graphical features

    or tools that are placed on forms to allow user interaction (text boxes, labels,

    scroll bars, command buttons). Recall the form itself is a control. Controls

    are also referred to as objects. Pictorially, a project is:

    15

    Control

    Control

    Control

    Control

    Project

    Form

  • 7/27/2019 Hospital management report final.doc

    16/38

    Hospital ManagSystem

    Project consists of a form containing several controls. In looking around your

    computers file directory, you may find some files associated with a Visual

    Basic project. Two primary files are used to save a Visual Basic project. The

    project file will have an extension of vbp (in addition, there is sometimes a

    file with a vbw extension). The form file has an extension of form (in

    addition, there is sometimes a form file with an frx extension).

    An important concept concerning a Visual Basic project is that of a

    property. Every characteristic of a control (including the form itself) is

    specified by a property. Example properties include names, captions, sizes,

    colors, position on the form, and contents.

    Visual Basic is an event-driven language. Visual Basic is governed by

    an event processor. That means that nothing happens in a Visual Basic

    project until some event occurs. Once an event is detected, the project finds a

    series of instructions related to that event, called an eventprocedure. That

    procedure is executed, and then program control is returned to the event:

    EVENT

    16

    Event processor

    Event

    Procedure

    Event

    Procedure

    Event

    Procedure

  • 7/27/2019 Hospital management report final.doc

    17/38

    Hospital ManagSystem

    Event procedures are where we do the actual computer programming

    and are saved with the form in the file with the frm extension. These

    procedures are where we write BASIC language statements. You will learn a

    lot of programming and BASIC language in this course. The BASIC you will

    learn is very similar to the original BASIC used by Bill Gates and Paul Allen

    when starting Microsoft.

    Parts of the Visual Basic Program

    Visual Basic is more than just a computer language. It is a project

    building environment. Within this one environment, we can begin and build

    our project, run and test our project, eliminate errors (if any) in our project,

    17

  • 7/27/2019 Hospital management report final.doc

    18/38

    Hospital ManagSystem

    and save our project for future use. With other computer languages, many

    times you need a separate text editor to write your program, something called

    a compiler to create the program, and then a different area to test your

    program. Visual Basic integrates each step of the project building process

    into one environment. Lets look at the parts of the Visual Basic environment.

    Main Window

    Start Visual Basic using the procedure learned in Class 1. Notice that several

    windows appear. The Main Window is used to control most aspects of the

    Visual Basic project building and running process.

    18

  • 7/27/2019 Hospital management report final.doc

    19/38

    Hospital ManagSystem

    The main window consists of the title bar, menu bar, and toolbar. The title bar

    indicates the project name and the current Visual Basic operating mode

    (design, break, run). The menu bar has drop-down menus from which you

    control the operation of the Visual Basic environment.

    Form Window

    The Form Window is central to developing Visual Basic applications.

    It is where you develop your application.

    If the form window is not present on the screen:

    Properties

    19

  • 7/27/2019 Hospital management report final.doc

    20/38

    Hospital ManagSystem

    Like all controls, the form has many (over 40) properties. Fortunately,

    we only have to know about some of them. The properties we will be

    concerned with are:

    Property Description

    Name Name used to identify form. Three letter prefix for form

    names is frm.

    Caption Text that appears in the title bar of form.

    Icon Reference to icon that appears in title bar of form.

    Left Distance from left side of computer screen to left side of

    form.

    Top Distance from top side of computer screen to top side of

    form.

    Width Width of the form in twips.

    Height Height of form in twips.

    Back Color Background color of form.

    Border Style Form can either be sizable (can resize using the mouse) or

    fixed size.

    Form Events

    20

  • 7/27/2019 Hospital management report final.doc

    21/38

    Hospital ManagSystem

    The form primarily acts as a container for other controls, but it does

    support events. That is, it can respond to some user interactions. We will

    only be concerned with two form events in this course:

    Event Description

    Click Event executed when user clicks on the form with the

    mouse.

    Load Event executed when the form first loads into the

    computers memory. This is a good place to set initial

    values for various properties and other project values.

    21

  • 7/27/2019 Hospital management report final.doc

    22/38

    Hospital ManagSystem

    Toolbox Window

    The Toolbox Windowis the selection menu for controls used inyour application.

    VB6:

    If the toolbox window is not present on the screen, clickView on the main

    menu, then Toolbox.

    22

    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

  • 7/27/2019 Hospital management report final.doc

    23/38

    Hospital ManagSystem

    Features of Visual Basic:

    1. Good User Interface.

    2. OLE Features.

    3. Windows API Features.

    4. 32 bit Programming Languages.

    5. Data Management

    6. Online Help

    7. Data Access.

    Areas of Application

    The term "Personal Programming" refers to the idea that, wherever you work,

    whatever you do, you can expand your computer's usefulness by writing

    applications to use in your own job. Personal Programming is what Visual

    Basic is all about.

    Using Visual Basic's tools, you quickly translate an abstract idea into a

    program design you can actually see on the screen. VB encourages you to

    experiment, revise, correct, and network your design until the new project

    meets your requirements. However, most of all, it inspires your imagination

    and creativity.

    23

  • 7/27/2019 Hospital management report final.doc

    24/38

    Hospital ManagSystem

    Visual Basic is ideal for developing applications that run in the new Windows

    95 operating system. VB presents a 3-step approach for creating programs:

    1. Design the appearance of your application.

    2. Assign property settings to the objects of your program.

    3. Write the code to direct specific tasks at runtime.

    Visual Basic can and is used in a number of different areas, for example:

    Education

    Research

    Medicine

    Business

    Commerce

    Marketing and Sales

    Accounting

    Consulting

    Law

    Science

    24

  • 7/27/2019 Hospital management report final.doc

    25/38

    Hospital ManagSystem

    Microsoft Access 2003.

    Microsoft Access is the default database of Microsoft Visual Basic.

    Microsoft Access 2003 provides many new features that make working with

    data and designing a database even easier. Microsoft Access Database is a

    collection of data and objects related to particular topic or purpose. Microsoft

    Access Database may contain tables; queries, forms, reports, macros modules

    and shortcuts top data access pages.

    Microsoft Access is a Relational Database Management System. Using

    Access we can organize our data according to subject and can store

    information about how different subject are related. In general MS-Access

    database can have several small tables.

    Microsoft Office Access, previously known as Microsoft Access, is a

    relational database management system from Microsoft that combines the

    relational Microsoft Jet Database Engine with a graphical user interface and

    25

  • 7/27/2019 Hospital management report final.doc

    26/38

    Hospital ManagSystem

    software development tools. It is a member of the 2007 Microsoft Office

    system.

    Access can use data stored in Access/Jet, Microsoft SQL Server,

    Oracle, or any ODBC-compliant data container (including MySQL and

    PostgreSQL). Skilled software developers and data architects use it to develop

    application software. Relatively unskilled programmers and non-programmer

    "power users" can use it to build simple applications. It supports some object-

    oriented techniques but falls short of being a fully object-oriented

    development tool.

    Access was also the name of a communications program from Microsoft,

    meant to compete with ProComm and other programs. This proved a failure

    and was dropped. Years later Microsoft reused the name for its database

    software.

    Access is used by small businesses, within departments of large

    corporations, and by hobby programmers to create ad hoc customized desktop

    systems for handling the creation and manipulation of data. 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

  • 7/27/2019 Hospital management report final.doc

    27/38

    Hospital ManagSystem

    ASP. Most typical web applications should use tools like ASP/Microsoft SQL

    Server or the LAMP stack.

    Some professional application developers use Access for rapid

    application development, especially for the creation of prototypes and

    standalone applications that serve as tools for on-the-road salesmen. Access

    does not scale well if data access is via a network, so applications that are

    used by more than a handful of people tend to rely on Client-Server based

    solutions. However, an Access "front end" (the forms, reports, queries and VB

    code) can be used against a host of database back ends, including JET (file-

    based database engine, used in Access by default), Microsoft SQL Server,

    Oracle, and any other ODBC-compliant product.

    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, and SQL statements can be used

    directly in Macros and VBA Modules to manipulate Access tables. Users may

    mix and use both VBA and "Macros" for programming forms and logic and

    offers object-oriented possibilities.

    27

  • 7/27/2019 Hospital management report final.doc

    28/38

    Hospital ManagSystem

    MSDE (Microsoft SQL Server Desktop Engine) 2000, a mini-version

    of MS SQL Server 2000, is included with the developer edition of Office XP

    and may be used with Access as an alternative to the Jet Database Engine.

    Unlike a modern RDBMS, the Access and the Jet Engine implements

    database triggers and stored procedures in a non-standard way. Stored

    Procedures are implemented in VBA, and Triggers are only available from

    embedded Forms. Both Triggers and Stored procedures are only available to

    applications built completely within the Access database management system.

    Client applications built with VB or C++ are not able to access these features.

    Starting in MS Access 2003 (Jet 4.0), there is a new syntax for creating

    queries with parameters, in a way that looks like creating stored procedures,

    but these procedures are still limited to one statement per procedure.

    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), and it is common to use pass-through queries and

    other techniques in Access to run stored procedures in RDBMSs that support

    these.

    In ADP files (supported in MS Access 2003 and later), the database-

    related features are entirely different, because this type of file connects to a

    28

  • 7/27/2019 Hospital management report final.doc

    29/38

    Hospital ManagSystem

    MSDE or Microsoft SQL Server, instead of using the Jet Engine. Thus, it

    supports the creation of nearly all objects in the underlying server (tables with

    constraints and triggers, views, stored procedures and UDF-s). However, only

    forms, reports, macros and modules are stored in the ADP file (the other

    objects are stored in the back-end database).

    DATABASE DESIGN

    The general theme behind a database is to handle information as an integrated

    whole. A database is a collection of interrelated data stored with minimum

    redundancy to serve many users quickly and effectively. After designing the

    input and output, the analyst must concentrate on database design or how data

    29

  • 7/27/2019 Hospital management report final.doc

    30/38

    Hospital ManagSystem

    should be organized around user requirements. The general objective is to

    make information access, easy, quick, inexpensive and flexible for other users.

    During database design, the following objectives are concerned:-

    Controlled redundancy

    Easy to learn and use

    More information and low cost

    Accuracy

    Integrity

    File Name :- Login

    Field Name Description Data Type WidthPassword User Name Text 50

    File Name :- Doctor Registration

    30

  • 7/27/2019 Hospital management report final.doc

    31/38

    Hospital ManagSystem

    Field Name Description Data Type Width

    Dr ID Doctor ID Number 50Dr Name Name Text 50

    Field Field Text 50

    Address Address Text 50

    Phone no Contact no Long 50

    Qualification Qualification Long 50

    Working Working Days Date/Time 50

    Timing Timing Text 50

    Room no Room no Double 50

    File Name:-Patient Details

    Field Name Description Data Type WidthPatient ID Patient ID Number 50

    Name Name Text 50

    Age Age Integer 50

    Sex Sex Text 50Address Address Text 50

    Phone no Phone no Text 50

    Disease Disease Text 50

    Symptoms Symptoms Double 50

    Treatments Treatments Date/Time 50

    Name of Doctor Name of Doctor Integer 50

    File Name:-Medicine

    Field Name Description Data Type Width

    Name Medicine Name Text 50

    Quantity in Quantity Text 50

    31

  • 7/27/2019 Hospital management report final.doc

    32/38

    Hospital ManagSystem

    Purchase Purchase Date Date/Time 50

    Dealer Dealer Double 50

    Dealers Address Dealers Address Long 50

    Total Price Net Amount Integer 50

    OUTPUTS

    Login

    Main Form

    32

  • 7/27/2019 Hospital management report final.doc

    33/38

    Hospital ManagSystem

    Doctor Registration

    33

  • 7/27/2019 Hospital management report final.doc

    34/38

    Hospital ManagSystem

    Patient Registration

    34

  • 7/27/2019 Hospital management report final.doc

    35/38

    Hospital ManagSystem

    Medicinal Stock

    35

  • 7/27/2019 Hospital management report final.doc

    36/38

    Hospital ManagSystem

    Staff Registration

    36

  • 7/27/2019 Hospital management report final.doc

    37/38

    Hospital ManagSystem

    CONCLUSION

    The HOSPITAL MANAGEMENT SYSTEM is a great improvement over the

    manual system using case fields and paper. The computerization of the system

    has sped up the process. In the current system, the front office managing is

    very slow. The hospital managing system was thoroughly checked and tested

    with dummy data and thus is found to be very reliable.

    ADVANTAGES

    It is fast, 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, inpatient room

    allotment for the admitted patients and the stock details of medicines in the

    pharmacy.

    37

  • 7/27/2019 Hospital management report final.doc

    38/38

    BIBLIOGRAPHY

    Books

    A Complete Guide to Programming in Visual Basic .Net

    -Michael McMillian

    A Complete Visual Basic 6 Training Course: How to Programme: Package

    -Harvey M deitel,Paul j deitel,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.associatedcontent.com

    www.members.tripod.com

    www.vbcodesource.com

    http://www.associatedcontent.com/http://www.members.tripod.com/http://www.vbcodesource.com/http://www.vbcodesource.com/http://www.associatedcontent.com/http://www.members.tripod.com/http://www.vbcodesource.com/