在現代的社會裡，偏頭痛屬於一種常見的病症，為了提升診斷的精確性，在偏頭痛的治療過程中需要病患作頭痛日記，醫師便可依據日記的內容作後續的診斷以及追蹤，但由於醫院所提供的為紙本頭痛日記，對於長期頭痛的患者來說，大量的日記反而不易攜帶且容易出現保存不易等問題，所以本研究提出建構一套用於偏頭痛的行動醫療應用程式，雖然在市面上也有許多類似的頭痛日記的應用程式，但實際被運用在醫院的應用程式非常少，美國的FDA有特別針對行動醫療應用程式立出相關法規，而台灣也有相關的參考指引，利用電子頭痛日記將病患的日記資料化，可將其上傳並保存至資料庫，除了智慧型行動裝置上可以顯示記錄頭痛記錄，也支援Web前端介面顯示，方便數據儲存及可供為後續研究需要，利用電子頭痛日記內自動統計的數據，方便醫師閱讀並減少閱讀日記時間進而提高醫師看診效率及提升下診斷時的準確度；研究後期則利用問卷調查的方式來驗證此電子日記App是否有達到本論文的研究目的以及後續的分析結果。 In this modern society, migraine belongs to a kind of common disease. In order to improve the accuracy of diagnosis, the patients need to keep diaries of headache in the treatment of migraine. The physicians can make a diagnosis and keep tracking according to the diaries. Some of hospitals may provide patients with paper diary to record but paper diary is not easy to be carried and be saved for patients who have long time headache. As a result, this research constructs a special mobile medical application (APP or App) for migraine and cooperates with the Neurology Department in Taipei Veterans General Hospital. Though there are many APPs in Google Play or APP Store which functions are similar to headache diary, the small number of APPs which can be used authentically in hospitals. The App diary can transform patients’ headache diaries to electronic data which will be uploaded to database to be saved. The diary records are displayed not only on mobile platforms (e.g. smartphones, tablet computers) but also on user interface which is the web server. It can be used to help doing other researches about migraine which need to collect heavy headache data in the future. On the other hand, the physicians improve the efficiency of treatment and the accuracy of diagnosis, because they can use the data which have been automatically counted in the App diary. The purpose in this research: time of reading diary reduced and improving efficiency of diagnosis, solving problems of paper diary for example not easy to keep, read and carry outside, uploading headache diary to database and providing these data to be analyzed. The later part of research, using questionnaires to corroborate the APP is whether to affect the purpose in this paper and other analyses.