Skip to content

Commit

Permalink
[Bug]Kavitha | fix dateless appt exception when patient merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kavitha-sundararajan committed Dec 29, 2023
1 parent 7f58e0f commit 226fa9e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ public List<Appointment> getAppointmentsForPatient(Integer patientId) {
@Override
public List<Appointment> getDatelessAppointments() {
Criteria criteria = sessionFactory.getCurrentSession().createCriteria(Appointment.class);
criteria.createAlias("patient", "patient");
criteria.add(Restrictions.eq("patient.voided", false));
criteria.add(Restrictions.eq("patient.personVoided", false));
criteria.add(Restrictions.isNull("startDateTime"));
criteria.add(Restrictions.isNull("endDateTime"));
criteria.addOrder(Order.asc("dateCreated"));
Expand Down

0 comments on commit 226fa9e

Please sign in to comment.