Re: [Dhis2-users] API call to list all data elements within a dataset

2017-08-17 Thread Vladimer Shioshvili
Jason is right, my suggestion does not work in later versions. Akash's
gives you what I was trying to get:

https://play.dhis2.org/dev/api/dataElements?filter=dataSetElements.dataSet.id:eq:lyLU2wR22tC=id,name,description=false

On Thu, Aug 17, 2017 at 8:45 AM Akash Jindal 
wrote:

> Hi Nick,
>
> I used this one to get the same:
>
>
> /api/dataElements.json?filter=dataSetElements.dataSet.id:eq:Xd0ePcEz1nx=description,id,displayName=false
> 
>
> Regards
> Akash Jindal
>
>
> On Thu, Aug 17, 2017 at 5:55 PM, Shurajit Dutta 
> 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@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] API call to list all data elements within a dataset

2017-08-17 Thread Akash Jindal
Hi Nick,

I used this one to get the same:

/api/dataElements.json?filter=dataSetElements.dataSet.id:eq:Xd0ePcEz1nx=description,id,displayName=false


Regards
Akash Jindal


On Thu, Aug 17, 2017 at 5:55 PM, Shurajit Dutta 
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@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] API call to list all data elements within a dataset

2017-08-17 Thread Knut Staring
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 
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.picker...@gmail.com> 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 <
>> vshioshv...@gmail.com> 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 
>>> 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@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~dhis2-users
 More help   : https://help.launchpad.net/ListHelp

>>>
>>> ___
>>> Mailing list: https://launchpad.net/~dhis2-users
>>> Post to : dhis2-users@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~dhis2-users
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>>
>> --
>> Jason P. Pickering
>> email: jason.p.picker...@gmail.com
>> tel:+46764147049 <+46%2076%20414%2070%2049>
>>
>
>
>
> --
> Shurajit Dutta
> Health Information Consultant
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> 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
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] API call to list all data elements within a dataset

2017-08-17 Thread Jason Pickering
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 
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 
> 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@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>
> ___
> Mailing list: https://launchpad.net/~dhis2-users
> Post to : dhis2-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
Jason P. Pickering
email: jason.p.picker...@gmail.com
tel:+46764147049
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] API call to list all data elements within a dataset

2017-08-17 Thread Vladimer Shioshvili
This should get you started:

api/dataElements?filter=dataSets.id:eq:DATASET_UID


On Thu, Aug 17, 2017 at 8:26 AM Shurajit Dutta 
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@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~dhis2-users
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


Re: [Dhis2-users] API call to list all data elements within a dataset

2017-08-17 Thread GROUT , Lise
We would be also very happy of being able to do this, adding description field. 
 
Lise. 
 
From: Dhis2-users 
[mailto:dhis2-users-bounces+groutl=who@lists.launchpad.net] On Behalf Of 
Shurajit Dutta
Sent: 17 August 2017 14:26
To: dhis1-users
Subject: [Dhis2-users] API call to list all data elements within a dataset
 
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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp


[Dhis2-users] API call to list all data elements within a dataset

2017-08-17 Thread Shurajit Dutta
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@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp