Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: IBCF13

IBCF13.m

Go to the documentation of this file.
  1. IBCF13 ;ALB/AAS - PRINT UB-82 FROM A ;8/2/90
  1. ;;2.0;INTEGRATED BILLING;**63,363**;21-MAR-94;Build 35
  1. ;;Per VHA Directive 2004-038, this routine should not be modified.
  1. ;MAP TO DGCRP3
  1. ;
  1. ;Entry point for AR to print 2nd and 3rd Notice UB-82's
  1. ;Device handling to be done by calling routine
  1. ;Requires input - PRCASV("ARREC") = internal number of bill
  1. ; - PRCASV("NOTICE")= number of notice
  1. ;ouputs - IBAR("ERR") = error message
  1. ; - IBAR("OKAY") = 1 normal finish, 0 not finished
  1. ;
  1. REPRNT N I,J,DFN ;AR variables that need newing
  1. N IBECME
  1. K IBAR("ERR")
  1. S IBAR("OKAY")=0 I '$D(PRCASV("ARREC"))!('$D(PRCASV("NOTICE"))) S IBAR("ERR")="MISSING INPUT VARIABLES" Q
  1. S IBIFN=PRCASV("ARREC"),IB0=$S($D(^DGCR(399,IBIFN,0)):^(0),1:"") I IB0="" S IBAR("ERR")="BILL NON-EXISTANT" Q
  1. S DGSTAT=$P(IB0,"^",13) I $S(DGSTAT=3:0,DGSTAT=4:0,1:1) S IBAR("ERR")=$S(DGSTAT=7:"BILL CANCELLED",1:"BILL STATUS INAPPROPRIATE") Q
  1. ; IB*2*363 next line was added to prevent the print of forms for ePharmacy bills
  1. Q:$P($G(^DGCR(399,IBIFN,"M1")),"^",8)]"" ;ECME number exists so the bill was electronically submitted
  1. ; S DFN=$P(IB0,"^",2),IBPNT=PRCASV("NOTICE"),IBAC=4 D ENP^IBCF1
  1. ; replaced above line with following 2 lines 4/28/92 RLW
  1. ;S DFN=$P(IB0,"^",2),IBAC=4 I $P(^DGCR(399,IBIFN,0),"^",19)>1 D EN2^IBCF G REPRNTQ
  1. S DFN=$P(IB0,"^",2),IBAC=4 I $$FT^IBCU3(IBIFN)>1 D EN2^IBCF,EN5^IBCF G REPRNTQ
  1. S IBPNT=PRCASV("NOTICE") D ENP^IBCF1
  1. S IBAR("OKAY")=1
  1. REPRNTQ K DFN,I,J
  1. K M,X,X2,Y,Z,VADM,VAERR,DR,DA,D1,DGBS,DGCNT,IB,IBBILL,IBBNO,IBBT,IBC,IBCPT,IBEPAR,IBDPT,IBDT,IBF,IBIP,IBLS,IBO,IBPNT,DGSTAT,IBAC,IBIFN,IB0
  1. K IBPTF,IBRATY,IBREV,IBREVC,IBST,IBTF,IBU,IBUTL,DGDA,DGLCNT,DGPAG,DGPT,DGRVC,DGRV,DGTOTPAG,DGTEXT,DGTEXT1,IBDI,IBDIN,IBBS,IBCC,IBPT,DGREVC,DGRSPAC,DGSM
  1. Q
  1. ;
  1. PRINT ;Entry for A/R to create option to print bills.
  1. S IBVIEW=1 D KILL^IBCMENU,GEN^IBCB,KILL^IBCMENU
  1. Q