This page lists all the possible errors that can occur when evaluating the user specified expressions in the label formats, workflow assignment rules, edit check rules etcexplains errors in evaluating expressions added in label format, edit check rules, print rules etc., These are advanced Eval tokens used by clients catering their customized needs.
Info |
---|
There are multiple levels available for users to configure the specimen label format, please read the wiki page to know more : Specimen Label Format. |
Once you have identified at which level we are facing the issue, we can start breaking down the expression to find out the issues.
Examples :
1. Property or Field cannot be found in null
Expand | ||
---|---|---|
| ||
This type of error occurs when system attempts to retrieve value of an empty field. This expression expects a value stored for the field and cannot accept null value. In the above example, system is attempting to retrieve the clinical status of the visit associated which is empty. Solution: If the token is for an optional field, always use null safe operators (?.). |
2. Index 'n' invalid
Expand | ||
---|---|---|
| ||
This type of token is used when specimen label needs to extract substring after a separator e.g., dot (.) from parent specimen label. If there is no separator or text after the separator, system cannot extract a second part. Solution: Ensure the parent specimen label has text after the separator (.) |
3. StringIndexOutOfBoundsException
Expand | ||
---|---|---|
| ||
This type of token is used to extract the substring from the start of the label up to the second occurrence of the underscore. For example, if the parent specimen label is If system doesn't find any of the 2 underscores in parent specimen label, it returns In the above error message, end -1 indicates that the second underscore was not present in the parent specimen label. Solution: Ensure the parent specimen label contains at least two underscores. |