Surname merge field error
Submitted by Guest on Mon, 20/07/2009 - 14:59
Field "customer.entity.lastname" producing error "Invalid property name:..."
Have trialled "customer.entity.lastName" with same error.
All other fields in document importing correctly.
Thanks,
James
Surname merge field error
Hi James,
Some fields are only available in customer documents and if you use them in patient documents you will get the error you described. The reason is patient documents only reference the patient and to get customer fields you need to utilise diffferent functions that navigate the patient ownership information to find the current owner and get the appropriate customer information.
To get the lastname in Patient Documents you need to use
[openvpms:get(party:getPatientOwner(.),'lastName')]
Cheers
Tony