IBINI06H ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(356.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(356.399,0,"GL")
;;=^IBT(356.399,
;;^DIC("B","CLAIMS TRACKING/BILL",356.399)
;;=
;;^DIC(356.399,"%D",0)
;;=^^8^8^2940214^^
;;^DIC(356.399,"%D",1,0)
;;=This file serves as a bridge between Claims Tracking and the Bill Claims
;;^DIC(356.399,"%D",2,0)
;;=file. An entry is created automatically by the billing module to link
;;^DIC(356.399,"%D",3,0)
;;=the events being billed to the claims tracking entry. It serves as a
;;^DIC(356.399,"%D",4,0)
;;=cross-reference in a many to many relationship for the entries in these
;;^DIC(356.399,"%D",5,0)
;;=two files. Entries should not normally be added or edited manualy in
;;^DIC(356.399,"%D",6,0)
;;=this file. It should be maintained by the Billing Module.
;;^DIC(356.399,"%D",7,0)
;;=
;;^DIC(356.399,"%D",8,0)
;;=Per VHA Directive 10-93-142, this file definition should not be modified.
;;^DD(356.399,0)
;;=FIELD^^.02^2
;;^DD(356.399,0,"DDA")
;;=N
;;^DD(356.399,0,"DT")
;;=2930726
;;^DD(356.399,0,"ID",.02)
;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^DGCR(399,+$P(^(0),U,2),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(399,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
;;^DD(356.399,0,"IX","ACB",356.399,.02)
;;=
;;^DD(356.399,0,"IX","ACB1",356.399,.01)
;;=
;;^DD(356.399,0,"IX","B",356.399,.01)
;;=
;;^DD(356.399,0,"IX","C",356.399,.02)
;;=
;;^DD(356.399,0,"NM","CLAIMS TRACKING/BILL")
;;=
;;^DD(356.399,.01,0)
;;=CLAIM TRACKING ID^RP356'^IBT(356,^0;1^Q
;;^DD(356.399,.01,1,0)
;;=^.1
;;^DD(356.399,.01,1,1,0)
;;=356.399^B
;;^DD(356.399,.01,1,1,1)
;;=S ^IBT(356.399,"B",$E(X,1,30),DA)=""
;;^DD(356.399,.01,1,1,2)
;;=K ^IBT(356.399,"B",$E(X,1,30),DA)
;;^DD(356.399,.01,1,2,0)
;;=356.399^ACB1^MUMPS
;;^DD(356.399,.01,1,2,1)
;;=S:$P(^IBT(356.399,DA,0),U,2) ^IBT(356.399,"ACB",X,$P(^(0),U,2),DA)=""
;;^DD(356.399,.01,1,2,2)
;;=K:$P(^IBT(356.399,DA,0),U,2) ^IBT(356.399,"ACB",X,$P(^(0),U,2),DA)
;;^DD(356.399,.01,1,2,"%D",0)
;;=^^2^2^2940213^
;;^DD(356.399,.01,1,2,"%D",1,0)
;;=Cross reference of bills and claims tracking entries. Used to find
;;^DD(356.399,.01,1,2,"%D",2,0)
;;=all bills associated with a claims tracking entry.
;;^DD(356.399,.01,1,2,"DT")
;;=2930802
;;^DD(356.399,.01,3)
;;=The Claims Tracking ID to cross-reference with Bill Numbers.
;;^DD(356.399,.01,21,0)
;;=^^1^1^2931128^^^^
;;^DD(356.399,.01,21,1,0)
;;=This is the Claims Tracking entry that is associated with this bill.
;;^DD(356.399,.01,"DT")
;;=2930802
;;^DD(356.399,.02,0)
;;=BILL NUMBER^RP399'^DGCR(399,^0;2^Q
;;^DD(356.399,.02,1,0)
;;=^.1
;;^DD(356.399,.02,1,1,0)
;;=356.399^ACB^MUMPS
;;^DD(356.399,.02,1,1,1)
;;=S:$P(^IBT(356.399,DA,0),U,1) ^IBT(356.399,"ACB",+^(0),X,DA)=""
;;^DD(356.399,.02,1,1,2)
;;=K:$P(^IBT(356.399,DA,0),U,1) ^IBT(356.399,"ACB",+^(0),X,DA)
;;^DD(356.399,.02,1,1,"%D",0)
;;=^^1^1^2930802^
;;^DD(356.399,.02,1,1,"%D",1,0)
;;=Cross-reference of claims events and bills.
;;^DD(356.399,.02,1,1,"DT")
;;=2930802
;;^DD(356.399,.02,1,2,0)
;;=356.399^C
;;^DD(356.399,.02,1,2,1)
;;=S ^IBT(356.399,"C",$E(X,1,30),DA)=""
;;^DD(356.399,.02,1,2,2)
;;=K ^IBT(356.399,"C",$E(X,1,30),DA)
;;^DD(356.399,.02,1,2,"DT")
;;=2931029
;;^DD(356.399,.02,1,3,0)
;;=^^TRIGGER^356^.11
;;^DD(356.399,.02,1,3,1)
;;=X ^DD(356.399,.02,1,3,1.3) I X S X=DIV X ^DD(356.399,.02,1,3,89.2) S X=$S('$D(^DGCR(399,+$P(Y(101),U,11),0)):"",1:$P(^(0),U,1)) S D0=I(0,0) S DIU=X K Y X ^DD(356.399,.02,1,3,1.1) X ^DD(356.399,.02,1,3,1.4)
;;^DD(356.399,.02,1,3,1.1)
;;=S X=DIV S X=$P(^IBT(356.399,DA,0),U,2)
;;^DD(356.399,.02,1,3,1.3)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X X ^DD(356.399,.02,1,3,69.2) S X=$S('$D(^DGCR(399,+$P(Y(101),U,11),0)):"",1:$P(^(0),U,1))="" S D0=I(0,0)
IBINI06H ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(356.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(356.399,0,"GL")
+2 ;;=^IBT(356.399,
+3 ;;^DIC("B","CLAIMS TRACKING/BILL",356.399)
+4 ;;=
+5 ;;^DIC(356.399,"%D",0)
+6 ;;=^^8^8^2940214^^
+7 ;;^DIC(356.399,"%D",1,0)
+8 ;;=This file serves as a bridge between Claims Tracking and the Bill Claims
+9 ;;^DIC(356.399,"%D",2,0)
+10 ;;=file. An entry is created automatically by the billing module to link
+11 ;;^DIC(356.399,"%D",3,0)
+12 ;;=the events being billed to the claims tracking entry. It serves as a
+13 ;;^DIC(356.399,"%D",4,0)
+14 ;;=cross-reference in a many to many relationship for the entries in these
+15 ;;^DIC(356.399,"%D",5,0)
+16 ;;=two files. Entries should not normally be added or edited manualy in
+17 ;;^DIC(356.399,"%D",6,0)
+18 ;;=this file. It should be maintained by the Billing Module.
+19 ;;^DIC(356.399,"%D",7,0)
+20 ;;=
+21 ;;^DIC(356.399,"%D",8,0)
+22 ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
+23 ;;^DD(356.399,0)
+24 ;;=FIELD^^.02^2
+25 ;;^DD(356.399,0,"DDA")
+26 ;;=N
+27 ;;^DD(356.399,0,"DT")
+28 ;;=2930726
+29 ;;^DD(356.399,0,"ID",.02)
+30 ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^DGCR(399,+$P(^(0),U,2),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(399,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
+31 ;;^DD(356.399,0,"IX","ACB",356.399,.02)
+32 ;;=
+33 ;;^DD(356.399,0,"IX","ACB1",356.399,.01)
+34 ;;=
+35 ;;^DD(356.399,0,"IX","B",356.399,.01)
+36 ;;=
+37 ;;^DD(356.399,0,"IX","C",356.399,.02)
+38 ;;=
+39 ;;^DD(356.399,0,"NM","CLAIMS TRACKING/BILL")
+40 ;;=
+41 ;;^DD(356.399,.01,0)
+42 ;;=CLAIM TRACKING ID^RP356'^IBT(356,^0;1^Q
+43 ;;^DD(356.399,.01,1,0)
+44 ;;=^.1
+45 ;;^DD(356.399,.01,1,1,0)
+46 ;;=356.399^B
+47 ;;^DD(356.399,.01,1,1,1)
+48 ;;=S ^IBT(356.399,"B",$E(X,1,30),DA)=""
+49 ;;^DD(356.399,.01,1,1,2)
+50 ;;=K ^IBT(356.399,"B",$E(X,1,30),DA)
+51 ;;^DD(356.399,.01,1,2,0)
+52 ;;=356.399^ACB1^MUMPS
+53 ;;^DD(356.399,.01,1,2,1)
+54 ;;=S:$P(^IBT(356.399,DA,0),U,2) ^IBT(356.399,"ACB",X,$P(^(0),U,2),DA)=""
+55 ;;^DD(356.399,.01,1,2,2)
+56 ;;=K:$P(^IBT(356.399,DA,0),U,2) ^IBT(356.399,"ACB",X,$P(^(0),U,2),DA)
+57 ;;^DD(356.399,.01,1,2,"%D",0)
+58 ;;=^^2^2^2940213^
+59 ;;^DD(356.399,.01,1,2,"%D",1,0)
+60 ;;=Cross reference of bills and claims tracking entries. Used to find
+61 ;;^DD(356.399,.01,1,2,"%D",2,0)
+62 ;;=all bills associated with a claims tracking entry.
+63 ;;^DD(356.399,.01,1,2,"DT")
+64 ;;=2930802
+65 ;;^DD(356.399,.01,3)
+66 ;;=The Claims Tracking ID to cross-reference with Bill Numbers.
+67 ;;^DD(356.399,.01,21,0)
+68 ;;=^^1^1^2931128^^^^
+69 ;;^DD(356.399,.01,21,1,0)
+70 ;;=This is the Claims Tracking entry that is associated with this bill.
+71 ;;^DD(356.399,.01,"DT")
+72 ;;=2930802
+73 ;;^DD(356.399,.02,0)
+74 ;;=BILL NUMBER^RP399'^DGCR(399,^0;2^Q
+75 ;;^DD(356.399,.02,1,0)
+76 ;;=^.1
+77 ;;^DD(356.399,.02,1,1,0)
+78 ;;=356.399^ACB^MUMPS
+79 ;;^DD(356.399,.02,1,1,1)
+80 ;;=S:$P(^IBT(356.399,DA,0),U,1) ^IBT(356.399,"ACB",+^(0),X,DA)=""
+81 ;;^DD(356.399,.02,1,1,2)
+82 ;;=K:$P(^IBT(356.399,DA,0),U,1) ^IBT(356.399,"ACB",+^(0),X,DA)
+83 ;;^DD(356.399,.02,1,1,"%D",0)
+84 ;;=^^1^1^2930802^
+85 ;;^DD(356.399,.02,1,1,"%D",1,0)
+86 ;;=Cross-reference of claims events and bills.
+87 ;;^DD(356.399,.02,1,1,"DT")
+88 ;;=2930802
+89 ;;^DD(356.399,.02,1,2,0)
+90 ;;=356.399^C
+91 ;;^DD(356.399,.02,1,2,1)
+92 ;;=S ^IBT(356.399,"C",$E(X,1,30),DA)=""
+93 ;;^DD(356.399,.02,1,2,2)
+94 ;;=K ^IBT(356.399,"C",$E(X,1,30),DA)
+95 ;;^DD(356.399,.02,1,2,"DT")
+96 ;;=2931029
+97 ;;^DD(356.399,.02,1,3,0)
+98 ;;=^^TRIGGER^356^.11
+99 ;;^DD(356.399,.02,1,3,1)
+100 ;;=X ^DD(356.399,.02,1,3,1.3) I X S X=DIV X ^DD(356.399,.02,1,3,89.2) S X=$S('$D(^DGCR(399,+$P(Y(101),U,11),0)):"",1:$P(^(0),U,1)) S D0=I(0,0) S DIU=X K Y X ^DD(356.399,.02,1,3,1.1) X ^DD(356.399,.02,1,3,1.4)
+101 ;;^DD(356.399,.02,1,3,1.1)
+102 ;;=S X=DIV S X=$P(^IBT(356.399,DA,0),U,2)
+103 ;;^DD(356.399,.02,1,3,1.3)
+104 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X X ^DD(356.399,.02,1,3,69.2) S X=$S('$D(^DGCR(399,+$P(Y(101),U,11),0)):"",1:$P(^(0),U,1))="" S D0=I(0,0)