IBINI09N ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(362.3) 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(362.3,0,"GL")
;;=^IBA(362.3,
;;^DIC("B","IB BILL/CLAIMS DIAGNOSIS",362.3)
;;=
;;^DIC(362.3,"%D",0)
;;=^^3^3^2940214^^^^
;;^DIC(362.3,"%D",1,0)
;;=This file contains all diagnoses for bills in the Bill/Claims file.
;;^DIC(362.3,"%D",2,0)
;;=
;;^DIC(362.3,"%D",3,0)
;;=Per VHA Directive 10-93-142, this file definition should not be modified.
;;^DD(362.3,0)
;;=FIELD^^.01^3
;;^DD(362.3,0,"DDA")
;;=N
;;^DD(362.3,0,"DT")
;;=2931229
;;^DD(362.3,0,"ID",.02)
;;=W ""
;;^DD(362.3,0,"IX","AIFN",362.3,.01)
;;=
;;^DD(362.3,0,"IX","AIFN1",362.3,.02)
;;=
;;^DD(362.3,0,"IX","AO",362.3,.02)
;;=
;;^DD(362.3,0,"IX","AO1",362.3,.03)
;;=
;;^DD(362.3,0,"IX","B",362.3,.01)
;;=
;;^DD(362.3,0,"NM","IB BILL/CLAIMS DIAGNOSIS")
;;=
;;^DD(362.3,0,"PT",399.0304,10)
;;=
;;^DD(362.3,0,"PT",399.0304,11)
;;=
;;^DD(362.3,0,"PT",399.0304,12)
;;=
;;^DD(362.3,0,"PT",399.0304,13)
;;=
;;^DD(362.3,.01,0)
;;=DIAGNOSIS^R*P80'^ICD9(^0;1^S DIC("S")="I '$P(^(0),U,9),'$$DXDUP^IBCU1(+Y,$G(DA)),$$DXBSTAT^IBCU1($G(DA))<3" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(362.3,.01,1,0)
;;=^.1^^-1
;;^DD(362.3,.01,1,1,0)
;;=362.3^B
;;^DD(362.3,.01,1,1,1)
;;=S ^IBA(362.3,"B",$E(X,1,30),DA)=""
;;^DD(362.3,.01,1,1,2)
;;=K ^IBA(362.3,"B",$E(X,1,30),DA)
;;^DD(362.3,.01,1,2,0)
;;=362.3^AIFN^MUMPS
;;^DD(362.3,.01,1,2,1)
;;=S:+$P(^IBA(362.3,DA,0),U,2) ^IBA(362.3,"AIFN"_+$P(^(0),U,2),+X,DA)=""
;;^DD(362.3,.01,1,2,2)
;;=K:+$P(^IBA(362.3,DA,0),U,2) ^IBA(362.3,"AIFN"_+$P(^(0),U,2),+X,DA)
;;^DD(362.3,.01,1,2,"%D",0)
;;=^^2^2^2940214^^^^
;;^DD(362.3,.01,1,2,"%D",1,0)
;;=Special x-ref set up specifically to provide a regular x-ref of a bill and
;;^DD(362.3,.01,1,2,"%D",2,0)
;;=all it's diagnoses for easy look-up.
;;^DD(362.3,.01,1,2,"DT")
;;=2931117
;;^DD(362.3,.01,3)
;;=Enter a diagnosis for this bill. Duplicates are not allowed.
;;^DD(362.3,.01,4)
;;=D HELP^IBCSC4D
;;^DD(362.3,.01,12)
;;=Only active diagnosis, no duplicates for a bill, and bill must not be authorized or cancelled.
;;^DD(362.3,.01,12.1)
;;=S DIC("S")="I '$P(^(0),U,9),'$$DXDUP^IBCU1(+Y,$G(DA)),$$DXBSTAT^IBCU1($G(DA))<3"
;;^DD(362.3,.01,21,0)
;;=^^1^1^2931123^^^^
;;^DD(362.3,.01,21,1,0)
;;=Enter an active diagnosis for this bill.
;;^DD(362.3,.01,23,0)
;;=^^1^1^2931123^^^^
;;^DD(362.3,.01,23,1,0)
;;=All diagnosis for a bill are stored here, beginning with IB v2.0.
;;^DD(362.3,.01,"DT")
;;=2931123
;;^DD(362.3,.02,0)
;;=BILL NUMBER^R*P399'^DGCR(399,^0;2^S DIC("S")="I $P(^(0),U,13)<3" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(362.3,.02,1,0)
;;=^.1
;;^DD(362.3,.02,1,1,0)
;;=362.3^AIFN1^MUMPS
;;^DD(362.3,.02,1,1,1)
;;=S ^IBA(362.3,"AIFN"_X,+^IBA(362.3,DA,0),DA)=""
;;^DD(362.3,.02,1,1,2)
;;=K ^IBA(362.3,"AIFN"_X,+^IBA(362.3,DA,0),DA)
;;^DD(362.3,.02,1,1,"%D",0)
;;=^^2^2^2940214^^^
;;^DD(362.3,.02,1,1,"%D",1,0)
;;=Special x-ref set up specifically to provide a regular x-ref of a bill and
;;^DD(362.3,.02,1,1,"%D",2,0)
;;=all it's diagnoses for easy look-up.
;;^DD(362.3,.02,1,1,"DT")
;;=2931117
;;^DD(362.3,.02,1,2,0)
;;=362.3^AO^MUMPS
;;^DD(362.3,.02,1,2,1)
;;=S:+$P(^IBA(362.3,DA,0),U,3) ^IBA(362.3,"AO",+X,+$P(^(0),U,3),DA)=""
;;^DD(362.3,.02,1,2,2)
;;=K:+$P(^IBA(362.3,DA,0),U,3) ^IBA(362.3,"AO",+X,+$P(^(0),U,3),DA)
;;^DD(362.3,.02,1,2,"%D",0)
;;=^^1^1^2931117^
;;^DD(362.3,.02,1,2,"%D",1,0)
;;=Print order by bill, used to prevent duplicate print orders for a bill.
;;^DD(362.3,.02,1,2,"DT")
;;=2931117
;;^DD(362.3,.02,1,3,0)
;;=^^TRIGGER^362.3^.03
;;^DD(362.3,.02,1,3,1)
;;~K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^IBA(362.3,D0,0)):^(0),1:"") S X=$P(Y(1),U,3)="" I X S X=DIV S Y(1)=$S($D(^IBA(362.3,D0,0)):^(0),1:"") S X=$
;;=P(Y(1),U,3),X=X S DIU=X K Y S X=DIV S X=$$ORDNXT^IBCU1(+X) X ^DD(362.3,.02,1,3,1.4)
IBINI09N ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(362.3)
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(362.3,0,"GL")
+2 ;;=^IBA(362.3,
+3 ;;^DIC("B","IB BILL/CLAIMS DIAGNOSIS",362.3)
+4 ;;=
+5 ;;^DIC(362.3,"%D",0)
+6 ;;=^^3^3^2940214^^^^
+7 ;;^DIC(362.3,"%D",1,0)
+8 ;;=This file contains all diagnoses for bills in the Bill/Claims file.
+9 ;;^DIC(362.3,"%D",2,0)
+10 ;;=
+11 ;;^DIC(362.3,"%D",3,0)
+12 ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
+13 ;;^DD(362.3,0)
+14 ;;=FIELD^^.01^3
+15 ;;^DD(362.3,0,"DDA")
+16 ;;=N
+17 ;;^DD(362.3,0,"DT")
+18 ;;=2931229
+19 ;;^DD(362.3,0,"ID",.02)
+20 ;;=W ""
+21 ;;^DD(362.3,0,"IX","AIFN",362.3,.01)
+22 ;;=
+23 ;;^DD(362.3,0,"IX","AIFN1",362.3,.02)
+24 ;;=
+25 ;;^DD(362.3,0,"IX","AO",362.3,.02)
+26 ;;=
+27 ;;^DD(362.3,0,"IX","AO1",362.3,.03)
+28 ;;=
+29 ;;^DD(362.3,0,"IX","B",362.3,.01)
+30 ;;=
+31 ;;^DD(362.3,0,"NM","IB BILL/CLAIMS DIAGNOSIS")
+32 ;;=
+33 ;;^DD(362.3,0,"PT",399.0304,10)
+34 ;;=
+35 ;;^DD(362.3,0,"PT",399.0304,11)
+36 ;;=
+37 ;;^DD(362.3,0,"PT",399.0304,12)
+38 ;;=
+39 ;;^DD(362.3,0,"PT",399.0304,13)
+40 ;;=
+41 ;;^DD(362.3,.01,0)
+42 ;;=DIAGNOSIS^R*P80'^ICD9(^0;1^S DIC("S")="I '$P(^(0),U,9),'$$DXDUP^IBCU1(+Y,$G(DA)),$$DXBSTAT^IBCU1($G(DA))<3" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+43 ;;^DD(362.3,.01,1,0)
+44 ;;=^.1^^-1
+45 ;;^DD(362.3,.01,1,1,0)
+46 ;;=362.3^B
+47 ;;^DD(362.3,.01,1,1,1)
+48 ;;=S ^IBA(362.3,"B",$E(X,1,30),DA)=""
+49 ;;^DD(362.3,.01,1,1,2)
+50 ;;=K ^IBA(362.3,"B",$E(X,1,30),DA)
+51 ;;^DD(362.3,.01,1,2,0)
+52 ;;=362.3^AIFN^MUMPS
+53 ;;^DD(362.3,.01,1,2,1)
+54 ;;=S:+$P(^IBA(362.3,DA,0),U,2) ^IBA(362.3,"AIFN"_+$P(^(0),U,2),+X,DA)=""
+55 ;;^DD(362.3,.01,1,2,2)
+56 ;;=K:+$P(^IBA(362.3,DA,0),U,2) ^IBA(362.3,"AIFN"_+$P(^(0),U,2),+X,DA)
+57 ;;^DD(362.3,.01,1,2,"%D",0)
+58 ;;=^^2^2^2940214^^^^
+59 ;;^DD(362.3,.01,1,2,"%D",1,0)
+60 ;;=Special x-ref set up specifically to provide a regular x-ref of a bill and
+61 ;;^DD(362.3,.01,1,2,"%D",2,0)
+62 ;;=all it's diagnoses for easy look-up.
+63 ;;^DD(362.3,.01,1,2,"DT")
+64 ;;=2931117
+65 ;;^DD(362.3,.01,3)
+66 ;;=Enter a diagnosis for this bill. Duplicates are not allowed.
+67 ;;^DD(362.3,.01,4)
+68 ;;=D HELP^IBCSC4D
+69 ;;^DD(362.3,.01,12)
+70 ;;=Only active diagnosis, no duplicates for a bill, and bill must not be authorized or cancelled.
+71 ;;^DD(362.3,.01,12.1)
+72 ;;=S DIC("S")="I '$P(^(0),U,9),'$$DXDUP^IBCU1(+Y,$G(DA)),$$DXBSTAT^IBCU1($G(DA))<3"
+73 ;;^DD(362.3,.01,21,0)
+74 ;;=^^1^1^2931123^^^^
+75 ;;^DD(362.3,.01,21,1,0)
+76 ;;=Enter an active diagnosis for this bill.
+77 ;;^DD(362.3,.01,23,0)
+78 ;;=^^1^1^2931123^^^^
+79 ;;^DD(362.3,.01,23,1,0)
+80 ;;=All diagnosis for a bill are stored here, beginning with IB v2.0.
+81 ;;^DD(362.3,.01,"DT")
+82 ;;=2931123
+83 ;;^DD(362.3,.02,0)
+84 ;;=BILL NUMBER^R*P399'^DGCR(399,^0;2^S DIC("S")="I $P(^(0),U,13)<3" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+85 ;;^DD(362.3,.02,1,0)
+86 ;;=^.1
+87 ;;^DD(362.3,.02,1,1,0)
+88 ;;=362.3^AIFN1^MUMPS
+89 ;;^DD(362.3,.02,1,1,1)
+90 ;;=S ^IBA(362.3,"AIFN"_X,+^IBA(362.3,DA,0),DA)=""
+91 ;;^DD(362.3,.02,1,1,2)
+92 ;;=K ^IBA(362.3,"AIFN"_X,+^IBA(362.3,DA,0),DA)
+93 ;;^DD(362.3,.02,1,1,"%D",0)
+94 ;;=^^2^2^2940214^^^
+95 ;;^DD(362.3,.02,1,1,"%D",1,0)
+96 ;;=Special x-ref set up specifically to provide a regular x-ref of a bill and
+97 ;;^DD(362.3,.02,1,1,"%D",2,0)
+98 ;;=all it's diagnoses for easy look-up.
+99 ;;^DD(362.3,.02,1,1,"DT")
+100 ;;=2931117
+101 ;;^DD(362.3,.02,1,2,0)
+102 ;;=362.3^AO^MUMPS
+103 ;;^DD(362.3,.02,1,2,1)
+104 ;;=S:+$P(^IBA(362.3,DA,0),U,3) ^IBA(362.3,"AO",+X,+$P(^(0),U,3),DA)=""
+105 ;;^DD(362.3,.02,1,2,2)
+106 ;;=K:+$P(^IBA(362.3,DA,0),U,3) ^IBA(362.3,"AO",+X,+$P(^(0),U,3),DA)
+107 ;;^DD(362.3,.02,1,2,"%D",0)
+108 ;;=^^1^1^2931117^
+109 ;;^DD(362.3,.02,1,2,"%D",1,0)
+110 ;;=Print order by bill, used to prevent duplicate print orders for a bill.
+111 ;;^DD(362.3,.02,1,2,"DT")
+112 ;;=2931117
+113 ;;^DD(362.3,.02,1,3,0)
+114 ;;=^^TRIGGER^362.3^.03
+115 ;;^DD(362.3,.02,1,3,1)
+116 ;;~K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^IBA(362.3,D0,0)):^(0),1:"") S X=$P(Y(1),U,3)="" I X S X=DIV S Y(1)=$S($D(^IBA(362.3,D0,0)):^(0),1:"") S X=$
+117 ;;=P(Y(1),U,3),X=X S DIU=X K Y S X=DIV S X=$$ORDNXT^IBCU1(+X) X ^DD(362.3,.02,1,3,1.4)