Override the data element category combination: API response difference between <No Overwrite> and leaving it empty

Dear all,

I have realized that when I add a dataElement in a dataSet in the overwrite category setting it is left empty by default. The dataset will display this dataElement with its configured category combination (same and expected result as defining it to <No overwrite).

However, the response retrieved from api/dataSet/ shows the dataSetElement without the category field whereas when specifically setting it as it retrieves the DE category combo.

For instance, in the play server the dataset Child Health has all its DE category combos empty:

And then here is the API response:

Whereas if I check one of them (BCG doses given - s46m5MS0hxu) as

The response shows the category combo.

Is this an expected behavior? What is your advice between configuring a DE as and leaving it blank?

Yours,

Eric

1 Like

Hi @barreda,

I hope you are well today. DId you manage to get a fix for this please?

Best,
James.

1 Like

Hi @jomutsani,

Thanks for your commitment, Iā€™m well hope you also are. So the short answer is no, the long is yes,but ā€¦:slight_smile:

To give more context: we are using some scripts that rely on extracting the DE categoryCombos from the dataSets endpoint. As we observed that those categoryCombos are not extracted if the dataSetElements (DSE) categorycombo is left blank, we set all those DE as < No override > instead and that works for us.

My question is purely related to the API component and would be rather: if the DSE categorycombo is not overwritten, should we be able to extract that property from the DSE or from the dataElements endpoint instead? In other words, what is the behavour we should expect from the API in this case: the one when categorycombo is blank in the UI or the one set as < No overwrite > ? (of course, giving the fact that they should not be discrepancies between them)

Hope I explained myself better.

Yours,

Eric

1 Like

Hi @barreda,

I hope that our metadata experts @morten or @viet could advice you :slight_smile:

2 Likes