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

Bahmni Mart 보고서

Bahmni Mart 데이터 소스 정의 구성

아래 예시와 같이 데이터 소스 정의를 구성합니다.

파일: /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'

보고서 애플리케이션 구성에서 설정

데이터 소스를 정의한 뒤 애플리케이션 구성에서 보고서 유형을 정의해야 합니다.

파일: /var/www/bahmni_config/openmrs/apps/reports/reports.json

Mart 범용 보고서

‘MartGeneric’ 유형을 정의해야 합니다.

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

Mart 연결 보고서

Mart 데이터 소스에서 연결 보고서를 실행할 수도 있습니다. 이를 위해 ‘MartConcatenated’ 유형을 정의합니다. 연결 보고서에 대한 자세한 내용은 을 참고하십시오.

{
  "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

원문 보기 ↗