odt user fields
Submitted by kudahvetservices on Sun, 17/04/2016 - 12:48
does anyone know what the open office field lookup for patient alias?
i have tried
patient.entitiy.alias
[party:getPatientAlias(.)]
if i need to add an archtype where would i add it?
Re: odt user fields
There's no simple function that returns a patient alias. The following expression will do it, comma-separating aliases if there is more than one:
[list:join(openvpms:get(.,'patient.entity.identities')[archetypeId/shortName='entityIdentity.alias'], 'alias')]
This assumes you are trying to access the patient alias given a Patient Letter or Form. If not, let me know.
Breaking the expression down:
Returns a list of identities for a patient (microchips, pet tags, aliases), given a patient act (medical record, Letter, Form etc)
Filters the list returned by 1. to include only aliases
Iterates through the aliases from 2., creating a comma separated string containing the values of the 'alias' node