Customer ID on Patient Letter
Submitted by EastsideVetEmerg on Fri, 14/09/2012 - 14:04
Hi,
Is there any way to get a document to have the customer ID and patient ID on the same document?
Thanks,
Adrian
Re: Customer ID on Patient Letter
Try [openvpms:get(party:getPatientOwner(.),'id')] - works for me.
I guessed this by looking at the formats in the list of mergefields, figuring that if
The "Customer Last Name" was customer.entity.lastname in Customer Documents and
[openvpms:get(party:getPatientOwner(.),'lastName')] in Patient Documents, the same would apply to customer.identity.id.
You can also use the same process for customer initials and title.
Re: Customer ID on Patient Letter
Worked perfectly. Thank you very much! Funny, I had already used your tip for the customer title! I just didn't think to apply it to the id