In previous versions of DHIS, it was possible to use trackedEntityInstance field to map attributes from api/trackedEntityInstances.json to data values from api/events.json.
With version 2.37, I can’t find anything in the api response to help me achieve that.
Any recommendations?
/api/33/trackedEntityInstances.json
"created": "xx",
"orgUnit": "xxx",
"createdAtClient": "xxx",
"trackedEntityInstance": "xxx",
"lastUpdated": "xxx",
"trackedEntityType": "xxx",
"lastUpdatedAtClient": "xxx",
"potentialDuplicate": xx,
"inactive": xx,
"deleted": xx,
"featureType": "xx",
"programOwners": [],
"enrollments": [],
"relationships": [],
"attributes": []
/api/tracker/events.json
"instances": [
{
"event": "xxx",
"status": "xxx",
"program": "xxx",
"programStage": "xxx",
"enrollment": "xxx",
"orgUnit": "xxx",
"orgUnitName": "xx",
"relationships": [],
"occurredAt": "xxx",
"scheduledAt": "xxx",
"storedBy": "xxx",
"followup": xxx,
"deleted": xxx,
"createdAt": "xxx",
"updatedAt": "xxx",
"attributeOptionCombo": "xxx",
"attributeCategoryOptions": "xxx",
"completedAt": "xxx",
"createdBy": "xxx",
"updatedBy": "xxx",
"dataValues": []