- Print
- DarkLight
- PDF
Description
The notifications service object enables both good business and good medicine. It looks for patterns in your data and notifies you when matches are found. Identify new business opportunities while keeping better track of patient health.
Properties
Below is a list of properties supported by this object.
Name | Description |
---|---|
subject | The subject of a teams message |
message | The body of a teams message |
dos | The date when the teams message will appear |
Functions
Below is a list of functions supported by this object.
Name | Description |
---|---|
--- | --- |
Trigger
Notifications are triggered each time a report is completed in the Dr. Know product.
Examples
The example below checks for the presence of a patient lung mass using a curated needle. When found, a notification is sent immediately to a configured team. The team, default subject, and this script are all configured within the Dr. Know - Admin app.
// fetch values
var lungMass = app.get("D83AD65522094CB3BB156939F8113617", false);
// prepare message
if (lungMass === true)
service.message = "A lung mass was detected. Consider follow up.";
The example below is the same as above, but overrides the default subject and date when the message will appear in teams to 3 days from today.
// fetch values
var lungMass = app.get("D83AD65522094CB3BB156939F8113617", false);
// prepare message
if (lungMass === true) {
service.subject = "Lung Mass Detected";
service.message = "A lung mass was detected. Consider follow up.";
service.dos = tools.addDays(3);
}
Remarks
All notifications are created and managed in the Dr. Know - Admin app.
From the main menu, goto Services / Notifications to get started.