1).P.Sai Prasad 2)Patil Nayana.Y3).Thakor Swapnali S Dr on Click Abstract-- Dr on click is an Android based mobile application. In this paper we have developed an application to facilitate the patients to search a nearest hospital based on specialist(otho,nero,cardiology etc) using GCD(Great Circle Distance ) algorithm and proposing extended features like On line Appointment,Prescription alerts,view and send their possible test reports to their doctors via Android mobile device. Also extending this application to view the map from patient current location to actual location of hospital using Google API. Therefore in the emergency case using this application patient can search nearest hospital by selecting specialist then check the available doctors list then take the appointment then get prescription alerts and also view and send test reports to doctor. Index Terms Android, GPS (Global Positioning System ) GCD(Great Circle Distance),Haversine formula, GCM(Google Cloud Messaging),Haversine,Google API. 1. INTRODUCTION Now a days human beings are using technology in every time and everywhere rapidly. Human beings are trying to use the systems which are running automatically and also using intelligent devices easily and more comfortable. Smart phones is one of devices that changes and affect human life in many ways because today smart phone having different functions to support different user interests. There are different categories of smart-phones based on the operating system installed in it,there are Android,windows mobile,ios,linux,blackberry,symbian and others.but in smart phone market Android Os become popular so quickly, Mobile application development trend also still growing up so fast. All countries looking towards smart cities,it means everything should be accessible easily without wasting time,money,and with fully secured way, Furthermore in research and development world the publications on mobile applications are also become popular. Many things or issues are concentrated on using Google API and GCM to solve different problems in mobile applications. Furthermore many people are showing interest in 1. P. Sai Prasad is an Assistant professor in Dept of Computer Engineering,SRESCOE,Kopargaon. (email:psaiprasadcse@com) 2. Patil Nayana Y is B.E (Comp) Student in Dept of Computer Engineering,SRESCOE,Kopargaon 3. Thakor Swapnali.S is B.E (Comp) Student in Dept of Computer Engineering,SRESCOE,Kopargaon developing applications related to health care and medical issues.for example Sposaro et al.[2][3] proposed an Android application for dementia patients and an Android for fall monitoring and response for elderly person. The authors focused on dementia patients and elderly persons to prevent them to lost when the symptom is active and alert when they fall on the ground, respectively. Challa et al. [4] also presented an Android application to view the patient records remotely and gives suggestions accordingly. Komwit Surachat, Supasit Kajkamhaeng[1] in their First Aid Application on Mobile Device paper they proposed that in emergency the system will navigate the patient to nearest hospital using Google Maps API. In this paper, Dr on Click application development to search nearest hospital based on chosen specialist (Ortho,Neuro,cardic etc) and also proposing other functionalities like On line appointment,prescription alerts,send and view test reports are explained. The information about the methods are given later in section 2 and 3. The next section gives brief background knowledge,about GCD,GPS (Global Positioning System ),Haversine formula Google API and GCM. Section 3 describes our application design and implementation. Also,the System architecture of this application and some pseudo code are illustrated. Finally, the conclusion is drawn in section 4. 2. BACKGROUND 2.1 Hospital Searching in general The person who aware of location,address of hospital,specialists available in that particular hospital can directly go to the hospital and can take appointment priorly.if a person don't have an idea about hospital location and available specialists can't go easily and can't get appointment and also it is time consuming process to go to hospital and take an appointment priorly even if hospital is known to the person. This application provides an efficient mechanism to search a nearest hospital location and gives the direction to reach the hospital. Here Haversine formula is used in calculating distance between patient current location to hospital location. 2.2 Appointment In general to consult a doctor patient need to take an appointment in advance,for this patient has to go physically to the hospital or patient has to call to the hospital representative to take appointment in advance,it is time consuming process to both patient and representative also it may not be accurate also. This application reduce the all problems in regular
system. 2.3 Prescription Alerts Every time it is not possible to remember which medicine has to take when it should take.this application gives reminder to the patient specifying that which medicine has to take and what is the dosage. 2.4 Report View and Send It is not easy to maintain previous test reports on paper and also patient has to consult the doctor to verify test report for further treatment so patient has to go physically. If patient is in remote area again it is time consuming process.this application facilitate the user to send the reports to doctor and to view the past reports so that doctor can suggest further treatment. 2.5 GCM (Google Cloud Messaging) GCM (Google Cloud Messaging) is a service which allows to send push messages to Android devices from the server. The google server involved in taking message from third party application i.e. Web Application of doctor/pa and sending them to the patient s mobile device. For use of GCM mobile device must include at least one google account. 2.6 Haversine Formula The Haversine formula is an important equation in navigation, giving great-circle distances between two points on a sphere from their longitudes and latitudes. By using this formula it is easy to calculate distance between patient and registered hospital. For any two points on a sphere, the haversine of the central angle between them is given by haversine ( d/r)= haversine(φ 2 φ 1 ) + cos(φ 1 ) cos(φ 2 )haversine(λ 2 λ 1 ) where d : is the distance between the two points, r : is the radius of the sphere, φ 1, φ 2 : latitude of point1 and latitude of point2, λ 1, λ 2 : longitude of point1 and longitude of point2 2.7 GPS (Global Positioning System ) The Global Positioning System (GPS) is a space-based navigation system that provides location information (latitude,longitude)in all weather conditions, anywhere on or near the earth. This is helpful for searching hospital as well as registering the hospital. Fig. 1 Simple Google maps API example. 3.APPLICATION DESIGN AND IMPLEMENTATION The Design of Application mainly consists of four modules they are 1.Admin 2. Doctor 3.Patient 4.Pathologist. Admin is the central person of each hospital,the Following are Admin responsibilities. a. Register the hospital. b. Enroll available departments. c. Enroll the doctor list The Following are Doctor responsibilities a. Login b. Set the Schedule(for Appointments) c. Give the Prescription d. View and Recommend test The Following are Patient responsibilities a. Register and Login b. Choose Specialist to search nearest hospital c. Check the availability of doctor then take appointment d. Get prescription alerts e. View and send test reports. The Following are pathologist responsibilities a. Register and Login b. View Recommended test by doctor c. Send the test report to both doctor and patient. 3.1 System Architecture Fig 2 Illustrates the system architecture 2.8 Google Map API Google Maps API is the application program interface based on Google Maps as shown in Fig. 1.It helps to navigate from current location to selected location.
Fig 4 Illustrates Enrollment of Departments Fig 4.Enrollment of Departments Fig 5 Illustrates Enrollment of Doctor 3.2 Implementation Fig. 2 System Architecture. Admin has to register his hospital location to store location's Geo point(latitude and longitude) in database for this he should have GPS enabled Android mobile. After successful registration using web application he has to enroll all the departments available in hospital and enroll the doctors available.during the enrollment he has to give doctor id and password. Fig 3. is Sample Hospital registration form. Fig 5.Enrollment of Doctors Doctor will login with his login id and password then a) Set his Appointment details specifying DATE FROM To Max Patients 1/09/2015 10.00 AM 11.30 AM 20 Table 1. Doctor Appointment b) Check the Appointed patients List then give the prescription by specifying Medicine Date From Date To Frequency Paracetimal 1/09/2015 3/9/2015 Every 6 Hours. Table 1. Prescription c)doctor check his Inbox to View the Report of Patient. d) Recommend the test in following manner Consultation ID Test for Pathologist ID Fig 3. Hospital Registration 10001 Blood SaiGanesh(01) Table 2. Test Recommendation
Patient Login with his User id and password then search nearest hospital by selecting the specialist. Fig 6 illustrates how hospital can be searched. hospital information. Fig 6. Select Specialist In Fig 6 patient has selected ENT specialist.after this patient will get List of Hospital having ENT specialists. Fig 7 gives sample Hospital Lists Fig 8. Hospital Information After this patient can View the map of location and View the list of doctors,then doctor profile then doctor availability,then take an appointment. After consultation of doctor patient will get the prescription alerts as per the doctor entry of prescription (Table 1) and also patient can view his previous reports as well as he can send any test reports to his doctor from remote location,so that doctor can advice for further treatment. 3.3 Sample Pseudo Code to Searching an hospitals <?php $objconnect = mysql_connect("mysql3.000webhost.com","a9443212_ root","swap148"); $objdb = $objconnect); mysql_select_db("a9443212_hr", $v4=$_request['f1']; $lav1=$_request['f2']; $lov1=$_request['f3']; $floatlav1 = (float)$lav1; $floatlov1 = (float)$lov1; Fig 7. List of Hospitals In Fig 7 patient has selected joshi hospital.after this Patient will get Hospital information. Fig 8 gives $strsql="select hospitalname, addressl1, addressl2,username,( 6371 * acos( cos( radians($floatlav1 ) ) * cos( radians( latitude ) ) * cos( radians( longitude ) -
radians($floatlov1) ) + sin( radians($floatlav1) ) * sin( radians( latitude ) ) ) ) AS distance FROM registration WHERE username IN ( SELECT username FROM hos_specialist WHERE specialist = '$v4') HAVING distance <100 ORDER BY distance LIMIT 0, 20"; $objquery = mysql_query($strsql); $intnumfield = mysql_num_fields($objquery); $resultarray = array(); while($obresult = mysql_fetch_array($objquery)) { $arrcol = array(); for($i=0;$i<$intnumfield;$i++) { $arrcol[mysql_field_name($objquery,$i)] = $obresult[$i]; } array_push($resultarray,$arrcol); } mysql_close($objconnect); echo json_encode($resultarray);?> 4.CONCLUSION The Android application Dr on Click helps the patient for searching the hospitals with the desired medical specialist. This application is used to simplify the task of the patient and doctor. Patient can take on line appointment so that time of patient will be saved. Using this application notifications / alerts can be send to patient to remind about the medicines. It will useful in case of patient tends to forget for taking the medicine. It helps to optimize the work of patient and doctor. Time and cost of both patients and doctors will be saved. The Dr. On Click is a simple and powerful application for society. 5.Acknowledgment The authors gratefully acknowledge the contributions of Parikh Shubam A, Thorat Pooja K for their help in the preparation of this document. 6.References [1] Komwit Surachat, Supasit Kajkamhaeng, "First Aid Application on Mobile Device " International Scholarly and Scientific Research & Innovation 7(5) 2013. [2] F. Sposaro, J. Danielson, G. Tyson, "iwander: An Android application for dementia patients", in Proc. 2010 Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Argentina, 2010, pp. 3875-3878. [3] F.Sposaro, G. Tyson, "ifall: An android application for fall monitoring and response", in Proc. Annual International Conference of the IEEE Engineering in Medicine and Biology Society, USA, 2009, pp. 6119-6122. [4] S. Challa, "Patient Data Viewer: An Android application for healthcare",in Proc. 2011 Annual IEEE India Conference, India, 2011, pp. 1-4..