Internationalizes the dashboard title. You can provide the key or the title itself.
Text
label
If 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
maxRecentlyViewedPatients
Configure the number of patients in "recently viewed patients" under the patient switch button
Number
sections
Any display control can be configured in this section. To configure display controls see Display Controls
{}
printing
This is optional parameter. This can be defined when print functionality is needed
Key
Info
Default Value
title
name of organisation
header
name of document
logo
path of hospital logo file
Below keys are considered only when QuickPrint is enabled
label
name of print option
if this is not provided then value of `header` will be considered
shortcutKey
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).
Quick Prints will give the ability to print any dashboard (either patient dashboard or visit dashboard) 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 landing i.e.., page one has clicked print. 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).
To enable quick print functionality, follow these steps
Go to bahmni-config (an implementation-specific configuration folder). The settings are available at bahmni-config/openmrs/apps/clinical/app.json.
Add the following piece of configuration in the 'config' section of the file.