Sie sind auf Seite 1von 58

PROJECT REPORT on

HOSPITAL MANAGEMENT SYSTEM

Submitted by:-

Imtiyaz ali Mohak kumar mukesh raghvendra : : :

1036513020 1036513027

1036513028 1036513038

MINI PROJECT lab Course: B.Tech IIrd year


Branch: Information technology

In THE GUIDANCE OF
Mr. tapan dey Session:(2011-12) Institute of Engineering & Management, Mathura

INSTITUTE OF ENGINEERING & MANAGEMENT MATHURA

Certificate
This is certify that Ashish Gupta , Rajendra Singh and Monika Singh has successfully completed the project, titled HOSPITAL MANAGEMENT SYSTEM in the partial fulfillment of course B.Tech. IIIrd year in Information Technology as per the curriculum UP Technical University, Lucknow. This is the record of their own work carried out by them under the guidance & supervision in the department.

A.B.Pandey
2

(Project Guide)

ABSTRACT OF PROJECT
LIFE is the biggest boon gifted by god. There is need for Treatment for saving our life. As the Horrible diseases grow up the new technology take action against them. The beauty of our Hospitals caring and treatement of patient with new technology make life more secure and easily solve the problem of big disease this is our main moto . Life LINE hospital is a medical boon we have new technology like

We have a no. of specialist who not only technically but also aware with new technology and disease.

We also give our as much as possible contribute in social welfare like Free camp eyes checking. Distribution of blanket etc in every winter.

We also sent a team of specialist doctor in colleges twice in month.

Acknowledgement

With great warmth and feelings, we deem it our proud privilege to have undertaken the present investigation under the able guidance of Mr. Sanjeev SIR, HOD, Deptt. Of Computer Science & Engg. We cannot adequately express the appreciation vast indebtedness and deep sense of gratitude that we feel for our most respected Coordinator Mr. Subodh Varshney, for his ongoing interest advice and constructive criticism and encouragement in completing his humorous task.

We also sincerely admit that our work would not have been crystallized into the fruit of reality without the firmly cooperation and encouragement of our Project Guide,Mr. A.B.Pandey.

Lastly and foremost we would like to thanks our dear Parents, who were always there to help us and encourage us. Thanks to all my group members well wishers for their peerless cooperation and everlasting support.

tABLE OF CONTENTS

SI. 1 2 3 4 5 6 7 8 9 10 11 COVER PAGE CERTIFICATE

PARTICULARS

PAGE No. 1 2 3 4 5 6-9 10 11 16-22 23 24-50

ABSTRACT OF PROJECT ACKNOWLEDGMENT TABLE OF CONTENT INTRODUCTION about the project REQUIRMENT SPECIFICATION FEASIBILITY STUDY SYSTEM ANALYSIS VERIFICATION AND VALIDATION IMPLEMENTATION AND DESCRIPTION
5

12 13

RESULT AND CONCLUSION REFERENCE/ BIBLIOGRAPHY

51 52

Introduction:ABOUT THE PROJECT

The software named as HOSPITAL MANAGEMENT SYSTEM is basically developed for patient registration and accounting in hospital. It is aimed to provide software solution to support smooth registration of patient and transaction of medicine all discharge detail related to patient This package has the following feature registration of patient admittance of patient Patient transaction of medicine Detail of total no. of admitted patient Detail of department ,Wards ,etc
6

Detail of total no. of admitted patient Detail of patient wardwise Total transaction of all detail related to the patient

Project Description:

This hospital management system has the software applications that are capable of handling the activities of following major departments: 1. 2. 3. 4. 5. 6. 7. Outdoor patient's Department Indoor Patient's Department Investigative Labs Billing Medical Stores Financial Accounting Payroll

This software package provided solution for the hospital management covering all the major functions of the hospital. This software was multiuser system operating on local area network (LAN) spread across the hospital.

Hospital Management System Registration


The Registration module is an integrated patient management system,which captures complete and relevant patient information. The system automates the patient administration functions to have better and efficient patient care process PATIENT REGISTRATION DETAILS Medical Alerts Details Appointment Scheduling Doctor's Schedule Summary Doctors Daily Schedule List Patient Visit History Medical Record Movements Appointments for Radiology tests Patient Visit SlipSponsorship Details It provides for enquiries about the patient, the patient's location, Admission, and appointment scheduling and discharge details. Furthermore, this system even takes care of package deals for a patient for a fixed cost. Medical Record keeps an abstract of clinical data about patients. It allows easy retrieval of medical records on patients.

