IB20P691 ;ALB/CXW - UPDATE RX ADMINISTRATIVE FEE FOR CY 2021 ; 11/12/2020
;;2.0;INTEGRATED BILLING;**691**;21-MAR-94;Build 7
;;Per VA Directive 6402, this routine should not be modified.
; Reference to MES^XPDUTL in ICR #10141
Q
POST ; Update pharmacy administrative fee for CY 2021 in Rate Schedule file 363
N IBA,U S U="^"
D MSG("IB*2.0*691 Post-Install starts.....")
D RXUPD
D MSG("IB*2.0*691 Post-Install is complete.")
Q
;
RXUPD ; Rate Schedule
N IBCT,IBI,IBT,IBX,IBRS,IBRSIN,IBRATY,IBEFFDT,IBADFE,IBDISP,IBADJUST
D MSG("")
D MSG(" >>>Effect. JAN 01, 2021 of RX Rate Schedule Adjustment for the Rate Type:"),MSG("")
S IBADFE="",IBEFFDT="3210101",IBCT=0
F IBX=1:1 S IBT=$P($T(RSF+IBX),";;",2) Q:IBT="Q" D
. S IBRATY=$P(IBT,U)
. S IBRSIN=$O(^DGCR(399.3,"B",IBRATY,0))
. I 'IBRSIN D MSG(" "_IBRATY_" not defined in the Rate Type file (#399.3), not added") Q
. ; latest entry
. S IBRSIN=$O(^DGCR(399.3,"B",IBRATY,99999),-1)
. I $P($G(^DGCR(399.3,+IBRSIN,0)),U,3) D MSG(" "_IBRATY_" inactivated in the Rate Type file (#399.3), not added") Q
. I $$RSEXIST(IBEFFDT,IBRSIN) D MSG(" "_IBRATY_" already exists") Q
. S IBDISP=$P(IBT,U,2)
. S IBADJUST=$P(IBT,U,3)
. ; inactivate rx entry for cy 2020 and add new rx entry for cy 2021
. D ENT^IB3PSOU(IBRATY,IBEFFDT,IBADFE,IBDISP,IBADJUST)
. ; double check
. I '$$RSEXIST(IBEFFDT,IBRSIN) D MSG(" "_IBRATY_" not added") Q
. S IBCT=IBCT+1 D MSG(" "_IBRATY)
D MSG("")
D MSG(" Total "_IBCT_$S(IBCT>1:" entries",1:" entry")_" added to the Rate Schedule file (#363)")
D MSG("")
Q
;
RSEXIST(IBEFFDT,IBRSIN) ; return RS IFN if Rate Schedule exists for Effective Date
N IBX,IBRSFN,IBRS0 S IBX=0
S IBRSFN=0 F S IBRSFN=$O(^IBE(363,IBRSFN)) Q:'IBRSFN D I IBX Q
. S IBRS0=$G(^IBE(363,IBRSFN,0))
. I $P(IBRS0,U,2)=IBRSIN,$P(IBRS0,U,5)=IBEFFDT S IBX=IBRSFN
Q IBX
;
MSG(IBA) ;
D MES^XPDUTL(IBA)
Q
;
RSF ; 23 Rate types^dispensing fee^adjustment
;;CC MTF REIMB INS^20.71^S X=X+20.71
;;CC NO-FAULT AUTO^20.71^S X=X+20.71
;;CC REIMB INS^20.71^S X=X+20.71
;;CC TORT FEASOR^20.71^S X=X+20.71
;;CC WORKERS' COMP^20.71^S X=X+20.71
;;CCN NO-FAULT AUTO^20.71^S X=X+20.71
;;CCN REIMB INS^20.71^S X=X+20.71
;;CCN TORT FEASOR^20.71^S X=X+20.71
;;CCN WORKERS' COMP^20.71^S X=X+20.71
;;CHOICE NO-FAULT AUTO^20.71^S X=X+20.71
;;CHOICE REIMB INS^20.71^S X=X+20.71
;;CHOICE TORT FEASOR^20.71^S X=X+20.71
;;CHOICE WORKERS' COMP^20.71^S X=X+20.71
;;DENTAL REIMB. INS.^20.71^S X=X+20.71
;;HUMANITARIAN^20.71^S X=X+20.71
;;HUMANITARIAN REIMB. INS.^20.71^S X=X+20.71
;;INELIGIBLE^20.71^S X=X+20.71
;;INTERAGENCY^20.71^S X=X+20.71
;;INELIGIBLE REIMB. INS.^20.71^S X=X+20.71
;;NO FAULT INS.^20.71^S X=X+20.71
;;REIMBURSABLE INS.^20.71^S X=X+20.71
;;TORT FEASOR^20.71^S X=X+20.71
;;WORKERS' COMP.^20.71^S X=X+20.71
;;Q
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HIB20P691 2903 printed Dec 13, 2024@02:04:34 Page 2
IB20P691 ;ALB/CXW - UPDATE RX ADMINISTRATIVE FEE FOR CY 2021 ; 11/12/2020
+1 ;;2.0;INTEGRATED BILLING;**691**;21-MAR-94;Build 7
+2 ;;Per VA Directive 6402, this routine should not be modified.
+3 ; Reference to MES^XPDUTL in ICR #10141
+4 QUIT
POST ; Update pharmacy administrative fee for CY 2021 in Rate Schedule file 363
+1 NEW IBA,U
SET U="^"
+2 DO MSG("IB*2.0*691 Post-Install starts.....")
+3 DO RXUPD
+4 DO MSG("IB*2.0*691 Post-Install is complete.")
+5 QUIT
+6 ;
RXUPD ; Rate Schedule
+1 NEW IBCT,IBI,IBT,IBX,IBRS,IBRSIN,IBRATY,IBEFFDT,IBADFE,IBDISP,IBADJUST
+2 DO MSG("")
+3 DO MSG(" >>>Effect. JAN 01, 2021 of RX Rate Schedule Adjustment for the Rate Type:")
DO MSG("")
+4 SET IBADFE=""
SET IBEFFDT="3210101"
SET IBCT=0
+5 FOR IBX=1:1
SET IBT=$PIECE($TEXT(RSF+IBX),";;",2)
if IBT="Q"
QUIT
Begin DoDot:1
+6 SET IBRATY=$PIECE(IBT,U)
+7 SET IBRSIN=$ORDER(^DGCR(399.3,"B",IBRATY,0))
+8 IF 'IBRSIN
DO MSG(" "_IBRATY_" not defined in the Rate Type file (#399.3), not added")
QUIT
+9 ; latest entry
+10 SET IBRSIN=$ORDER(^DGCR(399.3,"B",IBRATY,99999),-1)
+11 IF $PIECE($GET(^DGCR(399.3,+IBRSIN,0)),U,3)
DO MSG(" "_IBRATY_" inactivated in the Rate Type file (#399.3), not added")
QUIT
+12 IF $$RSEXIST(IBEFFDT,IBRSIN)
DO MSG(" "_IBRATY_" already exists")
QUIT
+13 SET IBDISP=$PIECE(IBT,U,2)
+14 SET IBADJUST=$PIECE(IBT,U,3)
+15 ; inactivate rx entry for cy 2020 and add new rx entry for cy 2021
+16 DO ENT^IB3PSOU(IBRATY,IBEFFDT,IBADFE,IBDISP,IBADJUST)
+17 ; double check
+18 IF '$$RSEXIST(IBEFFDT,IBRSIN)
DO MSG(" "_IBRATY_" not added")
QUIT
+19 SET IBCT=IBCT+1
DO MSG(" "_IBRATY)
End DoDot:1
+20 DO MSG("")
+21 DO MSG(" Total "_IBCT_$SELECT(IBCT>1:" entries",1:" entry")_" added to the Rate Schedule file (#363)")
+22 DO MSG("")
+23 QUIT
+24 ;
RSEXIST(IBEFFDT,IBRSIN) ; return RS IFN if Rate Schedule exists for Effective Date
+1 NEW IBX,IBRSFN,IBRS0
SET IBX=0
+2 SET IBRSFN=0
FOR
SET IBRSFN=$ORDER(^IBE(363,IBRSFN))
if 'IBRSFN
QUIT
Begin DoDot:1
+3 SET IBRS0=$GET(^IBE(363,IBRSFN,0))
+4 IF $PIECE(IBRS0,U,2)=IBRSIN
IF $PIECE(IBRS0,U,5)=IBEFFDT
SET IBX=IBRSFN
End DoDot:1
IF IBX
QUIT
+5 QUIT IBX
+6 ;
MSG(IBA) ;
+1 DO MES^XPDUTL(IBA)
+2 QUIT
+3 ;
RSF ; 23 Rate types^dispensing fee^adjustment
+1 ;;CC MTF REIMB INS^20.71^S X=X+20.71
+2 ;;CC NO-FAULT AUTO^20.71^S X=X+20.71
+3 ;;CC REIMB INS^20.71^S X=X+20.71
+4 ;;CC TORT FEASOR^20.71^S X=X+20.71
+5 ;;CC WORKERS' COMP^20.71^S X=X+20.71
+6 ;;CCN NO-FAULT AUTO^20.71^S X=X+20.71
+7 ;;CCN REIMB INS^20.71^S X=X+20.71
+8 ;;CCN TORT FEASOR^20.71^S X=X+20.71
+9 ;;CCN WORKERS' COMP^20.71^S X=X+20.71
+10 ;;CHOICE NO-FAULT AUTO^20.71^S X=X+20.71
+11 ;;CHOICE REIMB INS^20.71^S X=X+20.71
+12 ;;CHOICE TORT FEASOR^20.71^S X=X+20.71
+13 ;;CHOICE WORKERS' COMP^20.71^S X=X+20.71
+14 ;;DENTAL REIMB. INS.^20.71^S X=X+20.71
+15 ;;HUMANITARIAN^20.71^S X=X+20.71
+16 ;;HUMANITARIAN REIMB. INS.^20.71^S X=X+20.71
+17 ;;INELIGIBLE^20.71^S X=X+20.71
+18 ;;INTERAGENCY^20.71^S X=X+20.71
+19 ;;INELIGIBLE REIMB. INS.^20.71^S X=X+20.71
+20 ;;NO FAULT INS.^20.71^S X=X+20.71
+21 ;;REIMBURSABLE INS.^20.71^S X=X+20.71
+22 ;;TORT FEASOR^20.71^S X=X+20.71
+23 ;;WORKERS' COMP.^20.71^S X=X+20.71
+24 ;;Q
+25 ;