I am facing some problems filtering orgunits with the API. Our scenario have many Organisation Units with the same name. Basically, because we are implementing the health services as part of the hierarchy. However, at facility level, the names of the services are unique.
The problem comes when we want to obtain the id of a specific service. We are used to call the API and filter by name, this is an example with a service named "Hospitalization Ward":
http://localhost:8080/dhis216/api/organisationUnits?filter=name:eq:Hospitalization%20Ward&paging=false
<metadata xmlns="http://dhis2.org/schema/dxf/2.0">
</metadata>
We are interested in filtering this result with parent orgunit id (or name). However, we do not find how to access this attribute (maybe because is a nested one) using the filter of the API.
Maybe I am losing something, maybe has to be thinked different.
Thanks in advance for any help.
Cheers,
Octavio.
_______________________________________________ Mailing list: https://launchpad.net/~dhis2-users Post to : [email protected] Unsubscribe : https://launchpad.net/~dhis2-users More help : https://help.launchpad.net/ListHelp