REQUIRMENT SPECIFICATIONS

10

Following feature are distinguished requirement specification in order to meet client requirement .client is using package made in fox pro for entering data about patient registration from different windows.client package is not a multi user package and no report generation facility in this package .this is solely for data entry purpose . their requirement are to store all data from different windows into a centralize server,generate different report and data entry forms for sold medicine receipts entry of money received from patient .so these are the feature given by client to meet their requirement 1 entry of patient registration 2-different category of department 3-registration fee in delivered from the patient registration 4-entry of patient from different hospital and referred by different doctors 5-entry of admitted patient (outdoor patient->indoor patient) 6-admitted patient is categorized into to categories suchGENERAL and PRIVATE 7-entry of transaction is related to all transaction of medicine and discharge detail of patient 8-details of beds for general patient (bed) and private (rooms)

11

9-detail of discharge of particular patient admitted in hospital

FEASIBILITY STUDY:It means to carry out the detailed study of the existing system,find out the problem related to technical,operational staff,and economical field like cost by concerning the user of the study proposal of the proposed system (i.e.creditor ledger) is accepted by the management it will lead to the investigations of the existing system of problem area. Having recognized the problem,the next step to carry overall analysis of the system requirement in terms of its: The input data Type of processing needed The output reports This need a detailed study of the proposed system,which is carried out by the following technique

Interviews Questionnaires Observation

This would help to have an in depth study of the existing system and understand the Strength and weakness and requirement of the new proposed system.
12

Three phase of the feasibility study is used : Technical feasibility Economic feasibility Consumer behaviour

Technical Feasibility:-

Clearly we need not bother about the technical feasibility because there is so such utility available that can easily handle the problem stated above.

There are many options to choose from while making a utility or the analysis of Java source code. Firstly we need to define the implementing language.

For developing the under taken utility, the software requirements are:
13

Tomcat,MS ACCESS or SQL SERVER 2. Notepad 3. Windows xp Operating System


1.

All these are available in our institute I.E.M. For developing the under taken Static Reverse Engineering for Java source code, the hardware requirements are: 1. Processor - Intel or equivalent. 2. Operating System Windows xp 3. RAM - At least 256 MB The above hardware configuration with the operating system is technically feasible and common to a general computer system.

Economic Feasibility:The resources required to

implement the system are easily availably and economic in cost and the implement system produces fast, effective and accurate information which involves less human resources.

Customer Behavior:User (here a programmer)

nowadays wants fast utilities in order to work in a very efficient and effective manner.
14

The

utility

we

are

developing will help a user in his work. Our system is designed in such a way that a user can implement & use the system easily and can interact with the system easily. The Graphical environment of the system is easily understandable for a user and attracts the user.

FEASIBILITY ANALYSIS REPORT


Feasibility analysis report is formal document for management use and is prepared for system analyst during or after feasibility study. This report generally contains the following section.

Covering letterreport with

It is formally presented the

brief Description of the project problem along with recommendations to be consider.

Table of contentfeasibility study

It lists the section of

report Along with their page number.


15

Overview -It list present the overview of the


project problem along with the purpose and scope of the project

Description of the existing system A brief


description of The existing system

along with the purpose and scope Of the project.

System requirment
requirement, which

the system

are either derived from the existing system or from the discussion with the user, are presented in this section.

Description if proposed systempresents a general Description of the

It

proposed system.
16

Highlight its roll in Solving the problem. Adscription of output reports to be generated by The system is also present in the desired formats.

Devlopment plan- it present a detail plan


with the Starting and Completion dates for

different needed phases of SDLC. acomplementary planes also for hardware and software evaluation, purchase and installation.

Technical feasibility finding- It present


the finding of technical feasibility study along with recommendation.

Cost and benefit- The detailed finding of


cost and

17

benefits analysis are presented in this section. The saving and benefit are highlighted to justify economic feasibility of this project.

Operation feasibility finding- It


present the finding of oprational feasibility along with the human resource requirement to implement system.

Alternative considered/rejected
the different altrenative that an analyst usually consider andreject during feasibility study should also be

include in the feasibility study report these alternative are require to be discussed because they show how the sugg18

