← Back to team overview

dhis2-devs team mailing list archive

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

 

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@xxxxxxxxx> 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@xxxxxxxxxx> 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. <http://www.2paths.com>
>>
>> lcrees@xxxxxxxxxx
>> skype: lorill2paths
>> (604) 689-4123 x 15 <(604)%20689-4123>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-devs
>> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
>> 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@xxxxxxxxx
> http://www.dhis2.org <https://www.dhis2.org/>
>
>


-- 
Lorill Crees
Project Leader / Senior Developer
2Paths Solutions Ltd. <http://www.2paths.com>

lcrees@xxxxxxxxxx
skype: lorill2paths
(604) 689-4123 x 15

References