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

dashboard.json

Description

The dashboard.json contains configurations that allows different display controls to be displayed on the patient dashboard.

Sample dashboard config
{
  "general": {
    "translationKey": "DASHBOARD_TAB_GENERAL_KEY",
    "displayByDefault": true,
    "maxRecentlyViewedPatients": 10,
    "sections": {},
	"printing" :{}
  },
  "trends": {
    "label": "Trends",
    "maxRecentlyViewedPatients": 10,
    "sections": {},
	"printing" :{}
  },
  "patientSummary": {
    "translationKey": "DASHBOARD_TAB_PATIENT_SUMMARY_KEY",
    "maxRecentlyViewedPatients": 10,
    "sections": {},
	"printing" :{}
  }
}

Key Fields

KeyInfoValue Type
translationKeyInternationalizes the dashboard title. You can provide the key or the title itself.Text
labelIf internationalization is not required, then the title of the dashboard can be directly given in label. Either translationKey or a label is mandatory. Text
displayByDefaultTrue/false. Opens the dashboard tab by default if given as true.At least one dashboard should mandatorily have this as true.True/false
maxRecentlyViewedPatientsConfigure the number of patients in "recently viewed patients" under the patient switch buttonNumber
sectionsAny display control can be configured in this section. To configure display controls see  관련 문서: Display Controls{}
printingKeyInfo
titlename of organisation
headername of document
logopath of hospital logo file
showNameAndImageIf set to false, will hide patient name and image on the print page. By default, patient name and image are displayed on the print page
Below keys are considered only when is enabled
labelname to be displayed on the QuickPrint dropdown.Default value when no configuration for labelIf label is not configured, then header is considered
shortcutKeycharacter to be used as keyboard short cut

{}

Adding Printing Capability to Patient Dashboard

One can add a Print button on any of the dashboard tabs. For instance, see below, Print button has been added to two of the tabs (by adding the printing element to the json).

Sample dashboard config
{
  "general": {
    "translationKey": "DASHBOARD_TAB_GENERAL_KEY",
    "displayByDefault": true,
    "maxRecentlyViewedPatients": 10,
    "printing": {
           "title": "ABC Hospital",
           "header": "General Report",
           "logo": "../images/bahmniLogo.png",
		   "showNameAndImage": true
       },
    "sections": {}
  },
  "trends": {
    "label": "Trends",
    "maxRecentlyViewedPatients": 10,
    "sections": {}
  },
  "patientSummary": {
    "translationKey": "DASHBOARD_TAB_PATIENT_SUMMARY_KEY",
    "maxRecentlyViewedPatients": 10,
    "printing": {
           "title": "ABC Hospital",
           "header": "Summary Report",
           "logo": "../images/bahmniLogo.png",
		   "showNameAndImage": false
       },
    "sections": {}
  }
}
Dashboard with Print keyPrint Dashboard Preview

Hiding patient name and image

If "showNameAndImage" is set to false, the patient name and image are hidden on the print page as below.

Screen Shot 2016-08-23 at 4.41.32 PM.png

Quick Print

Quick Prints will give the ability to print any dashboard / tab (either patient dashboard / tab or visit dashboard / tab) from patient dashboard. This functionality is extension to the normal print behaviour where one can print the page one is currently on.To enable quick prints, the configuration should be added in clinical, app.json. The default behaviour is to print the tab or page one is landed i.e.., page one has clicked print from. If quick prints is enabled, then one can choose to print any patient dashboard (if configured multiple) and any visit dashboard (if configured one or many).

Quick Print

To enable quick print functionality, follow these steps

  1. Go to bahmni-config (an implementation-specific configuration folder). The settings are available at bahmni-config/openmrs/apps/clinical/app.json.
  2. Add the following piece of configuration in the 'config' section of the file.

Configuration to enable quick print

Enable Quick Print
"quickPrints": true

Adding Patient Attributes to Patient Dashboard

One can add below configuration on any of the dashboard tabs under sections category. And this shows patient's age only in years on patient dashboard.

"general":{  
        "translationKey":"DASHBOARD_TAB_GENERAL_KEY",
        "displayByDefault":true, 
        "maxRecentlyViewedPatients":10,
        "sections":{  
            "patientInformation":{  
                "translationKey":"DASHBOARD_TITLE_PATIENT_INFORMATION_KEY",
                "type":"patientInformation",
                "displayOrder":0,
                "ageLimit":23
             }
        }
      }
Screen Shot 2017-03-30 at 4.13.22 PM.png
원문 정보

Bahmni Wiki · CC BY-SA 4.0

원문 보기 ↗