How to find all Indicators that use a specific DataElement via the API?

Hi,

What is the best way to find all Indicators that use a specific DataElement? Do I have to search for the id in the numerator and denominator strings like this, or is there a better way?

/api/25/indicators?filter=numerator:like:HifxrAyx4sO

/api/25/indicators?filter=denominator:like:HifxrAyx4sO

DHIS 2 Version:

2.25

Build revision:

a143100

Build date:

2017-02-07 14:28

Thanks,

Lorill

···

Lorill Crees
Project Leader / Senior Developer
2Paths Solutions Ltd.

lcrees@2paths.com
skype: lorill2paths

(604) 689-4123 x 15

Hi Lorill,

that is the best way at the moment. We do have primitive support for logical operators (applies to entire query) so you could combine it like this:

https://play.dhis2.org/demo/api/indicators?filter=numerator:like:fbfJHSPpUQD&filter=denominator:like:fbfJHSPpUQD&rootJunction=OR

regards,

Lars

···

On Sat, Feb 11, 2017 at 1:07 AM, Lorill Crees lcrees@2paths.com wrote:

Hi,

What is the best way to find all Indicators that use a specific DataElement? Do I have to search for the id in the numerator and denominator strings like this, or is there a better way?

/api/25/indicators?filter=numerator:like:HifxrAyx4sO

/api/25/indicators?filter=denominator:like:HifxrAyx4sO

DHIS 2 Version:

2.25

Build revision:

a143100

Build date:

2017-02-07 14:28

Thanks,

Lorill

Lorill Crees
Project Leader / Senior Developer
2Paths Solutions Ltd.

lcrees@2paths.com
skype: lorill2paths

(604) 689-4123 x 15


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

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Hi Lars,

Thanks, that’s exactly what I’m looking for.

Cheers,

Lorill

···

On Mon, Feb 13, 2017 at 1:15 AM, Lars Helge Øverland lars@dhis2.org wrote:

Hi Lorill,

that is the best way at the moment. We do have primitive support for logical operators (applies to entire query) so you could combine it like this:

https://play.dhis2.org/demo/api/indicators?filter=numerator:like:fbfJHSPpUQD&filter=denominator:like:fbfJHSPpUQD&rootJunction=OR

regards,

Lars

On Sat, Feb 11, 2017 at 1:07 AM, Lorill Crees lcrees@2paths.com wrote:

Hi,

What is the best way to find all Indicators that use a specific DataElement? Do I have to search for the id in the numerator and denominator strings like this, or is there a better way?

/api/25/indicators?filter=numerator:like:HifxrAyx4sO

/api/25/indicators?filter=denominator:like:HifxrAyx4sO

DHIS 2 Version:

2.25

Build revision:

a143100

Build date:

2017-02-07 14:28

Thanks,

Lorill

Lorill Crees
Project Leader / Senior Developer
2Paths Solutions Ltd.

lcrees@2paths.com
skype: lorill2paths

(604) 689-4123 x 15


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

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

Lorill Crees
Project Leader / Senior Developer
2Paths Solutions Ltd.

lcrees@2paths.com
skype: lorill2paths

(604) 689-4123 x 15