We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33811ef commit 077ea0dCopy full SHA for 077ea0d
1 file changed
onprc_ehr/resources/queries/study/AssignmentsReleasedInPast1Day.sql
@@ -26,4 +26,5 @@ and this one: <= NOW() → not in the future
26
Together, they produce exactly the last 24 hours, nothing more.
27
*/
28
WHERE CAST(enddate AS DATE) = TIMESTAMPADD('SQL_TSI_DAY', -1, CAST(NOW() AS DATE))
29
- AND CAST(enddate AS DATE) <= CAST(NOW() AS DATE)
+ AND CAST(enddate AS DATE) <= CAST(NOW() AS DATE)
30
+ AND Id.demographics.calculated_status = 'Alive'
0 commit comments