Current Selection Formula:
(
{HSP_TRTMT_TEAM.TRTMNT_TM_BEGIN_DT} IN [CurrentDate -4 TO CurrentDate -1] and
{HSP_TRTMT_TEAM.TRTMNT_TM_BEGIN_DT} <= cdatetime(currentdate - 1, time(20,56,00))
and
(IsNull({HSP_TRTMT_TEAM.TRTMNT_TM_END_DT})or {HSP_TRTMT_TEAM.TRTMNT_TM_END_DT} >= cdatetime(currentdate - 1, time(20,56,00)) OR
(Not(IsNull({HSP_TRTMT_TEAM.TRTMNT_TM_END_DT})) AND {HSP_TRTMT_TEAM.TRTMNT_TM_END_DT} >= cdatetime(currentdate - 1, time(20,56,00)) OR
Not(IsNull({PAT_ENC_HSP.HOSP_DISCH_TIME})) AND {PAT_ENC_HSP.HOSP_DISCH_TIME} >= cdatetime(currentdate - 1, time(20,56,00))))
)
and
{HSP_ACCOUNT.LOC_ID} = 410 and
{HSP_TRTMT_TEAM.PROV_ID} <> '411467' and
({ZC_TRTMT_TEAM_REL.NAME} = "Hospitalist" or
{HSP_TRTMT_TEAM.PROV_ID} = '11095')
Records that should be excluded but are not
TRTMNT_TM_BEGIN_DT | TRTMNT_TM_END_DT | HOSP_DISCH_TIME |
8/11/2014 3:27:00 PM | 8/12/2014 1:30:00 PM | |
8/11/2014 1:51:00 PM | 8/12/2014 4:54:00 PM |