BBahmni 한국어 매뉴얼검색
한국어 번역 완료
한국어English

Bahmni Mart Reports

Configure Datasource Definition for Bahmni Mart

Configure the datasource definition like in the example below.

file: /opt/bahmni-reports/etc/bahmni-reports.properties

Datasource definition
bahmni.mart.url=jdbc:postgresql://localhost:5432/analytics
bahmni.mart.username=analytics
bahmni.mart.password='somepwd'

Configure in Reports Application Config

Once the datasource is defined, you will then need to define a report type in your application configuration.

file: /var/www/bahmni_config/openmrs/apps/reports/reports.json

Mart Generic Report

You will need to define a "MartGeneric" type

"bahmniMartTestReport": {
    "name": "Mart Test Report",
    "type": "MartGeneric",
    "config": {
       "sqlPath": "/var/www/bahmni_config/openmrs/apps/reports/sql/testMartCode.sql"
    }
}

Mart Concatenated Reports

You may also want to run concatenated reports on the mart data source. For that you can define a 'MartConcatenated' type. For more information on Concatenated Reports, please see

{
  "customReport21": {
    "name": "Indicators(Custom Excel)",
    "type": "MartConcatenated",
    "config": {
      "reports": [
        {
          "name": "Bahmni Mart Test",
          "type": "MartGeneric",
          "config": {
            "sqlPath": "/var/www/bahmni_config/openmrs/apps/reports/sql/NewPatientConsultations.sql"
          }
        }
      ]
    }
  }
}
원문 정보

Bahmni Wiki · CC BY-SA 4.0

원문 보기 ↗