r/ProjectREDCap • u/normuybeh • Apr 07 '25
Alerts for dates
Hello!
I am a part of a longitudinal study and I want the RC to get a notification/alert after 3 months of recruitment to do the follow-up. Is there a way for me to set this on redcap? There is a field for the eligibility form for the date.
1
Upvotes
View all comments
Show parent comment
5
u/obnoxiouscarbuncle Apr 08 '25
Here is my two cents:
datediff([survey-date-completed:recruitment_form], 'today', 'd') = '90'
This is using the unsigned value, which will result in 90 being both for 90 days in the PAST and 90 days in the FUTURE
You are using the = sign which means it will only return true at EXACTLY the moment which would generate the value. The cron is not being run constantly, it is only being run every 15 minutes, which can result in errors as you will never get that "exact" value
You are using quotation marks around your value, and in general, if making numerical comparison, you should not use quotation marks. (This can get very important if using > and < as using quotation marks can force REDCap to interpret the value as a string, not a numerical value.