IBCEP9A ;ALB/CXW - PROVIDER EXTRACT ;26-SEP-00 ;;2.0;INTEGRATED BILLING;**137**;21-MAR-94 ; This routine is to build an extract file with provider information ; by looking at different file sources ; DBIA's used: DBIA418, DBIA419, 2546 ; START(IBRAW) ; Extract a list of providers from existing VistA data ; IBRAW = 0 or "" if display format ; = 1 if raw data format ; Variables: ; IBYR1/IBYR3 - the first date of next year ; IBYR2 - the last date two years ago ; IBPID - provider entry number ; HFLE - host file name ; N IBCONT,IBYR1,IBYR2,IBYR3,IBPTF,IBPID,IBPINT,IBDFN,IBDT,IBIEN S IBCONT=0,IBRAW=$G(IBRAW) D NOW^%DTC S (IBYR1,IBYR3)=$E(X,1,3)+1_"0101" S IBYR2=$E(X,1,3)-2_"1230" K ^TMP("IBPID",$J) D PTF,VST Q:IBRAW D DATA I '$D(^TMP("IBPID",$J)) W "No data found" Q ; PTF ;PTF (file 45/field 50) with admission within last two years DBIA419 F S IBYR1=$O(^DGPM("AMV1",IBYR1),-1) Q:'IBYR1!(IBYR1\1