Wiki Spaces

Documentation
Projects
Resources

Get Help from Others

Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack

Documentation

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added step-by-step instructions for how to create indicator reports.

...

Indicator reports are lists of indicators, where the indicators are simply aggregations of cohorts. An example of an indicator could be the total number of patients who missed their appointment in a given month. Indicator reports are typically tied to a reporting period, usually one month.

Steps:

  1. Create a cohort library. A cohort library is simply an ordinary Java class with methods that return CohortDefinitions. See example.
  2. Create an indicator library. And indicator library is also an ordinary Java class with methods that return CohortIndicators. Indicator libraries rely on the cohorts defined in associated cohort libraries. See example.
  3. Create a report builder. A report builder is an implementation of the ReportBuilder interface. The ReportBuilder interface has an abstract class implementation called AbstractReportBuilder and in most cases you should inherit from this rather than create a direct implementation. Report builders must be annotated with a @Builds annotation, which tells the builder which report(s) it is responsible for building. See example.
  4. Define your report in the application context by defining a ReportDescriptor object. See example.
  5. Configure your report in the application context by defining a ReportConfiguration object. See example.
  6. Include your report in the UI adding it to the page model through a controller. See example.
Info

Note:

There is no guarantee that the example links above will always work as advertised. Please let us know whenever they are broken or happen to point to irrelevant content.

Content by Label
showLabelsfalse
max5
spacesprojects
sortmodified
showSpacefalse
reversetrue
typepage
labelskenyaemr reporting