Notifications
Clear all
Topic starter
what am I doing wrong? I am trying to evaluate if a Flu vaccine is given within a year (365 days)
I have the following code but it isn't returning anything.
COND
case (LASTOBSDATE("FLU VAX")<>"") and (DURATIONDAYS(LAST_OBS_DATE("FLU VAX"), str(._todaysdate))>365)
MEL_ADD_ORDER("S", "Always", "Influenza administered or prev given", "", str(gRxOrderCode,"|"), str(gRxOrderDesc,"|"), "", "", "", "", "")
ENDCOND
Posted : July 8, 2014 1:33 am
Topic starter
duh - nevermind I got it....
/*Influenza #110*/
COND
CASE (LASTOBSDATE("FLU VAX")<>"") and DURATIONDAYS(LASTOBSDATE("FLU VAX"), str(._todaysdate))<365
MEL_ADD_ORDER("S", "Always", "Influenza administered or prev given", "", str(gRxOrderCode,"|"), str(gRxOrderDesc,"|"), "", "", "", "", "")
ENDCOND
Posted : July 8, 2014 1:48 am