From the Web API class, the example we did for importing data into the DHIS2 comprised of a data element with a single category combination option (Number). However, I have been looking at importing data for data elements with several category-combination options, i.e Cholera (0-4 years, Male Or Cholera (5 and Over, Male), etc. How would i get the ID for a specific category-combination option?
you can navigate to the categoryOptionCombinations resource from the
/api starting point just as anything else. The URL for this on the
demo site is this:
On Wed, Jun 27, 2012 at 3:02 PM, Sam Kasozi <kasozis@gmail.com> wrote:
Hi Lars,
From the Web API class, the example we did for importing data into the DHIS2
comprised of a data element with a single category combination option
(Number). However, I have been looking at importing data for data elements
with several category-combination options, i.e Cholera (0-4 years, Male Or
Cholera (5 and Over, Male), etc. How would i get the ID for a specific
category-combination option?
Hi Lars, I think i would need to get this more clearly.
If i take a scenario from one of the datasets in the Ug DHIS2 - HMIS 105:2 and we specifically look at the Tetanus Immunization section (2.9)
It has a data element category “TT Vaccine (for Preg Women, non-Preg women & Immun in Sch)”; which also happens to be the name of the data element category combination The data elements for that category combination include Tetanus Immun dozes from 1 up to 4.
From the Web API; Navigating from the Data elements, and then through the categoryCombo, then through each CategoryOptionCombos yields the same ID’s for each data element as shown below.
okay.. What you see is actually correct. The idea is that category
option combos are common and re-used across data elements. So having
the same category option combo identifier for various data elements is
intentional.
To uniquely identify a data value in a DXF data value set you have to
give both category option combo and data element, e.g. like this:
On 7/2/12, Lars Helge Øverland <larshelge@gmail.com> wrote:
Hi Sam,
okay.. What you see is actually correct. The idea is that category
option combos are common and re-used across data elements. So having
the same category option combo identifier for various data elements is
intentional.
To uniquely identify a data value in a DXF data value set you have to
give both category option combo and data element, e.g. like this: