I created a data element ‘new respiratory disease cases’, however, after filling in my data I realized I put the aggregation operator to ‘Sum’ instead of ‘Average (sum in org unit hierarchy)’ meaning I can’t create any incidence rates. Consequently, I changed this from Sum à Average (sum in org unit hierarchy), but nothing really changed, and when I looked back at the details of my data element, the aggregation operator was set to ‘Sum’ again. Is this a bug or is this something that just can’t be changed, at least when data has already been filled in?
I also tried another approach, deleting the data element. However, I just get an error message saying: Could not delete due to association with another object: DataValue. Does this mean I have to delete all the data connected to this data element? And would I have to do anything else before I can delete the data element? I tried to find if anyone else asked the same question in the past, but there seems to be little info about this on the web, and it could be handy to know this if I were to create data elements that need to be deleted in the future.
I created a data element ‘new respiratory disease cases’, however, after filling in my data I realized I put the aggregation operator to ‘Sum’ instead of ‘Average (sum in org unit hierarchy)’ meaning I can’t create any incidence rates. Consequently, I changed this from Sum à Average (sum in org unit hierarchy), but nothing really changed, and when I looked back at the details of my data element, the aggregation operator was set to ‘Sum’ again. Is this a bug or is this something that just can’t be changed, at least when data has already been filled in?
I also tried another approach, deleting the data element. However, I just get an error message saying: Could not delete due to association with another object: DataValue. Does this mean I have to delete all the data connected to this data element? And would I have to do anything else before I can delete the data element? I tried to find if anyone else asked the same question in the past, but there seems to be little info about this on the web, and it could be handy to know this if I were to create data elements that need to be deleted in the future.
I created a data element ‘new respiratory disease cases’, however, after filling in my data I realized I put the aggregation operator to ‘Sum’ instead of ‘Average (sum in org unit hierarchy)’ meaning I can’t create any incidence rates. Consequently, I changed this from Sum à Average (sum in org unit hierarchy), but nothing really changed, and when I looked back at the details of my data element, the aggregation operator was set to ‘Sum’ again. Is this a bug or is this something that just can’t be changed, at least when data has already been filled in?
I also tried another approach, deleting the data element. However, I just get an error message saying: Could not delete due to association with another object: DataValue. Does this mean I have to delete all the data connected to this data element? And would I have to do anything else before I can delete the data element? I tried to find if anyone else asked the same question in the past, but there seems to be little info about this on the web, and it could be handy to know this if I were to create data elements that need to be deleted in the future.
It seems the dataElement endpoint does not allow the aggregationType to be changed?
Sending a PUT payload of the object with the aggregationType set to ‘AVERAGE’ from ‘SUM’ returns successfully. It does however not update the value correctly.
Is this intended? Is one not supposed to change the aggregateType?
I created a data element ‘new respiratory disease cases’, however, after filling in my data I realized I put the aggregation operator to ‘Sum’ instead of ‘Average (sum in org unit hierarchy)’ meaning I can’t create any incidence rates. Consequently, I changed this from Sum à Average (sum in org unit hierarchy), but nothing really changed, and when I looked back at the details of my data element, the aggregation operator was set to ‘Sum’ again. Is this a bug or is this something that just can’t be changed, at least when data has already been filled in?
I also tried another approach, deleting the data element. However, I just get an error message saying: Could not delete due to association with another object: DataValue. Does this mean I have to delete all the data connected to this data element? And would I have to do anything else before I can delete the data element? I tried to find if anyone else asked the same question in the past, but there seems to be little info about this on the web, and it could be handy to know this if I were to create data elements that need to be deleted in the future.
It seems the dataElement endpoint does not allow the aggregationType to be changed?
Sending a PUT payload of the object with the aggregationType set to ‘AVERAGE’ from ‘SUM’ returns successfully. It does however not update the value correctly.
Is this intended? Is one not supposed to change the aggregateType?
I created a data element ‘new respiratory disease cases’, however, after filling in my data I realized I put the aggregation operator to ‘Sum’ instead of ‘Average (sum in org unit hierarchy)’ meaning I can’t create any incidence rates. Consequently, I changed this from Sum à Average (sum in org unit hierarchy), but nothing really changed, and when I looked back at the details of my data element, the aggregation operator was set to ‘Sum’ again. Is this a bug or is this something that just can’t be changed, at least when data has already been filled in?
I also tried another approach, deleting the data element. However, I just get an error message saying: Could not delete due to association with another object: DataValue. Does this mean I have to delete all the data connected to this data element? And would I have to do anything else before I can delete the data element? I tried to find if anyone else asked the same question in the past, but there seems to be little info about this on the web, and it could be handy to know this if I were to create data elements that need to be deleted in the future.