Bell Eapen MD, PhD.

Bringing Digital health & Gen AI research to life!

Phonegap and AppPharmacy – Just what the doctor ordered!

Phonegap for mHealth

Image credit: Unsplash@pixabay

Health Care is getting swathed in mobility and mHealth. Though the term is not yet adequately defined, mHealth is the new buzzword. mHealth, unlike many other eHealth specialities, has provider/doctor and consumer/patient aspects. This dual nature helps mHealth to be instrumental in improving the quality of care delivery and patient empowerment. mHealth will also play a major role in population health.

With more than 100,000 mobile Apps available for download from Google play and Apple App store, it is difficult for consumers to choose what may be of benefit to them. It is hardly surprising that only a handful of these 100,000 apps is being used in a meaningful way. Very soon, apps may make their foray into a doctor’s prescription. There may even be App-Pharmacists who would create/reconstitute and dispense an app that the doctor ordered. Custom made apps may also be needed for clinical trials in population health such as HOPE-4 of PHRI.

The App-Pharmacists must be able to prototype an app within a short time with a highly ‘agile’ software development cycle. This article is an introduction to ‘phonegap’, which I believe would be the ideal tool for the App-Pharmacists of tomorrow. A basic idea of phonegap would help eHealth professionals to evaluate the opportunities and limitations of this platform!

Healthcare apps could be Web apps, Hybrid Apps or Native Apps. Web apps are just responsive websites that fit the mobile device well, using any of the frameworks such as jQuery mobile. Obviously it is the easiest to build and maintain, but it cannot access mobile specific features such as camera and GPS. If the app is used only to display information (as in ClinicalConnect™) this is the best solution.

Hybrid apps are packaged in a full-screen browser to resemble a native mobile app, with extensions that provide access to some hardware features, but your user interface is still written in HTML/CSS and rendered by a web browser. Phonegap is a popular framework to create hybrid apps. Phonegap was initially called Cordova after a street in Vancouver where the parent company Nitobi was based.  Adobe bought phonegap and licensed it under Apache. Though you don’t generally associate open-source with Adobe, phonegap for all practical purposes remains free and (hopefully) will remain so in the future.

So why should you use phonegap?

  1. It is free.
  2. Nothing new to learn, You program in HTML, CSS and javascript.
  3. Compile in the cloud (Free if your project is on github and open-source!)
  4. Fast prototyping with basic debugging in the browser.
  5. Fast build cycle, with a single interface for all major platforms.

Where can you get Phonegap?
Get it here: http://phonegap.com/

OR install using npm

sudo apt-get install nodejs nodejs-dev npm
sudo npm install -g phonegap
phonegap create my-app
cd my-app
phonegap run android

You may have to revert the ownership of .npm folder back to the user after global install.

 

chown -R <username> ~/.npm/

Want to see a simple, but working project to learn fast?
Try my Charm!: https://github.com/dermatologist/phonegap-charm
Want to know about Charm?: http://gulfdoctor.net/charm/

Do you want a step by step tutorial on how to start using phonegap. Please comment below!

Not happy with phonegap? Will discuss Titanium soon!

Apple HealthKit: Health Information Exchange for Apps

Last year, one of my colleagues proposed an add-on for a popular fitness app as a course project. There has been a whopping increase in the number of health and fitness apps, monitoring a variety of parameters from blood sugar to the number of strides you take. As my colleague pointed out, all the necessary features are never there in any single application. How do you write an add-on for an existing app? Apps do not talk to each other much like their big brothers: health information systems.

English: Mediated Reality running on Apple iPhone
(Photo credit: Wikipedia)

Apple is trying to solve just that, with its new HealthKit framework. HealthKit allows apps that provide health and fitness services to share their data with the new Health app in the cloud and with each other. A user’s health information is stored in a centralized and secure location and the user decides which data should be shared with your app. I have a couple of friends currently working on population pharmacokinetics. HealthKit may be an ideal framework for sharing pharmacokinetic data too.

Though HealthKit is lingering over a last minute bug that slows down apps that use this framework, it may be a novel and effective tool for app designers. However whether the technology will bring the prophesied ‘Healthcare revolution’ remains to be seen. The new generation apps are going to make life difficult for physicians, already inundated with lots of data. Hope the proverbial ‘Apple a day’ does not happen!

Be on the watch out for the Apple watch as well. I feel Apple watch is more likely to be a disruptive innovation than HealthKit itself. Watch is always more intimate and ubiquitous than any other wearable device. The built-in accelerometer, heart-rate sensor and GPS along with Apple’s ingenuity provides enough reason to expect amazing functionality.

Addendum:

Epic spokesman Brian Spranger offered still more detail, describing to VentureBeat’s Mark Sullivan how a device such as the WiThings Wi-Fi-enabled scale could “notify HealthKit that it has a new weight and ask HealthKit to store that weight in the database on the iPhone.” From there, “If the patient has given permission for the MyChart app on their phone to know about that data, HealthKit ‘wakes up’ the MyChart app and tells it there’s new data,” according to Spranger. “The MyChart app on the phone then transmits that weight back to the EpicCare EHR system where it can be used appropriately as part of the patient’s medical care.”

More data is probably as dangerous as the lack of it!