Reject a claim if it contains a treatment that has already been claimed more than 70 times in the same calendar month. |
rule when Treatment(id=="t1", status=="pending") Treatment(id=="t1", status=="paid") Treatment(id=="t1", status=="paid") then assert ( new Rejection("reason")); end |