-ested system is the best alternative to solve the Problem.

SYSTEM ANALYSIS:. Systems Development can generally be thought of as having two major components: Systems Analysis and Systems Design. Systems Design is the process of planning a new business system or one to replace or complement an existing system. But before this planning can be done, we must thoroughly understand the old system and determine how computers can best be used (if at all) to make its operation more effective. Systems analysis, then, is the process of gathering and interpreting facts, diagnosing problems, and using the information to recommend improvements to the system.

2.1 PROPOSED METHODS AND PROCEDURE 2.2.1 Summary of Improvements In this section, we discuss the improvements, which are held after developing the system. And we consume how we will achieve the functional
19

improvements. There are various factors due to which we can show the improvements, some of the improvements are as follows1:The

first improvements that comes, which is it is less time consuming. Due to new system, there is less paper work. 2:The most striking improvement is that it increases the accuracy and makes data more validate

2.2.1.2. Improvement to Existing Capability:There are various improvements that are intended to the existing capability. Since at beginning the work that are done, is totally manually but when the system is computerized then it becomes a time saving technique and the all the records are maintained in the very less time than the manual system and there may be taken a short idea in few minute of all work and we also find the various patient available in hospital that can not be done in manually work and for this work there will be various register that are maintained. The error rate is very low. Some point are as follow:-

:Gather information about patient in hospital.


20

:Document the specific details of every aspect of the project, focusing on design and Functionality 3:Execute the project according to the specification document created during the Design stage.
2

2.3 DETAILED CHARACTERISTICS: 2.3.1:- Specific Performance Requirements Describe the specific performance requirements for the system as a whole and for major functions or subsystems within it. Delineate the requirements on which the system design will be based. Include a quantitative presentation of requirements, such as the number of events that must be processed, maximum allowable time from query to receipt of requested information, and flexibility required to accommodate changing user requirements. 2.3.1.1:- Accuracy and Validity Describe the accuracy requirements to be imposed on the system. Accuracy requirements of mathematical calculations and data must be considered

2.3.1.2:- Timing Describe the online and/or batch timing requirements to be imposed on the system. Consider the following requirements:
21

1:Response

time from receipt of input data to availability of system products. 2:Response time to queries and updates 3:Sequential relationship of functions 4:Priorities imposed by types of input and changes in modes 5:Any deviations from specified response times for peak load periods or contingency operations, as applicable

2.3.1.3:- Capacity Limits Specify the maximum numbers of transactions, storage requirements, concurrent users, or any other quantifiable information about capacity requirements placed on the system. Identify changes to capacity limits resulting from varying modes of operation. Include peak load limits and issues. 2.3.3:- External interface requirements In this subsection give the details of the following

2.3.3.1:- Hardware interfaces MINIMUM HARDWARE Processor HDD


22

Intel 10 GB.

RAM

256 MB.

Printer Keyboard Mouse Monitor LCD 19

MINIMUM SOFTWARE
1-Front End 2-Back End Access 3-Operating System :::HTML SQL Server or MS Windows 7

2.4:- Functional requirements Describe by individual function the major functional processing steps. This may be done using graphic representation (e.g., flowchart and DFD) or descriptive use cases. Provide enough detail to support development of design specifications

23

2.4.1:- System Flow Charts The production flowchart is a visual representation of the content of the sequence of the content of your product. It show what comes first, second, third etc. as well as your audience will do, if anything, and what will happen when they have done it. A completed flowchart organizes your topics; strategies, treatments & options into a plan from which you can work out the details of what each screen, page, or shot will look like.

2.4.2:- Data flow diagram

The Data Flow Diagram (D.F.D.) was first developed by Larry Constantine as a way of expressing system requirements in a graphical form. D.F.D. represents what data flow rather than how they are processed. D.F.D. knows as bubble chart, has a purpose of clarifying system requirements and identifying major transformation that will become the programs in system designs. A D.F.D. consists of a series of bubbles joined by lines. The bubble represents data transformation & line represents the data flow in the system.
24

D.F.D. Symbols 1.A square defines a source or destination of system data. 2.An arrow identifies data flow, data in motion. 3.A circle or bubble represents the process. 4.An open rectangle represents data source. It does not depend on hardware, software, data structure of file organization.

Hospital Information Hospital System Display Informatio n

0-LEVEL DFD

25

Choose Login Destinati on

