Re: [Dhis2-users] API for reading categoryOptions per categoryOptionCombo

2015-11-25 Thread uwe wahser
Thanks to both of you - that brought down the extraction time in this specific step from 20 minutes to only one :-) Actually I need both variants, as I have to get the dimensions, that are responsible for a specific option in a optionCombo by linking the option-id from the optionCombo to the o

Re: [Dhis2-users] API for reading categoryOptions per categoryOptionCombo

2015-11-25 Thread Bob Jolliffe
A slight variation on Lars's suggestion gives you them broken down into categories (which might make mapping easier) curl -u admin:district -X GET -g "https://play.dhis2.org/demo/api/categoryCombos/O4VaNks6tta.json?fields=id,name,code,categories[id,code,name,categoryOptions[id,code,name]]"; On 25

Re: [Dhis2-users] API for reading categoryOptions per categoryOptionCombo

2015-11-25 Thread Lars Helge Ă˜verland
Hi Uwe, try using field filtering like this: https://play.dhis2.org/demo/api/categoryCombos/O4VaNks6tta.json?fields=id,categoryOptionCombos[categoryOptions[id,code,name]] Docs here . regards, Lars On Wed, Nov 25, 2015 a

[Dhis2-users] API for reading categoryOptions per categoryOptionCombo

2015-11-25 Thread Uwe Wahser
Dear all,I am experimenting with the DHIS2-api within the context of loading bigger amounts of external data into a DHIS2 dataSet. At on point I need the codes of all categoryOptions involved in all categoryOptionCombos of a categoryCombo of a dataSet in order to join them against the codes in my