Display event type in the Appointment description

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?

 

Comment viewing options

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

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.

  • patient.objectReference - reference to the patient
  • act.objectReference - reference to the appointment/task
  • schedule.objectReference - reference to the schedule
  • customer.objectReference - reference to the customer
  • clinician.objectReference - reference to the clinician

To get the breed, do:

 openvpms:lookup(openvpms:get(., "patient.objectReference"), "breed")

Notes:

  • the various objectReference properties above aren't supported by the Display Expression editor
  • if there is no patient, you will get an "Expression Error" message displayed. This is because the openvpms:lookup() function expects an object to be supplied. This could be relaxed to return an empty string.

-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

Syndicate content