for each="appointment in records"
if test="appointment.institution"appointment.institution.rec_name or ''/if Appointment form
Number	appointment.name
Patient	appointment.patient.rec_name
PUID	appointment.patient.name.ref or ''
Date	format_date(appointment.appointment_date, user.language)
Health Professional	if test="appointment.healthprof"appointment.healthprof.rec_name or ''/if
Instructions / Notes	for each="line in (appointment.comments or "").split('\n')" line /for
/for