Sie sind auf Seite 1von 109

FINAL PROJECT REPORT

On

HOSPITAL MANAGEMENT SYSTEM


By
Name: RANJIT KAUR
University Roll No: 1277676
Semester: 6th

MASTER OF COMPUTER APPLICATIONS


(Batch 2012-2015)

ACKNOWLEDGEMENT
DEPARTMENT OF COMPUTER APPLICATIONS (MCA)
CGC, Landran, Mohali

Before we get into thick of the project midterm report I would like to add a few heartfelt words
for the people who were part of this project in numerous wayspeople who gave unending
support right from the stage the project idea was conceived.
I wish to Acknowledge with a great sense of gratitude to my guide Assistant Prof.
Mr. Jaswinder Singh for their valuable guidance, suggestion and correction, I have
received from them. They not only encouraged me throughout the work, but I also thank
them for reviewing the entire manuscript with painstaking attention for details.
It gives me immense pleasure to acknowledge my indebtedness to the various faculty
members of CGC Landran, Mohali for helping me to design the project work as a part of my
course curriculum.
Last but not the least, I avail the opportunity to express my deepest gratitude towards
my trainer Mr. Kapil Verma for helping me to complete this project successfully.
.

Ranjit Kaur

CERTIFICATE

This is to certify that this project entitled College Management System submitted in partial
fulfilment of the degree of MASTER OF COMPUTER APPLICATIONS to the Punjab
Technical University, Jalandhar through CGC, Department of Computer Application done
by Ranjit Kaur Univ. Roll No. 1277676 is an authentic work carried out by him/her at CGC,
Landran under my guidance. The matter embodied in this project work has not been submitted
earlier for award of any degree or diploma to the best of my knowledge and belief.

Ranjit Kaur

Mr. Jaswinder Singh

Signature of the student:- __________

Signature of the Guide:

__________

Univ. Roll No. 1277676

Signature of H.O.D.
-----------------------------Name & Signature of Internal Examiner

TABLE OF CONTENTS
Sr. No.

Contents

Page No.

Certificates
a) College Certificate
b) Company Certificate

Acknowledgement

Preface

Introduction to Organization

Introduction to Topic

Existing System

Requirements Specifications

Proposed System

System Design
a) Output Design
b) Input Design
c) DFD
d) File Design
e) Form Design

10

Coding

11

Outputs & Reports

12

Advantages of project

13

Limitations of project

14

Further Scope

15

Data Dictionary

16

References

INTRODUCTION TO ORGANISATION

Vee Software Solutions is a training company that teaches not just programming languages but
programming. This company believes in training their students on not just using a programming
language but how and where to use the programming language most efficiently and effectively.
Today IT industry does not demand coders but they want software engineers who can effectively
build robust and user friendly applications. The faculty is skilled enough to teach our students
out of box and not just programming concepts.
Bright students are given exposure to live projects. This organization develop engineers not
coders. The goal is not only providing knowledge about programming language but also
educated students on how to implement them.
This organization teach them the standards followed in different IT companies. As companies go
for CMM certification so some standards needs to be followed by them to retain their
certificates.
This company provide training about Core Java, Advance Java, .Net, C, C++, Oracle. To give
exposure to those areas they teach following to students-code standards, software development
life cycle, how IT industry functions, how to create robust and secure code, what is search
engine optimization, exposure it live projects in case students perform well in training program.

Basic Information

1.

Company Name:

VEE SOFTWARE SOLUTION Pvt. Ltd, Mohali.

2.

Company Address:

VEE SOFTWARE SOLUTION Pvt. Ltd .


SCF 41 , PHASE 7, MOHALI.

3.

Name of Trainer:

KAPIL VERMA

4.

Trainer Contact no:

5.

Internal Guide (Class Counselor): MR. JASWINDER SINGH

6.

Name of the Project:

7.

Front End:

8.

Back End:

9464161616

HOSPITAL MANAGEMENT SYSTEM

JAVA
MY SQL

PROFILE OF PROBLEM ASSIGNED


1. The current manual system has a lot of paper work and it does not deal with old and new car
purchase and sale.
2. To maintain the records of sale and service manually, is a Time-consuming job.
6

3. With the increase in database, it will become a massive job to maintain the database.
4. Requires large quantities of file cabinets, which are huge and require quite a bit of space in
the office, which can be used for storing records of previous details.
5. The retrieval of records of previously registered patients will be a tedious job.
6. Lack of security for the records, anyone disarrange the records of your system.
7. If someone want to check the details of the available doctors the previous system does not
provide any necessary detail of this type.

EXISTING SYSTEM

INRODUCTION OF PROJECT
A Hospital Management System (HMS) is an element of health informatics that focuses
mainly on the administrational needs of hospitals. In many implementations, a HMS is a
comprehensive, integrated information system designed to manage all the aspects of a hospital's
operation, such as medical, administrative, financial, and legal issues and the corresponding
processing of services.
One of the most important issues is health care services. Hospitals provide a medical assistance
to people. The best introduction for hospital information systems has been made in 2011
International Conference on Social Science and Humanity.
Hospital Management System is powerful, flexible, and easy to use and is designed and
developed to deliver real conceivable benefits to hospitals and clinics and more importantly it is
backed by reliable and dependable Vasudha SoftAim Innovations support.
Hospital Management System is designed for multispeciality hospitals, to cover a wide
range of hospital administration and management processes. It is an integrated end-to-end
Hospital Management System that provides relevant information across the hospital to support
effective decision making for patient care, hospital administration and critical financial
accounting, in a seamless flow.
Hospital Management System is a software product suite designed to improve the quality
and management of clinical care and hospital health care management in the areas of clinical
process analysis and activity-based costing. Hospital Management System enables you to
develop your organization and improve its effectiveness and quality of work. Managing the key
processes efficiently is critical to the success of the hospital helps you manage your processes.

Human Body is a very complex and sophisticated structure and comprises of millions of
functions. All these complicated functions have been understood by man him, part-by-part their
research and experiments. As science and technology progressed, medicine became an integral
part of the research. Gradually, medical science became an entirely new branch of science. As of
today, the Health Sector comprises of Medical institutions i.e. Hospitals, HOSPITALs etc.

research and development institutions and medical colleges. Thus the Health sector aims at
providing the best medical facilities to the common man.
Our project is based on the above concept i.e. automation of Administration and Management of
Hospital. The project has been developed keeping in-view the following aspects: (i) Working environment of the Hospital.
(ii) The thought-process and attitude of Indian people.
(iii) The literacy rate of India.
(iv) The Existing system, being used in the majority of Hospitals.
(v) The availability of Infra-structural facilities likes finance, skilled personals, and working
environment.
NEED:

I have designed the given proposed system in the JSP to automate the process of day to day
activities of Hospital like Room activities, Admission of New Patient, Discharge of Patient,
Assign a Doctor, and finally compute the bill etc., online facilities to the multiple users etc.
The complete set of rules & procedures related to Hospitals day to day activities and generating
report is called HOSPITAL MANAGEMENT SYSTEM. My project gives a brief idea
regarding automated Hospital activities.
The following steps that give the detailed information of the need of proposed system are:
Performance: During past several decades, the hospital management system is supposed to
maintain manual handling of all the hospital daily activities. The manual handling of the record
is time consuming and highly prone to error. To improve the performance of the hospital
management system, the computerized hospital management system is to be undertaken. The
computerized hospital project is fully computerized and user friendly even that any of the
hospitals members can see the patients report and the doctors report.
Efficiency: The basic need of the project is efficiency. The project should be efficient so that
whenever a new patient is admitted, and automatically a bed is assigned and also a doctor is

assigned to the patient according to the patients disease. And if any patient is getting discharged,
the bed assigned to him/her should automatically free in the computer.
Control: The complete control of the project is under the hands of authorized person who has the
password to access this project and illegal access is not supposed to deal with. All the control is
under the administrator and the other members have the rights to just see the records not to
change any transaction or entry.
Security: Security is the main criteria for the proposed system. Since illegal access may corrupt
the database and it will affect not only the hospital but also it also affects the patients life. So
security has to be given in this project.

Features:

Only basic knowledge of computers is required for operation of Hospital Management

System. As it has user-friendly application interface.


Hospital Management System is Customizable and User Configurable
An inbuilt Settings module makes Hospital Management System flexibility to cater to diverse

organizational needs.
Hospital Management System brings information to the user's desktop through integration
across all modules
10

Hospital Management System has pre-defined reports these are used for
by staff filling out forms, freeing resources for more critical tasks normal reporting as well as
Administration & Staff development purpose. Additionally, Hospital Management System can be

easily customized for their own customized reports


Hospital Management System enables hospitals and doctors to better serve their patients
Improved quality of patient care
Increased nursing productivity
Reducing the time spent
Better quality of care, procedures and service to Patients.
Control over the costs incurred by diagnosis-related groups.

