1 | DVBHCE29 ; ;12/27/07
|
---|
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(^(.3)) S %Z=^(.3) S %=$P(%Z,U,14) S:%]"" DE(1)=%
|
---|
5 | I $D(^(.362)) S %Z=^(.362) S %=$P(%Z,U,8) S:%]"" DE(27)=% S %=$P(%Z,U,15) S:%]"" DE(15)=% S %=$P(%Z,U,18) S:%]"" DE(21)=%
|
---|
6 | K %Z Q
|
---|
7 | ;
|
---|
8 | W W !?DL+DL-2,DLB_": "
|
---|
9 | Q
|
---|
10 | O D W W Y W:$X>45 !?9
|
---|
11 | I $L(Y)>19,'DV,DV'["I",(DV["F"!(DV["K")) G RW^DIR2
|
---|
12 | W:Y]"" "// " I 'DV,DV["I",$D(DE(DQ))#2 S X="" W " (No Editing)" Q
|
---|
13 | TR R X:DTIME E S (DTOUT,X)=U W $C(7)
|
---|
14 | Q
|
---|
15 | A K DQ(DQ) S DQ=DQ+1
|
---|
16 | B G @DQ
|
---|
17 | RE G PR:$D(DE(DQ)) D W,TR
|
---|
18 | N I X="" G NKEY:$D(^DD("KEY","F",DP,DIFLD)),A:DV'["R",X:'DV,X:D'>0,A
|
---|
19 | RD G QS:X?."?" I X["^" D D G ^DIE17
|
---|
20 | I X="@" D D G Z^DIE2
|
---|
21 | I X=" ",DV["d",DV'["P",$D(^DISV(DUZ,"DIE",DLB)) S X=^(DLB) I DV'["D",DV'["S" W " "_X
|
---|
22 | 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
|
---|
23 | K DDER G X
|
---|
24 | 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) G:DV["*" AST^DIED D NOSCR^DIED S X=+Y,DIC=DIE G X:X<0
|
---|
25 | G V:DV'["N" D D I $L($P(X,"."))>24 K X G Z
|
---|
26 | I $P(DQ(DQ),U,5)'["$",X?.1"-".N.1".".N,$P(DQ(DQ),U,5,99)["+X'=X" S X=+X
|
---|
27 | V D @("X"_DQ) K YS
|
---|
28 | Z K DIC("S"),DLAYGO I $D(X),X'=U D:$G(DE(DW,"INDEX")) SAVEVALS G:'$$KEYCHK UNIQFERR^DIE17 S DG(DW)=X S:DV["d" ^DISV(DUZ,"DIE",DLB)=X G A
|
---|
29 | X W:'$D(ZTQUEUED) $C(7),"??" I $D(DB(DQ)) G Z^DIE17
|
---|
30 | S X="?BAD"
|
---|
31 | QS S DZ=X D D,QQ^DIEQ G B
|
---|
32 | D S D=DIFLD,DQ(DQ)=DLB_U_DV_U_DU_U_DW_U_$P($T(@("X"_DQ))," ",2,99) Q
|
---|
33 | Y I '$D(DE(DQ)) D O G RD:"@"'[X,A:DV'["R"&(X="@"),X:X="@" S X=Y G N
|
---|
34 | PR S DG=DV,Y=DE(DQ),X=DU I $D(DQ(DQ,2)) X DQ(DQ,2) G RP
|
---|
35 | 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
|
---|
36 | 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
|
---|
37 | X:DG["D" ^DD("DD") I DG["S" S %=$P($P(";"_X,";"_Y_":",2),";") S:%]"" Y=%
|
---|
38 | RP D O I X="" S X=DE(DQ) G A:'DV,A:DC<2,N^DIE17
|
---|
39 | I I DV'["I",DV'["#" G RD
|
---|
40 | D E^DIE0 G RD:$D(X),PR
|
---|
41 | Q
|
---|
42 | SET N DIR S DIR(0)="SV"_$E("o",$D(DB(DQ)))_U_DU,DIR("V")=1
|
---|
43 | I $D(DB(DQ)),'$D(DIQUIET) N DIQUIET S DIQUIET=1
|
---|
44 | D ^DIR I 'DDER S %=Y(0),X=Y
|
---|
45 | Q
|
---|
46 | SAVEVALS S @DIEZTMP@("V",DP,DIIENS,DIFLD,"O")=$G(DE(DQ)) S:$D(^("F"))[0 ^("F")=$G(DE(DQ))
|
---|
47 | I $D(DE(DW,"4/")) S @DIEZTMP@("V",DP,DIIENS,DIFLD,"4/")=""
|
---|
48 | E K @DIEZTMP@("V",DP,DIIENS,DIFLD,"4/")
|
---|
49 | Q
|
---|
50 | NKEY W:'$D(ZTQUEUED) "?? Required key field" S X="?BAD" G QS
|
---|
51 | KEYCHK() Q:$G(DE(DW,"KEY"))="" 1 Q @DE(DW,"KEY")
|
---|
52 | BEGIN S DNM="DVBHCE29",DQ=1
|
---|
53 | 1 D:$D(DG)>9 F^DIE17,DE S DQ=1,DW=".3;14",DV="DX",DU="",DLB="EFF. DATE COMBINED SC% EVAL.",DIFLD=.3014
|
---|
54 | S X=$G(DVBEFF)
|
---|
55 | S Y=X
|
---|
56 | S X=Y,DB(DQ)=1 G:X="" N^DIE17:DV,A I $D(DE(DQ)),DV["I"!(DV["#") D E^DIE0 G A:'$D(X)
|
---|
57 | G RD
|
---|
58 | X1 S %DT="P" D ^%DT S X=Y K:Y<1!(Y>DT) X
|
---|
59 | Q
|
---|
60 | ;
|
---|
61 | 2 S DQ=3 ;@46
|
---|
62 | 3 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=3 D X3 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
63 | X3 S JP=$O(DVBDX(JP)) I 'JP S Y="@50"
|
---|
64 | Q
|
---|
65 | 4 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=4 D X4 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
66 | X4 S JPP=+$P(DVBDX(JP),U,2) I JPP'>0 S Y="@46"
|
---|
67 | Q
|
---|
68 | 5 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=5 D X5 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
69 | X5 I '$D(^DIC(31,JPP)) D CHKDIS^DVBHS3 S Y="@46"
|
---|
70 | Q
|
---|
71 | 6 S D=0 K DE(1) ;.3721
|
---|
72 | S DIFLD=.3721,DGO="^DVBHCE30",DC="6^2.04P^.372^",DV="2.04MP31'X",DW="0;1",DOW="RATED DISABILITIES (VA)",DLB="Select "_DOW S:D DC=DC_D
|
---|
73 | S DU="DIC(31,"
|
---|
74 | G RE:D I $D(DSC(2.04))#2,$P(DSC(2.04),"I $D(^UTILITY(",1)="" X DSC(2.04) S D=$O(^(0)) S:D="" D=-1 G M6
|
---|
75 | S D=$S($D(^DPT(DA,.372,0)):$P(^(0),U,3,4),$O(^(0))'="":$O(^(0)),1:-1)
|
---|
76 | M6 I D>0 S DC=DC_D I $D(^DPT(DA,.372,+D,0)) S DE(6)=$P(^(0),U,1)
|
---|
77 | S X="""`"_$P(DVBDX(JP),U,2)_""""
|
---|
78 | S Y=X
|
---|
79 | S X=Y,DB(DQ)=1 G:X="" N^DIE17:DV,A I $D(DE(DQ)),DV["I"!(DV["#") D E^DIE0 G A:'$D(X)
|
---|
80 | G RD
|
---|
81 | R6 D DE
|
---|
82 | G A
|
---|
83 | ;
|
---|
84 | 7 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=7 D X7 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
85 | X7 W "." S DVBJ2=1
|
---|
86 | Q
|
---|
87 | 8 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=8 D X8 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
88 | X8 S Y="@46"
|
---|
89 | Q
|
---|
90 | 9 S DQ=10 ;@61
|
---|
91 | 10 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=10 D X10 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
92 | X10 S Y="@4"
|
---|
93 | Q
|
---|
94 | 11 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=11 D X11 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
95 | X11 I Z2'[1 S Y="@62"
|
---|
96 | Q
|
---|
97 | 12 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=12 D X12 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
98 | X12 I '$D(DVBSSA) S Y="@62",JP=JP+1
|
---|
99 | Q
|
---|
100 | 13 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=13 D X13 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
101 | X13 I DVBSSA S DVBYN="Y",DVBXYN=DVBSSA
|
---|
102 | Q
|
---|
103 | 14 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=14 D X14 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
104 | X14 I 'DVBSSA S DVBYN="N",DVBXYN=""
|
---|
105 | Q
|
---|
106 | 15 S DW=".362;15",DV="SX",DU="",DLB="RECEIVING SOCIAL SECURITY?",DIFLD=.36225
|
---|
107 | S DE(DW)="C15^DVBHCE29"
|
---|
108 | S DU="Y:YES;N:NO;U:UNKNOWN;"
|
---|
109 | S X=DVBYN
|
---|
110 | S Y=X
|
---|
111 | S X=Y,DB(DQ)=1 G:X="" N^DIE17:DV,A I $D(DE(DQ)),DV["I"!(DV["#") D E^DIE0 G A:'$D(X)
|
---|
112 | G RD
|
---|
113 | C15 G C15S:$D(DE(15))[0 K DB
|
---|
114 | S X=DE(15),DIC=DIE
|
---|
115 | X ^DD(2,.36225,1,1,2.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.362)):^(.362),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(2,.36225,1,1,2.4)
|
---|
116 | C15S S X="" G:DG(DQ)=X C15F1 K DB
|
---|
117 | S X=DG(DQ),DIC=DIE
|
---|
118 | X ^DD(2,.36225,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^DPT(D0,.362)):^(.362),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(2,.36225,1,1,1.4)
|
---|
119 | C15F1 Q
|
---|
120 | X15 S DFN=DA D MV^DGLOCK Q
|
---|
121 | Q
|
---|
122 | ;
|
---|
123 | 16 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=16 D X16 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
124 | X16 W "." S JP=JP+1,DVBJ2=1 K DVBYN,DVBXYN
|
---|
125 | Q
|
---|
126 | 17 S DQ=18 ;@62
|
---|
127 | 18 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=18 D X18 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
128 | X18 I Z2'[2 S Y="@63"
|
---|
129 | Q
|
---|
130 | 19 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=19 D X19 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
131 | X19 I '$D(DVBRETT) S Y="@63",JP=JP+1
|
---|
132 | Q
|
---|
133 | 20 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=20 D X20 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
134 | X20 I DVBRETT=""!("BMCROX"'[DVBRETT) S Y="@63",JP=JP+1
|
---|
135 | Q
|
---|
136 | 21 D:$D(DG)>9 F^DIE17,DE S DQ=21,DW=".362;18",DV="SX",DU="",DLB="TYPE OF OTHER RETIREMENT",DIFLD=.36285
|
---|
137 | S DU="B:BLACK LUNG;M:MILITARY;C:CIVIL;R:RAILROAD;O:OTHER;X:COMBINATIONS OF TYPES;"
|
---|
138 | S X=DVBRETT
|
---|
139 | S Y=X
|
---|
140 | S X=Y,DB(DQ)=1 G:X="" N^DIE17:DV,A I $D(DE(DQ)),DV["I"!(DV["#") D E^DIE0 G A:'$D(X)
|
---|
141 | G RD
|
---|
142 | X21 S DFN=DA D MV^DGLOCK Q
|
---|
143 | Q
|
---|
144 | ;
|
---|
145 | 22 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=22 D X22 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
146 | X22 W "." S JP=JP+1,DVBJ2=1
|
---|
147 | Q
|
---|
148 | 23 S DQ=24 ;@63
|
---|
149 | 24 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=24 D X24 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
150 | X24 I Z2'[3 S Y="@64"
|
---|
151 | Q
|
---|
152 | 25 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=25 D X25 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
153 | X25 I '$D(DVBRETO) S Y="@64",JP=JP+1
|
---|
154 | Q
|
---|
155 | 26 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=26 D X26 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
156 | X26 S X=DVBRETO I X=""!(X=0) S X="@"
|
---|
157 | Q
|
---|
158 | 27 S DW=".362;8",DV="NJ8,2X",DU="",DLB="AMOUNT OF OTHER RETIREMENT",DIFLD=.3628
|
---|
159 | S X=X
|
---|
160 | S Y=X
|
---|
161 | S X=Y,DB(DQ)=1 G:X="" N^DIE17:DV,A I $D(DE(DQ)),DV["I"!(DV["#") D E^DIE0 G A:'$D(X)
|
---|
162 | G RD
|
---|
163 | X27 D DOL^DGLOCK2 K:+X'=X&(X'?.N1"."2N)!(X>99999)!(X<1) X I $D(X) S DFN=DA D MV^DGLOCK
|
---|
164 | Q
|
---|
165 | ;
|
---|
166 | 28 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=28 D X28 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
167 | X28 W "." S JP=JP+1,DVBJ2=1
|
---|
168 | Q
|
---|
169 | 29 S DQ=30 ;@64
|
---|
170 | 30 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=30 D X30 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
171 | X30 I Z2'[4 S Y="@1006"
|
---|
172 | Q
|
---|
173 | 31 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=31 D X31 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
174 | X31 I '$D(DVBOINC) S Y="@1006",JP=JP+1
|
---|
175 | Q
|
---|
176 | 32 D:$D(DG)>9 F^DIE17,DE S Y=U,DQ=32 D X32 D:$D(DIEFIRE)#2 FIREREC^DIE17 G A:$D(Y)[0,A:Y=U S X=Y,DIC(0)="F",DW=DQ G OUT^DIE17
|
---|
177 | X32 S X=DVBOINC I X=""!(X=0) S X="@"
|
---|
178 | Q
|
---|
179 | 33 D:$D(DG)>9 F^DIE17 G ^DVBHCE31
|
---|