return false;
}
public String getPresentStatus(Registration registration, GDDate date) {
try {
RegistrationAppointment registrationAppointment = (RegistrationAppointment) system.query(new GetAppointmentFromRegistration(registration, date));
List<Presence> presences = registrationAppointment.getPresence();
for (Presence presence : presences) {
if(date.getYear() == presence.getDate().getYear() && date.getMonth() == presence.getDate().getMonth() && date.getDayOfMonth() == presence.getDate().getDayOfMonth() ) {
return (presence.isPresent() ? "Presente" : "Falta");