OBJECTIVE OF HOSPITAL MANAGEMENT:This main objective of the system is to computerize the maintenance of the patient details and
billing section in the Hospital. It also includes the details about the laboratory checkups.
1. The system should be menu-driven and must have a user-friendly Graphical

User

Interface.
2. It should be able to handle the test reports of patients conducted in the lab of the
hospital.
3. The prescription of the Outdoor patients should be kept up to date and there record
should be kept in the system for historical purposes.
4. Since the test results, treatment results and accounting information are crucial to the
hospital there must be a good security mechanism in the software.
11

5. While admitting a new patient room allocation and availability check for the same
should be done by the system.

SYSTEM REQUIREMENTS: Software Requirements:

Operating System : Windows 7

Front End : Eclipse Indigo

Database : My Sql

Hardware Requirements:

Intel P4 1.1GHz or above

112MB RAM

12

80GB HDD Minimum

FRONT END
We have implemented JavaScript for all the Client side validations. Client side JavaScript is
designed to reside inside HTML document & ensure they run properly. It is object based, event
driven, platform independent. These are important parts of any Web application to implement
Client side Validations and the invalid data is not submitted. The form is not submitted until user
fills in correct data. It is extremely useful to restrict mistakes by user.

BACK END
We have used My Sql. My Sql provides efficient/effective solution for major database tech.
- Large database and space management.
- Many concurrent database users.
- High transaction processing requirement
- High Availability
- Industry accepted standards
- Manageable security
- Portability

PRODUCT DEFINATION: Problem Statement


The maintenance of records of these students and staff is manual. The file for each patient is kept and is
retrieved upon the subsequent visit.
The manual handling of the record is time consuming and highly prone to error. The purpose of
this project is to automate or make online, the process of day-to-day activities like Room
activities, Admission of New Patient, Discharge of Patient, Assign a Doctor, and finally compute
the bill etc.
I have tried my best to make the complicated process Hospital Management System as simple
as possible using Structured & Modular technique & Menu oriented interface. I have tried to
13

design the software in such a way that user may not have any difficulty in using this package &
further expansion is possible without much effort. Even though I cannot claim that this work to
be entirely exhaustive, the main purpose of my exercise is perform each Hospitals activity in
computerized way rather than manually which is time consuming.

Definitions of problems:1. Lack of immediate retrievals: - The information is very difficult to retrieve
and to find particular information like- E.g. - To find out about the patients
history, the user has to go through various registers. This results in inconvenience
and wastage of time.
2. Lack of immediate information storage: - The information generated by
various transactions takes time and efforts to be stored at right place.
3. Lack of prompt updating: - Various changes to information like patient
details or immunization details of child are difficult to make as paper work is involved.

FUNCTIONS TO BE PROVIDED:1. Problem of Reliability: Current system is not reliable. It seems to vary in quality from one
month to the, next. Sometimes it gives good output, but some times the output is worst.
2. Problem of Accuracy: There are too many mistakes in reports.
3. Problem of timeliness: In the current system the reports and output produced is mostly late
and in most of the cases it is useless because it is not on time.
4. Problem of Validity: The output and reports mostly contains misleading information. The
customer's information is sometimes not valid.
5. Problem of Economy: The current system is very costly. We have to spend lots of money to
6.

keep the system up and going, but still not get the desired results.
Problem of Capacity: The current system is suffering from problem of capacity also. The
staff for organization is very less and the workload is too much. Few peoples cannot handle
all the work.

PROPOSED SYSTEM

14

.
1. Registers: There is no need of keeping and maintaining salary and employee register
manually. It remembers each and every record and we can get any report related to employee
and salary at any time.
2. Speed: The new proposed system is very fast with 100% accuracy and saves time.
3. Manpower: The new proposed system needs less manpower. Less people can do the large
work.
4. Efficiency: The new proposed systems complete the work of many salesperson in less time.
5. Past details: The new proposed system contains the details of every past doctor and patients
for future assistance.
6. Reduces redundancy: The most important benefit of this system is that it reduces the
redundancy of data within the data.
7. Work load: Reduces the work load of the data store by helping in easy updates of the
products and providing them with the necessary details together with financial transactions
management.
8. Easy statements: Month-end and day-end statement easily taken out without getting
headaches on browsing through the day end statements.
9.

Employee Details: The new proposed system stores and maintains all the employees
details.

10. Patient Details: The new proposed system stores and maintains all the new and old patient
details.
11. Laboratory details: The new proposed system stores and maintains all the Lab details
like Lab Test, Test reports .
12. Blood Bank Details: The new proposed system stores and maintains all the blood bank
details like donors detail, acceptors detail, blood available detail, camp details etc.

15

Processing Requirements: Operating System : Windows 7


Front End : Eclipse Indigo
Database : My Sql
Intel P4 1.1GHz or above
112MB RAM
80GB HDD Minimum

16

Acceptance Criteria: It is very easy to find every patients detail at a single place.
Every doctors record is available in this project so that there is no need to keep any other
file for checking the doctors record.
Also we can edit all patients and doctors data at one place instead of keeping multiple
files.
Any individual who wants to donate blood can register online instead of coming to the
hospital and registering himself/herself thereby saving time at the time of depositing
blood in the blood bank.
Any patient who wants to perform any test can register online and fill up his details so
that he merely has to go to the hospital and undergo test.
An individual can give us the feedback regarding the services of our hospital on our
project.

17

Feasibility Analysis:The feasibility study proposes one or more conceptual solution to the problem set of the project.
In fact, it is an evaluation of whether it is worthwhile to proceed with project or not.
1. Evaluation of feasibility of such solutions. Such evaluation often indicates shortcomings
in the initial goals. This step is repeated as the goals are adjusted and the alternative
solutions are evaluated.
Feasibility analysis usually considers a number of project alternatives, one that is chosen as the
most satisfactory solution. These alternatives also need to be evaluated in a broad way without
committing too many resources. Various steps involved in feasibility analysis are:
2. To propose a set of solution that can realize the project goal. These solutions are usually
descriptions of what the new system should look like.
Four primary areas of interest in feasibility study are:

ECONOMIC FEASIBILITY:
An evaluation of development cost weighed against the ultimate income of benefit derived from
the development system of product. In economic feasibility, cost benefit analysis is done in
which expected cost and benefits are evaluated.

TECHNICAL FEASIBILITY:

18

Technical Feasibility includes existing and new H/W and S/W requirements that are required to
operate the project using JSP. The basic S/W requirement is J2EE in which the front end of the
online hospital management project has been done. The basic entry forms are developed in JSP
and the data is stored in the MY SQL.

OPERATIONAL FEASIBILITY:
Operational feasibility is mainly concerned with issues like whether the system will be used if it
is developed and implemented. Whether there will be resistance from users that will affect the
possible application benefits? The essential questions that help in testing the technical feasibility
of a system are following:
Does management support the project?
Are the users not happy with current business practices? Will it reduce the time considerably?
If yes, then they will welcome the change and the new system.
Have the users involved in the planning and development of the project? Early involvement
reduced the probability of resistance towards the new system.
Will the proposed system really benefit the organization? Does the overall response increase?
Will accessibility of information be lost? Will the system affect the customers in considerable
way?

LEGAL FEASIBILITY:
A determination of any infringement, violation, or liability that could result from development of
the system. Legal feasibility tells that the software used in the project should be original
purchased from the legal authorities and they have the license to use it or the software are
pirated.

19

Project Plan: Team Structure:We are having a team of two members to develop this project. The
project has been developed by Ranjit Kaur and Gaurav Sharma with their best efforts and
hard work.
There are 6 modules in our project. But I will work on 3 Modules. These are as follows:

Patient Module
In-Patient
Out-Patient
Lab Module
Blood Bank Module

Other three modules are developed by Gaurav Sharma. These are as follows:

Doctor Module
Billing Module
Career Module

20

Development Schedule:-

21

Programming Languages And Development Tools:-

3.1 Tomcat 6.0


Apache Tomcat version 1.1 implements the Servlet 2.4 and Java Server Pages 2.0 specifications
from the Java Community Process, and includes many additional features that make it a useful
platform for developing and deploying web applications and web services.
3.2 Servlets
Servlets are the Java platform technology of choice for extending and enhancing Web servers.
Servlets provide a component-based, platform-independent method for building Web-based
applications, without the performance limitations of CGI programs. Servlets have access to the
entire family of Java APIs, including the JDBC API to access enterprise databases. Servlets can
also access a library of HTTP-specific calls and receive all the benefits of the mature Java
language, including portability, performance, reusability, and crash protection.
3.3 Java Server Pages (JSP)
JSP technology enables Web developers and designers to rapidly develop and easily maintain,
information-rich, dynamic Web pages that leverage existing business systems. As part of the Java
technology family, JSP technology enables rapid development of Web-based applications that are
platform independent. JSP technology separates the user interface from content generation,
enabling designers to change the overall page layout without altering the underlying dynamic
content.
3.4 Hyper Text Mark-up Language
HTML is a predominant mark-up language for the creation of web pages. It provides a means to
describe the structure of text-based information in a document by denoting certain text as
headings, paragraphs, lists and to supplement that text with interactive forms, embedded images,
and other objects. HTML can also describe, to some degree, the appearance and semantics of a
document, and can provide additional cues, such as embedded scripting language code, that can
affect the behaviour of web browsers and other HTML processors.

