Hi.all,
This is the query: https://…/dhis/api/33/events?program=YWU3ngLSUFj&idScheme=name&filter=IPQnI3Z1x1e:eq:%E8%B5%96%E8%89%AF%E6%AD%A6
the elementid in filter must using id ,but name,even add “idScheme=name”, is it true?
Hi.all,
This is the query: https://…/dhis/api/33/events?program=YWU3ngLSUFj&idScheme=name&filter=IPQnI3Z1x1e:eq:%E8%B5%96%E8%89%AF%E6%AD%A6
the elementid in filter must using id ,but name,even add “idScheme=name”, is it true?
Hi @linxd,
Thank you for reporting your issue.
Can you let us know which version of DHIS2 you are on and a few more steps to reproduce your issue, what is happening and expected outcome?
Best regards,
Karoline
dhis2 2.33.2, just do query in browser
I can’t do the query in browser because I do not have the same program, and it would be great if you could reproduce the steps on the demo server so the dev team can help with a potential bug fix.
Thank you!
Karoline
in 2.40, with :
play.dhis2.org/40.1.0/api/tracker/events/ohAH6BXIMad?&idScheme=CODE
Got:
{
“event”: “ohAH6BXIMad”,
“status”: “ACTIVE”,
“program”: “lxAQ7Zs9VYR”,
“programStage”: “dBwrot7S420”,
“enrollment”: “RHyovvxGd2F”,
“orgUnit”: “DiszpKrYNg8”,
“orgUnitName”: “Ngelehun CHC”,
“occurredAt”: “2023-04-07T00:00:00.000”,
“followup”: false,
“deleted”: false,
“createdAt”: “2018-04-12T16:05:41.933”,
“createdAtClient”: “2017-04-12T16:05:41.933”,
“updatedAt”: “2018-04-12T16:05:41.933”,
“attributeOptionCombo”: “HllvX50cXC0”,
“attributeCategoryOptions”: “xYerKDKCefk”,
“assignedUser”: {},
“dataValues”: [
{
“createdAt”: “2016-04-12T16:05:41.993”,
“updatedAt”: “2016-04-12T16:05:41.993”,
“storedBy”: “admin”,
“providedElsewhere”: false,
“dataElement”: “vANAXwtLwcT”,
“value”: “9”
},
{
“createdAt”: “2016-04-12T16:05:41.948”,
“updatedAt”: “2016-04-12T16:05:41.948”,
“storedBy”: “admin”,
“providedElsewhere”: false,
“dataElement”: “sWoqcoByYmD”,
“value”: “false”
}
],
“notes”:
}