Hi all,
I were wondering if you could help me get data elements together with option sets attached to them through an API. The data elements are part of a tracker program.
Thanks.
Hi all,
I were wondering if you could help me get data elements together with option sets attached to them through an API. The data elements are part of a tracker program.
Thanks.
hi @dmbantu
Maybe something like this is what you are looking for?
https://play.dhis2.org/2.38.0/api/dataElements?fields=id,name,optionSet[id,name,options[id,name]]&filter=domainType:eq:TRACKER
Otherwise, please consult the Developer documentation section on working with the Metadata API (Metadata - DHIS2 Documentation) for more detailed information.
Best regards,
Jason
Hi @jason
The following API request is giving only a list of data elements and their Ids and not option sets
screenshot
I will also consult the developer documentation as you have mentioned.
Thanks
Please copy the link again from the post. The first time there was an error with the Markdown and the link was cut into two halves which is the reason why you couldn’t see the optionsets