You are on page 1of 25

Web site of Hospital

Management

Submitted By:

Sanjeev Kanojia
(0714510084) Satyam Saxena
(0714510086) Saurabh Samet
(0714510090)
Shailendra Rathore
(0714510091)

Submitted to the Department of COMPUTER SCIENCE


In partial fulfillment of the requirements
Of the degree of
Bachelor of Technology in
U.P Technical University

1
College of Science and Engineering (Jhansi)
U.P Technical University
<May 2010>

2
DECLARATION

I hereby declare that submission is my own work


and that, to the best of my knowledge and belief, it
contains no material previously published or written by
another person nor material which to a substantial extent
has been accepted for the award of any other degree or
diploma of the university or other institute of higher
learning, except where due acknowledgment has been
made in the text.

Signature:

Name:
Sanjeev Kanojia (0714510084)
Satyam Saxena (0714510086)
Shailendra Rathore (0714510091)
Saurabh Samet (0714510090)

Date: 03/04/2010

3
CERTIFICATION

This is to certify that project report entitled


“Hospital Management System (Web Side)”which is
submitted by Sanjeev Kanojia, Satyam Saxena,
Shailendra Rathore, Saurabh Samet in partial fulfillment
of the requirements for the award of degree of
bachelor of technology in department of COMPUTER
SCIENCE U.P.Technical University, is a record of candidate
own work carried out by him under our supervision. The
matter embodied in this thesis is original and has not
been submitted for the award of any other degree.

Date: Supervisor:
03/05/2010
.Er.Diksha Yadav

4
ACKNOWLEDGEMENT

It gives us a great sense of pleasure to present the report of the B.Tech Project
Undertaken during B.Tech Third Year. We Owen special debt of gratitude to professor
Er.Diksha dada Department of Computer Science & Engineering, college of science &
Engineering,Lucknow for his constant support and guidance throughout the course of our
work. His sincerity, thoroughness and perseverance have been a constant source of
inspiration for us. It is only his cognizant efforts that our endeavors have been light of the
day.
We take the opportunity to acknowledgement the contribution of ER.Sarika, Head of
department Computer Science & Engineering, college of science & Engineering,
Jhansi for his full support and assistance during the development of the project.
We also do not like to miss the opportunity to acknowledge the contribution of all
faculty members of the department for their kind assistance and cooperation during the
development of our project. Last but not the least we acknowledge our friends for their
contribution in the completion of the project.

Signature: Signature:

Name: Sanjeev Kanojia Name: Satyam Saxena

Roll No: 0714510084 Roll No: 0714510086

Date: 03/05/2010 Date: 03/05/2010

Signature: Signature:

Name: Saurabh Samet Name: Shailendra


Rathore

Roll No: 0714510090 Roll No: 0714510091

Date: 03/04/2010 Date: 03/04/2010

5
6
ABSTRACT

Hospitals Management System (HMS) manage whole working of hospital


it also show view Hospital.
As the HMS has to have a foolproof security and a robust database, it has
been built on mysql Server and jdk 1.6 and appropriate s/w, to requirements
of the large institutions. Hospital Management System is integrated software
which caters to the operational needs of each of the department. Apart from
storing and assembling data, it also assists in the decision-making process
relating to resource management. Easy and quick access to patient related
information is another most important aspect of the system.
In this three type of pages are used
1: HTML pages which are purely static those have no server client side
required.
2: Servlet pages who’s programming based on server side.
3: Active pages who’s programming based on user side.

7
TABLE OF CONTENTS

Topic
Page

DECLARATION……………………………………………………………………
…………………….. 2

CERTIFICATION…………………………………………………………………
……………………… 3

ACKNOWLEDGEMENTS…………………………………………………………
………………….. 4

ABSTRACT…………………………………………………………………………
………………………. 5

LIST OF
TABLE………………………………………………………………………………
……………….

1 Hardware
requirements……………………………………………………………………
……10

2 Software
requirements……………………………………………………………………
……..10

