Medi-Tracker

CONTENTS Abstract 1. Introduction 1.1. Purpose of the project 5 1.2. Problem in existing system 1.3. Solution of these problems 6 1.4. Scope of the project 2. System Requirements 2.1. S/w Requirements 2.2. H/w Requirement s 3. Project Analysis 3.1UML Diagram Representation 10 3.2. E-R Diagrams 3.3. Data Dictionary 4. Literature Survey 4.1. About Java 29 4.2. About JSP 4.3. About Oracle 5. System Design 5.1. Introduction 5.2. Types of Design 5.3. Normalization Design 5.4. Database Design 6. Source Code 7. System Testing 7.1. Testing Fundamentals 79 7.2. White box Testing 7.3. Black Box Testing 7.4. Testing Strategies. 8. Data Entry Screens 2 4 5 6 7 8 8 9 26 27 28 30 31 32 33 33 34 34 36 78 79 79 80 83

DEPT OF CSE, GPREC, KNL

Page 1

Medi-Tracker
9. Conclusion 10. Future Enhancements 11. Bibliography 106 108 110

ABSTRACT

DEPT OF CSE, GPREC, KNL

Page 2

Medi-Tracker

ABSTRACT: Every hospital needs an online system whereby it can accommodate the patients comfortably and avoid any confusion to the doctors regarding their work. There should be a system where the patients are categorized under insurance policy and non policy holders and the system helps the hospital management to claim the bills from concerned insurance companies. All these needs and much more are fulfilled in MediTracker. MediTracker is useful to record patient’s details along with the compliant. It also records the inpatient details and outpatient details and arranges the appointment of doctors. MediTracker also provides the management reports like schedules, appointments of doctors, inpatients, insurances and discharges. And also used to generate bills dynamically for the discharged patients etc. The administrative user can create new users and change their passwords. He can add the doctor’s information as well as new doctor’s details. He can add information related to inpatients, outpatients, rooms availability, billing and insurance information. The administrator can view the management reports. The doctors can change their own passwords. He can view his own appointments and information of inpatients and outpatients for any day. Manager is another person who manages the activities in the hospital. He can add a new doctor to the list. He can also add new room information. He can view the information of doctors, rooms and patients. An accountant can add the information related to patient insurances and view all the reports. He can view the details of inpatients, outpatients and discharged patient’s information. He also collects the bill amount from the patient and enters it into the system. MediTracker thus ensures smooth operation of the hospital management tasks as well as offering facility to the patients.

DEPT OF CSE, GPREC, KNL

Page 3

KNL Page 4 . GPREC.Medi-Tracker INTRODUCTION DEPT OF CSE.

outpatients and rooms in a Hospital. as well as employee details. It provides the interface to users in a graphical way to manage the daily transactions as well as historical data. 1.1. It is very difficult to maintain historical data. Current system is a manual one in which users are maintaining ledgers. This project is developed using Java Programming Language under Windows. INTRODUCTION: 1.. Also provides the management reports like schedules. 1. appointments of doctors etc. Also this application provides an interface to users to view the details like the schedules. Purpose of the project: MediTracker is an online software application which fulfills the requirement of a typical management of details of doctors. 2. appointments of doctors and discharge of inpatients etc. KNL Page 5 . Doctors details. insurances and discharges etc. The aim of this application is to reduce the manual effort needed to manage transactions and historical data used in a hospital.Medi-Tracker 1. Also regular investments need to purchase stationary every year.2. appointments of doctors and inpatients. inpatients. Problems in existing system: Current system is a manual one in which users are maintaining books to store the information like Patients details. Disadvantages: The following are the disadvantages of current system. Available rooms and insurance facilities. It is difficult to maintain important information in books. books etc to store the information like Inpatient’s details. GPREC. More manual hours need to generate required reports DEPT OF CSE. outpatient’s details. It is very difficult to maintain historical data.

They can easily use the tool that decreases manual hours spending for normal things and hence increases the performance. KNL Page 6 . It is tedious to manage historical data which needs much space to keep all the previous year’s ledgers. No specific training is required for the employees to use this application. This application keeps the data in a centralized way which is available to all the users simultaneously. As the data is centralized it is very easy to fix an appointment of doctor with a patient immediately. Centralized database helps in avoiding conflicts 5. Easy to use GUI that does not requires specific training. Daily admissions of patients are to be entering into different books immediately to avoid conflicts which are very difficult. service. or result. Easy to manage all the daily admissions of patients and appointments of doctors. service. 1. or result with the specified features and functions. books etc 4. GPREC.3. Scope of the project: Project Scope "The work that needs to be accomplished to deliver a product. 1." Product Scope "The features and functions that characterize a product. Advantages: The following are the advantages of proposed system: 1. DEPT OF CSE.Medi-Tracker 3. It is very easy to manage historical data in database.4. Solutions for these problems: Proposed system is a software application which avoids more manual hours that need to spend in record keeping and generating reports. 2. Easy to manage historical data in a secure manner 4. Can generate required reports easily 3.” This system can be used as an application for the hospitals with a Full-featured Web-based medical billing and hospital management software for solo or group practice.

KNL Page 7 . GPREC.Medi-Tracker SYSTEM REQUIREMENTS DEPT OF CSE.

0. GPREC.4. HTML. SYSTEM REQUIREMENTS: 2. KNL Page 8 .1 JSP/ Servlets. GHz 256 MB to 512 MB 40GB to 80GB 104 keys DEPT OF CSE. J2SDK1. Hard ware Specification: Processor Processor Speed RAM Hard Disk Key Board : : : : : Intel P-IV based system 2. JAVA SCRIPT 2.2.1 Software Requirements: Database Server Front end : : : ORACLE 10G Apache Tomcat 4.Medi-Tracker 2.

KNL Page 9 . GPREC.Medi-Tracker PROJECT ANALYSIS DEPT OF CSE.

PROJECT ANALYSIS: 3. GPREC. KNL Page 10 .Medi-Tracker 3. UML Diagrams: Unified Modeling Language (UML) is a standardized general-purpose modeling language in the field of software engineering. the Object Management Group. UML includes a set of graphic notation techniques to create visual models of softwareintensive systems: The UML is a language foR ♦ Visualizing ♦ Specifying ♦ Constructing ♦ Documenting These are the artifacts of a software-intensive system.1. The standard is managed. and was created by. A conceptual model of UML: The three major elements of UML are DEPT OF CSE.

KNL Page 11 .Medi-Tracker ♦ The UML’s basic building blocks ♦ The rules that dictate how those building blocks may be put together. GPREC. Use-case diagram for Administrator: DEPT OF CSE.

KNL Page 12 .Medi-Tracker Doctors Patients login rooms discharge users View Reports insurance Patients Administrator appointment appointment rooms Add discharge insurance users Doctors DEPT OF CSE. GPREC.

KNL Page 13 .Medi-Tracker Use-case diagram for Doctors: Doctors Patients login discharge View Reports appointment Doctor Add appointment DEPT OF CSE. GPREC.

KNL Page 14 .Medi-Tracker Use-case diagram for manager: Doctors Patients login discharge View Reports Rooms manager insurance appointment Add Doctors Rooms appointment DEPT OF CSE. GPREC.

GPREC. KNL Page 15 .Medi-Tracker Use-case diagram for Accountant: Patients login discharge View Reports Accountant Add insurance insurance DEPT OF CSE.

getReportList(). Manager username pswd getDoctorsList(). getPatientsList(). getReportList(). Patients username pswd getDoctorsList(). getReportList(). KNL Page 16 . Reports auth Number. getPatientsList(). Doctors username pswd getDoctorsList(). list List. addRooms(). addRoom(). getPatientsList(). getDoctorsList(). addAppointment(). addInsurance(). logout(). logout(). logout(). getReportList().Medi-Tracker Class Diagram: Administrator username pswd getDoctorsList(). addInsurance(). addAppointment(). addDoctorst(). getReportList(). getAppointment(). logout(). getPatientsList(). Accountant username pswd getDoctorsList(). GPREC. getPatientsList(). getPatientsList(). DEPT OF CSE. logout(). getReportList().

Store in database/ users-view reports send request to db stored successful/ forward results storing complet/ retrieve data DEPT OF CSE. KNL Page 17 .Medi-Tracker Sequence Diagram of Administrator: Server Administrator userNam/pswd Database verify login success verficat-completed Add/View Doctors-patients appointments-rooms discharges-insurance. GPREC.

KNL Page 18 . GPREC.Medi-Tracker Sequence Diagram of Doctor: Server Doctor userNam/pswd Database verify login success verficat-completed View Doctors-patients discharges-insurancereports-add/view Store in database/ appointments send request to db stored successful/ forward requested data storing complet/ retrieve data DEPT OF CSE.

GPREC.Medi-Tracker Sequence Diagram of Manager: Server Manager userNam/pswd Database verify login success verficat-completed View Doctors-patients appointments-rooms discharges-insurancereports Store in database/ Add-Doctors-rooms send request to db stored successful/ forward results storing complet/ retrieve data DEPT OF CSE. KNL Page 19 .

KNL Page 20 . GPREC.Medi-Tracker Sequence Diagram of Account: Server Accountant userNam/pswd Database verify login success View patients-discharges -insurancereports Add-insurance stored successful/ forward results verficat-completed Store in database/ send request to db storing complet/ retrieve data DEPT OF CSE.

KNL Page 21 .Medi-Tracker Activity diagram for Administrator: Login view /add doctors details view /add patientsdetails view /add appointments details view /add rooms details view /add discharge details view /add insurance details view reports DEPT OF CSE. GPREC.

GPREC. KNL Page 22 .Medi-Tracker Activity diagram for Doctor: Login View doctors details View patients details View/add appointment details View discharge details View reports View reports DEPT OF CSE.

Medi-Tracker
Activity diagram for manager:

Login

View/add doctors details

View patients details

View appointment details

View/add room details

View discharge

View insurance

View reports

DEPT OF CSE, GPREC, KNL

Page 23

Medi-Tracker

Activity diagram for Accountant:

Login

View patients details

View discharge

View/ add insurance

View reports

DEPT OF CSE, GPREC, KNL

Page 24

Medi-Tracker

Component Diagram:

DEPT OF CSE, GPREC, KNL

Page 25

Medi-Tracker Deployment Diagram DEPT OF CSE. KNL Page 26 . GPREC.

and its requirements in a topdown fashion. E-R DIAGRAMS: In software engineering. or ERDs. often a relational database. an entity-relationship model (ERM) is an abstract and conceptual representation of data. ER diagrams. Diagrams created by this process are called entity-relationship diagrams.2. KNL Page 27 . Entity-relationship modeling is a database modeling method. Dat-join Designat experien Name Id Doctor Ap-Id D-name D-id pat-Id nam-pat date No-Hr rooms appointments see/seen by inpatients nam-pat natu-ill dat-admi room-id refen-doc Treats patients phno work-hr chargperhr id occupat name phno age sex roomid room-id category No-beds charg-day status visitor-all DEPT OF CSE. used to produce a type of conceptual schema or semantic data model of a system. GPREC.Medi-Tracker 3.

