<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "http://dtd.nlm.nih.gov/publishing/2.0/journalpublishing.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="2.0">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">JMU</journal-id>
      <journal-id journal-id-type="nlm-ta">JMIR Mhealth Uhealth</journal-id>
      <journal-title>JMIR mHealth and uHealth</journal-title>
      <issn pub-type="epub">2291-5222</issn>
      <publisher>
        <publisher-name>JMIR Publications</publisher-name>
        <publisher-loc>Toronto, Canada</publisher-loc>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="publisher-id">v8i2e16063</article-id>
      <article-id pub-id-type="pmid">32130165</article-id>
      <article-id pub-id-type="doi">10.2196/16063</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Original Paper</subject>
        </subj-group>
        <subj-group subj-group-type="article-type">
          <subject>Original Paper</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Automatic Work-Hours Recorder for Medical Staff (Staff Hours): Mobile App Development</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="editor">
          <name>
            <surname>Eysenbach</surname>
            <given-names>Gunther</given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Lognos</surname>
            <given-names>B?atrice</given-names>
          </name>
        </contrib>
        <contrib contrib-type="reviewer">
          <name>
            <surname>Lee</surname>
            <given-names>Li-Ang</given-names>
          </name>
        </contrib>
      </contrib-group>
      <contrib-group>
        <contrib id="contrib1" contrib-type="author">
          <name name-style="western">
            <surname>Chiang</surname>
            <given-names>Ting-Wei</given-names>
          </name>
          <degrees>BSE</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-3022-1803</ext-link>
        </contrib>
        <contrib id="contrib2" contrib-type="author">
          <name name-style="western">
            <surname>Chen</surname>
            <given-names>Si-Yu</given-names>
          </name>
          <degrees>MSc</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0002-6920-3936</ext-link>
        </contrib>
        <contrib id="contrib3" contrib-type="author">
          <name name-style="western">
            <surname>Pan</surname>
            <given-names>Yuan-Chien</given-names>
          </name>
          <degrees>MSc</degrees>
          <xref rid="aff2" ref-type="aff">2</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0001-9497-6909</ext-link>
        </contrib>
        <contrib id="contrib4" contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>Lin</surname>
            <given-names>Yu-Hsuan</given-names>
          </name>
          <degrees>MD, PhD</degrees>
          <xref rid="aff1" ref-type="aff">1</xref>
          <address>
            <institution>Institute of Population Health Sciences</institution>
            <institution>National Health Research Institutes</institution>
            <addr-line>Room A3234, No 35 Keyan Road, Zhunan Town</addr-line>
            <addr-line>Miaoli County, 35053</addr-line>
            <country>Taiwan</country>
            <phone>886 37206166 ext 36383</phone>
            <email>yuhsuanlin@nhri.edu.tw</email>
          </address>
          <xref rid="aff3" ref-type="aff">3</xref>
          <xref rid="aff4" ref-type="aff">4</xref>
          <xref rid="aff5" ref-type="aff">5</xref>
          <ext-link ext-link-type="orcid">https://orcid.org/0000-0001-9393-3886</ext-link>
        </contrib>
      </contrib-group>
      <aff id="aff1">
        <label>1</label>
        <institution>Institute of Population Health Sciences</institution>
        <institution>National Health Research Institutes</institution>
        <addr-line>Miaoli County</addr-line>
        <country>Taiwan</country>
      </aff>
      <aff id="aff2">
        <label>2</label>
        <institution>Department of Psychology</institution>
        <institution>National Taiwan University</institution>
        <addr-line>Taipei</addr-line>
        <country>Taiwan</country>
      </aff>
      <aff id="aff3">
        <label>3</label>
        <institution>Department of Psychiatry</institution>
        <institution>National Taiwan University Hospital</institution>
        <addr-line>Taipei</addr-line>
        <country>Taiwan</country>
      </aff>
      <aff id="aff4">
        <label>4</label>
        <institution>Department of Psychiatry, College of Medicine</institution>
        <institution>National Taiwan University</institution>
        <addr-line>Taipei</addr-line>
        <country>Taiwan</country>
      </aff>
      <aff id="aff5">
        <label>5</label>
        <institution>Institute of Health Behaviors and Community Sciences, College of Public Health</institution>
        <institution>National Taiwan University</institution>
        <addr-line>Taipei</addr-line>
        <country>Taiwan</country>
      </aff>
      <author-notes>
        <corresp>Corresponding Author: Yu-Hsuan Lin <email>yuhsuanlin@nhri.edu.tw</email></corresp>
      </author-notes>
      <pub-date pub-type="collection">
        <month>2</month>
        <year>2020</year>
      </pub-date>
      <pub-date pub-type="epub">
        <day>25</day>
        <month>2</month>
        <year>2020</year>
      </pub-date>
      <volume>8</volume>
      <issue>2</issue>
      <elocation-id>e16063</elocation-id>
      <history>
        <date date-type="received">
          <day>30</day>
          <month>8</month>
          <year>2019</year>
        </date>
        <date date-type="rev-request">
          <day>29</day>
          <month>10</month>
          <year>2019</year>
        </date>
        <date date-type="rev-recd">
          <day>7</day>
          <month>11</month>
          <year>2019</year>
        </date>
        <date date-type="accepted">
          <day>15</day>
          <month>12</month>
          <year>2019</year>
        </date>
      </history>
      <copyright-statement>©Ting-Wei Chiang, Si-Yu Chen, Yuan-Chien Pan, Yu-Hsuan Lin. Originally published in JMIR mHealth and uHealth (http://mhealth.jmir.org), 25.02.2020.</copyright-statement>
      <copyright-year>2020</copyright-year>
      <license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/">
        <p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR mHealth and uHealth, is properly cited. The complete bibliographic information, a link to the original publication on http://mhealth.jmir.org/, as well as this copyright and license information must be included.</p>
      </license>
      <self-uri xlink:href="http://mhealth.jmir.org/2020/2/e16063/" xlink:type="simple"/>
      <abstract>
        <sec sec-type="background">
          <title>Background</title>
          <p>There are numerous mobile apps for tracking work hours, but only a few of them record work hours automatically instead of relying on manual logging. No apps have been customized for medical staff, whose work schedules are highly complicated as they have both regular hours and on-call duties.</p>
        </sec>
        <sec sec-type="objective">
          <title>Objective</title>
          <p>The specific aims of this study were to (1) identify the <italic>Staff Hours</italic> app users’ GPS-defined work hours, (2) examine the overtime work hours from the app-recorded total work hours and the participants’ self-reported scheduled work hours, and (3) compare these app-recorded total work hours among different occupations.</p>
        </sec>
        <sec sec-type="methods">
          <title>Methods</title>
          <p>We developed an app, <italic>Staff Hours</italic>, to automatically calculate a user’s work hours via GPS background data. Users can enter their scheduled hours, including regular hours and on-call duties. The app automatically generates overtime reports by comparing the app-recorded total work hours with the user-defined scheduled hours. A total of 183 volunteers (60 females and 123 males; mean age 32.98 years, SD 6.74) were included in this study. Most of the participants (162/183, 88.5%) were medical staff, and their positions were resident physicians (n=89), visiting staff (n=38), medical students (n=10), registered nurses (n=25), and non–health care professionals (non-HCPs; n=21).</p>
        </sec>
        <sec sec-type="results">
          <title>Results</title>
          <p>The total work hours (mean 55.69 hours, SD 21.34) of the 183 participants were significantly higher than their scheduled work hours (mean 50.67 hours, SD 21.44; <italic>P</italic>=.01). Medical staff had significantly longer total work hours (mean 57.01 hours, SD 21.20) than non-HCPs (mean 45.48 hours, SD 20.08; <italic>P</italic>=.02). Residents (mean 60.38 hours, SD 18.67) had significantly longer work hours than visiting staff (mean 51.42 hours, SD 20.33; <italic>P</italic>=.03) and non-HCPs (mean 45.48 hours, SD 20.08; <italic>P</italic>=.004).</p>
        </sec>
        <sec sec-type="conclusions">
          <title>Conclusions</title>
          <p><italic>Staff Hours</italic> is the first automatic GPS location–based app designed for medical staff to track work hours and calculate overtime. For medical staff, this app could keep complete and accurate records of work hours in real time, reduce bias, and allow for better complying with labor regulations.</p>
        </sec>
      </abstract>
      <kwd-group>
        <kwd>smartphone</kwd>
        <kwd>mobile apps</kwd>
        <kwd>medical staff</kwd>
        <kwd>global positioning system</kwd>
        <kwd>shift work schedule</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec sec-type="introduction">
      <title>Introduction</title>
      <sec>
        <title>Background</title>
        <p>Long work hours and shift work increase the risk of both physiological and psychological distress [<xref ref-type="bibr" rid="ref1">1</xref>-<xref ref-type="bibr" rid="ref6">6</xref>], including cardiovascular disease [<xref ref-type="bibr" rid="ref7">7</xref>] and depressive symptoms [<xref ref-type="bibr" rid="ref8">8</xref>]. Medical staff, especially trainee physicians, work for a large number of hours per week and have a heavy workload. Systematic reviews have reported that such long working shifts and erratic schedules result in numerous adverse consequences in patient care [<xref ref-type="bibr" rid="ref9">9</xref>]. In 2003, the Accreditation Council for Graduate Medical Education implemented the first work-hour restriction policy for all physicians in training in the United States, limiting resident physicians’ workweeks to 80 hours and shifts to 30 hours [<xref ref-type="bibr" rid="ref10">10</xref>]. In Taiwan, similar policies by the Ministry of Health and Welfare limited workweeks to 88 hours in 2013 [<xref ref-type="bibr" rid="ref11">11</xref>]. However, surveying medical interns’ compliance with the 2003 work-hour limits in the United States using a traditional assessment took 2 years; the resulting national survey was published in 2006 [<xref ref-type="bibr" rid="ref10">10</xref>]. In addition, these self-reports do not reflect the fluctuations of work hours in real time, especially for medical staff with frequent on-call duties.</p>
      </sec>
      <sec>
        <title>Prior Work</title>
        <p>Nowadays, smartphones offer us an objective and ecological source of measurement that continuously and passively collects data [<xref ref-type="bibr" rid="ref12">12</xref>]. These reliable, quantitative data could facilitate real-time policy evaluation and target resources to those with the greatest need for them, even in remote and inaccessible regions. As of July 2019, the Google Play Store and iPhone Operating System (iOS) App Store had about 500 mobile apps dealing with the tracking of work hours [<xref ref-type="bibr" rid="ref13">13</xref>]. However, most of those apps require manual entries or active clocking in and out. Fewer than 20 of those apps are capable of automatic timekeeping using various technologies such as GPS geofencing or Wi-Fi detections. Furthermore, medical personnel’s work hours could not be identified solely by GPS geofencing technology. Physicians often have several on-call duties every month. During their on-call duty, physicians have to be physically present at the hospital or be on-call at home. In addition, some medical staff practice in more than 1 institution, and these patterns of work hours could not be identified by a simple GPS geofencing algorithm.</p>
      </sec>
      <sec>
        <title>Goal of This Study</title>
        <p>We herein report the design of the app <italic>Staff Hours</italic>, which automatically calculates users’ work hours through GPS data. Automatic recording of exact working hours is highly beneficial for people with erratic work schedules. This GPS-based work-hours recorder would not need users to precisely log their work hours by manual input or clocking in and out. The specific aims of this study were to (1) identify the app users’ GPS-defined work hours, (2) examine the overtime work hours from the app-recorded total work hours and the participants’ self-reported scheduled work hours, and (3) compare these app-recorded total work hours among different occupations.</p>
      </sec>
    </sec>
    <sec sec-type="methods">
      <title>Methods</title>
      <sec>
        <title>Participants</title>
        <p>We collected data on 183 office workers from July 30, 2018, to August 25, 2019, using the <italic>Staff Hours</italic> database. All participants were volunteers interested in their work hours, and workers who lived within a 1-km radius from their workplaces were excluded from this study. Of these participants, 123 were males and 60 were females, and their mean age was 32.98 (SD 6.74) years. Most of the participants (162/183, 88.5%) were medical staff, and their positions were resident physicians (n=89), visiting staff (n=38), medical students (n=10), registered nurses (n=25), and non–health care professionals (non-HCPs; n=21). All clinical investigations were conducted according to the principles expressed in the Declaration of Helsinki.</p>
      </sec>
      <sec>
        <title>Design of the Staff Hours App</title>
        <p><italic>Staff Hours</italic> is a mobile app designed to record work hours automatically using the technology of geofencing. As medical staff, along with most office workers, work at fixed locations, geolocation data are valid indicators of whether one is at work. On the basis of this principle, we developed algorithms to log the exact work hours from GPS data; these hours are called <italic>GPS-defined work hours</italic>. Furthermore, this app can perform overtime calculations by comparing the regular work schedule defined by the user and the corresponding GPS results.</p>
        <p><italic>Staff Hours</italic>, which was designed and developed by our team, is now available exclusively in Taiwan through the iOS App Store and the Google Play Store. The app runs in the background and records GPS information every 10 min with low power consumption. For iOS users, the app should be kept <italic>in use</italic> to function correctly, either in the foreground or background.</p>
        <sec>
          <title>Algorithm for GPS-Defined Work Hours</title>
          <p>Upon installation, users would be asked to fill in the addresses of their workplaces; the app can track up to 5 locations simultaneously. <xref rid="figure1" ref-type="fig">Figure 1</xref> illustrates how the app scans at 10-min intervals to detect whether the user’s GPS coordinates are within a 1-km radius centered on either of the workplaces. When a user has been at the workplace for 30 min, the app automatically starts recording the work hours, counting from the time that the user’s first location data within the range were received. Likewise, when a user leaves the neighborhood of the office for 30 min, the app considers the user to have gotten off work since the time that the first location data outside the range are collected.</p>
          <fig id="figure1" position="float">
            <label>Figure 1</label>
            <caption>
              <p>The recording process of GPS-defined work hours. For GPS raw data, the time interval between each dot is 10 min. If the coordinates captured are within the range, the dot is marked as solid; hollow if otherwise.</p>
            </caption>
            <graphic xlink:href="mhealth_v8i2e16063_fig1.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
          </fig>
        </sec>
        <sec>
          <title>Integration of Work Periods</title>
          <p>For any period in which a user is outside the GPS-detection range (considered not at work), if less than 8 hours, the app automatically integrates it with the former and the latter working periods, thus extending the GPS-defined work hours. In this context, when the user moves between the 5 or fewer recorded workplaces, or when the user leaves the current workplace but comes back later, the user is still considered <italic>at work</italic> for the whole time. The GPS-defined work hours would not be discontinued or interrupted in this case (<xref rid="figure1" ref-type="fig">Figures 1</xref> and <xref rid="figure2" ref-type="fig">2</xref>).</p>
          <fig id="figure2" position="float">
            <label>Figure 2</label>
            <caption>
              <p>All types of work hours. (A) The regular work hours and overtime. (B) The on-call duty on a weekday and overtime. (C) The on-call duty on a weekend.</p>
            </caption>
            <graphic xlink:href="mhealth_v8i2e16063_fig2.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
          </fig>
          <p>In the example in <xref rid="figure1" ref-type="fig">Figure 1</xref>, the user walks into and leaves the 1-km radius range of hospital A at 9 am and 10 am, respectively. First, 4 consecutive solid dots are collected at 9:30 am; so, the app records that the user has started working since 9 am. When 4 consecutive hollow dots are later collected at 10:30 am, the recording ends, resulting in a GPS-defined working period from 9 am to 10 am. Similar procedures are done as the user moves to work in hospital B; the generated GPS-defined working period in hospital B is from 11 am to 12 pm. Second, the app automatically integrates the detached GPS-defined working periods if the interval between them is less than 8 hours. As the gap between the working periods of hospitals A and B is only 1 hour (10:00-11:00), the app integrates them. Finally, the app logs the GPS-defined work hours as 3 hours (9:00-12:00).</p>
        </sec>
        <sec>
          <title>Calculating Work Hours</title>
          <p>Although the app counts GPS-defined work hours, users can also input their work schedules. The user-defined <italic>scheduled work hours</italic> include <italic>regular work hours</italic> and <italic>on-call duty hours</italic> (<xref rid="figure2" ref-type="fig">Figure 2</xref>). For regular work hours, users should set a fixed starting and finishing time of work for weekdays upon installation; for on-call hours, users should input the dates in a month on which they have on-call duties (<xref rid="figure3" ref-type="fig">Figure 3</xref>). The app offers 2 selections for on-call duty hours, in line with the standard policies of the hospitals in Taiwan. Medical staff with <italic>first-line on-call duty</italic> are obligated to stay in the hospital overnight to care for patients and respond to any situations. Others with <italic>second-line on-call duty</italic> are on standby, that is, they are not required to be on site but should be prepared to take phone calls anytime and return to the hospital if needed. For weekdays, we define <italic>on-call duty hours</italic> as the time from getting off regular work to that of starting regular work on the next day. On weekends, the staff should be on-call for 24 hours, beginning from the time of starting regular work.</p>
          <fig id="figure3" position="float">
            <label>Figure 3</label>
            <caption>
              <p>Screenshots of app user interface. (A) The on-call dates settings. (B) The work-hour statistics and charts.</p>
            </caption>
            <graphic xlink:href="mhealth_v8i2e16063_fig3.png" alt-version="no" mimetype="image" position="float" xlink:type="simple"/>
          </fig>
          <p>The app automatically calculates the <italic>total work hours</italic> for users based on the following principles. During regular work time, the user’s total work hours are equal to the GPS-defined work hours with the integration algorithm, regardless of the regular work schedule. This is because one’s actual positioning data dominate the fixed work schedule. However, when it comes to on-call duties, the on-call hours have precedence over the GPS-defined hours because sometimes the staff is not obliged to be physically present within the range of the workplaces when working. In addition to the total work hours, this app also outputs the <italic>overtime work hours</italic> according to the following formula: <italic>overtime work hours=total work hours−scheduled work hours.</italic> The result can be a negative value, which would indicate that the exact working time was less than the scheduled working time (<xref rid="figure2" ref-type="fig">Figure 2</xref>).</p>
          <p>The example in <xref rid="figure2" ref-type="fig">Figure 2</xref> demonstrates how total and overtime work hours were calculated from the user’s work schedule and the recorded GPS data. The user set 8 am to 6 pm to be regular work hours (10 hours) from Monday to Friday. Thus, on-call duty hours on the picked dates should be from 6 pm to 8 am (+1) for weekdays (14 hours) and from 8 am to 8 am (+1) for weekends (24 hours). On June 23, the user worked for a total of 13 hours according to the integrated GPS-defined work hours despite a short break at noon. The period from 6 pm to 9 pm was regarded as overtime as it was beyond the scheduled regular hours. On June 24, the user had first-line on-call duty. Although absent from workplace from 6 pm to 0 am (+1), the whole period of 14 hours was still included in <italic>total work hours</italic> as the on-call duty hours took precedence over the actual hours detected at workplaces. As for Saturday, June 25, the user did not have regular work; so, it was considered overtime from 8 am to 12 pm. On Sunday, June 26, the user had second-line on-call duty lasting 24 hours and then continued with Monday’s regular work for another 10 hours. Hence, the total work hours were the sum of the 2 listed above, which equaled to 34 hours.</p>
          <p>The users can check their total work hours, overtime work hours, and scheduled work hours for the past 7 days on the app. For higher accuracy and better flexibility, the app allows users to adjust their actual work hours within 7 days. In the example in <xref rid="figure3" ref-type="fig">Figure 3</xref>, the user had 8.1 hours of overtime in the past 7 days as it was the difference between the total work hours (88.1 hours) and scheduled work hours (80 hours). A visualization of a 28-day bar chart shows the staff’s total work hours, with yellow and green representing GPS-defined work hours and on-call hours, respectively. They can also share visualized data of their weekly or monthly average work hours on their Facebook page.</p>
        </sec>
      </sec>
      <sec>
        <title>Validation of App-Recorded Total Work Hours</title>
        <p>We recruited 5 medical doctors and interviewed them regarding their work hours for the past 7 days to examine the accuracy of these (n=5×7=35) app-recorded total work hours by <italic>Staff Hours</italic>. This structural interview detailed the users’ on-call duties, regular work hours, and overtime work hours for each day. These self-reported total work hours excluded the trainee physicians’ educational activities. Therefore, we used these self-reported total work hours as the putative gold standard to validate the app-recorded total work hours. The sensitivity was 94.6% (242.7/256.6) and the specificity was 93.9% (547.6/583.4) for the app-recorded total work hours. There was a high correlation between the app-recorded total work hours and the self-reported counterparts (<italic>r</italic>=0.923; <italic>P</italic>&#60;.001).</p>
      </sec>
      <sec>
        <title>Statistical Analysis</title>
        <p>A paired <italic>t</italic> test was used to compare the differences between the total work hours and the scheduled work hours. One-way analysis of variance was used to compare the differences in total work hours among all 5 categories of workers (ie, medical students, visiting staff, resident physicians, registered nurses, and non-HCPs). Fisher least significant difference (LSD) was used for further post hoc tests. In addition, we used independent <italic>t</italic> tests to examine the differences in the total work hours between the medical staff (ie, medical students, visiting staff, resident physicians, and registered nurses) and non-HCPs. All statistical analyses were 2-tailed, and <italic>P</italic>&#60;.05 was considered to be statistically significant. Data arrangement and statistical analysis were performed using R software (version 3.5.3).</p>
      </sec>
    </sec>
    <sec sec-type="results">
      <title>Results</title>
      <sec>
        <title>Overview</title>
        <p>The app-recorded total work hours (mean 55.69 hours, SD 21.34) of all the 183 participants were significantly higher than the self-reported scheduled work hours (mean 50.67 hours, SD 21.44; <italic>t</italic> <sub>182</sub>=2.61; <italic>P</italic>=.01). All participants showed an average of 4.78 hours (SD 26.12) overtime work per week (ie, total work hours−scheduled work hours). <xref ref-type="table" rid="table1">Table 1</xref> demonstrates that resident physicians had a significant positive overtime (mean 7.95 hours, SD 24.25), that is, the residents’ total work hours were significantly higher than the scheduled work hours (<italic>t</italic> <sub>88</sub>=3.14; <italic>P</italic>=.002).</p>
        <table-wrap position="float" id="table1">
          <label>Table 1</label>
          <caption>
            <p>
          Total work hours and scheduled work hours among 5 occupations.
        </p>
          </caption>
          <table width="1000" cellpadding="5" cellspacing="0" border="1" rules="groups" frame="hsides">
            <col width="190"/>
            <col width="380"/>
            <col width="430"/>
            <thead>
              <tr valign="top">
                <td>Occupation</td>
                <td>Total work hours per week, mean (SD)</td>
                <td>Scheduled work hours per week, mean (SD)</td>
              </tr>
            </thead>
            <tbody>
              <tr valign="top">
                <td>Resident physicians</td>
                <td>60.38 (18.67)</td>
                <td>52.31 (19.97)</td>
              </tr>
              <tr valign="top">
                <td>Registered nurses</td>
                <td>56.72 (28.80)</td>
                <td>56.89 (30.88)</td>
              </tr>
              <tr valign="top">
                <td>Visiting staff</td>
                <td>51.42 (20.33)</td>
                <td>44.46 (17.43)</td>
              </tr>
              <tr valign="top">
                <td>Medical students</td>
                <td>49.03 (20.06)</td>
                <td>45.95 (13.79)</td>
              </tr>
              <tr valign="top">
                <td>Non-HCPs</td>
                <td>45.48 (20.08)</td>
                <td>49.83 (22.17)</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p><xref ref-type="table" rid="table1">Table 1</xref> also shows the comparisons of total work hours and scheduled work hours among the 5 categories. There were significant differences among the 5 categories on total work hours (<italic>F</italic><sub>4,183</sub>=3.047; <italic>P</italic>=.02). Post hoc comparisons using LSD tests further revealed that the resident physicians had significantly longer total work hours (mean 60.38 hours, SD 18.67) than the visiting staff (mean 51.42 hours, SD 20.33; <italic>P</italic>=.03) and non-HCPs (mean 45.48 hours, SD 20.08; <italic>P</italic>=.004). In addition, medical staff (ie, resident physicians, registered nurses, visiting staff, and medical students) had significantly longer total work hours (mean 57.01 hours, SD 21.20) than non-HCPs (mean 45.48 hours, SD 20.08; <italic>P</italic>=.02).</p>
      </sec>
    </sec>
    <sec sec-type="discussion">
      <title>Discussion</title>
      <sec>
        <title>Principal Findings</title>
        <p>Our findings showed that medical staff had longer work hours than non-HCPs, and resident physicians worked for longer hours than visiting staff in hospitals. These findings are consistent with previous reports that showed that resident physicians typically work the greatest number of hours per week among all positions in hospitals [<xref ref-type="bibr" rid="ref14">14</xref>]. Similarly, it is feasible to compare work hours among different hospitals, departments, or divisions using aggregate data collected from the Staff Hours’ database. In this way, we can find out the <italic>hot spots</italic> where office workers have the longest total work hours or overtime. From September 2019, the Labor Standards Act in Taiwan will include regulations on the working hours for resident physicians. With the implementation of government policy, <italic>Staff Hours</italic> can serve as a real-time monitor for compliance with these work-hour limits. The app might also be useful in labor negotiations, balancing the unequal information between employers and employees. Although employers hold official records on work hours, the automatically recorded data in mobile apps provide evidence for employees when they claim overtime pay. In this study, each occupational group comprised greater than or equal to 10 people, which strengthens user privacy. Further analysis of the comparisons among different clusters should take individual privacy into account and make sure that there are not less than 10 people in each group.</p>
        <p>The algorithms behind <italic>Staff Hours</italic> include not only the location-based work hours recording but also several critical designs for a better user experience. First, detached working periods are linked back together in the GPS-defined work hours because of the unique duty-based characteristics of health care work. Take a physician at an academic hospital as an example. She may have to leave the hospital for lectures on the university campus or walk a couple of blocks in the neighborhood to grab lunch in the middle of the scheduled working time. If the physician comes back to the hospital in less than 8 hours, the app still records the period that she is absent from the GPS range of the hospital as GPS-defined work hours. Second, the update interval of GPS location data in this app is set to be 10 min to improve battery performances; this is much longer than the geofencing responsiveness interval of approximately 2 min in the background location limits introduced in Android 8.0 (Application Program Interface level 26) to reduce undesired battery drain [<xref ref-type="bibr" rid="ref15">15</xref>]. Third, users can adjust the work-hour logs manually only within 7 days. This restriction was established to avoid recall bias, increasing the accuracy of records [<xref ref-type="bibr" rid="ref16">16</xref>]. Another associated advantage is that it may assure data integrity and prevent future problems of data fraud, which would be crucial in labor inspections.</p>
        <p>In addition, this app performs functions that specifically target medical staff, such as automatic calculations of overtime and on-call duty hours. Our findings demonstrated that all the participants on average worked 4.78 more hours per week than scheduled. The lengthy overtime may be from a selection bias in our participants, most of whom (89/183, 48.6%) were resident physicians whose total work hours were always higher than they should be. However, we observed that the scheduled ones were shorter than expected because few residents (58/89, 65%) logged their on-call dates in the system, which might result in an underestimation of the scheduled work hours. Moreover, this app could not differentiate the activities of working and learning in the institution for residents and medical students, which might result in an overestimation of total work hours. Together, they may lead to an overestimation of overtime and thus, we observed significant differences between the total and scheduled work hours in this study. Unsure of the validity of the scheduled and overtime work-hours data, we analyzed only the total work hours of the various occupations.</p>
      </sec>
      <sec>
        <title>Limitations</title>
        <p>Several methodological limitations should be noted when interpreting our findings. First, users who live within a 1-km geofencing radius from their workplaces are limited to using the algorithm of GPS-defined work hours. Furthermore, inaccuracies in GPS location tracking may occur when users work at smaller companies or clinics as the app transforms workplace addresses into latitudes and longitudes. Second, if only a few medical staff log their on-call duties in the app, the produced average overtime hours could be higher than the actual overtime hours. Third, the app could not identify breaks within the geofencing range, which might result in an overestimation of total work hours. Finally, there may be a selection bias in the participants as medical staff or other users with longer work hours may have a higher tendency to install <italic>Staff Hours</italic>.</p>
      </sec>
      <sec>
        <title>Comparison With Prior Work</title>
        <p><italic>Staff Hours</italic> is the first app designed specifically for medical staff, with built-in functions for tracking on-call duties in hospitals. To the best of our knowledge, no prior study has enabled medical staff to use their personal smartphones, either Apple or Android models, to monitor their work hours automatically. The high accuracy of GPS-defined work-hours data without manual input and the integration between multiple work locations show the app’s ease of use. Moreover, <italic>Staff Hours</italic> is the first app to perform comparisons on work hours among different categories of medical staff and also between medical staff and other occupations. For staff having excessive work hours, this app could serve as a <italic>smoke alarm</italic>, providing early signals of overwork or occupational burnout. We designed this app focusing on medical staff’s work-hour patterns as they may have the most complicated work-hour patterns, including frequent on-call duties and multiple workplaces. The power-saving GPS data collection with optimal sampling rate and work periods integration in our algorithm overcame these challenges.</p>
      </sec>
      <sec>
        <title>Conclusions</title>
        <p><italic>Staff Hours</italic> is the first automatic GPS location–based app designed for medical staff to track work hours and calculate overtime. For medical staff, this app could keep complete and accurate records of work hours in real time, reduce bias, and allow for better complying with labor regulations.</p>
      </sec>
    </sec>
  </body>
  <back>
    <app-group/>
    <glossary>
      <title>Abbreviations</title>
      <def-list>
        <def-item>
          <term id="abb1">iOS</term>
          <def>
            <p>iPhone Operating System</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb2">LSD</term>
          <def>
            <p>least significant difference</p>
          </def>
        </def-item>
        <def-item>
          <term id="abb3">non-HCP</term>
          <def>
            <p>non–health care professional</p>
          </def>
        </def-item>
      </def-list>
    </glossary>
    <ack>
      <p>This study was supported by grants from the National Health Research Institutes of Taiwan (07A1-PHPP27-014) and the Ministry of Science and Technology of Taiwan (MOST 107-2314-B-400-038-MY3). The authors thank Mr Chang-En Hsieh and Ms Hsiao-Han Lin for their excellent technical assistance.</p>
    </ack>
    <fn-group>
      <fn fn-type="conflict">
        <p>None declared.</p>
      </fn>
    </fn-group>
    <ref-list>
      <ref id="ref1">
        <label>1</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>YH</given-names>
            </name>
            <name name-style="western">
              <surname>Kuo</surname>
              <given-names>TB</given-names>
            </name>
            <name name-style="western">
              <surname>Ho</surname>
              <given-names>YC</given-names>
            </name>
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>SH</given-names>
            </name>
            <name name-style="western">
              <surname>Liu</surname>
              <given-names>CY</given-names>
            </name>
            <name name-style="western">
              <surname>Yang</surname>
              <given-names>CC</given-names>
            </name>
          </person-group>
          <article-title>Physiological and psychological impacts on male medical interns during on-call duty</article-title>
          <source>Stress</source>
          <year>2012</year>
          <month>01</month>
          <volume>15</volume>
          <issue>1</issue>
          <fpage>21</fpage>
          <lpage>30</lpage>
          <pub-id pub-id-type="doi">10.3109/10253890.2011.572208</pub-id>
          <pub-id pub-id-type="medline">21682655</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref2">
        <label>2</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>YH</given-names>
            </name>
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>CY</given-names>
            </name>
            <name name-style="western">
              <surname>Li</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>SH</given-names>
            </name>
          </person-group>
          <article-title>A dimensional approach to the phantom vibration and ringing syndrome during medical internship</article-title>
          <source>J Psychiatr Res</source>
          <year>2013</year>
          <month>09</month>
          <volume>47</volume>
          <issue>9</issue>
          <fpage>1254</fpage>
          <lpage>8</lpage>
          <pub-id pub-id-type="doi">10.1016/j.jpsychires.2013.05.023</pub-id>
          <pub-id pub-id-type="medline">23786911</pub-id>
          <pub-id pub-id-type="pii">S0022-3956(13)00172-6</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref3">
        <label>3</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>YH</given-names>
            </name>
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>CY</given-names>
            </name>
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>SH</given-names>
            </name>
            <name name-style="western">
              <surname>Liu</surname>
              <given-names>CH</given-names>
            </name>
            <name name-style="western">
              <surname>Weng</surname>
              <given-names>WH</given-names>
            </name>
            <name name-style="western">
              <surname>Kuo</surname>
              <given-names>TB</given-names>
            </name>
            <name name-style="western">
              <surname>Yang</surname>
              <given-names>CC</given-names>
            </name>
          </person-group>
          <article-title>Gender differences in cardiac autonomic modulation during medical internship</article-title>
          <source>Psychophysiology</source>
          <year>2013</year>
          <month>06</month>
          <volume>50</volume>
          <issue>6</issue>
          <fpage>521</fpage>
          <lpage>7</lpage>
          <pub-id pub-id-type="doi">10.1111/psyp.12038</pub-id>
          <pub-id pub-id-type="medline">23517383</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref4">
        <label>4</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>YH</given-names>
            </name>
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>SH</given-names>
            </name>
            <name name-style="western">
              <surname>Li</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Huang</surname>
              <given-names>WL</given-names>
            </name>
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>CY</given-names>
            </name>
          </person-group>
          <article-title>Prevalent hallucinations during medical internships: phantom vibration and ringing syndromes</article-title>
          <source>PLoS One</source>
          <year>2013</year>
          <volume>8</volume>
          <issue>6</issue>
          <fpage>e65152</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://dx.plos.org/10.1371/journal.pone.0065152"/>
          </comment>
          <pub-id pub-id-type="doi">10.1371/journal.pone.0065152</pub-id>
          <pub-id pub-id-type="medline">23762302</pub-id>
          <pub-id pub-id-type="pii">PONE-D-13-03184</pub-id>
          <pub-id pub-id-type="pmcid">PMC3677878</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref5">
        <label>5</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Chen</surname>
              <given-names>CY</given-names>
            </name>
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>SH</given-names>
            </name>
            <name name-style="western">
              <surname>Li</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Huang</surname>
              <given-names>WL</given-names>
            </name>
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>YH</given-names>
            </name>
          </person-group>
          <article-title>The role of the harm avoidance personality in depression and anxiety during the medical internship</article-title>
          <source>Medicine (Baltimore)</source>
          <year>2015</year>
          <month>01</month>
          <volume>94</volume>
          <issue>2</issue>
          <fpage>e389</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://dx.doi.org/10.1097/MD.0000000000000389"/>
          </comment>
          <pub-id pub-id-type="doi">10.1097/MD.0000000000000389</pub-id>
          <pub-id pub-id-type="medline">25590843</pub-id>
          <pub-id pub-id-type="pii">00005792-201501020-00017</pub-id>
          <pub-id pub-id-type="pmcid">PMC4602540</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref6">
        <label>6</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>YH</given-names>
            </name>
            <name name-style="western">
              <surname>Ho</surname>
              <given-names>YC</given-names>
            </name>
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>SH</given-names>
            </name>
            <name name-style="western">
              <surname>Yeh</surname>
              <given-names>YH</given-names>
            </name>
            <name name-style="western">
              <surname>Liu</surname>
              <given-names>CY</given-names>
            </name>
            <name name-style="western">
              <surname>Kuo</surname>
              <given-names>TB</given-names>
            </name>
            <name name-style="western">
              <surname>Yang</surname>
              <given-names>CC</given-names>
            </name>
            <name name-style="western">
              <surname>Yang</surname>
              <given-names>AC</given-names>
            </name>
          </person-group>
          <article-title>On-call duty effects on sleep-state physiological stability in male medical interns</article-title>
          <source>PLoS One</source>
          <year>2013</year>
          <volume>8</volume>
          <issue>6</issue>
          <fpage>e65072</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://dx.plos.org/10.1371/journal.pone.0065072"/>
          </comment>
          <pub-id pub-id-type="doi">10.1371/journal.pone.0065072</pub-id>
          <pub-id pub-id-type="medline">23750232</pub-id>
          <pub-id pub-id-type="pii">PONE-D-12-39495</pub-id>
          <pub-id pub-id-type="pmcid">PMC3672167</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref7">
        <label>7</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Kivimäki</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Jokela</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Nyberg</surname>
              <given-names>ST</given-names>
            </name>
            <name name-style="western">
              <surname>Singh-Manoux</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Fransson</surname>
              <given-names>EI</given-names>
            </name>
            <name name-style="western">
              <surname>Alfredsson</surname>
              <given-names>L</given-names>
            </name>
            <name name-style="western">
              <surname>Bjorner</surname>
              <given-names>JB</given-names>
            </name>
            <name name-style="western">
              <surname>Borritz</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Burr</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>Casini</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Clays</surname>
              <given-names>E</given-names>
            </name>
            <name name-style="western">
              <surname>de Bacquer</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Dragano</surname>
              <given-names>N</given-names>
            </name>
            <name name-style="western">
              <surname>Erbel</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Geuskens</surname>
              <given-names>GA</given-names>
            </name>
            <name name-style="western">
              <surname>Hamer</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Hooftman</surname>
              <given-names>WE</given-names>
            </name>
            <name name-style="western">
              <surname>Houtman</surname>
              <given-names>IL</given-names>
            </name>
            <name name-style="western">
              <surname>Jöckel</surname>
              <given-names>KH</given-names>
            </name>
            <name name-style="western">
              <surname>Kittel</surname>
              <given-names>F</given-names>
            </name>
            <name name-style="western">
              <surname>Knutsson</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Koskenvuo</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Lunau</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Madsen</surname>
              <given-names>IE</given-names>
            </name>
            <name name-style="western">
              <surname>Nielsen</surname>
              <given-names>ML</given-names>
            </name>
            <name name-style="western">
              <surname>Nordin</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Oksanen</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Pejtersen</surname>
              <given-names>JH</given-names>
            </name>
            <name name-style="western">
              <surname>Pentti</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Rugulies</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Salo</surname>
              <given-names>P</given-names>
            </name>
            <name name-style="western">
              <surname>Shipley</surname>
              <given-names>MJ</given-names>
            </name>
            <name name-style="western">
              <surname>Siegrist</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Steptoe</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Suominen</surname>
              <given-names>SB</given-names>
            </name>
            <name name-style="western">
              <surname>Theorell</surname>
              <given-names>T</given-names>
            </name>
            <name name-style="western">
              <surname>Vahtera</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Westerholm</surname>
              <given-names>PJ</given-names>
            </name>
            <name name-style="western">
              <surname>Westerlund</surname>
              <given-names>H</given-names>
            </name>
            <name name-style="western">
              <surname>O'Reilly</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Kumari</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Batty</surname>
              <given-names>GD</given-names>
            </name>
            <name name-style="western">
              <surname>Ferrie</surname>
              <given-names>JE</given-names>
            </name>
            <name name-style="western">
              <surname>Virtanen</surname>
              <given-names>M</given-names>
            </name>
            <collab>IPD-Work Consortium</collab>
          </person-group>
          <article-title>Long working hours and risk of coronary heart disease and stroke: a systematic review and meta-analysis of published and unpublished data for 603,838 individuals</article-title>
          <source>Lancet</source>
          <year>2015</year>
          <month>10</month>
          <day>31</day>
          <volume>386</volume>
          <issue>10005</issue>
          <fpage>1739</fpage>
          <lpage>46</lpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://linkinghub.elsevier.com/retrieve/pii/S0140-6736(15)60295-1"/>
          </comment>
          <pub-id pub-id-type="doi">10.1016/S0140-6736(15)60295-1</pub-id>
          <pub-id pub-id-type="medline">26298822</pub-id>
          <pub-id pub-id-type="pii">S0140-6736(15)60295-1</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref8">
        <label>8</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Virtanen</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Stansfeld</surname>
              <given-names>SA</given-names>
            </name>
            <name name-style="western">
              <surname>Fuhrer</surname>
              <given-names>R</given-names>
            </name>
            <name name-style="western">
              <surname>Ferrie</surname>
              <given-names>JE</given-names>
            </name>
            <name name-style="western">
              <surname>Kivimäki</surname>
              <given-names>M</given-names>
            </name>
          </person-group>
          <article-title>Overtime work as a predictor of major depressive episode: a 5-year follow-up of the Whitehall II study</article-title>
          <source>PLoS One</source>
          <year>2012</year>
          <volume>7</volume>
          <issue>1</issue>
          <fpage>e30719</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="http://dx.plos.org/10.1371/journal.pone.0030719"/>
          </comment>
          <pub-id pub-id-type="doi">10.1371/journal.pone.0030719</pub-id>
          <pub-id pub-id-type="medline">22295106</pub-id>
          <pub-id pub-id-type="pii">PONE-D-11-15785</pub-id>
          <pub-id pub-id-type="pmcid">PMC3266289</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref9">
        <label>9</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Mansukhani</surname>
              <given-names>MP</given-names>
            </name>
            <name name-style="western">
              <surname>Kolla</surname>
              <given-names>BP</given-names>
            </name>
            <name name-style="western">
              <surname>Surani</surname>
              <given-names>S</given-names>
            </name>
            <name name-style="western">
              <surname>Varon</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Ramar</surname>
              <given-names>K</given-names>
            </name>
          </person-group>
          <article-title>Sleep deprivation in resident physicians, work hour limitations, and related outcomes: a systematic review of the literature</article-title>
          <source>Postgrad Med</source>
          <year>2012</year>
          <month>07</month>
          <volume>124</volume>
          <issue>4</issue>
          <fpage>241</fpage>
          <lpage>9</lpage>
          <pub-id pub-id-type="doi">10.3810/pgm.2012.07.2583</pub-id>
          <pub-id pub-id-type="medline">22913912</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref10">
        <label>10</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Landrigan</surname>
              <given-names>CP</given-names>
            </name>
            <name name-style="western">
              <surname>Barger</surname>
              <given-names>LK</given-names>
            </name>
            <name name-style="western">
              <surname>Cade</surname>
              <given-names>BE</given-names>
            </name>
            <name name-style="western">
              <surname>Ayas</surname>
              <given-names>NT</given-names>
            </name>
            <name name-style="western">
              <surname>Czeisler</surname>
              <given-names>CA</given-names>
            </name>
          </person-group>
          <article-title>Interns' compliance with accreditation council for graduate medical education work-hour limits</article-title>
          <source>J Am Med Assoc</source>
          <year>2006</year>
          <month>09</month>
          <day>6</day>
          <volume>296</volume>
          <issue>9</issue>
          <fpage>1063</fpage>
          <lpage>70</lpage>
          <pub-id pub-id-type="doi">10.1001/jama.296.9.1063</pub-id>
          <pub-id pub-id-type="medline">16954485</pub-id>
          <pub-id pub-id-type="pii">296/9/1063</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref11">
        <label>11</label>
        <nlm-citation citation-type="web">
          <person-group person-group-type="author">
            <collab>Ministry of Health and Welfare</collab>
          </person-group>
          <year>2013</year>
          <access-date>2019-12-31</access-date>
          <comment>Medical Residents? Labor Rights Protection Guideline.<ext-link xmlns:xlink="http://www.w3.org/1999/xlink" ext-link-type="uri" xlink:type="simple" xlink:href="https://www.health.taichung.gov.tw/media/302252/481916431154.pdf">https://www.health.taichung.gov.tw/media/302252/481916431154.pdf</ext-link> </comment>
        </nlm-citation>
      </ref>
      <ref id="ref12">
        <label>12</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Pan</surname>
              <given-names>YC</given-names>
            </name>
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>HH</given-names>
            </name>
            <name name-style="western">
              <surname>Chiu</surname>
              <given-names>YC</given-names>
            </name>
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>SH</given-names>
            </name>
            <name name-style="western">
              <surname>Lin</surname>
              <given-names>YH</given-names>
            </name>
          </person-group>
          <article-title>Temporal stability of smartphone use data: determining fundamental time unit and independent cycle</article-title>
          <source>JMIR Mhealth Uhealth</source>
          <year>2019</year>
          <month>03</month>
          <day>26</day>
          <volume>7</volume>
          <issue>3</issue>
          <fpage>e12171</fpage>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://mhealth.jmir.org/2019/3/e12171/"/>
          </comment>
          <pub-id pub-id-type="doi">10.2196/12171</pub-id>
          <pub-id pub-id-type="medline">30912751</pub-id>
          <pub-id pub-id-type="pii">v7i3e12171</pub-id>
          <pub-id pub-id-type="pmcid">PMC6454342</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref13">
        <label>13</label>
        <nlm-citation citation-type="web">
          <source>App Annie - The App Analytics and App Data Industry Standard</source>
          <access-date>2019-07-31</access-date>
          <comment>
            <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://www.appannie.com/cn/">https://www.appannie.com/cn/</ext-link>
          </comment>
        </nlm-citation>
      </ref>
      <ref id="ref14">
        <label>14</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Baldwin</surname>
              <given-names>DC</given-names>
            </name>
            <name name-style="western">
              <surname>Daugherty</surname>
              <given-names>SR</given-names>
            </name>
          </person-group>
          <article-title>Sleep deprivation and fatigue in residency training: results of a national survey of first- and second-year residents</article-title>
          <source>Sleep</source>
          <year>2004</year>
          <month>03</month>
          <day>15</day>
          <volume>27</volume>
          <issue>2</issue>
          <fpage>217</fpage>
          <lpage>23</lpage>
          <pub-id pub-id-type="doi">10.1093/sleep/27.2.217</pub-id>
          <pub-id pub-id-type="medline">15124713</pub-id>
        </nlm-citation>
      </ref>
      <ref id="ref15">
        <label>15</label>
        <nlm-citation citation-type="web">
          <source>Android Developers</source>
          <access-date>2019-07-31</access-date>
          <comment>Developer Guides<ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://developer.android.com/guide/">https://developer.android.com/guide/</ext-link>
                                                </comment>
        </nlm-citation>
      </ref>
      <ref id="ref16">
        <label>16</label>
        <nlm-citation citation-type="journal">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Coughlin</surname>
              <given-names>SS</given-names>
            </name>
          </person-group>
          <article-title>Recall bias in epidemiologic studies</article-title>
          <source>J Clin Epidemiol</source>
          <year>1990</year>
          <volume>43</volume>
          <issue>1</issue>
          <fpage>87</fpage>
          <lpage>91</lpage>
          <pub-id pub-id-type="doi">10.1016/0895-4356(90)90060-3</pub-id>
          <pub-id pub-id-type="medline">2319285</pub-id>
          <pub-id pub-id-type="pii">0895-4356(90)90060-3</pub-id>
        </nlm-citation>
      </ref>
    </ref-list>
  </back>
</article>
