IBINI09T ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(399) 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(399,0,"GL")
;;=^DGCR(399,
;;^DIC("B","BILL/CLAIMS",399)
;;=
;;^DIC(399,"%D",0)
;;=^^8^8^2940215^^^^
;;^DIC(399,"%D",1,0)
;;=This file contains all of the information necessary to complete a
;;^DIC(399,"%D",2,0)
;;=Third Party billing form.
;;^DIC(399,"%D",3,0)
;;=
;;^DIC(399,"%D",4,0)
;;=The entries in this file have matching entries in the Accounts Receivable
;;^DIC(399,"%D",5,0)
;;=file (430). The internal number in the AR file is the same as the internal
;;^DIC(399,"%D",6,0)
;;=number in the BILL/CLAIMS file.
;;^DIC(399,"%D",7,0)
;;=
;;^DIC(399,"%D",8,0)
;;=Per VHA Directive 10-93-142, this file definition should not be modified.
;;^DD(399,0)
;;=FIELD^^217^131
;;^DD(399,0,"DDA")
;;=N
;;^DD(399,0,"DIK")
;;=IBXX
;;^DD(399,0,"DT")
;;=2940310
;;^DD(399,0,"ID",.02)
;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^DPT(+$P(^(0),U,2),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(2,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
;;^DD(399,0,"ID",.03)
;;=W " ",$E($P(^(0),U,3),4,5)_"-"_$E($P(^(0),U,3),6,7)_"-"_$E($P(^(0),U,3),2,3)
;;^DD(399,0,"ID",.05)
;;=I $P(@(DIC_"Y,0)"),U,5) W " ",$S($P(^(0),U,5)>2:"Outpatient",1:"Inpatient")
;;^DD(399,0,"ID",.07)
;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^DGCR(399.3,+$P(^(0),U,7),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(399.3,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
;;^DD(399,0,"ID",.13)
;;=W " ",@("$P($P($C(59)_$S($D(^DD(399,.13,0)):$P(^(0),U,3),1:0)_$E("_DIC_"Y,0),0),$C(59)_$P(^(0),U,13)_"":"",2),$C(59),1)")
;;^DD(399,0,"IX","ABNDT",399,.03)
;;=
;;^DD(399,0,"IX","ABT",399,.05)
;;=
;;^DD(399,0,"IX","AC",399,.17)
;;=
;;^DD(399,0,"IX","AD",399,.07)
;;=
;;^DD(399,0,"IX","AE",399,101)
;;=
;;^DD(399,0,"IX","AI1",399,101)
;;=
;;^DD(399,0,"IX","AI11",399,112)
;;=
;;^DD(399,0,"IX","AI2",399,102)
;;=
;;^DD(399,0,"IX","AI21",399,113)
;;=
;;^DD(399,0,"IX","AI3",399,103)
;;=
;;^DD(399,0,"IX","AI31",399,114)
;;=
;;^DD(399,0,"IX","AML",399,111)
;;=
;;^DD(399,0,"IX","AML1",399,.11)
;;=
;;^DD(399,0,"IX","AOP",399,.13)
;;=
;;^DD(399,0,"IX","AOPV",399.043,.01)
;;=
;;^DD(399,0,"IX","AP",399,12)
;;=
;;^DD(399,0,"IX","APD",399,1)
;;=
;;^DD(399,0,"IX","APDT",399,.03)
;;=
;;^DD(399,0,"IX","APTF",399,.08)
;;=
;;^DD(399,0,"IX","AREV1",399.043,.01)
;;=
;;^DD(399,0,"IX","AREV2",399,151)
;;=
;;^DD(399,0,"IX","AREV3",399,152)
;;=
;;^DD(399,0,"IX","AREV4",399,101)
;;=
;;^DD(399,0,"IX","AREV5",399,111)
;;=
;;^DD(399,0,"IX","AREV6",399,.11)
;;=
;;^DD(399,0,"IX","AREV7",399,.19)
;;=
;;^DD(399,0,"IX","ASC1",399.042,.06)
;;=
;;^DD(399,0,"IX","ASC11",399.042,.07)
;;=
;;^DD(399,0,"IX","ASC2",399.042,.06)
;;=
;;^DD(399,0,"IX","ASC21",399.042,.07)
;;=
;;^DD(399,0,"IX","ASD",399.0304,.01)
;;=
;;^DD(399,0,"IX","ASD1",399.0304,1)
;;=
;;^DD(399,0,"IX","AST",399,.13)
;;=
;;^DD(399,0,"IX","B",399,.01)
;;=
;;^DD(399,0,"IX","C",399,.02)
;;=
;;^DD(399,0,"IX","D",399,.03)
;;=
;;^DD(399,0,"IX","E",399,12)
;;=
;;^DD(399,0,"NM","BILL/CLAIMS")
;;=
;;^DD(399,0,"PT",356,.11)
;;=
;;^DD(399,0,"PT",356.399,.02)
;;=
;;^DD(399,0,"PT",362.1,.03)
;;=
;;^DD(399,0,"PT",362.3,.02)
;;=
;;^DD(399,0,"PT",362.4,.02)
;;=
;;^DD(399,0,"PT",362.5,.02)
;;=
;;^DD(399,0,"PT",399,.15)
;;=
;;^DD(399,0,"PT",399,.17)
;;=
;;^DD(399,.01,0)
;;=BILL NUMBER^RFXI^^0;1^K:X[""""!($A(X)=45) X I $D(X) K:X'?.ANP X I $D(X) K:$E(X)=" " X
;;^DD(399,.01,1,0)
;;=^.1
;;^DD(399,.01,1,1,0)
;;=399^B
;;^DD(399,.01,1,1,1)
;;=S ^DGCR(399,"B",$E(X,1,30),DA)=""
;;^DD(399,.01,1,1,2)
;;=K ^DGCR(399,"B",$E(X,1,30),DA)
;;^DD(399,.01,1,3,0)
;;=^^TRIGGER^399^1
IBINI09T ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(399)
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(399,0,"GL")
+2 ;;=^DGCR(399,
+3 ;;^DIC("B","BILL/CLAIMS",399)
+4 ;;=
+5 ;;^DIC(399,"%D",0)
+6 ;;=^^8^8^2940215^^^^
+7 ;;^DIC(399,"%D",1,0)
+8 ;;=This file contains all of the information necessary to complete a
+9 ;;^DIC(399,"%D",2,0)
+10 ;;=Third Party billing form.
+11 ;;^DIC(399,"%D",3,0)
+12 ;;=
+13 ;;^DIC(399,"%D",4,0)
+14 ;;=The entries in this file have matching entries in the Accounts Receivable
+15 ;;^DIC(399,"%D",5,0)
+16 ;;=file (430). The internal number in the AR file is the same as the internal
+17 ;;^DIC(399,"%D",6,0)
+18 ;;=number in the BILL/CLAIMS file.
+19 ;;^DIC(399,"%D",7,0)
+20 ;;=
+21 ;;^DIC(399,"%D",8,0)
+22 ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
+23 ;;^DD(399,0)
+24 ;;=FIELD^^217^131
+25 ;;^DD(399,0,"DDA")
+26 ;;=N
+27 ;;^DD(399,0,"DIK")
+28 ;;=IBXX
+29 ;;^DD(399,0,"DT")
+30 ;;=2940310
+31 ;;^DD(399,0,"ID",.02)
+32 ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^DPT(+$P(^(0),U,2),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(2,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
+33 ;;^DD(399,0,"ID",.03)
+34 ;;=W " ",$E($P(^(0),U,3),4,5)_"-"_$E($P(^(0),U,3),6,7)_"-"_$E($P(^(0),U,3),2,3)
+35 ;;^DD(399,0,"ID",.05)
+36 ;;=I $P(@(DIC_"Y,0)"),U,5) W " ",$S($P(^(0),U,5)>2:"Outpatient",1:"Inpatient")
+37 ;;^DD(399,0,"ID",.07)
+38 ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^DGCR(399.3,+$P(^(0),U,7),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(399.3,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
+39 ;;^DD(399,0,"ID",.13)
+40 ;;=W " ",@("$P($P($C(59)_$S($D(^DD(399,.13,0)):$P(^(0),U,3),1:0)_$E("_DIC_"Y,0),0),$C(59)_$P(^(0),U,13)_"":"",2),$C(59),1)")
+41 ;;^DD(399,0,"IX","ABNDT",399,.03)
+42 ;;=
+43 ;;^DD(399,0,"IX","ABT",399,.05)
+44 ;;=
+45 ;;^DD(399,0,"IX","AC",399,.17)
+46 ;;=
+47 ;;^DD(399,0,"IX","AD",399,.07)
+48 ;;=
+49 ;;^DD(399,0,"IX","AE",399,101)
+50 ;;=
+51 ;;^DD(399,0,"IX","AI1",399,101)
+52 ;;=
+53 ;;^DD(399,0,"IX","AI11",399,112)
+54 ;;=
+55 ;;^DD(399,0,"IX","AI2",399,102)
+56 ;;=
+57 ;;^DD(399,0,"IX","AI21",399,113)
+58 ;;=
+59 ;;^DD(399,0,"IX","AI3",399,103)
+60 ;;=
+61 ;;^DD(399,0,"IX","AI31",399,114)
+62 ;;=
+63 ;;^DD(399,0,"IX","AML",399,111)
+64 ;;=
+65 ;;^DD(399,0,"IX","AML1",399,.11)
+66 ;;=
+67 ;;^DD(399,0,"IX","AOP",399,.13)
+68 ;;=
+69 ;;^DD(399,0,"IX","AOPV",399.043,.01)
+70 ;;=
+71 ;;^DD(399,0,"IX","AP",399,12)
+72 ;;=
+73 ;;^DD(399,0,"IX","APD",399,1)
+74 ;;=
+75 ;;^DD(399,0,"IX","APDT",399,.03)
+76 ;;=
+77 ;;^DD(399,0,"IX","APTF",399,.08)
+78 ;;=
+79 ;;^DD(399,0,"IX","AREV1",399.043,.01)
+80 ;;=
+81 ;;^DD(399,0,"IX","AREV2",399,151)
+82 ;;=
+83 ;;^DD(399,0,"IX","AREV3",399,152)
+84 ;;=
+85 ;;^DD(399,0,"IX","AREV4",399,101)
+86 ;;=
+87 ;;^DD(399,0,"IX","AREV5",399,111)
+88 ;;=
+89 ;;^DD(399,0,"IX","AREV6",399,.11)
+90 ;;=
+91 ;;^DD(399,0,"IX","AREV7",399,.19)
+92 ;;=
+93 ;;^DD(399,0,"IX","ASC1",399.042,.06)
+94 ;;=
+95 ;;^DD(399,0,"IX","ASC11",399.042,.07)
+96 ;;=
+97 ;;^DD(399,0,"IX","ASC2",399.042,.06)
+98 ;;=
+99 ;;^DD(399,0,"IX","ASC21",399.042,.07)
+100 ;;=
+101 ;;^DD(399,0,"IX","ASD",399.0304,.01)
+102 ;;=
+103 ;;^DD(399,0,"IX","ASD1",399.0304,1)
+104 ;;=
+105 ;;^DD(399,0,"IX","AST",399,.13)
+106 ;;=
+107 ;;^DD(399,0,"IX","B",399,.01)
+108 ;;=
+109 ;;^DD(399,0,"IX","C",399,.02)
+110 ;;=
+111 ;;^DD(399,0,"IX","D",399,.03)
+112 ;;=
+113 ;;^DD(399,0,"IX","E",399,12)
+114 ;;=
+115 ;;^DD(399,0,"NM","BILL/CLAIMS")
+116 ;;=
+117 ;;^DD(399,0,"PT",356,.11)
+118 ;;=
+119 ;;^DD(399,0,"PT",356.399,.02)
+120 ;;=
+121 ;;^DD(399,0,"PT",362.1,.03)
+122 ;;=
+123 ;;^DD(399,0,"PT",362.3,.02)
+124 ;;=
+125 ;;^DD(399,0,"PT",362.4,.02)
+126 ;;=
+127 ;;^DD(399,0,"PT",362.5,.02)
+128 ;;=
+129 ;;^DD(399,0,"PT",399,.15)
+130 ;;=
+131 ;;^DD(399,0,"PT",399,.17)
+132 ;;=
+133 ;;^DD(399,.01,0)
+134 ;;=BILL NUMBER^RFXI^^0;1^K:X[""""!($A(X)=45) X I $D(X) K:X'?.ANP X I $D(X) K:$E(X)=" " X
+135 ;;^DD(399,.01,1,0)
+136 ;;=^.1
+137 ;;^DD(399,.01,1,1,0)
+138 ;;=399^B
+139 ;;^DD(399,.01,1,1,1)
+140 ;;=S ^DGCR(399,"B",$E(X,1,30),DA)=""
+141 ;;^DD(399,.01,1,1,2)
+142 ;;=K ^DGCR(399,"B",$E(X,1,30),DA)
+143 ;;^DD(399,.01,1,3,0)
+144 ;;=^^TRIGGER^399^1