DHIS 2 API for pulling Data Element ID,Data Element Name and Data Element Value

Hello,
Am trying to build a mobile app and am stuck on what API I can use to bring Data Element ID,Data Element Name and Data Element Value in one array/json?

Am currently using the following:
For Data Element ID and Data Element Value
DHIS 2 Demo - Sierra Leone

For Data Element ID and Data Element Name
DHIS 2 Demo - Sierra Leone

I want one that will output the Data Element ID,Data Element Name and Data Element Value

In my knowledge you need to write a script to run these two REST apis and then colllate to a csv in ID,Name,value, period

Thanks for that. Will try and write something. Do you have something to learn from?

@mountain,a script should make this happen as long as you have the required user rights

Hello team, I managed a workaround using two ajax calls and combining their output. I’m developing the App using cordova.

Nice @mountain. Maybe you wanna share your code here for future users? :slight_smile:

1 Like

I used the below link:

1 Like