Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Bahmni/reports image runs bahmni reporting service which can generate reports from different application databases of Bahmni such as OpenMRS, OpenELIS, Odoo. These reports can be configured from config service of Bahmni. More about reports configuration can be found here. The docker image is built and published using Github actions from bahmni-reports repository.

Environments Configurations

Variable Name

Description

REPORTS_IMAGE_TAG

This value specifies which image version needs to be used for reports service. List of tags can be found at bahmni/reports - Tags .

REPORTS_DB_NAME

Database name for Reports

REPORTS_DB_USERNAME

Username of Reports Database

REPORTS_DB_PASSWORD

Password of Reports Database

Adding Custom Reports

  1. First volume mount your configuration folder as mentioned here.

  2. You can start reports by running docker-compose up -d reports.

  3. Now, you can add/modify reports by editing the reports.json file at openmrs/apps/reports/ in your config folder.

  4. When you want to add custom sql files, add the sql file to openmrs/apps/reports/sql directory in config folder and in sqlPath attribute use value as /etc/bahmni_config/openmrs/apps/reports/sql/<filname.sql>

  5. The new report will be visible on refresh of the browser.

...