22

3.5 MY SQL
MY SQL is a free object-relational database server (database management system), released
under a flexible BSD-style license. It offers an alternative to other database systems. It offers an
alternative to other open-source database systems (such as MySQL and Firebird), as well as to
proprietary systems such as Oracle, Sybase, IBM's DB2 and Microsoft SQL Server.
3.6 ECLIPSE
Eclipse is an open source community whose projects are focused on providing a vendor-neutral
open development platform and application frameworks for building software. Eclipse based
tools give developers freedom of choice in a multi-language, multi-platform, multi-vendor
environment. Eclipse provides a plug-in based framework that makes it easier to create, integrate
and utilize software tools, saving time and money. By collaborating and exploiting core
integration technology, tool producers can leverage platform reuse and concentrate on core
competencies to create new development technology. The Eclipse Platform is written in the Java
language.

System Requirement Specifications:23

1. Introduction
The SRS is produced at the culmination of the analysis task. The function and performance
allocated to software as part of the system engineering and refined by establishing a complete
information description, a detailed functional description, a representation of system behavior,
indication of performance requirements and design constrains, appropriate validation criteria and
the other information related to requirements.
The SRS is technical specification of requirement of Hospital Management system.
This specification describes what the proposed system should do without describing how it will
do it. It also describes complete external behavior of proposed system.
1.1. Purpose:The main purpose of our system is to make hospital task easy and is to develop software
that replaces the manual hospital system into automated hospital management system. This
document serves as the unambiguous guide for the developers of this software system.
1.2. Scope:The document only covers the requirement specification for the hospital management
system. This document does not provide any references to the other component of the hospital
management system. All the external interfaces and the dependencies are also identified in this
document.
1.3 - Definitions, Acronyms, and Abbreviations
HMS - Hospital Management System
Report - an account of patients
Front-desk staff - administrative staff that work at reception desk
Logon ID - a user identification number to enter the system
Password - a word that enables one to gain admission into the system
Web-based application - an application that runs on the Internet
My SQL - a query language to interrogate the system
GUI - Graphical User Interface
SRS - Software Requirements Specification

1.5. Reference:24

1) An integrated approach to software engineering, Third edition by Pankaj jalote


2) Java Balaguruswamy
3) SQL server 2005 JosephL Jordan

1.6. Overview:Hospital Management System is a process of implementing all the activities of the
hospital in a computerized automated way to fasten the performance.
This project is to maintain the patient details, lab reports and to calculate the bill of the
patient. You can also manually edit any patient details and issue bill receipt to patient within few
seconds.

External Interface And Data Flows:


External Interface Requirements:25

User display and report format, user command summary

User Interface:-

User interface is designed in a user friendly manner and the user, in another end he
has to give the order, for that he will interface with keyboard and mouse.

Hardware Interface:1) OS Windows 7


2) Hard disk 80 GB
3) RAM 1 GB
4) Keyboard Standard QWERTY keyboard for interface
5) Mouse Standard mouse with 2 buttons

Software Interface:1) Front end Java


2) OS Windows 7
3) Back end MY SQL

Communication Interface:Windows

High level DFD and data dictionary:BEHAVIORAL DESCRIPTION:

26

DFD (1 level & 2 levels)


The Data flow Diagram shows the flow of data. It is generally made of symbols given below :
(1)
A square shows the Entity : (2)

A Circle shows the Process: -

(3)

An open Ended Rectangle shows the data store : --

(4)
An arrow shows the data flow :The DFD can be up to several levels. The 0 level DFD states the flow of data in the system as
seen from the outward in module.
The first level DFD show more detail, about the single process of the 0 level DFD
The second level DFD can show even more details and so on.

Zero Level DFD:

Patient

Hospital
Management
System

First Level DFD:27

Doctor

E-R DIAGRAM OF PROJECT

28

FUNCTIONAL AND PERFORMANCE SPECIFICATIONS:-

29

Functional Requirements :

Doctor module:In this module we can view the todays doctor on call schedule department-wise .Here we
can create the duty plan of doctor and edit or update the duty plan of particular doctor.
Here we can add/delete the doctor to particular department.

Patient module:PatientId,Name,Age,Sex,Address,Phone Number,Weight


This module has following 2 sub modules:-

Inpatient module:This sub module is used to store information about patients who were admitted in the
hospital on doctors advice.
PatientId, Dept depending on disease, Doctor, Room no, Date of admitted, Advance, Date of
discharge.
Updation like deletion and modification is done.
Outpatient module: PatientId,New_Case,Old_Case,Date,Deptdependingon disease,Doctor .
Updation like deletion and modification is done

Lab module:This module used to store or produce the laboratory reports.


PatientId, Weight, Category, Doctor, Inpatient/Outpatient, Date.
Updation like deletion and modification is done.

Blood Module:30

In this module we ask all people to donate blood in order to save a life.

Billing module: Inpatient module:PatientId, doctors charge, health card amount, room bill, medicine bill, total amount, No
of days, Service charge, Operation theatre,Nursing care, Lab bill .

Performance Requirements:The capability of the computer depends on the performance of the software. The software
can take any number of input provided the database size is large enough. This would depend on
the available memory space.

DESIGN:31

The design document that we will develop during this phase is the blueprint of the software. It
describes how the solution to the customer problem is to be built. Since solution to complex
problems isnt usually found in the first try, iterations are most likely required. This is true for
software design as well. For this reason, any design strategy, design method, or design language
must be flexible and must easily accommodate changes due to iterations in the design. Any
technique or design needs to support and guide the partitioning process in such a way that the
resulting sub-problems are as independent as possible from each other and can be combined
easily for the solution to the overall problem. Sub-problem independence and easy combination
of their solutions reduces the complexity of the problem. This is the objective of the partitioning
process. Partitioning or decomposition during design involves three types of decisions: Define the boundaries along which to break;
Determine into how money pieces to break; and
Identify the proper level of detail when design should stop and implementation should start.
Basic design principles that enable the software engineer to navigate the design process suggest a
set of principles for software design, which have been adapted and extended in the following list:
Free from the suffer from "tunnel vision." A good designer should consider alternative
approaches, judging each based on the requirements of the problem, the resources available to do
the job.
The design should be traceable to the analysis model. Because a single element of the design
model often traces to multiple requirements, it is necessary to have a means for tracking how
requirements have been satisfied by the design model.
The design should not repeat the same thing. Systems are constructed using a set of design
patterns, many of which have likely been encountered before. These patterns should always be
chosen as an alternative to reinvention. Time is short and resources are limited! Design time
should be invested in representing truly new ideas and integrating those patterns that already
exist.
The design should "minimize the intellectual distance" between the software and the problem as
it exists in the real world. That is, the structure of the software design should (whenever possible)
mimic the structure of the problem domain. The design should exhibit uniformity and
integration. A design is uniform if it appears that one person developed the entire thing. Rules of

32

style and format should be defined for a design team before design work begins. A design is
integrated if care is taken in defining interfaces between design components.
The design activity begins when the requirements document for the software to be developed is
available. This may be the SRS for the complete system, as is the case if the waterfall model is
being followed or the requirements for the next "iteration" if the iterative enhancement is being
followed or the requirements for the prototype if the prototyping is being followed. While the
requirements specification activity is entirely in the problem domain, design is the first step in
moving from the problem domain toward the solution domain. Design is essentially the bridge
between requirements specification and the final solution for satisfying the requirements.
The design of a system is essentially a blueprint or a plan for a solution for the system. We
consider a system to be a set of components with clearly defined behavior that interacts with
each other in a fixed defined manner to produce some behavior or services for its environment. A
component of a system can be considered a system, with its own components. In a software
system, a component is a software module. The design process for software systems, often, has
two levels. At the first level, the focus is on deciding which modules are needed for the system,
the specifications of these modules, and how the modules should be interconnected. This is what
is called the system design or top-level design. In the second level, the internal design of the
modules, or how the specifications of the module can be satisfied, is decided. This design level is
often called detailed design or logic design. Detailed design essentially expands the system
design to contain a more detailed description of the processing logic and data structures so that
the design is sufficiently complete for coding.
Because the detailed design is an extension of system design, the system design controls the
major structural characteristics of the system. The system design has a major impact on the
testability and modifiability of a system, and it impacts its efficiency. Much of the design effort
for designing software is spent creating the system design.
The input to the design phase is the specifications for the system to be designed. Hence,
reasonable entry criteria can be that the specifications are stable and have been approved, hoping
that the approval mechanism will ensure that the specifications are complete, consistent,
unambiguous, etc. The output of the top-level design phase is the architectural design or the
system design for the software system to be built. This can be produced with or without using a
33

