We already have Organisation Units set up in our instances of DHIS. We have added an attribute to Org Units. We want to populate that attribute with external data in a bulk fashion. Is there a way to do that via a Data Import from the front end or is it something we’d need to do via the backend? (The bulk update will be a one-time occurrence.)
Thanks in advance.
···
Laura E. Lincks
Database Manager/Developer
ICAP - Columbia University
Mailman School of Public Health
60 Haven Ave, Floor B1
New York, NY 10032
Tel: 212 304 7132
I’m sorry for the late reply, but yes… this is possible.
For every org unit payload, there will be a property called “attributeValues”: [], you can add values using the payload { “value”: “value”, “attribute”: { “id”: “attribute-id” } }.
Another way of seeing this is to simply add values using the UI, and then have a look at the payload in /api/organisationUnits/ID.json
We already have Organisation Units set up in our instances of DHIS. We have added an attribute to Org Units. We want to populate that attribute with external data in a bulk fashion. Is there a way to do that via a Data Import from the front end or is it something we’d need to do via the backend? (The bulk update will be a one-time occurrence.)
Thanks in advance.
Laura E. Lincks
Database Manager/Developer
ICAP - Columbia University
Mailman School of Public Health
60 Haven Ave, Floor B1
New York, NY 10032
Tel: 212 304 7132