Can multiple users post different data values to the same event?

Please @didate @Shurajit_Dutta @Gassim
I have read all the doc I could but couldn’t figure out if this is possible. Suppose we have an event with more than one users capturing data, is it possible for them to send the event payload separately with different devices? Where the program, orgUnit, eventDate is the same and the data values are different. Will the data be over ridden by new data? Which of the old and new tracker api should be used for this case scenario.

For example

USER 1

{
    "program": "eBAyeGv0exc",
    "orgUnit": "DiszpKrYNg8",
    "eventDate": "2013-05-17",
    "status": "COMPLETED",
    "completedDate": "2013-05-17",
    "storedBy": "user1",
    "dataValues": [
        {
            "dataElement": "qrur9Dvnyt5",
            "value": "22"
        },
        {
            "dataElement": "oZg33kd9taw",
            "value": "Male"
        },
        {
            "dataElement": "msodh3rEMJa",
            "value": "2013-05-18"
        }
    ]
}

USER 2
{
“program”: “eBAyeGv0exc”,
“orgUnit”: “DiszpKrYNg8”,
“eventDate”: “2013-05-17”,
“status”: “COMPLETED”,
“completedDate”: “2013-05-18”,
“storedBy”: “admin”,
“dataValues”: [
{
“dataElement”: “sdur9Dvnyt5”,
“value”: “John Doe”
},
{
“dataElement”: “sZg55kd9taw”,
“value”: “30”
},
{
“dataElement”: “dfgdh3rEMJa”,
“value”: “Element of report”
}
]
}

I think which ever is received first will be saved and then the one the follows it will be a modification.

@Gassim thanks for the clarification. I thought as much. I have decided to continue running my node rest api along with the dhis2 to keep our workflow and get the best of both tool.

1 Like

Looking forward to hearing more about your innovations in the community :+1::+1::+1:

Thanks!