Image for post
Image for post

Magpi on the OpenFn Platform

This article was originally posted on the Magpi blog as “Integrating Magpi and DHIS2”.

Fetch new data from Magpi using Open Function

Image for post
Image for post
Finding your Magpi API Access Token
Image for post
Image for post
Creating a Magpi credential on OpenFn
fetchSurveyData({
“surveyId”: 37479,
“afterDate”: “2016–01–01”,
“postUrl”: “https://www.openfn.org/inbox/your-secret-code"
});
Image for post
Image for post
Creating a job that fetches new survey data from Magpi

Sending Magpi data to DHIS2

Image for post
Image for post
Creating a message filter trigger for Magpi data
Image for post
Image for post
Creating a job that inserts a new DHIS2 event with Magpi survey data.
Image for post
Image for post
Viewing run history for your Magpi — DHIS2 integration.

Some final thoughts

if (doubts) {  return “Getting the people & processes right is harder!"};

Written by

We help scale health & humanitarian interventions via data integration, interoperability, & automation. I’m Taylor. These are my own two cents on data systems.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store