aliases. contents. description.3. and organization. DEPT OF CSE. Identifies processes where the data are used and where immediate access to information needed. DATA DICTIONARY: The logical characteristics of current systems data stores. identifying database requirements during system design. GPREC. KNL Page 28 . including name. Uses of Data Dictionary: • • • To manage the detail in large systems To communicate a common meaning for all system elements To Document the features of the system Serves as the basis for • To facilitate analysis of the details in order to evaluate characteristics and determine where system changes should be made.Medi-Tracker 3.

Medi-Tracker LITERATURE SURVEY DEPT OF CSE. GPREC. KNL Page 29 .

has had a profound effect on the Internet. As desirable as dynamic. because the program must execute reliably in a variety of systems. The object model of Java is simple and easy to extend. some means of generating portable executable code is needed. Thus. networked programs are.Networked programs.Medi-Tracker 4. BSNL System is implemented using the Java language so as to make the programmers and different users at different levels can make use of this system very affectively. Many types of the computers and operating systems are in use throughout the world and many are connected to the Internet. and Java. in turn. KNL Page 30 . Java supports multithreaded programming. Java was designed to meet the real world requirements of creating interactive . Because Java is strictly typed language. it checks our code at the compile time and also at run-time. At the same time. Literature Survey: 4. they also present serious problems in the areas of security and portability. such as integers are kept as high-performance non-objects. active programs. which allows us to DEPT OF CSE. Java frees us from having to worry about many of the most common cause of programming errors. In a network. The multi-platformed environment of the web places extraordinarily demands on a program. Java achieves this security or protection by confining a Java program to the Java execution environment and not allowing it to access to other parts of the computer. two very broad categories of objects are transmitted between the server and our computer passive information and dynamic.1 About Java: The Internet helped catapult Java to the forefront of programming. the ability to create robust programs was given a high priority in the design of Java. For programs to be dynamically downloaded to all the various types of platforms connected to the Internet. Java was designed to be easy for the professional programmers to learn and use efficiently. GPREC. The reason for this is quite simple: Java expands the universe of objects that can move about freely in the cyberspace. while simple types.

The next question that needs to be answered is why we need JDBC. KNL Page 31 . JDBC is essentially a low-level API since any data manipulation. In fact. are expected shortly. storage and retrieval has to be done by the program itself. GPREC. Their goal was “write once. which uses pointers extensively. accessing a resource using a URL is not much different from accessing a file. which provide a higher-level abstraction. This code can be interpreted on any system that provides a java virtual machine. because it handles TCP/IP protocols. 4. forever “. Java is designed for the distributed environment of the Internet. once we have ODBC on hand. inventor of java developed to suit its needs. We can use the same ODBC to connect the entire database and ODBC is a proven technology. Since java does not have any pointes and is object-oriented sun Microsystems.Medi-Tracker write programs that do many things simultaneously. Java programs carry with them substantial amounts of the run-time type information that is used to verify and resolve accesses to objects at run-time. run anywhere. anytime . A central issue for the Java designers was that of code longevity and portability. Problem for doing this is ODBC gives a ‘c’ language API. This makes it possible to dynamically link code in a safe and expedient manner. however JDBC can connect only java client and it uses ODBC for the connectivity. Java enables the creation of the cross-platform programs by compiling into intermediate representation called Javabytecode. Requirements to use JDBC: DEPT OF CSE. Some tools. The original version of Java (OAK) included features for intra-address-space messaging.2 INTRODUCTION TO JDBC JDBC (Java Database connectivity) is a front-end tool for connecting to a server to ODBC in that respect.

