Mobile app version of vmapp.org
Login or Join
Hamaas447

: How to find all Indicators that use a specific data element via the DHIS2 API? What is the best way to find all Indicators that use a specific DataElement? Do I have to search for the id

@Hamaas447

Posted in: #Dhis2

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

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Hamaas447

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sue5673885

Yes 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

/api/indicators?filter=numerator:like:fbfJHSPpUQD&filter=denominator:like:fbfJHSPpUQD&rootJunction=OR

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme