Skip to content

Commit

Permalink
Merge pull request #717 from cbrianbet/feat/new-reporting-layer
Browse files Browse the repository at this point in the history
Fixed prep dashboards bug
  • Loading branch information
cbrianbet authored Mar 28, 2024
2 parents 8ebf182 + 8ee6a78 commit 32e1df2
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/hts/prep/queries/handlers/get-ct-prep-trends.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export class GetCTPrepTrendHandler implements IQueryHandler<GetCTPrepTrendQuery>
async execute(query: GetCTPrepTrendQuery): Promise<any> {
const params = [];
let newOnPrep = `Select
AssYear year,
AssMonth month,
Year year,
Month month,
SUM(PrepCT) As PrepCT
from AggregatePrepCascade prep
where AssYear is not null
where Year is not null
`;

if (query.county) {
Expand Down
2 changes: 1 addition & 1 deletion src/hts/prep/queries/handlers/get-ct-prep.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class GetCTPrepHandler implements IQueryHandler<GetCTPrepQuery> {
let newOnPrep = `Select
SUM(PrepCT) As PrepCT
from AggregatePrepCascade prep
where AssYear is not null
where Year is not null
`;

if (query.county) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class GetNewOnPrepByAgeSexHandler
Gender,
SUM(StartedPrep) As StartedPrep
from AggregatePrepCascade prep
where AssYear is not null
where Year is not null
`;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class GetNewOnPrepTrendsHandler
Year year,
SUM(StartedPrep) As StartedPrep
from AggregatePrepCascade prep
where AssYear is not null
where Year is not null
`;

if (query.county) {
Expand Down
2 changes: 1 addition & 1 deletion src/hts/prep/queries/handlers/get-new-on-prep.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class GetNewOnPrepHandler implements IQueryHandler<GetNewOnPrepQuery> {
Year VisitYear,
SUM(StartedPrep) As StartedPrep
from AggregatePrepCascade prep
where AssYear is not null
where Year is not null
`;

if (query.county) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class GetPrepAgeSexTrendHandler implements IQueryHandler<GetPrepAgeSexTre
Gender,
SUM(PrepCT) As PrepCT
from AggregatePrepCascade prep
where Assyear is not null
where Year is not null
`;

if (query.county) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class GetPrepEligibleByAgegroupHandler
AgeGroup DATIMAgeGroup,
Sum(EligiblePrep) As EligiblePrep
from AggregatePrepCascade prep
where AssYear is not null
where Year is not null
`;

if (query.county) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ export class GetPrepEligibleTrendsHandler
async execute(query: GetPrepEligibleTrendsQuery): Promise<any> {
const params = [];
let newOnPrep = `SELECT
AssMonth month,
AssYear year,
Month month,
Year year,
Sum(EligiblePrep) As EligiblePrep
from AggregatePrepCascade prep
where AssYear is not null
where Year is not null
`;

if (query.county) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class GetPrepScreenedTrendsHandler
Year year,
Sum([Screened]) As ScreenedPrep
from AggregatePrepCascade prep
where AssYear is not null
where Year is not null
`;

if (query.county) {
Expand Down

0 comments on commit 32e1df2

Please sign in to comment.