Notifications
Clear all
Topic starter
I'm looking for a way to trigger an action if it has been more than 6 months from when an Obs Term was last recorded.
For Example: Obs Term "TEST" was last recorded on 9/1/2014, <DO SOMETHING> vs. Obs Term "TEST" was last recorded on 2/1/2015, <DO NOTHING>.
Thanks!
Posted : April 3, 2015 5:02 am
I would try:
if (val(LASTOBSDATE("TEST"))>=val(subtractdates(str(._todaysdate),"","","180"))) then >>DO SOMETHING<< else "" endif
Posted : April 3, 2015 5:11 am
/*values written within last 14 days*/
{if OBSPREV("CHIEF CMPLNT") "" AND OBSNOW("CHIEF CMPLNT") == "" AND DURATIONDAYS(LAST_SIGNED_OBS_DATE("CHIEF CMPLNT"), str(._TODAYSDATE)) <=14 then OBSNOW("CHIEF CMPLNT",OBSPREV("CHIEF CMPLNT")) ELSE "" ENDIF}
Posted : April 3, 2015 5:33 am
Topic starter
Thank you both for the fast responses and help. This met my goal.
Posted : April 3, 2015 7:28 am