dhis2-devs-core team mailing list archive
-
dhis2-devs-core team
-
Mailing list archive
-
Message #00272
ProgramStageDataElement as IdentifiableObject
Hi,
I have made ProgramStageDataElement an IdentifiableObject. From an API
perspective this means that:
- ProgramStageDataElement now has a single identifier, which should make it
easier to refer to it from javascript / maps.
- The default representation of a ProgramStage has changed a bit. Currently
when accessing a program stage, the list of program stage data elements are
automatically expanded and gives you the program stage and data element
(see below). To achieve this now you can use this URL pattern:
/api/programStages/A03MvHHogjR.json?fields=:all,programStageDataElements[:all]
In any case, this is likely better, more flexible and more consistent .
regards,
Lars
programStageDataElements:
[
-
{
- allowFutureDate: false,
- sortOrder: 0,
- allowProvidedElsewhere: false,
- compulsory: false,
- programStage:
{
- id: "A03MvHHogjR",
- name: "Birth",
- created: "2013-03-04T10:41:07.541+0000",
- lastUpdated: "2013-03-04T10:41:07.541+0000",
- href: "https://apps.dhis2.org/dev/api/programStages/A03MvHHogjR";
},
- dataElement:
{
- id: "a3kGcGDCuk6",
- name: "mnch Apgar Score",
- code: "DE_2006098",
- created: "2012-09-20T06:37:02.003+0000",
- lastUpdated: "2014-11-11T20:56:05.549+0000"
}
},
Follow ups