...
It would be ideal to be able to click to run the report directly from the patient dashboard. That functionality is requested at
Jira Legacy |
---|
server | OpenMRS JIRA |
---|
serverId | 45c5771b-fa4b-3e43-b34a-c19dc45ccc95 |
---|
key | RA-381 |
---|
|
. Until then, you can run the summary report through the Legacy UI. You can automatically redirect to the Legacy UI report screen when you submit a form (for example a discharge form), or you can create an empty app on the main dashboard. The URL of the
Report report should
be include something like '
http://localhost:8080/openmrs/module/reporting/run/runReport.form?reportIdeportId=76cfc87a-9e88-4d39-acc7-ed68d4beb1f7'
where where the reportId specifies the UUID of the report you created.
And some day Someday, you will also be able to specify the person ID in the URL, that functionality is requested at
Jira Legacy |
---|
server | OpenMRS JIRA |
---|
serverId | 45c5771b-fa4b-3e43-b34a-c19dc45ccc95 |
---|
key | REPORT-782 |
---|
|
. The jason configuration for an app to run a report would look something like this.
.. Code Block |
---|
language | java |
---|
title | json Configuration of App |
---|
collapse | true |
---|
|
{
"id": "referenceapplication.legacyRunICUReport",
"label": "Run Legacy ICU Report",
"description": "Run the ICU Discharge Summary through legacy UI",
"extensions": [
{
"id": "referenceapplication.legacyRunICUReportLink",
"extensionPointId": "org.openmrs.referenceapplication.homepageLink",
"type": "link",
"label": "Imprimer ICU Décharge Résumé",
"url": "module/reporting/run/runReport.form?reportId=76cfc87a-9e88-4d39-acc7-ed68d4beb1f7",
"icon": "icon-print",
"order": 20,
"requiredPrivilege": "Task: referenceapplication.simpleDischarge"
}
]
} |
Note: The user will need to open the generated report of extension 'null' in their web browser.
...