← Back to team overview

dhis2-devs team mailing list archive

Re: Care2X and DHIS2

 

Hi Lungo (cc'd to list)

Can you make this discussion more concrete by by providing details of the
MTUHA report?

Taking things one step at a time, can you then also verify that dhis2 in TZ
has all the existing required dataelements for this report.  Without more
detail I don't know if the MTUHA report is a report of dataelements or a
processed report of indicators.  If the latter then you should identify a
report of dataelements required to calculate the MTUHA indicators.

I would suggest that we then define an SDMX-HD DSD for this report (ie
specify all the codes to be used for dataelements, dimensions etc) and
ensure that DHIS can consume datasets conforming to this.  If all the
required dataelements exist within the TZ dhis database then I have a small
script which can assist in generating this from the dhis metadata.
Afterwards it can be trimmed and tidied a bit.

Then there is the small(!) matter of producing this dataset from the data
within the care2x database.  Most fundamentally this will be about
performing SQL queries on that database and generating XML from the
resultsets.  I don't think it matters too much whether those queries are
executed within the context of kettle or a php script.  What is more
important is to understand whether the the required queries are possible
from the existing data.  It might be you are only able to produce a subset
of what you need for example.  You would be in a better position to know
this.  As I say, without better knowledge of the MTUHA report its difficult
to be too specific.

I think that if you are familiar with kettle you can use it to interactively
fiddle with these things to better understand what it is possible to
generate off your database.  But It should probably be your aim to do this
ultimately with php scripts if you want to settle the process into a regular
workflow.  The php scripts can be better integrated into your care2x.  But
some programming required :-)  Perhaps you will end up with a phased
approach, starting with kettle and gradually folding the queries into a
care2x module.  (Its quite a few years since I looked at care2x - I seem to
recall php4 and smarty templates).

Regards
Bob

On 23 May 2011 04:30, Juma Lungo <juma.lungo@xxxxxxxxxxxx> wrote:

>  Dear Ola
>
> Can you take this case to the main DHIS2 developers' list. This case has
> taken too long to be solved. As i shared before, the Care2x and DHIS2
> integration tool  developed in Tanzania before, was not working at all.
>
> Lungo
>
> On 05/23/2011 01:14 AM, Maurizio Bricola wrote:
>
> Dear all,
>
>  after my visit in Arusha, I have tried to focus on how we could proceed
> further especially with the MTUHA Report and Care2X.
>
>  I have read 3 times :) the report of Robert Meggle and I can say that his
> analysis is correct, and the options he suggests are the right way to
> proceed.
>
>  Indeed we have different options which are valid:
>
>  1) a little program in Java that can interface with the Care2X DB and
> generates the XML file defining the right template. Every time we need to
> import/export a report, we open the program and it will generate the file
> that will be manually imported to the DHIS2 DB.
> This program can be the one suggested by Robert http://kettle.pentaho.comand will have the advantage of being there already and have a graphic UI,
> which could be used also by non-programmers, minimizing the realization time
> and making it easier to review the work.
>
>  2) use some scripts (php, java or even pearl etc.) which read the Care2X
> DB and generate the XML file in the right format (compatible with what DHIS2
> is expecting to receive). After that the file will be manually imported to
> DHIS2 DB. This will be basically a module (small application to export data
> in xml compatible with what DHIS2 is expected to import)   of Care2X, and
> will be composed of n files, among others a configuration file where to
> specify the DB name, and other configuration like values conversion etc.
> This will all depend on how the programmer will develop this module.
>
>  In less technical term the script will perform something like that:
>
>  Check DB xyz
> Extract a, b, c, d
> Convert into e, f, g, h
> Generate XML
> Save and/or download XML
>
>  If we opt for option 2 what we need is a team or a programmer with
> knowledge of both systems to develop the module and knowledge of MTUHA
> requirements.
>
>  With option one we need to know clearly the MTUHA requirements and learn
> how to use the suggested software.
>
>  In order to decide it might be good if someone could have a look at that
> software in details and run a test.
>
>  With Kind Regards,
>
> Maurizio Bricola
> Technical Advisor (Kenya - Malawi - Tanzania)
> International Institute for Communication and Development (IICD)
> P.O. Box 11586, 2502 AN The Hague, the Netherlands
> Visitors: Raamweg 5, 2596 HL The Hague
> Phone: +31-(0)70-311 73 11 Mobile: +31-(0)6 33 77 35 41
> Website: www.iicd.org
>
>
>
>
>
>
>
>