<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Nizar Zarka, Mohammad Moayad Mansour and Alaa Saleh Higher Institute for Applied Sciences and Technologies Informatics Department Damascus</institution>
          ,
          <country country="SY">Syria</country>
        </aff>
      </contrib-group>
      <fpage>13</fpage>
      <lpage>18</lpage>
      <abstract>
        <p>-This paper presents a mobile healthcare system based on Android and Web applications. The system provides assistance to patients, identifies and selects doctors based on the location and the specialties of the doctors. The system allows patients to make appointments with doctors and assigns reminders to take the prescribed medications and vaccinations. The results of testing the applications show a big saving of time and mobility of doctors and patients.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>II. MOBILE HEALTHCARE SYSTEM DESIGN</title>
      <p>Our healthcare system is composed of three parts; the
mobile application, the web application and the web service
as it shows in Figure 1. The mobile application synchronizes
with the Web application using the Web service where data
can be transferred via GPRS, 3G or WIFI. This system enables
data communication between patients and doctors and saves
lots of time and efforts in mobility.</p>
      <p>Copyright c 2016 held by the authors.</p>
      <p>The use case diagram for our healthcare system is shown in
Figure 2. The use case diagram of the patient includes patient
account, check vaccinations, schedule an appointment with
reminder, reminder for medications and application update.
The use case diagram of the doctor includes vaccination
details, schedule a patient appointment, write a prescription,
check patient’s medical history and manage patient’s visit.
Admin is responsible of updating all resources including
doctors, patients, vaccinations and medications.
which reduces the complexity of the Web application and
increases its extensibility.</p>
      <p>
        MySQL is used for creating the database of the Web
application. As shown in the database schema in Figure 4 there are
three types of users: Admin, Doctor and Patient. The database
contains several tables such as drug table, vaccination table,
and appointment table. The database tables are encapsulated
with models, the views are developed using HTML, CSS3 and
JavaScript. The Bootstrap library, an open source, is used to
create responsive interfaces. The Grocery CRUD [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], an open
source framework used to create the admin panel used to do
actions such as create, read, write and update on database
tables.
      </p>
    </sec>
    <sec id="sec-2">
      <title>IV. THE MOBILE APPLICATION</title>
      <p>The system works as follows: The patient describes his
symptoms using the mobile application or the Web application.</p>
      <p>The system identifies and selects doctors registered in the
system, based on their location, specialties and availability.</p>
      <p>The patient takes his appointment with a doctor found in the
system from a list of available time slots. The doctor consults
the medical history of the patient and adds his diagnosis
and prescribed medications. Medications are scheduled in the
calendar of the patient’s mobile phone with reminders to
take the medications and this allows monitoring the patient’s
medical status. The system reminds the parents of children of
the compulsory and optional vaccinations, depending on their
childrens ages. The system proposes a list of doctors who have
the vaccinations and helps to schedule an appointment with the
doctor. The vaccinations are then added to the patients medical
history.</p>
      <p>
        The mobile application is developed using Android Studio,
