Академический Документы
Профессиональный Документы
Культура Документы
1 INTRODUCTION
1.1 PROBLEM STATEMENT
The problems faced in the field of medical and health care such as the aging of
the population, the increase of chronic patients, the rising medical expenses, and the
needs to improve the quality of medical services are common around the world today.
In order to solve them, information technology (IT) must be deployed to this field. In
recent years, medical information systems play an increasingly important role in
supporting doctors and nurses, enhancing the quality of medical services, reducing the
medical expenses, and improving the care of chronic patients. Therefore, medical
informatization has drawn more and more attention in various countries.
ASTI CSEDEPT
1.5 OBJECTIVE
We aim the use of information technology and management systems for the
betterment of health care is more and more important and popular. And In this paper,
we present PHISP It can support numerous health care tasks, provide individuals with
ASTI CSEDEPT
many intelligent and personalized services, and support basic remote health care and
guardianship.
2 PROJECT DESCRIPTION
2.1 USER INTERFACE DESIGN
This is the first module of our project. User Interface Design plays an important
role for the user to move login window to user window. This module has created for the
purpose of how many users are interacting with our website. In this login page we have
to enter login user name and password. It will check username and password is match
or not (valid username and valid password). If we enter any invalid username or
password we cant enter into login window to user window it will shows error message.
So we are preventing some unauthorized user entering into the login window to user
window. It will provide a good security for our project. So server contain user name
and password server also check the authentication of the user. It well improves the
security and preventing from unauthorized user enters into the admin login.
Patient Registration
Patient Login
Interaction
Data Base
Patient Window
ASTI CSEDEPT
Error Page
Patient Window
service, Personal health risk assessment service ,Based on the preliminary diagnostic
results and the EMR information of a patient, this service can assess the status of the
patients health risk. Personal health guidance service. According to the preliminary
diagnostic results and EMR information of a patient, it can provide the patient with
preventive measures, things to be cared and other health guidance. Personal health realtime warning service, It can warn the user about the signs of certain disease. All round
intervention service.
ASTI CSEDEPT
Patient Window
Patient Diet and Environmental Information
Service 1
Service2
Service n
ASTI CSEDEPT
ASTI CSEDEPT
ASTI CSEDEPT
3 LITERATURE SURVEY
3.1 DEFINITIONS
3.1.1 Effective web service composition in diverse and large-scale service networks
Description
Web services are considered to be a potential silver bullet for the envisioned
Service Oriented Architecture, in which loosely coupled software components are
published, located, and executed as integral parts of distributed applications. The main
research focus of Web services is to achieve the interoperability between distributed
and heterogeneous applications. Therefore, flexible composition of Web services to
fulfill the given challenging requirements is one of the most important objectives in this
research field. However, until now, service composition has been largely an error-prone
and tedious process. Furthermore, as the number of available Web services increases,
finding the right Web services to satisfy the given goal becomes intractable. In this
paper, toward these issues, we propose an AI planning-based framework that enables
the automatic composition of Web services, and explore the following issues. First, we
formulate the Web service composition problem in terms of AI planning and network
optimization problems to investigate its complexity in detail. Second, we analyze
publicly available Web service sets using network analysis techniques. Third, we
develop a novel Web service benchmark tool called WS Ben. Fourth, we develop a
novel AI planning-based heuristic Web service composition algorithm named WSPR.
Finally, we conduct extensive experiments to verify WSPR against state-of-the-art AI
planners. It is our hope that both WSPR and WS Ben will provide useful insights for
researchers to develop Web service discovery and composition algorithms, and
software.
Author : Seog-Chan Oh, Dongwon Lee, and Soundar R.T. Kumara
Year
: 2008
ASTI CSEDEPT
ASTI CSEDEPT
10
: 2006.
ASTI CSEDEPT
11
Year
: 2005
ASTI CSEDEPT
12
: 2006
ASTI CSEDEPT
13
ASTI CSEDEPT
: 2004
14
: 2005.
ASTI CSEDEPT
15
16
3.3.2ALGORITHM
ASTI CSEDEPT
17
ASTI CSEDEPT
18
ASTI CSEDEPT
19
3.4 APPLICATIONS
Health care management
The term managed care or managed health care is used in the United States to
describe a variety of techniques intended to reduce the cost of providing health benefits
and improve the quality of care ("managed care techniques") for organizations that use
those techniques or provide them as services to other organizations ("managed care
organization" or "MCO"), or to describe systems of financing and delivering health
care to enrollees organized around managed care techniques and concepts ("managed
care delivery systems"). According to the United States National Library of Medicine,
the term "managed care" encompasses programs.
ASTI CSEDEPT
20
FRONT END
BACK END
OPERATING SYSTEM
IDE
WINDOWS 07
NET BEANS
PROCESSOR
DUO.
RAM
MONITOR
HARD DISK
:
:
:
512 MB DD RAM
15 COLOR
40 GB
ASTI CSEDEPT
21
platform. The language derives much of its syntax from C and C++ but has a simpler
object model and fewer low-level facilities. Java applications are typically compiled to
byte code that can run on any Java Virtual Machine (JVM) regardless of computer
architecture. Java is general-purpose, concurrent, class-based, and object-oriented, and
is specifically designed to have as few implementation dependencies as possible. It is
intended to let application developers "write once, run anywhere".
Java is considered by many as one of the most influential programming
languages of the 20th century, and is widely used from application software to web
applications. The java framework is a new platform independent that simplifies
application development internet. Java technology's versatility, efficiency, platform
portability, and security make it the ideal technology for network computing. From
laptops to datacenters, game consoles to scientific supercomputers, cell phones to the
Internet, Java is everywhere!
Objectives of Java
To see places of Java in Action in our daily life, explore java.com.
Why Software Developers Choose Java
Java has been tested, refined, extended, and proven by a dedicated community. And
numbering more than 6.5 million developers, it's the largest and most active on the
planet. With its versatility, efficiency, and portability, Java has become invaluable to
developers by enabling them to:
ASTI CSEDEPT
22
Write software on one platform and run it on virtually any other platform
Develop server-side applications for online forums, stores, polls, HTML forms
processing, and more
Write powerful and efficient applications for mobile phones, remote processors,
low-cost consumer products, and practically any other device with a digital
heartbeat
23
4. Dynamic binding: Sometimes we don't have the knowledge of objects about their
specific types while writing our code. It is the way of providing the maximum
functionality to a program about the specific type at runtime.
JAVA SERVER PAGES
Java Server Pages or JSP for short is Sun's solution for developing dynamic web
sites. JSP provide excellent server side scripting support for creating database driven
web applications. JSP enable the developers to directly insert java code into jsp file,
this makes the development process very simple and its maintenance also becomes very
easy.
JSP pages are efficient, it loads into the web servers memory on receiving the
request very first time and the subsequent calls are served within a very short period of
time. In todays Environment most web sites servers dynamic pages based on user
request. Database is very convenient way to store the data of users and other things.
JDBC provide excellent database connectivity in heterogeneous database environment.
Using JSP and JDBC its very cease to develop database driven web application.
Java is known for its characteristic of "write once, run anywhere." JSP pages
are plat Java Server Pages Java Server Pages (JSP) technology is the Java platform
technology for delivering dynamic content to web clients in a portable, secure and welldefined way. The Java Server Pages specification extends the Java Servlet API to
provide web application developers with a robust framework for creating dynamic web
content on the server using HTML, and XML templates, and Java code, which is
secure, fast, and independent of server platforms.
JSP has been built on top of the Servlet API and utilizes Servlet semantics. JSP
has become the preferred request handler and response mechanism. Although JSP
technology is going to be a powerful successor to basic Servlet, they have an
evolutionary relationship and can be used in a cooperative and complementary manner.
Servlet are powerful and sometimes they are a bit cumbersome when it comes to
generating complex HTML. Most Servlet contain a little code that handles application
logic and a lot more code that handles output formatting. This can make it difficult to
separate and reuse portions of the code when a different output format is needed. For
ASTI CSEDEPT
24
these reasons, web application developers turn towards JSP as their preferred Servlet
environment.
ASTI CSEDEPT
25
The main characteristics of today's dynamic web server applications are as follows:
1. Serve HTML and XML, and stream data to the web client
2. Separate presentation, logic and data
3. Interface to databases, other Java applications, and CORBA, directory and mail
services
4. Make use of application server middleware to provide transactional support.
5. Track client sessions.
Benefits of JSP
One of the main reasons why the Java Server Pages technology has evolved into
what it is today and it is still evolving is the overwhelming technical need to simplify
application design by separating dynamic content from static template display data.
Another benefit of utilizing JSP is that it allows to more cleanly separating the roles of
web application/HTML designer from a software developer. The JSP technology is
blessed with a number of exciting benefits, which are chronicled as follows:
The JSP technology is platform independent, in its dynamic web pages, its web
servers, and its underlying server components. That is, JSP pages perform perfectly
without any hassle on any platform, run on any web server, and web-enabled
application server. The JSP pages can be accessed from any web server.
The JSP technology emphasizes the use of reusable components. These
components can be combined or manipulated towards developing more purposeful
components and page design. This definitely reduces development time apart from the
At development time, JSPs are very different from Servlet, however, they are
precompiled into Servlet at run time and executed by a JSP engine which is installed on
a Web-enabled application server such as BEA Web Logic and IBM Web Sphere.
ASTI CSEDEPT
26
Servlet
Earlier in client- server computing, each application had its own client program
and it worked as a user interface and need to be installed on each user's personal
computer. Most web applications use HTML/XHTML that is mostly supported by all
the browsers and web pages are displayed to the client as static documents.
A web page can merely displays static content and it also lets the user navigate
through the content, but a web application provides a more interactive experience.
Any computer running Servlet or JSP needs to have a container. A container is
nothing but a piece of software responsible for loading, executing and unloading the
Servlet and JSP. While Servlet can be used to extend the functionality of any Javaenabled server.
They are mostly used to extend web servers, and are efficient replacement for
CGI scripts. CGI was one of the earliest and most prominent server side dynamic
content solutions, so before going forward it is very important to know the difference
between CGI and the Servlet.
Java Servlet
Java Servlet is a generic server extension that means a java class can be loaded
dynamically to expand the functionality of a server. Servlet are used with web servers
and run inside a Java Virtual Machine (JVM) on the server so these are safe and
portable.
Unlike applets they do not require support for java in the web browser. Unlike
CGI, Servlet don't use multiple processes to handle separate request. Servlet can be
handled by separate threads within the same process. Servlet are also portable and
platform independent.
A web server is the combination of computer and the program installed on it.
Web server interacts with the client through a web browser. It delivers the web pages to
the client and to an application by using the web browser and he HTTP protocols
respectively.
ASTI CSEDEPT
27
The define the web server as the package of large number of programs installed
on a computer connected to Internet or intranet for downloading the requested files
using File Transfer Protocol, serving e-mail and building and publishing web pages. A
web server works on a client server model.
JSP and Servlet are gaining rapid acceptance as means to provide dynamic
content on the Internet. With full access to the Java platform, running from the server in
a secure manner, the application possibilities are almost limitless. When JSPs are used
with Enterprise JavaBeans technology, e-commerce and database resources can be
further enhanced to meet an enterprise's needs for web applications providing secure
transactions in an open platform.
J2EE technology as a whole makes it easy to develop, deploy and use web
server applications instead of mingling with other technologies such as CGI and ASP.
There are many tools for facilitating quick web software development and to easily
convert existing server-side technologies to JSP and Servlet.
ASTI CSEDEPT
28
ASTI CSEDEPT
29
5 SYSTEM DESIGN
Design Engineering deals with the various UML [Unified Modeling language]
diagrams for the implementation of project. Design is a meaningful engineering
representation of a thing that is to be built. Software design is a process through which
the requirements are translated into representation of the software. Design is the place
where quality is rendered in software engineering. Design is the means to accurately
translate customer requirements into finished product.
ASTI CSEDEPT
30
ASTI CSEDEPT
31
login
Hospital Information
Admin
Pharmacy Information
user
Medical Information
Feed Back
ASTI CSEDEPT
32
user login
hospital
information
pharmacy
information
medical
reports
some other
information
access
feed back
ASTI CSEDEPT
33
Data Base
Error Page
Patient Window
Level-1:
Patient window
Cloud Data
Encapsulating Services
Feedback Unit
ASTI CSEDEPT
34
login
hospital
information
login valid
pharmacy
information
user access
feedback1
user2
feedback2
user3
ASTI CSEDEPT
feed back
35
feedback3
login
hospital
information
2: login valid
3: user1
5: user2
7: user3
user
access
pharmacy
information
4: feedback1
6: feedback2
8: feedback3
feed
back
36
A class diagram in the UML is a type of static structure diagram that describes
the structure of a system by showing the systems classes, their attributes, and the
relationships between the classes. Private visibility hides information from anything
outside the class partition. Public visibility allows all other classes to view the marked
information. Protected visibility allows child classes to access information they
inherited from a parent class.
Medical_Informati
on
new medicines
old medicines
expiry date
login
username
password
insert()
update()
delete()
login()
validate()
registration
username
password
phone number
emailid
validate()
insert()
choose()
Hospital_Informati
on
address
websites
phone numbers
show()
update()
FeedBack
excellent
good
average
bad
insert()
modify()
ASTI CSEDEPT
37
new medicines
old medicines
expiry date
username
password
insert()
update()
delete()
login()
validate()
registration
username
password
phone number
emailid
validate()
insert()
choose()
Hospital_Informati
on
address
websites
phone numbers
show()
update()
38
FeedBack
excellent
good
average
bad
insert()
modify()
name
account
Patient
admin
id
address
mailid
Doctor
name
admin
specialist
name
Hospital
specialization
EMR
Cloud Data
Patient Information
admin
6 CODING
ASTI CSEDEPT
39
LOGIN:
<!DOCTYPE html>
<!-- Website template by freewebsitetemplates.com -->
<html>
<head>
<meta charset="UTF-8">
<title>Services - Medical Hospital Website Template</title>
<link rel="stylesheet" href="css/style.css" type="text/css">
</head>
<body>
<div class="background">
<div class="page">
<a href="index.html" id="logo">phisiotherapy Hospital</a>
<div class="sidebar">
<ul>
<li>
<a href="index.jsp">Home</a>
</li>
<li>
<a href="login.jsp">Login</a>
</li>
<li>
<a href="programs.jsp">Programs</a>
ASTI CSEDEPT
40
</li>
<li class="selected">
<a href="services.jsp">Services</a>
</li>
<li>
<a href="blog.jsp">Blog</a>
</li>
<li>
<a href="contact.jsp">Contact</a>
</li>
</ul>
<div class="first">
<div>
<a href="user.jsp"><h2>User Login</h2></a>
<a href="admin.jsp"><h2>Admin Login</h2></a>
</div>
</div>
<div>
<div>
<img src="images/doctors-and-nurse.jpg" alt="">
</div>
</div>
</div>
ASTI CSEDEPT
41
<div class="body">
<div class="services">
<div>
<div>
<div>
<h4>These are the services sufficiently provided</h4>
<img src="images/services2.jpg" alt="">
<p align="justify">
</p>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
© Copyright 2013. All rights reserved
</p>
</div>
</div>
</div>
</body>
</html>
ASTI CSEDEPT
42
Register page:
<form
name="frm"
action="Register"
method="post"
validateForm()">
<table>
<tr>
<td>Name:</td>
<td><input type="text" name="rname"></td>
</tr>
<tr>
<td>User Name:</td>
<td><input type="text" name="runame"></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="rpassword"></td>
</tr>
<tr>
<td>Confirm Password:</td>
<td><input type="password" name="rcpassword"></td>
</tr>
<tr>
<td>Gender:</td>
<td>
ASTI CSEDEPT
43
onsubmit="return
<input
type="radio"
name="gender">Male
type="radio"name="gender">Female</td>
</tr>
<tr>
<td>Date Of Birth:</td>
<td><select name="date">
<%
for (int i = 1; i <= 31; i++) {
%>
<option value="<%=i%>"><%=i%></option>
<%
}
%>
</select> <select name="month">
<option value="na">Month</option>
<option value="1">January</option>
<option value="2">February</option>
<option value="3">March</option>
<option value="4">April</option>
<option value="5">May</option>
<option value="6">June</option>
<option value="7">July</option>
<option value="8">August</option>
<option value="9">September</option>
ASTI CSEDEPT
44
<input
<option value="10">October</option>
<option value="11">November</option>
<option value="12">December</option>
</select> <select name="year">
<%
%>
<option value="<%=i%>"><%=i%></option>
<%
}
%>
</select></td>
</tr>
<tr>
<td>Mobile:</td>
<td>
<input type="text" name="rmobile"></td>
</tr>
<tr>
<td>Email:</td>
ASTI CSEDEPT
45
<td>
<input type="text" name="remail"></td>
</tr>
<tr>
<td colspan="1">
<input type="submit" value="submit"></td>
<td><input type="reset" value="reset"></td>
</tr>
</table>
</form>
Implementation of Health Care Services:
function solution()
{
alert(" enter the correct detai");
var s=document.getElementById("problem").value;
alert(s);
var a;
var x="solutions.jsp?val="+s;
if (window.XMLHttpRequest)
{// If the browser if IE7+FirefoxChromeOperaSafari
a=new XMLHttpRequest();
}
else
{//If browser is IE6, IE5
a=new ActiveXObject("Microsoft.XMLHTTP");
}
a.onreadystatechange=function()
{
if (a.readyState==4 && a.status==200)
{
document.getElementById("information").innerHTML=a.responseText;
}
ASTI CSEDEPT
46
}
a.open("POST",x,true);
a.send();
}
Encapsulated Services:
<!DOCTYPE html>
<!-- Website template by freewebsitetemplates.com -->
<html>
<head>
<meta charset="UTF-8">
<title>Services - Medical Hospital Website Template</title>
<link rel="stylesheet" href="css/style.css" type="text/css">
</head>
<body>
<div class="background">
<div class="page">
<a href="index.html" id="logo">phisiotherapy Hospital</a>
<div class="sidebar">
<ul>
<li>
<a href="index.jsp">Home</a>
</li>
<li>
<a href="login.jsp">Login</a>
</li>
<li>
<a href="programs.jsp">Programs</a>
</li>
<li class="selected">
<a href="services.jsp">Services</a>
</li>
<li>
<a href="blog.jsp">Blog</a>
</li>
<li>
<a href="contact.jsp">Contact</a>
</li>
</ul>
<div class="first">
<div>
<img src="images/man.jpg" alt="">
</div>
</div>
<div>
<div>
ASTI CSEDEPT
47
html
PUBLIC
"-//W3C//DTD
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
ASTI CSEDEPT
48
HTML
4.01
Transitional//EN"
<meta charset="UTF-8">
<title>Services - Medical Hospital Website Template</title>
<link rel="stylesheet" href="css/style.css" type="text/css">
</head>
<% %>
<body bgcolor="Gray">
<div class="background">
<div class="page">
<a href="index.html" id="logo">phisiotherapy Hospital</a>
<div class="sidebar">
<ul>
<li>
<a href="index.jsp">Home</a>
</li>
<li>
<a href="login.jsp">Login</a>
</li>
<li>
<a href="programs.jsp">Programs</a>
</li>
<li class="selected">
<a href="services.jsp">Services</a>
</li>
<li>
<a href="blog.jsp">Blog</a>
</li>
<li>
<a href="contact.jsp">Contact</a>
</li>
</ul>
<div class="first">
<div>
<img src="images/man.jpg" alt="">
</div>
</div>
<div>
<div>
<img src="images/doctors-and-nurse.jpg" alt="">
</div>
</div>
</div>
<div class="body">
<div class="services">
<div>
<img src="images/services2.jpg" alt=""><br /><br />
<font color="Blue" size="25">
ASTI CSEDEPT
49
ASTI CSEDEPT
50
Connection con=DBClass.con();
Statement st =con.createStatement();
ResultSet rs = st.executeQuery("select * from problemswithmedicines");
while (rs.next())
{
String s1 = rs.getString(1).trim();
String s2 = rs.getString(2).trim();
String s3 = rs.getString(3).trim();
String s4 = rs.getString(4).trim();
String s5 = rs.getString(5).trim();
String s6 = rs.getString(6).trim();
String s7 = rs.getString(7).trim();
%>
<tr align="left">
<td><input type="checkbox" name="ch" value="<%=s1%>"/></td>
<td><%=s1%></td>
<td><%=s2%></td>
<td><%=s3%></td>
<td><%=s4%></td>
<td><%=s5%></td>
<td><%=s6%></td>
<td><%=s7%></td>
</tr>
<%
}
%>
ASTI CSEDEPT
51
52
void
doGet(HttpServletRequest
request,
HttpServletResponse
doPost(HttpServletRequest
request,
HttpServletResponse
53
54
<div class="programs">
<div>
<div>
<div class="featured">
<img src="images/sharing.jpg" alt="">
<p>
</p>
</div>
<div>
<h4 align="left" style="color: blue;">Give Your FeedBack</h4>
</div>
<div>
<form action="FeedBack" method="post">
<table style="background-color: gray;">
<tr>
<td align="center">Name</td><td>:</td><td><input type="text"
name="fname"/></td><br /><br />
</tr>
<tr>
<td>Description</td><td>:</td><td><textarea name="fdescription" rows="3"
cols="15" style=" "></textarea></td><br />
</tr>
<tr>
<td align="center">Mailid</td><td>:</td><td><input type="text"
name="fmailid"/></td>
</table><br />
<tr > <input type="submit" value="submit"></tr>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
© Copyright 2013. All rights reserved
</p>
</div>
</div>
</div>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page import="user.FeedBack,java.sql.*" %>
ASTI CSEDEPT
55
56
57
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
dbcon=DriverManager.getConnection("Jdbc:Odbc:HealthCare");
/* st=dbcon.createStatement();*/
}
catch(Exception e)
{e.printStackTrace();}
return dbcon;
}
public static int
register(ArrayList al) throws ClassNotFoundException,
SQLException
{
ResultSet rs;
String rname=al.get(0).toString();
String runame=al.get(1).toString();
String rpwd=al.get(2).toString();
String rcpwd=al.get(3).toString();
String rgender=al.get(4).toString();
String rage=al.get(5).toString();
String rmobile=al.get(6).toString();
String remail=al.get(7).toString();
String ruserid=al.get(8).toString();
int i=0;
try
{
rs=con().createStatement().
executeQuery("select
uname
from
registration
where
uname='"+runame+"'");
if(rs.next())
{System.out.println("avoid duplicates");}
else{
PreparedStatement ps=con().prepareStatement("insert into registration
values(?,?,?,?,?,?,?,?,?)");
ps.setString(1, rname);
ps.setString(2, runame);
ps.setString(3, rpwd);
ps.setString(4, rcpwd);
ps.setString(5, rgender);
ps.setString(6, rage);
ps.setString(7, rmobile);
ps.setString(8, remail);
ps.setString(9, ruserid);
i=ps.executeUpdate();
}
}catch(Exception e)
{
ASTI CSEDEPT
58
e.printStackTrace();
}
return i;
}
public static int authentic(ArrayList al)
{
int count=0;
String runame=al.get(0).toString();
String rpwd=al.get(1).toString();
try{
Statement st=con().createStatement();
ResultSet rs=st.executeQuery("select * from registration
where uname='"+runame+"' and password='"+rpwd+"'");
while(rs.next())
{
count++;
}
}
catch(Exception e)
{
e.printStackTrace();
}
return count;
}
public static int insert(ArrayList al) throws ClassNotFoundException,
SQLException
{
int i=0;
String problem=al.get(0).toString();
String tab1=al.get(1).toString();
String des1=al.get(2).toString();
String tab2=al.get(3).toString();
String des2=al.get(4).toString();
String tab3=al.get(5).toString();
String des3=al.get(6).toString();
try
{
PreparedStatement
ps=con().prepareStatement("insert
problemswithmedicines values (?,?,?,?,?,?,?)");
ps.setString(1, problem);
ps.setString(2, tab1);
ps.setString(3, des1);
ps.setString(4, tab2);
ps.setString(5, des2);
ps.setString(6, tab3);
ASTI CSEDEPT
59
into
ps.setString(7, des3);
i=ps.executeUpdate();
}
catch(SQLException e)
{e.printStackTrace();}
return i;
}
/*public static int delete(ArrayList al)
{
int i=0;
for(int j=0; j<al.size();j++)
{
String s=al.get(0).toString().trim();
try {
Statement st=con().createStatement();
i=st.executeUpdate("delete from problemswithmedicines
where problem='"+s+"'");
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return i;
}
*/
public static int delete(ArrayList al)
{
boolean b = false;
int j=0;
try
{
Statement st = con().createStatement();
for (int i = 0; i < al.size(); i++)
{
String d = al.get(i).toString().trim();
j=st.executeUpdate("delete
from
problemswithmedicines
problem='"+d+"'");
}
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
ASTI CSEDEPT
60
where
return j;
}public static int feedback(ArrayList al)
{
// TODO Auto-generated method stub
int i=0;
String name=al.get(0).toString().trim();
String description=al.get(1).toString().trim();
String mailid=al.get(2).toString().trim();
try
{
PreparedStatement
ps=con().prepareStatement("insert
into
feedback
values(?,?,?)");
ps.setString(1, name);
ps.setString(2, description);
ps.setString(3, mailid);
i=ps.executeUpdate();
} catch (SQLException e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}return i;
}
/*public static String fileSearch(String filename)
{
String res="file not found";
try{
Statement st=con().createStatement();
ResultSet
rs=st.executeQuery("select
filename='"+filename+");
while(rs.next())
{
} }catch(Exception e)
{
e.printStackTrace();
ASTI CSEDEPT
61
from
cloud_data
where
}
return res;
}*/}
Pharmacy details
<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@page import="java.util.Iterator"%>
%@page import="java.util.ArrayList"%
%@page import="com.dbpack.DBClass"%
<%@
page language="java" contentType="text/html;
charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html lang="en">
<head>
<title>SERVICES | MEDICAL CENTER
NAME - Free Website Template from Web-Flash-Template.com</title>
<meta name="description" content="Place your description here" />
<meta name="keywords" content="put, your, keyword, here" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="Web-Flash-Template.com - We deliver
best flash website templates" />
<link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
<link rel="stylesheet" href="css/layout.css" type="text/css" media="all">
<link rel="stylesheet" href="css/style.css" type="text/css" media="all">
</head>
<body id="page6">
<div class="wrap"><!-- header -->
<div class="header">
<div class="container">
<h1 id="for_all"><a href="index.html">Medical Center</a></h1>
<div class="nav">
<ul>
<liclass="m1"><a
href="index.html"><span><b>Home</b></span></a></li>
ASTI CSEDEPT
62
<liclass="m2"><a
href="articles.html"><span><b>Articles</b></span></a></li>
<li class="m3">
<a href="about_us.html"><span><b>About us</b></span></a>
</li>
<li class="m4">
<a
href="services.html"
class="active"><span><b>Service</b></span></a></li>
<li class="m5 last">
<a href="contacts-us.html"><span><b>Contacts</b></span></a></li>
</ul>
</div></div></div>
<div class="container">
<!-- aside -->
<div class="aside">
<div class="inside">
<h2>Latest News</h2>
<ul class="news">
<li><a href="#">June
30,
2010</a><strong>Sed
ut
perspiciatis
14,
2010</a><strong>Neque
porro
quisquam
63
<li>
<a href="index.html">Home Page</a>
</li>
<li>
<a href="about-us.html">About Us</a>
</li>
<li>
<a href="articles.html">Articles</a>
</li>
<ul>
<li>
<a href="article.html">Article 1</a>
</li>
<li>
<a href="article.html">Article 2</a>
</li>
<li>
<a href="article.html">Article 3</a>
</li>
</ul>
</li>
<li><a href="contact-us.html">Contact Us</a></li>
<li><a href="sitemap.html">Site Map</a></li>
</ul> -->
<h2>THE FOLLOWING ARE THE PHARMACY DETAILS FOR THE
PATIENT</h2>
<%String patientid=(String)session.getAttribute("patientid");
System.out.println("patient id is \t"+patientid);
DBClass db=new DBClass();
String diseaseName=db.getDiseaseName(patientid);
System.out.println("disease name is \t"+diseaseName);
ArrayList list=DBClass.retrieveMedicines(diseaseName.trim());
System.out.println("the list values is"+list);
System.out.println("the list values is"+list.get(0).toString().trim());
Iterator iterator=list.iterator();
while(iterator.hasNext())
{
String disease=iterator.next().toString().trim();
String tablet1=iterator.next().toString().trim();
String reaction1=iterator.next().toString().trim();
String tablet2=iterator.next().toString().trim();
String reaction2=iterator.next().toString().trim();
String tablet3=iterator.next().toString().trim();
String reaction3=iterator.next().toString().trim();
%>
ASTI CSEDEPT
64
65
<div id="twitter">
<a href="http://twitter.com/#!/wflashtemplate/"><img src="images/twitter.png"
alt="" /></a></div>
<div id="youtube">
<a href="http://www.youtube.com/user/WebFlashTemplateCom">
<img src="images/youtube.png" alt="" /></a>
</div>
</div>
<div class="inside"> Copyright © 2013. All right reserved. Image
from BigStockPhoto.com © Kurhan<br>
<a href="http://www.web-flash-template.com/" class="visit" title="Best
website
templates.">Website template</a> designed by web-flash-template.com </div>
</div>
</div>
</body>
</html>
7 TESTING
The purpose of testing is to discover errors. Testing is the process of trying to
discover every conceivable fault or weakness in a work product. It provides a way to
check the functionality of components, sub assemblies, assemblies and/or a finished
product it is the process of exercising software with the intent of ensuring that the
Software system meets its requirements and user expectations and does not fail in an
ASTI CSEDEPT
66
unacceptable manner. There are various types of test. Each test type addresses a
specific testing requirement. The process verifies that the application meets the
requirements specified in the system requirements document and is bug free.
Invalid Input
Functions
Output
67
68
8 OUTPUT SCREENS
Snapshot is nothing but every moment of the application while running. It gives
the clear elaborated of application. It will be useful for the new user to understand for
the future steps.
HOMEPAGE
ASTI CSEDEPT
69
LOGIN
ASTI CSEDEPT
70
USERLOGIN
ASTI CSEDEPT
71
USERREGISTRATION
ASTI CSEDEPT
72
KEYGENERATION
ASTI CSEDEPT
73
PATIENTLOGIN
ASTI CSEDEPT
74
PATIENTTREATMENT
ASTI CSEDEPT
75
ENCAPSULATEDSERVICES
ASTI CSEDEPT
76
FEEDBACK
ASTI CSEDEPT
77
USERFEEDBACK
ASTI CSEDEPT
78
ADMINLOGIN
ASTI CSEDEPT
79
ADMINMONITORINGRECORD
ASTI CSEDEPT
80
FILLTHERECORDS
ASTI CSEDEPT
81
CLOUDADMINLOGIN
ASTI CSEDEPT
82
GLOBALLYREGISTEREDUSERID
ASTI CSEDEPT
83
PATIENTDETAILES
ASTI CSEDEPT
84
DOCTORREGISTRATION
ASTI CSEDEPT
85
DOCTORKEY
ASTI CSEDEPT
86
DOCTORLOGIN
ASTI CSEDEPT
87
PATIENTALLOTED
ASTI CSEDEPT
88
PHARMACYDETAILES
ASTI CSEDEPT
89
9 CONCLUSION
ASTI CSEDEPT
90
In the field of medical treatment and health care, existing work, including
projects, researches, software
mainly focuses
on
10 FUTURE SCOPE
ASTI CSEDEPT
91
The medical and health care platform that we have implemented is only a
research and demonstration system. For its large-scale commercial applications, much
more work is needed. Further improvement and optimization of the proposed
composition methods supporting branch and parallel structures is another future
research, including learning from the work on automatic program synthesis and the
technique of multi agent planning and optimization. However, few efforts are directly
oriented to the patients, their families, and other general users. With the rapid
development of information and communication technologies and the change of
medical and health care service models, creating various public-oriented health care
service systems has become a trend.
11 REFERENCES
ASTI CSEDEPT
92
ASTI CSEDEPT
93
ASTI CSEDEPT
94