3 Milestones and Time


management…………………………………………………….10-11

LIST OF
FIGURE……………………………………………………………………………
……………..

8
FIGURE
1……………………………………………………………………………………
……………13

FIGURE
2……………………………………………………………………………………
……………13

FIGURE
3……………………………………………………………………………………
……………13

FIGURE
4……………………………………………………………………………………
……………13

ER
diagram……………………………………………………………………………
……………………20

1: Title of the
project……………………………………………………………………………
……8

2: About the
project……………………………………………………………………………
…….8

2.1 Generic Technology


keywords………………………………………………………8

2.2 Specific Technology


keywords………………………………………………………8

2.3Project type
keywords…………………………………………………………………..8
3: Functional components of the
project………………………………………………….8

9
3.1 Registration
………………………………………………………………………………...8

3.2: Admin
Login………………………………………………………………………………
…9

3.3: Patient
Login……………………………………………………………………………….
9

3.4: Patient Billing – Internal and


External…………………………………………9

4
Treatment…………………………………………………………………………
………………….9

4.1.1 Pharmacy –Center...


………………………………………………………………..9

4.2.2 OT Scheduling (Operation Theater)


………………………………………….9

5.0Requirements………………………………………………………………
………………………10

5.1 Hardware
requirements……………………………………………………………………..
10

5.2 Software
requirements……………………………………………………………………
….10

5.3 Project
Team………………………………………………………………………………
……….10

10
6.0 Work procedure of
project………………………………………………………………….11

6.1 Introduction
Part…………………………………………………………………………………
12

6.2 Administrative
Part………………………………………………………………………………12

7.0 Types of
Pages………………………………………………………………………………
……12

7.1 Static
Documents………………………………………………………………………
…………12

7.1.1
HTML………………………………………………………………………………
…………………12

7.2 Dynamic
Pages………………………………………………………………………………
…….13

8.0 Type of file in


project…………………………………………………………………………….
14

8.1 Query
………………………………………………………………………………………
……………14

8.2 For Connectivity with


Database……………………………………………………………15

8. 3: Servlet Files (access the information)


…………………………………………………16

11
8.4
Security……………………………………………………………………………
………………….17

9
CONCLUSION……………………………………………………………………
……………………..17

12
Hospital Management System
1: Title of the project:

The title of our project is Hospital Management

2: About the project:

Hospital Management System (HMS) manage whole working of hospital


it also show view of our
Hospital.
As the HMS has to have a foolproof security and a robust database, it has
been built on Me Server and jdk 1.6 and appropriate s/w, to requirements of
the large institutions.HMS is integrated software which caters to the
operational needs of each of the department. Apart from storing and
assembling data, it also assists in the decision-making process relating to
resource management. Easy and quick access to patient related information
is another most important aspect of the system.

2.1 Generic Technology keywords:

Databases, Programming

2.2 Specific Technology keywords:

Jdk 1.6 & mysql server

2.3 Project type keywords:

Analysis, Design, Implementation, Testing

3: Functional components of the project:

Following is a list of functionalities of the system.


1: Registration
2: Admin Login
3: Patient Login
4: Patient Billing – Internal and External
5: Test Report
6: Treatment
10: View

3.1 Registration:

When a Patient in hospital then it follow by following process:

13
1: Check by duty doctor.
2: after approval he fulfills the registration form.
3: Various inquiries about the patient like its admission, discharge,
medicine and tests, suggestions, claims
Details
4: Bed census
5: Patient movement in the hospital from one section to another.

3.2: Admin Login


As per requirement for the following for
1: make the Side Secure, Robust.
2: Maintain the system.

3.4: Patient Login


As per requirement for the following for
1: make the Side accessible by all people may be a part of administration or
not.

3.4: Patient Billing – Internal and External

It involves Posting into individual Accounts, Printing of Vouchers,


Preparation of Intermediate / Final Bills,
Generation of Income and Expenses Analysis, etc. in this patient pay all bills
against those facility use in
Hospital or provide by hospital to him.

