IBYPSA ;ALB/ARH - IB*2.0*245 POST INIT: REASONABLE CHARGES V2.0 ; 10-OCT-2003 ;;2.0;INTEGRATED BILLING;**245**;21-MAR-94 ;;Per VHA Directive 10-93-142, this routine should not be modified. ; ; Q ; POST ; N IBA S IBA(1)="",IBA(2)=" Reasonable Charges v2.0 Post-Install .....",IBA(3)="" D MES^XPDUTL(.IBA) K IBA ; D RSINDT ; add Rate Schedule Inactive dates (363, .06) ; D UPDBR ; update Billing Rate Names for v2.0 (363.3) ; D ADDRB^IBYPSA1 ; add Billable Service (399.1, .2) D ADDBS^IBYPSA1 ; add Bedsections (399.1,.12) D ADDBI^IBYPSA1 ; add Billable Items (363.21) D ADDRS^IBYPSA1 ; add Rate Schedule (363) D ADDBR^IBYPSA1 ; add Billing Rates (363.3) ; D SGBR ; add Billing Rates to Special Groups (363.32,11,.01) D RVACT ; activate 3 Revenue Codes (399.2,2) ; D CHGINA^IBYPSA2("") ; inactivate all RC charges in #363.2 ; S IBA(1)="",IBA(2)=" Reasonable Charges v2.0 Post-Install Complete",IBA(3)="" D MES^XPDUTL(.IBA) K IBA ; Q ; ; RSINDT ; add an inactive date to rate schedules if this is the first time the load is completed (363, .06) ; Reimbursable Ins, No Fault, and Workers Comp only ; if test account use 9/30/98, if production account use 8/31/99 N IBA,IBRSFN,IBRS0,IBRSN,IBCNT,IBSTDT,DD,DO,DIC,DIE,DA,DR,X,Y S IBSTDT="",IBCNT=0 ; I $O(^IBE(363.3,"B","RC PHYSICIAN MN",0)) G RSINQ ; S IBSTDT=$$VERSEDT^IBCRHBRV(1.4) ;I '$$PROD^IBCORC S IBSTDT=2980930 ; S IBRSFN=0 F S IBRSFN=$O(^IBE(363,IBRSFN)) Q:'IBRSFN D . S IBRS0=$G(^IBE(363,IBRSFN,0)),IBRSN=$E(IBRS0,1,3) . I IBRSN'="RI-",IBRSN'="NF-",IBRSN'="WC-" Q . I $P(IBRS0,U,5)'0 S IBJ=0 F IBI=1:15 S IBJ=IBJ+15 S IBLN=$P(IBACT,",",IBI,IBJ) Q:IBLN="" D MSG(" "_IBLN) ; RVAQ S IBA(1)=" >> "_IBCNT_" Revenue Codes activated (399.2)..." D MES^XPDUTL(.IBA) Q ; MCCRUTL(X,P) ; returns IFN of item in 399.1 if Name is found and piece P is true N IBX,IBY S IBY="" I $G(X)'="" S IBX=0 F S IBX=$O(^DGCR(399.1,"B",X,IBX)) Q:'IBX I $P($G(^DGCR(399.1,IBX,0)),U,+$G(P)) S IBY=IBX Q IBY ; MSG(X) ; N IBX S IBX=$O(IBA(999999),-1) S:'IBX IBX=1 S IBX=IBX+1 S IBA(IBX)=$G(X) Q ; RVF ; Revenue Codes to (3) Activate (399.2,2) ;;190,200,912, ;;