Display event type in the Appointment description
Submitted by Guest on Tue, 28/05/2013 - 11:04
Is it possible to display the event type in the appointment description, currently we can colour an appointment by event, but you cant seem to access the Event type participation node of appointments directly to customise the display?
Re: Display event type in the Appointment description
Try:
openvpms:get(., "scheduleType.name")
-Tim
Re: Display event type in the Appointment description
That worked!!
Re: Display event type in the Appointment description
Just wondering if it allows access to other patient nodes
openvpms:get(., 'patient.breed'), ??
openvpms:get(., 'patient.description'),
tried that and
openvpms:get(., 'patient.entity.breed'),
also
openvpms:lookup(., 'patient.breed'),
openvpms:lookup(., 'patient.entity.breed'),
Re: Display event type in the Appointment description
If you click on the Test button in the Edit Schedule View dialog, you will see a list of the available properties in the Edit Display Expression dialog.
There are a number of undocumented ones which may be used, but not particularly efficiently as they require database queries.
To get the breed, do:
openvpms:lookup(openvpms:get(., "patient.objectReference"), "breed")
Notes:
-Tim
Re: Display event type in the Appointment description
I have revised and extended the CSH pages to include the distilled knowledge above - see http://www.openvpms.org/documentation/csh/1.7/admin/organisation/scheduleView and http://www.openvpms.org/documentation/csh/1.7/admin/organisation/worklistView
Ben - thanks for raising this topic - as per http://www.openvpms.org/forum/change-start-time-time-schedule-view I think I have solved my mobile vet display problem.
Regards, Tim G