Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Next »

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": {}
  },
  "trends": {
    "label": "Trends",
    "maxRecentlyViewedPatients": 10,
    "sections": {}
  },
  "patientSummary": {
    "translationKey": "DASHBOARD_TAB_PATIENT_SUMMARY_KEY",
    "maxRecentlyViewedPatients": 10,
    "sections": {}
  }
}

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
displayByDefault

True/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 
{}

 

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"
       },
    "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"
       },
    "sections": {}
  }
}

 

Dashboard with Print key

 

 

Print Dashboard Preview

 

  • No labels