Priority Rules : Math logic

Priority Rules : Math logic


The Unassigned Queue page can change the priority of a call ticket based on mathematical logical equations on various points of data. This feature will work in Custom queues as well.
In the ADMIN => PRIORITY RULES => MATH

  1. DoB of the patient (age in days).
  2. Time of the ticket since created (age in seconds).
  3. Last time this ticket was touched (age in seconds).
INTERVAL is the amount of time to wait before running this algorithm again.
CHECKS is the number of times it can use this operation on this ticket.
CHANGE + or - the current value of priority.
We must check after 1 seconds, not on 0. 0 is reserved for KEYWORD priority rules.
In the above example if we only have these 3 rules:
Rule #2 = Will only check 1 time, within 20 second if dob is less than 365 days old and add 10 PRI points if true.
Rule #4 = Will check only if time since created is more than 900 seconds, will check every 60 seconds up to 4 times, each time adding 5 PRI points.
Rule #10Will only check 1 time, within 10 second if dob is less than 28 days old and add 10 points.

With these 3 rules in play a ticket would result as follows:
   A patient that is 14 days old with a keyword priority of +10
      -Once submitted the value has a value of 10 from the keyword priority.
      -After 1 minute, Ticket Priority is 30 points. (rule 2 plus rule10)
      -After 15 minutes this same ticket. If NOT touched, would be 35. (rule 4) 
      -After 30 minutes from creation, this ticket is NOT touched, would be 40. (rule 4 again)
      -After 4 hours from creation, this ticket is NOT touched, value would be only 50. As it had stopped adding values after the 4th time. (rule 4)
There is a related feature that can reset the value for RETURN TO UNASSIGNED QUEUE. If enabled this resets the value, but not the math or keywords. This is under the assumption the ticket has already been reviewed and the nurse can override or change this value to adjust accordingly. 
If the PRI value is overridden and set to 0, the system will recheck the priority keywords, but not this math logic. The zero will adjust to 1 after the keyword check is completed.
All PRI adjustments are logged to the ticket log.
-SYSTEM has changed PRIORITY from 0 to 1 by word match.
2021-05-05 11:38:20 (EDT) SYSTEM-CHANGE PRIORITY FROM 0 to 10 by age
11:38:59 (EDT) joel UNASSIGNED changed PRIORITY from 10 to 0
This feature is disabled by default and requires Triage Logic support to enable and configure.  Please contact us for more information.