records333
Technical User
Hello, my goal is to capture a patients' HBA1C_Last_ Date; 3M, 12M, and 24M AFTER last class. I believe the following formula should be modified (possibly removing the 6M logic). All valuable recommendations are welcomed, thanks in advance.
{DM_DIABETES_ARCHIVE.HBA1C_LAST_DATE} <= {ICIC.1ST CLASS} and
//2nd A1C At on or after last class
{ICIC.LAST CLASS} <= {DM_DIABETES.HBA1C_LAST_DATE} and
//A1C At least 3 months after Last Class But no Later Than 6 months after class
{ICIC.LAST CLASS} in dateadd('m',-6,{DM_DIABETES.HBA1C_LAST_DATE}) to dateadd ('m',-3,{DM_DIABETES.HBA1C_LAST_DATE}) and
//Only those how have completed 3 or more classes
{ICIC.CLASSES} >= 3
{DM_DIABETES_ARCHIVE.HBA1C_LAST_DATE} <= {ICIC.1ST CLASS} and
//2nd A1C At on or after last class
{ICIC.LAST CLASS} <= {DM_DIABETES.HBA1C_LAST_DATE} and
//A1C At least 3 months after Last Class But no Later Than 6 months after class
{ICIC.LAST CLASS} in dateadd('m',-6,{DM_DIABETES.HBA1C_LAST_DATE}) to dateadd ('m',-3,{DM_DIABETES.HBA1C_LAST_DATE}) and
//Only those how have completed 3 or more classes
{ICIC.CLASSES} >= 3