← Back to team overview

dhis2-users team mailing list archive

Re: Web API data element category combination option IDs

 

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:

<dataValueSet dataSet="..." organisationUnit="..." period="...">
  <dataValue dataElement="Qwx59CAvdUy" categoryOptionCombo="pvO9TkTgA7C">
  <dataValue dataElement="aKV3XGrptar" categoryOptionCombo="pvO9TkTgA7C">
</dataValueSet>

which will exchange data values for:

Tetanus Immunization Dose 1, Pregnant woman
Tetanus Immunization Dose 2, Pregnant woman



Let me know if this clarified it ;)

Lars


Follow ups

References