I have a data element (option set ) that contains an option set (type medication ).
the rule working be successfully , but if i have multi stage and some dataelement in last stage dont have value the system take the values from other stage previous ,
It would help if you share the expression and program rule configuration.
If you want the value to be only from the previous data element then make sure that the program rule variable source type is 'data element from previous event
thanks @Gassim
i create rule variable source type is 'data element from previous event
the system assgin value , but the problem when if the program have two event for the same stage and last event dont have value the system assgin value from other stage have value
i tried to create programe rule to assgin empty or 0 if the dataelement not have value , the reuslt same problem