Surname merge field error

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

Comment viewing options

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

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

Syndicate content