IBCU7A ;ALB/ARH - BILL PROCEDURE MANIPULATIONS ; 10-OCT-03 ;;2.0;INTEGRATED BILLING;**245,287**;21-MAR-94 ;;Per VHA Directive 10-93-142, this routine should not be modified. ; ; Based on Reasonable Charges v2.0+, certain CPT codes should be reported in a certain way ; this set of routines manipulates the bill's procedure to conform to the charges and proper billing ; ; criteria: bill must be a Reasonable Charges bill ; charges must be v2.0 or greater ; ; called after bill created and populated to reset procedures ; PROC(IBIFN,EDIT) ; manipulate bill procedures base on charges and the clinical data ; EDIT is a flag for which manipulations should be completed, if true then only the charge significant manipulations are preformed N IB0,IBBCT,IBPBTYP S EDIT=$G(EDIT) I '$O(^DGCR(399,+$G(IBIFN),"CP",0)) Q S IB0=$G(^DGCR(399,+IBIFN,0)) Q:IB0="" S IBBCT=$P(IB0,U,27) Q:'IBBCT I +$P($G(^DGCR(399,+IBIFN,"U")),U,2)<$$VERSDT^IBCRU8(2) Q I '$$BILLRATE^IBCRU3($P(IB0,U,7),$P(IB0,U,5),$P(IB0,U,3),"RC") Q ; S IBPBTYP=$P($$RCDV^IBCRU8(+$P(IB0,U,22)),U,3) Q:'IBPBTYP ; I 'EDIT,IBPBTYP<3 D DELCLN(IBIFN) ; delete TC/26 component clinical procedures from bills I 'EDIT,IBPBTYP<3 D ADDCLN(IBIFN) ; add 26 modified clinical procedures to bill I 'EDIT,IBPBTYP<3 D DELTC(IBIFN) ; delete all TC modifiers from institutional bills ; D MOD26(IBIFN) ; if only professional charge is a 26 charge then add or delete modifier 26 on procedure ; D BNDL^IBCU7A1(IBIFN) ; split or combine bundled procedures ; K ^UTILITY($J) Q ; ; ; DELTC(IBIFN) ; delete TC modifier from all procedures on RC v2.0+ Institutional bills N IB0,IBBCT,IBTC,IBBCPT,IBLN,IBEVDT,IBMODS,IBV2,IBCHANGE S IBCHANGE=0 S IB0=$G(^DGCR(399,+$G(IBIFN),0)) Q:IB0="" S IBBCT=$P(IB0,U,27) I IBBCT'=1 Q S IBTC=+$$MOD^ICPTMOD("TC","E") Q:IBTC<1 S IBV2=$$VERSDT^IBCRU8(2) ; S IBBCPT=0 F S IBBCPT=$O(^DGCR(399,IBIFN,"CP",IBBCPT)) Q:'IBBCPT D . S IBLN=$G(^DGCR(399,IBIFN,"CP",IBBCPT,0)),IBEVDT=$P(IBLN,U,2) Q:IBLN'[";ICPT(" . I IBEVDT