source: FOIAVistA/trunk/r/HINQ-DVB--DVBA--DVBE--DVBC/DVBHQM11.m@ 794

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

initial load of FOIAVistA 6/30/08 version

File size: 3.0 KB
Line 
1DVBHQM11 ;ISC-ALBANY/JLU/PKE-create mail message ;10/27/87 10:50
2 ;;4.0;HINQ;**7,20,49**;03/25/92
3 ;
4LIN Q:CT>100 S CT=CT+1,A1=A_CT_",0)",@A1=T1 Q
5DD S:Y Y=$S($E(Y,4,5):$P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC","^",+$E(Y,4,5))_" ",1:"")_$S($E(Y,6,7):+$E(Y,6,7)_",",1:"")_($E(Y,1,3)+1700)_$P("@"_$E(Y_0,9,10)_":"_$E(Y_"000",11,12),"^",Y[".") S:$L(Y)=10 Y=Y_" " Q
6 ;
7MM S M=$P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC","^",M) Q
8 ;
9P1 Q:'$D(DVBP(1))
10 S T1=$P(DVBP(1),U,4)
11 I T1'="" D
12 . ;VBA is no longer sending entitlement code, but AAC is computing a
13 . ;type of benefit code from the information sent. DVB*4*49
14 . S T1="Type Benefit: "_$S($P(DVBP(1),U,4)="01":"Compensation",$P(DVBP(1),U,4)="0L":"Pension",1:" ")
15 . D LIN
16 ;VBA will be sending all records as Type "A" records, so Record Type
17 ;will no longer display
18 Q
19 ;
20P2 Q:'$D(DVBP(2))
21 S T1=" " D LIN S T1=$P(DVBP(2),U) I T1'=" " S Z=$O(^DVB(395.2,"B",T1,"")) I Z S S=" Anatomical loss = ",ST=$P(^DVB(395.2,Z,0),U,2)_" - "_T1 D WRAP
22 S T1=$P(DVBP(2),U,3) I T1'=" " S Z=$O(^DVB(395.2,"B",T1,"")) I Z S T1=" Loss of use = "_$P(^DVB(395.2,Z,0),U,2)_" - "_T1 D LIN
23 S T1=$P(DVBP(2),U,4) I T1'=" " D OLC^DVBHQM13 I Z'="" S T1=" Other loss = "_Z_" - "_T1 D LIN
24 S T1=$P(DVBP(2),U,5) D VMV^DVBHQM13 I Z'="" S S=" Vet married Vet = ",ST=Z D WRAP
25 ;Special Monthly Comp. will no longer be sent by VBA - DVB*4*49
26 ;Special Provision will no longer be sent by VBA - DVB*4*49
27 Q
28 ;
29P3 Q ;P3 concerns future data - after DVB*4*49 there will be none
30 Q:'$D(DVBP(3))
31 I $P(DVBP(3),U,3)="RR" S T1="Future data present - contact RO !!" D LIN Q
32 I $P(DVBFUE,U,22) S T1="Amount PFOP Deduction = "_"$"_$E($P(DVBFUE,U,22),1,4)_"."_$E($P(DVBFUE,U,22),5,6) D LIN Q
33 I $P(DVBP(3),U)="A" D T4 F XX=1:1:T4 S T3=$P(DVBP(3),U,XX+2) I T3?7N1E S M=$E(T3,5,6) D MM,T5,EMP,HD S ST=" "_M_", "_$E(T3,1,4)_" "_$S(Z:$P(^DVB(395.4,Z,0),U,2),1:"")_" - "_DVBV1,S=" " D WRAP
34 D EMP Q
35 ;
36P4 Q:'$D(DVBREF)
37 I $P(DVBREF,U,3)?9N S T1="Cross Reference number = "_$P(DVBREF,U,3) D LIN
38 I $P(DVBREF,U)?9N S T1=" VBA SSN = "_$P(DVBREF,U) D VSS,LIN
39 S T1=" " D LIN
40 Q
41 ;
42P5 Q:'$D(DVBP(5)) S T1=$P(DVBP(5),U) I T1 S T1="PFOP Balance : "_" $"_+$E(T1,1,6)_"."_$E(T1,7,8) D LIN Q
43 ;
44 Q
45EMP S T1=" " D LIN Q
46 ;
47HD S T1="Diary data:" D LIN Q
48T4 S T4=$P(DVBP(3),U,2) Q
49 ;
50T5 S DVBV1=$E(T3,7,8)
51 I DVBV1?1N1A!(DVBV1["{") S DVBV2=2 D SIGN^DVBHUTIL
52 S Z=$O(^DVB(395.4,"B",DVBV1,""))
53 Q
54 ;
55WRAP S B=$L(S),GL=$P((($L(ST)+B/78)+.9),"."),SP=1,V=78-B,$P(T," ",B+1)=""
56 F LP=1:1:GL S Z=$E(ST,V*LP) D:Z=" "!(Z="") SET D:Z'=" "&(Z'="") PAR
57 K GL,LP,LP1,Z,Z1,EP,SP,ST,B,V,T,S Q
58SET S T1=$E(ST,SP,V*LP) S:SP=1 T1=S_T1 S:SP'=1 T1=T_T1 S SP=V*LP+1 D LIN Q
59PAR F LP1=1:1 S EP=(V*LP)-LP1,Z1=$E(ST,EP) Q:Z1=" "
60 S T1=$E(ST,SP,EP) S:SP=1 T1=S_T1 S:SP'=1 T1=T_T1 S SP=EP+1 D LIN Q
61 ;
62VSS I $D(DVBP(1)) S C=$P(DVBP(1),U,8) I C]"" S T1=T1_$S(C=1:" Verified SSA",C=2:" Verified VBA",C=4:" Verified by BIRLS",C=9:" SSA Verified No Number Exists",C=0:" Unverified",C=3:" Not Required, Child Under 2",1:" "_C) K C
63 Q
Note: See TracBrowser for help on using the repository browser.