1 and above come bundled with JDBC software. Processes can in turn archive the online redo logs into archive logs (offline redo logs). After that you need to have a back-end database engine for which a JDBC driver is available. SQL commands. In addition to storage. SDL developed the original version of the Oracle software. The Oracle DBMS can store and execute stored procedures and functions within itself. the database consists of online redo logs (or logs).A part from this you need the jdk1. then multiple instances. Larry Ellison and his friends and former co-workers Bob Miner and Ed Oates started the consultancy Software Development Laboratories (SDL) in 1977. 4. usually on different servers. scalability and redundancy. Back-end is not needed when JDBC driver is capable of storing and retrieving the data itself. This scenario offers advantages such as better performance.1 available javasoft’s website) or a version of Java since jdk1. As of 2010. About ORACLE: The Oracle Database (commonly referred to as Oracle RDBMS or simply as Oracle) is a relational database management system (RDBMS) produced and marketed by Oracle Corporation. When JDBC drivers are not available JDBC-ODBC bridge drivers are used to access the database through ODBC. which hold transactional history.Medi-Tracker To use JDBC you need a basic knowledge of databases and SQL. The name Oracle comes from the code-name of a CIA-funded project Ellison had worked on while previously employed by Ampex Users of the Oracle databases refer to the server-side memory-structure as the SGA (System Global Area). If the Oracle database administrator has implemented Oracle RAC (Real Application Clusters). attach to a central storage array. which provide the basis (if necessary) for data recovery and for some forms of data replication. and user information. GPREC. or the object-oriented language Java can invoke such code objects and/or provide the programming structures for writing them DEPT OF CSE. PL/SQL (Oracle Corporation's proprietary procedural extension to SQL). KNL Page 32 . Oracle has been a major presence in database computing for many years. or if JDBC-ODBC Bridge and the ODBC driver can be used to store and retrieve the information. The SGA typically holds cache information such as databuffers.1 (Java Development Kit1.3.

KNL Page 33 .Medi-Tracker SYSTEM DESIGN DEPT OF CSE. GPREC.

systems architecture and systems engineering. 5. The increasing importance of software running on generic platforms has enhanced the discipline of software engineering. This is often conducted via modeling.1. inputs and outputs of the system. If the broader topic of product development "blends the perspective of marketing. components. In the context of systems design. KNL Page 34 . then design is the act of taking the marketing information and creating the design of the product to be manufactured. design. Introduction: Systems design is the process or art of defining the architecture. One could see it as the application of systems theory to product development.Medi-Tracker 5. Until the 1990s systems design had a crucial and respected role in the data processing industry. In the 1990s standardization of hardware and software resulted in the ability to build modular systems. GPREC. Systems design is therefore the process of defining and developing systems to satisfy specified requirements of the user. and data for a system to satisfy specified requirements. and manufacturing into a single approach to product development. Types of Design: Logical Design: The logical design of a system pertains to an abstract representation of the data flows. System Design: 5.2. modules. There is some overlap with the disciplines of systems analysis. interfaces. including:    Data Flow Diagrams Entity Life Histories Entity Relationship Diagrams Physical Design: DEPT OF CSE. modeling can undertake the following forms. which involves a simplistic (and sometimes graphical) representation of an actual system.

Boyce defined the Boyce-Codd Normal Form (BCNF) in 1974. GPREC.Medi-Tracker The physical design relates to the actual input and output processes of the system. 4NF. 5. a personal computer's physical design involves input via a keyboard. designs that in large part do not adhere to 3NF 5. in most cases 3NF tables adhere to BCNF. Normalization Design: In the field of relational database design. KNL Page 35 .3. and deletion anomalies—that could lead to a loss of data integrity. introduced the concept of normalization and what we now know as the First Normal Form (1NF) in 1970. motherboard. USB slots. video/graphics cards. i. A standard piece of database design guidance is that the designer should create a fully normalized design. explicitly recommend non-normalized designs. printer. how it is verified/authenticated. such as the dimensional modeling approach todata warehouse design. etc. update. hard drive. Most 3NF tables are free of insertion.e. Edgar F. the inventor of the relational model. and Codd and Raymond F. some modeling disciplines.e. Physical design. This is laid down in terms of how data is input into a system. Hugh Darwen. However. processing within the CPU. Codd. does not refer to the tangible physical design of an information system. and Nikos Lorentzos in 2002. To use an analogy. the most recent being the Sixth normal form (6NF) introduced by Chris Date. and 5NF (but typically not 6NF). selective denormalization can subsequently be performed for performance reasons. normalization is a systematic way of ensuring that a database structure is suitable for general-purpose querying and free of certain undesirable characteristics—insertion. Codd went on to define the Second Normal Form (2NF) and Third Normal Form (3NF) in 1971. and deletion anomalies. i. Informally. update. etc. and how it is displayed as output. CPU. modems. in this context. how it is processed. It would not concern the actual layout of the tangible hardware.4. and output via a monitor. Database Design: DEPT OF CSE. Higher normal forms were defined by other theorists in subsequent years. a relational database table (the computerized representation of a relation) is often described as "normalized" if it is in the Third Normal Form. which for a PC would be a monitor.

In the relational model these are the tables and views. Superimpose a logical structure upon the data on the basis of these relationships. and most correctly. The process of doing database design generally consists of a number of steps which will be carried out by the database designer. This logical data model contains all the needed logical and physical design choices and physical storage parameters needed to generate a design in a Data Definition Language. Principally. However. The term database design can be used to describe many different parts of the design of an overall database system. which can then be used to create a database. not just the base data structures. Usually. GPREC. DEPT OF CSE. A fully attributed data model contains detailed attributes for each entity. it can be thought of as the logical design of the base data structures used to store the data. In an object database the entities and relationships map directly to object classes and named relationships.Medi-Tracker Database design is the process of producing a detailed data model of a database. the designer must:   Determine the relationships between the different data elements. the term database design could also be used to apply to the overall process of designing. KNL Page 36 . but also the forms and queries used as part of the overall database application within the database management system (DBMS).

KNL Page 37 . GPREC.Medi-Tracker SOURCE CODE DEPT OF CSE.

uid. //--> </SCRIPT> <LINK href="styles.go(+1).jsp: <HTML> <%@ page language="java" %> <%@ page session="true" %> <%@ page import="java.util."> <center> <BR><BR> <FONT FACE="Century Gothic"> <!--Declaration of varaibles--> <%! String errormsg .%> <%! String dislpwd . GPREC.Medi-Tracker 6. Source Code: Login. KNL Page 38 .*" %> <head> <SCRIPT LANGUAGE="JavaScript"> <!-history.%> <%! String disluserid .css" type="text/css" rel="stylesheet"> </head> <BODY CLASS=SC onload="document.LOGIN.%> <% DEPT OF CSE.focus().

errormsg = " ". <BR> DEPT OF CSE..&nbsp.***** LOGIN SCREEN ***** --%> <FORM NAME="LOGIN" ACTION="Validate. if(dislpwd == null) dislpwd = "".println("errormsg = "+errormsg).out.&nbsp.&nbsp. dislpwd = request.&nbsp. KNL Page 39 . Userid &nbsp:&nbsp.jsp" METHOD="POST" > <FONT COLOR="black"> Enter your UserID and password to login<BR><BR> &nbsp. GPREC. Please re-enter.getParameter("error") .Medi-Tracker /*Retreiving user id and password*/ disluserid = request. } if(errormsg.&nbsp.getParameter("uid"). if(disluserid == null) disluserid = "".&nbsp.").equals("blankfields")) { %> <FONT COLOR="Red"> Both the fields are Mandatory.&nbsp.println("Error messages was null so clearing it.equals("invalid")) { %> <FONT COLOR="Red"> Invalid Username and/or Password.<input TYPE=text id = "usr" name=uid size="8" maxlength="8"> <BR><BR> Password : <input TYPE=password name=pwd size="8" maxlength="8"<BR><BR> &nbsp. <BR><BR> <% } %> <%-.&nbsp.&nbsp. %> <!--Retrieve the error from request and display on screen--> <% errormsg = request.&nbsp.&nbsp. if (errormsg == null) { //System.getParameter("pwd").&nbsp.<BR><BR> <% } if(errormsg.Please fill up both fields.&nbsp.out.&nbsp. //System.

0 Transitional//EN"> <HTML> <%@ page language="java" %> <%@ page session="true" %> <%@ page import="java. System. //--> </SCRIPT> </HEAD> <jsp:include page="MultiLevelmenu.Random"%> <HEAD> <LINK href="styles. GPREC. if(auth<0){ %><H3 align=center><IMG SRC="images/error.intValue().*. int auth= IAuth.getAttribute("auth").println("===Authentication=="+auth).util. KNL Page 40 .sql.java.java.gif" WIDTH="17" HEIGHT="13" BORDER=0 ALT="">You are not authorized to access this page</H3>< % } else{ %> DEPT OF CSE.*.htm"/><br><br><br> <body class="SC"> <% Integer IAuth =(Integer)session.Medi-Tracker <INPUT TYPE=submit name=submit value="Sign-in"> <INPUT TYPE=reset name=resett value="Reset" > </center> </FORM> </BODY> </HTML> ViewPatients.io.out.css" type="text/css" rel="stylesheet"> <title>Patients List</title> <SCRIPT LANGUAGE="JavaScript"> <!-history.jsp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.go(+1).

ResultSet rs=null.MediAssist.out. } catch(Exception e) { //System. KNL Page 41 . int PatientID.getParameter("orderby")==null) ? "NameOfPatient": (String)request. System.getParameter("orderby"). String AdmissionAs.Medi-Tracker <P align=right><a class=title onclick="javascipt:window.RoomID.Natureofillness. String NameOfPatient.out.ReferedByDoctor. orderby=((String)request. String orderby="NameOfPatient".println("Exception"+e).Occupation. Statement stmt=null.Age. %><%=e%><% } %> <% if(rs!=null) DEPT OF CSE.GaurdianName. String Query = "SELECT * FROM PatientsMaster order by "+orderby.RelationWithPatient. GPREC.ContactNumbers.createStatement().println("--1---").println("--2--"+orderby). rs = stmt.print()" onmouseover="this.out.cursor='hand'" ><img src="images/printer1.getAttribute("connection"). System.out.Sex. try { /*Getting the connection variable from session*/ con=(Connection)session. Date DateOfAdmission. System.style.jpg" width="37" height="38" border=0 alt=""></a></P> <h2 align=Center>Patients List</h2> <form name=cons> <table width="20%" align=Left> <% /*Declaration of variables*/ Connection con=null.println("--1--"+Query).executeQuery(Query). stmt = con.

jsp? href="ViewPatients. DEPT OF CSE.jsp? href="ViewPatients.jsp? href="ViewPatients. %> <!--Displaying the table header--> <!-<br> <DIV STYLE="overflow:scroll.next()) { NameOfPatient=rs.getString(1).jsp? href="ViewPatients.">--> <table width="60%" align=right> <tr class=row_title> <th class=row_title><a class=title orderby=NameOfPatient">NameOfPatient</a></th> <th class=row_title><a class=title orderby=PatientID">PatientID</a></th> <th class=row_title><a class=title orderby=Age">Age</a></th> <th class=row_title><a class=title orderby=Sex">Sex</a></th> <th class=row_title><a class=title orderby=Occupation">Occupation</a></th> <th class=row_title><a class=title orderby=ContactNumbers">ContactNumbers</a></th> <th class=row_title><a class=title orderby=Natureofillness">Natureofillness</a></th> <th class=row_title><a class=title orderby=DateOfAdmission">DateOfAdmission</a></th> <th class=row_title><a class=title orderby=AdmissionAs">AdmissionAs</a></th> <th class=row_title><a class=title orderby=Insurance">Insurance</a></th> <th class=row_title><a class=title orderby=GaurdianName">GaurdianName</a></th> <th class=row_title><a class=title orderby=RelationWithPatient">RelationWithPatient</a></th> <th class=row_title><a class=title orderby=ReferedByDoctor">ReferedByDoctor</a></th> <th class=row_title><a class=title orderby=RoomID">RoomID</a></th> <% int DisRow=0.jsp? href="ViewPatients. GPREC.jsp? href="ViewPatients.jsp? href="ViewPatients.Medi-Tracker { //System.jsp? href="ViewPatients. /*Getting the values from the database*/ while(rs.out. KNL href="ViewPatients.jsp? Page 42 .jsp? href="ViewPatients.println("Resultset is not null").jsp? href="ViewPatients.width:650px.jsp? href="ViewPatients.jsp? href="ViewPatients. height:400px.jsp? href="ViewPatients.

Sex=rs. GPREC.getString(12). MediAssist=rs.getString(5). Occupation=rs. if(DisRow==0) { /*To write to the server if the resultset is null*/ %> <CENTER> <tr><th colspan=6>No Records found</th></tr> </CENTER> <% DEPT OF CSE. DateOfAdmission=rs. Age=rs.getString(7).getString(11).getInt(2).close().getString(6). Natureofillness=rs.getString(10).getInt(14). RelationWithPatient=rs.getString(13). DisRow++. ContactNumbers=rs. ReferedByDoctor=rs. %> <tr class= <%=(DisRow%2!=0)? "row_even" : "row_odd"%>> <td align=center><%= NameOfPatient%></td> <td align=center><%= PatientID%></td> <td align=center><%= Age%></td> <td align=center><%= Sex%></td> <td align=center><%= Occupation%></td> <td align=center><%= ContactNumbers%></td> <td align=center><%= Natureofillness%></td> <td align=center><%= DateOfAdmission%></td> <td align=center><%= AdmissionAs%></td> <td align=center><%= MediAssist%></td> <td align=center><%= GaurdianName%></td> <td align=center><%= RelationWithPatient%></td> <td align=center><%= ReferedByDoctor%></td> <td align=center><%= RoomID%></td> <% } rs.getString(9). AdmissionAs=rs.getString(4). KNL Page 43 . GaurdianName=rs.getString(3). RoomID=rs.getDate(8).Medi-Tracker PatientID=rs.

int auth= IAuth.sql.htm"/><br><br><br> <body class="SC"> <% Integer IAuth =(Integer)session.out.0 Transitional//EN"> <HTML> <%@ page language="java" %> <%@ page session="true" %> <%@ page import="java.println("===Authentication=="+auth).util.Medi-Tracker } } %> </table> </form> </BODY> </HTML> <% } %> ViewInsurance <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. if((auth==1)){ %><H3 align=center><IMG SRC="images/error.getAttribute("auth"). System.intValue().java. KNL Page 44 .Random"%> <HEAD> <LINK href="styles.java. GPREC.*.css" type="text/css" rel="stylesheet"> <title>Insurance Details</title> <SCRIPT LANGUAGE="JavaScript"> <!-//--> </SCRIPT> </HEAD> <jsp:include page="MultiLevelmenu.io.gif" WIDTH="17" HEIGHT="13" BORDER=0 ALT="">You are not authorized to access this page</H3>< % } else{ %> DEPT OF CSE.*.

cursor='hand'" ><img src="images/printer1.DateOfDischarge.jpg" width="37" height="38" border=0 alt=""></a></P> <h2 align=Center>Insurance Details</h2> <form name=cons> <table width="20%" align=Left> <% /*Declaration of variables*/ Connection con=null.WorkingAtCompany.println("--1--"+Query). String PeriodofStayinHospital.println("Exception"+e).getParameter("orderby")==null) ? "NameOfApplicant": (String)request.print()" onmouseover="this.Medi-Tracker <P align=right><a class=title onclick="javascipt:window. GPREC.out. Statement stmt=null.out.EmployeeID.Place.createStatement(). try { /*Getting the connection variable from session*/ con=(Connection)session. System.out.println("--2--"+orderby). } catch(Exception e) { //System. KNL Page 45 . %><%=e%><% } %> DEPT OF CSE. ResultSet rs=null.RelationWithPatient. float AmountClaimed.Natureofillness.println("--1---"). stmt = con.ClaimNumber.PolicyNumber.executeQuery(Query). orderby=((String)request.out. System.InsuranceID. Date DateOfAdmission. String orderby="InsuranceID". String Query = "SELECT * FROM InsuranceMaster order by "+orderby. System.getParameter("orderby").getAttribute("connection"). int PatientID.NameOfPatient. rs = stmt. String NameOfApplicant.style.

jsp? orderby=NameOfApplicant">Name of Applicant</a></th> <th class=row_title><a class=title href="ViewInsurances.jsp? orderby=EmployeeID">EmployeeID</a></th> <th class=row_title><a class=title href="ViewInsurances. GPREC.jsp? orderby=DateOfDischarge">Date Of Discharge</a></th> <th class=row_title><a class=title href="ViewInsurances.jsp? orderby=InsuranceID">InsuranceID</a></th> <th class=row_title><a class=title href="ViewInsurances.jsp? orderby=Natureofillness">Nature of illness</a></th> <th class=row_title><a class=title href="ViewInsurances. height:400px.jsp? orderby=AmountClaimed">Amount Claimed</a></th> <th class=row_title><a class=title href="ViewInsurances. /*Getting the values from the database*/ DEPT OF CSE.">--> <table width="60%" align=right> <tr class=row_title> <th class=row_title><a class=title href="ViewInsurances. KNL Page 46 .jsp? orderby=Place">Place</a></th> <th class=row_title><a class=title href="ViewInsurances.jsp? orderby=ClaimNumber">Claim Number</a></th> <% int DisRow=0.jsp? orderby=DateOfAdmission">Date Of Admission</a></th> <th class=row_title><a class=title href="ViewInsurances.jsp? orderby=RelationWithPatient">Relation With Patient</a></th> <th class=row_title><a class=title href="ViewInsurances.out.println("Resultset is not null"). %> <!--Displaying the table header--> <!-<br> <DIV STYLE="overflow:scroll.Medi-Tracker <% if(rs!=null) { //System.jsp? orderby=WorkingAtCompany">Working At Company</a></th> <th class=row_title><a class=title href="ViewInsurances.jsp? orderby=NameOfPatient">Name of Patient</a></th> <th class=row_title><a class=title href="ViewInsurances.jsp? orderby=PolicyNumber">Policy Number</a></th> <th class=row_title><a class=title href="ViewInsurances.width:650px.jsp? orderby=PeriodofStayinHospital">Period of Stay in Hospital</a></th> <th class=row_title><a class=title href="ViewInsurances.

getString(10). %> <tr class= <%=(DisRow%2!=0)? "row_even" : "row_odd"%>> <td align=center><%= InsuranceID%></td> <td align=center><%= NameOfPatient%></td> <td align=center><%= NameOfApplicant%></td> <td align=center><%= WorkingAtCompany%></td> <td align=center><%= EmployeeID%></td> <td align=center><%= RelationWithPatient%></td> <td align=center><%= Natureofillness%></td> <td align=center><%= DateOfAdmission%></td> <td align=center><%= DateOfDischarge%></td> <td align=center><%= PeriodofStayinHospital%></td> <td align=center><%= AmountClaimed%></td> <td align=center><%= Place%></td> <td align=center><%= PolicyNumber%></td> <td align=center><%= ClaimNumber%></td> <% } rs.getString(12). PolicyNumber=rs.getFloat(11).getInt(1). RelationWithPatient=rs.getString(4).getString(6).getString(14). WorkingAtCompany=rs. NameOfPatient=rs. DateOfDischarge=rs. Natureofillness=rs.getString(7).getDate(9).getString(5).getString(13). EmployeeID=rs. DateOfAdmission=rs.getDate(8). AmountClaimed=rs.next()) { InsuranceID=rs. KNL Page 47 . GPREC. DisRow++.close(). Place=rs. if(DisRow==0) { /*To write to the server if the resultset is null*/ %> <CENTER> <tr><th colspan=6>No Records found</th></tr> </CENTER> DEPT OF CSE.getString(3).Medi-Tracker while(rs. ClaimNumber=rs. PeriodofStayinHospital=rs. NameOfApplicant=rs.getString(2).

gif" WIDTH="17" HEIGHT="13" BORDER=0 ALT="">You are not authorized to access this page</H3>< % } else{ %> DEPT OF CSE.*. //--> </SCRIPT> </HEAD> <jsp:include page="MultiLevelmenu.jsp <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <%@ page language="java" %> <%@ page session="true" %> <%@ page import="java. if(auth==3){ %><H3 align=center><IMG SRC="images/error. int auth= IAuth.sql.out. KNL Page 48 .java.println("===Authentication=="+auth).java.getAttribute("auth").util. System.Random"%> <HEAD> <LINK href="styles.intValue(). GPREC.go(+1).css" type="text/css" rel="stylesheet"> <title>Doctors List</title> <SCRIPT LANGUAGE="JavaScript"> <!-history.htm"/><br><br><br> <body class="SC"> <% Integer IAuth =(Integer)session.*.io.Medi-Tracker <% } } %> </table> </form> </BODY> </HTML> <% } %> ViewDoctor.

String Query = "SELECT * FROM DoctorsMaster order by "+orderby.style.println("--1--"+Query).jpg" width="37" height="38" border=0 alt=""></a></P> <h2 align=Center>Doctors List</h2> <form name=cons> <table width="20%" align=Left> <% /*Declaration of variables*/ Connection con=null. stmt = con.getAttribute("connection"). Date DateOfJoin. try { /*Getting the connection variable from session*/ con=(Connection)session. %><%=e%><% } %> <% if(rs!=null) DEPT OF CSE. rs = stmt.out.Designation.PhoneNumber. ResultSet rs=null.WorkingHours.println("Exception"+e).println("--2--"+orderby). String orderby="DoctorName".cursor='hand'" ><img src="images/printer1.executeQuery(Query). System.createStatement().getParameter("orderby").Experience. float ChargesPerHour.println("--1---").out.out.print()" onmouseover="this. int DoctorID. System. String DoctorName.getParameter("orderby")==null) (String)request. orderby=((String)request. } catch(Exception e) { //System. Statement stmt=null. System.Medi-Tracker <P align=right><a class=title onclick="javascipt:window.out. String HolidayinWeek. KNL Page 49 ? "DoctorName": . GPREC.

getString(7). PhoneNumber=rs.getString(5).jsp? href="ViewDoctors. ChargesPerHour=rs.getFloat(9). /*Getting the values from the database*/ while(rs.jsp? href="ViewDoctors.width:650px. HolidayinWeek=rs. Designation=rs. href="ViewDoctors.getInt(6).next()) { DoctorName=rs. %> <!--Displaying the table header--> <!-<br> <DIV STYLE="overflow:scroll.getString(1). Experience=rs.getDate(3).jsp? href="ViewDoctors. DoctorID=rs. WorkingHours=rs.jsp? href="ViewDoctors.out.jsp? href="ViewDoctors.getInt(2).Medi-Tracker { //System. GPREC.">--> <table width="60%" align=right> <tr class=row_title> <th class=row_title><a class=title orderby=DoctorName">DoctorName</a></th> <th class=row_title><a class=title orderby=DoctorID">DoctorID</a></th> <th class=row_title><a class=title orderby=DateOfJoin">DateOfJoin</a></th> <th class=row_title><a class=title orderby=Designation">Designation</a></th> <th class=row_title><a class=title orderby=PhoneNumber">PhoneNumber</a></th> <th class=row_title><a class=title orderby=Experience">Experience</a></th> <th class=row_title><a class=title orderby=HolidayinWeek">HolidayinWeek</a></th> <th class=row_title><a class=title orderby=WorkingHours">WorkingHours</a></th> <th class=row_title><a class=title orderby=ChargesPerHour">ChargesPerHour</a></th> <% int DisRow=0.jsp? href="ViewDoctors.getString(4). KNL Page 50 .jsp? href="ViewDoctors. DateOfJoin=rs.jsp? DEPT OF CSE.jsp? href="ViewDoctors. height:400px.println("Resultset is not null").getString(8).

java.Medi-Tracker DisRow++. KNL Page 51 .sql.util.Random"%> DEPT OF CSE.0 Transitional//EN"> <HTML> <%@ page language="java" %> <%@ page session="true" %> <%@ page import="java.*. GPREC. if(DisRow==0) { /*To write to the server if the resultset is null*/ %> <CENTER> <tr><th colspan=6>No Records found</th></tr> </CENTER> <% } } %> </table> </form> </BODY> </HTML> <% } %> ViewDischarges: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. %> <tr class= <%=(DisRow%2!=0)? "row_even" : "row_odd"%>> <td align=center><%= DoctorName%></td> <td align=center><%= DoctorID%></td> <td align=center><%= DateOfJoin%></td> <td align=center><%= Designation%></td> <td align=center><%= PhoneNumber%></td> <td align=center><%= Experience%></td> <td align=center><%= HolidayinWeek%></td> <td align=center><%= WorkingHours%></td> <td align=center><%= ChargesPerHour%></td> <% } rs.io.*.java.close().

out.println("===Authentication=="+auth). DEPT OF CSE. System.gif" WIDTH="17" HEIGHT="13" BORDER=0 ALT="">You are not authorized to access this page</H3>< % } else{ %> <P align=right><a class=title onclick="javascipt:window.getAttribute("auth").print()" onmouseover="this.intValue(). //--> </SCRIPT> </HEAD> <jsp:include page="MultiLevelmenu.style.DateOfDischarge. Date DateOfAdmission. GPREC. KNL Page 52 . Statement stmt=null.jpg" width="37" height="38" border=0 alt=""></a></P> <h2 align=Center>Discharges List</h2> <form name=cons> <table width="20%" align=Left> <% /*Declaration of variables*/ Connection con=null. String NameOfPatient.cursor='hand'" ><img src="images/printer1.Age. int RoomID. String orderby="NameOfPatient".Natureofillness. int auth= IAuth. if((auth<0)){ %><H3 align=center><IMG SRC="images/error.Insurance.go(+1).Occupation.PatientID. String ConsultantDoctor.Medi-Tracker <HEAD> <LINK href="styles.htm"/><br><br><br> <body class="SC"> <% Integer IAuth =(Integer)session. ResultSet rs=null. float BillAmount.ReferedByDoctor.css" type="text/css" rel="stylesheet"> <title>Discharges List</title> <SCRIPT LANGUAGE="JavaScript"> <!-history.Sex.

out.jsp? href="ViewDischarges. String Query = "SELECT * FROM DischargesMaster order by "+orderby. %><%=e%><% } %> <% if(rs!=null) { //System. KNL href="ViewDischarges. try { /*Getting the connection variable from session*/ con=(Connection)session.createStatement().">--> ? "NameOfPatient": <table width="60%" align=right> <tr class=row_title> <th class=row_title><a class=title orderby=NameOfPatient">NameOfPatient</a></th> <th class=row_title><a class=title orderby=PatientID">PatientID</a></th> <th class=row_title><a class=title orderby=Age">Age</a></th> <th class=row_title><a class=title orderby=Sex">Sex</a></th> DEPT OF CSE.width:650px.getParameter("orderby"). %> <!--Displaying the table header--> <!-<br> <DIV STYLE="overflow:scroll. orderby=((String)request. rs = stmt. stmt = con.executeQuery(Query).println("Resultset is not null"). height:400px.Medi-Tracker System. System.println("--2--"+orderby).getAttribute("connection").out.out. GPREC. System.getParameter("orderby")==null) (String)request.out.jsp? Page 53 . } catch(Exception e) { //System.jsp? href="ViewDischarges.out.println("Exception"+e).println("--1---").println("--1--"+Query).jsp? href="ViewDischarges.

jsp? href="ViewDischarges. PatientID=rs.getInt(9).jsp? href="ViewDischarges.jsp? href="ViewDischarges.getString(12).getString(4). Sex=rs.getString(10). GPREC.getString(1).getString(5). Insurance=rs.jsp? href="ViewDischarges.jsp? .jsp? href="ViewDischarges. ReferedByDoctor=rs. Age=rs.getFloat(13).getDate(7). %> <tr class= <%=(DisRow%2!=0)? "row_even" : "row_odd"%>> <td align=center><%= NameOfPatient%></td> <td align=center><%= PatientID%></td> <td align=center><%= Age%></td> <td align=center><%= Sex%></td> DEPT OF CSE.Medi-Tracker <th class=row_title><a class=title orderby=Occupation">Occupation</a></th> <th class=row_title><a class=title orderby=Natureofillness">Natureofillness</a></th> <th class=row_title><a class=title orderby=DateOfAdmission">DateOfAdmission</a></th> <th class=row_title><a class=title orderby=DateOfDischarge">DateOfDischarge</a></th> <th class=row_title><a class=title orderby=Insurance">RoomID</a></th> <th class=row_title><a class=title orderby=ConsultantDoctor">ConsultantDoctor</a></th> <th class=row_title><a class=title orderby=ReferedByDoctor">ReferedByDoctor</a></th> <th class=row_title><a class=title orderby=Insurance">Insurance</a></th> <th class=row_title><a class=title orderby=BillAmount">BillAmount</a></th> <% int DisRow=0. DateOfAdmission=rs. ConsultantDoctor=rs. /*Getting the values from the database*/ while(rs. Occupation=rs.getString(6).getDate(8).getInt(2). KNL Page 54 href="ViewDischarges.jsp? href="ViewDischarges.next()) { NameOfPatient=rs.jsp? href="ViewDischarges. BillAmount=rs. Natureofillness=rs. RoomID=rs. DateOfDischarge=rs.jsp? href="ViewDischarges. DisRow++.getInt(3).getString(11).

if(DisRow==0) { /*To write to the server if the resultset is null*/ %> <CENTER> <tr><th colspan=6>No Records found</th></tr> </CENTER> <% } } %> </table> </form> </BODY> </HTML> <% } %> ViewBill.out.Random"%> <% String NameOfPatient = request.%> DEPT OF CSE.jsp: <%@ page language="java" %> <%@ page session="true" %> <%@ page import="java.println(DisRow).getParameter("NameOfPatient").close().java. GPREC.sql.java.io.*.util. KNL Page 55 . rs.*.Medi-Tracker <td align=center><%= Occupation%></td> <td align=center><%= Natureofillness%></td> <td align=center><%= DateOfAdmission%></td> <td align=center><%= DateOfDischarge%></td> <td align=center><%= RoomID%></td> <td align=center><%= ConsultantDoctor%></td> <td align=center><%= ReferedByDoctor%></td> <td align=center><%= Insurance%></td> <td align=center><%= BillAmount%></td> <% } //System.

Statement stmt=null. GPREC. String Query1 = "select max(BillID) from billingmaster ".out. int BillID.TotalCharge.getParameter("NameOfPatient"). System.println("--1---"). } System.rs1=null. orderby=((String)request.out. String orderby="BillID". if(rs1==null){ BillID = 0. try{ con=(Connection)session. KNL Page 56 .getParameter("orderby")==null) ? "BillID": (String)request. String Condition = (String)request. ResultSet rs=null.RoomID. stmt1 = con.Medi-Tracker <HEAD> <LINK href="styles.DoctorFee.htm"/><br><br> <BODY class=SC> <P align=right><a class=title onclick="javascipt:window.stmt1=null. } else{ BillID = 0. float AdmissionFee. } if(rs1. String ReferedByDoctor.println(BillID).out. System.createStatement().style.css" type="text/css" rel="stylesheet"> <script LANGUAGE="Javascript" SRC="images/validate.cursor='hand'" ><img src="images/printer1.getInt(1).js"></script> </HEAD> <jsp:include page="MultiLevelmenu.next()){ BillID = rs1. DEPT OF CSE.print()" onmouseover="this.getAttribute("connection"). stmt = con.jpg" width="37" height="38" border=0 alt=""></a></P> <h2 align=center>Bill Details</h2> <% Connection con.RoomRent.createStatement(). rs1 = stmt1.executeQuery(Query1).println("--2--"+orderby).PeriodofStayinHospital.getParameter("orderby").

next()) { BillID=rs.getString(2).getInt(5).width:650px.getString(7). AdmissionFee=rs. height:400px.">--> <% int DisRow=0.getInt(4).getFloat(6). RoomID=rs. DisRow++. %> <!--Displaying the table header--> <!-<br> <DIV STYLE="overflow:scroll. NameOfPatient=rs. GPREC.Medi-Tracker String Query = "select * from billingmaster where BillID="+BillID.executeQuery(Query).< %=AdmissionFee%></b></td></tr> DEPT OF CSE. RoomRent=rs. PeriodofStayinHospital=rs.getInt(1). /*Getting the values from the database*/ while(rs. KNL Page 57 .out. ReferedByDoctor=rs. TotalCharge=rs. rs = stmt.println("Exception"+e). DoctorFee=rs.println("Resultset is not null").getFloat(3).getFloat(8). } catch(Exception e) { //System. %> <table width="40%" align=center> <tr><td class=row_title><b>BillID</b></a></td><td class=row_title><b><%=BillID%></b></td></tr> <tr><td class=row_title><b>NameOfPatient</b></a></td><td class=row_title><b>< %=NameOfPatient%></b></td></tr> <tr><td class=row_title><b>AdmissionFee</b></a></td><td class=row_title><b>Rs.out.getFloat(9). %><%=e%><% } %> <% if(rs!=null) { //System.

<%=RoomRent%></b></td></tr> <tr><td class=row_title><b>ReferedByDoctor</b></a></td><td class=row_title><b>< %=ReferedByDoctor%></b></td></tr> <tr><td class=row_title><b>DoctorFee Perday</b></a></td><td class=row_title><b>Rs. GPREC.< %=TotalCharge%></U></b></td></tr> </table> <% } rs.Medi-Tracker <tr><td class=row_title><b>PeriodofStayinHospital</b></a></td><td class=row_title><b>< %=PeriodofStayinHospital%> days</b></td></tr> <tr><td class=row_title><b>RoomID</b></a></td><td class=row_title><b><%=RoomID%></b></td></tr> <tr><td class=row_title><b>RoomRent Perday</b></a></td><td class=row_title><b>Rs.0 Transitional//EN"> <HTML> <%@ page language="java" %> <%@ page session="true" %> <%@ page import="java.jsp"> .java.<%=DoctorFee%></b></td></tr> <tr class=row_odd><td><b><U>Total Charge</U></b></a></td><td class=row_odd><font color="red"><b><U>Rs.*.*.Random"%> DEPT OF CSE.util. KNL Page 58 colspan=10><A href="Report.sql.io.close().jsp"> Discharge another Patient</A><br> <h3 align=center><A Back</A></center><% /*To write to the server if the resultset is null*/ } } %> </table> </form> </BODY> </HTML> ViewAppointments: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. if(DisRow>0) { %><center><br> <h3 align=center><th href="NewDischarges0.java.

out.AppointmentID. if(auth==3){ %><H3 align=center><IMG SRC="images/error.style. String HolidayinWeek.WorkingHours.intValue(). int auth= IAuth. float ChargesPerHour.htm"/><br><br><br> <body class="SC"> <% Integer IAuth =(Integer)session.print()" onmouseover="this. DEPT OF CSE. ResultSet rs=null.println("===Authentication=="+auth).getAttribute("auth"). GPREC. String orderby="AppointmentID". String DoctorName.gif" WIDTH="17" HEIGHT="13" BORDER=0 ALT="">You are not authorized to access this page</H3>< % } else{ %> <P align=right><a class=title onclick="javascipt:window. System. Date DateOfAppointment.Medi-Tracker <HEAD> <LINK href="styles.PatientID.css" type="text/css" rel="stylesheet"> <title>Appointments List</title> <SCRIPT LANGUAGE="JavaScript"> <!-history. KNL Page 59 .go(+1). //--> </SCRIPT> </HEAD> <jsp:include page="MultiLevelmenu. Statement stmt=null.Designation.jpg" width="37" height="38" border=0 alt=""></a></P> <h2 align=Center>Appointments List</h2> <form name=cons> <table width="20%" align=Left> <% /*Declaration of variables*/ Connection con=null.AppointmentGivento. int DoctorID.cursor='hand'" ><img src="images/printer1.NameOfPatient.NameOfCharity.

stmt = con.println("--1---").width:650px. KNL href="ViewAppointments.jsp? Page 60 .println("--1--"+Query). height:400px. System.getAttribute("connection").out. %><%=e%><% } %> <% if(rs!=null) { //System. GPREC.createStatement().jsp? href="ViewAppointments.out. orderby=((String)request.getParameter("orderby"). String Query = "SELECT * FROM AppointmentsMaster order by "+orderby. System.out.println("Resultset is not null"). System.out.println("Exception"+e). try { /*Getting the connection variable from session*/ con=(Connection)session.jsp? href="ViewAppointments. rs = stmt. %> <!--Displaying the table header--> <!-<br> <DIV STYLE="overflow:scroll.out.executeQuery(Query).getParameter("orderby")==null) (String)request.Experience.Medi-Tracker int NoOfHours.jsp? href="ViewAppointments.">--> ? "AppointmentID": <table width="60%" align=right> <tr class=row_title> <th class=row_title><a class=title orderby=AppointmentID">AppointmentID</a></th> <th class=row_title><a class=title orderby=DoctorName">DoctorName</a></th> <th class=row_title><a class=title orderby=DoctorID">DoctorID</a></th> <th class=row_title><a class=title orderby=Designation">Designation</a></th> DEPT OF CSE.println("--2--"+orderby). } catch(Exception e) { //System.

DisRow++.next()) { AppointmentID=rs.getString(4). DateOfAppointment=rs.getInt(6). PatientID=rs. DoctorID=rs.getInt(10). Designation=rs.getString(2).jsp? orderby=NoOfHours">NoOfHours</a></th> <% int DisRow=0.jsp? orderby=AppointmentGivento">AppointmentGivento</a></th> <th class=row_title><a class=title href="ViewAppointments. NameOfPatient=rs.getString(7).getString(8). NoOfHours=rs.getInt(3). GPREC.getString(5).jsp? orderby=DateOfAppointment">DateOfAppointment</a></th> <th class=row_title><a class=title href="ViewAppointments.jsp? orderby=PatientID">PatientID</a></th> <th class=row_title><a class=title href="ViewAppointments.getInt(1). NameOfCharity=rs.jsp? orderby=NameOfCharity">NameOfCharity</a></th> <th class=row_title><a class=title href="ViewAppointments. /*Getting the values from the database*/ while(rs.getDate(9). %> <tr class= <%=(DisRow%2!=0)? "row_even" : "row_odd"%>> <td align=center><%= AppointmentID%></td> <td align=center><%= DoctorName%></td> <td align=center><%= DoctorID%></td> <td align=center><%= Designation%></td> <td align=center><%= AppointmentGivento%></td> <td align=center><%= PatientID%></td> <td align=center><%= NameOfPatient%></td> <td align=center><%= NameOfCharity%></td> <td align=center><%= DateOfAppointment%></td> <td align=center><%= NoOfHours%></td> <% DEPT OF CSE. AppointmentGivento=rs. KNL Page 61 . DoctorName=rs.Medi-Tracker <th class=row_title><a class=title href="ViewAppointments.jsp? orderby=NameOfPatient">NameOfPatient</a></th> <th class=row_title><a class=title href="ViewAppointments.

lang.*" %> <%@ page session="true" %> <head> <LINK href="styles.css" type="text/css" rel="stylesheet"> <head> <jsp:include page="MultiLevelmenu.close().jsp --> <HTML> <%@ page language="java" %> <%@ page import="java.*" %> <%@ page import="java.jsp: <!-File : Validate. %> <%! String pass_word. if(DisRow==0) { /*To write to the server if the resultset is null*/ %> <CENTER> <tr><th colspan=6>No Records found</th></tr> </CENTER> <% } } %> </table> </form> </BODY> </HTML> <% } %> Validate.sql.htm"/><br><br><br> <body Class=SC> <%@ include file = "Header. %> DEPT OF CSE. GPREC.html" %> <BR><BR><BR> <FONT FACE="Century Gothic"> <%! String user_id.Medi-Tracker } rs. KNL Page 62 .

GPREC. String pas="".equals("") || user_id.Driver").trim().mysql. %> <%-.out."root".getParameter("uid").getParameter("pwd"). Class.println("Redirecting to login to fill all credentials.. //con = DriverManager.println("user_id = "+user_id+" "+"pass_word = "+pass_word).").equals("")) { //System.odbc.println("ok"). KNL Page 63 = . ResultSet rs=null.Medi-Tracker <%! int flag=0.getConnection("jdbc:odbc:medi". DEPT OF CSE.Retrieve parameters from Session --%> <% user_id = request.out."root".JdbcOdbcDriver")."")."").jdbc.jsp"> <jsp:param name="error" value="blankfields" /> </jsp:forward> <% } %> <% try { /*Connection to MS Acess database is made with JDBC class one driver*/ System. %> <jsp:forward page="Login. pass_word = request. %> <% /*Checking for userid and password*/ if(pass_word.forName("com. //Class. System.getConnection("jdbc:mysql://localhost:3306/meditracker". String us="". Statement stmt=null.jdbc.out.forName("sun. con DriverManager. %> <% /*Declaration of variables*/ Connection con=null.

session.equals(s2)) { System.println("User has successfully logged in. %> <jsp:forward page="Home.out.user_id).html"/> <% } else DEPT OF CSE.equals(s1) && pass_word. } %> <% /*If username and password is validated. while(rs. String s2=rs. /*Retrives data from the database*/ rs = stmt.println("database "+s1+ " "+s2 ).out. if(user_id.next()) { String s1=rs. flag=1.getString(1).out. int value = rs. System.Medi-Tracker stmt = con.println("Exception"+e). System.getInt(3).new Integer(value)). GPREC..println(rs). then the user is redirected to homepage*/ if(flag==1) { flag=0. if(!(value < 0 )) session.")..setAttribute("auth".setAttribute("connection".con).getString(2).createStatement().setAttribute("userr". } } } catch(Exception e) { System. KNL Page 64 . /*Puts the username and connection variable to session*/ session.executeQuery("SELECT * from Login ").out.

GPREC.jsp: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.document.*.opener. window. txt.forms(0).txt3Val.value=txt4Val.0 Transitional//EN"> <HTML> <%@ page language="java" %> <%@ page session="true" %> <%@ page import="java.opener.Random"%> <HEAD> <LINK href="styles.sql.ChargesPerDay.java.document.forms(0). var txt2 = window. var txt4 = window.visitingHours.forms(0).java.util.Category.Medi-Tracker { /*If username and password is not valid. txt3.close().RoomID.opener.document.jsp"> <jsp:param name="error" value="invalid" /> </jsp:forward> <% } %> </BODY> </HTML> ShowRooms.opener. } //--> </SCRIPT> DEPT OF CSE.*. then the user is redirected back to Loginpage*/ %> <jsp:forward page="Login.forms(0).document. txt1. var txt3 = window. txt2. txt4.forms(0). var txt1 = window.value = txtVal.document.io.txt1Val.value = txt3Val.opener.value = txt2Val.value = txt1Val.VisitorsAllowed.txt2Val. KNL Page 65 .txt4Val) { var txt = window.css" type="text/css" rel="stylesheet"> <title>ConsolidatedReport</title> <SCRIPT LANGUAGE="JavaScript"> <!-function sendInfo(txtVal.

System. System.createStatement().Category. float ChargesPerDay.getParameter("orderby")==null) (String)request. %><%=e%><% } %> <% if(rs!=null) { DEPT OF CSE. Statement stmt=null.out. System.println("--2--"+orderby). orderby=((String)request.println("--1---"). String orderby="RoomID". String Query = "SELECT * FROM RoomsMaster Where Status =\'Empty\'".NoOfBeds.VisitingHours. ResultSet rs=null.executeQuery(Query).Medi-Tracker </HEAD> <body class="SC"> <h2 align=center>Rooms List</h2> <form name=cons> <center><input type=button value=close onclick="window. GPREC.Status. try { /*Getting the connection variable from session*/ con=(Connection)session.out.println("--1--"+Query).close()"></center> <% /*Declaration of variables*/ Connection con=null.VisitorsAllowed.getAttribute("connection"). KNL Page 66 ? "RoomID": .getParameter("orderby"). rs = stmt. stmt = con.out. } catch(Exception e) { System. String RoomID.out.println("Exception"+e).

getFloat(4).jsp? href="ShowRooms. DEPT OF CSE. /*Getting the values from the database*/ while(rs.next()) { RoomID=rs. ChargesPerDay=rs. height:400px. VisitingHours=rs. %> <tr class= <%=(DisRow%2!=0)? "row_even" : "row_odd"%>> <td><a href="#" onclick="sendInfo('<%=RoomID%>'.out.'<%=Category %>'.close().getString(6).jsp? DisRow++. KNL Page 67 . Category=rs.width:650px. %> <!--Displaying the table header--> <!-<br> <DIV STYLE="overflow:scroll.println("Resultset is not null").">--> <table class=notebook align=center> <tr class=row_title> <th class=row_title><a class=title orderby=RoomID">RoomID</a></th> <th class=row_title><a class=title orderby=Category">Category</a></th> <th class=row_title><a class=title orderby=NoOfBeds">NoOfBeds</a></th> <th class=row_title><a class=title orderby=ChargesPerDay">ChargesPerDay</a></th> <% int DisRow=0.getString(3). GPREC.getString(1). NoOfBeds=rs.'<%=VisitorsAllowed%>'.'<%=ChargesPerDay%>'. href="ShowRooms.getString(5).jsp? href="ShowRooms.jsp? href="ShowRooms.'<%=VisitingHours%>')">< %=RoomID%></a></td> <td><%=Category%></td> <td><%=NoOfBeds%></td> <td><%=ChargesPerDay%></td> <% } rs.Medi-Tracker //System.getString(2). VisitorsAllowed=rs.

KNL Page 68 .value = txtVal.%> <HEAD> <LINK href="styles. txt.sql.0 Transitional//EN"> <HTML> <%@ page language="java" %> <%@ page session="true" %> <%@ page import="java.RoomRent.close().java.close()"> </CENTER> <% } } %> </table> </form> </BODY> </HTML> ShowRoomDetails: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. GPREC. } //--> </SCRIPT> </HEAD> <body class="SC"> <h2 align=center>ShowRoom Details</h2> DEPT OF CSE.util.*.document.*.Random"%> <% String RoomID = request.forms(0).io.getParameter("RoomID").css" type="text/css" rel="stylesheet"> <title>ShowRoom Details</title> <SCRIPT LANGUAGE="JavaScript"> <!-function sendInfo(txtVal) { var txt = window.opener. window.Medi-Tracker if(DisRow==0) { /*To write to the server if the resultset is null*/ %> <CENTER> <tr><th colspan=6>No Records found</th></tr> <input type=button value=close onclick="window.java.

