We will be building integration between Bahmni and DHIS2. Currently DHIS2 serves as the central reporting platform for our client. The patient data needs to be synced from various clinic sites which will be using Bahmni EMR to this DHIS2 instance.
In DHIS2 programs are configured as events with registration(Line level data), where patient registration information is captured along with the program enrollment and events.
From Bahmni we will be sending the below patient data:
- Patient registration
- Patient program enrollment
- Data captured through forms in each visit
Required patient data from Bahmni will be extracted using Reporting Mart. Use of reporting mart will simplify the process of writing SQL queries. A UI will be provided to help implementers map columns returned from the SQL queries with the DHIS2 data elements.
SQL file and mapping information will serve as the inputs to the integration service and data will be pushed to DHIS2 server using 3 API calls.
The idea is to build Bahmni DHIS2 integration generic in nature so that it can support data sync for line level events (events with registration) for any other implementation.
We will be publishing the technical solution soon in this thread. We are looking for your support to review the solutions and provide feedbacks to improve solution.