design methodology. A reasonable exit criteria for the phase could be that the design has been
verified against the input specifications and has been evaluated and approved for quality.
A design can be object-oriented or function-oriented. In function-oriented design, the design
consists of module definitions, with each module supporting a functional abstraction. In objectoriented design, the modules in the design represent data abstraction (these abstractions are
discussed in more detail later). In the function-oriented methods for design and describe one
particular methodology the structured design methodology in some detail. In a function- oriented
design approach, a system is viewed as a transformation function, transforming the inputs to the
desired outputs. The purpose of the design phase is to specify the components for this
transformation function, so that each component is also a transformation function. Hence, the
basic output of the system design phase, when a function oriented design approach is being
followed, is the definition of all the major data structures in the system, all the major modules of
the system, and how the modules interact with each other. Once the designer is satisfied with the
design he has produced, the design is to be precisely specified in the form of a document. To
specify the design, specification languages are used. Producing the design specification is the
ultimate objective of the design phase. The purpose of this design document is quite different
from that of the design notation. Whereas a design represented using the design notation is
largely to be used by the designer, a design specification has to be so precise and complete that it
can be used as a basis of further development by other programmers. Generally, design
specification uses textual structures, with design notation helping in understanding.
Doctor Module

Lab Module

Detailed DFDs diagrams:


Context Level DFD
HOSPITAL MANAGEMENT SYSTEMBlood Module

Patient Status

Bill Payment
34

Read User Id & Password

DFD For Login


Of User
User

Authenticate User & Login


Data Base

35

Output

1. Read the Patient Data & Treatment

DFD For
Bill Payment
Accountant

DATABASE
2. Generate the bill

Print Bill

Output
36 Device

Patient

DFD for Patient Search


Patient

1. Read the Data from patient

2. Search the patient in patient-ID

Database

3. Copy Selected Record


37

Output Unit

DATA FLOW DIAGRAM LISTING OF PATIENTS

FILE
Scan Record

PATIENT

1 Read the
Bed number

2 Select
Rcord from
Database

6 Copy
Selected
Record

3 Copy
Selected
Record

Processing
4 Compute Total

38

5 Select Records

Processing

Compute
Bill

Generate
Total List

Final Output

Output

OUTPU
T UNIT
To Screen/Printer

DATA FLOW DIAGRAM ADMISSION OF A NEW PATIENT(In-Patient)

1 Admitted

PATIENT
1.1 Display
Form

FILE
Process
Update
Table

1.2 Get Details

39

Patient Details
1.4

1.3
Assigning a
Doctor

Update

DFD For Searching a Doctors

Read the
Data of Doctor & Specialisation

User
Data Base

Doctors
With Specialties

CRT

40

Structure Diagram:
CLASS DIAGRAM:-

41

Data structures, database and table descriptions

42

CODING: Language Detail:43

INTRODUCTION OF JAVA
Java, is a platform independent programming language, which provides developers with the
means to create powerful applications, which are very Small in size, platform independent,
secure and robust.
Java is a general purpose, object oriented programming language developed by Sun
Microsystems of USA in 1991.originally called oak by James Gosling, one of the inventors of
the language, java was designed for the development of software for consumer electronic device
like TVs, VCRs, toasters and such other electronic machines. Not all the languages are suitable
to implement the oop concepts easily. Languages that support Oop features include Smalltalk,
objective c, c++, Ada, objectpascal. C++,an extension of c language, is the most popular oop
language today. C++ is basically a procedural language with object oriented extension. The latest
one Added to this list is java, a pure object oriented language.
The growth of java during the last few years has been phenomenal. It has now emerged as the
language of choice of the world computing community due to its simplicity, portability and
security. Java the only pure object oriented language available today, is now used in almost all
applications from simple home appliances control systems to complex space control systems. It
has also revolutionarys applications development for intranets and internet.
Java motto is Write once run anywhere ". In order to accomplish this, java has undergone many
improvements and enhancements during these years of growth and popularity, primary to add
new capabilities required for the internet applications.

JAVA HISTORY
Java is general purpose, object-oriented programming language developed by Sun Microsystems
,Orignally called Oak by James Gosling,one of the inventors of the language. Java was designed
for the development of software for consumers electronics machines. This goal had a strong
impact on the development team to make the language simple,portable and highly economical.
The java team which included Patrick Naughton discovered that the existing language like C and
C++ had limitations in term of both reliabilityand portability. however they modeled Java on C
and C++ but removed a number of features that were considered as source of problems and thus
made java a really simple,reliable,portable,and powerful language.

JAVA MILESTONES
44

1990 Microsystems decide to develop special software that could be used to manipulate
consumer electronic devices.
1991 After exploring the possibility of using the most popular object oriented C++, the
team announced a new language Oak.
1992 Team known as Green Project team by Sun demonstrated the application of their new
language.
1993
The WWW appeared on the internet and transformed the text based internet in to a
graphical rich environment.
1994
The team developed a web browser called Hot Java to locate and run applet programs
on internet.
1995
Oak was renamed Java due to some legal snags. Java is just a name and not an
acronym. Many popular companies announced their support to java.

JAVA FEATURES
Java is the most exciting thing to hit the Internet because Java can deliver what everyone on the
Internet has been clamoring for -True Interactivity.
First of all java is a programming language. Language is used to compose a set of instructions,
which a computer obeys. These groups of instructions are called programs or in the case of java
programs for the WEB,APPLET,and SERVLETS.

The Main Features Of Java Are Listed Below

Compile and Interpreted


Platform Independent and Portable
Object Oriented
Robust and Secure
Multithreaded and Interactive
Dynamic and Extensible
Language of Web

45

Compiled and interpreted: - Java combines both these approaches thus making java a two
stages system. First, java compiler translates source code into byte code instructions. Byte codes
are not machine instructions. Secondly, Java interpreter generates machine code that can be
directly executed by the machine that is running the java program.
Platform-Independent and Portable:-Java programs can be easily moved from one computer
system to another, anywhere and anytime. Changes and upgrades in operatingsytems, processors
and system resources will not force any changes in java programs. We can download a java
applet from a remote computer on to our local system via internet and execute it locally. Java
ensures portability in two ways. First java compiler generates byte code instructions that can be
implemented on any machine. Secondly the sizes of primitive data types are machine
independent.
Object Oriented:-Java is a true object oriented programming language.Almost everything in
java has an object. All program code and data resides within object and classes. Java comes with
an extensive set of classes, arranged in package that we can use in our programs by inheritance.
The object model in java is simple and easy to extend.
Robust and Secure:-Java is a robust language. It provides many safeguards to ensure reliable
code. It has strict compile time and run time checking for data types. It is designed as garbage
collected language relieving the programmers virtually all memory management problems.
Security becomes an important issue for a language that is used For programming on internet.
Threat of viruses and abuse of resources is everywhere. Java systems not only verify all memory
access but also ensure that no viruses are communicated with an applet.
Distributed:- Java is designed as a distributed language for creating applications on networks. It
has the ability to share both data and programs. Java applications can open and access remote
objects on internet as easily as they can do in a local system.
Simple, Small and Familiar: - Java Is Simple and small language.
Because java is different from c and c++ in many ways. Java does not include The unique
statement keywords goto, sizeof and typedef. Java does not support operator overloading. Java
does not support an explicit pointer type etc.
Familiarity is another striking feature of java. Because java uses many constructs c and c++ and
therefore, java code looks like c++ code. Thus java is a simplified version of c++.
Multithreaded and Interactive: - Multithreaded means handling Multiple tasks simultaneously.
Java supports multithreaded programs. This means that need not wait for the application to finish
46

one task before beginning another. For example we can listen to an audio clip while scrolling a
page and at the same time download an applet from a distant computer. This feature greatly
improves the interactive performance of graphical applications.
High Performance: - Java performance is impressive for an interpreted language. According to
sun, java speed is comparable to the native c/c++.The Incorporation of multithreading enhances
the overall execution speed of java programs.
Dynamic and Extensible:-Java is a dynamically language. Java is capable of dynamically
linking in new class libraries, methods and objects. Java programs supports functions written in
other languages such as c and c++. These functions are known as native methods. Native
methods are linked Dynamically at runtime.
Platform neutral language:-Java is a platform neutral language because java is the first
language that is not tied up to in particular hardware and operating system. Programs developed
in java can be executed anywhere on any system.

Characteristics of Java

47

The target of Java is to write a program once and then run this program on multiple operating
systems.
Java has the following properties:
Platform independent: Java programs use the Java virtual machine as abstraction and do
not access the operating system directly. This makes Java programs highly portable. A
Java program which is standard complaint and follows certain rules can run
unmodified on all supported platforms, e.g. Windows or Linux.
Object-orientated programming language: Except the primitive data types, all elements
in Java are objects.
Interpreted and compiled language: Java source code is transferred into the byte code
format which does not depend on the target platform. These byte code instructions will
be interpreted by the Java Virtual machine (JVM). The JVM contains a so called
Hotspot-Compiler which translates performance critical byte code instructions into
native code instructions.
Automatic memory management: Java manages the memory allocation and deallocation for creating new objects. The program does not have direct access to the
memory. The so-called garbage collector deletes automatically objects to which no
active pointer exists.