4 Treatments

4.11 Pharmacy – Center:

This module deals with all medical items. Stock adjustments etc. Inquiry
screens include viewing daily
Stock position, sub storewide stock, etc about medicines, injections, special
OT specific apparatus, chemicals etc.

4.22 OT Scheduling (Operation Theater):

We have several Branches in a hospital but lass amount of so that we


manage a schedule
For all branches. So that we easily manage our hospital OT.

14
5.0Requirements:

5.1 Hardware requirements:

Number Description
1 PC with 80 GB hard disk and 1 GB
RAM

5.2 Software requirements:

Number Description Alternatives


1 Windows 98/2000/XP Linux
with MS office
2 MYSQL server SQL
2000/2005 /Oracle

5.3 Project Team:

5 students can complete this in 4-5 months if they work on it.

Milestones and Time management:

Number Milestone Milestone Time line Remarks


Name Description
1 Requirements Complete 2-3 days Attempt
Specification specification of should be
the system made to add
some more
relevant
functionality
2 Database Save all 5-7 days It is
creation entries and important to
data in finalize on
our database the
database
3 High-level and Listing down 7-9 days The scenarios
Detailed all possible should map
Design scenarios to the
requirement
specification
4 Implementatio Implementatio 10-12 days Start working
n of n of the main on a test plan
the frontend screen giving for the
of the system the login, Entire

15
screen that system. This
follows the test plan can
login be
Giving various Updated as
options. and when
new
scenarios
come to
mind.
5 Integrating the The update the 12-13 days
Frontend with database when
the a patient
database received his
report In short,
the system
should be
ready for
integration
testing.
6 Testing The system 14-15 days Another 2
should be weeks should
thoroughly be there to
tested handle any
issues found
during
Testing of the
system. After
that,
the final
demo can be
arranged

6.0 Work procedure of project:

The following steps will be helpful to start off the project.


Study and be comfortable with technologies such as MYSQL, Jdk1.6, my
eclipse, flash SERVER

1: Make a database of all tables and fill some sample data in the tables
which can prove helpful for running / testing of the project.

2: Create the FrontPage giving a brief description about the system and a
login box.

16
3: Create other subsystems like screens for various functions (new patient
entry, viewing existing patient details, printing different reports etc...)

This Project Divide into Two Parts:

1: Introduction Part (For all) 2: Administrative Part (For Official Work).

6.1 Introduction Part:


In this part:
1: Everyone can access our Hospital and he can get all
information About Us.
2: User can see the information about Hospital.
3: User cannot do any changes on Project.
4: user is Able to give his identity and His introduction as a
feedback.
5: All information saves in Database.

6.2 Administrative Part:

This part used by some Authorized person.

So that we click on project then user get a Login Form. After fulfill in
proper manner and if it satisfies it’s all condition. User can not access the
Administrative Part.

7.0 Types of Pages:


1: Static pages are in HTML.
2: Dynamic pages are in JSP

7.1 Static Documents


Static documents are fixed-content documents that are created and
stored in a server. The client can get only a copy of the document. In other
words, the contents of the file are determined when the file is created, not
when it is used. Of course, the contents in the server can be changed, but
the user cannot change them. When a client accesses the document, a copy
of the document is sent. The user can then use a browsing program to
display the document.

7.1.1 HTML
Hypertext Markup Language (HTML) is a language for creating Web
pages. The term markup language comes from the book publishing industry.
Before a book is typeset and printed, a copy editor reads the manuscript and
puts marks on it. These marks tell the compositor how to format the text. For
example, if the copy editor wants part of a line to be printed in boldface, he

17
or she draws a wavy line under that part. In the same way, data for a Web
page are formatted for interpretation by a browser.

Figure 1

Figure 2
7.2 Dynamic Pages:
A dynamic document is created by a Web server whenever a browser
requests the document. When a request arrives, the Web server runs an
application program or a script that creates the dynamic document. The
server returns the output of the program or script as a response to the
browser that requested the document.

