Rss

Archives for : medication

Pain Diary

I recently had the opportunity to answer questions about pain management and wearables.  Even if you’re unfamiliar with the phrase, I suspect most people are aware of the products.

Wearables are smart devices that are worn; fitness trackers, smart watches, health trackers etc. I’m not sure if those Bluetooth pills that are swallowed and feed back to a smartphone are strictly classified as wearable, but their benefits are definitely there.  Real time data is big business, and there are companies all over the world looking to cash in.  While many of those companies are profit based, some are more altruistic.  I certainly don’t have their budget but I wonder if the limited consumer gadgets I own could be put to use?

I’ve suffered with pain in my left knee after a road accident in 2007, pain in my lower back since around ’96 and my shoulder has dislocated at least since ’91.  I’d love to be able to walk, but the consultant at the Pain Clinic has told me it will never happen.  I’m taking it with a pinch of salt.  In 1974 my parents were told I wouldn’t survive the week.  I may be completely in denial, but I’d like to think that when it comes to medicine we can’t say never.  Putting aside the progress that’s being made in exoskeletons, I think the odds are against me but if I can help the medical profession find a trend then I’m going to do all I can.

Tasker already manages my medicines for me, announcing when they should be taken and nagging me if I’ve been unable to take them at a given time.  Tasker also allows me to manually record entries to my Pain Diary.  The entries update a text file (chosen for universal compatibility) via Dropbox, and also a privately shared Google calendar (accessible only via a private link). When combined with AutoPebble, medication notices can be pushed to the watch and actions taken.  I can notify Tasker that I’ve taken my meds, or to dismiss the alert and remind me later.  It also allows me to update my Pain Diary, all without taking my phone from my pocket.

Although the Pebble smart watch is renowned for its battery life, usually lasting 6 – 8 days, I’m not relying exclusively on it.  Using Tasker’s Scene functionality I can also have buttons pop up and update the Pain Diary straight from the phone’s home screen.  Because of the way Tasker works, that screen and all associated settings can be taken to a tablet or an upgraded phone in a couple of minutes.

Because of the way it’s set up I can add or remove items in the list very quickly. I can also type in rarer entries manually.  It has only really benefited me properly a couple of times, but those times have been worth it.  When a nurse asked how often I experience chest pains I was able to provide exact times and dates in a couple of minutes.

Obviously, this doesn’t have anywhere near the sophistication of what is achievable or even what’s currently in development. It has to be manually selected and doesn’t include heart rate, blood pressure, etc. but that’s not what I’ve set out to do. This started as a means for me to keep a personal record of when I’m in the most pain.  Providing the Pain Clinic with the entries is just an added bonus.

Medication

Medication can be great, it helps you get better and can help you cope with pain.  The trouble is, almost all medication has side effects.  It can colour your urine, make you constipated, induce seizures, get you stoned and if it’s not yours it can even kill you.

Some medication must be taken at certain times of the day.  I have one tablet at midday, and again at midnight.  I have some tablets which need to be taken around 9pm, while others are taken as and when needed.  The trouble is, all of my tablets have side effects, some of them quite severe so I’ve found a solution.  No longer can I forget to take my meds.  No longer can I wonder if I’ve taken them and take them twice.  While the solution is a little over the top, it’s a solution, and one that works well for me.

For this, you’ll need:

Dropbox
First of all, create a folder and a text file in Dropbox.  It doesn’t really matter what they’re called, but I’ve kept mine as \Reminders\Meds.txt as I use the Reminders folder for various things.  Once the text file is created, go to the Dropbox app and favourite it.  The file should then have a purple circle with a white star at the bottom right.  This is done so that the file is available when there is no network connection.

File Manager
Use your file manager to go to SD Card (internal if available) \Android\data\com.dropbox.android\files\scratch\Reminders you should see Meds.txt (or your variation if you’ve changed the names).

Tasker
Once confirmed, you can load Tasker.  I always have Tasker’s Beginner Mode unticked to ensure all of the options are available (Menu, Preferences, UI).

  1. I started by creating a variable called Meds (Vars, +).
  2. Then created a Profile called Meds Day which was time based, from 12:00 to 12:01,
  3. and created a Task called Medication.  The Task has the phone say “It’s time for your medication” – Misc, Say, using the Alarm stream so that it’s independent of the Ringer/Notification volume.  This is also pushed to my watch using an app called Pebble Notifier (amongst other things, the Pebble saves me stopping the wheelchair in order to get my phone out).  Using Task, Wait, the phone waits three seconds before Variable Set changes the variable Meds to 0.  I later arranged to have the buttons on my watch display the options ‘Meds Taken’, ‘Dismiss’, and ‘Meds Taken’, courtesy of PebbleTasker.  (I needed to add the Task ‘Meds Taken’ before I could do this).

You can also create the Profile Meds Night (for example) and link that to the Task Medication. By selecting set times you can create as many of these as you’d like.  If you wanted specific medication mentioned, simply repeat the steps two and three and name them appropriately.

Next, I created a new Task, named ‘Meds Taken’.  Using Variable Set the variable %Meds is changed to the value ‘1’. PebbleTasker then changes to the default options and a message is flashed on the screen (Alert, Flash) acknowledging ‘Meds Taken’.  The date and time are updated in the file (File, Write File) Android/Data/com.dropbox.android/files/scratch/Reminders/Meds.txt with Append and New Line ticked.
By doing this I am able to keep check of when I’ve taken my tablets and the file is automatically synced with Dropbox on my other devices.  In the bottom right corner I’ve also added an icon resembling a tablet, this was necessary for me to create a shortcut from the phone’s home screen.  It’s so much easier tapping an icon on the phone than going to Tasker just to change a single variable.

Meds Taken

Of course, life gets in the way sometimes.  It’s not always convenient to take tablets exactly at the intended time.  With this in mind (learned the hard way), I created a nag system:

The creation of a Profile and Task, each called Meds became my nag system.  The Profile is set every twenty minutes throughout the day, starting at 00:10 to ensure I had time to take my meds before it started nagging me, but sufficiently apart so I didn’t become annoyed with it, especially if I was somewhere that I couldn’t take my meds. The Task simply says “Have you taken your medication yet?” (Misc, Say) and has PebbleTasker open the options for ‘Meds Taken’, ‘Dismiss’, and ‘Meds Taken’ again.

Meds Taken

[Note, the other band on my wrist is an NFC tag which, when scanned, shows my name, NHS number etc.]

The whole process has evolved over time to include and exclude various aspects.  If in future any changes are made to it, I’ll post in the comments.  Of course, because Tasker is a one-off payment, hopefully it won’t incur any further costs.