public async Task <PatientCohort> GetPatientCohortAsync(PatientCountQuery query, CancellationToken token) { token.ThrowIfCancellationRequested(); var cohort = await GetCohortAsync(query, token); return(cohort); }
public async Task <PatientCohort> GetPatientCohortAsync(PatientCountQuery query, CancellationToken token) { token.ThrowIfCancellationRequested(); log.LogInformation("Patient count query starting"); var cohort = await GetCohortAsync(query, token); return(cohort); }
protected override async Task <PatientCohort> GetCohortAsync(PatientCountQuery query, CancellationToken token) { var leafQueries = GetLeafQueries(query.Panels); return(new PatientCohort { QueryId = query.QueryId, PatientIds = await GetPatientSetAsync(leafQueries, token), SqlStatements = leafQueries.Select(q => q.SqlStatement) }); }
protected override async Task <PatientCohort> GetCohortAsync(PatientCountQuery query, CancellationToken token) { var cteQuery = GetCteQuery(query.Panels); return(new PatientCohort { QueryId = query.QueryId, PatientIds = await GetPatientSetAsync(cteQuery, token), SqlStatements = new string[] { cteQuery.SqlStatement } }); }
protected abstract Task <PatientCohort> GetCohortAsync(PatientCountQuery query, CancellationToken token);