Querying Events API for a data value

Hi,

Is there a way to filter the Event API for a data value (to only return events where it matches to the value)?

What I tried:

Happy to create a JIRA issue if requested.

Best,

David

···

David Huser
DHIS2 Support Specialist

dhuser@baosystems.com | https://baosystems.com | 2900 K Street, Suite 507, Washington D.C. 20007

Thanks Abyot! Only had to add ouMode=DESCENDANTS to search all OUs.

image

···

On Thu, Apr 19, 2018 at 11:08 AM, Abyot Asalefew Gizaw abyot@dhis2.org wrote:

Hi,

See below


David Huser
DHIS2 Support Specialist

dhuser@baosystems.com | https://baosystems.com | 2900 K Street, Suite 507, Washington D.C. 20007

The end point is

https://play.dhis2.org/2.29/api/28/events/query.json?orgUnit=DiszpKrYNg8&programStage=Zj7UnCAulEk&filter=qrur9Dvnyt5:GT:11:LT:13

or

https://play.dhis2.org/2.29/api/28/events/query.json?orgUnit=DiszpKrYNg8&programStage=Zj7UnCAulEk&filter=qrur9Dvnyt5:EQ:12

This works only from api/events/query endpoint. It is also mandatory to specify program stage.

Abyot A. Gizaw.

Senior Engineer, DHIS2

University of Oslo

http://www.dhis2.org

On Thu, Apr 19, 2018 at 10:58 AM, David Huser dhuser@baosystems.com wrote:

Hi,

Is there a way to filter the Event API for a data value (to only return events where it matches to the value)?

What I tried:

Happy to create a JIRA issue if requested.

Best,

David