Web Application
Total Page:16
File Type:pdf, Size:1020Kb
HealthyLifeHRA: Web Application by NING XIA Submitted in partial fulfillment of the requirements for the degree of Master of Science Thesis Advisor: Dr. Gultekin Ozsoyoglu Department of Electrical Engineering and Computer Science CASE WESTERN RESERVE UNIVERSITY August, 2014 CASE WESTERN RESERVE UNIVERSITY SCHOOL OF GRADUATE STUDIES We hereby approve the thesis of Ning Xia candidate for the Master of Science degree*. committee chair Gultekin Ozsoyoglu, Ph.D. Andy Podgurski, Ph.D. Joseph Sudano, Ph.D. Adam Perzynski, Ph.D. date of defense June 16th, 2014 *We also certify that written approval has been obtained for any proprietary material contained therein. 2 Acknowledgements First of all I would like to express my wholehearted gratitude to my advisor, Prof. Gultekin Ozsoyoglu for his devoted guidance, encouragement and great mentorship throughout my time as a master’s student. I have learned a lot while under his supervision. I would also like to thank the members of my master’s thesis defense committee: Prof. Andy Podgurski, Prof. Adam Perzynski, Prof. Joseph Sudano and Prof. Meral Ozsoyoglu. The time you have invested into reading my thesis and serving on the committee is much appreciated. I would like to thank the software members of the HRA team Eamon Johnson, Xiangcao Liu, Umang Banugaria, Tiancheng Wu, Peng Li, Can Tuzla and Pinar Uskaner, as well as the team from Metro Health, Prof. Adam Perzynski, Prof. Joseph Sudano, Sandra Andrukat, and Misty Harris, for their help with the development of the HealthyLifeHRA application for which this thesis also contributes to. Last but not least, I would like to recognize the support that my friends and family have provided me throughout my graduate studies. This thesis and the HealthyLifeHRA project was supported by an Agency for Health Research and Quality research grant: AHRQ:1R01HS020919, Joseph Sudano, PhD, Principal Investigator. 3 Table of Contents Page Acknowledgements ................................................................................................................. 3 Table of Contents ...................................................................................................................... 4 List of Figures ............................................................................................................................ 8 Abstract ..................................................................................................................................... 10 Chapter 1 Introduction ..................................................................................................... 12 1.1 Background............................................................................................................................. 12 1.2 Overview .................................................................................................................................. 13 1.3 Contributions ......................................................................................................................... 16 1.4 Organization ........................................................................................................................... 17 Chapter 2 HealthyLifeHRA Application Requirements and Database Design... 19 2.1 Application Requirements ................................................................................................ 19 2.2 HealthyLife HRA Application Data Model Design ..................................................... 23 2.2.1 ER Data Model ............................................................................................................................... 23 2.2.2 Transforming ER Model to Relational Model ................................................................... 44 Chapter 3 HealthyLifeHRA Application User Interface ............................................. 56 3.1 Information Pages ................................................................................................................ 60 3.1.1 Home Page ...................................................................................................................................... 61 3.1.2 About Us Page ................................................................................................................................ 62 3.1.3 How It Works Page ...................................................................................................................... 63 3.1.4 For Clinicians Page ...................................................................................................................... 65 4 3.2 Login/Registration Pages .................................................................................................. 66 3.2.1 Registration Page ......................................................................................................................... 67 3.2.2 Login Page ....................................................................................................................................... 70 3.2.3 Forgot Password Page ............................................................................................................... 71 3.2.4 Reset Password Page .................................................................................................................. 73 3.3 Questionnaire Pages ............................................................................................................ 73 3.3.1 Getting Started Page ................................................................................................................... 74 3.3.2 Questionnaires .............................................................................................................................. 77 3.3.3 HRA Reporting .............................................................................................................................. 83 3.4 Administration Interface ................................................................................................... 88 Chapter 4 HealthyLifeHRA Application Evolution ...................................................... 95 4.1 Introduction ........................................................................................................................... 95 4.2 HealthyLifeHRA Version 1 .................................................................................................... 96 4.3 HealthyLifeHRA Version 2 .................................................................................................... 98 4.4 HealthyLifeHRA Version 3 .................................................................................................. 100 Chapter 5 HealthyLifeHRA Web Application Development .................................. 102 5.1 HealthyLifeHRA Model-View-Controller--Basics ........................................................ 103 5.2 Back-end Server Implementation ................................................................................ 107 5.2.1 Play Model Implementation ................................................................................................. 107 5.2.2 Risk Computation Engine ...................................................................................................... 113 5.2.3 RESTful Web Service Development ................................................................................... 118 5.2.4 HTTPs Based Communication with Play Framework ................................................ 119 5.2.5 Security and Password Encryption ................................................................................... 121 5.3 Front-end Interface Implementation .......................................................................... 124 5 5.3.1 HTTP Routing ............................................................................................................................. 124 5.3.2 Controllers ................................................................................................................................... 125 5.3.3 Template Engine........................................................................................................................ 127 5.3.4 Templates ..................................................................................................................................... 130 5.3.5 Information Pages..................................................................................................................... 132 5.3.6 Login/Registration Pages ...................................................................................................... 133 5.3.7 Questionnaire Pages ................................................................................................................ 136 5.3.8 Administration Area ................................................................................................................ 144 Chapter 6 HealthyLifeHRA Stand-Alone Desktop Application Development . 146 6.1 Background........................................................................................................................... 146 6.2 Server Implementation .................................................................................................... 147 6.3 Creating a MySQL Database and a User ...................................................................... 154 6.4 User Interface Implementation ..................................................................................... 156 6.5 Integration ...........................................................................................................................