Skip to content

Commit

Permalink
Merge pull request #689 from palladiumkenya/feat/new-reporting-layer
Browse files Browse the repository at this point in the history
Feat/new reporting layer
  • Loading branch information
cbrianbet authored Jan 18, 2024
2 parents f61f190 + dd07707 commit f926826
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export class GetOtzEnrolledAdolescentsByAgeHandler implements IQueryHandler<GetO
async execute(query: GetOtzEnrolledAdolescentsByAgeQuery): Promise<any> {
const otzTotalAdolescentsByAgeGroup = this.repository.createQueryBuilder('f')
.select(['Sum(Eligible) totalAdolescents, AgeGroup ageGroup']);

if (query.county) {
otzTotalAdolescentsByAgeGroup.andWhere('f.County IN (:...counties)', { counties: query.county });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class GetVlOverallNumberWithFollowVlTestsAtGt1000CopiesSecondLineRegiment
.leftJoin(
'LineListViralLoad',
'c',
'cohort.PatientidHash= c.PatientID AND cohort.PatientPKHash= c.PatientPK AND cohort.SiteCode= c.MFLCode ',
'cohort.PatientidHash= c.PatientID AND cohort.PatientPKHash= c.PatientPKHash AND cohort.SiteCode= c.MFLCode ',
);

if (query.county) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export class GetVlUptakeUToUHandler
.select([
`SUM(TXCurr) TXCurr, SUM(EligibleVL) EligibleVL, SUM(HasValidVL) HasValidVL,
SUM(CountTwoConsecutiveTestsWithinTheYear) TwoConsTests,
SUM(CountEligibleForTwoVLTests) TwoEligibleTests, SUM(CountDurableLDL) DurableLDL,
SUM(CountEligibleForTwoVLTests) TwoEligibleTests,
SUM(CountDurableLDL) DurableLDL,
SUM(CountLDLLastOneTest) LDLLastOneTest`,
])
.where('f.Gender IS NOT NULL');
Expand Down

0 comments on commit f926826

Please sign in to comment.