Notifications
  • 23 Sep 2021
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Notifications

  • Dark
    Light
  • PDF

Article summary

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.

NameDescription
subjectThe subject of a teams message
messageThe body of a teams message
dosThe date when the teams message will appear

Functions

Below is a list of functions supported by this object.

NameDescription
------

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.


What's Next