What this module does
Exposes the reporting module's functionality via REST web services
Documentation / How-To
Modules Required
- Reporting
- REST web services
The Reporting REST module (http://svn.openmrs.org/openmrs-modules/reportingrest/trunk/) lets you do this:
- GET http://localhost:8018/openmrs18/ws/rest/reporting/cohortdefinition -> lists all available cohort definitions
- GET http://localhost:8018/openmrs18/ws/rest/reporting/datasetdefinition -> lists all available data set definitions
- GET http://localhost:8018/openmrs18/ws/rest/reporting/cohort/uuid-of-cohort -> lists all patients of that cohort
- GET http://localhost:8018/openmrs18/ws/rest/reporting/dataset/c6f3a3cf-df0e-4733-9d9e-ff0c6cf9629f?cohort=f6f5a60e-72a9-4e7f-8f92-f95d4000ca2a -> evaluates a DSD against a cohort
And you get back this:
Unknown macro: { "metadata"}
Unknown macro: {"results"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
]}
* GET http://localhost:8080/midoctor/ws/rest/reporting/cohort/cdee9b23-7205-46c3-9a22-7564f6f73def (cohort with no patients)
Unknown macro: {"uuid"}
,"members":[],"links":[
Unknown macro: {"uri"}
]}
* GET http://localhost:8080/midoctor/ws/rest/reporting/cohort/857658df-930e-453e-8458-bcf421990252 (cohort with 4 patients)
Unknown macro: {"uuid"}
,
"members":[
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
,
Unknown macro: {"uuid"}
],
"links":[
Unknown macro: {"uri"}
]}
Downloads
http://modules.openmrs.org/modules/view.jsp?module=reportingrest
Screenshots
Release Notes
Developer Notes
In 1.3 you could build the module from the code, but it would give the following error, during compiling. Darius mentioned that you should ignore all com.mchange. error messages.
ERROR - SchemaExport.execute(202) |2013-01-29 17:01:32,694| schema export unsuccessful
java.sql.SQLException: com.mchange.v2.c3p0.PoolBackedDataSource@29d9b607