DGRP11 ;ALB/MRL,RTK,PHH - REGISTRATION SCREEN 11/VERIFICATION INFORMATION ; 3/23/06 8:10am
;;5.3;Registration;**327,631,709,1015**;Aug 13, 1993;Build 21
S DGRPS=11 D H^DGRPU F I=.3,.32,.36,.361,"TYPE","VET" S DGRP(I)=$S($D(^DPT(DFN,I)):^(I),1:"")
S (DGRPW,Z)=1 D WW^DGRPV W " Eligibility Status: " S DGRPX=DGRP(.361),X=$P(DGRPX,"^",1),Z=$S(X']"":"NOT VERIFIED",X="V":"VERIFIED",X="R":"PENDING RE-VERIFICATION",1:"PENDING VERIFICATION"),Z1=28 D WW1^DGRPV S DGRPVR=$S(X]"":1,1:0)
W "Status Date: " S Y=$P(DGRPX,"^",2) X:Y]"" ^DD("DD") W $S(Y]"":Y,DGRPVR:DGRPU,1:DGRPNA),!?5,"Status Entered By: ",$S($D(^VA(200,+$P(DGRPX,"^",6),0)):$P(^(0),"^",1)_" (#"_+$P(DGRPX,"^",6)_")",DGRPVR:DGRPU,1:DGRPNA)
W !?6,"Interim Response: " S Y=$P(DGRPX,"^",4) X:Y]"" ^DD("DD") W $S(Y]"":Y,1:DGRPU_" (NOT REQUIRED)"),!?9,"Verif. Method: ",$S($P(DGRPX,"^",5)]"":$P(DGRPX,"^",5),DGRPVR:DGRPU,1:DGRPNA)
;Added display of ELIGIBILITY VERIF. SOURCE for Ineligible Project:
W !?9,"Verif. Source: ",$S($P(DGRPX,"^",3)="H":"HEC",$P(DGRPX,"^",3)="V":"VISTA",1:"NOT AVAILABLE")
S Z=2 D WW^DGRPV W " Money Verified: " S Y=$P(DGRP(.3),"^",6) X:Y]"" ^DD("DD") W $S(Y]"":Y,1:"NOT VERIFIED") S Z=3 D WW^DGRPV W " Service Verified: " S Y=$P(DGRP(.32),"^",2) X:Y]"" ^DD("DD") W $S(Y]"":Y,1:"NOT VERIFIED")
S Z=4 D WW^DGRPV W " Rated Disabilities: " I $P(DGRP("VET"),"^",1)'="Y",$S('$D(^DG(391,+DGRP("TYPE"),0)):1,$P(^(0),"^",2):0,1:1) W DGRPNA," - NOT A VETERAN" G Q
N DGEC,DGEFF
S DGEC=$P($G(DGRP(.36)),U)
I $G(DGEC) I $D(^DIC(8,DGEC)) S DGEC=$P(^DIC(8,DGEC,0),U)
W " SC%: ",$S($G(DGEC)="NSC":"",$P($G(DGRP(.3)),U,2)="":"",1:$P($G(DGRP(.3)),U,2))
S DGEFF=$P($G(DGRP(.3)),U,14)
I $G(DGEFF)]"" S Y=DGEFF X ^DD("DD") S DGEFF=Y
W " EFF. DATE OF COMBINED SC%: "_$G(DGEFF),!
N DGQUIT
W ?55,"Orig",?70,"Curr"
W !?3,"Rated Disability",?46,"Extr",?55,"Eff Dt",?70,"Eff Dt"
S I3=0
I '$$RDIS^DGRPDB(DFN,.DGARR) W !,"NONE STATED" G Q
F DGC=0:0 S DGC=$O(DGARR(DGC)) Q:'DGC D
. S I3=I3+1
. N DGCURR,DGORIG,DG0,DG1,DG2,DG4,DG5
. I $G(DGARR(DGC))']"" Q
. S DGZERO=+DGARR(DGC)
. I '$D(^DIC(31,DGZERO,0)) Q
. S DG0=$P(^DIC(31,DGZERO,0),U,3)
. S DG1=$P(^DIC(31,DGZERO,0),U)
. S DG2="("_$S($P(DGARR(DGC),U,3)=1:$P(DGARR(DGC),U,2)_"% SC",$P(DGARR(DGC),U,3)]"":$P(DGARR(DGC),U,2)_"% NSC",1:"unspec")_")"
. S DG4=$P(DGARR(DGC),U,4),DG5=$P(DGARR(DGC),U,5),DG6=$P(DGARR(DGC),U,6)
. I DG5]"" S Y=DG5 X ^DD("DD") S DGORIG=Y
. I DG6]"" S Y=DG6 X ^DD("DD") S DGCURR=Y
. I $Y>(IOSL-3) D PAUSE^DGRPDB I $G(DGQUIT)=0 W @IOF
. I $G(DGQUIT)=1 Q
. W !,$G(DG0)_"-",DG1,DG2,?47,$G(DG4),?50," - ",?53,$G(DGORIG),?64," - ",?68,$G(DGCURR)
W:'I3 !,"NONE STATED"
Q G ^DGRPP
DGRP11 ;ALB/MRL,RTK,PHH - REGISTRATION SCREEN 11/VERIFICATION INFORMATION ; 3/23/06 8:10am
+1 ;;5.3;Registration;**327,631,709,1015**;Aug 13, 1993;Build 21
+2 SET DGRPS=11
DO H^DGRPU
FOR I=.3,.32,.36,.361,"TYPE","VET"
SET DGRP(I)=$SELECT($DATA(^DPT(DFN,I)):^(I),1:"")
+3 SET (DGRPW,Z)=1
DO WW^DGRPV
WRITE " Eligibility Status: "
SET DGRPX=DGRP(.361)
SET X=$PIECE(DGRPX,"^",1)
SET Z=$SELECT(X']"":"NOT VERIFIED",X="V":"VERIFIED",X="R":"PENDING RE-VERIFICATION",1:"PENDING VERIFICATION")
SET Z1=28
DO WW1^DGRPV
SET DGRPVR=$SELECT(X]"":1,1:0)
+4 WRITE "Status Date: "
SET Y=$PIECE(DGRPX,"^",2)
IF Y]""
XECUTE ^DD("DD")
WRITE $SELECT(Y]"":Y,DGRPVR:DGRPU,1:DGRPNA),!?5,"Status Entered By: ",$SELECT($DATA(^VA(200,+$PIECE(DGRPX,"^",6),0)):$PIECE(^(0),"^",1)_" (#"_+$PIECE(DGRPX,"^",6)_")",DGRPVR:DGRPU,1:DGRPNA)
+5 WRITE !?6,"Interim Response: "
SET Y=$PIECE(DGRPX,"^",4)
IF Y]""
XECUTE ^DD("DD")
WRITE $SELECT(Y]"":Y,1:DGRPU_" (NOT REQUIRED)"),!?9,"Verif. Method: ",$SELECT($PIECE(DGRPX,"^",5)]"":$PIECE(DGRPX,"^",5),DGRPVR:DGRPU,1:DGRPNA)
+6 ;Added display of ELIGIBILITY VERIF. SOURCE for Ineligible Project:
+7 WRITE !?9,"Verif. Source: ",$SELECT($PIECE(DGRPX,"^",3)="H":"HEC",$PIECE(DGRPX,"^",3)="V":"VISTA",1:"NOT AVAILABLE")
+8 SET Z=2
DO WW^DGRPV
WRITE " Money Verified: "
SET Y=$PIECE(DGRP(.3),"^",6)
IF Y]""
XECUTE ^DD("DD")
WRITE $SELECT(Y]"":Y,1:"NOT VERIFIED")
SET Z=3
DO WW^DGRPV
WRITE " Service Verified: "
SET Y=$PIECE(DGRP(.32),"^",2)
IF Y]""
XECUTE ^DD("DD")
WRITE $SELECT(Y]"":Y,1:"NOT VERIFIED")
+9 SET Z=4
DO WW^DGRPV
WRITE " Rated Disabilities: "
IF $PIECE(DGRP("VET"),"^",1)'="Y"
IF $SELECT('$DATA(^DG(391,+DGRP("TYPE"),0)):1,$PIECE(^(0),"^",2):0,1:1)
WRITE DGRPNA," - NOT A VETERAN"
GOTO Q
+10 NEW DGEC,DGEFF
+11 SET DGEC=$PIECE($GET(DGRP(.36)),U)
+12 IF $GET(DGEC)
IF $DATA(^DIC(8,DGEC))
SET DGEC=$PIECE(^DIC(8,DGEC,0),U)
+13 WRITE " SC%: ",$SELECT($GET(DGEC)="NSC":"",$PIECE($GET(DGRP(.3)),U,2)="":"",1:$PIECE($GET(DGRP(.3)),U,2))
+14 SET DGEFF=$PIECE($GET(DGRP(.3)),U,14)
+15 IF $GET(DGEFF)]""
SET Y=DGEFF
XECUTE ^DD("DD")
SET DGEFF=Y
+16 WRITE " EFF. DATE OF COMBINED SC%: "_$GET(DGEFF),!
+17 NEW DGQUIT
+18 WRITE ?55,"Orig",?70,"Curr"
+19 WRITE !?3,"Rated Disability",?46,"Extr",?55,"Eff Dt",?70,"Eff Dt"
+20 SET I3=0
+21 IF '$$RDIS^DGRPDB(DFN,.DGARR)
WRITE !,"NONE STATED"
GOTO Q
+22 FOR DGC=0:0
SET DGC=$ORDER(DGARR(DGC))
IF 'DGC
QUIT
Begin DoDot:1
+23 SET I3=I3+1
+24 NEW DGCURR,DGORIG,DG0,DG1,DG2,DG4,DG5
+25 IF $GET(DGARR(DGC))']""
QUIT
+26 SET DGZERO=+DGARR(DGC)
+27 IF '$DATA(^DIC(31,DGZERO,0))
QUIT
+28 SET DG0=$PIECE(^DIC(31,DGZERO,0),U,3)
+29 SET DG1=$PIECE(^DIC(31,DGZERO,0),U)
+30 SET DG2="("_$SELECT($PIECE(DGARR(DGC),U,3)=1:$PIECE(DGARR(DGC),U,2)_"% SC",$PIECE(DGARR(DGC),U,3)]"":$PIECE(DGARR(DGC),U,2)_"% NSC",1:"unspec")_")"
+31 SET DG4=$PIECE(DGARR(DGC),U,4)
SET DG5=$PIECE(DGARR(DGC),U,5)
SET DG6=$PIECE(DGARR(DGC),U,6)
+32 IF DG5]""
SET Y=DG5
XECUTE ^DD("DD")
SET DGORIG=Y
+33 IF DG6]""
SET Y=DG6
XECUTE ^DD("DD")
SET DGCURR=Y
+34 IF $Y>(IOSL-3)
DO PAUSE^DGRPDB
IF $GET(DGQUIT)=0
WRITE @IOF
+35 IF $GET(DGQUIT)=1
QUIT
+36 WRITE !,$GET(DG0)_"-",DG1,DG2,?47,$GET(DG4),?50," - ",?53,$GET(DGORIG),?64," - ",?68,$GET(DGCURR)
End DoDot:1
+37 IF 'I3
WRITE !,"NONE STATED"
Q GOTO ^DGRPP