See Creating a Bahmni Mart database for analytics, including the demo link towards the end of the thread (which lets you explore the data mart using metabase). The ETL part is done using Spring Batch. There are a bunch of pre-written data tasks to handle standard domain objects, and to do row-per-encounter-by-form. And you can write custom ones also. And this should be independent of Bahmni, so it should be able to run against any OpenMRS distro.
This was built for one particular Bahmni client, but with design overview from the architects on the core team, as it’s intended to become the generic “Bahmni Mart” solution. The status is somewhere between MVP and 1.0. There are definitely opportunities to extend this, and/or to try hooking it up with other OpenMRS distributions.
There’s a Bahmni project starting now to leverage the Bahmni Mart database above to push data to DHIS2 Tracker. See Bahmni DHIS2 integration for line level data (events with registration). There’s a technical document linked at the end of the thread (that I forgot to review!), so this is at early stages.
To be clear this is already resourced and getting built, but I imagine that we could propose making it more generic and/or better in some way. (The client for this project is active with DHIS2 as well, so I’ll try to contact them and see if they might be interested in collaborating on a proposal.)