Overview
Message Types allow you to create different types of SMS for different situations. Templates can then be associated with a Message Type - it is a multi- step process:
- Step A: Create a Message Type
- Step B: Create Templates for the Message Type
- Step C: Setting the Default Template to use
- Step D: Enable the Message Type
For example, you may create:
- A SMS Message Type for surgery appointment reminders, called "Surgery Appointment Reminder - SMS"
- Associated with this Message Type, you may have two Templates:
- A: Surgery - Type A SMS Reminder - an SMS with fasting instructions for Surgery A, and prompts for a reply to be sent to confirm appointment
- B: Surgery - Type B SMS Reminder - an SMS with fasting instructions for Surgery B, and prompts for a reply to be sent to confirm appointment
Substitution Variables
When setting up a template, you can use Substitution variables to insert fields from the patient record. Substitution variables are denoted by double curly brackets:
Dealing with Replies to SMS messages using Blockly
When setting up a template, you can specify if any action should be taken upon receiving a reply to a SMS message. To do this, you use the drag and drop script builder called "Blockly".
We don't cover writing the Blockly scripts in this guide (although some sample logic in the script box for the example above).
We suggest you complete the "Frozen tutorial" at http://studio.code.org/s/frozen/reset or the "Hour of code" session http://studio.code.org/s/hourofcode/reset
This takes roughly an hour but will give you the basics of creating Blockly scripts.
If you want to Create a Message Type, please refer here
If you want to Create Templates for the Message Type , please refer here
If you want to Set SMS Default Template, please refer here
If you want to Enable SMS Message Type, please refer here
If you want to Update a SMS Template, please refer here