%><%=e%><% } %> <% if(rs!=null) { //System. String Category. } catch(Exception e) { //System. System.close()"></center> <% /*Declaration of variables*/ Connection con=null. System.createStatement().out. KNL Page 69 ? "RoomID": . float ChargesPerDay. %> <!--Displaying the table header--> <br> DEPT OF CSE.println("--2--"+orderby).getAttribute("connection").RoomRent.getParameter("orderby")==null) (String)request.println("Resultset is not null"). ResultSet rs=null.out. Statement stmt=null. try { /*Getting the connection variable from session*/ con=(Connection)session. rs = stmt.executeQuery(Query). System.getParameter("orderby").Medi-Tracker <form name=cons> <center><input type=button value=close onclick="window. stmt = con. orderby=((String)request. String orderby="RoomID".println("--1--"+Query).out. GPREC.println("Exception"+e).out.println("--1---"). String Query = "SELECT * FROM roomsmaster where RoomID="+RoomID.out.

KNL Page 70 .jsp? href="ShowRoomDetails. /*Getting the values from the database*/ href="ShowRoomDetails.width:650px.jsp? href="ShowRoomDetails.getString(1). if(DisRow==0) { /*To write to the server if the resultset is null*/ %> <CENTER> <tr><th colspan=6>No Records found</th></tr> </CENTER> <% } } %> </table> DEPT OF CSE. DisRow++. ChargesPerDay=rs. GPREC.next()) { RoomID=rs.">--> <table class=notebook align=center> <tr class=row_title> <th class=row_title><a class=title orderby=RoomID">RoomID</a></th> <th class=row_title><a class=title orderby=Category">Category</a></th> <th class=row_title><a class=title orderby=ChargesPerDay">ChargesPerDay</a></th> <% int DisRow=0.Medi-Tracker <!-<DIV STYLE="overflow:scroll.getFloat(4). Category=rs. %> <tr class= <%=(DisRow%2!=0)? "row_even" : "row_odd"%>> <td><a href="#" onclick="sendInfo('<%=ChargesPerDay%>')">< %=RoomID%></a></td> <td><%=Category%></td> <td><%=ChargesPerDay%></td> <% } rs. height:400px.jsp? while(rs.close().getString(2).

txt7Val. txt1.value=txt8Val.opener. txt9. KNL Page 71 .forms(0).io.value = txt4Val.opener. txt3.close().forms(0).opener.txt4Val.forms(0). txt6. var txt1 = window. txt.forms(0).0 Transitional//EN"> <HTML> <%@ page language="java" %> <%@ page session="true" %> <%@ page import="java.forms(0).value=txt6Val.opener.Age.document. txt5. var txt2 = window.opener.Natureofillness.Medi-Tracker </form> </BODY> </HTML> ShowPatients.value=txt5Val.forms(0).document.sql.opener.Sex.java.util.document.txt5Val. GPREC. var txt9 = window.forms(0).opener.Insurance.txt8Val.value = txt1Val. var txt6 = window.document.value=txt2Val. txt4.ReferedByDoctor.RoomID.document.value=txt7Val.value = txtVal.document. var txt3 = window.Occupation.java.NameOfPatient.opener.css" type="text/css" rel="stylesheet"> <title>ConsolidatedReport</title> <SCRIPT LANGUAGE="JavaScript"> <!-function sendInfo(txtVal. var txt7 = window.*.document.forms(0).txt3Val.document.PatientID.txt6Val. txt2.DateOfAdmission.txt1Val.value = txt3Val.jsp: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.value=txt9Val.*. var txt5 = window. } //--> </SCRIPT> DEPT OF CSE.opener.txt9Val) { var txt = window. txt8.txt2Val. var txt8 = window.opener.forms(0). txt7.document.Random"%> <HEAD> <LINK href="styles.forms(0).document. window. var txt4 = window.

KNL Page 72 . Date DateOfAdmission. GPREC.println("Exception"+e). System. //String Query = "SELECT * FROM PatientsMaster Where AdmissionAs =\'"InPatient"\' order by "+orderby.close()"></center> <% /*Declaration of variables*/ Connection con=null. String Query = "SELECT * FROM PatientsMaster Where AdmissionAs =\'InPatient\'". Statement stmt=null.Sex.executeQuery(Query).Natureofillness.getAttribute("connection").println("--2--"+orderby).println("--1--"+Query). ResultSet rs=null. orderby=((String)request. %><%=e%><% } %> <% if(rs!=null) { DEPT OF CSE. rs = stmt. } catch(Exception e) { System.createStatement().Age.Insurance.out. stmt = con. String NameOfPatient. int PatientID.out. String orderby="NameOfPatient". System.println("--1---"). try { /*Getting the connection variable from session*/ con=(Connection)session.getParameter("orderby").getParameter("orderby")==null) ? "NameOfPatient": (String)request.Medi-Tracker </HEAD> <body class="SC"> <h2 align=center>InPatients List</h2> <form name=cons> <center><input type=button value=close onclick="window.out.RoomID.Occupation.ReferedByDoctor.out. System.

DisRow++.width:650px.getInt(3).getString(13). GPREC.getString(4). Age=rs.'<%=Occupation%>'.<DIV STYLE="overflow:scroll.'<%=DateOfAdmission%>'. Natureofillness=rs.close(). DateOfAdmission=rs.println("Resultset is not null").getInt(14). height:400px. Sex=rs.Medi-Tracker //System.">--> <table class=notebook align=center> <tr class=row_title> <th class=row_title><a class=title orderby=NameOfPatient">NameOfPatient</a></th> <th class=row_title><a class=title orderby=PatientID">PatientID</a></th> <th class=row_title><a class=title orderby=Natureofillness">Natureofillness</a></th> <% int DisRow=0.out. ReferedByDoctor=rs.getString(10).getString(5).getString(7).jsp? href="ShowPatients. Occupation=rs.'<%=Insurance%>'. if(DisRow==0) DEPT OF CSE.getDate(8). KNL Page 73 . %> <tr class= <%=(DisRow%2!=0)? "row_even" : "row_odd"%>> <td><a href="#" onclick="sendInfo('<%=NameOfPatient%>'. /*Getting the values from the database*/ href="ShowPatients.next()) { NameOfPatient=rs.jsp? while(rs.'<%=Age%>'. Insurance=rs.getInt(2).'<%=Sex%>'.jsp? href="ShowPatients.'<%=Natureofillness %>'.getString(1).'< %=PatientID%>'.'<%=RoomID%>'.'< %=ReferedByDoctor%>')"><%=NameOfPatient%></a></td> <td><%=PatientID%></td> <td><%=Natureofillness%></td> <% } rs. %> <!--Displaying the table header--> <br> <!-. PatientID=rs. RoomID=rs.

DateOfAdmission. window.forms(0).util.opener. var txt1 = window. txt1.NameOfPatient.Medi-Tracker { /*To write to the server if the resultset is null*/ %> <CENTER> <tr><th colspan=6>No Records found</th></tr> </CENTER> <% } } %> </table> </form> </BODY> </HTML> ShowInPatients: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.opener. } //--> </SCRIPT> </HEAD> DEPT OF CSE.sql.Random"%> <HEAD> <LINK href="styles.close(). txt2. txt.*.css" type="text/css" rel="stylesheet"> <title>ConsolidatedReport</title> <SCRIPT LANGUAGE="JavaScript"> <!-function sendInfo(txtVal.value=txt2Val.forms(0).java.value=txt1Val.forms(0). KNL Page 74 .opener.0 Transitional//EN"> <HTML> <%@ page language="java" %> <%@ page session="true" %> <%@ page import="java.document.txt2Val) { var txt = window. var txt2 = window.value = txtVal.txt1Val.Natureofillness.*.document. GPREC.document.io.java.

