Reminders - "date printed" merge field

Hi Guys,

I'm wondering if there is any merge field facility to print the date on each reminder type to reflect when the reminder run was printed?

Much like a  standard letter would be dated, so we are wanting to do this for our reminders also.

 

Cheers,

Jess

Comment viewing options

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

Re: Reminders - "date printed" merge field

You could add the startTime field to the letter.  

see

http://www.openvpms.org/document-merging-open-office-writer

http://www.openvpms.org/documentation/csh/1.7/reference/reportsForms

To use it in OpenOffice templates:
  1. Create a new field by going Insert -> Fields -> Other -> User Field
  2. In Name, enter "startTime" (without quotes)
  3. In Value, enter "startTime" (without quotes)
  4. Click on the green tick
Then just insert the field where you want it in the template.

Cheers

Ben

Regards
 
Ben 
OpenVPMS Installer and Helper 
Ph: +61423044823 
Email: info[at]charltonit.com[dot]au

Re: Reminders - "date printed" merge field

To insert the date when the report was generated, use either:

  1. Insert -> Fields -> Date
  2. Insert -> Fields -> Other -> User Field

In Name, enter a field name, e.g. Now

In Value, enter: [java.util.Date.new()]

 

-Tim

 

 

Re: Reminders - "date printed" merge field

Thanks Ben and Tim,

Your replies got us some success, however we have hit another issue!

We were unable to successfully print the reminder (we have tried it on only 1 reminder type at this stage to test before changing all of our reminder types)

We have noticed that when uploading the template reminder into Open VPMS we cannot change the "copies" box on the left hand side to be 0 or blank as all of our other reminder types are. It defaults as 1 and will not allow for 0 to be used.

This seems to be the only difference between our new reminder type with the "date printed" on it and all other pre-existing reminders. When we try and print the error message we get reads:

"Cannot print reminder. There is no document template for Senior Pet Review with a reminder count of 0"

We suspect this is the reason that we are unable to trial our reminder run with the "date of print" on it?

Any thoughts would be greatly appreciated!

Thanks kindly,

Jess

Re: Reminders - "date printed" merge field

Jess - this error is due to a bad reminder type setup. As it says in http://www.openvpms.org/documentation/csh/1.7/admin/type/reminderType

The error you are getting indicates that you do not have a Reminder Count 0 template - OR - as it says in http://www.openvpms.org/documentation/csh/1.7/reporting/reminder

I suspect also that you may get the same error if the Document Template is not of the require type (ie Patient Letter or Grouped Reminder).  I will check on this and update the CSH text if so.

###UPDATE - I just checked (by changing the Document Template Type to from Patient Letter to Bank Deposit - and no error - so this is not causing your error.

Regards, Tim G

Syndicate content