Dear all,
can someone give me a suggestion on how to retrieve all orgunits through the
WebAPI, including parent-child relationships of orgunits, so that an orgunit
view can be created similarly to the view in Data Entry and Individual Records
in DHIS 2? Perhaps it's possible to pass a
You can do this by using the *fields* param.
Go e.g. to https://apps.dhis2.org/dev/dhis-web-pivot - orgunit tab and
have a look at the network console when you expand nodes.
On Mon, Dec 15, 2014 at 2:34 PM, Simen Skogly Russnes
simen_russ...@hotmail.com wrote:
Dear all,
can someone give
Hi Simen
We had a similar discussion in South Africa a few hours ago. If you have
your top level orgunit UID (e.g. 'JLA7wl59oN3') you can drill using API
calls such as:
api/organisationUnits?filter=level:eq:2filter=parent.id:eq:JLA7wl59oN3
If you don't know your top level UID:
Hey Simen,
Depending on how many organisation units you have you can do something like
this.
https://apps.dhis2.org/dev/api/organisationUnits.json?fields=id,name,level,parent[id]paging=false
That will get you all the org units and you could re-create the which are
children of what org unit by
Thanks all,
I think what you suggest Mark is probably the best solution in this case.
Having to do only 3-4 requests is ok for dividing into levels. I was more
worried I'd have to do something like one request per org unit with children.
Subject: Re: [Dhis2-devs] WebAPI getting all orgunits
5 matches
Mail list logo