Priority in shift statues and ES shift types

In the Relief Queue and the Relief Calling Area, there can be situations where multiple shifts on a single day belong to the same relief block. However, the multiple shifts on that day will still be displayed in a single shift cell on the screen. The shift displayed in the cell is determined by a priority sequence based on the shift status hierarchy. This hierarchy is configurable using the /system/modules/emvs/SHIFT_STATUS_ PRIORITY registry parameter. The value of this registry parameter is a comma-separated list of numerical values, representing the list of shift status from the highest to lowest priority. The default value is “1,3,4,2,5,6,7”.

For reference, these numbers are the database primary key IDs in the ES_SHIFT_STATUS table:

SHIFTSTAT_ID SHIFTSTAT_NAME
0 WORK
1 UNFILLED
2 FILLED
3 PENDING
4 AR
5 RNN
6 RNF
7 REMOVE

In the Employee Pool section of the Relief Calling Area, where pool employee schedule information is displayed, there can be incidents where pool employees might be scheduled with multiple shifts in a single day. When multiple shifts are scheduled on a single day, the employee pool will display the information of the shift having the highest shift type priority, as per dictated by the /system/modules/emvs/SHIFT_TYPE_PRIORITY registry parameter.

This table lists the numerical value of the three shift types:

Shift Type ID ES Shift Type
0 OFF
1 ON
2 TIME-OFF

The default value of this registry parameter is "1,2,0", which means that ON-type shift is displayed first, then ON-TIME-OFF type shifts, and finally OFF-type shifts.