PRCARFU ;WASH-ISC@ALTOONA,PA/CMS-PREPAYMENT UTILITY ;5/28/93 12:59 PM
V ;;4.5;Accounts Receivable;**104,107,153**;Mar 20, 1995
;;Per VHA Directive 10-93-142, this routine should not be modified.
EN(BN) ;If no activity or deceased change to Refund Review
N DAT,DFN,EDAT,LDAT,PRCAPER,TR,VA,VADM,VAERR,X,Y,%DT
S DFN=$G(^RCD(340,$P(^PRCA(430,BN,0),U,9),0)) G ENQ1:DFN'[";DPT" S DFN=+DFN
I $P(^PRCA(430,BN,0),U,2)'=$O(^PRCA(430.2,"AC",33,0)) G ENQ1
D DEM^VADPT G ENQ0:VAERR I +$G(VADM(6)) D RR^PRCARFD(BN) G ENQ0
I +$G(^PRCA(430,BN,7))<1 G ENQ1
S X="T-60",%DT="" D ^%DT S EDAT=Y
S X="T-365",%DT="" D ^%DT S LDAT=Y,DAT=0
F TR=0:0 S TR=$O(^PRCA(433,"C",BN,TR)) Q:'TR S:+$G(^PRCA(433,TR,1))>DAT DAT=+$G(^PRCA(433,TR,1))
I DAT'>EDAT,+$G(^PRCA(430,BN,7))>25 D RR^PRCARFD(BN) G ENQ0
I DAT'>LDAT,+$G(^PRCA(430,BN,7))'<1 D RR^PRCARFD(BN) G ENQ0
ENQ1 Q 1
ENQ0 Q 0
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPRCARFU 879 printed Oct 16, 2024@17:42:04 Page 2
PRCARFU ;WASH-ISC@ALTOONA,PA/CMS-PREPAYMENT UTILITY ;5/28/93 12:59 PM
V ;;4.5;Accounts Receivable;**104,107,153**;Mar 20, 1995
+1 ;;Per VHA Directive 10-93-142, this routine should not be modified.
EN(BN) ;If no activity or deceased change to Refund Review
+1 NEW DAT,DFN,EDAT,LDAT,PRCAPER,TR,VA,VADM,VAERR,X,Y,%DT
+2 SET DFN=$GET(^RCD(340,$PIECE(^PRCA(430,BN,0),U,9),0))
if DFN'[";DPT"
GOTO ENQ1
SET DFN=+DFN
+3 IF $PIECE(^PRCA(430,BN,0),U,2)'=$ORDER(^PRCA(430.2,"AC",33,0))
GOTO ENQ1
+4 DO DEM^VADPT
if VAERR
GOTO ENQ0
IF +$GET(VADM(6))
DO RR^PRCARFD(BN)
GOTO ENQ0
+5 IF +$GET(^PRCA(430,BN,7))<1
GOTO ENQ1
+6 SET X="T-60"
SET %DT=""
DO ^%DT
SET EDAT=Y
+7 SET X="T-365"
SET %DT=""
DO ^%DT
SET LDAT=Y
SET DAT=0
+8 FOR TR=0:0
SET TR=$ORDER(^PRCA(433,"C",BN,TR))
if 'TR
QUIT
if +$GET(^PRCA(433,TR,1))>DAT
SET DAT=+$GET(^PRCA(433,TR,1))
+9 IF DAT'>EDAT
IF +$GET(^PRCA(430,BN,7))>25
DO RR^PRCARFD(BN)
GOTO ENQ0
+10 IF DAT'>LDAT
IF +$GET(^PRCA(430,BN,7))'<1
DO RR^PRCARFD(BN)
GOTO ENQ0
ENQ1 QUIT 1
ENQ0 QUIT 0