Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Purpose

The patient dashboard contains display controls that show specific (by configuration) data in sections. When the dashboard contains a lot of information, it fails to displayed display in a single page and requires the user to scroll through the page to get to the information they want to see.

These Further, these display controls also show up with just the header and a blank section if there is no data to display. In order to better optimize optimise what is displayed in the patient dashboard. You , we might want to display only show those sections (display controls) which contain data. The other sections would not appear on the dashboard at all.

An alternative use case is that, in some implementations, the visibility of an empty section on the patient dashboard will prompt the user to record the data to be displayed in that section. Therefore, an empty display control serves as a reminder for the user to record information.

Purpose

It uses to show only those sections (Display Control) which contains data.

...

Configuration:

Add this property "hideEmptyDisplayControl" to individual display control sections in default config/openmrs/apps/ clinical/ dashboard.json 

Code Block
languagejs
titleConfiguration for show/hide display control
"sectionName": { //Should be a unique name
    "translationKey": "Internationalization key or Title", //Title of the display control
    "displayType": "Full-Page | Half-Page", //Default is Half-Page
    "displayOrder": 0, // All display controls are show in the order mentioned here
    "showOnlyInPrint": true/false, //Show this display control only when printing. Default false.
    "hideEmptyDisplayControl": true/false //Show this display control only when data is available. Default false.
}

...