Disease Template Control

Purpose

Disease Template Control can be configured to display all the observation values captured against the particular disease like Cancer, Diabetes or TB.

Screenshot

Configuration

Sample Configuration

Add to clinical/dashboard.json for it to appear on the patient dashboard
"diabetes":{  
   "title":"Diabetes",
   "templateName":"Diabetes Templates",
   "type":"diseaseTemplate",
   "dashboardConfig":{  
      "showOnly":[  
      ],
      "showGroupDateTime":false
   },
   "expandedViewConfig":{  
      "showOnly":[  
      ],
      "showDetailsButton":true,
      "pivotTable":{  
         "numberOfVisits":"15",
         "groupBy":"encounters",
         "obsConcepts":[  
            "Weight",
            "Height",
            "Systolic",
            "Diastolic",
            "Diabetes, Foot Exam",
            "Diabetes, Eye Exam",
            "Diabetes, Diabetes, Complications"
         ],
         "drugConcepts":[  
            "Ipratropium Pressurised",
            "Garbhpal Rasa",
            "Lente Insulin"
         ],
         "labConcepts":[  "RBS","FBS","PP2BS","Hb1AC"]
      },
      "observationGraph":{  
         "type":"observationGraph",
         "title":"Temperature",
         "config":{  
            "yAxisConcepts":[  
               "Temperature"
            ],
            "numberOfVisits":3
         }
      }
   }
}


Key Field Table

KeyInfoMandatory
titleThe title to be displayed on the dashboard/visit page for the section.Y
templateNameThe name of the disease template in openMRS that needs to be displayed.Y
typeThe name/id for the control that needs to be picked from the code.Y
showOnly

The concept names of the concepts that need to be displayed in this section. If blank, then all the concepts in that disease template will be displayed.

N
pivotTableThe configuration for the pivot table/flowsheetY
observationGraphThe configuration for the observationGraph (OPTIONAL)N
numberOfVisits

The number of visits for which data has to be displayed in the pivot table

N
groupBy

Can be encounters/visits.

If grouped by the encounter, then the data is displayed per encounter in the pivot table.

If grouped by the visit, then the latest value of the observations in each visit is displayed in the pivot table.

Y
obsConceptsThe concept names of the observations that need to be displayed in the pivot tableY
drugConcepts

The concept names of the drugs that need to be displayed in the pivot table

Y
labConceptsThe concept names of the lab tests that need to be displayed in the pivot tableY
dashboardConfigIndicates the configuration for the dashboardY
expandedViewConfig

Indicates the configuration for the details page (All Disease Details Page)

Y
showDetailsButtonConfiguration to display audit information when '+ ' sign is clicked. If set to false, the '+' button will not be displayed.N
showGroupDateTimeConfiguration to display grouped encounter date time. If set to false, it is hidden. Default value is true(which means it is treated as true, if nothing specified). Should be separately configured for both dashboard and allDetails page.N

The Bahmni documentation is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)