source: FOIAVistA/trunk/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGRPXX7.m@ 1607

Last change on this file since 1607 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 7.7 KB
Line 
1DGRPXX7 ; GENERATED FROM 'DG LOAD EDIT SCREEN 7' INPUT TEMPLATE(#420), FILE 2;06/28/99
2 D DE G BEGIN
3DE 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 ;
11W W !?DL+DL-2,DLB_": "
12 Q
13O 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
16TR R X:DTIME E S (DTOUT,X)=U W $C(7)
17 Q
18A K DQ(DQ) S DQ=DQ+1
19B G @DQ
20RE G PR:$D(DE(DQ)) D W,TR
21N I X="" G A:DV'["R",X:'DV,X:D'>0,A
22RD 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
25T 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
27P 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
30V D @("X"_DQ) K YS
31Z K DIC("S"),DLAYGO I $D(X),X'=U S DG(DW)=X S:DV["d" ^DISV(DUZ,"DIE",DLB)=X G A
32X W:'$D(ZTQUEUED) $C(7),"??" I $D(DB(DQ)) G Z^DIE17
33 S X="?BAD"
34QS S DZ=X D D,QQ^DIEQ G B
35D S D=DIFLD,DQ(DQ)=DLB_U_DV_U_DU_U_DW_U_$P($T(@("X"_DQ))," ",2,99) Q
36Y I '$D(DE(DQ)) D O G RD:"@"'[X,A:DV'["R"&(X="@"),X:X="@" S X=Y G N
37PR S DG=DV,Y=DE(DQ),X=DU I $D(DQ(DQ,2)) X DQ(DQ,2) G RP
38R 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=%
41RP D O I X="" S X=DE(DQ) G A:'DV,A:DC<2,N^DIE17
42I I DV'["I",DV'["#" G RD
43 D E^DIE0 G RD:$D(X),PR
44 Q
45SET 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
49BEGIN S DNM="DGRPXX7",DQ=1
50 S:$D(DTIME)[0 DTIME=300 S D0=DA,DIEZ=420,U="^"
511 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
52X1 S:DGDR'["701" Y="@702"
53 Q
542 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
58C2 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
61C2S 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
65X2 Q
663 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
67X3 D SC7^DGRPV
68 Q
694 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
73C4 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
82C4S 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
92X4 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 ;
955 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
99C5 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
108C5S 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
118X5 S DFN=DA D EV^DGLOCK I $D(X),X="Y" D VET^DGLOCK
119 Q
120 ;
1216 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
122X6 S:X'="Y" Y=.293
123 Q
1247 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
127C7 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
136C7S 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
146X7 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 ;
1498 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
152X8 Q
1539 S DW=".3;5",DV="S",DU="",DLB="UNEMPLOYABLE",DIFLD=.305
154 S DU="Y:YES;N:NO;"
155 G RE
156X9 Q
15710 S DW=".3;12",DV="DX",DU="",DLB="SC AWARD DATE",DIFLD=.3012
158 G RE
159X10 S %DT="E" D ^%DT S X=Y K:Y<1 X N DFN S DFN=DA D SC^DGLOCK1
160 Q
161 ;
16211 S DW=".29;12",DV="S",DU="",DLB="RATED INCOMPETENT?",DIFLD=.293
163 S DU="0:NO;1:YES;"
164 G RE
165X11 Q
16612 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
167X12 S:'X Y=.313
168 Q
16913 S DW=".29;2",DV="D",DU="",DLB="DATE RULED INCOMPETENT (CIVIL)",DIFLD=.292
170 G RE
171X13 S %DT="E" D ^%DT S X=Y K:Y<1 X
172 Q
173 ;
17414 S DW=".29;1",DV="D",DU="",DLB="DATE RULED INCOMPETENT (VA)",DIFLD=.291
175 G RE
176X14 S %DT="E" D ^%DT S X=Y K:Y<1 X
177 Q
178 ;
17915 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
182X15 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 ;
18616 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
190C16 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)
192C16S 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
195X16 Q
19617 S DQ=18 ;@702
19718 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
198X18 S:DGDR'["702" Y="@703"
199 Q
20019 D:$D(DG)>9 F^DIE17 G ^DGRPXX71
Note: See TracBrowser for help on using the repository browser.