48

TECHNOLOGIES USED: Java Server Pages (JSP):


Java Server Pages technology is the Java platform technology for building applications
containing dynamic Web content such as HTML, DHTML and XML. The Java Server Pages
technology enables the authoring of Web pages that create dynamic content easily but with
maximum power and flexibility.
The Java Server Pages technology offers a number of advantages:

Write Once, Run Anywhere properties:


The Java Server Pages technology is platform independent, both in its dynamic Web pages, its
Web servers, and its underlying server components. You can author JSP pages on any platform,
run them on any Web server or Web enabled application server, and access them from any Web
browser. You can also build the server components on any platform and run them on any server.

High quality tool support


The Write Once, Run Anywhere properties of JSP allows the user to choose best-ofbreed tools. Additionally, an explicit goal of the Java Server Pages design is to
enable the creation of high quality portable tools.

Separation of dynamic and static content


The Java Server Pages technology enables the separation of static content from
dynamic content that is inserted into the static template. This greatly simplifies the
creation of content. This separation is supported by beans specifically designed for
the interaction with server-side objects.

Support for scripting and actions


The Java Server Pages technology supports scripting elements as well as actions.

49

Actions permit the encapsulation of useful functionality in a convenient form that


can also be manipulated by tools; scripts provide a mechanism to glue together this
functionality in a per-page manner.
JSP architecture
JSPs are built on top of SUNs servlet technology. JSPs are essential an HTML page with special
JSP tags embedded. These JSP tags can contain Java code. The JSP file extension is .jsp rather
than .htm or .html. The JSP engine parses the .jsp and creates a Java servlet source file. It then
compiles the source file into a class file; this is done the first time and this why the JSP is
probably slower the first time it is accessed. Any time after this the special compiled servlet is
executed and is therefore returns faster.
Java Script
JavaScript is a programming language that allows scripting of events, objects, and actions to
create Internet applications. A website development environment that will allow the creation of
Interactive Web Pages. The coding techniques capable of accepting a client's requests and
processing these requests.
The web site development environment should also provide the facility for 'validating' user input.
With JavaScript, forms are a consideration in nearly every page you design. Capturing user
requests is traditionally done via a 'form'. So the web site needs to have facilities to create forms.
Text fields and text areas can dynamically change in response to user responses.

50

Introduction to My SQL:My SQL, the most popular Open Source SQL database management system, is developed,
distributed, and supported by Oracle Corporation. The My SQL (R) software delivers a very
fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server.
My SQL Server is intended for mission-critical, heavy-load production systems as well as for
embedding into mass-deployed software.
The My SQL software is Dual Licensed. Users can choose to use the My SQL
software as an Open Source/Free Software product under the terms of the GNU General
Public License or can purchase a standard commercial license.

My SQL is a relational database management system.


A database is a structured collection of data. It may be anything from a simple shopping
list to a picture gallery or the vast amounts of information in a corporate network. To add,
access, and process data stored in a computer database, you need a database management
system such as My SQL Server. Since computers are very good at handling large amounts of
data, database management systems play a central role in computing, as standalone utilities, or
as parts of other applications.

My SQL software is Open Source.


A relational database stores data in separate tables rather than putting all the data in
one big storeroom. This adds speed and flexibility. The SQL part of My SQL stands for
Structured Query Language. SQL is the most common standardized language used to
access databases and is defined by the ANSI/ISO SQL Standard. The

SQL standard has been evolving since 1986 and several versions exist.
The SQL Database Server is very fast, reliable, and easy to use.
My SQL Server was originally developed to handle large databases much faster than existing
solutions and has been successfully used in highly demanding production environments for
several years. Although under constant development, My SQL Server today offers a rich and
useful set of functions. Its connectivity, speed, and security make My SQL Server highly suited
for accessing databases on the Internet.
My SQL Server works in client/server or embedded systems.
The My SQL Database Software is a client/server system that consists of a multi-threaded SQL
server that supports different back ends, several different client programs and libraries,
administrative tools, and a wide range of application programming interfaces (APIs).
My SQL Server also provides an embedded multi-threaded library that you can link into your
application to get a smaller, faster, easier-to-manage standalone product.
A large amount of contributed My SQL software is available.
51

My SQL uses a standard form of the well-known SQL data language.


My SQL works on many operating systems and with many languages including PHP,
PERL, C, C++, JAVA etc.
My SQL works very quickly and works well even with large data sets.
Enables you to implement a database with tables, columns, and indexes.
Updates the indexes automatically.
Interprets an SQL query and combines information from various tables.

52

Software Requirements
53

JDK 1.7
MYSQL
JAVA
ECLIPSE
Being the platform independent language to generate the user-friendly Software system

is used as Front-end system and MYSQL as Back-end database system, this will facilitate user in
operating the system successfully.
A platform is the hardware or software environment in which a program runs. We've already
mentioned some of the most popular platforms like Windows 2000/XP, Linux, Solaris, and Mac
OS. Most platforms can be described as a combination of the operating system and hardware.
The Java platform differs from most other platforms in that it's a software-only platform that runs
on top of other hardware-based platforms.
The Java syntax is similar to C++. Java is case sensitive,
The Java platform has two components:

The Java Virtual Machine (Java VM)


The Java Application Programming Interface (Java API)

54

Home.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>

55

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"


"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Hospital Management System</title>
<link href='homepage.css' rel='stylesheet' type='text/css'>
<script src="slider/js-image-slider.js" type="text/javascript"></script>
<link href="slider/js-image-slider.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id='container'>
<div id='wrapper'>
<div id='header'>
<div id='left'>
<font size=8 color=midnightblue><b>&nbsp&nbspRG
HOSPITAL</font></b><br>
<b><marquee><font size=4 color=red>Trust Your
Health With Us</font></marquee></b>
</div>
<div id='left'>
<img src= "PICS\LOGO.png">
</div>
<div id='right'>
<h3>24 HOURS EMERGENCY </h3>
<b><font
color=gray>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspHELPLINE :
1800-111-8484 </b>
</div>
</div>
</div>
<div id='menu'>
<ul>
<li><b><a href='Home.jsp'>Home</a></b></li>
<li><b><a href='AboutUs.jsp'>About
Us</a></b></li>
<li><b><a href='Login.jsp'>Login</a></b></li>
<b> <li><a href='career.jsp'>Career</a></li></b>
<li><b><a href='Contact.jsp'>Contact Us</a></b></li>
<li><b><a href='Feedback.jsp'>Feedback</a></b></li>
<b> <li><a href='Home.jsp'>Logout</a></li></b>
</ul>
</div>
56

<div id='content'>
<div id='slider'>
<img src='slider/s1.jpg'>
<img src='slider/s2.jpg'>
<img src='slider/s3.jpg'>
<img src='slider/s5.jpg'>
<img src='slider/s4.jpg'>
</div>
</div>
<div id='footer'>
<p>Copyright Hospital <a href='#'>RG GROUPS</a>

All

Rights Reserved</p>
</div>
</div>
</div>
</body></html>
AboutUs.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>About Us</title>
<link href='homepage.css' rel='stylesheet' type='text/css'>
</head>
<body>
<br>
<div id='containe1r'>
<div id='wrapper1'>
<div id='header1'>
<div id='left1'>
<font size=8 color=midnightblue ><b>&nbsp&nbspRG HOSPITAL</font></b><br>
<b><marquee><font size=4 color=red>Trust Your Health With Us</font></marquee></b>
</div>
<div id='right1'>
<img src= "PICS\about_us.jpg">
</div>
<div id='menu1'>
<ul>
<b><li><a href='Home.jsp'>Home</a></li></b>
<li><b><a href='AboutUs.jsp'>About Us</a></b></li>
<li><b><a href='Login.jsp'>Login</a></b></li>
<b><li><a href='career.jsp'>Career</a></li></b>
57

<b> <li><a href='Contact.jsp'>Contact Us</a></li></b>


