IBINI01Q ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(350.4) 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
Q Q
;;^DIC(350.4,0,"GL")
;;=^IBE(350.4,
;;^DIC("B","BILLABLE AMBULATORY SURGICAL CODE",350.4)
;;=
;;^DIC(350.4,"%D",0)
;;=^^10^10^2940214^^^^
;;^DIC(350.4,"%D",1,0)
;;=Contains the HCFA rate groups for ambulatory surgeries that may
;;^DIC(350.4,"%D",2,0)
;;=be billed. This file is time sensitive, a procedure may have multiple entries
;;^DIC(350.4,"%D",3,0)
;;=indicating updates effective on different dates. These updates include a
;;^DIC(350.4,"%D",4,0)
;;=procedure changing rate groups or changing status.
;;^DIC(350.4,"%D",5,0)
;;=
;;^DIC(350.4,"%D",6,0)
;;=The data in this file is either transfered from 350.41 or
;;^DIC(350.4,"%D",7,0)
;;=entered interactively and is used to calculate the charge for a procedure
;;^DIC(350.4,"%D",8,0)
;;=on any given date.
;;^DIC(350.4,"%D",9,0)
;;=
;;^DIC(350.4,"%D",10,0)
;;=Per VHA Directive 10-93-142, this file definition should not be modified.
;;^DD(350.4,0)
;;=FIELD^^.04^4
;;^DD(350.4,0,"DDA")
;;=N
;;^DD(350.4,0,"DT")
;;=2920108
;;^DD(350.4,0,"ID",.02)
;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^SD(409.71,+$P(^(0),U,2),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(409.71,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
;;^DD(350.4,0,"ID",.03)
;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^IBE(350.1,+$P(^(0),U,3),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(350.1,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
;;^DD(350.4,0,"IX","AIVDT",350.4,.01)
;;=
;;^DD(350.4,0,"IX","AIVDT1",350.4,.02)
;;=
;;^DD(350.4,0,"IX","B",350.4,.01)
;;=
;;^DD(350.4,0,"IX","C",350.4,.02)
;;=
;;^DD(350.4,0,"NM","BILLABLE AMBULATORY SURGICAL CODE")
;;=
;;^DD(350.4,.01,0)
;;=EFFECTIVE DATE^RD^^0;1^S %DT="EX" D ^%DT S X=Y K:Y<1 X
;;^DD(350.4,.01,1,0)
;;=^.1
;;^DD(350.4,.01,1,1,0)
;;=350.4^B
;;^DD(350.4,.01,1,1,1)
;;=S ^IBE(350.4,"B",$E(X,1,30),DA)=""
;;^DD(350.4,.01,1,1,2)
;;=K ^IBE(350.4,"B",$E(X,1,30),DA)
;;^DD(350.4,.01,1,2,0)
;;=350.4^AIVDT^MUMPS
;;^DD(350.4,.01,1,2,1)
;;=I $P(^IBE(350.4,DA,0),"^",2) S ^IBE(350.4,"AIVDT",$P(^(0),"^",2),-X,DA)=""
;;^DD(350.4,.01,1,2,2)
;;=I $P(^IBE(350.4,DA,0),"^",2) K ^IBE(350.4,"AIVDT",$P(^(0),"^",2),-X,DA)
;;^DD(350.4,.01,1,2,3)
;;=DO NOT DELETE
;;^DD(350.4,.01,1,2,"%D",0)
;;=^^2^2^2911119^^^
;;^DD(350.4,.01,1,2,"%D",1,0)
;;=This cross reference is used to find the correct rate group for a
;;^DD(350.4,.01,1,2,"%D",2,0)
;;=procedure on a particular date.
;;^DD(350.4,.01,1,2,"DT")
;;=2910829
;;^DD(350.4,.01,3)
;;=Enter the date that this new STATUS/RATE GROUP becomes effective.
;;^DD(350.4,.01,21,0)
;;=^^2^2^2920415^^^^
;;^DD(350.4,.01,21,1,0)
;;=This is the date when the new status or rate group for a procedure
;;^DD(350.4,.01,21,2,0)
;;=becomes effective.
;;^DD(350.4,.01,"DT")
;;=2910829
;;^DD(350.4,.02,0)
;;=PROCEDURE^P409.71'^SD(409.71,^0;2^Q
;;^DD(350.4,.02,1,0)
;;=^.1
;;^DD(350.4,.02,1,1,0)
;;=350.4^C
;;^DD(350.4,.02,1,1,1)
;;=S ^IBE(350.4,"C",$E(X,1,30),DA)=""
;;^DD(350.4,.02,1,1,2)
;;=K ^IBE(350.4,"C",$E(X,1,30),DA)
;;^DD(350.4,.02,1,1,3)
;;=DO NOT DELETE
;;^DD(350.4,.02,1,1,"DT")
;;=2910830
;;^DD(350.4,.02,1,2,0)
;;=350.4^AIVDT1^MUMPS
;;^DD(350.4,.02,1,2,1)
;;=I $P(^IBE(350.4,DA,0),"^") S ^IBE(350.4,"AIVDT",X,-$P(^(0),"^"),DA)=""
;;^DD(350.4,.02,1,2,2)
;;=I $P(^IBE(350.4,DA,0),"^") K ^IBE(350.4,"AIVDT",X,-$P(^(0),"^"),DA)
;;^DD(350.4,.02,1,2,3)
;;=DO NOT DELETE
;;^DD(350.4,.02,1,2,"%D",0)
;;=^^1^1^2911113^
;;^DD(350.4,.02,1,2,"%D",1,0)
;;=Used to find the correct rate group for a procedure on any particular date.
;;^DD(350.4,.02,1,2,"DT")
;;=2910830
IBINI01Q ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(350.4)
QUIT
FOR I=1:2
SET X=$TEXT(Q+I)
IF X=""
QUIT
SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
SET X=$EXTRACT(X,4,999)
IF $ASCII(Y)=126
SET I=I+1
SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^DIC(350.4,0,"GL")
+2 ;;=^IBE(350.4,
+3 ;;^DIC("B","BILLABLE AMBULATORY SURGICAL CODE",350.4)
+4 ;;=
+5 ;;^DIC(350.4,"%D",0)
+6 ;;=^^10^10^2940214^^^^
+7 ;;^DIC(350.4,"%D",1,0)
+8 ;;=Contains the HCFA rate groups for ambulatory surgeries that may
+9 ;;^DIC(350.4,"%D",2,0)
+10 ;;=be billed. This file is time sensitive, a procedure may have multiple entries
+11 ;;^DIC(350.4,"%D",3,0)
+12 ;;=indicating updates effective on different dates. These updates include a
+13 ;;^DIC(350.4,"%D",4,0)
+14 ;;=procedure changing rate groups or changing status.
+15 ;;^DIC(350.4,"%D",5,0)
+16 ;;=
+17 ;;^DIC(350.4,"%D",6,0)
+18 ;;=The data in this file is either transfered from 350.41 or
+19 ;;^DIC(350.4,"%D",7,0)
+20 ;;=entered interactively and is used to calculate the charge for a procedure
+21 ;;^DIC(350.4,"%D",8,0)
+22 ;;=on any given date.
+23 ;;^DIC(350.4,"%D",9,0)
+24 ;;=
+25 ;;^DIC(350.4,"%D",10,0)
+26 ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
+27 ;;^DD(350.4,0)
+28 ;;=FIELD^^.04^4
+29 ;;^DD(350.4,0,"DDA")
+30 ;;=N
+31 ;;^DD(350.4,0,"DT")
+32 ;;=2920108
+33 ;;^DD(350.4,0,"ID",.02)
+34 ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^SD(409.71,+$P(^(0),U,2),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(409.71,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
+35 ;;^DD(350.4,0,"ID",.03)
+36 ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^IBE(350.1,+$P(^(0),U,3),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(350.1,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
+37 ;;^DD(350.4,0,"IX","AIVDT",350.4,.01)
+38 ;;=
+39 ;;^DD(350.4,0,"IX","AIVDT1",350.4,.02)
+40 ;;=
+41 ;;^DD(350.4,0,"IX","B",350.4,.01)
+42 ;;=
+43 ;;^DD(350.4,0,"IX","C",350.4,.02)
+44 ;;=
+45 ;;^DD(350.4,0,"NM","BILLABLE AMBULATORY SURGICAL CODE")
+46 ;;=
+47 ;;^DD(350.4,.01,0)
+48 ;;=EFFECTIVE DATE^RD^^0;1^S %DT="EX" D ^%DT S X=Y K:Y<1 X
+49 ;;^DD(350.4,.01,1,0)
+50 ;;=^.1
+51 ;;^DD(350.4,.01,1,1,0)
+52 ;;=350.4^B
+53 ;;^DD(350.4,.01,1,1,1)
+54 ;;=S ^IBE(350.4,"B",$E(X,1,30),DA)=""
+55 ;;^DD(350.4,.01,1,1,2)
+56 ;;=K ^IBE(350.4,"B",$E(X,1,30),DA)
+57 ;;^DD(350.4,.01,1,2,0)
+58 ;;=350.4^AIVDT^MUMPS
+59 ;;^DD(350.4,.01,1,2,1)
+60 ;;=I $P(^IBE(350.4,DA,0),"^",2) S ^IBE(350.4,"AIVDT",$P(^(0),"^",2),-X,DA)=""
+61 ;;^DD(350.4,.01,1,2,2)
+62 ;;=I $P(^IBE(350.4,DA,0),"^",2) K ^IBE(350.4,"AIVDT",$P(^(0),"^",2),-X,DA)
+63 ;;^DD(350.4,.01,1,2,3)
+64 ;;=DO NOT DELETE
+65 ;;^DD(350.4,.01,1,2,"%D",0)
+66 ;;=^^2^2^2911119^^^
+67 ;;^DD(350.4,.01,1,2,"%D",1,0)
+68 ;;=This cross reference is used to find the correct rate group for a
+69 ;;^DD(350.4,.01,1,2,"%D",2,0)
+70 ;;=procedure on a particular date.
+71 ;;^DD(350.4,.01,1,2,"DT")
+72 ;;=2910829
+73 ;;^DD(350.4,.01,3)
+74 ;;=Enter the date that this new STATUS/RATE GROUP becomes effective.
+75 ;;^DD(350.4,.01,21,0)
+76 ;;=^^2^2^2920415^^^^
+77 ;;^DD(350.4,.01,21,1,0)
+78 ;;=This is the date when the new status or rate group for a procedure
+79 ;;^DD(350.4,.01,21,2,0)
+80 ;;=becomes effective.
+81 ;;^DD(350.4,.01,"DT")
+82 ;;=2910829
+83 ;;^DD(350.4,.02,0)
+84 ;;=PROCEDURE^P409.71'^SD(409.71,^0;2^Q
+85 ;;^DD(350.4,.02,1,0)
+86 ;;=^.1
+87 ;;^DD(350.4,.02,1,1,0)
+88 ;;=350.4^C
+89 ;;^DD(350.4,.02,1,1,1)
+90 ;;=S ^IBE(350.4,"C",$E(X,1,30),DA)=""
+91 ;;^DD(350.4,.02,1,1,2)
+92 ;;=K ^IBE(350.4,"C",$E(X,1,30),DA)
+93 ;;^DD(350.4,.02,1,1,3)
+94 ;;=DO NOT DELETE
+95 ;;^DD(350.4,.02,1,1,"DT")
+96 ;;=2910830
+97 ;;^DD(350.4,.02,1,2,0)
+98 ;;=350.4^AIVDT1^MUMPS
+99 ;;^DD(350.4,.02,1,2,1)
+100 ;;=I $P(^IBE(350.4,DA,0),"^") S ^IBE(350.4,"AIVDT",X,-$P(^(0),"^"),DA)=""
+101 ;;^DD(350.4,.02,1,2,2)
+102 ;;=I $P(^IBE(350.4,DA,0),"^") K ^IBE(350.4,"AIVDT",X,-$P(^(0),"^"),DA)
+103 ;;^DD(350.4,.02,1,2,3)
+104 ;;=DO NOT DELETE
+105 ;;^DD(350.4,.02,1,2,"%D",0)
+106 ;;=^^1^1^2911113^
+107 ;;^DD(350.4,.02,1,2,"%D",1,0)
+108 ;;=Used to find the correct rate group for a procedure on any particular date.
+109 ;;^DD(350.4,.02,1,2,"DT")
+110 ;;=2910830