Fixing a filter expression for one of our modules

I am using the following filter expression for one of my modules but have
an error message saying something is wrong with the expression. Are there
any obvious errors with how this is set up?

need_poc_tx_outcome=1 or (/data/tb_category = "MDR" and /data/patient_type
= "tb_poc")

Thanks in advance!

Hi Alexandra,

Please refer to this page
https://confluence.dimagi.com/display/commcarepublic/Module+Filtering for
module filters.

You cannot use the form data (i.e. /data/patient_type) directly in a module
filter.

Maybe if you explain in detail in which case you want to filter in/out the
module, I can help you fix your expression.

Kindest

Ismaila

··· *______________________________________________* *Ismaila DIENE*

Senior Field Technician

Dimagi, West Africa

M: + <%28617%29%20596%206243>221 78 124 61 78
F: + <%28617%29%20596%206243>221 33 820 7375

skype: isaack007
web: http://www.dimagi.com/


On Mon, Sep 26, 2016 at 9:12 AM, Alexandra Gordon < alexandra.gordon88@gmail.com> wrote:

I am using the following filter expression for one of my modules but have
an error message saying something is wrong with the expression. Are there
any obvious errors with how this is set up?

need_poc_tx_outcome=1 or (/data/tb_category = "MDR" and /data/patient_type
= "tb_poc")

Thanks in advance!

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.