Featured add: 2.6
...
- "instanceOf" : "coreapps.template.dashboardWidget"
- config.widget : "bahmniappointments"
- extensions.extensionParams.provider: "${project.parent.artifactId}coreapps",
- extensions.extensionParams.fragment: "dashboardwidgets/dashboardWidget",
Note . The param "detailsUrl" : "url" , is the url to redirect the user to the appointments module.
Image Sample
Anchor |
---|
| Dispensed Medication Widget |
---|
| Dispensed Medication Widget |
---|
|
Dispensed Medication WidgetThis widget reports on drug orders made for a patient. It is disabled by default. It is available with v1.28.0 of the coreapps module.
Configuration Parameters
key | required | default | description |
---|
displayActivationDate | optional | false | Specifies whether to display date of medication dispensation. |
detailsUrl | optional | null | URL to redirect the user to the user to a drug orders management page. NB. {{patientUuid}} in the url is replaced by the patient's uuid. To use the Order Entry OWA for drug order management, the url in the example below can be used to access the app. The Order Entry OWA can be installed as detailed in the installation guide. |
Code Block |
---|
language | java |
---|
firstline | 1 |
---|
title | Bahmni Appointments widget app configuration example |
---|
linenumbers | true |
---|
|
{
"id": "coreapps.dispensedMedication",
"instanceOf": "coreapps.template.dashboardWidget",
"description": "Show dispensed medications as drug orders",
"order": 10,
"config": {
"displayActivationDate": true,
"detailsUrl": "../../owa/orderentry/index.html?patient={{patientUuid}}"
},
"extensions": [
{
"id": "org.openmrs.module.coreapps.dispensedMedication.clinicianDashboardFirstColumn",
"appId": "coreapps.dispensedMedication",
"extensionPointId": "patientDashboard.secondColumnFragments",
"extensionParams": {
"provider": "coreapps",
"fragment": "patientdashboard/activeDrugOrders"
}
}
]
}
|
Note: This widget can be protected with a created privilege (say "Able to view Dispensed Medication") by adding requiredPrivilege attribute to the extension i.e.
Code Block |
---|
language | java |
---|
firstline | 1 |
---|
title | Bahmni Appointments widget app configuration example |
---|
linenumbers | true |
---|
|
"requiredPrivilege" : "Able to view Dispensed Medication"
|
Image sample
Image Added
There are a number of additional features that would be helpful on the dashboard:
Future enhancements
- obsgroup table
- Similar to the obsaccrossencounters but for obsgroups. Should allow for multiple obs within an obsgroup.
- Use case: A list of medications dispensed with encounter date, medication name, and frequency
- Graphs
- Graphs with log scale
- Use case: Viral load scale could vary from non-detectable to 10,000. It would be helpful to graph.
- Multiple variable graphs
- Use case: Graph 2 or more variables (concepts) on the same graph. Use for weight and height.
- BMI graph
- Use case: Based on weight and height, graph weight and calculated BMI on a single graph.