API Access to indicators

Hi DHIS2 Community,

The DHIS2 indicator engine is very possible. We are interested in exploring ways to integrate it with external platforms and UI’s.

I’m curious on the API support for indicators. From the documentation, it looks like you might only be able to get indicator descriptions from the API? Is there an API endpoint that handles the standard CRUD operations for indicators?

https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s18.html

Also, is there any documentation on how to access generated indicator values via the API once they’ve been created. For adding data, I assume we just use the standard data input API’s.

Thanks for your help with this.

Matt

Hi Matt,

Please take a look at the Analytics API:
https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s27.html

Cheers,

Knut

···

On Mon, Nov 2, 2015 at 7:52 AM, Matt Berg mlberg@gmail.com wrote:

Hi DHIS2 Community,

The DHIS2 indicator engine is very possible. We are interested in exploring ways to integrate it with external platforms and UI’s.

I’m curious on the API support for indicators. From the documentation, it looks like you might only be able to get indicator descriptions from the API? Is there an API endpoint that handles the standard CRUD operations for indicators?

https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s18.html

Also, is there any documentation on how to access generated indicator values via the API once they’ve been created. For adding data, I assume we just use the standard data input API’s.

Thanks for your help with this.

Matt


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

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

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

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

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Hi Matt,

You can do crud operations both on /api/indicators directly or via /api/metadata. Have a look at the web api documentation: https://www.dhis2.org/doc/snapshot/en/developer/html/ch01.html

A good way to learn how to pull out data values is to play around in the pivot table app https://apps.dhis2.org/demo/dhis-web-pivot and check the request syntax in the developer console.

Jan

···

On Mon, Nov 2, 2015 at 11:32 AM, Knut Staring knutst@gmail.com wrote:

Hi Matt,

Please take a look at the Analytics API:
https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s27.html

Cheers,

Knut


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

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

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

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

On Mon, Nov 2, 2015 at 7:52 AM, Matt Berg mlberg@gmail.com wrote:

Hi DHIS2 Community,

The DHIS2 indicator engine is very possible. We are interested in exploring ways to integrate it with external platforms and UI’s.

I’m curious on the API support for indicators. From the documentation, it looks like you might only be able to get indicator descriptions from the API? Is there an API endpoint that handles the standard CRUD operations for indicators?

https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s18.html

Also, is there any documentation on how to access generated indicator values via the API once they’ve been created. For adding data, I assume we just use the standard data input API’s.

Thanks for your help with this.

Matt


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

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

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

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

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Hi Matt,

note that we do not store indicator values at all in the system. Calculated / aggregated indicator values are computed on the fly and can be retrieved through the analytics web api resource.

Like Jan says, playing with the web pivot table app and going to download > plain datasource > json is a good way to learn the syntax.

One example query URL looks like this:

https://apps.dhis2.org/demo/api/analytics.json?dimension=dx:Uvn6LCg7dVU;OdiHJayrsKo&dimension=pe:LAST_12_MONTHS&filter=ou:ImspTQPwCqd&displayProperty=SHORTNAME

Lars

···

On Mon, Nov 2, 2015 at 1:52 AM, Matt Berg mlberg@gmail.com wrote:

Hi DHIS2 Community,

The DHIS2 indicator engine is very possible. We are interested in exploring ways to integrate it with external platforms and UI’s.

I’m curious on the API support for indicators. From the documentation, it looks like you might only be able to get indicator descriptions from the API? Is there an API endpoint that handles the standard CRUD operations for indicators?

https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s18.html

Also, is there any documentation on how to access generated indicator values via the API once they’ve been created. For adding data, I assume we just use the standard data input API’s.

Thanks for your help with this.

Matt


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

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

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

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

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org

Lars thank you understood. Thanks everyone this is extremely helpful.

Matt

···

On Mon, Nov 2, 2015 at 1:52 AM, Matt Berg mlberg@gmail.com wrote:

Hi DHIS2 Community,

The DHIS2 indicator engine is very possible. We are interested in exploring ways to integrate it with external platforms and UI’s.

I’m curious on the API support for indicators. From the documentation, it looks like you might only be able to get indicator descriptions from the API? Is there an API endpoint that handles the standard CRUD operations for indicators?

https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s18.html

Also, is there any documentation on how to access generated indicator values via the API once they’ve been created. For adding data, I assume we just use the standard data input API’s.

Thanks for your help with this.

Matt


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

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

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

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


Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

http://www.dhis2.org