Patient widget summary only working for default concepts

https://wiki.openmrs.org/display/docs/Patient+Summary+Widget+Documentation

The widgets are only showing the default values, in the example I’m trying to display respiratory rate but the widget is only displaying weight.

https://demo.openmrs.org/openmrs/referenceapplication/userApp.page?appId=myapps.respiratoryGraph&action=edit& https://demo.openmrs.org/openmrs/coreapps/clinicianfacing/patient.page?patientId=323

If the example gets reset in the demo box, just copy paste the config from the wiki System Administration > manage apps > add new definition and change any of the default concepts. I have tried both concept id and concept uuid.

@ssmusoke, @raff, @dkayiwa

cc: @burke

Am I using this wrong or is this something that needs to be changed programmatically?

There’s some bug in there. I’ll look into that.

@tendomart keep an eye on this bug whose fix is in progress

1 Like

@ssmusoke. ok thanks

Okay, the issue is you also have to change appId under extensions. This should work:

{
  "id": "coreapps.obsHeightGraph",
  "instanceOf": "coreapps.template.dashboardWidget",
  "description": "Height graph",
  "order": 10,
  "config": {
    "widget": "obsgraph",
    "icon": "icon-bar-chart",
    "label": "Height graph",
    "conceptId": "5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "maxResults": "6",
    "maxAge": "1y"
  },
  "extensions": [
    {
      "id": "org.openmrs.module.coreapps.mostRecentVitals.clinicianDashboardFirstColumn",
      "appId": "coreapps.obsHeightGraph",
      "extensionPointId": "patientDashboard.firstColumnFragments",
      "extensionParams": {
        "provider": "coreapps",
        "fragment": "dashboardwidgets/dashboardWidget"
      }
    }
  ]
}

@tendomart, it’s not a bug in code. You can proceed with the release.

1 Like

Thank you @raff for the confirmation, it is working :slight_smile:

@raff thanks