public ISearchBuilder FilterByPartialNotificationDate(PartialDate partialNotificationDate) { if (!(partialNotificationDate == null || partialNotificationDate.IsEmpty())) { partialNotificationDate.TryConvertToDateTimeRange(out DateTime? dateRangeStart, out DateTime? dateRangeEnd); notificationIQ = notificationIQ.Where(s => s.NotificationDate >= dateRangeStart && s.NotificationDate < dateRangeEnd); } return(this); }
public ISearchBuilder FilterByPartialDob(PartialDate partialDob) { if (!(partialDob == null || partialDob.IsEmpty())) { partialDob.TryConvertToDateTimeRange(out DateTime? dateRangeStart, out DateTime? dateRangeEnd); notificationIQ = notificationIQ.Where(s => s.PatientDetails.Dob >= dateRangeStart && s.PatientDetails.Dob < dateRangeEnd); } return(this); }
public ISearchBuilder FilterByPartialNotificationDate(PartialDate partialNotificationDate) { if (!(partialNotificationDate == null || partialNotificationDate.IsEmpty())) { partialNotificationDate.TryConvertToDateTimeRange(out var dateRangeStart, out var dateRangeEnd); AppendCondition("n.NotificationDate >= @notificationDateRangeStart AND n.NotificationDate < @notificationDateRangeEnd"); parameters.notificationDateRangeStart = dateRangeStart; parameters.notificationDateRangeEnd = dateRangeEnd; } return(this); }
public ISearchBuilder FilterByPartialDob(PartialDate partialDob) { if (!(partialDob == null || partialDob.IsEmpty())) { partialDob.TryConvertToDateTimeRange(out var dateRangeStart, out var dateRangeEnd); AppendCondition("dmg.DateOfBirth >= @dobDateRangeStart AND dmg.DateOfBirth < @dobDateRangeEnd"); parameters.dobDateRangeStart = dateRangeStart; parameters.dobDateRangeEnd = dateRangeEnd; } return(this); }