Re: [Dhis2-devs] API Datavalue Question

2015-08-12 Thread Timothy Harding
Thanks for the breakdown Alex, I think it would be good if the documentation stated which of the parameters are required and which weren't, but this gets me started. Followup question: If a dataset i

Re: [Dhis2-devs] API Datavalue Question

2015-08-12 Thread Alex Tumwesigye
Dear Timothy, The dataSet query parameter is required. Try something like api/dataValueSets?orgUnit="KQfLafniynG"&dataSet='dataSetUID' Note that datavalues are related to a period, orgunit and dataset. Ideally, a set of values (dataValueSet) may not appear in multiple datasets, thus there is nee

Re: [Dhis2-devs] API Datavalue Question

2015-08-12 Thread Knut Staring
You could do a mix of those approaches - create a parametrised SQL view that is available through the API. On Wed, Aug 12, 2015 at 3:33 PM, Timothy Harding wrote: > Hello Dev Group, > > Is it possible to get all the datavalues associated with an OU out of the > API? > > I'm getting the need mor

Re: [Dhis2-devs] API Datavalue Question

2015-08-12 Thread Timothy Harding
Thanks Knut, That sounds like a great option! I fear, in this case, it may not help as this instance is running 2.17, I think that parameterized SQL View was introduced in 2.19 (please correct me though)? For instances on 2.19 and above though, that sounds like it would be perfect. Without this a

[Dhis2-devs] API Datavalue Question

2015-08-12 Thread Timothy Harding
Hello Dev Group, Is it possible to get all the datavalues associated with an OU out of the API? I'm getting the need more and more to remove org units which will randomly have dependencies. I know the official position of DHIS2 is "don't ever remove org units" but I'm embarking on this quest all