Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

AlertConfiguration table:

IdNameDescriptionRuleNameAlertKeyRoomIdWorkspaceIdSendNotification
1RuleX RuleXpodatrue

Given that we only want to notify only to associated providers, we don't require to have an entry in AlertConfigurationRoleRecipient nor in AlertConfigurationUserRecipient.

Alert

...

AlertConfigurationRoleRecipient table:

IdAlertConfigurationIdRoleId
111 (i.e. nurse)

RolePermission talbe:

IdRoleIdPermissionNameOrganizationId
11read_alerts_only_from_associated_patients 

If we want the alert to be available only to providers that are currently associated with the patient the targeted provider's role must have 'read_alerts_only_from_associated_patients' permission. Otherwise, the alert will be visible in the provider's inbox no matter if he/she is currently associated to the patient or not.

Alert

Alerts table:

IdTimestampTitleDescriptionPayloadPriorityAlertConfigurationIdStatusUserId
12014-08-05 10:00:00Rule X was fired--High1NewUserX (or NULL if the rule was triggered by a timer)

...

Scenario 2.a: Patient Alert -> Role

A form is submitted (by userX regarding patientX), an alert generated and sent to the charge nurse on that shift

An alert originally sent to a nurse is not read according to requirements, and is then sent to the charge nurse on that shift

...

AlertConfiguration table:

IdNameDescriptionRuleNameAlertKeyRoomIdWorkspaceIdSendNotification
1RuleX RuleXpodatrue

...

IdAlertConfigurationIdRoleId
112 (i.e. charge_UNC)

Alert

Alert Alerts table:

IdTimestampTitleDescriptionPayloadPriorityAlertConfigurationIdStatusUserId
12014-08-05 10:00:00Rule X was fired--High1NewUserX

...

AlertConfiguration table:

IdNameDescriptionRuleNameAlertKeyRoomIdWorkspaceIdSendNotification
1RuleX RuleXpodatrue

...

IdAlertConfigurationIdRoleId
112 (i.e. charge_UNC)
21nurse_UNC

...

1 (i.e. nurse_UNC

...

)

...

Alert

Alert table:

IdTimestampTitleDescriptionPayloadPriorityAlertConfigurationIdStatusUserId
12014-08-05 10:00:00Rule X was fired--High1NewUserX

...

AlertConfiguration table:

IdNameDescriptionRuleNameAlertKeyRoomIdWorkspaceIdSendNotification
1RuleX RuleXpodatrue

...

  • The nurse's role has 'read_alerts_only_from_associated_patients' permission
  • The rule that fired either:
  • Doesn't have any entry in AlertConfiguration table
  • Has has an entry in AlertConfiguration table that is either: 
  • not associated with any AlertConfigurationRoleRecipient
  • associated with associated to an AlertConfigurationRoleRecipient containing nurse's role as a recipient
  • For the notification to occurr, the following must be true:
    • The nurse is at least registered in one device
    • The rule that fired has an entry in AlertConfiguration table with SendNotification field = true

 Workflow Workflow B: Change of shift pattern

...