IBAMTEDU ;ALB/CPM - MEANS TEST BULLETIN UTILITIES ; 15-JUN-93 ;;2.0;INTEGRATED BILLING;**15,91,153**;21-MAR-94 ;;Per VHA Directive 10-93-142, this routine should not be modified. ; CHG(IBDAT) ; Any charges billed on or after IBDAT? ; Input: IBDAT -- Date on or after which charges have been billed ; Output: 0 -- No charges billed ; 1 -- Charges were billed; IBARR contains array ; of those charges N IBFND,IBD,IBN,IBX,IBJOB,IBWHER K IBARR ; ; - if the effective date of the test is today, cancel today's charges. I $P(IBDAT,".")=DT D CANC G CHGQ ; ; - find all charges which may need to be cancelled. S IBX="" F S IBX=$O(^IB("AFDT",DFN,IBX)) Q:'IBX S IBD=0 F S IBD=$O(^IB("AFDT",DFN,IBX,IBD)) Q:'IBD D .I $P($G(^IB(IBD,0)),"^",8)'["ADMISSION" D:-IBX'