WebAPI TrackedEntityInstance Attribute filter combine

Hi,

In WebAPI, filter can be combined with ‘AND’ condition.

/api/26/dataElements?filter=id:eq:ID1&filter=id:eq:ID2

However, in TrackedEntityInstance attribute value filtering, it does not support this (2 filter condition combining).

api/trackedEntityInstances.json?filter=LoGHwYUQZ9y:LIKE:Maria&filter=LoGHwYUQZ9y:LIKE:Serra

(Also, it has a bit different filter operator → ‘ilike’ instead of ‘LIKE’)

It will be great if we can have filter ‘AND’ combining here (TrackedEntityInstance).

Thanks.

Hi James

Please file an issue for it in Jira (jira.dhis2.org), I can’t guarantee it for 2.27 though…

···

On Mon, Mar 27, 2017 at 3:10 PM, James Chang jamesbchang@gmail.com wrote:

Hi,

In WebAPI, filter can be combined with ‘AND’ condition.

/api/26/dataElements?filter=id:eq:ID1&filter=id:eq:ID2

However, in TrackedEntityInstance attribute value filtering, it does not support this (2 filter condition combining).

api/trackedEntityInstances.json?filter=LoGHwYUQZ9y:LIKE:Maria&filter=LoGHwYUQZ9y:LIKE:Serra

(Also, it has a bit different filter operator → ‘ilike’ instead of ‘LIKE’)

It will be great if we can have filter ‘AND’ combining here (TrackedEntityInstance).

Thanks.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org