IBOMTE ;ALB/CPM-ESTIMATE MEANS TEST CHARGES ;17-DEC-91 ;;2.0;INTEGRATED BILLING;**153,183,202**;21-MAR-94 ; S:'$D(DTIME) DTIME=300 D HOME^%ZIS ; Check the MAS Service pointer first. START ; ;*** ;I $D(XRT0) S:'$D(XRTN) XRTN="IBOMTE" D T1^%ZOSV ;stop rt clock ;S XRTL=$ZU(0),XRTN="IBOMTE-1" D T0^%ZOSV ;start rt clock S IBY=1 D SERV^IBAUTL2 I IBY<1 D G END . W !!,"Medical Administration Service is not defined in your IB Site Parameter File." . W !,"Please contact your System Manager, as this impacts on all aspects of",!,"Means Test billing.",!! ; ; Select patient to be admitted; check for previously billed charges. S DPTNOFZY=1 ;Suppress PATIENT file fuzzy lookups S DIC="^DPT(",DIC(0)="AEQMN" D ^DIC K DIC G END:Y<1 S (DFN,IBDFN)=+Y K DPTNOFZY S IBGMT=$$ISGMTPT^IBAGMT(DFN,DT) ;GMT Copay Status I IBGMT>0 W !!,"The patient has Geographic Means Test Copayment Status.",! ; S IBADMDT=0 D EVFIND^IBAUTL3 I IBEVDA D G EDT . W !!,"Please note that this patient was admitted on ",$$DAT1^IBOUTL(IBEVDT)," and Means Test charges" . W !,"have been calculated through ",$$DAT1^IBOUTL(IBEVCAL),".",! . S X1=IBEVCAL,X2=1 D C^%DTC S IBBDT=X ; ; Get proposed Admission and Discharge dates. BDT S %DT="AEPX",%DT("A")="Proposed ADMISSION Date: " D ^%DT K %DT G END:Y<0 S IBBDT=Y I IBBDT