<li><b><a href='Feedback.jsp'>Feeback</a></b></li>
<b> <li><a href='Home.jsp'>Logout</a></li></b>
</ul>
</div>
<div id='content1'>
<div class='aboutus-content1'>
<h1 align="center"><font color="crimson">About Us</font></h1>
The RG Group has four NABH accredited tertiary care hospitals. One of the flagship hospitals is
located in Panchkula, Indore, Jaipur, Chennai.
With four leading-edge hospitals and a strong network of physicians, RG Hospital upholds a
longstanding tradition of bringing advanced medicine and personal care to the people it
serves.<br><br>
<p>RG Hospital is committed to build on the core principles of quality, safety and clinical
excellence with the promise of bringing quality healthcare at cost-effective prices for people of
India.
Here at Alchemist, we make every effort to ensure that the healthcare system and those working
within it are devoted to work ethics and patient interest.</p><br>
<p>Patients are the focus of everything we do. We strive to foster an environment that delivers
patients the best experience on their pathway from diagnosis to treatment. Our dedication to
bring you the best in healthcare means we attract most distinguished consultants and recruit
expertly skilled medical staff. Our insistence on furnishing the hospital
with latest technology has allowed us to speed up diagnosis, increase veracity and strive for the
very best health results for our patients.</p><br>
<h2><font color=midnightblue ><p style="text-align: justify;"><strong>Our
Vision</strong></font></p></h2>
<p> RG group of hospitals aspires to be the most preferred healthcare organization for customers
and employees by:-</p>
<p>1. Offering affordable, transparent and World Class services.<br>
2. Developing synergetic relationship between management & employees.</p><br>
</div>
<div class='aboutus'>
</div>
<div class='aboutus-content1'>
<h2><font color=midnightblue ><p style="text-align: justify;"><strong>Our
Mission</strong></font></p></h2>

58

<ul>
<li><p>Provide best healthcare services by highly qualified and trained personal so that the
patients get cared & cured.</li></p>
</ul><br/><br/>
</div>
<div class='aboutus-content1'>
<h2><font color=midnightblue ><p style="text-align: justify;"><strong>Our Quality
Norms</strong></font></p></h2>
<ul>
<li><p>* Care, Compassion & Courtesy.<br>
* Community health provider patient centric care with value for money to all sections of
society.<br>
* Timely intervention.<br>
* Effectiveness: Sharing Knowledge & best practices.<br>
* Efficiency: never ending improvements.<br>
* Maintenance of high standard of hygiene and cleanliness.<br>
* Best quailty patient care.<br>
*Judicious use of drugs and appropriate interventions.<br>
*Compliance with the highest standards of medical ethics.<br>
*Continuous skill up gradation and keeping abreast of the latest development.<br>
*To carry out all processes right the first time, on time and every
time.<br><br><br></p></li></p>
</ul><br/><br/>
</div>
</div>
</div>
</div>
</body>
</html>

59

Login.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login jsp File</title>
<link href='homepage.css' rel='stylesheet' type='text/css'>
<style>
/***************Start login**************/
#login
{
width:1200px;
min-height:40px;
float:left;
font-weight:bold;
margin-top:30px;
}
#login-content
{
width:1200px;
60

min-height:300px;
float:left;
background:white;
}
#loginimg
{
width:1200px;
min-height:300px;
float:left;
}
#loginimg - wrapper
{
width:1200px;
min-height:300px;
margin:0px auto;
background:white;
}
.leftsecl
{
width:300px;
float:left;
margin-top:10px;
margin-bottom:30px;
margin-left:280px;
min-height:300px;
}
.leftsecl img
{
width:280px;
float:left;
margin:0px 0px;
}
.right_secl {
background: #dfdfdf none repeat scroll 0 0;
border-radius: 5px;
float: right;
61

margin-bottom: 30px;
margin-right: 280px;
margin-top: 10px;
min-height: 250px;
padding: 15px;
width: 310px;
}
.right_secl h3{
font-size:20px;
text-align:center;
margin-bottom:20px 0px;
/*border-bottom:solid 1px;*/
padding-bottom:10px 0;
}
.login_field{
float:left;
width:92%;
margin:4%;
}
.right_secl label {
float: left;
font-size: 14pxs;
margin-left: 0;
}
.right_secl input {
border: 1px solid;
border-radius: 4px;
float: left;
font-size: 14px;
margin-top: 10px;
padding: 4px;
width: 92%;
}
select {
border: 1px solid;
border-radius: 4px;
margin-top: 12px;
padding: 4px;
width: 98%;
}
62

