dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #14026
Re: API call to list all data elements within a dataset
As JSON:
https://play.dhis2.org/dev/api/dataSets/lyLU2wR22tC.json?fields=dataSetElements[dataElement[id,name,description]]
On Thu, Aug 17, 2017 at 2:38 PM, Shurajit Dutta <shurajitdutta@xxxxxxxxx>
wrote:
> Great, thanks both. Using Jason's for later versions is working well.
>
> Nick
>
> On Thu, Aug 17, 2017 at 2:34 PM, Jason Pickering <
> jason.p.pickering@xxxxxxxxx> wrote:
>
>> In later versions of DHIS2, it would be something like this I think
>>
>> https://play.dhis2.org/dev/api/dataSets/lyLU2wR22tC?fields=
>> dataSetElements[dataElement[id,name,description]]
>>
>> On Thu, Aug 17, 2017 at 2:30 PM, Vladimer Shioshvili <
>> vshioshvili@xxxxxxxxx> wrote:
>>
>>> This should get you started:
>>>
>>> api/dataElements?filter=dataSets.id:eq:DATASET_UID
>>>
>>>
>>> On Thu, Aug 17, 2017 at 8:26 AM Shurajit Dutta <shurajitdutta@xxxxxxxxx>
>>> wrote:
>>>
>>>> Hi everyone,
>>>>
>>>> Can someone share with me the API call to list all data elements within
>>>> a dataset, perhaps the uid and name? Though if someone has something
>>>> already that provides more fields that would also be great.
>>>>
>>>> Thanks,
>>>> Nick
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~dhis2-users
>>>> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>>> More help : https://help.launchpad.net/ListHelp
>>>>
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.pickering@xxxxxxxxx
>> tel:+46764147049 <+46%2076%20414%2070%2049>
>>
>
>
>
> --
> Shurajit Dutta
> Health Information Consultant
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help : https://help.launchpad.net/ListHelp
>
>
--
Knut Staring
Dept. of Informatics, University of Oslo
Norway: +4791880522
Skype: knutstar
http://dhis2.org
References