out.executeQuery(Query). System. //String Query = "SELECT * FROM PatientsMaster Where AdmissionAs =\'"InPatient"\' order by "+orderby. ResultSet rs=null.RoomID.out.println("Exception"+e). String Query = "SELECT * FROM PatientsMaster Where AdmissionAs =\'InPatient\' and Insurance=\'No\'".Sex.MediAssist. try { /*Getting the connection variable from session*/ con=(Connection)session.createStatement(). Statement stmt=null. } catch(Exception e) { System. stmt = con. System.getParameter("orderby")==null) ? "NameOfPatient": (String)request.println("--1---").out. System.Occupation. rs = stmt.Natureofillness.Age.ReferedByDoctor. orderby=((String)request. int PatientID.out. Date DateOfAdmission. String orderby="NameOfPatient". String NameOfPatient.println("--1--"+Query). %><%=e%><% } %> <% if(rs!=null) { DEPT OF CSE. KNL Page 75 .getParameter("orderby").getAttribute("connection").close()"></center> <% /*Declaration of variables*/ Connection con=null.Medi-Tracker <body class="SC"> <h2 align=center>InPatients List</h2> <form name=cons> <center><input type=button value=close onclick="window.println("--2--"+orderby). GPREC.

KNL Page 76 . GPREC. height:400px.close(). %> <tr class= <%=(DisRow%2!=0)? "row_even" : "row_odd"%>> <td><a href="#" onclick="sendInfo('<%=NameOfPatient%>'.println("Resultset is not null").next()) { NameOfPatient=rs.">--> <table class=notebook align=center> <tr class=row_title> <th class=row_title><a class=title orderby=NameOfPatient">NameOfPatient</a></th> <th class=row_title><a class=title orderby=Natureofillness">Natureofillness</a></th> <% int DisRow=0. DisRow++.jsp? href="ShowPatients. DateOfAdmission=rs.getString(1). %> <!--Displaying the table header--> <!-<br> <DIV STYLE="overflow:scroll. /*Getting the values from the database*/ href="ShowPatients.'<%=DateOfAdmission%>')"><%=NameOfPatient%></a></td> <td><%=Natureofillness%></td> <% } rs.width:650px.Medi-Tracker //System. Natureofillness=rs.jsp? while(rs.getDate(8).'< %=Natureofillness%>'. if(DisRow==0) { /*To write to the server if the resultset is null*/ %> <CENTER> <tr><th colspan=6>No Records found</th></tr> </CENTER> <% } } %> DEPT OF CSE.getString(7).out.