.submit {
background: midnightblue;
border: 1px solid;
color: #fff;
float: right !important;
padding: 7px !important;
margin-top: 15px;
}
.login_btn {
background: midnightblue;
color: white;
float: left;
font-size: 16px;
font-weight: bold;
margin: 10px;
padding: 4%;
text-align: center;
text-decoration: none;
width: 84%;
}
.forgot {
color: black;
float: right;
font-size: 14px;
margin: 10px;
padding: 5px;
text-decoration: none;
}
.forgot :hover{
text-decoration:underline;
}
/***************End login**************/
</style>
<script type="text/javascript">
function valid()
{
var name=document.myform.username.value;
var pass=document.myform.password.value;
63

if(name=="")
{
alert("User Name cannot be empty");
return false;
}
if(pass=="")
{
alert("Password cannot be empty");
return false;
}
}
</script>
</head>
<body >
<jsp:include page="head_menu.jsp"></jsp:include>
<div class='wrapper'>
<div class='content'>
<div id='login'>
<h2 style="text-align:center"><font color="midnightblue">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L
ogin Here </font></h2><br/>
<%
//String msg = "";
//
if(request.getAttribute("msg")!=null)
///
{
//
msg = request.getAttribute("msg").toString();
//
}
//
else
//
{
//
msg = "";
//
//}
%>
64

</div>
</div>
<form name="myform" action="LoginResult.jsp" target="_parent" method="post" >
<section id='login-content'>
<aside class='leftsecl'>
<img src='PICS\LoginRed1.jpg'>
</aside>
<aside class='right_secl'>
<table align = "center"><br/>
<tr><td>Username :</td>
<td> <input type = "text" name="username" value=""></td></tr>
<tr><td>Password&nbsp; : </td>
<td> <input type = "password" name="password" value=""></td></tr>
</select>
</td>
</tr>
<tr><td><input class='submit' type="submit" value="Submit"></td>
<td><input class='submit' type="reset" value="Reset"></td>
</tr>
<tr><td colspan = 2 align="center"> <a class="forgot" href="ForgetPassword.jsp"
target="_parent"><b>Forget Password</b></a></td></tr>
</table>
<%
//
%>
</aside>

out.print(msg);

</section>
</form>

65

</div>
</body>
</html>

LoginResult.jsp
<%@page import="org.hibernate.cfg.Configuration"%>
<%@page import="java.util.List"%>
<%@page import="com.login.Login"%>
<%@page import="java.util.Iterator"%>
<%@page import="org.hibernate.Transaction"%>
<%@page import="org.hibernate.SessionFactory"%>
<%@page import="org.hibernate.Session"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

<%
String user = request.getParameter("username");
String pass = request.getParameter("password");
Session sess;
SessionFactory factory;
Transaction transaction;
66

Login bean = new Login();


factory = new Configuration().configure().buildSessionFactory();
sess = factory.openSession();
transaction = sess.beginTransaction();
//

bean.setUsername(user);
bean.setPassword(pass);

//
//

sess.save(bean);
transaction.commit();

List list = sess.createQuery("from Login where username = " + "'"+ user + "'").list();

// to iterate the object..


// for while are called iterator.
// primitives int,char,.....
// objects Iterator
Iterator iterator = list.iterator();
if(iterator.hasNext())
{
//response.sendRedirect("demo.jsp");
response.sendRedirect("Login1.jsp");
}
else
{
response.sendRedirect("Login.jsp");
}

sess.clear();
sess.close();
%>
67

</body>
</html>

Login1.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link href='homepage.css' rel='stylesheet' type='text/css'>
</head>
<style>
{
margin:0px;
padding:0px;
font-family:open sans;
}
#container
{
width:100%;
height:auto;
float:left;
background:white;
}
#wrapper
{
width:1200px;
height:auto;
margin:0px auto;
68

background:white;
}
#header
{
width:1200px;
height:100px;
float:left;
background:white;
}
#left
{
width:490px;
height:100px;
float:left;
margin-left:10px;
margin-top:10px;
}
#left
{
width:440px;
height:100px;
float:left;
margin-left:10px;
margin-top:5px;
}
#right
{
width:250px;
height:100px;
float:left;
}
#right h3
{
float:right;
color:white;
padding-top:30px;
padding-right:10px;
}

69

#menu
{
width:1200px;
height:40px;
background:midnightblue;
float:left;
}
#menu ul
{
float:left;
margin:0px;
padding:0px;
}
#menu ul li
{
float:left;
list-style:none;
width:150px;
height:40px;
text-align:center;
}
#menu ul li a
{
text-decoration:none;
color:white;
font-size:16px;
height:30px;
border-radius:15px;
padding-top:8.5px;
width:150px;
display:block;
}
#menu ul li a:hover
{
background:Crimson;
color:black;
}
#menu ul li ul
70

{
padding:0px;
margin:0px;
float:left;
height:auto;
width:150px;
position:absolute;
z-index:99;
display:none;
}
#menu ul li:hover ul
{
display:block;
}
#menu ul li ul li
{
height:30px;
width:150px;
background:Silver;
}
#menu ul li ul li a
{
height:30px;
width:150px;
display:block;
}
#content1
{
float:left;
width:1200px;
margin: 0px 0px;
background:white;
}
.leftsec
{
float:left;
width:600px;
height:auto;
}
71

.rightsec
{
float:right;
width:600px;
margin:0px 0px;
background:white;
}
.rightsec img
{
float:right;
width:600px;
height:auto;
}

</style>
<script type="text/javascript">
function valid()
{
var firstname=document.myform.firstname.value;
var lastname=document.myform.lastname.value;
var username=document.myform.username.value;
var password=document.myform.password.value;
var address=document.myform.address.value;
var contact=document.myform.contact.value;
var email=document.myform.email.value;
var expression=/^[0-9]+[a-z]+$/;
if(firstname=="")
{
alert("First name should not be empty");
return false;
}
if(lastname=="")
{
alert("Last name should not be empty");
return false;
}
72

if(username=="")
{
alert("Username should not be empty");
return false;
}
if(!password.match(expression))
{
alert("password only in digits");
return false;
}
if(address=="")
{
alert("Address should not be empty");
return false;
}
if(contact==""|| contact.length>10)
{
alert("contact should not be empty");
return false;
}
if(email=="")
{
alert("email should not be empty");
return false;
}
}
</script>
<body>
<div id='container'>
<div id='wrapper'>
<div id='header'>
<div id='left'>
<font size=8 color=midnightblue
><b>&nbsp&nbspRG HOSPITAL</font></b><br>
<b><marquee><font size=4 color=red>Trust Your
Health With Us</font></marquee></b>

</div>
<div id='menu'>
<ul>
<<b><li><a href='Home.jsp'>Home</a></li></b>
73

<b><li><a href='AboutUs.jsp'>About Us</a>


<li><b><a href='Login.jsp'>Login</a></b></li>
<b> <li><a href='career.jsp'>Career</a></li></b>
<b> <li><a href='Contact.jsp'>Contact
Us</a></li></b>
<li><b><a
href='Feedback.jsp'>Feedback</a></b></li>
<b> <li><a href='Home.jsp'>Logout</a></li></b>
</ul>
</div>
<section id='content1'><br>
<center><h2> RG Hospital Welcome's You </h2></center><br>
<table cellspacing="20" cellpadding="60" >
<tr>
<td>
<img src="PICS\p2.jpg"><br><br>
<center><form action="Login2.jsp"> <input type="submit" value=" Click for Patient
Services "></form></center>
</td>
<td>
<img src="PICS\p1.png"><br><br>
<center> <form action="Doctor.jsp"><input type="submit" value="Click
for Doctor Services "></form></center>
</td>
<td>
<img src="PICS\p3.png"><br><br>
<center><form action="Billing.jsp"><input type="submit" value="Click
for Billing "></form></center>
</td>
<td>
<img src="PICS\p4.jpg"><br><br>
<center><form action="Login3.jsp"><input type="submit" value="Click
for Other Services "></form></center>
</td>
</tr>
74

</table>
</section>

<div id='footer'>
<p>Copyright Hospital <a href='#'>RG GROUPS</a>
Rights Reserved</p>
</div>
</div>
</div>
</div>
</body>
</html>

75

All

Login2.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link href='homepage.css' rel='stylesheet' type='text/css'>
</head>
<style>
{
margin:0px;
padding:0px;
font-family:open sans;
}
#container
{
width:100%;
height:auto;
float:left;
background:white;
}
#wrapper
{
width:1200px;
height:auto;
margin:0px auto;
background:white;
}
#header
76

{
width:1200px;
height:100px;
float:left;
background:white;
}
#left
{
width:490px;
height:100px;
float:left;
margin-left:10px;
margin-top:10px;
}
#left
{
width:440px;
height:100px;
float:left;
margin-left:10px;
margin-top:5px;
}
#right
{
width:250px;
height:100px;
float:left;
}
#right h3
{
float:right;
color:white;
padding-top:30px;
padding-right:10px;
}
#menu
{
width:1200px;
height:40px;
77

background:midnightblue;
float:left;
}
#menu ul
{
float:left;
margin:0px;
padding:0px;
}
#menu ul li
{
float:left;
list-style:none;
width:150px;
height:40px;
text-align:center;
}
#menu ul li a
{
text-decoration:none;
color:white;
font-size:16px;
height:30px;
border-radius:15px;
padding-top:8.5px;
width:150px;
display:block;
}
#menu ul li a:hover
{
background:Crimson;
color:black;
}
#menu ul li ul
{
padding:0px;
margin:0px;
float:left;
78

height:auto;
width:150px;
position:absolute;
z-index:99;
display:none;
}
#menu ul li:hover ul
{
display:block;
}
#menu ul li ul li
{
height:30px;
width:150px;
background:Silver;
}
#menu ul li ul li a
{
height:30px;
width:150px;
display:block;
}
#content1
{
float:left;
width:1200px;
margin: 0px 0px;
background:white;
}
.leftsec
{
float:left;
width:600px;
height:auto;
}
.rightsec
{
float:right;
width:600px;
79

margin:0px 0px;
background:white;
}
.rightsec img
{
float:right;
width:600px;
height:auto;
}

</style>
<script type="text/javascript">
function valid()
{
var firstname=document.myform.firstname.value;
var lastname=document.myform.lastname.value;
var username=document.myform.username.value;
var password=document.myform.password.value;
var address=document.myform.address.value;
var contact=document.myform.contact.value;
var email=document.myform.email.value;
var expression=/^[0-9]+[a-z]+$/;
if(firstname=="")
{
alert("First name should not be empty");
return false;
}
if(lastname=="")
{
alert("Last name should not be empty");
return false;
}
if(username=="")
{
alert("Username should not be empty");
return false;
80

}
if(!password.match(expression))
{
alert("password only in digits");
return false;
}
if(address=="")
{
alert("Address should not be empty");
return false;
}
if(contact==""|| contact.length>10)
{
alert("contact should not be empty");
return false;
}
if(email=="")
{
alert("email should not be empty");
return false;
}
}
</script>
<body>
<div id='container'>
<div id='wrapper'>
<div id='header'>
<div id='left'>
<font size=8 color=midnightblue
><b>&nbsp&nbspRG HOSPITAL</font></b><br>
<b><marquee><font size=4 color=red>Trust Your
Health With Us</font></marquee></b>

</div>
<div id='menu'>
<ul>
<<b><li><a href='Home.jsp'>Home</a></li></b>
<b><li><a href='AboutUs.jsp'>About Us</a>
<li><b><a href='Login.jsp'>Login</a></b></li>
81

<b> <li><a href='career.jsp'>Career</a></li></b>


<b> <li><a href='Contact.jsp'>Contact
Us</a></li></b>
<li><b><a
href='Feedback.jsp'>Feedback</a></b></li>
<b> <li><a href='Home.jsp'>Logout</a></li></b>
</ul>
</div>
<section id='content1'><br>
<center><h2> Patient Services </h2></center><br>
<center><table >
<tr>
<td>
<img src="PICS\Z1.png"><br>
<center> <form action="Patient.jsp"><input type="submit" value=" INPatient "></form><br></center>
</td>
<td>
<img src="PICS\Z2.png"><br>
<center><form action="Billing.jsp"><input type="submit" value="OUTPatient "></form><br></center>
</td>
</tr>
</table>
</center>
</section>
<div id='footer'>
<p>Copyright Hospital <a href='#'>RG GROUPS</a>
Rights Reserved</p>
</div>
</div>
</div>
</div>
</body>
</html>
82

All

TEST PLAN:-

One of the purposes of the testing is to validate and verify the system. Verification means
checking the system to ensure that it is doing what the function is supposed to do and Validation
means checking to ensure that system is doing what the user wants it to do.
No program or system design is perfect; communication between the user and the designer is not
always complete or clear, and time is usually short. The result is errors and more errors.
Theoretically, a newly designed system should have all the pieces in working order, but in reality,
each piece works independently. Now is the time to put all the pieces into one system and test it
to determine whether it meets the user's requirements. This is the best chance to detect and
correct errors before the system is implemented. The purpose of system testing is to consider all
the likely variations to which it will be subjected and then push the system to its limits. If we
implement the system without proper testing then it might cause the problems.
1. Communication between the user and the designer.
2. The programmer's ability to generate a code that reflects exactly the system specification.
3. The time frame for the design.
Theoretically, a new designed system should have all the pieces in working order, but in reality,
each piece works independently. Now is the time to put all the pieces into one system and test it
to determine whether it meets the requirements of the user. The process of system testing and the
steps taken to validate and prepare a system for final implementation are:

LEVELS OF TESTING:

83

UNIT TESTING

VALIDATION
INTREGRATIONN
SYSTEM

1. Unit Testing:
This is the smallest testable unit of a computer system and is normally tested using the white
box testing. The author of the programs usually carries out unit tests.
2. Integration Testing:
In integration testing, the different units of the system are integrated together to form the
complete system and this type of testing checks the system as whole to ensure that it is doing
what is supposed to do. The testing of an integrated system can be carried out top-down, bottomup, or big-bang. In this type of testing, some parts will be tested with white box testing and some
with black box testing techniques. This type of testing plays very important role in increasing the
systems productivity. We have checked our system by using the integration testing techniques.
3. System Testing:
A part from testing the system to validate the functionality of software against the requirements,
it is also necessary to test the non-functional aspect of the system. Some examples of nonfunctional tools include tests to check performance, data security, usability/user friendliness,
volume, load/stress that we have used in our project to test the various modules.

STRESS TESTING

It is a type of non-functional testing.

84

It involves testing beyond normal operational capacity, often to a breaking point, in order

to observe the results.


It is a form of software testing that is used to determine the stability of a given system.
It put greater emphasis on robustness, availability, and error handling under a heavy

load, rather than on what would be considered correct behavior under normal circumstances.
The goals of such tests may be to ensure the software does not crash in conditions of
insufficient computational resources (such as memory or disk space).

PERFORMANCE TESTING
What is Performance Testing?
Performance testing, a non-functional testing technique performed to determine the system
parameters in terms of responsiveness and stability under various workload. Performance testing
measures the quality attributes of the system, such as scalability, reliability and resource usage.

Performance Testing Techniques:

Load testing - It is the simplest form of testing conducted to understand the behaviour of
the system under a specific load. Load testing will result in measuring important business critical
transactions and load on the database, application server, etc., are also monitored.

Soak testing - Soak Testing also known as endurance testing, is performed to determine
the system parameters under continuous expected load. During soak tests the parameters such as
memory utilization is monitored to detect memory leaks or other performance issues. The main
aim is to discover the system's performance under sustained use.

Spike testing - Spike testing is performed by increasing the number of users suddenly by
a very large amount and measuring the performance of the system. The main aim is to determine
whether the system will be able to sustain the workload.

VERIFICATION AND VALIDATION (V&V):

85

The objectives of verification, validity activities are to assess and improve the quality of the
work products generated during development and modification of the software. Quality depends
upon the various attributes like correctness, completeness, consistency, reliability, usefulness,
usability, efficiency and conformance to standards.
The terms verification and validation are used synonymously. These are defined as under: Verification: Are we building the product right?
Validation: Are we building the right product?
Verification activities include proving, testing, and reviews. Validation is the process of
evaluating software at the end of the software development to ensure compliance with the
software requirements. Testing is a common method of validation. Clearly, for high reliability we
need to perform both activities. Together, they are often called V&V activities.
The major V&V activities for software development are inspection, reviews, and testing (both
static and dynamic). The V&V plan identifies the different V&V tasks for the different phases
and specifies how these tasks contribute to the project V&V goals. The methods to be used for
performing these V&V activities, the responsibilities and milestones for each of these activities,
inputs and outputs for each V&V task, and criteria for evaluating the outputs are also specified.

IMPLEMENTATION / CONVERSION PLAN:-

System Implementation Maintenance and Review:

86

As we know, creating software is one thing and the implementation of the created software is
another. The process of implementing software is much difficult as compared to the task of
creating the project. First we have to implement the software on a small scale for removing the
bugs and other errors in the project and after removing them we can implement the software on a
large scale. Before we think in terms of implementing the Software on a large basis, we must
consider the Hardware requirements.
Whenever we develop software or project a certain hardware and software is being used by the
programmer for developing the project. The hardware and software to be used by the
programmer for developing the project should be such that it would result in the development of
a project, which would satisfy all the basic needs for which the project has been created by the
programmer. The Hardware should be such that cost constraints of the Client should also be
taken into account without affecting the performance.

HARDWARE EVALUATION FACTORS:


When we evaluate computer hardware, we should first investigate specific physical and
performance characteristics for each hardware component to be acquired. These specific questions
must be answered concerning many important factors. These hardware evaluation factors questions
are summarized in the below figure.
Notice that there is much more to evaluating hardware than determining the fastest and cheapest
computing device. For e.g. the question of possible obsolescence must be addressed by making a
technology evaluation. The factor of ergonomics is also very important. Ergonomics is the science
and technology that tries to ensure that computers and other technologies are "user-friendly", that is
safe, comfortable and easy to use. Connectivity is another important evaluation factor, since so
many computer systems are now interconnected within wide area or local area telecommunications
networks.

HARDWARE EVALUATION FACTORS:


1) Performance
2) Cost
3) Reliability
4) Availability
5) Compatibility
87

