Versions Compared

Key

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

Purpose and Benefits

The Trends Tab allows the user to view Observations for a patient across visits. The observations displayed in this tab can be configured.

Note

The Trends tab is "just-another-tab" on the Patient Dashboard, with name as Trends. One can name it anything, and use chart related display controls to create this dashboard.


Trends Tab

Steps

1. Display Trends/Graphs tab

To configure or discard Trends/Graphs tab refer to the configuration snippet below:

Code Block
languagejs
titleSample Configuration
linenumberstrue
collapsetrue
"trends": {
        "displayByDefault": true,
        "maxRecentlyViewedPatients": 10,
        "sections": {
            "patientInformation": {
                "type": "patientInformation",
                "patientAttributes": [],
                "addressFields": [],
                "displayOrder": 0,
                "translationKey": "DASHBOARD_TITLE_PATIENT_INFORMATION_KEY"
            }
},
Here is a reference file: 
Info
titleExample

https://github.com/Bhamni/default-config/blob/master/openmrs/apps/clinical/dashboard.json


2. Add Observations to Trends Tab

To configure Observations to be displayed in the tab refer to the configuration snippet below:

Code Block
languagejs
titleSample Configuration
linenumberstrue
collapsetrue
   "weight/BMI": {
                "type": "observationGraph",
                "config": {
                    "yAxisConcepts": [
                        "Body mass index"
                    ],
                    "xAxisConcept": "observationDateTime",
                    "numberOfVisits": 10
                },
                "displayOrder": 6,
                "title": "BMI"
            },
            "Lab, Hemoglobin test result": {
                "type": "observationGraph",
                "config": {
                    "yAxisConcepts": [
                        "lab, Hemoglobin test result"
                    ],
                    "xAxisConcept": "observationDateTime",
                    "numberOfVisits": 10
                },
                "displayOrder": 6,
                "title": "Hemoglobin"
            },
            "AST": {
                "type": "observationGraph",
                "config": {
                    "yAxisConcepts": [
                        "Lab, AST"
                    ],
                    "xAxisConcept": "observationDateTime",
                    "numberOfVisits": 10
                },
                "displayOrder": 8,
                "title": "AST"
            }
        },
        "translationKey": "DASHBOARD_TAB_TRENDS_KEY"
    }
}
Here is a reference file: 
Tip
titleExample

https://github.com/Bhamni/default-config/blob/master/openmrs/apps/clinical/dashboard.json

Tip
iconfalse
titleOn this Page

Table of Contents

Panel
titleColorwhite
titleBGColor#668D3C
titleFeature Details

Clinical Services - Feature Guide

Panel
titleColorwhite
titleBGColor#668D3C
titleUsage Details

Clinical Services - User Guide

Panel
titleColorWhite
titleBGColor#1FA5A0
titleRelated Links

Observation Graph Control