Skip to content

Commit 64c466a

Browse files
committed
mostRecentWeight fix
1 parent 1976b3f commit 64c466a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ehr/resources/queries/study/demographicsMostRecentWeight.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ null as weightField,
1414
cast((
1515
SELECT round(cast(AVG(w2.weight) as double), 2) AS _expr
1616
FROM study.weight w2
17-
WHERE w.id=w2.id AND w.MostRecentWeightDate=w2.date
17+
WHERE w2.qcstate.publicdata = true AND w.id=w2.id AND w.MostRecentWeightDate=w2.date
1818
) as double) AS MostRecentWeight
1919

2020
FROM (

0 commit comments

Comments
 (0)