Hosts the reports web application for the Bahmni project
-
Clone or download this repository.
-
Run
./mvnw clean install -DskipTests
to build it -
Deploy the WAR file in
target/bahmnireports.war
- Install MySQL client and server in your machine. If you already have a MySQL server available make sure that the user has the privileges to dump the database.
- Run:
./mvnw -DskipDump=false -DskipConfig=false clean package
(note this would triggerscripts/create_configuration.sh
as part of test-compile and create respective test properties under$HOME/.bahmni-reports/bahmni-reports-test.properties
. You can also explicitly runscripts/create_configuration.sh
to create the properties (incase if you are using IDE to run the test) - This should trigger all the tests including integration (it assumes jdbc:mysql://localhost:3306/reports_integration_tests as the DB URL)
Note:
OpenMRS 2.1.6 and its corresponding schema dump is on MySql 5.6(preferred). There are breaking changes between 5.6 and 5.7
E.g. only_full_group_by is enabled by default
We are mutating global and session sql_mode as workaround to make 5.7 almost similar to 5.6. For reference check github action workflow.
bahmni-reports also integrates with SNOMED for descendant-based reporting by querying the terminology server. More details can be found in this Reports documentation and also this Wiki link
Discover how bahmni-reports effortlessly integrates third-party extensions. Check this documentation for details.