feature: Reconciliation Jobs
This commit is contained in:
@@ -28,7 +28,7 @@ public class AlertService : IAlertService
|
||||
}
|
||||
|
||||
public async Task<PagedResult<ClinicalAlert>> ListGlobalAsync(
|
||||
AlertStatus? status, AlertSeverity? severity, string? department, int page, int pageSize)
|
||||
AlertStatus? status, AlertSeverity? severity, Department? department, int page, int pageSize)
|
||||
{
|
||||
var query = _db.ClinicalAlerts
|
||||
.AsNoTracking()
|
||||
@@ -41,8 +41,8 @@ public class AlertService : IAlertService
|
||||
if (severity.HasValue)
|
||||
query = query.Where(a => a.Severity == severity.Value);
|
||||
|
||||
if (!string.IsNullOrEmpty(department))
|
||||
query = query.Where(a => a.Encounter.Department == department);
|
||||
if (department.HasValue)
|
||||
query = query.Where(a => a.Encounter.Department == department.Value);
|
||||
|
||||
var total = await query.CountAsync();
|
||||
var alerts = await query
|
||||
|
||||
Reference in New Issue
Block a user