Thank you Abyot! That works perfect.

Date: Thu, 11 Dec 2014 19:44:29 +0530
Subject: Re: [Dhis2-users] Getting program stage sections and their data 
elements from web API
From: pam...@gmail.com
To: aby...@gmail.com
CC: blais...@hotmail.com; dhis2-users@lists.launchpad.net

Hi Abyot,

Is it possible to extend this to return data elements associated with a each 
visit(stage) when only a trackedEntityInstanceID and programId is provided.

Thank you

Pamod

On Thu, Dec 11, 2014 at 1:45 PM, Abyot Gizaw <aby...@gmail.com> wrote:
Hi,
For example, the following returns id and name for program stage, program stage 
sections, program stage section data elements. 
api/programStages/XXXXX.json?fields=id,name,programStageSections[id,name,programStageDataElements[dataElement[id,name]]]

Play around with the fields parameter to match the properties you want the 
server to return.
---Thank you,
Abyot.

On Fri, Dec 5, 2014 at 6:02 PM, Blai Samitier <blais...@hotmail.com> wrote:
Hello,



I am using the web API to get information from events, and I want to classify 
the data elements with the program stage sections I defined in the program 
stage.



My problem is that I can't find the resource that gives me the program Stage 
Section with their data elements. I can only find the name of the sections in 
/api/programStages/xxxx/programStageSections, but not the data elements they 
contain.



Thanks!

_______________________________________________

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




-- 
Pamod


                                          
_______________________________________________
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

Reply via email to