Reports Configurations (docker)
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
First volume mount your configuration folder as mentioned here.
You can start reports by running
docker-compose up -d reports
.Now, you can add/modify reports by editing the
reports.json
file atopenmrs/apps/reports/
in your config folder.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>
The new report will be visible on refresh of the browser.
The Bahmni documentation is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)