for Ice Cream Sandwich version and later [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. The design
      </p>
      <p>
        III. THE WEB APPLICATION in Figure 5 is composed of six packages; the main, the
The Web application is implemented using CodeIgniter connections, the adapters, the fragments, the parsers and the
framework 3.0, an open source framework, built on the Model models. The main package contains the activities, the login
View Controller (MVC design) [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] to develop Web application. and signup activities and the interfaces of the application. The
Figure 3 shows that the MVC separates the design into three Connection package manages sending and receiving data via
layers; the database layer, the view layer and the control layer, the Web. The adapter package displays menus in List View.
The fragment package contains the sub views. The parser
package decodes and parses the received JSON [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] formatted
data using Gson open source library [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. The model package
contains the classes that encapsulate the tables of the database.
      </p>
      <p>
        SQLITE [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] is used for the database of the mobile
application. It is encapsulated with Sugar ORM [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] as it shows in
Figure 6.
      </p>
      <p>The mobile database is synchronized with the Web
application database as it shows in Figure 7.</p>
      <p>The times and dates of the prescribed medications are saved
in the calendar of the patients mobile phone with notifications
to take the medications on time. These notifications allow the
patient to keep up with his treatment and helps him monitoring
his medical status as it shows in Figure 8.</p>
    </sec>
    <sec id="sec-3">
      <title>V. WEB SERVICE</title>
      <p>
        Figure 9 shows the RESTFUL Web service [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] which
is designed to answer data request call from either the web
application throws AJAX [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] or from the mobile application
through HttpURL connection. The Service Consumers (Web
application and the mobile application) use functions from
the Web service to exchange data such as sign in, sign up,
appointments with doctors, vaccinations and medications using
the HTTP verbs (GET, POST, PUT, DELETE) and all the
responses are in JSON format.
      </p>
    </sec>
    <sec id="sec-4">
      <title>VI. THE TESTS OF THE WEB APPLICATION The Web application is tested on a local network and local server using Xampp [13]. Figure 10 shows the home page of the Web application.</title>
      <p>Fig. 10. Web Application Home Page</p>
      <p>When a user logs as a patient to the Web application he
will be directed to the patient page as shown in Figure 11.</p>
      <p>The patient can schedule an appointment with a doctor, view
his appointments and his medical history. The patient can also
view the compulsory and the optional vaccinations as it shows
in in Figure 12.</p>
      <p>When a user logs as a doctor to the Web application he will
be directed to the doctor page as shown in Figure 13.</p>
      <p>The doctor can view the information of his patients and their
medical history. He can also view the available vaccinations in
the system and all requested appointments sent by his patients
as shown in Figure 14.</p>
      <p>Fig. 14. Doctor Appointments</p>
    </sec>
    <sec id="sec-5">
      <title>VII. THE TESTS OF THE MOBILE APPLICATION</title>
      <p>The mobile application is tested using a variety of emulators
of Android Development Tools from Google, and on several
smartphones such as Galaxy Grand 2, Galaxy Core Prime, and
Sony Xperia C. The applications are tested by the students and
the employees of the Higher Institute for Applied Sciences and
Technology and we noticed a big satisfactions of the users in
time saving and mobility. Figure 15 and Figure 16 show the
mobile application signed by a patient and its interfaces.</p>
      <p>Figure 17 and 18 show the prescribed medications to a
patient and the details of each medication.</p>
      <p>Figure 19 and Figure Figure 20 show the appointments of
a patient and his request for a new appointment.</p>
      <p>A mobile healthcare system based on Android and Web
applications is presented. The system provides medical
assistance to patients and save time and mobility. The applications
allow patients to make appointments with doctors and assigns
reminders for the prescribed medications and vaccinations.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>S.</given-names>
            <surname>Singh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Khadamkar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Kumar</surname>
          </string-name>
          and
          <string-name>
            <given-names>V.</given-names>
            <surname>Maramwar</surname>
          </string-name>
          , Healthcare Services Using Android Devices,
          <source>The International Journal Of Engineering And Science (IJES)</source>
          , vol.
          <volume>3</volume>
          , issue 4, pp.
          <fpage>41</fpage>
          -
          <lpage>45</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>N.</given-names>
            <surname>Zarka</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Hinnawi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Dardari</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Tayyan</surname>
          </string-name>
          ,
          <article-title>Patient keeper medical application on mobile phone, ICTTA</article-title>
          , IEEE,
          <fpage>19</fpage>
          -
          <lpage>23</lpage>
          April
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>J.</given-names>
            <surname>Mosa</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Yoo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Sheets</surname>
          </string-name>
          ,
          <article-title>A Systematic Review of Healthcare Applications for Smartphones</article-title>
          ,
          <source>BMC Med Inform Decis Mak</source>
          .
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>W.</given-names>
            <surname>Cui</surname>
          </string-name>
          ,
          <source>The Research of PHP Development Framework, Fourth International Conference on Computer Sciences and Convergence Information Technology</source>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>S.</given-names>
            <surname>Brouwer</surname>
          </string-name>
          ,
          <string-name>
            <surname>P. De Br</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Montes</surname>
            <given-names>Garcia</given-names>
          </string-name>
          ,
          <article-title>Framework for Adaptive Web-Based Systems</article-title>
          ,
          <source>Master Thesis</source>
          , Eindhoven University of Technology,
          <year>August 29</year>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>J.P. CHAUDHARI</surname>
          </string-name>
          ,
          <article-title>Android 4.0 ice cream Sandwich Analysis</article-title>
          and Research,
          <source>World Research Journal of Biologically-Inspired Computing</source>
          ,
          <fpage>2278</fpage>
          -
          <lpage>8506</lpage>
          , Volume
          <volume>1</volume>
          ,
          <string-name>
            <surname>Issue</surname>
            <given-names>1</given-names>
          </string-name>
          ,
          <year>2012</year>
          , pp.-
          <volume>01</volume>
          -07.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>D.</given-names>
            <surname>PENG Boas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>CAO</surname>
          </string-name>
          and
          <string-name>
            <given-names>W.</given-names>
            <surname>XU</surname>
          </string-name>
          .
          <article-title>Oliveira, Using JSON for Data Exchanging in Web Service Applications</article-title>
          ,
          <source>Journal of Computational Information Systems</source>
          <volume>7</volume>
          :
          <fpage>16</fpage>
          ,
          <year>2011</year>
          ,
          <fpage>5883</fpage>
          -
          <lpage>5890</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>T.</given-names>
            <surname>Boas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Novais</surname>
          </string-name>
          , T. Oliveira,
          <article-title>Development and Implementation of Automatized Clinical Practice Guidelines</article-title>
          , Masters Degree in Computer Science School of Engineering, University of Minho,
          <year>November 2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>S.</given-names>
            <surname>Bhosale</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Patil</surname>
          </string-name>
          and
          <string-name>
            <given-names>P.</given-names>
            <surname>Patil</surname>
          </string-name>
          , SQLite: Light Database System,
          <string-name>
            <surname>IJCSMC</surname>
          </string-name>
          , Vol.
          <volume>4</volume>
          ,
          <issue>Issue</issue>
          . 4,
          <string-name>
            <surname>April</surname>
            <given-names>2015</given-names>
          </string-name>
          <source>, pg.882 885.</source>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>S.</given-names>
            <surname>Narayan Sugar</surname>
          </string-name>
          <string-name>
            <surname>ORM</surname>
          </string-name>
          , Retrieved from: http://satyan.github.io/sugar/index.html.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>T.</given-names>
            <surname>Fredrich</surname>
          </string-name>
          , RESTful Service Best Practices, 29 May
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>A.</given-names>
            <surname>MESBAH</surname>
          </string-name>
          ,
          <string-name>
            <surname>A. VAN DEURSEN</surname>
          </string-name>
          and
          <string-name>
            <given-names>S. LENSELINK</given-names>
            ,
            <surname>Crawling</surname>
          </string-name>
          <string-name>
            <surname>AJAX</surname>
          </string-name>
          -
          <article-title>Based Web Applications through Dynamic Analysis of User Interface State Changes</article-title>
          ,
          <source>ACM Transactions on the Web</source>
          , Vol.
          <volume>6</volume>
          , No. 1,
          <string-name>
            <surname>Article</surname>
            <given-names>3</given-names>
          </string-name>
          ,
          <string-name>
            <surname>March</surname>
          </string-name>
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>D.</given-names>
            <surname>Dvorski</surname>
          </string-name>
          , Installing, configuring, And developing with Xampp, Skills Canada, Ontario,
          <year>March 2007</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>