Patient messages: SMS and WhatsApp
OHMS sends patients short messages: appointment confirmation, the reminder the day before, follow-up reminders, "your report is ready", the portal PIN, and messages typed by staff. Messages go by SMS, WhatsApp or email, in the patient's language (English or Tamil).
1. Outbox

Messages Outbox lists every message. The badges at the top show which channels are on. Tabs: Recent, To send (WhatsApp), Waiting, Failed, Sent. Filter by date, event and patient.
WhatsApp click-to-send (no provider needed)
Until a WhatsApp Business provider is set up, WhatsApp messages wait under To send (WhatsApp):
- Click Open: WhatsApp (app or WhatsApp Web) opens with the patient's number and the message filled in.
- Press send in WhatsApp.
- Back in OHMS click Mark sent.
Use the hospital's WhatsApp number on the reception computer for this.
Automatic messages
With a provider set up (section 3), messages go by themselves every few minutes (the scheduled job), except during quiet hours. Send waiting messages now sends at once. A failed message shows the reason; Retry after fixing it (a portal PIN message cannot be resent: issue a new PIN from the patient's page). After the set number of retries it stays Failed and the bell alerts the administrator. Cancel stops a message.
2. Message templates

Messages Templates: the text of each message for each channel and language. Placeholders like {patient_name}, {doctor}, {date}, {time} are filled in when the message is made; only the placeholders listed for that event can be used.
- SMS: enter the DLT template ID. The text must match the template registered on DLT exactly, with the placeholders where DLT has variables. Tamil SMS is sent as Unicode (shorter per SMS).
- WhatsApp through a provider: enter the WhatsApp template name approved by Meta (or the Twilio content SID, HX…) and the order of the parameters.
3. SMS and WhatsApp providers (administrator)

What the hospital needs first
| SMS | (1) DLT registration of the hospital as entity on a DLT portal (Jio, Airtel, Vi or BSNL), the sender ID (header, 6 letters) and each SMS template; (2) an account with an SMS provider such as MSG91 or Twilio (or another provider with an HTTP API). |
| A WhatsApp Business API account: Meta (WhatsApp Cloud API) or Twilio, with the hospital number verified, and utility templates approved by Meta for each message (English and Tamil). |
Setting up SMS
- Open Messages SMS & WhatsApp providers.
- In the SMS card choose the Provider 1: MSG91, Twilio or Custom HTTP API.
- Fill the fields 2. MSG91: Auth key, Sender ID (DLT header), route. Twilio: Account SID, Auth token, From. Custom: the API URL, method and body with placeholders such as
{mobile},{message},{dlt_id}, and the text found in a successful reply. The grey help under each provider says where to find each value. - Click Save 3. Keys and tokens are stored encrypted and never shown again; to keep a saved key, leave its box blank when saving.
- Under Send a test message enter your own mobile number, choose a template and click Send. The result and time of the last test are shown.
- When the test arrives, switch SMS on: Administration Hospital Settings Messages & Notifications → Send SMS, and choose which reminders to send and the quiet hours.
Setting up WhatsApp

- In the WhatsApp card choose the provider 4: Meta (WhatsApp Cloud API), Twilio or Custom.
- Meta: Phone number ID, a permanent Access token (from a system user in Meta Business), the Graph API version, and the template language codes (usually
enandta). - In Messages Templates, for each WhatsApp template enter the approved template name and parameters.
- Save and send a test message.
- In Hospital Settings → Messages & Notifications set WhatsApp messages to Automatic through a WhatsApp Business API provider.
4. Sending a message to one patient

On the patient's page, Consent tab, the Send a message card: choose the channel (only channels that are switched on are listed), type a short message (for example "Please bring your old X-rays tomorrow") and click Send. It appears in the Outbox like any other message.