RCRCVL ;ALB/CMS - RC VIEW BILL LIST ; 27-AUG-1997
V ;;4.5;Accounts Receivable;**63,159**;Mar 20, 1995
;;Per VHA Directive 10-93-142, this routine should not be modified.
;
EN ; -- main entry point for RCRC VIEW BILL LIST
D EN^VALM("RCRC VIEW BILL LIST")
Q
;
HDR ; -- header code
S VALMHDR(1)=""
S VALMHDR(2)="Third Party Possible Referrals"
S VALMSG=$S(+$G(VALMCNT)=0:"NO RECORDS FOUND",1:"|r Ref RC|* Cat C/Hold|+ Multi Ins|x Ret by RC|")
Q
;
INIT ; -- init variables and list array
K ^TMP("RCRCVL",$J),^TMP("RCRCVLX",$J),^TMP("RCRCVLPT",$J)
K ^TMP("IBJTLA",$J),^TMP("IBJTLAX",$J)
S VALMCNT=0 D BLDL^RCRCVL1
;
INITQ Q
;
IB ;Create IB global
N RCL,RCLNM,RCT,RCY,VALMY,RCSELN,IBIFN,VALMCNT S (RCT,RCY)=0
S RCLNM="IBJT ACTIVE LIST"
D EN^VALM2($G(XQORNOD(0)))
I $D(VALMY) S RCSELN=0 F S RCSELN=$O(VALMY(RCSELN)) Q:'RCSELN D
. S DFN=+$P($G(^TMP("RCRCVLPT",$J,RCSELN)),U,1)
. I +DFN S RCT=RCT+1 I '$D(RCL("B",DFN)) S RCL(RCT)=DFN,RCL("B",DFN)=""
S RCY=0 F S RCY=$O(RCL(RCY)) Q:'RCY D
.S DFN=RCL(RCY)
.W !,"Getting bill information " D EN^IBJTLA
S VALMBCK="R"
Q
HELP ; -- help code
S X="?" D DISP^XQORM1 W !!
Q
;
EXIT ; -- exit code
K ^TMP("RCRCVL",$J),^TMP("RCRCVLX",$J),^TMP("RCRCVLPT",$J)
K ^TMP("IBJTLA",$J),^TMP("IBJTLAX",$J),^TMP("VALM DATA",$J)
K ^TMP("RCDOMAIN",$J)
K DFN,PRCABN,RCOUT,VALMCNT,VALMBCK
D CLEAR^VALM1,CLEAN^VALM10
Q
;
OPT ; Entry Point for Third Party Review/Referral
D EN^RCRCVLB
I $G(RCOUT) G OPTQ
D EN^RCRCVL
OPTQ K DFN,RCOUT,VALMBCK
Q
;RCRCVL
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HRCRCVL 1561 printed Oct 16, 2024@17:48:45 Page 2
RCRCVL ;ALB/CMS - RC VIEW BILL LIST ; 27-AUG-1997
V ;;4.5;Accounts Receivable;**63,159**;Mar 20, 1995
+1 ;;Per VHA Directive 10-93-142, this routine should not be modified.
+2 ;
EN ; -- main entry point for RCRC VIEW BILL LIST
+1 DO EN^VALM("RCRC VIEW BILL LIST")
+2 QUIT
+3 ;
HDR ; -- header code
+1 SET VALMHDR(1)=""
+2 SET VALMHDR(2)="Third Party Possible Referrals"
+3 SET VALMSG=$SELECT(+$GET(VALMCNT)=0:"NO RECORDS FOUND",1:"|r Ref RC|* Cat C/Hold|+ Multi Ins|x Ret by RC|")
+4 QUIT
+5 ;
INIT ; -- init variables and list array
+1 KILL ^TMP("RCRCVL",$JOB),^TMP("RCRCVLX",$JOB),^TMP("RCRCVLPT",$JOB)
+2 KILL ^TMP("IBJTLA",$JOB),^TMP("IBJTLAX",$JOB)
+3 SET VALMCNT=0
DO BLDL^RCRCVL1
+4 ;
INITQ QUIT
+1 ;
IB ;Create IB global
+1 NEW RCL,RCLNM,RCT,RCY,VALMY,RCSELN,IBIFN,VALMCNT
SET (RCT,RCY)=0
+2 SET RCLNM="IBJT ACTIVE LIST"
+3 DO EN^VALM2($GET(XQORNOD(0)))
+4 IF $DATA(VALMY)
SET RCSELN=0
FOR
SET RCSELN=$ORDER(VALMY(RCSELN))
if 'RCSELN
QUIT
Begin DoDot:1
+5 SET DFN=+$PIECE($GET(^TMP("RCRCVLPT",$JOB,RCSELN)),U,1)
+6 IF +DFN
SET RCT=RCT+1
IF '$DATA(RCL("B",DFN))
SET RCL(RCT)=DFN
SET RCL("B",DFN)=""
End DoDot:1
+7 SET RCY=0
FOR
SET RCY=$ORDER(RCL(RCY))
if 'RCY
QUIT
Begin DoDot:1
+8 SET DFN=RCL(RCY)
+9 WRITE !,"Getting bill information "
DO EN^IBJTLA
End DoDot:1
+10 SET VALMBCK="R"
+11 QUIT
HELP ; -- help code
+1 SET X="?"
DO DISP^XQORM1
WRITE !!
+2 QUIT
+3 ;
EXIT ; -- exit code
+1 KILL ^TMP("RCRCVL",$JOB),^TMP("RCRCVLX",$JOB),^TMP("RCRCVLPT",$JOB)
+2 KILL ^TMP("IBJTLA",$JOB),^TMP("IBJTLAX",$JOB),^TMP("VALM DATA",$JOB)
+3 KILL ^TMP("RCDOMAIN",$JOB)
+4 KILL DFN,PRCABN,RCOUT,VALMCNT,VALMBCK
+5 DO CLEAR^VALM1
DO CLEAN^VALM10
+6 QUIT
+7 ;
OPT ; Entry Point for Third Party Review/Referral
+1 DO EN^RCRCVLB
+2 IF $GET(RCOUT)
GOTO OPTQ
+3 DO EN^RCRCVL
OPTQ KILL DFN,RCOUT,VALMBCK
+1 QUIT
+2 ;RCRCVL