Choos e Hospi tal

Submit

Regist er Yourse lf

LEVEL 1 DFD

Verification And Validation

In verification and validation we are most concerned with the correctness of the software .The terms verification and validation often used interchangeable but they have different meaning. Verification is the process of determining whether or not the products of given phase of s/w development fulfill the specification established during the previous phase. Verification activities include proving, testing and reviews. Validation is the process of evaluating s/w at the end of the s/w development to ensure compliance with the s/w
26

requirements. Testing is 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 the s/w development are inspection ,reviews ,and testing. The V&V plan identifies the different phases and specifies how these task contribute to the project V&V goals. The two major V&V projects are testing and inspection. Testing and inspection. Testing is an activity that can be generally performed on code . It is an important activity. Inspection is a more general activity that can be applied to any work product, including code.

IMPLEMENTATION AND DESCRIPTION


Coding for front pages:
Front.html
<HTML ><HEAD><TITLE>Hospital Management system </TITLE> <LINK href="gb_ie.css" type=text/css rel=stylesheet></HEAD> <BODY leftMargin=2 topMargin=2> <form name=f1 action=f.jsp method=get/post>
27

<TABLE cellSpacing=0 cellPadding=0 width=800 border=0><TBODY> <TR><TD vAlign=top align=left colSpan=2><IMG height=71 src="login_logo.jpg" width=472></TD> <TD vAlign=top align=left><IMG height=71 src="login_pineapple_top.jpg" width=530></TD></TR> <TR> <TD vAlign=top align=middle width=419 height=529><BR><BR><BR> <TABLE class=box_border height=208 cellSpacing=0 cellPadding=0 width=365 border=0> <TBODY><TR class=box_caption> <TD width=11></TD> <TD>Login</TD><TD width=11></TD></TR> <TR><TD width=11></TD> <TD><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY><TR> <TD colSpan=3><SPAN class=login_box_error></SPAN></TD></TR> <TR class=box_item> <TD class=box_prompt width="40%"> Name:&nbsp;&nbsp;</TD> <TD width="34%"><input type=text name=t1 > </TD> <TD width="26%"></TD></TR>
28

<TR class=box_item> <TD class=box_prompt width="40%">Password:&nbsp;&nbsp;</TD> <TD width="34%"><input type=password name=t2></TD></TR> <TR class=box_item> <TD align=center colSpan=2> <INPUT type= image height=35 width=73 src="signin.gif"> </TD> <TD width="26%"></TD></TR></TBODY></TABLE></TD> <TD width=11></TD></TR></TBODY></TABLE></FORM> <TD vAlign=top align=left colSpan=2><IMG height=450 src="hospital-01.jpg" width=530></TD></TR> </TBODY></TABLE></BODY></HTML>

Home.html <html> <head><title>frame</title></head>


29

<frameset rows="15%,*"> <frame src="header.html" name=head> <frameset cols="80%,*"> <frame src="left.html" name=left> <frame src="right.html" name=right> </frameset></frameset></head> </html> Header.html <html> <head><title>title</title></head> <body bgcolor="#2B547E"> <font size="55" face=Jokerman MS color=#00FFFF> <marquee>Welcome to Patient Information System </marquee> </font></body> </html>

Left.html
<html> <head><title>product</title></head><br>
30

<body bgcolor="#717D7D"> <img src="montagu.jpg" align=right width ="250" height="250"> <img src="hospital.jpg" align=right width ="250" height="250"> <h1 ><font color="#810541" face="Script MT Bold" size=14>Please click on one link</font></h1> <blink><font size=5><ul> <li><a href=patient.html ><blink>Patient Registration</blink></a></li><br> <li><a href=pr.html ><blink>PatientAccess</blink></a></li><br> <li><a href=pd.html ><blink>PatientDelete</blink></a></li><br> <li><a href=doctor.html><blink>Doctor Entry</blink></a></li><br> <li><a href=dr.html><blink>Doctor Access</blink></a></li><br> <li> <a href=dd.html><blink>Doctor Delete</blink></a></li><br> <li><a href=bed.html><blink>Bed Entry</blink></a></li><br> <li><a href=br.html><blink>Bed Access</blink></a></li><br> <li><a href=bd.html><blink>Bed Delete</blink></a></li><br></ul> </font></blink>
31

<body> </html>

