records333
Technical User
I would like to capture encounter dates 6M before test date, 6M after test date- starting 2M after test date
{PAT_ENC_HSP.HOSP_ADMSN_TIME} < {Test.Date} and
{PAT_ENC_HSP.HOSP_ADMSN_TIME} > ('m', +2, {Test.Date}) or
{PAT_ENC_HSP.HOSP_ADMSN_TIME} in dateadd('m',-6,{Test.Date}to dateadd('m',+6,{Test.Date})and
{PAT_ENC_HSP.HOSP_ADMSN_TIME} < {Test.Date} and
{PAT_ENC_HSP.HOSP_ADMSN_TIME} > ('m', +2, {Test.Date}) or
{PAT_ENC_HSP.HOSP_ADMSN_TIME} in dateadd('m',-6,{Test.Date}to dateadd('m',+6,{Test.Date})and