Figure 3

18
Figure 4

8.0 Type of file in the project:


1: Dao : for query
2: Database: database connectivity
3: Servlet : access the information
4: VO : for Security

8.1 Query:

Java is most reliable language. For use the entity in program we use the
“dao” files by which system will understand that which entity use in which
type of form. And how user will access its value.

package com.hcl.dao;
import com.hcl.dao.*;
import com.hcl.database.*;
import com.hcl.vo.AdminLoginVo;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

public class AdminLogin {


public boolean selectItem(AdminLoginVo AdminLogin)throws Exception
{
Connection con=null;

String sql="select *from adminlogin where Username=? and


Password=?";
PreparedStatement ps=null;
ResultSet rs=null;

try
{
con=new Database().getConnectionData();
ps=con.prepareStatement(sql);
ps.setString(1,AdminLogin.getUsername());
ps.setString(2,AdminLogin.getPassword());
rs=ps.executeQuery();
while(rs.next())
{
return true;
}

19
}
catch(Exception e)
{
throw new Exception("Exception in select item"+e);

}
finally{
if(con!=null)
con.close();

}
return false;
}

private String AdminLogin() {


// TODO Auto-generated method stub
return null;
}
}

8.2 For Connectivity with Database:


In java connectivity with database we use “dao” files in this we use
“mysql” as a database. The coding of these pages like:

package com.hcl.database;
import java.sql.Connection;
import java.sql.DriverManager;
public class Database {

public Connection getConnectionData( ) throws Exception


{
Connection con=null;
try
{
Class.forName("com.mysql.jdbc.Driver");

con=DriverManager.getConnection("jdbc:mysql://localhost:3306/hospital","ro
ot","");
}
catch(Exception e)
{
System.out.print("hello" +e);
throw new Exception("Exception in geting connection");

20
}
return con;
}
}

8. 3: Servlet Files (access the information):

When we connect the program with data program with database then
question arise that
1: How data enter in database.
2: how save data will access by administrator when he/she require.
So that in java we use Servlet files. Hear we give example by which
administrator get the information about Patient.

package com.hcl.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.hcl.dao.*;
import com.hcl.patVO.viewVO;
import javax.servlet.RequestDispatcher.*;
public class viewServlet extends HttpServlet {

public void doGet(HttpServletRequest request, HttpServletResponse


response)
throws ServletException, IOException {

response.setContentType("text/html");
PrintWriter out = response.getWriter();

viewVO Doctor_entry_form=new viewVO();

try
{

ArrayList<viewVO> invalue=new
view1().selectItem1(Doctor_entry_form);
if(invalue!=null)
{

21
request.setAttribute("obj1", invalue);
RequestDispatcher
rd=request.getRequestDispatcher("DoctorRetrieve.jsp");
rd.forward(request, response);;

}catch(Exception e)
{
System.out.println(e);
}

8.4 Security:
Java is the most secure computer programming language because in
java there is no use of pointers like C and C++. And when we discuss about
security then we have to implement some more facilities so that in this
project we add “user name” and “password” two fields by which only those
authorize person use the whole project. So for providing the security we use
“vo” file so that only administrator access the project as well as update it...
The example of VO file is

package com.hcl.vo;

public class AdminLoginVo{

String Username;
String Password;
public String getUsername() {
return Username;
}
public void setUsername(String Username) {
this.Username = Username;
}
public String getPassword() {
return Password;
}
public void setPassword(String Password) {
this.Password = Password;
}
}

22
CONCLUSION:
This project (HMS) so much reliable and secure this project
contains static and dynamic pages which are work on server side as well as
client side. We can use it on single user system only and it can work on
server as well as personal desktop also.
The whole project is in java which is platform independent language so
that it can run on window xp, window vista, window NT, Window 7, as well as
Linux, linex, Unix and other operating system..

23
24
25

You might also like