This does not work:
// S7: The number of days between a patient's release date and their actual date of admission should be minimized.
function calculateWaitTime with selectedShiftToFirstWorkload {
abs((context.nodes.vsw.shift.shiftNo / 3) - context.nodes.p.earliestDay) * context.value
}
This works (extra brackets ()):
// S7: The number of days between a patient's release date and their actual date of admission should be minimized.
function calculateWaitTime with selectedShiftToFirstWorkload {
abs(((context.nodes.vsw.shift.shiftNo / 3) - context.nodes.p.earliestDay)) * context.value
}
This does not work:
This works (extra brackets
()):