can I get custom patient fields in a form

I have added custom fields to my patients and would like to get them into an openoffice patient form. Is this possible in openoffice?

Comment viewing options

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

Re: can I get custom patient fields in a form

If you have party.patientpet object, you can access its custom fields using:

openvpms:get(., "customFields.target")

So if your custom fields include a lastVaccinationDate, you would use:

openvpms:get(. "customFields.target.lastVaccinationDate")

Since you are using a form, you need to access the patient via the form's patient node, which returns a "participation.patient", and from that get the actual patient using the participation's "entity" node, so it will be:

openvpms:get(. "patient.entity.customFields.target.lastVaccinationDate")

 

Re: can I get custom patient fields in a form

Thanks Tim,

I've added it to http://www.openvpms.org/document-merging-open-office-writer

Syndicate content