EEOETICK ;HISC/JWR - TASKED BULLETIN TO ALERT EEO SPECIALISTS OF APPROACHING AND PAST DUE DATES OF ACTION ;Apr 20, 1995
;;2.0;EEO Complaint Tracking;**1,4,6**;Apr 27, 1995
K BLANK,LINE1,LINE2,LINE3
S $P(BLANK," ",30)="",$P(LINE,"=",20)="",$P(LINE,"=")=BLANK,$P(LINE1," ",10)="",$P(LINE2,"*",52)="",LINE2=LINE1_LINE2
S:'$D(EFLG) EFLG="P" K EEOT S D0=0
F S D0=$O(^EEO(785,D0)) Q:'D0 D
.I $P($G(^EEO(785,D0,12)),"^",2)="D" Q ; ignore deleted cases!
.F CN1=1:1:7 S EDO=$E($T(LINE+CN1),4,240),EDO(1)=+EDO,EDO(2)=$P(EDO,U,2),EDO(3)=$P(EDO,U,3),EDO(4)=$P(EDO,U,4,99) X EDO(4) D
..I EDO(1)=14.1 S EDO(3)=EDO(3)+$P($G(^EEO(785,D0,6)),"^",6) ; add extension days before checking counselor days
..S X=$G(X) I X'["*" K EDO Q
..I X>$S(EFLG="P":EDO(3)-4,1:EDO(3)) Q:EFLG="P"&(X>EDO(3)) D STRING Q
I $D(EEOT) D XMT
EXIT ;KILL VARIABLES AND QUIT
K CASE,LINE,EDO,EEOT,BLANK,LINE1,LINE2,LINE3,AZ,F1,^TMP($J),EC1,EFLG Q
STRING ;
S EEOT($J,D0,EDO(1))="^^"_X_"^"_EDO(1)_"^"_EDO(3) Q
XMT ;Builds ^TMP($J, global for transmission
S D0="",F1=12 F S D0=$O(EEOT($J,D0)) Q:D0'>0 D CASE S EC1="" F S EC1=$O(EEOT($J,D0,EC1)) Q:EC1'>0 D
.F AZ=1:1:6 S @("A"_AZ)=$P($G(EEOT($J,D0,EC1)),U,AZ)
.S ^TMP($J,F1)=$P(^DD(785,EC1,0),U)_" ("_A5_" DAYS PERMITTED) "_A3_" DAYS HAVE PAST",F1=F1+1 Q
Q:'$D(^TMP($J))
S Y=DT D DD^%DT
S (^TMP($J,1),^TMP($J,3))=LINE2
S ^TMP($J,2)=LINE1_"** EQUAL EMPLOYMENT OPPORTUNITY PACKAGE UPDATE **"
I EFLG'="P" S ^TMP($J,5)=" Subject: PAST DUE PROCESSING DATES",^TMP($J,8)=" The following cases have processing times which have exceeded",^TMP($J,9)=" the allowable time constraints for the listed processing phases:"
I EFLG="P" S ^TMP($J,5)=" Subject: NEARING EEO REPORTING DEADLINES",^TMP($J,8)=" The following cases have processing times which are within 4",^TMP($J,9)=" days of the maximum time allowed for the listed processing phases:"
F EO=4,10,11 S ^TMP($J,EO)=" "
S ^TMP($J,6)=" Date: "_Y D TRANS
Q
CASE ;Grabs case number
S CASE=$P($G(^EEO(785,D0,5)),U,6)
S ^TMP($J,F1)=LINE,^TMP($J,F1+1)=" ",^TMP($J,F1+2)=" For case# "_CASE
S F1=F1+3 Q
TRANS ;Transmits timeliness warning message to members of UPLINK_DATA_SERVER mailgroup
S ^TMP($J,F1)=LINE
D DT^DICRW S XMSUB="EEO LIST OF TIMELINESS CONCERNS",XMDUZ=.5
S XMY("G.UPLINK_DATA_SERVER")=""
S XMTEXT="^TMP($J,"
S XMSUB=XMSUB_$S(EFLG="P":" (Nearing Deadlines)",1:" (Deadlines Missed)")
D ^XMD Q
LINE ;COMPUTED FIELDS CALCULATION (FLD#^TITLE^# OF DAYS MAX^CODE)
;;14.1^TOTAL COUNSELOR DAYS^30^S EN1=$S($P($G(^EEO(785,D0,6)),U,3)>0:"6;3",1:"1;2"),EN2="1;12" D INPUT^EEOEOSE
;;25^TOTAL DAYS ACCEPTANCE^45^D ACCEPT^EEOUTIL1
;;42^TOTAL DAYS ASSIGN INV.^30^S EN1="3;3",EN2="2;5" D INPUT^EEOEOSE
;;53^TOTAL DAYS FOR ADVISE/RIGHTS^15^S EN1="2;6",EN2="3;6" D INPUT^EEOEOSE
;;55^TOTAL DAYS TO MAKE ELECTION^30^S EN1=$S($P($G(^EEO(785,D0,5)),U,10)>0:"5;10",$P($G(^EEO(785,D0,2)),U,9):"2;9",1:"2;13"),EN2="5;11" D INPUT^EEOEOSE
;;57^180 DAYS^180^S EN1="5;11",EN2="1;3" D INPUT^EEOEOSE
;;51^TOTAL COUNSELOR REPORT DAYS^5^S EN2="5;7",EN1=$S($P($G(^EEO(785,D0,5)),U,8)>0:"5;8",1:"5;9") D INPUT^EEOEOSE
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HEEOETICK 3160 printed Dec 13, 2024@01:51:08 Page 2
EEOETICK ;HISC/JWR - TASKED BULLETIN TO ALERT EEO SPECIALISTS OF APPROACHING AND PAST DUE DATES OF ACTION ;Apr 20, 1995
+1 ;;2.0;EEO Complaint Tracking;**1,4,6**;Apr 27, 1995
+2 KILL BLANK,LINE1,LINE2,LINE3
+3 SET $PIECE(BLANK," ",30)=""
SET $PIECE(LINE,"=",20)=""
SET $PIECE(LINE,"=")=BLANK
SET $PIECE(LINE1," ",10)=""
SET $PIECE(LINE2,"*",52)=""
SET LINE2=LINE1_LINE2
+4 if '$DATA(EFLG)
SET EFLG="P"
KILL EEOT
SET D0=0
+5 FOR
SET D0=$ORDER(^EEO(785,D0))
if 'D0
QUIT
Begin DoDot:1
+6 ; ignore deleted cases!
IF $PIECE($GET(^EEO(785,D0,12)),"^",2)="D"
QUIT
+7 FOR CN1=1:1:7
SET EDO=$EXTRACT($TEXT(LINE+CN1),4,240)
SET EDO(1)=+EDO
SET EDO(2)=$PIECE(EDO,U,2)
SET EDO(3)=$PIECE(EDO,U,3)
SET EDO(4)=$PIECE(EDO,U,4,99)
XECUTE EDO(4)
Begin DoDot:2
+8 ; add extension days before checking counselor days
IF EDO(1)=14.1
SET EDO(3)=EDO(3)+$PIECE($GET(^EEO(785,D0,6)),"^",6)
+9 SET X=$GET(X)
IF X'["*"
KILL EDO
QUIT
+10 IF X>$SELECT(EFLG="P":EDO(3)-4,1:EDO(3))
if EFLG="P"&(X>EDO(3))
QUIT
DO STRING
QUIT
End DoDot:2
End DoDot:1
+11 IF $DATA(EEOT)
DO XMT
EXIT ;KILL VARIABLES AND QUIT
+1 KILL CASE,LINE,EDO,EEOT,BLANK,LINE1,LINE2,LINE3,AZ,F1,^TMP($JOB),EC1,EFLG
QUIT
STRING ;
+1 SET EEOT($JOB,D0,EDO(1))="^^"_X_"^"_EDO(1)_"^"_EDO(3)
QUIT
XMT ;Builds ^TMP($J, global for transmission
+1 SET D0=""
SET F1=12
FOR
SET D0=$ORDER(EEOT($JOB,D0))
if D0'>0
QUIT
DO CASE
SET EC1=""
FOR
SET EC1=$ORDER(EEOT($JOB,D0,EC1))
if EC1'>0
QUIT
Begin DoDot:1
+2 FOR AZ=1:1:6
SET @("A"_AZ)=$PIECE($GET(EEOT($JOB,D0,EC1)),U,AZ)
+3 SET ^TMP($JOB,F1)=$PIECE(^DD(785,EC1,0),U)_" ("_A5_" DAYS PERMITTED) "_A3_" DAYS HAVE PAST"
SET F1=F1+1
QUIT
End DoDot:1
+4 if '$DATA(^TMP($JOB))
QUIT
+5 SET Y=DT
DO DD^%DT
+6 SET (^TMP($JOB,1),^TMP($JOB,3))=LINE2
+7 SET ^TMP($JOB,2)=LINE1_"** EQUAL EMPLOYMENT OPPORTUNITY PACKAGE UPDATE **"
+8 IF EFLG'="P"
SET ^TMP($JOB,5)=" Subject: PAST DUE PROCESSING DATES"
SET ^TMP($JOB,8)=" The following cases have processing times which have exceeded"
SET ^TMP($JOB,9)=" the allowable time constraints for the listed processing phases:"
+9 IF EFLG="P"
SET ^TMP($JOB,5)=" Subject: NEARING EEO REPORTING DEADLINES"
SET ^TMP($JOB,8)=" The following cases have processing times which are within 4"
SET ^TMP($JOB,9)=" days of the maximum time allowed for the listed processing phases:"
+10 FOR EO=4,10,11
SET ^TMP($JOB,EO)=" "
+11 SET ^TMP($JOB,6)=" Date: "_Y
DO TRANS
+12 QUIT
CASE ;Grabs case number
+1 SET CASE=$PIECE($GET(^EEO(785,D0,5)),U,6)
+2 SET ^TMP($JOB,F1)=LINE
SET ^TMP($JOB,F1+1)=" "
SET ^TMP($JOB,F1+2)=" For case# "_CASE
+3 SET F1=F1+3
QUIT
TRANS ;Transmits timeliness warning message to members of UPLINK_DATA_SERVER mailgroup
+1 SET ^TMP($JOB,F1)=LINE
+2 DO DT^DICRW
SET XMSUB="EEO LIST OF TIMELINESS CONCERNS"
SET XMDUZ=.5
+3 SET XMY("G.UPLINK_DATA_SERVER")=""
+4 SET XMTEXT="^TMP($J,"
+5 SET XMSUB=XMSUB_$SELECT(EFLG="P":" (Nearing Deadlines)",1:" (Deadlines Missed)")
+6 DO ^XMD
QUIT
LINE ;COMPUTED FIELDS CALCULATION (FLD#^TITLE^# OF DAYS MAX^CODE)
+1 ;;14.1^TOTAL COUNSELOR DAYS^30^S EN1=$S($P($G(^EEO(785,D0,6)),U,3)>0:"6;3",1:"1;2"),EN2="1;12" D INPUT^EEOEOSE
+2 ;;25^TOTAL DAYS ACCEPTANCE^45^D ACCEPT^EEOUTIL1
+3 ;;42^TOTAL DAYS ASSIGN INV.^30^S EN1="3;3",EN2="2;5" D INPUT^EEOEOSE
+4 ;;53^TOTAL DAYS FOR ADVISE/RIGHTS^15^S EN1="2;6",EN2="3;6" D INPUT^EEOEOSE
+5 ;;55^TOTAL DAYS TO MAKE ELECTION^30^S EN1=$S($P($G(^EEO(785,D0,5)),U,10)>0:"5;10",$P($G(^EEO(785,D0,2)),U,9):"2;9",1:"2;13"),EN2="5;11" D INPUT^EEOEOSE
+6 ;;57^180 DAYS^180^S EN1="5;11",EN2="1;3" D INPUT^EEOEOSE
+7 ;;51^TOTAL COUNSELOR REPORT DAYS^5^S EN2="5;7",EN1=$S($P($G(^EEO(785,D0,5)),U,8)>0:"5;8",1:"5;9") D INPUT^EEOEOSE