DoctorID.*.close()"></center> <% /*Declaration of variables*/ Connection con=null.*.forms(0). ResultSet rs=null. txt1. Statement stmt=null.java. KNL Page 77 .io.css" type="text/css" rel="stylesheet"> <title>ConsolidatedReport</title> <SCRIPT LANGUAGE="JavaScript"> <!-function sendInfo(txtVal.util.opener. var txt1 = window.value=txt2Val.Designation. DEPT OF CSE.close().0 Transitional//EN"> <HTML> <%@ page language="java" %> <%@ page session="true" %> <%@ page import="java. txt2.forms(0). txt. window.document.Medi-Tracker </table> </form> </BODY> </HTML> ShowDoctors: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4. } //--> </SCRIPT> </HEAD> <body class="SC"> <h2 align=center>Doctors List</h2> <form name=cons> <center><input type=button value=close onclick="window.opener.Random"%> <HEAD> <LINK href="styles.opener.value = txt1Val.txt2Val) { var txt = window.document.forms(0).value = txtVal.java. var txt2 = window.txt1Val. GPREC.DoctorName.document.sql.

Medi-Tracker
String orderby="DoctorName"; String DoctorName,Designation; int DoctorID; System.out.println("--1---"); orderby=((String)request.getParameter("orderby")==null) (String)request.getParameter("orderby"); System.out.println("--2--"+orderby); try { /*Getting the connection variable from session*/ con=(Connection)session.getAttribute("connection"); stmt = con.createStatement(); //String Query = "SELECT * FROM PatientsMaster Where AdmissionAs =\'"InPatient"\' order by "+orderby; String Query = "SELECT * FROM DoctorsMaster order by "+orderby; System.out.println("--1--"+Query); rs = stmt.executeQuery(Query); } catch(Exception e) { System.out.println("Exception"+e); %><%=e%><% } %> <% if(rs!=null) { //System.out.println("Resultset is not null"); %> <!--Displaying the table header--> <!-<br> <DIV STYLE="overflow:scroll;width:650px; height:400px;">-->

?

"DoctorName":

<table class=notebook align=center> <tr class=row_title> <th class=row_title><a class=title orderby=DoctorName">DoctorName</a></th> <th class=row_title><a class=title orderby=PatientID">DoctorID</a></th> DEPT OF CSE, GPREC, KNL

href="ShowDoctors.jsp? href="ShowDoctors.jsp?

Page 78

Medi-Tracker
<th class=row_title><a class=title orderby=Natureofillness">Designation</a></th> <% int DisRow=0; /*Getting the values from the database*/ href="ShowDoctors.jsp?

while(rs.next()) { DoctorName=rs.getString(1); DoctorID=rs.getInt(2); Designation=rs.getString(4); DisRow++; %> <tr class= <%=(DisRow%2!=0)? "row_even" : "row_odd"%>> <td><a href="#" onclick="sendInfo('<%=DoctorName%>','<%=DoctorID %>','<%=Designation%>')"><%=DoctorName%></a></td> <td><%=DoctorID%></td> <td><%=Designation%></td> <% } rs.close(); if(DisRow==0) { /*To write to the server if the resultset is null*/ %> <CENTER> <tr><th colspan=6>No Records found</th></tr> <input type=button value=close onclick="window.close()"> </CENTER> <% } } %> </table> </form> </BODY> </HTML>

DEPT OF CSE, GPREC, KNL

Page 79

Medi-Tracker

SYSTEM TESTING

DEPT OF CSE, GPREC, KNL

Page 80

paths between units during integration. 7.Medi-Tracker 7.3. and between subsystems during a system level test. White box Testing: White-box testing (a. Test cases are built around specifications and DEPT OF CSE. clear box testing. KNL Page 81 . White-box test design techniques include:     Control flow testing Data flow testing Branch testing Path testing 7. Specific knowledge of the application's code/internal structure and programming knowledge in general is not required.a.k. are required and used to design test cases. The tester chooses inputs to exercise paths through the code and determine the appropriate outputs. While white-box testing can be applied at the unit. An internal perspective of the system. Though this method of test design can uncover many errors or problems. Testing Fundamentals: Testing is a process of executing a program with the intent of finding an error A good test case is one that has a probability of finding an as yet undiscovered error A successful test is one that uncovers an undiscovered error. in-circuit testing (ICT). Black Box Testing: Black-box testing is a method of testing software that tests the functionality of an application as opposed to its internal structures or workings (see white-box testing).1. It is analogous to testing nodes in a circuit. It can test paths within a unit. integration and system levels of the software testing process.2. or structural testing) is a method of testing software that tests internal structures or workings of an application as opposed to its functionality (black-box testing).g. transparent box testing. e. as well as programming skills. System Testing 7. glass box testing. it is usually done at the unit level. it might not detect unimplemented parts of the specification or missing requirements. GPREC.

For every set of development design. but can also dominate unit testing as well Test Design Techniques Typical black-box test design techniques include:      Decision table testing All-pairs testing State transition tables Equivalence partitioning Boundary value analysis Testing strategy:  A test strategy is an outline that describes the testing portion of the software development cycle. i. including specifications. what the application is supposed to do. requirements. GPREC. and the testing environment. The test strategy describes how the product risks of the stakeholders are mitigated at the test-level. The system design document is the main one used and occasionally. and which entry and exit criteria apply.e. the conceptual design document can be referred to. The test designer selects valid and invalid inputs and determines the correct output. The test strategy is created based on development design documents. It typically comprises most if not all testing at higher levels. and developers about some key issues of the testing process. This method of test can be applied to all levels of software testing: unit. testers.Medi-Tracker requirements. There is no knowledge of the test object's internal structure. which types of test are to be performed. a corresponding test strategy should be created to test the new feature sets.. functional. This includes the testing objective. and design to derive test cases. system and acceptance. It uses external descriptions of the software. KNL Page 82 . It is created to inform project managers.   DEPT OF CSE. methods of testing new functions. total time and resources required for the project. The design documents describe the functionalities of the software to be enabled in the upcoming release. though usually functional. integration. These tests can be functional or non-functional.

The objective is to take unit tested methods and build a program structure that has been dictated by design. Validation refers he set of activities that ensure that the software that has been built is traceable to customer’s requirements Unit Testing: Unit testing focuses verification effort on the smallest unit of software design that is the module. which can be defined as successful when the software functions in the manner reasonably expected by the customer. Software testing is a broader topic for what is referred to as Verification and Validation. GPREC. Verification refers to the set of activities that ensure that the software correctly implements a specific function. The unit test is normally white box testing oriented and the step can be conducted in parallel for multiple modules. Validation Testing: At the end of integration testing software is completely assembled as a package.e. Validation testing is the next stage.. Top-down Integration: Top down integrations is an incremental approach for construction of program structure.4. Because the modules are integrated in the bottom up manner the processing required for the modules subordinate to a given level is always available and the need for stubs is eliminated. while conducting test to uncover errors associated with the interface. modules at the lowest level. KNL Page 83 . Bottom-up Integration: This method as the name suggests. important control paths are tested to uncover errors within the boundaries of the module. Modules subordinate to the main program are incorporated in the structure either in the breath-first or depthfirst manner. begins construction and testing with atomic modules i.Medi-Tracker 7. Reasonable expectations are those defined in the software requirements DEPT OF CSE. Modules are integrated by moving downward through the control hierarchy. beginning with the main control program. Using procedural design description as a guide. Integration Testing: Integration testing is a systematic technique for constructing the program structure. TESTING STRATEGIES A Strategy for software testing integrates software test cases into a series of well planned steps that result in the successful construction of software.

KNL Page 84 . Information contained in those sections form a basis for validation testing approach. GPREC. all work to verify that all system elements have been properly integrated to perform allocated functions. Performance Testing: This method is designed to test runtime performance of software within the context of an integrated system. Security Testing: Attempts to verify the protection mechanisms built into the system. Although each test has a different purpose. System Testing: System testing is actually a series of different tests whose primary purpose is to fully exercise the computer-based system. DEPT OF CSE.Medi-Tracker specifications.

GPREC. KNL Page 85 .Medi-Tracker DATA ENTRY SCREENS DEPT OF CSE.

DATA ENTRY SCREENS The above screen is for admin login. GPREC. KNL Page 86 .Medi-Tracker 8. DEPT OF CSE.

it will display two features. KNL Page 87 . GPREC.Medi-Tracker This is the welcome screen for the admin In the above screen shows the doctors module. In doctors module. 1) view Doctors 2) New Doctor DEPT OF CSE.

