public interface IAnalyticsService { Task GetPopulationAsync(string code, decimal threshold, string direction, DateTimeOffset? from, DateTimeOffset? to); Task GetObservationTrendAsync(Guid encounterId, string code, DateTimeOffset? from, DateTimeOffset? to); Task GetAlertSummaryAsync(string? severity, string? department, DateTimeOffset? from, DateTimeOffset? to); Task SearchPatientsAsync(string? q, string? department, string? status, int page, int pageSize); }