Вы находитесь на странице: 1из 36

Healthcare using Ubiquitous

Computing
By
P. Shiva Kumar(09031d2532)

Under the guidance of


Dr. M.Srinivasa Rao
Introduction
Mobile Computing is an umbrella term used
to describe technologies that enable people to
access network services anyplace, anytime,
and anywhere.
Mobile computing has three aspects:
mobile communication,
mobile hardware and
mobile software.
Objective
The main objective of the project is to develop
a mobile application which has.,

1. Health Care System


2. Finding Location

Using Web Services.


Developing Environment
Eclipse IDE

J2ME wireless toolkit 2.0

A Regular PC

WAP enabled mobile


Architecture of the System
System Processing
when a client gives ill-health symptoms as a
request from his mobile, the server provides
information about precautionary measures to
be taken , specialized doctors available at his
location and availability of appointments of a
particular doctor.
Class Diagram
Use case Diagram
Sequence Diagram
MIDlets Life Cycle

MIDlets can be compared


to J2SE applets, except
that their state is more
independent from the
display state.
A MIDlet can exist in four
different states: loaded,
active, paused, and
destroyed. Figure Shows
overview of the MIDlet
lifecycle.
Creating a MIDlet
Creating a MIDlet
Importing MIDP
specific packages

import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
Creating a MIDlet
Extends MIDlet
Implements
CommandListener

public class HelloMIDlet


extends MIDlet
implements CommandListener {
Creating a MIDlet
Creating the
form, adding the
Commands

public HelloMIDlet() {
mMainForm = new Form("HelloMIDlet");
mMainForm.append(new StringItem(null,
"Hello, Seminar Software Design!"));
mMainForm.addCommand(new Command("Exit",
Command.EXIT, 0));
mMainForm.setCommandListener(this);
}
Application
Sample Code
protected void startApp()
{
try
{
//home page
home.append(" "+"\n ");
home.append("Hello \n ");
home.append(source);
home.append("\n Welcome to Personal Health and Wellness");
home.addCommand(Exit);
home.addCommand(Register);
home.addCommand(SignIn);
home.setCommandListener(this);
Display.getDisplay(this).setCurrent(home);
Sample Code
Class.forName("com.mysql.jdbc.Driver");
//-----------------Connecting to database-------------

String url1= "jdbc:mysql://127.0.0.1:3306/personalhealth";


String user="root";
String pwd="root";
con1=DriverManager.getConnection(url1,user,pwd);
st1= con1.createStatement();
ResultSet rs= st1.executeQuery("SELECT disease,prec FROM
symptoms
Sample Code
Database: personalhealth

CREATE TABLE `appoint` (


`doc` varchar(20) default NULL,
`pat` varchar(20) NOT NULL,
`appt` date default NULL,
PRIMARY KEY (`pat`)) ..
JAVA Wireless Toolkit - IDE
MySql
Connectify - interface
Application

Вам также может понравиться