6) Modularity
7) Technology
8) Ergonomics
9) Connectivity
10)Environmental requirements
11)Software
12)Support

SOFTWARE EVALUATION FACTORS:


Software can be evaluated according to many factors similar to the hardware evaluation. Thus
the factors of performance, cost, reliability, compatibility, modularity, technology, ergonomics,
and support should be used to evaluate proposed software acquisitions. In addition, however,
the software evaluation factors are summarized in below figure. For e.g. some software
packages require too much memory capacity and are notoriously slow, hard to use, or poorly
documented. They are not a good selection for most end users, even if offered at attractive
prices.

1) Efficiency: is the software a well-written system of computer instructions that does not use
much memory capacity or CPU time?
2) Flexibility: can it handle its processing assignments easily without major modifications?
3) Security: does it provide control procedures for errors, malfunctions and improper use?
4) Language: do our computer programmers and users write it in a programming language that
is used?
5) Documentation: is the s/w well documented? Does it include helpful user instructions?
6) Hardware: does existing hardware have the features required to best use this software?

88

PROJECT LEGACY:Current status of project :We have design almost every module of our project and also we have done connectivity of
Login , Contact Us, Feedback Module., Accounting & Billing.

Remaining areas of concern


We have left with our connectivity area for various modules i.e. Patient, Lab, Blood-Bank,
Doctor module.

Technical and managerial lessons learnt


89

We have learnt how to manage the Hospital services like keeping Patient Records, Doctor
Schedules, Blood-Bank Services, Lab Services , Career.

Future Scope:-

1. Though maximum efforts have been put in to make this report authentic in all aspects and to
take all necessary presentation to ensure that the information gathered is true, some
uncomfortable factors may have crept in.
2. Some of the respondents were reluctant to part with certain information on the pretext of the
sensitivity of the information. Also some facts of figures were not divulged as the company
policy came in the way for free revelation of the desired input.
3. An element of bias might have crept in from the side of the official interviewed. This could
also have resulted in some kind of modification of the information divulged.
4. Through an attempt was make to collect information from the best possible source in the
company, it was difficult to meet the top officials due to their busy schedules.
5. Most of the analysis and interpretations, made for this report, are based on secondary data
obtained. This data could have some inherent mistakes and errors.
6. Finally, although due care has been taken those can be typing and compilation errors in the
report itself.
90

The tasks specified were not well defined because nothing was mentioned regarding validations
in the project. Though we gave maximum effort to check the software with different validation
tests, a few of them might be present in this version.

Due to limited time available survey could not be undertaken for intended 20 consumers and

thus had to be limited to 10.


Communication gaps exist between employees and management, as seniors don't share

problem with subordinates resulting in violation of psychological contract.


Poor rewarding system(slow)
Poor working conditions

The limitations may be many and the magnitude of the influence of these limiting factors may
have a bearing on the report, but it in no way alters the ultimate aim of the project and because
it's highly USER FRIENDLY, it would be the choice of all kinds of personnel.

91

SNAPSHORTS:Home.jsp :-

92

About Us.jsp :-

93

Login.jsp :-

94

After Login:- (Login1.jsp)

95

Login2.jsp:-

96

Login3.jsp:-

After Login2.jsp (In-patient Registration) :97

Patient.jsp

After Login2.jsp (Out-patient form):98

After Login1.jsp (Doctor module):99

Doctor.jsp:

After Login1.jsp (Billing Module): Billing.jsp:


100

After Login3.jsp (Lab Module):


Lab.jsp:
101

After Login3.jsp (Blood Module):


Blood.jsp:
102

Career.jsp:-

103

After career.jsp open the reg.jsp: Registration for the career:

104

Contact .jsp:-

105

Feedback.jsp:-

106

After Feedback.jsp open the Feedback2.jsp:

107

BIBLIOGRAPHY:108

[1] Herbert Scheldt, Java Complete Reference, Fifth Edition, Tata McGraw Hill Edition.
[2] Phil Hanna, JSP 2.0: The Complete Reference, Tata McGraw Hill Edition, 2003.
[3] Elmarsi and Navathe, Fundamentals of Database System (Third Edition), Addision Wesley.
[4] Ian Somerville, Software Engineering, Third Edition, Pearson Education.
[5] Ali Bahrami, Object-Oriented System Development, Third Edition, Tata McGraw Hill
Edition.
[6] Ivan Bayross, SQL, PL/SQL programming language of Oracle, Second Edition, BPB
Publication.
WEB REFERENCES
[1] www.google.com
[2] www.htmlcodetutorial.com

109

Das könnte Ihnen auch gefallen