maurya
(Sri Maurya Kummamuru)
December 5, 2017, 8:52am
1
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?
raff
(Rafal Korytkowski)
December 5, 2017, 12:50pm
2
There’s some bug in there. I’ll look into that.
ssmusoke
(Stephen Senkomago Musoke)
December 5, 2017, 3:06pm
3
@tendomart keep an eye on this bug whose fix is in progress
1 Like
raff
(Rafal Korytkowski)
December 6, 2017, 11:12am
5
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
maurya
(Sri Maurya Kummamuru)
December 6, 2017, 4:47pm
6
Thank you @raff for the confirmation, it is working