Module: openmrs-module-reportingrest
Module Version: 1.12.0
Issue or Question: I’m getting a conversion exception when I try to get the report data. I first issue a
ws/rest/v1/reportingrest/reportDefinition
to get the UUID of the report I want to get. In my case I want to get the:
"uuid": "e451a9d6-4881-11e7-a919-92ebcb67fe33",
"display": "List of New Patient Registrations",
"links": [
{
"rel": "self",
"uri": "http://blopup-dev.upc.edu/openmrs/ws/reporting/v1/reportingrest/reportDefinition/e451a9d6-4881-11e7-a919-92ebcb67fe33",
"resourceAlias": "reportDefinition"
}
]
List of new patients, so after I have the UUID from the response I try to get the report data issuing a request with the uuid and the dateStart parameters:
ws/rest/v1/reportingrest/reportdata/e451a9d6-4881-11e7-a919-92ebcb67fe33?startDate=2020-01-01T00:00:00Z
Then I get an exception of the conversion with the message:
Request processing failed; nested exception is org.openmrs.module.webservices.rest.web.response.ConversionException: converting class org.openmrs.module.reporting.dataset.SimpleDataSet to org.openmrs.module.webservices.rest.web.representation.DefaultRepresentation@776370bd
Full exception in: https://pastebin.com/AuHq758z
I don’t understand what is happening, as in the web interface everything works fine.
Thank you in advance.
Jaume.