diff --git a/src/care-treatment/viral-load/queries/handlers/get-vl-overall-uptake-received-follow-tests-all.handler.ts b/src/care-treatment/viral-load/queries/handlers/get-vl-overall-uptake-received-follow-tests-all.handler.ts index 70fc06b0..d2d7a7e5 100644 --- a/src/care-treatment/viral-load/queries/handlers/get-vl-overall-uptake-received-follow-tests-all.handler.ts +++ b/src/care-treatment/viral-load/queries/handlers/get-vl-overall-uptake-received-follow-tests-all.handler.ts @@ -36,7 +36,7 @@ export class GetVlOverallUptakeReceivedFollowTestsAllHandler implements IQueryHa .leftJoin( 'LineListViralLoad', 'c', - 'cohort.PatientidHash=c.PatientID and cohort.PatientPKHash=c.PatientPK and c.MFLCode=cohort.SiteCode', + 'cohort.PatientidHash=c.PatientIDHash and cohort.PatientPKHash=c.PatientPKHash and c.MFLCode=cohort.SiteCode', ); if (query.county) { diff --git a/src/care-treatment/viral-load/queries/handlers/get-vl-overall-uptake-received-follow-tests.handler.ts b/src/care-treatment/viral-load/queries/handlers/get-vl-overall-uptake-received-follow-tests.handler.ts index 1cb5f95d..c58ec969 100644 --- a/src/care-treatment/viral-load/queries/handlers/get-vl-overall-uptake-received-follow-tests.handler.ts +++ b/src/care-treatment/viral-load/queries/handlers/get-vl-overall-uptake-received-follow-tests.handler.ts @@ -36,7 +36,7 @@ export class GetVlOverallUptakeReceivedFollowTestsHandler implements IQueryHandl .leftJoin( 'LineListViralLoad', 'c', - 'cohort.PatientidHash=c.PatientID and cohort.PatientPKHash=c.PatientPK and c.MFLCode=cohort.SiteCode', + 'cohort.PatientidHash=c.PatientIDHash and cohort.PatientPKHash=c.PatientPKHash and c.MFLCode=cohort.SiteCode', ); if (query.county) {