Skip to content

SMS Campaigns & Messaging

EaseLab integrates patient notifications through SMS, with campaign history, delivery logging, and quick-send shortcuts from the invoice workflow.

ScreenRoutePermission
SMS Campaign / Log/admin/sms-campaignsms_log
Messaging Test/admin/messaging-testquick.send_sms

Messaging architecture

mermaid
flowchart TB
    subgraph Triggers
        INV[Invoice events]
        RES[Results ready]
        CAM[Campaign batch]
        MAN[Manual quick send]
    end
    subgraph EaseLab
        MSG[Messaging service]
        LOG[SMS log]
    end
    subgraph Gateway
        SMS[SMS provider API]
    end
    INV --> MSG
    RES --> MSG
    CAM --> MSG
    MAN --> MSG
    MSG --> SMS
    MSG --> LOG

SMS log and campaigns

The SMS Log module (sms_log) provides:

CapabilityDescription
Delivery historyPer-message status and timestamp
Campaign batchesMarketing or reminder blasts
Recipient filtersPatients, referral groups, date ranges
Template previewVariable substitution before send
Failure reasonsGateway errors for retry

Campaign workflow

  1. Configure SMS gateway in Lab Settings (settings.edit).
  2. Open Admin → SMS Campaign.
  3. Compose message with placeholders ({patientName}, {reportLink}, etc.).
  4. Select audience — verify consent and local regulations.
  5. Schedule or send immediately.
  6. Review delivery report in SMS log.

Regulatory compliance

Obtain patient consent for marketing SMS. Transactional messages (results ready, appointment reminders) typically require opt-out support per local telecom rules.

Quick Access messaging permissions

High-frequency actions from invoice and results screens:

CodeChannel
quick.send_smsSMS
quick.send_whatsappWhatsApp (when configured)
quick.send_emailEmail

Grant only to reception and authorized clinicians. Technicians may need quick.send_sms for critical value callbacks — define policy explicitly.

mermaid
sequenceDiagram
    participant Reception
    participant EaseLab
    participant Patient
    Reception->>EaseLab: Results verified
    Reception->>EaseLab: Quick send SMS
    EaseLab->>Patient: Report ready + link
    EaseLab->>EaseLab: Log to sms_log

Messaging test screen

Before go-live, use Messaging Test (/admin/messaging-test):

  1. Requires quick.send_sms.
  2. Send to a staff mobile number.
  3. Confirm delivery and sender ID.
  4. Adjust gateway credentials if failed.

Sender ID registration

Many countries require pre-registered alphanumeric sender IDs. Complete provider paperwork before marketing campaigns.

Message templates

Recommended templates:

EventTemplate elements
Report readyLab name, patient name, public lookup URL
Invoice receiptAmount paid, balance due
Home collectionPhlebotomist ETA, preparation instructions
Payment reminderDue amount, payment link

Store templates in lab settings for consistency across staff.

Integration with CRM and referrals

  • CRM wins may trigger welcome SMS batches
  • Referral doctors can receive weekly volume summaries (manual export + campaign)
  • Link campaign UTM parameters on public URLs for attribution

Permissions summary

TaskPermission
View SMS historysms_log.view
Create campaignsms_log.create
Edit draft campaignsms_log.edit
Delete campaign draftsms_log.delete
Send from invoicequick.send_sms

Troubleshooting

SymptomCheck
All sends failGateway API key, credit balance
Intermittent failuresProvider rate limits
Wrong patient nameTemplate variable mapping
403 on sendRead-only mode or missing quick permission
Messages not loggedsms_log.view for viewer account

Cost management

PracticeBenefit
Batch non-urgent remindersLower per-message cost
Validate phone on registrationReduces failed sends
Use email for lengthy contentSMS segment charges

Ease Lab — Cloud Pathology Lab Management