KNL Page 88 . DEPT OF CSE. GPREC.Medi-Tracker The above screen shows the Doctors list The above form shows the new doctor’s entry form.

DEPT OF CSE.Medi-Tracker The above screen shows the patients module. KNL Page 89 . The above screen shows the patients information. GPREC.

GPREC. The above screen shows the information about the appointments module. DEPT OF CSE. KNL Page 90 .Medi-Tracker The above screen shows the admission form for the new patient.

DEPT OF CSE.Medi-Tracker The above screen shows the full information of all the doctors appointments. GPREC. KNL Page 91 . The above screen shows the new appointment form for doctor.

Medi-Tracker The above screen shows the information about the Rooms module. The above screen shows the information about all the rooms available in hospital. GPREC. DEPT OF CSE. KNL Page 92 .

DEPT OF CSE.Medi-Tracker The above screen shows the new room form for the new Inpatient. KNL Page 93 . GPREC. The above screen shows the information about the Discharges module.

Medi-Tracker The above screen shows the New Discharge form for the patient. DEPT OF CSE. GPREC. The above screen shows the information about the Insurance Module. KNL Page 94 .

GPREC. The above screen shows the information about the Reports module. KNL Page 95 . DEPT OF CSE.Medi-Tracker The above screen shows the New Insurance form for the new client.

