Reporting
[edit]
Reporting with OpenMRS
TODO: Restructure this page, separating out the different reporting frameworks - cohort report designer, Birt Reporting, etc.
Quick summary of what was done to get reporting up and running in Kenya with the cohort report designer and Excel-based report templates:
- Install cohort_report_designer branch
- Install versionfileupload and reporttemplate modules. (Reporttemplate module currently requires building from source.)
- Create a cohort in the cohort builder. Put some parameters in the cohort like a begin date and end date.
- In Administration --> Manage Reports create a cohort report.
- On the Indicators tab, Add an indicator by choosing from the list of cohorts on the right. (There should be a list of cohorts on the right after you make them in the cohort builder.)
- For the indicator, use an expression prefix and expression postfix. For example, if you want the indicator name to be 1.A, put @1.A@ in the indicator box. Put whatever for the description.
- Go to Administration --> Manage Patient Searches. Find the Cohort you made and manually edit the begin date and end date from step #3 above. Put something like "$begin_date$" and "$end_date$" in place of the real dates.
- Go back to the Manage Reports section to your cohort report. Go to the Parameters tab. For the Name of the first parameter, put "begin_date" (without the dollar signs if I remember correctly). Put something human readable for the Display Label like "Report Start Date".
- Make another parameter for end_date.
- Create a Microsoft Excel spreadsheet and fill it with indicators like "@1.A@". Save it.
- For the Report Templates tab, upload the file and make sure to put in the expression prefix and postfix ("@" in this example).
- Take out the @'s from the Name field of the Indicator section.
- Run the report.
That's it to the best of my recollection at the moment. Hope it helps some. In Kenya we are running database version 1.3.0.15.
