← Back to team overview

dhis2-devs team mailing list archive

Program rules combining several Dataelements. Not working?

 

Hi devs.

Are 'complex' program rules working? I mean by 'complex' combining
different datalements. For example:

#{CurrentMethod} == '[35] IUD' && #{AdoptedMethod} == '[35] UID' &&
#{ServiceProvided} != '[38] IUD removal'

But when I check the value of the expresion in the JS console I get the
following information:

Expression with id rule:M8qUeTSwhnF was successfully run. Original
condition was: #{CurrentMethod} == '[35] IUD' && #{AdoptedMethod} == '[35]
UID' && #{ServiceProvided} != '[38] IUD removal' - Evaluation ended up
as:'[35] IUD' == '[35] IUD' && '[35] IUD' == '[35] UID' && '[42] MA' !=
'[38] IUD removal' - Result of evaluation was:false

The result should be true, right? Am I doing something wrong?

Regards
Jose

Follow ups