Skip to content

GIPSL: use of abs([...]) with constant elements in function generates an error #416

Description

@maxkratz

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
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions