Building > Reference > app_settings.json > .sms
SMS Settings: Instructions and schema for defining SMS settings
Short unique identifiers for contacts are often used to identify contacts in messaging workflows. Unique short codes are generated on doc.patient_id
against any document of a person
type
, and on every doc.place_id
against any document of a place
type
. By default, these IDs start at 5 numeric digits long, and will increase in length as deemed necessary by the generation algorithm.
If the length is increased, this increase is stored in a CouchDB documented called shortcode-id-length
:
{
"_id": "shortcode-id-length",
"current_length": 6
}
If you wish to change the minimum length of the generated identifiers, create or edit the shortcode-id-length
document in CouchDB. For example, if you wish for the minimum length to be 7:
{
"_id": "shortcode-id-length",
"current_length": 7
}
If this file already exists be sure to include the existing _rev
property.
It is not possible to either alter the maximum length of IDs, to stop it automatically increasing, or to tweak when it decides to automatically increase. IDs automatically increasing in length when required is important to the continual correct functioning of Sentinel.
The shortcode identifiers can be between 5 and 13 digits long. Due to the last digit being a checksum digit, there are at most 10,000 5 digit ids, and at most 1,000,000,000,000 13 digit IDs.
SMS Settings: Instructions and schema for defining SMS settings
Overview of the possible states of SMS messages
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.