I don’t know if I didn’t get something but I am not be able to retrieve individual values through the API. The play.dhis2 example doesn’t work neither and it gives me the same answer :
On Mon, May 1, 2017 at 11:55 AM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hi,
I don’t know if I didn’t get something but I am not be able to retrieve individual values through the API. The play.dhis2 example doesn’t work neither and it gives me the same answer :
But for me it doesn’t if I don’t specify co. Actually, I have a dataElement which is divided in three categories options. And so, I must call three times dataValues or simply call for the whole dataSet. In both cases I have to do the addition. Is there any option to retrieve a dataElement directly without specify category options ?
On Mon, May 1, 2017 at 11:55 AM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hi,
I don’t know if I didn’t get something but I am not be able to retrieve individual values through the API. The play.dhis2 example doesn’t work neither and it gives me the same answer :
On Mon, May 1, 2017 at 4:24 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Thank you for your quick answer, that works !
But for me it doesn’t if I don’t specify co. Actually, I have a dataElement which is divided in three categories options. And so, I must call three times dataValues or simply call for the whole dataSet. In both cases I have to do the addition. Is there any option to retrieve a dataElement directly without specify category options ?
On Mon, May 1, 2017 at 11:55 AM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hi,
I don’t know if I didn’t get something but I am not be able to retrieve individual values through the API. The play.dhis2 example doesn’t work neither and it gives me the same answer :
unfortunately the API cannot currently do exactly what you are asking for.
The dataValueSets API endpoint allows you query by data set and also data element group, if that is helpful.
Allowing for specifying individual data elements is something we should offer, so feel free to write an improvement issue at jira.dhis2.org.
best regards,
Lars
···
On Mon, May 1, 2017 at 4:24 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Thank you for your quick answer, that works !
But for me it doesn’t if I don’t specify co. Actually, I have a dataElement which is divided in three categories options. And so, I must call three times dataValues or simply call for the whole dataSet. In both cases I have to do the addition. Is there any option to retrieve a dataElement directly without specify category options ?
On Mon, May 1, 2017 at 11:55 AM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hi,
I don’t know if I didn’t get something but I am not be able to retrieve individual values through the API. The play.dhis2 example doesn’t work neither and it gives me the same answer :
2017-05-01 18:22 GMT+02:00 Lars Helge Øverland lars@dhis2.org:
Hi Ramon,
unfortunately the API cannot currently do exactly what you are asking for.
The dataValueSets API endpoint allows you query by data set and also data element group, if that is helpful.
Allowing for specifying individual data elements is something we should offer, so feel free to write an improvement issue at jira.dhis2.org.
best regards,
Lars
On Mon, May 1, 2017 at 4:24 PM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Thank you for your quick answer, that works !
But for me it doesn’t if I don’t specify co. Actually, I have a dataElement which is divided in three categories options. And so, I must call three times dataValues or simply call for the whole dataSet. In both cases I have to do the addition. Is there any option to retrieve a dataElement directly without specify category options ?
On Mon, May 1, 2017 at 11:55 AM, Ramón José Jiménez Pomareta dhis2@pomareta.ch wrote:
Hi,
I don’t know if I didn’t get something but I am not be able to retrieve individual values through the API. The play.dhis2 example doesn’t work neither and it gives me the same answer :