Right.html
<HTML> <HEAD><TITLE>right</TITLE> <STYLE type=text/css>P { FONT-SIZE: 20px; COLOR: #ffffff; FONT-FAMILY: "comic sans MS" }</STYLE></HEAD> <BODY bgColor=#246479> <P font-size="20">Welcome to our user to search for the Patient from our System here you will get the various information just ahead of one click. please click one of the <font color="Yellow" face="Vivaldi"> <blink>Link</font></blink> which are at your left screen. </P> <img src="hospital460.jpg" align=right width ="200" hight="200"> </BODY> </HTML>
32

Patient.html
<html> <head><title>Patient Registration form </font></title> </head><h1> <br><a href= left.html align=left>Back</a></br></h1> <body bgcolor=silver><center><img src="17hospital-600.jpg" align=right width ="250" height="300"></td> <form name=f1 action=patient.jsp method=get/post> <font face=Castellar color=red size=36><br> Patient Registration form</u> </font></center></br><font color=green size=8> <br><pre> <b>Id</b> =t1></pre></br> <pre> <b>Name</b> =t2></pre> <br><pre> cols=20 name <input type="text" name <input type="text" name <textarea rows=3

<b>Address</b>

33

=t3></textarea></pre></br> <pre> <b>Gender</b> <option> Male</option> <select name=t4>

<option> Female</option></select></pre> <br><pre> <b>Date Of Birth</b><input type=text name =t5></pre></br> <br><pre> <b>Phone</b> =t6></pre></br> <br><pre> <b>COUNTRY</b> ><option></option> <option value="America ">America <option value="Australia">Australia <option value="Bangladesh">Bangladesh <option value="Bhutan">Bhutan <option value="British ">British <option value="China">China <option value="France">France <option value="Germany">Germany <option value="India">India <option value="Italy">Italy <option value="Japan">Japan <option value="Korea">Korea<option value="Malaysia">Malaysia </select></pre><br> <br><pre> <b>Disease</b> =t8></pre></br> <input type="text" name <input type=text name <select name=t7

<br><pre> <b>Careing Doctor</b><input type="text" name =t9></pre></br>


34

<br><pre> <input type=submit value=submit > <input type="reset"></pre><br> </font></body> </html>

Pr.html <html> <head><title>pat2</title></head><h1> <br> <a href= left.html align=left>Back</a></br></h1> <body bgcolor=#3EA99F> <form name=f1 action=pr.jsp method=get/post> <center><font color=#B93B8F size=18>Access Information Of Patient</font><br><br><font color=#7D1B7E size=18> First You Enter The Patient Name:</font><br><br><br><font color=#437C17> <b><h1>NAME:</b><input type=text name=t1></h1><br><br>
35

<pre> <input type=submit value=submit> type=reset></pre> </font></center></body> </html>

<input

Pd.html

<html> <head><title>pat2</title> </head><h1> <br> <a href= left.html align=left>Back</a></br></h1> <body bgcolor=#387C44> <form name=f1 action=pd.jsp method=get/post>

36

<center><u><font color=#151B54 size=24>DELETE INFORMATION OF DOCTOR</u></font><br><br><font color=ajay size=18> Enter the Name Of Patient Which you Want to delete</font><br><br><br><font color=#43C6DB> <b><h1>DOCTOR NAME: </b> name=t1></h1><br><br> <input type=text

<pre> <input type=submit value=submit> <input type=reset></pre> </font></center></body> </html>

Doctor.html <html> <head><title> Registration Form </title></head><h1> <br> <a href= left.html align=left>Back</a></br></h1> <body bgcolor="#3EA99F"><center><font size=300pt><u> color=#7E2217

<img src="Doctor Assessing Young Boy.jpg" align=right width ="250" height="300"></td><form name=f1 action=doctor.jsp method=get/post>
37

<em>Doctor Registration Form<em> </u></font></center><br> <font color=#C12869 size=10> <pre><b>ID</b> <p><b>Name</b> <input type=text name=t1 ></p> <input type=text name=t2 ></p>

<b>Department</b> <input type=text name=t3 ></p> <b>Address</b> <b>Phone</b> <input type=text name=t4 ></p> <input type=text name=t5></p> <input

<p> <input type="submit" value=submit > type="Reset"></pre></body> </html>

Dr.html <html> <head><title>pat2 </title></head><h1> <br> <a href= left.html align=left>Back</a></br></h1> <a href= left.html align=left></a></br></h1> <body bgcolor=#3EA99F>
38

<form name=f1 action=dr.jsp method=get/post> <center><font color=#B93B8F size=18>Access Information Of Doctor</font><br><br><font color=#7D1B7E size=18> First You Enter The DOCTOR Name:</font><br><br><br><font color=#437C17> <b><h1>NAME:</b><input name=t1></h1><br><br> <input type=submit value=submit> type=reset> </font></center></body> </html> type=text <input

Dd.html <html> <head> <title> pat2 </title></head><h1> <br> <a href= left.html align=left>Back</a></br></h1> <body bgcolor=#387C44> <form name=f1 action=dd.jsp method=get/post> <center><u><font color=#151B54 size=24>DELETE INFORMATION OF DOCTOR</u></font><br><br><font color=#348781 size=18>

39

Enter the Name Of DOCTOR Which you Want delete</font><br><br><br><font color=#43C6DB> <b><h1>DOCTOR NAME name=t1></h1><br><br> </b>

to

<input type=text <input type=reset>

<input type=submit value=submit> </font></center></body> </html>

Bed.html
<html> <head> <title>Registration form</title></head><h1> <br> <a href= left.html align=left>Back</a></br></h1> <body bgcolor=silver> <img src="hospital-bed1.jpg" align=right width ="250" height="300"></td> <form name=f1 action=bed.jsp method=get/post> <font color=green size=10>
40

<center> <u> Bed Entry </u></center> <br><pre> </br><br> <b>BedName</b> <input type="text" name =t2></br> <b>ID</b> <input type="text" name =t1>

<br><b>RatePerDay</b> <input type="text" name =t3></br> <br> <b>BedType</b> </br> <input type="submit" value=submit> type="Reset"></pre> </a></br></body> </html> <input <input type="text" name =t4>

Br.html
<html> <head> <title>BED RETRIVE</title> </head><h1> <br> <a href= left.html align=left>Back</a></br></h1> <body bgcolor=#3EA99F><form name=f1 action=br.jsp method=get/post><center>
41

<font color=#B93B8F size=18>Access Information Of BED</font> <br><br> <font color=#7D1B7E size=18> First You Enter The BED ID:</font> <br><br><br><font color=#437C17> <b><h1>ID:</b> <input type=text name=t1></h1><br><br> <pre> <input type=submit value=submit> type=reset></pre> </font> </center> </body> </html> <input

Bd.html
<html> <head> <title>pat2</title> </head><h1> <br> <a href= left.html align=left>Back</a></br></h1> <body bgcolor=#387C44>
42

<form name=f1 action=bd.jsp method=get/post><center> <u> <font color=#151B54 size=24>DELETE INFORMATION OF BED</u></font><br><br><font color=pinl size=18> Enter the Name Of BED Which you Want to delete</font><br><br><br><font color=#43C6DB><b><h1>ID: </b> <input type=text name=t1></h1><br><br> <pre> <input type=submit value=submit> type=reset></pre> </font> </center> </body> </html> <input

Coding for Back End Pages:

patient.jsp

<%@page import="java.sql.*"%> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");


43

Connection con=DriverManager.getConnection("jdbc:odbc:patient"); PreparedStatement st=con.prepareStatement("Insert into patient values(?,?,?,?,?,?,?,?,?)"); String z1=request.getParameter("t1"); String z2=request.getParameter("t2"); String z3=request.getParameter("t3"); String z4=request.getParameter("t4"); String z5=request.getParameter("t5"); String z6=request.getParameter("t6"); String z7=request.getParameter("t7"); String z8=request.getParameter("t8"); String z9=request.getParameter("t9"); st.setString(1,z1); st.setString(2,z2); st.setString(3,z3); st.setString(4,z4); st.setString(5,z5); st.setString(6,z6); st.setString(7,z7); st.setString(8,z8);
44

st.setString(9,z9); st.execute(); con.close(); out.println("<font color=#C35617 size=14><center>Your Record saved successfully</center></font>"); %> <a href= left.html align=left>Back</a>

Pd.jsp
<% @page import="java.sql.*"%> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:patient"); PreparedStatement st=con.prepareStatement("delete from patient where name=? "); String z1=request.getParameter("t1");

45

st.setString(1,z1); st.executeUpdate(); out.println("<font size=14 color=#7D2252><br<br><br><center>RECORD DELETED SUCCESSFULLY</center><font> "); con.close(); %><a href= left.html align=left>Back</a>

Pr.jsp
<% @ page import="java.sql.*,java.io.*" %> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:patient"); PreparedStatement st=con.prepareStatement("select * from patient where name=? " ); String s1=request.getParameter("t1");
46

st.setString(1,s1); ResultSet rs=st.executeQuery(); %> <table border=1 width=691 align=center> <tr> <td width="92"> <b><font size="4" color="#817339" face="Algerian">ID</font></b></td> <td width="91"><b><font size="4" color="#817339" face="Algerian">NAME</font></b></td> <td width="181"><b><font size="4" color="#817339" face="Algerian">ADDRESS</font></b></td><td width="92"><b><font size="4" color="#817339" face="Algerian">Gender</font></b></td> <td width="92"><b><font size="4" color="#817339" face="Algerian">DateOfBirth</font></b></td> <td width="92"><b><font size="4" color="#817339" face="Algerian">Phone</font></b></td><td width="92"><b><font size="4" color="#817339" face="Algerian">Country</font></b></td><td width="92"><b><font size="4" color="#817339" face="Algerian">Disease</font></b></td> <td width="92"><b><font size="4" color="#817339" face="Algerian">Careing Doctor</font></b></td></tr><% while(rs.next()) { // out.println(rs.getString(1)); %><tr> <td width="91"><%= rs.getString(1)%>&nbsp;</td> <td width="82"><%= rs.getString(2)%>&nbsp;</td> <td width="181"><%= rs.getString(3)%>&nbsp;</td>
47

<td width="147"><%= rs.getString(4)%>&nbsp;</td> <td width="147"><%= rs.getString(5)%>&nbsp;</td> <td width="147"><%= rs.getString(6)%>&nbsp;</td> <td width="147"><%= rs.getString(7)%>&nbsp;</td> <td width="147"><%= rs.getString(8)%>&nbsp;</td> <td width="147"><%= rs.getString(9)%>&nbsp;</td> </tr> <% } %> <a href= left.html align=left>Back</a> </table>

Doctor.jsp
<%@page import="java.sql.*"%> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:doctor"); PreparedStatement st=con.prepareStatement("insert into doctor values(?,?,?,?,?)");
48

String z1=request.getParameter("t1"); String z2=request.getParameter("t2"); String z3=request.getParameter("t3"); String z4=request.getParameter("t4"); String z5=request.getParameter("t5"); st.setString(1,z1); st.setString(2,z2); st.setString(3,z3); st.setString(4,z4) ;st.setString(5,z5); st.execute(); con.close(); out.println("<font color=#C35617 size=14><center>Your Record saved successfully</center></font>"); %><a href= left.html align=left>Back</a>

Dd.jsp <%@page import="java.sql.*"%> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:doctor"); PreparedStatement st=con.prepareStatement("delete from doctor where name=? ");
49

String z1=request.getParameter("t1"); st.setString(1,z1); st.executeUpdate(); out.println("<font size=14 color=#7D2252><br<br><br><center>RECORD DELETED SUCCESSFULLY</center><font> "); con.close(); %><a href= left.html align=left>Back</a> Dr.jsp <%@ page import="java.sql.*,java.io.*" %> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:doctor"); PreparedStatement st=con.prepareStatement("select * from doctor where name=? " ); String s1=request.getParameter("t1"); st.setString(1,s1); ResultSet rs=st.executeQuery();%><table border=1 width=691 align=center><tr><td width="92"><b><font size="4" color="#817339" face="Algerian">ID</font></b></td><td width="91"><b><font size="4" color="#817339" face="Algerian">NAME</font></b></td><td width="181"><b><font size="4" color="#817339" face="Algerian">Department</font></b></td> <td width="181"><b><font size="4" color="#817339" face="Algerian">ADDRESS</font></b></td> <td width="181"><b><font size="4" color="#817339" face="Algerian">Phone</font></b></td>
50

</tr> <% while(rs.next()) { // out.println(rs.getString(1)); %> <tr> <td width="91"><%= rs.getString(1)%>&nbsp;</td> <td width="82"><%= rs.getString(2)%>&nbsp;</td> <td width="181"><%= rs.getString(3)%>&nbsp;</td> <td width="147"><%= rs.getString(4)%>&nbsp;</td> <td width="147"><%= rs.getString(5)%>&nbsp;</td> </tr> <% }%></table><a href= left.html align=left>Back</a>

Bed.jsp <%@page import="java.sql.*"%> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:bed"); PreparedStatement st=con.prepareStatement("insert into bed values(?,?,?,?)");
51

String z1=request.getParameter("t1");String z2=request.getParameter("t2"); String z3=request.getParameter("t3");String z4=request.getParameter("t4"); st.setString(1,z1);st.setString(2,z2);st.setString(3,z3); st.setString(4,z4);st.execute();con.close(); out.println("<font color=#C35617 size=14><center>Your Record saved successfully</center></font>"); %><a href= left.html align=left>Back</a>

Bd.jsp

<%@page import="java.sql.*"%> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:bed");


52

PreparedStatement st=con.prepareStatement("delete from bed where ID=? "); String z1=request.getParameter("t1"); st.setString(1,z1); st.executeUpdate(); out.println(" <font size=14 color=#7D2252><br<br><br><center>RECORD DELETED SUCCESSFULLY</center><font>"); con.close(); %><a href= left.html align=left>Back</a> Br.jsp

<%@ page import="java.sql.*,java.io.*" %> <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:bed"); PreparedStatement st=con.prepareStatement("select * from bed where ID=? " );String s1=request.getParameter("t1"); st.setString(1,s1);ResultSet rs=st.executeQuery();%> <table border=1 width=691 align=center> <tr> <td width="92"><b><font size="4" color="#817339" face="Algerian">ID</font></b></td> <td width="91"><b><font size="4" color="#817339" face="Algerian">BEDNAME</font></b></td>

53

<td width="181"><b><font size="4" color="#817339" face="Algerian">RatePerDay</font></b></td> <td width="92"><b><font size="4" color="#817339" face="Algerian">BedType</font></b></td> </tr><% while(rs.next()) { // out.println(rs.getString(1));%> <tr> <td width="91"><%= rs.getString(1)%>&nbsp;</td> <td width="82"><%= rs.getString(2)%>&nbsp;</td> <td width="181"><%= rs.getString(3)%>&nbsp;</td> <td width="147"><%= rs.getString(4)%>&nbsp;</td> </tr><% } %><a href= left.html align=left>Back</a> </table>

f.jsp
<%@page import="java.sql.*"%> <%

54

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con=DriverManager.getConnection("jdbc:odbc:f"); PreparedStatement st=con.prepareStatement("Select * from f where Name=? and password=?"); String z1=request.getParameter("t1"); String z2=request.getParameter("t2"); st.setString(1,z1); st.setString(2,z2); ResultSet rs=st.executeQuery(); if(rs.next()) { response.sendRedirect("home.html"); } else out.print("<br><br><br><br<br><br<br><br><br<br><br>< br<br<br<br><font size=24 color=blue><center>Name and password incorrect</center></font>"); con.close(); %><a href=front.html align=left>Back</a>

RESULT AND CONCLUSION

6.1 SCOPE
55

The forces of deregulation, globalization and advancing technology have increased the competitive pressure on the Hospital . 1.As we know that information give user exact knowledge of patient . 2.For this There are no of patient here. This project maintain all the patient records in the Hospital We have seen that maintaining and enhancing doctor and patient relationship. It is a strategy to maintain about attendance of the patient. Our s/w provides flexibility it means that through this project patient registor,doctor available and the bed no. 6.2 CONCLUSION:

The project seems to be quiet satisfactory as it is fulfilling the requirement of users it can be used by any Hospital which help to get exact information . 6.3 LIMITATION: Everything in this world irrespective of its walk of life has its pros &cons. There is any dark side to any work so as to compensate the good side of it. Thus the limitation it has is not the facility of getting print out ,this is only for one user.

REFRENCES/BIBLIOGRAPHY
56

1.Teach Your Self Oracle 8 in 21 days Techmedia

4th

2.The complete reference Publication HTML 3.Introduction of Web Technology

TMH

C.Xavier

3.Database management System Publication

TMH

CD ROM Content
1.

front end pages code.

2.Back end pages code. 3.Tomcat server. 4.Java Software 5.Sql server also.

57

58

Das könnte Ihnen auch gefallen