odt user fields

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?

Comment viewing options

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

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:

  1. openvpms:get(.,'patient.entity.identities')
    Returns a list of identities for a patient (microchips, pet tags, aliases), given a patient act (medical record, Letter, Form etc)
  2. [archetypeId/shortName='entityIdentity.alias']
    Filters the list returned by 1. to include only aliases
  3. list:join(...., 'alias')
    Iterates through the aliases from 2., creating a comma separated string containing the values of the 'alias' node

 

 

Syndicate content