SMS Patient Reminders

Great. I worked up a program using twilio. Right now it’s set up for a manual run once a day but I plan to modify it to a cron file soon. I also have to go back and add comments and make sure everything is xss proof. I’ll send you what I have if you are interested. It sends updates based on the SMS time global and updates the patients appointment status to text sent. I’m working on replies as well. I have a webhook that emails replies to me, but I’ve yet to get it to update status to confirmed.

Matt

Setting up the cron job is easy. I generally have the cron job running twice a day. I was running every 15 minutes but I had an issue of sending multiple messages. I have added the ability to send two-way messaging , sending messages to multiple handsets per patient, and I use dataTables to help with the interface and usability. Note: I am still in the process of making more improvements and cleaning up my code. It should be made available for public use soon.

Here are some screenshots:

The following screenshot is the reporting tool. Select the date of the appointment and it will show the status of the message. The system this was designed for needed the ability to send messages up to four relatives of the patients since this is for a pediatrician’s office. We do not send SMS messages unless the HIPAA status is a “Y”. Also, the relatives must be listed as a HIPAA “Y” to receive messages. SMS messages are always sent to a patient and their relatives unless the appointment has “Confidential” in the appointment type. In the case of a confidential appointment, no SMS reminder is sent at all.

Clicking on alert will show the history of messaging. It also lists the relatives and HIPAA status. By hitting “reply” the office can respond to the patient. In this particular case the “Recent Messages” shows the history of the last three months.

If you are looking for a particular patient within a date range you can use the dynamic search tool that is a capability of Datatables.

The editing tool has auto fill variables to make creating a custom message for a specific appointment type easy to use. The green area shows what a patient named “test patient” would see. If the end user forgets to put Name, Date, Time, it won’t let you save the message. Once the variable is used, the button highlights in green.

There are more improvements that still need to be made but this project is chugging along.

1 Like

Good morning, I wanted to check with you regarding this coding for the patient reminders to see if you have any updates regarding it, thank you, any help is appreciated

I am in the process of moving all my changes to a separate branch. Currently, the sms reminder tool was built for a custom system. I have migrated most of the changes to a unique branch and I am in the process of providing documentation to assist with configuration, setup, and usage. Today will be busy for me but I am hoping to upload a branch to my github account by the end of the week.

Thank you for that update, that is greatly appreciated

He who belongs to God hears what God says. The reason you do not hear is that you do not belong to God… John 7:47-48

I’m sorry. I traveled for a class and haven’t been back in the office. I have a program in place that uses Twilio. My clinic decided they prefer to send reminders in bulk once a day so that is the way it’s set up. I’m happy to share what I have if you like.

Matt

Yes, i would like to take a look at that, thank you

He who belongs to God hears what God says. The reason you do not hear is that you do not belong to God… John 7:47-48

Sorry for the delay. I am working on a pretty huge upgrade of a highly customized system that is going live on Monday. once that it running smoothly I will go through the code, have installation instructions, and have assistance on how to configure it.

Daniel and Matthew,
Have either of you made any recent progress with SMS patient reminders?
My staff has informed me that I WILL be adding SMS patient reminders to our OpenEMR.
Any help would be appreciated,
Paul

hi @ptalerico, have you looked at @rmagauran’s service?
https://www.open-emr.org/wiki/index.php/MedEx

Hi, Stephen, yes, I did look at MedEx and have contacted them to request a quote of their fees. Review of the recent forums would suggest there are 3 viable options: MedEx, Daniel’s, and Matthew’s. I’d like to explore all 3 before pulling the trigger. Any preferences for your experience/knowledge base? Thanks.

Haven’t seen the others but Ray’s is great.

I’d be happy to do a demo for you. right now it works great for 500. I’m still testing its capability for 501. As we use the tool more and more, we are always finding new capabilities that are helpful and we are always improving the tool. Once I have it working for 501 and after its been tested I’ll let you know.

Here are a few tasks:

  1. Customize the message based on the appointment. For example, for well visits patients are asked to show up early to fill out paper work. For sick visits they are asked to show up on-time. For some visits that require fasting, the patient is reminded not to eat. For teen confidential visits (or any visit with the designation of confidential) text reminders are not sent.

  2. The ability to do two way messaging. Patients can respond and office staff can reply to the responses.

  3. The ability to send a message that isn’t a reminder. Staff can asynchronously send a message with 2-way capability

Coming soon:

  1. Birthday messages
  2. Check in messages. For example, if a patient hasn’t been seen in over a year a check-in message can be sent.
1 Like

Hi Daniel,

I was wondering if you had made more progress on your code since your last post.

I honestly wouldn’t mind just having a look at your code without any documentation or explanation or anything, if you’d be willing to provide it somewhere. I know writing good documentation takes a lot of time. I’m trying to set up SMS reminders using a custom in-house phone system, so I’d have to adjust a bunch of code myself anyway, but it sounds like you have a great system in place that I could use as a base for that.

Thanks in advance!

Sure. I’m happy to share. I’m currently bringing it in for 501. I should have code available soon and I should also have documentation to come with it.

Daniel,
Are you still working this? I may be able to provide a monetary incentive for you to complete it.
If I can help in any way, contact me. We’ve used Twilio for SMS appt. reminders since 2013.
Been working to move our system over to 18.04 / 5.02.1
So, I’m hoping that you will complete and post your code.

hi @hitechelp, once you get to 5.0.2.1 recommend checking this out by Jerry and Stephen

Also see my last post here:Sms with 5.0.2 still unable to enable the text feature

I’d be happy to talk with you about this. At this point I really need to focus in making the code more robust and there is significant changes to the database. Since the customization was primarily for a pediatrician, there is the ability to send it to more than one relative. Feel free to reach out to me via PM. I can set up some time to discuss.

Daniel,
Sure thing, I’m wide open for this.
You tell me what works best for you.

Regards,
David