This article is part of the systems administration guide. You will require administration access to view the pages mentioned in this article.
The Message Template must be a configured Patient SMS template. The location uses the location's code.
=====================================================
START OF CODE: (PSEUDO)
=====================================================
var now = new Date; var location = 'LOCATION_CODE'; var msg_template = 'MESSAGE_TYPE_CODE'; var patient = assessment.current_assessment.patient; patient.send_sms(location, msg_template, now);
=====================================================
END OF CODE
=====================================================
=====================================================
START OF CODE: EXAMPLE - CUSTOMISE LOCATION AND MSG_TEMPLATE
=====================================================
var now = new Date; var location = 'Clintel Clinic'; var msg_template = 'PATIENT_WELCOME'; var patient = assessment.current_assessment.patient; patient.send_sms(location, msg_template, now);
=====================================================
END OF CODE
=====================================================