Details
-
Bug
-
Status: Code Review (Initial)
-
Should
-
Resolution: Unresolved
-
Reference Application 2.12.0
-
None
-
Low
Description
There have been some changes to the obsacrossencounters widget to add optional encounterType and encounterTypes attributes, however when these are not defined no values are returned
The issue is probably in the handling the null encounterType in this method https://github.com/openmrs/openmrs-module-coreapps/blob/743c2693a3628321c2a763f83cf788b75faaf8b4/omod/src/main/web/dashboardwidgets/obsacrossencounters/obsacrossencounters.controller.js#L56-L77
This widget without encounterType does not work in UgandaEMR
// { "id": "ugandaemr.viralLoadHistory", "instanceOf": "coreapps.template.dashboardWidget", "description": "Viral Load history for the patient", "order": 5, "config": { "widget": "obsacrossencounters", "icon": "icon-user-md", "label": "VIRAL LOAD HISTORY", "concepts": "0b434cfa-b11c-4d14-aaa2-9aed6ca2da88,dca12261-30ab-102d-86b0-7a5022ba4115,dc8d83e3-30ab-102d-86b0-7a5022ba4115", "maxRecords": "5" }, "requiredPrivilege": "App: ugandaemr.widget.viralLoadHistory", "extensions": [ { "id": "org.openmrs.module.coreapps.mostRecentVitals.clinicianDashboardFirstColumn", "appId": "ugandaemr.viralLoadHistory", "extensionPointId": "patientDashboard.firstColumnFragments", "extensionParams": { "provider": "coreapps", "fragment": "dashboardwidgets/dashboardWidget" } } ] }