Skip to content

Commit 8c98b24

Browse files
committed
fix
1 parent 51ef72d commit 8c98b24

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

onprc_billing/resources/queries/onprc_billing/perDiemsByDay.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ SELECT
7373
group_concat(DISTINCT h3.room.housingType.value) as housingTypes,
7474
max(timestampdiff('SQL_TSI_DAY', d.birth, i2.dateOnly)) as perDiemAge,
7575
count(DISTINCT pdf.chargeId) as perDiemFeeCount,
76-
count(*) AS bottleFedRecordCount,
77-
count(*) AS researchRecordCount,
76+
count(t1.code) AS bottleFedRecordCount,
77+
count(a3.project) AS researchRecordCount,
7878
count(CASE WHEN pdf.canChargeInfants = true THEN 1 ELSE null END) AS pdfChargeInfantCount,
7979
max(pdf.chargeId) AS maxPdfChargeId,
8080
(SELECT count(*) AS c FROM study.flags q WHERE q.Id = i2.Id AND q.flag.value LIKE '%Quarantine%' AND q.dateOnly <= i2.dateOnly AND q.enddateCoalesced >= i2.dateOnly) AS quarantineFlagCount,

0 commit comments

Comments
 (0)