Email Subject
Submitted by gretalloyd on Sat, 21/12/2013 - 08:53
Hi,
It might be part of the new upgrade, but I am wondering if there is a way to have an automatic subject line in our OpenVPMS emails?
Ideally when emailing patient documents, the subject line would have something along the lines of:
Referral letter for [openvpms:get(party:getPatientReferralVet(.),'firstName')]
[openvpms:get(party:getPatientReferralVet(.),'lastName')] regarding
patient.entity.name [openvpms:get(party:getPatientOwner(.),'lastName')] from
clinician.entity.name
Thanks.
Re: Email Subject
Greta - I don't think that you want something built into the code - it is too limiting [what would happen if you wanted to email about something else].
The way to do it is to use a macro. The expression you want is:
If you don't mind, I will rip off this idea for our system - I called the macro '@refs' (ie REFerence Subject).
It generates:
Some comments:
Regards, Tim G
Re: Email Subject
To extrapolate the new update 1.7 (currently in beta ie not for production)
https://openvpms.atlassian.net/browse/OVPMS-1296
adds the above features which simplify Tims macro above.
It isnt automatic but you can macro it...making entry fast.
I would add that Tim is discussing 1.7 macroing is not available in subject lines in 1.6.2 or below