Re: [Dhis2-users] Getting program stage sections and their data elements from web API

2014-12-12 Thread Pamod Amarakoon
Hi Abyot, yes about event data. eg: Get event data element values of a tracked entity instance across different programme stages of a programme. For example get height and weight of a child in past clinic visits to be displayed on a graph. Thank you On Fri, Dec 12, 2014 at 3:46 PM, Abyot Gizaw

Re: [Dhis2-users] Getting program stage sections and their data elements from web API

2014-12-12 Thread Abyot Gizaw
Hi Pamond, I am not sure I get your point. If you wanted only data elements, then you can use only programId. Or do you want event data? See if the following helps https://apps.dhis2.org/dev/api/programs.json?filter=id:eq:IpHINAT79UW&fields=id,name,programStages[id,name,programStageDataElements

Re: [Dhis2-users] Getting program stage sections and their data elements from web API

2014-12-11 Thread Blai Samitier
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

Re: [Dhis2-users] Getting program stage sections and their data elements from web API

2014-12-11 Thread Pamod Amarakoon
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 wrote: > Hi, > > For example, the following returns id and name for p

Re: [Dhis2-users] Getting program stage sections and their data elements from web API

2014-12-11 Thread Abyot Gizaw
Hi, For example, the following returns id and name for program stage, program stage sections, program stage section data elements. api/programStages/X.json?fields=id,name,programStageSections[id,name,programStageDataElements[dataElement[id,name]]] Play around with the *fields *parameter to m

[Dhis2-users] Getting program stage sections and their data elements from web API

2014-12-05 Thread Blai Samitier
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