NAMESCMC PCMM NIGHTLY TASK
DESCRIPTIONThis option should be scheduled once a day. It reviews Patient team assignmentsand flaggs them for inactivation if their assignment is NEW and they have not been seen in the last year. It also flaggs ESTABLISHED patients if they have not been seen more than two years. If there are not appointments within 30 days since flagging the related patients are inactivated on the closest 15th or the end of month process. Messages are generated both on the 15th and on the last day of a month.
CREATORUSER,ONE
E ACTION PRESENTYES
ENTRY ACTIONS ^XTMP("SCMCTSK2-"_$$HTFM^XLFDT($H,1),0)=$$HTFM^XLFDT($H+7,1)_U_$$HTFM^XLFDT($H,1)_U_$J,^XTMP("SCMCTSK2-"_$$HTFM^XLFDT($H,1),$J,"START")=$$HTE^XLFDT($H)
EXIT ACTIONN DTT S DTT=+$D(^XTMP("SCMCTSK2-"_$$HTFM^XLFDT($H,1),$J,"START")) N DT1 S DT1=$S(DTT>0:$$HTFM^XLFDT($H,1),1:$$HTFM^XLFDT($H-1,1)) S ^XTMP("SCMCTSK2-"_DT1,$J,"STOP")=$$HTE^XLFDT($H)
LOCKSC PCMM SETUP
MENU TEXTPCMM NIGHTLY TASK
OUT OF ORDER MESSAGEThis functionality is now accomplished by the PCMM Web Application.
ROUTINENIGHT^SCMCTSK2
TYPErun routine
UPPERCASE MENU TEXTPCMM NIGHTLY TASK
X ACTION PRESENTYES