DGVPTDV3 ;alb/mjk - DVBHS2 for export with PIMS v5.3; 4/21/93
;;5.3;Registration;**1015**;Aug 13, 1993;Build 21
;
DVBHS2 ;ALB/JLU;This is the display for screen 2;10/7/91
;;V4.0;HINQ;**11**;03/25/92
;
N Y
K DVBX(1)
F LP2=.02,.03,.293,.314,.351,.525,.313,.305 S X="DVBDIQ(2,"_DFN_","_LP2_")" K @X
I $D(X(1)) S DVBX(1)=X(1)
S DIC="^DPT(",DA=DFN,DIQ(0)="E",DIQ="DVBDIQ("
S DR=".02;.03;.293;.313;.314;.351;.525;.305"
D EN^DIQ1
I $D(DVBX(1)) S X(1)=DVBX(1) K DVBX(1)
;
S DVBSCRN=2 D SCRHD^DVBHUTIL
S DVBJS=28
;
W !,DVBON,"[1]",DVBOFF X DVBLIT1
W ?4,"Claim Num. :"
W ?19,DVBDIQ(2,DFN,.313,"E")
I $D(DVBCN),DVBCN W ?49,DVBCN
;
W !,DVBON,"[2]",DVBOFF X DVBLIT1
W ?4,"Date of Birth:"
W ?19,DVBDIQ(2,DFN,.03,"E")
I $D(DVBDOB),DVBDOB I DVBDOB?8N S M=$E(DVBDOB,1,2) D MM^DVBHQM11 W ?49,M_" "_$E(DVBDOB,3,4)_", "_$E(DVBDOB,5,8) K M
;
W !,DVBON,"[3]",DVBOFF X DVBLIT1
W ?4,"Sex:"
W ?19,DVBDIQ(2,DFN,.02,"E")
I $D(DVBVET),$P(DVBVET,U,1)'="C" W ?49,$S($P(DVBVET,U,3)="M":"MALE",$P(DVBVET,U,3)="F":"FEMALE",1:"")
E I $D(DVBBIR) W ?49,$S($P(DVBBIR,U,25)="M":"MALE",$P(DVBBIR,U,25)="F":"FEMALE",1:"")
;
W !,DVBON,"[4]",DVBOFF X DVBLIT1
W ?4,"Date of Death:"
W ?19,DVBDIQ(2,DFN,.351,"E")
I $D(DVBVET),$P(DVBVET,U,1)="B",+$P(DVBVET,U,12),$P(DVBVET,U,12)?8N S M2=$P(DVBVET,U,12),M=$E(M2,5,6) D MM^DVBHQM11 W ?49,M_" "_$E(M2,7,8)_", "_$E(M2,1,4) K M,M2 I 1
E I $D(DVBP(6)),(+$P(DVBP(6),U)),$P(DVBP(6),U)?8N S M=$E(DVBP(6),1,2) D MM^DVBHQM11 W ?49,M_" "_$E(DVBP(6),3,4)_", "_$E(DVBP(6),5,8) K M
;
W !,DVBON,"[5]",DVBOFF X DVBLIT1
W ?4,"Rated Incomp.:"
W ?19,DVBDIQ(2,DFN,.293,"E")
I $D(DVBCI) W ?49,$S("1"[DVBCI:"Competent, or not an issue","2"[DVBCI:"Incompetent",1:DVBCI)
;
W !,DVBON,"[6]",DVBOFF X DVBLIT1
W ?4,"POW:"
W ?19,DVBDIQ(2,DFN,.525,"E")
I '$D(DVBCAP),$D(DVBPOW) W ?49,$S(DVBPOW=0:"No Prisoner of war",DVBPOW=1:"Less than 30 days",DVBPOW=2:"30 days or more",DVBPOW=" ":"Not applicable",1:DVBPOW)
E I $D(DVBPOWD) W ?49,DVBPOWD
;
;
;
;
;
;
W !,DVBON,"[7]",DVBOFF X DVBLIT1
W ?4,"Folder Loc. :"
W ?19,DVBDIQ(2,DFN,.314,"E")
I $D(DVBFL) W ?49,DVBFL
;
W !,DVBON,"[8]",DVBOFF X DVBLIT1
W ?4,"Unemployable:"
I $D(DVBDIQ(2,DFN,.305,"E")) W ?19,DVBDIQ(2,DFN,.305,"E")
I $D(DVBEI) W ?49,$S(DVBEI=1:"Employable",DVBEI=2:"Unemployable",1:DVBEI)
K Y
Q
DGVPTDV3 ;alb/mjk - DVBHS2 for export with PIMS v5.3; 4/21/93
+1 ;;5.3;Registration;**1015**;Aug 13, 1993;Build 21
+2 ;
DVBHS2 ;ALB/JLU;This is the display for screen 2;10/7/91
+1 ;;V4.0;HINQ;**11**;03/25/92
+2 ;
+3 NEW Y
+4 KILL DVBX(1)
+5 FOR LP2=.02,.03,.293,.314,.351,.525,.313,.305
SET X="DVBDIQ(2,"_DFN_","_LP2_")"
KILL @X
+6 IF $DATA(X(1))
SET DVBX(1)=X(1)
+7 SET DIC="^DPT("
SET DA=DFN
SET DIQ(0)="E"
SET DIQ="DVBDIQ("
+8 SET DR=".02;.03;.293;.313;.314;.351;.525;.305"
+9 DO EN^DIQ1
+10 IF $DATA(DVBX(1))
SET X(1)=DVBX(1)
KILL DVBX(1)
+11 ;
+12 SET DVBSCRN=2
DO SCRHD^DVBHUTIL
+13 SET DVBJS=28
+14 ;
+15 WRITE !,DVBON,"[1]",DVBOFF
XECUTE DVBLIT1
+16 WRITE ?4,"Claim Num. :"
+17 WRITE ?19,DVBDIQ(2,DFN,.313,"E")
+18 IF $DATA(DVBCN)
IF DVBCN
WRITE ?49,DVBCN
+19 ;
+20 WRITE !,DVBON,"[2]",DVBOFF
XECUTE DVBLIT1
+21 WRITE ?4,"Date of Birth:"
+22 WRITE ?19,DVBDIQ(2,DFN,.03,"E")
+23 IF $DATA(DVBDOB)
IF DVBDOB
IF DVBDOB?8N
SET M=$EXTRACT(DVBDOB,1,2)
DO MM^DVBHQM11
WRITE ?49,M_" "_$EXTRACT(DVBDOB,3,4)_", "_$EXTRACT(DVBDOB,5,8)
KILL M
+24 ;
+25 WRITE !,DVBON,"[3]",DVBOFF
XECUTE DVBLIT1
+26 WRITE ?4,"Sex:"
+27 WRITE ?19,DVBDIQ(2,DFN,.02,"E")
+28 IF $DATA(DVBVET)
IF $PIECE(DVBVET,U,1)'="C"
WRITE ?49,$SELECT($PIECE(DVBVET,U,3)="M":"MALE",$PIECE(DVBVET,U,3)="F":"FEMALE",1:"")
+29 IF '$TEST
IF $DATA(DVBBIR)
WRITE ?49,$SELECT($PIECE(DVBBIR,U,25)="M":"MALE",$PIECE(DVBBIR,U,25)="F":"FEMALE",1:"")
+30 ;
+31 WRITE !,DVBON,"[4]",DVBOFF
XECUTE DVBLIT1
+32 WRITE ?4,"Date of Death:"
+33 WRITE ?19,DVBDIQ(2,DFN,.351,"E")
+34 IF $DATA(DVBVET)
IF $PIECE(DVBVET,U,1)="B"
IF +$PIECE(DVBVET,U,12)
IF $PIECE(DVBVET,U,12)?8N
SET M2=$PIECE(DVBVET,U,12)
SET M=$EXTRACT(M2,5,6)
DO MM^DVBHQM11
WRITE ?49,M_" "_$EXTRACT(M2,7,8)_", "_$EXTRACT(M2,1,4)
KILL M,M2
IF 1
+35 IF '$TEST
IF $DATA(DVBP(6))
IF (+$PIECE(DVBP(6),U))
IF $PIECE(DVBP(6),U)?8N
SET M=$EXTRACT(DVBP(6),1,2)
DO MM^DVBHQM11
WRITE ?49,M_" "_$EXTRACT(DVBP(6),3,4)_", "_$EXTRACT(DVBP(6),5,8)
KILL M
+36 ;
+37 WRITE !,DVBON,"[5]",DVBOFF
XECUTE DVBLIT1
+38 WRITE ?4,"Rated Incomp.:"
+39 WRITE ?19,DVBDIQ(2,DFN,.293,"E")
+40 IF $DATA(DVBCI)
WRITE ?49,$SELECT("1"[DVBCI:"Competent, or not an issue","2"[DVBCI:"Incompetent",1:DVBCI)
+41 ;
+42 WRITE !,DVBON,"[6]",DVBOFF
XECUTE DVBLIT1
+43 WRITE ?4,"POW:"
+44 WRITE ?19,DVBDIQ(2,DFN,.525,"E")
+45 IF '$DATA(DVBCAP)
IF $DATA(DVBPOW)
WRITE ?49,$SELECT(DVBPOW=0:"No Prisoner of war",DVBPOW=1:"Less than 30 days",DVBPOW=2:"30 days or more",DVBPOW=" ":"Not applicable",1:DVBPOW)
+46 IF '$TEST
IF $DATA(DVBPOWD)
WRITE ?49,DVBPOWD
+47 ;
+48 ;
+49 ;
+50 ;
+51 ;
+52 ;
+53 WRITE !,DVBON,"[7]",DVBOFF
XECUTE DVBLIT1
+54 WRITE ?4,"Folder Loc. :"
+55 WRITE ?19,DVBDIQ(2,DFN,.314,"E")
+56 IF $DATA(DVBFL)
WRITE ?49,DVBFL
+57 ;
+58 WRITE !,DVBON,"[8]",DVBOFF
XECUTE DVBLIT1
+59 WRITE ?4,"Unemployable:"
+60 IF $DATA(DVBDIQ(2,DFN,.305,"E"))
WRITE ?19,DVBDIQ(2,DFN,.305,"E")
+61 IF $DATA(DVBEI)
WRITE ?49,$SELECT(DVBEI=1:"Employable",DVBEI=2:"Unemployable",1:DVBEI)
+62 KILL Y
+63 QUIT