[613] | 1 | DGRPXX7 ; GENERATED FROM 'DG LOAD EDIT SCREEN 7' INPUT TEMPLATE(#420), FILE 2;06/28/99
|
---|
| 2 | D DE G BEGIN
|
---|
| 3 | DE S DIE="^DPT(",DIC=DIE,DP=2,DL=1,DIEL=0,DU="" K DG,DE,DB Q:$O(^DPT(DA,""))=""
|
---|
| 4 | I $D(^(.29)) S %Z=^(.29) S %=$P(%Z,U,1) S:%]"" DE(14)=% S %=$P(%Z,U,2) S:%]"" DE(13)=% S %=$P(%Z,U,12) S:%]"" DE(11)=%
|
---|
| 5 | I $D(^(.3)) S %Z=^(.3) S %=$P(%Z,U,1) S:%]"" DE(5)=% S %=$P(%Z,U,2) S:%]"" DE(7)=% S %=$P(%Z,U,4) S:%]"" DE(8)=% S %=$P(%Z,U,5) S:%]"" DE(9)=% S %=$P(%Z,U,12) S:%]"" DE(10)=%
|
---|
| 6 | I $D(^(.31)) S %Z=^(.31) S %=$P(%Z,U,3) S:%]"" DE(15)=% S %=$P(%Z,U,4) S:%]"" DE(16)=%
|
---|
| 7 | I $D(^("TYPE")) S %Z=^("TYPE") S %=$P(%Z,U,1) S:%]"" DE(2)=%
|
---|
| 8 | I $D(^("VET")) S %Z=^("VET") S %=$P(%Z,U,1) S:%]"" DE(4)=%
|
---|
| 9 | K %Z Q
|
---|
| 10 | ;
|
---|
| 11 | W W !?DL+DL-2,DLB_": "
|
---|
| 12 | Q
|
---|
| 13 | O D W W Y W:$X>45 !?9
|
---|
| 14 | I $L(Y)>19,'DV,DV'["I",(DV["F"!(DV["K")) G RW^DIR2
|
---|
| 15 | W:Y]"" "// " I 'DV,DV["I",$D(DE(DQ))#2 S X="" W " (No Editing)" Q
|
---|
| 16 | TR R X:DTIME E S (DTOUT,X)=U W $C(7)
|
---|
| 17 | Q
|
---|
| 18 | A K DQ(DQ) S DQ=DQ+1
|
---|
| 19 | B G @DQ
|
---|
| 20 | RE G PR:$D(DE(DQ)) D W,TR
|
---|
| 21 | N I X="" G A:DV'["R",X:'DV,X:D'>0,A
|
---|
| 22 | RD G QS:X?."?" I X["^" D D G ^DIE17
|
---|
| 23 | I X="@" D D G Z^DIE2
|
---|
| 24 | I X=" ",DV["d",DV'["P",$D(^DISV(DUZ,"DIE",DLB)) S X=^(DLB) I DV'["D",DV'["S" W " "_X
|
---|
| 25 | T G M^DIE17:DV,^DIE3:DV["V",P:DV'["S" X:$D(^DD(DP,DIFLD,12.1)) ^(12.1) I X?.ANP D SET I 'DDER X:$D(DIC("S")) DIC("S") I W:'$D(DB(DQ)) " "_% G V
|
---|
| 26 | K DDER G X
|
---|
| 27 | P I DV["P" S DIC=U_DU,DIC(0)=$E("EN",$D(DB(DQ))+1)_"M"_$E("L",DV'["'") S:DIC(0)["L" DLAYGO=+$P(DV,"P",2) I DV'["*" D ^DIC S X=+Y,DIC=DIE G X:X<0
|
---|
| 28 | G V:DV'["N" D D I $L($P(X,"."))>24 K X G Z
|
---|
| 29 | I $P(DQ(DQ),U,5)'["$",X?.1"-".N.1".".N,$P(DQ(DQ),U,5,99)["+X'=X" S X=+X
|
---|
| 30 | V D @("X"_DQ) K YS
|
---|
| 31 | Z K DIC("S"),DLAYGO I $D(X),X'=U S DG(DW)=X S:DV["d" ^DISV(DUZ,"DIE",DLB)=X G A
|
---|
| 32 | X W:'$D(ZTQUEUED) $C(7),"??" I $D(DB(DQ)) G Z^DIE17
|
---|
| 33 | S X="?BAD"
|
---|
| 34 | QS S DZ=X D D,QQ^DIEQ G B
|
---|
| 35 | D S D=DIFLD,DQ(DQ)=DLB_U_DV_U_DU_U_DW_U_$P($T(@("X"_DQ))," ",2,99) Q
|
---|
| 36 | Y I '$D(DE(DQ)) D O G RD:"@"'[X,A:DV'["R"&(X="@"),X:X="@" S X=Y G N
|
---|
| 37 | PR S DG=DV,Y=DE(DQ),X=DU I $D(DQ(DQ,2)) X DQ(DQ,2) G RP
|
---|
| 38 | R I DG["P",@("$D(^"_X_"0))") S X=+$P(^(0),U,2) G RP:'$D(^(Y,0)) S Y=$P(^(0),U),X=$P(^DD(X,.01,0),U,3),DG=$P(^(0),U,2) G R
|
---|
| 39 | I DG["V",+Y,$P(Y,";",2)["(",$D(@(U_$P(Y,";",2)_"0)")) S X=+$P(^(0),U,2) G RP:'$D(^(+Y,0)) S Y=$P(^(0),U) I $D(^DD(+X,.01,0)) S DG=$P(^(0),U,2),X=$P(^(0),U,3) G R
|
---|
| 40 | X:DG["D" ^DD("DD") I DG["S" S %=$P($P(";"_X,";"_Y_":",2),";") S:%]"" Y=%
|
---|
| 41 | RP D O I X="" S X=DE(DQ) G A:'DV,A:DC<2,N^DIE17
|
---|
| 42 | I I DV'["I",DV'["#" G RD
|
---|
| 43 | D E^DIE0 G RD:$D(X),PR
|
---|
| 44 | Q
|
---|
| 45 | SET N DIR S DIR(0)="SV"_$E("o",$D(DB(DQ)))_U_DU,DIR("V")=1
|
---|
| 46 | I $D(DB(DQ)),'$D(DIQUIET) N DIQUIET S DIQUIET=1
|
---|
| 47 | D ^DIR I 'DDER S %=Y(0),X=Y
|
---|
| 48 | Q
|
---|
| 49 | BEGIN S DNM="DGRPXX7",DQ=1
|
---|
| 50 | S:$D(DTIME)[0 DTIME=300 S D0=DA,DIEZ=420,U="^"
|
---|
| 51 | 1 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=1 D X1 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
| 52 | X1 S:DGDR'["701" Y="@702"
|
---|
| 53 | Q
|
---|
| 54 | 2 S DW="TYPE;1",DV="RP391'a",DU="",DLB="TYPE",DIFLD=391
|
---|
| 55 | S DE(DW)="C2^DGRPXX7"
|
---|
| 56 | S DU="DG(391,"
|
---|
| 57 | G RE
|
---|
| 58 | C2 G C2S:$D(DE(2))[0 K DB S X=DE(2),DIC=DIE
|
---|
| 59 | I ($T(AVAFC^VAFCDD01)'="") S VAFCF="391;" D AVAFC^VAFCDD01(DA)
|
---|
| 60 | S X=DE(2),DIIX=2_U_DIFLD D AUDIT^DIET
|
---|
| 61 | C2S S X="" Q:DG(DQ)=X K DB S X=DG(DQ),DIC=DIE
|
---|
| 62 | I ($T(AVAFC^VAFCDD01)'="") S VAFCF="391;" D AVAFC^VAFCDD01(DA)
|
---|
| 63 | Q:$D(DE(2))[0&(^DD(DP,DIFLD,"AUDIT")="e") S X=DG(DQ),DIIX=3_U_DIFLD D AUDIT^DIET
|
---|
| 64 | Q
|
---|
| 65 | X2 Q
|
---|
| 66 | 3 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=3 D X3 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
| 67 | X3 D SC7^DGRPV
|
---|
| 68 | Q
|
---|
| 69 | 4 D:$D(DG)>9 F^DIE17,DE S DQ=4,DW="VET;1",DV="RSXa",DU="",DLB="VETERAN (Y/N)?",DIFLD=1901
|
---|
| 70 | S DE(DW)="C4^DGRPXX7"
|
---|
| 71 | S DU="Y:YES;N:NO;"
|
---|
| 72 | G RE
|
---|
| 73 | C4 G C4S:$D(DE(4))[0 K DB S X=DE(4),DIC=DIE
|
---|
| 74 | S DFN=DA D EN^DGMTCOR K DGMTCOR
|
---|
| 75 | S X=DE(4),DIC=DIE
|
---|
| 76 | ;
|
---|
| 77 | S X=DE(4),DIC=DIE
|
---|
| 78 | D AUTOUPD^DGENA2(DA)
|
---|
| 79 | S X=DE(4),DIC=DIE
|
---|
| 80 | I ($T(AVAFC^VAFCDD01)'="") S VAFCF="1901;" D AVAFC^VAFCDD01(DA)
|
---|
| 81 | S X=DE(4),DIIX=2_U_DIFLD D AUDIT^DIET
|
---|
| 82 | C4S S X="" Q:DG(DQ)=X K DB S X=DG(DQ),DIC=DIE
|
---|
| 83 | S DFN=DA D EN^DGMTCOR K DGMTCOR
|
---|
| 84 | S X=DG(DQ),DIC=DIE
|
---|
| 85 | X ^DD(2,1901,1,3,1.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.3)):^(.3),1:"") S X=$P(Y(1),U,1),X=X S DIU=X K Y S X=DIV S X="N" X ^DD(2,1901,1,3,1.4)
|
---|
| 86 | S X=DG(DQ),DIC=DIE
|
---|
| 87 | D AUTOUPD^DGENA2(DA)
|
---|
| 88 | S X=DG(DQ),DIC=DIE
|
---|
| 89 | I ($T(AVAFC^VAFCDD01)'="") S VAFCF="1901;" D AVAFC^VAFCDD01(DA)
|
---|
| 90 | Q:$D(DE(4))[0&(^DD(DP,DIFLD,"AUDIT")="e") S X=DG(DQ),DIIX=3_U_DIFLD D AUDIT^DIET
|
---|
| 91 | Q
|
---|
| 92 | X4 I $D(X) S:'$D(DPTX) DFN=DA D:'$D(^XUSEC("DG ELIGIBILITY",DUZ)) VAGE^DGLOCK:X="Y" I $D(X) D:$D(DFN) EV^DGLOCK
|
---|
| 93 | Q
|
---|
| 94 | ;
|
---|
| 95 | 5 D:$D(DG)>9 F^DIE17,DE S DQ=5,DW=".3;1",DV="RSXa",DU="",DLB="SERVICE CONNECTED?",DIFLD=.301
|
---|
| 96 | S DE(DW)="C5^DGRPXX7"
|
---|
| 97 | S DU="Y:YES;N:NO;"
|
---|
| 98 | G RE
|
---|
| 99 | C5 G C5S:$D(DE(5))[0 K DB S X=DE(5),DIC=DIE
|
---|
| 100 | ;
|
---|
| 101 | S X=DE(5),DIC=DIE
|
---|
| 102 | ;
|
---|
| 103 | S X=DE(5),DIC=DIE
|
---|
| 104 | D AUTOUPD^DGENA2(DA)
|
---|
| 105 | S X=DE(5),DIC=DIE
|
---|
| 106 | I ($T(AVAFC^VAFCDD01)'="") S VAFCF=".301;" D AVAFC^VAFCDD01(DA)
|
---|
| 107 | S X=DE(5),DIIX=2_U_DIFLD D AUDIT^DIET
|
---|
| 108 | C5S S X="" Q:DG(DQ)=X K DB S X=DG(DQ),DIC=DIE
|
---|
| 109 | X ^DD(2,.301,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.3)):^(.3),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y S X="" X ^DD(2,.301,1,1,1.4)
|
---|
| 110 | S X=DG(DQ),DIC=DIE
|
---|
| 111 | X ^DD(2,.301,1,2,1.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.3)):^(.3),1:"") S X=$P(Y(1),U,12),X=X S DIU=X K Y S X="" X ^DD(2,.301,1,2,1.4)
|
---|
| 112 | S X=DG(DQ),DIC=DIE
|
---|
| 113 | D AUTOUPD^DGENA2(DA)
|
---|
| 114 | S X=DG(DQ),DIC=DIE
|
---|
| 115 | I ($T(AVAFC^VAFCDD01)'="") S VAFCF=".301;" D AVAFC^VAFCDD01(DA)
|
---|
| 116 | Q:$D(DE(5))[0&(^DD(DP,DIFLD,"AUDIT")="e") S X=DG(DQ),DIIX=3_U_DIFLD D AUDIT^DIET
|
---|
| 117 | Q
|
---|
| 118 | X5 S DFN=DA D EV^DGLOCK I $D(X),X="Y" D VET^DGLOCK
|
---|
| 119 | Q
|
---|
| 120 | ;
|
---|
| 121 | 6 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=6 D X6 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
| 122 | X6 S:X'="Y" Y=.293
|
---|
| 123 | Q
|
---|
| 124 | 7 D:$D(DG)>9 F^DIE17,DE S DQ=7,DW=".3;2",DV="NJ3,0Xa",DU="",DLB="SERVICE CONNECTED PERCENTAGE",DIFLD=.302
|
---|
| 125 | S DE(DW)="C7^DGRPXX7"
|
---|
| 126 | G RE
|
---|
| 127 | C7 G C7S:$D(DE(7))[0 K DB S X=DE(7),DIC=DIE
|
---|
| 128 | ;
|
---|
| 129 | S X=DE(7),DIC=DIE
|
---|
| 130 | D AUTOUPD^DGENA2(DA)
|
---|
| 131 | S X=DE(7),DIC=DIE
|
---|
| 132 | X "S DFN=DA D EN^DGMTR K DGREQF"
|
---|
| 133 | S X=DE(7),DIC=DIE
|
---|
| 134 | I ($T(AVAFC^VAFCDD01)'="") S VAFCF=".302;" D AVAFC^VAFCDD01(DA)
|
---|
| 135 | S X=DE(7),DIIX=2_U_DIFLD D AUDIT^DIET
|
---|
| 136 | C7S S X="" Q:DG(DQ)=X K DB S X=DG(DQ),DIC=DIE
|
---|
| 137 | ;
|
---|
| 138 | S X=DG(DQ),DIC=DIE
|
---|
| 139 | D AUTOUPD^DGENA2(DA)
|
---|
| 140 | S X=DG(DQ),DIC=DIE
|
---|
| 141 | X "S DFN=DA D EN^DGMTR K DGREQF"
|
---|
| 142 | S X=DG(DQ),DIC=DIE
|
---|
| 143 | I ($T(AVAFC^VAFCDD01)'="") S VAFCF=".302;" D AVAFC^VAFCDD01(DA)
|
---|
| 144 | Q:$D(DE(7))[0&(^DD(DP,DIFLD,"AUDIT")="e") S X=DG(DQ),DIIX=3_U_DIFLD D AUDIT^DIET
|
---|
| 145 | Q
|
---|
| 146 | X7 S DFN=DA D EV^DGLOCK Q:'$D(X) K:+X'=X!(X>100)!(X<0)!(X?.E1"."1N.N) X I $D(X),$D(^DPT(DA,.3)),$P(^(.3),U,1)'="Y" W !?4,*7,"Only applies to service-connected applicants." K X
|
---|
| 147 | Q
|
---|
| 148 | ;
|
---|
| 149 | 8 D:$D(DG)>9 F^DIE17,DE S DQ=8,DW=".3;4",DV="S",DU="",DLB="P&T",DIFLD=.304
|
---|
| 150 | S DU="Y:YES;N:NO;"
|
---|
| 151 | G RE
|
---|
| 152 | X8 Q
|
---|
| 153 | 9 S DW=".3;5",DV="S",DU="",DLB="UNEMPLOYABLE",DIFLD=.305
|
---|
| 154 | S DU="Y:YES;N:NO;"
|
---|
| 155 | G RE
|
---|
| 156 | X9 Q
|
---|
| 157 | 10 S DW=".3;12",DV="DX",DU="",DLB="SC AWARD DATE",DIFLD=.3012
|
---|
| 158 | G RE
|
---|
| 159 | X10 S %DT="E" D ^%DT S X=Y K:Y<1 X N DFN S DFN=DA D SC^DGLOCK1
|
---|
| 160 | Q
|
---|
| 161 | ;
|
---|
| 162 | 11 S DW=".29;12",DV="S",DU="",DLB="RATED INCOMPETENT?",DIFLD=.293
|
---|
| 163 | S DU="0:NO;1:YES;"
|
---|
| 164 | G RE
|
---|
| 165 | X11 Q
|
---|
| 166 | 12 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=12 D X12 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
| 167 | X12 S:'X Y=.313
|
---|
| 168 | Q
|
---|
| 169 | 13 S DW=".29;2",DV="D",DU="",DLB="DATE RULED INCOMPETENT (CIVIL)",DIFLD=.292
|
---|
| 170 | G RE
|
---|
| 171 | X13 S %DT="E" D ^%DT S X=Y K:Y<1 X
|
---|
| 172 | Q
|
---|
| 173 | ;
|
---|
| 174 | 14 S DW=".29;1",DV="D",DU="",DLB="DATE RULED INCOMPETENT (VA)",DIFLD=.291
|
---|
| 175 | G RE
|
---|
| 176 | X14 S %DT="E" D ^%DT S X=Y K:Y<1 X
|
---|
| 177 | Q
|
---|
| 178 | ;
|
---|
| 179 | 15 S DW=".31;3",DV="FXO",DU="",DLB="CLAIM NUMBER",DIFLD=.313
|
---|
| 180 | S DQ(15,2)="S Y(0)=Y S Y=$E(Y,1,10)"
|
---|
| 181 | G RE
|
---|
| 182 | X15 S DFN=DA D EV^DGLOCK I $D(X) S L=$S($D(^DPT(DA,0)):$P(^(0),U,9),1:X) W:X?1"SS".E " ",L S:X?1"SS".E X=L I X'=L K:$L(X)>8!($L(X)<7)!'(X?.N) X
|
---|
| 183 | I $D(X),X'?.ANP K X
|
---|
| 184 | Q
|
---|
| 185 | ;
|
---|
| 186 | 16 S DW=".31;4",DV="P4'",DU="",DLB="CLAIM FOLDER LOCATION",DIFLD=.314
|
---|
| 187 | S DE(DW)="C16^DGRPXX7"
|
---|
| 188 | S DU="DIC(4,"
|
---|
| 189 | G RE
|
---|
| 190 | C16 G C16S:$D(DE(16))[0 K DB S X=DE(16),DIC=DIE
|
---|
| 191 | N DGX D CFL4^DGREGDD D KILL^DGREGDD1(DA,.312,.31,2,DGX)
|
---|
| 192 | C16S S X="" Q:DG(DQ)=X K DB S X=DG(DQ),DIC=DIE
|
---|
| 193 | N DGX D CFL4^DGREGDD D SET^DGREGDD1(DA,.312,.31,2,DGX)
|
---|
| 194 | Q
|
---|
| 195 | X16 Q
|
---|
| 196 | 17 S DQ=18 ;@702
|
---|
| 197 | 18 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=18 D X18 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
| 198 | X18 S:DGDR'["702" Y="@703"
|
---|
| 199 | Q
|
---|
| 200 | 19 D:$D(DG)>9 F^DIE17 G ^DGRPXX71
|
---|