← Back to team overview

dhis2-devs team mailing list archive

Attempting to retrieve data in ADX format

 

Hi,

I'm playing around with retrieving data in ADX format. I've been looking at
the documentation here:
http://dhis2.github.io/dhis2-docs/master/en/developer/html/ch01s16.html#d0e3574

I've been unable to retrieve any actual data - I can only receive an empty
adx tag.

Here are some examples from play.dhis2.com:

Doing a straight GET using UIDs with this URL:
https://play.dhis2.org/demo/api/dataValueSets?orgUnit=
jNb63DIHuwU&dataSet=ULowA8V3ucd&startDate=2015-01-01&endDate=2015-12-31

will return data values. EG:
{
    "dataValues": [
        {
            "dataElement": "JIazHXNSnFJ",
            "period": "201501",
....

However, doing a GET using Codes and adding the "Accept:
application/xml+adx"  in the header with this URL:

https://play.dhis2.org/demo/api/dataValueSets?orgUnit=OU_573&dataSet=DS_1153709&startDate=2015-01-01&endDate=2015-12-31

only returns this empty tag:
<adx
    xmlns="urn:ihe:qrph:adx:2015"/>

Is there something I'm doing wrong here? How can I get the data in this
example returned in ADX format?

Thanks,

Lorill

Follow ups