Vaccinations

Hi

Is there a way of being able to list all prior vaccinations on the current vaccination certificate.

:)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Vaccinations

There aren't any templates included in the release that do this, but there is support for it if you want to develop your own.

The history:medication() functions can get all medication records for a patient, with a particular product type. So if your vaccinations have a 'Vaccine' product type, you can use:
       history:medication(openvpms:get(.,'patient.entity'), 'Vaccine')

to get all of the Vaccine medications for a patient. To exclude ones done today, use:

    history:medication(openvpms:get(., 'patient.entity'), null, date:today())

If your certificate is a JasperReport, you need to create a JasperReport that displays the vaccine details, and launch this from your certificate with a data source expression:
      $P{dataSource}.getExpressionDataSource("history:medication(openvpms:get(., 'patient.entity'), null, date:today()")

If your certificate is an OpenOffice/Word document, you need:

  • a JasperReport to display the vaccine details (Vaccine Details)
  • a JasperReport to get the list of vaccines and pass them to Vaccine Details. This will be launched via a Report Macro

For examples on how to use Report Macros, see the reports/Sample/readme.txt in the OpenVPMS distribution.

Syndicate content