Dear OpenFn Users,
In our project, we will need to be able to pull data from DHIS2 into CommCare and vice versa. The Government workers will be submitting data via their DHIS2 Mobile App to their DHIS2 server and we would like to be able to automatically push that data to CommCare for integrated data management and reporting. Similarly, we would like to be able to automatically push data collected via CommCare App to DHIS2.
I am new to OpenFn and tried to look at how that can be achieved via OpenFn but again it is not very clear to me yet.
Anyone with experience setting up such an integration?
I will greatly appreciate.
Thanks and kind regards,
Chaiwa.
Hi Taylor,I hope you have been okay! I am still stuck on getting the basic setup to fetch data from DHIS2. As you requested in the previous email, please see below the the details :1. Project Name: Mawa WASH2. Job Name: Fetch Mawa WASH CLTS Data3. I have also allowed "Support Access"Note that I am able to get the response as a "200" but the message content in the inbox contains no expected data:a. Post Result:Getting Data Value Sets:Get Result: { dataSet: 'SaIdNyi73XA',period: '201702',orgUnit: 'J7PQPWAeRUk' }Post Result: 200Finished.b. Message Body{"period": "201702","orgUnit": "J7PQPWAeRUk","dataSet": "SaIdNyi73XA","__query_params": {}}Thanks and kind regards,Chaiwa
fetchData(
{ fields: {
"dataSet": 'pBOMPrpg1QX',
"orgUnit": 'DiszpKrYNg8',
"period": '201711'
}}
){
"data": {},
"configuration": {
"username": "admin",
"password": "district",
"apiUrl": "https://play.dhis2.org/demo"
}
}Getting Data Value Sets:
Get Result: { dataSet: 'pBOMPrpg1QX',
period: '201711',
orgUnit: 'DiszpKrYNg8',
dataValues:
[ { dataElement: 'Ix2HsbDMLea',
period: '201711',
orgUnit: 'DiszpKrYNg8',
categoryOptionCombo: 'bRowv6yZOF2',
attributeOptionCombo: 'bRowv6yZOF2',
value: '2',
storedBy: 'system',
created: '2014-02-27T06:43:18.659+0000',
lastUpdated: '2014-02-27T06:43:18.659+0000',
followUp: false },
{ dataElement: 'MSZuQ1mTsia',
period: '201711',
orgUnit: 'DiszpKrYNg8',
categoryOptionCombo: 'bRowv6yZOF2',
attributeOptionCombo: 'bRowv6yZOF2',
value: '5',
storedBy: 'system',
created: '2014-01-28T00:16:26.887+0000',
lastUpdated: '2014-01-28T00:16:26.887+0000',
followUp: false },
{ dataElement: 'r6nrJANOqMw',
period: '201711',
orgUnit: 'DiszpKrYNg8',
categoryOptionCombo: 'bRowv6yZOF2',
attributeOptionCombo: 'bRowv6yZOF2',
value: '7',
storedBy: 'system',
created: '2014-01-28T00:16:25.438+0000',
lastUpdated: '2014-01-28T00:16:25.438+0000',
followUp: false },
{ dataElement: 'eY5ehpbEsB7',
period: '201711',
orgUnit: 'DiszpKrYNg8',
categoryOptionCombo: 'bRowv6yZOF2',
attributeOptionCombo: 'bRowv6yZOF2',
value: '2',
storedBy: 'system',
created: '2014-02-27T06:43:18.184+0000',
lastUpdated: '2014-02-27T06:43:18.184+0000',
followUp: false },
{ dataElement: 'NpJtsQkMTm3',
period: '201711',
orgUnit: 'DiszpKrYNg8',
categoryOptionCombo: 'bRowv6yZOF2',
attributeOptionCombo: 'bRowv6yZOF2',
value: '6',
storedBy: 'system',
created: '2014-01-28T00:16:25.158+0000',
lastUpdated: '2014-01-28T00:16:25.158+0000',
followUp: false },
{ dataElement: 'f7n9E0hX8qk',
period: '201711',
orgUnit: 'DiszpKrYNg8',
categoryOptionCombo: 'bRowv6yZOF2',
attributeOptionCombo: 'bRowv6yZOF2',
value: '6',
storedBy: 'system',
created: '2014-01-28T00:16:25.983+0000',
lastUpdated: '2014-01-28T00:16:25.983+0000',
followUp: false },
{ dataElement: 'lXolhoWewYH',
period: '201711',
orgUnit: 'DiszpKrYNg8',
categoryOptionCombo: 'bRowv6yZOF2',
attributeOptionCombo: 'bRowv6yZOF2',
value: '5',
storedBy: 'system',
created: '2014-01-28T00:16:26.415+0000',
lastUpdated: '2014-01-28T00:16:26.415+0000',
followUp: false } ] }To view this discussion on the web visit https://groups.google.com/d/msgid/openfn/a9ba9e06-f0b7-43b7-bd9d-aa4c0760b93e%40googlegroups.com.--
You received this message because you are subscribed to a topic in the Google Groups "OpenFn Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openfn/uNddpsBB3P4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openfn+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to openfn+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openfn/a9ba9e06-f0b7-43b7-bd9d-aa4c0760b93e%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "OpenFn Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openfn+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openfn/CAHSY2xvkq8zLDtLDKF-a_NpoU7ei%2BNQRBbEi8mMNfkRitFX3mg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to openfn+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openfn/a9ba9e06-f0b7-43b7-bd9d-aa4c0760b93e%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "OpenFn Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openfn+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openfn/CAHSY2xvkq8zLDtLDKF-a_NpoU7ei%2BNQRBbEi8mMNfkRitFX3mg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.