Medicine Monitor

,Medicine Monitor Main Screen

Medicine Monitor Android App

Medicine Monitor is an Android application I coded in Java. The app is designed to aid in the administration of a schedule of medicines. The app displays a daily schedule for the medicines and records dosage and wellness data. A history function displays the data in a graph which could be used to infer possible drug interactions. I developed this application in the Spring of 2013 as a project for Parkland's Mobile Application Development course taught by David Bock. The application was coded using Eclipse with the Android Development Tool plugin. Below are links to the source code for the application classes.

BaseMenu.java | DosageActivity.java | EditMedActivity.java | HistoryActivity.java | HistoryView.java | MainActivity.java | ScheduleActivity.java | TodayActivity.java | Resource Files

Overview

Medicine Monitor contains medicine records which are input by the user. When a medicine record is created, the application automatically creates the corresponding schedule entries.  Each day's schedule entries are displayed in a list view where the entries can be selected and updated.  The administration of the medicine dosage is recorded along with a subjective assessment of the patient's wellness.  The history screen plots the medicine dosage with the wellness assessment.

Sample Session

To set up and run Medicine Monitor, follow these steps:

  1. Begin setting up a medicine schedule by ensuring all the files are empty. Tap the "Medicine Files" button to get into the File Maintenance screen. On this screen tap the Delete Schedule File, Delete Medicine File, and Delete Run Date File buttons. Verify each of the displayed records counts indicates 0 records. Then exit the File Maintenance screen.

  2. Entering the data for the medicine schedule is the next step. Tap the Medicine Entries button to get into the Medicine screen. All field values are required. Enter:
    • Name - the name of the medicine.
    • Strength - the dosage strength of the medicine.
    • Start Date - the date medicine should start.
    • Start Time - the time of day the medicine should start.
    • Frequency - how often the medicine should be taken (Daily, Weekly).
    • Interval - the number of hours between each dosage of medicine.
    • Doctor - doctor to call about the medicine.

    A new run date record (runDate.txt) will be created when the first medicine entry is saved. A series of schedule records (schedule.txt) will be created after each medicine record is saved. Exit the "Medicine Entries" screen after all the medicines have been entered.

  3. View the current day's medicine schedule by tapping the Today's Medicine button. The medicine schedule is listed in chronological order with all entries set as Not Taken by default.

  4. When a dosage of medicine is either Taken or Skipped, double tap on the corresponding medicine row to open and update screen. Enter a value for Taken (Taken, Skipped, Not Taken) and a subjective value for wellness (1=bad ... 9=good). Save the entry and exit the update screen. The medicine schedule screen will show the updated value.

  5. To view a line graph of the wellness values for the medicines, tap the History Graph button. Two medicines can be plotted with a line graph of the wellness values.

  6. To view Help, tap the MENU button and then the Help button.

  7. To view the About screen, tap the MENU button and then the About button.

Application Data

A file maintenance activity displays the number of records in each file and allows the files to be cleared.  The files used by the application are:

  1. runDate.txt - The runDate.txt file contains the last date the application was run.  It is used to trigger the creation of new schedule records for each day.  runDate.txt file is maintained by the application.

  2. medicine.txt - The medicine.txt file contains the medicine name, dosage amount, frequency, and interval.  Also the medicine start date and time and prescribing doctor's name.  Users need to create  a medicine.txt record for each new medicine.

  3. schedule.txt -The schedule.txt file contains the information displayed in the list view and records the dosage action and wellness value entered by the user.  These records are used to create the line graph in the history activity.  schedule.txt records are created by the application and updated by the user.

  4. schednew.txt - The schednew.txt is an intermediate file used for maintaining the updates of the schedule.txt file. schednew.txt file is maintained by the application.


Screen Captures - API 10 and API 16

Below are screen captures of the Medicine Monitor application running under the Android API 10 and API 16 emulators.

The Left Screen = Android Emulator 2.3.3 (API 10)      Right Screen = Android Emulator 4.1.2 (API 16)



Main Screen

,Main Entry Screen



Medicine Entry Screen (showing validation)

,Medicine Entry Screen



Scheduled Medicine List View

,Scheduled Medicine List View



Dosage Entry Screen (clicked entry on list view)

,Dosage Entry Screen



Dosage Entry Screen (with spinner open)

,Dosage Entry Screen (with spinner open)



History Graph for Current Day

,History Graph for Current Day



File Maintenance Screen

,File Maintenance Screen



About Screen

,About Screen



Help Screen

,Help Screen



Summary

Medicine Monitor is an Android app I coded in Java using the Eclipse editor and Android ADT plugin. The app is designed to aid in the administration of a schedule of medicines. It contains a file maintenance activity for maintaining the application data. Input data is validated and then used to create a daily list view for the medicine schedule. The user updates the dosage and wellness data during the day. A history function displays the data in a graph which could be used to infer possible drug interactions.