Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 3.63 KB

variables-in-messages.md

File metadata and controls

39 lines (22 loc) · 3.63 KB

Variables in outgoing SMS

Outgoing messages can use Mustache templating to insert certain variables and use certain data formats.

For examples, you can check out the standard config. Note that it uses translation keys for the message contents.

Format filters

For the latest list, checkout the formatters in medic-sentinel

Displays dates according to the date_format specified in app_settings. See doc for Moment.js format for details.

Displays dates according to the reported_date_format specified in app_settings. See doc for Moment.js format for details.

  • bikram_sambat_date

Displays dates in Bikram Sambat calendar (most commonly used calendar in Nepal). Currently display format is hardocded to e.g. "१५ चैत २०७३", see code.

Variables you can use (TODO)

You can insert special variables relating to the patient and/or the CHW in the messages.

Sentinel exposes values from the report doc.

TODO : What's chw_sms?