...
Code Block | ||
---|---|---|
| ||
{ "name" : "editChecks", "view" : null, "ctrl" : null, "data" : { "constraints" : [ { "records" : [ "specimencpr" ], "rules" : [ { "when" : "#cpr.participant.extensionDetail?.getAttrsMap()?.get('min_max_age') != null && !#cpr.participant.extensionDetail?.getAttrsMap()?.get('min_max_age').isEmpty()", "expr" : "T(java.lang.Integer).parseInt(#cpr.participant.extensionDetail?.getAttrsMap()?.get('min_max_age')) >= 18 && T(java.lang.Integer).parseInt(#cpr.participant.extensionDetail?.getAttrsMap()?.get('min_max_age')) <= 55", "description" : "Partiicpant's age should be between 18 and 55" } ] } ] } } |
...