I would like to use your SMS module to send direct messages to patients. For instance, there can be a card on the patients/chart or dashboard that will allow users to send an SMS directly to the patients
Has this been implemented already?
If not, do you have any suggestions as to how to go about this? I intend to share the code with the community as well.
Just take a look at the module code especially notification event listeners.
An example use is the Send SMS in Secure Messaging. Events are in portal/messaging/messages.php
You can also send a SMS via API. Look at interface/modules/custom_modules/oe-module-faxsms/library/rc_sms_notification.php shows how to init the service and send mesage.