Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Description
The dashboard.json contains configurations that allows different display controls to be displayed on the patient dashboard.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "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
Key | Info | Value Type | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
translationKey | 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.
| 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 visit dashboard print functionality is needed
| {}
|
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).
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{ "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": {} } } |
Panel | ||||
---|---|---|---|---|
| ||||
|
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||