Suppose you want to run a report directly via a URL, you can now do this in Reporting 0.11.0. It supports the passing of parameters as specified in the URL.
The parameters that this supports are:
- reportDefinition: uuid of the report definition to run
- renderingMode: <fully specified java class name of renderer>!<argument for rendering mode>
- patient: (this is optional, and will limit the report so that it only runs for this single patient if supplied. this can be either the patient uuid or patient id)
- download=true: (this is optional, if supplied it will download to file rather than display on screen)
In addition, any parameter of the report definition can be passed in as an additional request parameter, where the value is in the format that can be parsed by htmlwidgets. This generally means that metadata needs to be passed as a uuid, and dates should be in the format yyyy-MM-dd.
The following are examples of URL's showing the use of parameters. This first example shows a generic URL.
This second example shows a URL used in HTML Form Entry with the <redirectOnSave> tag. Notice the amperstand (&) is replaced with &