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

IBJTBB.m

Go to the documentation of this file.
  1. IBJTBB ;ALB/ARH - TPI BILL DIAGNOSIS SCREEN ;01-MAR-1995
  1. ;;2.0;INTEGRATED BILLING;**39,210,461**;21-MAR-94;Build 58
  1. ;;Per VHA Directive 2004-038, this routine should not be modified.
  1. ;
  1. EN ; -- main entry point for IBJ TP BILL DX
  1. D EN^VALM("IBJT BILL DX")
  1. Q
  1. ;
  1. HDR ; -- header code
  1. D HDR^IBJTU1(+IBIFN,+DFN,12)
  1. Q
  1. ;
  1. INIT ; -- init variables and list array
  1. K ^TMP("IBJTBB",$J) N IBFT
  1. I '$G(DFN)!'$G(IBIFN) S VALMQUIT="" G INITQ
  1. D BLD
  1. INITQ Q
  1. ;
  1. HELP ; -- help code
  1. S X="?" D DISP^XQORM1 W !!
  1. Q
  1. ;
  1. EXIT ; -- exit code
  1. K ^TMP("IBJTBB",$J)
  1. D CLEAR^VALM1
  1. Q
  1. ;
  1. BLD ;
  1. N IBADX,IBI,IBX,IBCNT,IBLN,IBSTR,IBDATE
  1. S IBDATE=$$BDATE^IBACSV(IBIFN)
  1. D SET^IBCSC4D(IBIFN,"",.IBADX) I $D(IBADX)'>1 S IBLN=1 F IBSTR="","Bill contains no diagnosis." S IBLN=$$SET(IBSTR,IBLN,1,80)
  1. S IBI="",IBLN=1,IBCNT=0 F S IBI=$O(IBADX(IBI)) Q:'IBI D S IBLN=$$SET(IBSTR,IBLN,1,80)
  1. . S IBCNT=IBCNT+1,IBX=$$ICD9^IBACSV(+IBADX(IBI),IBDATE)
  1. . S IBSTR=$J("",1)_$J(IBCNT,3)_") "_$P(IBX,U,1)_$J("",(10-$L($P(IBX,U,1))))_$P(IBX,U,3)
  1. ;
  1. S VALMCNT=IBLN-1
  1. Q
  1. ;
  1. SET(STR,LN,COL,WD,RV) ; set up TMP array with screen data
  1. D SET^VALM10(LN,STR)
  1. S LN=LN+1
  1. Q LN