Access application context in reports
Donate to this project
Development Project Status: Completed
Pledges can be made by email by clicking here.
Development will not commence until fully funded.
This project will make the current application context available to reports.
For Jasper Reports, these will be available as fields.
For OpenOffice reports, these will be available as user fields.
Fields will be prefixed with "OpenVPMS." to avoid clashes with existing fields.
These can be used:
- to customise forms and letters - e.g. include the current practice location name and address in report headings
- as alternatives to report parameters. e.g. rather than entering the current customer identifier as a parameter, this can be determined automatically
Supported Fields
Field | Description |
---|---|
OpenVPMS.patient | The current patient |
OpenVPMS.customer | The current customer |
OpenVPMS.practice | The current practice |
OpenVPMS.location | The current practice location |
OpenVPMS.stockLocation | The current stock location |
OpenVPMS.supplier | The current supplier |
OpenVPMS.product | The current product |
OpenVPMS.deposit | The current deposit account |
OpenVPMS.till | The current till |
OpenVPMS.clinician | The current clinician |
OpenVPMS.user | The current user |
OpenVPMS.invoice |
The current invoice. Only valid:
|
OpenVPMS.visit |
The visit for the current patient. Only valid:
|
OpenVPMS.appointment |
The current appointment. Only valid:
|
OpenVPMS.task | The current task. Only valid:
|
To simplify accessing nodes of the relevant objects, the archetype dot notation will be supported e.g. given the patient OpenVPMS.patient you can access its name using OpenVPMS.patient.name, identifier using OpenVPMS.patient.id etc.
Sample use - Jasper Reports
- $F{OpenVPMS.location.name} - access the current practice location name
Sample use - Open Office
- OpenVPMS.customer.id - access the current customer identifier
JIRA: OVPMS-1544
Comments
Re: Access application context in reports
Tim A - I concur. Tell me if you need me to add money. Regards, Tim G