← Back to team overview

dhis2-users team mailing list archive

Option sets in program indicators

 

Hi all,
For program indicators, do option set codes count as number values in an expression/filter? I want to create a program indicator that captures whether ANY response was given to a particular data element in a tracker program stage (with response type text using an option set with 11 options, codes: 01, 02, 03…11). I want to sum all of the cases where the user selected ANY option for that data element.

Does this make sense?
Program expression: Enrollment count. [or TEI count?]
Program filter: {#uidofdataelement} >='01' and #{CDbxAsttXzY.mFhpwpIv7ci}<='11'

Is there a better way to do this? Am I right that d2:hasValue cannot be used if the response type is an option set?

Thanks,
Natalie

Follow ups