Profile.settings
are used to store settings related to the users. This is often used as a NoSQL store by frontend. This is WIP.
Config in JSON to store modules config such as reminder times.
Additional Properties of any type are allowed.
Type: objectNotifications related profile settings.
No Additional PropertiesA unique list of notification keys that the user opted out from.
All items must be unique
No Additional ItemsThese types are unique throughout the Bot MD ecosystem. These keys are used in the user's Profile.settings.notifications.deactivated[]
to identify the notifications that they have deactivated.
Messages from Bot. This is the default is no delivery_by
is specified.
"bot"
Alerts
Specific value:"alert"
Email Notification to Admin / User (eg. User License limit, activation, expiry, etc.)
Specific value:"email_notification"
Broadcast to hospital
Specific value:"broadcast"
Profile related reminder (eg. profile creation, activation, expiry, etc).
Specific value:"profile_reminder"
Temperature reminder for Singapore hospitals.
Specific value:"temperature_reminder"
ART reminder for Singapore hospitals.
Specific value:"art_reminder"
ED Roster Updates used by TTSH Emergency Department.
Specific value:"ed_roster"
Mental Health bot for TTSH.
Specific value:"emobot"
Mood Log Reminder for TTSH Mental Health Module (2024)
Specific value:"moodlog_reminder"
ECG Updates used by TTSH Emergency Department.
Specific value:"ecg"
Arise/PSP used by Roche.
Specific value:"arise_psp"
Emobot related profile settings.
No Additional PropertiesHow would you like EmoBot to address you?
Must be at least 1
characters long
Frequency of reminder. E.g. "Weekly", "Twice Weekly" etc.
Time the reminder will be sent, e.g., "09:00", "18:00" etc.
Must match regular expression:^[0-2]\d\:[0-5]\d$
Used internally to determine when the user was last sent a reminder. This is a Posix timestamp.
Value must be greater or equal to 0
Where does the user derive their emotional sources of strengths.
No Additional ItemsPretty human readable label for this source of strength
Whether this source is selected.
Used internally to keep track of the state of a user's chat with emobot. Backend use only.
The current chat state ID.
User's emotion based on what they say.
No. of venting messages we've received.
Current "Thinking trap" as part of the CBT flow.
Array of feelings of user when going through the CBT flow.
No Additional ItemsISO formatted datetime of when the state was last updated.
Additional Properties of any type are allowed.
Type: objectMetadata related to CGH 2FA
No Additional PropertiesThe user has verified his/her 2FA code.
Encrypted phone number of user.
The user received the notification for expiry