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

IBINI0BX.m

Go to the documentation of this file.
  1. IBINI0BX ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. Q:'DIFQ(399.5) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
  1. Q Q
  1. ;;^DIC(399.5,0,"GL")
  1. ;;=^DGCR(399.5,
  1. ;;^DIC("B","BILLING RATES",399.5)
  1. ;;=
  1. ;;^DIC(399.5,"%D",0)
  1. ;;=^^8^8^2940215^^^^
  1. ;;^DIC(399.5,"%D",1,0)
  1. ;;=This file contains the historical billing rates, associated with revenue
  1. ;;^DIC(399.5,"%D",2,0)
  1. ;;=codes and bedsections that the DVA has legislative authority to bill third
  1. ;;^DIC(399.5,"%D",3,0)
  1. ;;=parties for reimbursement.
  1. ;;^DIC(399.5,"%D",4,0)
  1. ;;=
  1. ;;^DIC(399.5,"%D",5,0)
  1. ;;=It is used to automatically associate revenue codes, bedsections and
  1. ;;^DIC(399.5,"%D",6,0)
  1. ;;=amounts with a bill.
  1. ;;^DIC(399.5,"%D",7,0)
  1. ;;=
  1. ;;^DIC(399.5,"%D",8,0)
  1. ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
  1. ;;^DD(399.5,0)
  1. ;;=FIELD^^.07^7
  1. ;;^DD(399.5,0,"DDA")
  1. ;;=N
  1. ;;^DD(399.5,0,"DT")
  1. ;;=2900501
  1. ;;^DD(399.5,0,"ID",.02)
  1. ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^DGCR(399.1,+$P(^(0),U,2),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(399.1,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
  1. ;;^DD(399.5,0,"ID",.03)
  1. ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^DGCR(399.2,+$P(^(0),U,3),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(399.2,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
  1. ;;^DD(399.5,0,"ID",.04)
  1. ;;=S DGZX=X,X=$P(^(0),U,4),X2="2$" D COMMA^%DTC W " ",X S X=DGZX K DGZX,X2
  1. ;;^DD(399.5,0,"ID",.05)
  1. ;;=W " ",@("$P($P($C(59)_$S($D(^DD(399.5,.05,0)):$P(^(0),U,3),1:0)_$E("_DIC_"Y,0),0),$C(59)_$P(^(0),U,5)_"":"",2),$C(59),1)")
  1. ;;^DD(399.5,0,"IX","AIVDT",399.5,.01)
  1. ;;=
  1. ;;^DD(399.5,0,"IX","AIVDT1",399.5,.02)
  1. ;;=
  1. ;;^DD(399.5,0,"IX","AIVDT2",399.5,.03)
  1. ;;=
  1. ;;^DD(399.5,0,"IX","B",399.5,.01)
  1. ;;=
  1. ;;^DD(399.5,0,"IX","D",399.5,.03)
  1. ;;=
  1. ;;^DD(399.5,0,"NM","BILLING RATES")
  1. ;;=
  1. ;;^DD(399.5,.01,0)
  1. ;;=EFFECTIVE DATE^RD^^0;1^S %DT="EX" D ^%DT S X=Y K:2991001<X!(2861001>X) X
  1. ;;^DD(399.5,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(399.5,.01,1,1,0)
  1. ;;=399.5^B
  1. ;;^DD(399.5,.01,1,1,1)
  1. ;;=S ^DGCR(399.5,"B",$E(X,1,30),DA)=""
  1. ;;^DD(399.5,.01,1,1,2)
  1. ;;=K ^DGCR(399.5,"B",$E(X,1,30),DA)
  1. ;;^DD(399.5,.01,1,2,0)
  1. ;;=399.5^AIVDT^MUMPS
  1. ;;^DD(399.5,.01,1,2,1)
  1. ;;=S:$P(^DGCR(399.5,DA,0),U,2)&($P(^(0),U,3)) ^DGCR(399.5,"AIVDT",$P(^(0),U,2),-X,$P(^(0),U,3),DA)=""
  1. ;;^DD(399.5,.01,1,2,2)
  1. ;;=K:$P(^DGCR(399.5,DA,0),U,2)&($P(^(0),U,3)) ^DGCR(399.5,"AIVDT",$P(^(0),U,2),-X,$P(^(0),U,3),DA)
  1. ;;^DD(399.5,.01,1,2,3)
  1. ;;=DON'T DELETE
  1. ;;^DD(399.5,.01,1,2,"%D",0)
  1. ;;=^^1^1^2940214^^^
  1. ;;^DD(399.5,.01,1,2,"%D",1,0)
  1. ;;=All rates by revenue code, bedsection, and inverse date effective.
  1. ;;^DD(399.5,.01,1,2,"DT")
  1. ;;=2900501
  1. ;;^DD(399.5,.01,3)
  1. ;;=TYPE A DATE BETWEEN 10/1/1986 AND 10/1/1999
  1. ;;^DD(399.5,.01,21,0)
  1. ;;=^^4^4^2900501^^
  1. ;;^DD(399.5,.01,21,1,0)
  1. ;;=This is the date in which changes in billing rates will take effect.
  1. ;;^DD(399.5,.01,21,2,0)
  1. ;;=A new entry, with a new effective date is necessary to change a
  1. ;;^DD(399.5,.01,21,3,0)
  1. ;;=previous entry. The most recent effective date's entry data will
  1. ;;^DD(399.5,.01,21,4,0)
  1. ;;=be used (even if its null) in calculating current charges.
  1. ;;^DD(399.5,.01,"DT")
  1. ;;=2900525
  1. ;;^DD(399.5,.02,0)
  1. ;;=BILLING BEDSECTION^R*P399.1'^DGCR(399.1,^0;2^S DIC("S")="I $P(^DGCR(399.1,+Y,0),U,5)" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
  1. ;;^DD(399.5,.02,1,0)
  1. ;;=^.1^^-1
  1. ;;^DD(399.5,.02,1,2,0)
  1. ;;=399.5^AIVDT1^MUMPS
  1. ;;^DD(399.5,.02,1,2,1)
  1. ;;=S:$P(^DGCR(399.5,DA,0),U,3) ^DGCR(399.5,"AIVDT",X,-^(0),$P(^(0),U,3),DA)=""
  1. ;;^DD(399.5,.02,1,2,2)
  1. ;;=K:$P(^DGCR(399.5,DA,0),U,3) ^DGCR(399.5,"AIVDT",X,-^(0),$P(^(0),U,3),DA)
  1. ;;^DD(399.5,.02,1,2,3)
  1. ;;=DON'T DELETE
  1. ;;^DD(399.5,.02,1,2,"%D",0)
  1. ;;=^^1^1^2940214^^