KNL Page 96 . DEPT OF CSE. GPREC.Medi-Tracker The above screen shows the information about one particular Doctor’s schedule Report.

KNL Page 97 . DEPT OF CSE. GPREC.Medi-Tracker The above screen shows the full information about one particular doctor’s schedule report. The above screen shows the administrator’s functionalities.

Medi-Tracker The above screen shows the information about users. KNL Page 98 . The above screen shows the information about to delete one particular user. GPREC. DEPT OF CSE.

KNL Page 99 . The above screen shows the information about the patients. The above screen shows the information about the patients module. GPREC. DEPT OF CSE.Medi-Tracker The above screen is the welcome screen for Doctor.

DEPT OF CSE. GPREC.Medi-Tracker The above screen shows the Reports module. KNL Page 100 . The above screen shows appointment’s report in between two dates for the particular one doctor.

DEPT OF CSE. KNL Page 101 . The above screen shows welcome screen for the manager. GPREC.Medi-Tracker The above screen shows one doctor’s appointment report.

KNL Page 102 . DEPT OF CSE.Medi-Tracker The above screen shows the information about the module Reports. GPREC. The above screen shows the information about the Discharges Report between two particular dates.

KNL Page 103 .Medi-Tracker The above screen shows the information about the Discharges Report between two particular dates. The above screen shows the information about the inpatient’s report between two particular dates. DEPT OF CSE. GPREC.

Medi-Tracker The above screen shows the information about the Inpatients Report between two particular dates. KNL Page 104 . GPREC. DEPT OF CSE. The above screen shows the welcome screen for the Accounts User.

KNL Page 105 . DEPT OF CSE. The above screen shows the information about Bill Details one particular patient. GPREC.Medi-Tracker The above screen shows the information about Reports module.

The above screen shows the information about the Insurance Report between two particular dates. KNL Page 106 .Medi-Tracker The above screen shows the information about the one particular patient. DEPT OF CSE. GPREC.

KNL Page 107 . The above screen shows the information about the user logout function. DEPT OF CSE.Medi-Tracker The above screen shows the information about the Insurance Report between two particular dates. GPREC.

Medi-Tracker CONCLUSION DEPT OF CSE. KNL Page 108 . GPREC.

KNL . This application software has been computed successfully and was also tested successfully by taking “test cases”. The software is developed using Java as front end and Oracle as back end in Windows environment. The goals that are achieved by the software are: • • Instant access. CONCLUSION: The Administration of Super Specialty Hospital Activities is a web-based application for primarily providing training to the employees who provide customized solutions to meet organizational needs. It is user friendly. Improved productivity.Medi-Tracker 9. GPREC. Page 109 DEPT OF CSE. which can be utilized by the user to perform the desired operations. and has required options.

Efficient management of records. KNL Page 110 . GPREC. FUTURE DEPT OF CSE.Medi-Tracker • • • • • Optimum utilization of resources. Less processing time and getting required information. User friendly. Portable and flexible for further enhancement.

GPREC. DEPT OF CSE.Medi-Tracker ENHANCEMETS 10. • Because it is based on object-oriented design. User requirements keep changing as the system is being used. it is possible to upgrade the system and can be adaptable to desired environment. KNL Page 111 . • Based on the future security issues. FUTURE ENHANCEMENTS: It is not possible to develop a system that makes all the requirements of the user. any further changes can be easily adaptable. security can be improved using emerging technologies. Some of the future enhancements that can be done to this system are: • As the technology emerges.

Medi-Tracker • • Attendance module can be added sub admin module can be added DEPT OF CSE. KNL Page 112 . GPREC.

Oracle: PL/SQL Programming by Scott Urman SQL complete reference by Livion JAVA Technologies: JAVA Complete Reference Java Script Programming by Yehuda Shiran Mastering JAVA Security JAVA2 Networking by Pistoria JAVA Security by Scotl oaks Head First EJB Sierra Bates J2EE Professional by Shadab siddiqui DEPT OF CSE.Medi-Tracker BIBLIOGRAPHY 11. BIBLIOGRAPHY: References for the Project Development were taken from the following Books and Web Sites. KNL Page 113 . GPREC.

GPREC. KNL Page 114 . Software Engineering by Roger Pressman DEPT OF CSE.Medi-Tracker JAVA server pages by Larne Pekowsley JAVA Server pages by Nick Todd HTML: HTML Black Book by Holzner JDBC: Java Database Programming with JDBC by Patel moss.

Sign up to vote on this title
UsefulNot useful