IBINI0CZ ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
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
;;^UTILITY(U,$J,"DIPT",840,0)
;;=IB CPT RG DISPLAY^2920206.0912^@^409.71^10882^@^2920708
;;^UTILITY(U,$J,"DIPT",840,"%D",0)
;;=^^1^1^2920708^^^
;;^UTILITY(U,$J,"DIPT",840,"%D",1,0)
;;=Displays billing medicare rate group data for a procedure.
;;^UTILITY(U,$J,"DIPT",840,"DXS",1,9)
;;=S I(0,0)=$S($D(D0):D0,1:""),DIP(1)=$S($D(^SD(409.71,D0,0)):^(0),1:""),D0=$P(DIP(1),U,1) S:'$D(^ICPT(+D0,0)) D0=-1 X DXS(1,9.2):D0>0 S X="" S D0=I(0,0)
;;^UTILITY(U,$J,"DIPT",840,"DXS",1,9.2)
;;=S I(100)="^ICPT(",J(100)=81 F D=0:0 S (D,D1)=$N(^ICPT(D0,"D",D)) Q:D'>0 I $D(^(D,0))#2 S X=$P(^(0),U,1) X DICMX Q:'$D(D) S D=D1
;;^UTILITY(U,$J,"DIPT",840,"DXS",2,9.2)
;;=F D=0:0 S (D,D0)=$N(^IBE(350.4,"C",I(0,0),D)) Q:D'>0 I $D(^IBE(350.4,D,0)) S X=$P(^(0),U,1),Y=X D D^DIQ S X=Y S DIXX=DIXX(1) D M Q:'$D(D) S D=D0
;;^UTILITY(U,$J,"DIPT",840,"DXS",3,9.2)
;;=S DIP(101)=$S($D(^IBE(350.4,D0,0)):^(0),1:"") S X=$S('$D(^IBE(350.1,+$P(DIP(101),U,3),0)):"",1:$P(^(0),U,1)),DIP(102)=X S X=" ",DIP(103)=X S X=2,DIP(104)=X S X=999
;;^UTILITY(U,$J,"DIPT",840,"DXS",4,9)
;;=S IBDTX=$P(^IBE(350.4,D0,0),U,1) S:$D(IBDIV) IBDIVX=IBDIV D FMCD^IBEFUNC1 W:$D(^DG(40.8,+IBDIVX,0)) $E($P(^DG(40.8,+IBDIVX,0),U,1),1,15)
;;^UTILITY(U,$J,"DIPT",840,"DXS",5,9)
;;=S IBCDX=$P(^IBE(350.4,D0,0),U,2) D FCC^IBEFUNC1 W:IBCHGX'="" $J(IBCHGX,8,2) K IBDTX,IBDIVX,IBCDX,IBCHGX
;;^UTILITY(U,$J,"DIPT",840,"DXS",6,0)
;;=INACTIVE
;;^UTILITY(U,$J,"DIPT",840,"DXS",6,1)
;;=ACTIVE
;;^UTILITY(U,$J,"DIPT",840,"F",1)
;;="CPT/HCFA Code";C1;S1~"Current OPC Status";C63~"--------------";C1~"------------------";C63~.01;C1;""~
;;^UTILITY(U,$J,"DIPT",840,"F",2)
;;=X $P(^DD(409.71,.015,0),U,5,99) S DIP(1)=X S X="- "_DIP(1) W X K DIP;C7;"";Z;""- "_SHORT NAME"~205;"";C50;R31~
;;^UTILITY(U,$J,"DIPT",840,"F",3)
;;=X DXS(1,9) W X K DIP;C5;S1;"";m;Z;"CODE:DESCRIPTION"~"Effective Date";C2;S1~"Billing Status";C18~"Billing Group";C34~"Division";C56~"Charge";C74~
;;^UTILITY(U,$J,"DIPT",840,"F",4)
;;="--------------";C2~"--------------";C18~"--------------";C34~"--------";C56~"------";C74~
;;^UTILITY(U,$J,"DIPT",840,"F",5)
;;=-350.4,^IBE(350.4,^1^S I(0,0)=$S($D(D0):D0,1:"") X DXS(2,9.2) S X="" S D0=I(0,0);Z;"BILLABLE AMBULATORY SURGICAL:"~-350.4,.01;C2;""~-350.4,.04;C18;""~
;;^UTILITY(U,$J,"DIPT",840,"F",6)
;;=-350.4,X DXS(3,9.2) S X=$P(DIP(102),DIP(103),DIP(104),X) W X K DIP;C34;L19;"";Z;"$P(RATE GROUP," ",2,999)"~
;;^UTILITY(U,$J,"DIPT",840,"F",7)
;;=-350.4,X DXS(4,9);C56;"";Z;"S IBDTX=$P(^IBE(350.4,D0,0),U,1) S:$D(IBDIV) IBDIVX=IBDIV D FMCD^IBEFUNC1 W:$D(^DG(40.8,+IBDIVX,0)) $E($P(^DG(40.8,+IBDIVX,0),U,1),1,15)"~
;;^UTILITY(U,$J,"DIPT",840,"F",8)
;;=-350.4,X DXS(5,9);C72;X;"";Z;"S IBCDX=$P(^IBE(350.4,D0,0),U,2) D FCC^IBEFUNC1 W:IBCHGX'="" $J(IBCHGX,8,2) K IBDTX,IBDIVX,IBCDX,IBCHGX"~
;;^UTILITY(U,$J,"DIPT",840,"F",9)
;;=S X="-",DIP(1)=X,DIP(2)=X,X=$S($D(IOM):IOM,1:80) S X=X,X1=DIP(1) S %=X,X="" Q:X1="" S $P(X,X1,%\$L(X1)+1)=X1,X=$E(X,1,%) W X K DIP;C1;S1;X;Z;"DUP("-",IOM)"~
;;^UTILITY(U,$J,"DIPT",840,"H")
;;=AMBULATORY PROCEDURE BILLING LIST
;;^UTILITY(U,$J,"DIPT",840,"IOM")
;;=80
;;^UTILITY(U,$J,"DIPT",840,"LAST")
;;=
;;^UTILITY(U,$J,"DIPT",840,"ROU")
;;=^IBXCPTR
;;^UTILITY(U,$J,"DIPT",840,"ROUOLD")
;;=IBXCPTR
;;^UTILITY(U,$J,"DIPT",841,0)
;;=IB DIVISION DISPLAY^2920205.1722^@^40.8^10882^@^2930406
;;^UTILITY(U,$J,"DIPT",841,"%D",0)
;;=^^1^1^2920708^
;;^UTILITY(U,$J,"DIPT",841,"%D",1,0)
;;=Displays wage rates and locality modifer data for a division.
;;^UTILITY(U,$J,"DIPT",841,"DXS",1,9.2)
;;=F D=0:0 S (D,D0)=$N(^IBE(350.5,"C",I(0,0),D)) Q:D'>0 I $D(^IBE(350.5,D,0)) S X=$P(^(0),U,1),Y=X D D^DIQ S X=Y S DIXX=DIXX(1) D M Q:'$D(D) S D=D0
IBINI0CZ ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 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 ;;^UTILITY(U,$J,"DIPT",840,0)
+2 ;;=IB CPT RG DISPLAY^2920206.0912^@^409.71^10882^@^2920708
+3 ;;^UTILITY(U,$J,"DIPT",840,"%D",0)
+4 ;;=^^1^1^2920708^^^
+5 ;;^UTILITY(U,$J,"DIPT",840,"%D",1,0)
+6 ;;=Displays billing medicare rate group data for a procedure.
+7 ;;^UTILITY(U,$J,"DIPT",840,"DXS",1,9)
+8 ;;=S I(0,0)=$S($D(D0):D0,1:""),DIP(1)=$S($D(^SD(409.71,D0,0)):^(0),1:""),D0=$P(DIP(1),U,1) S:'$D(^ICPT(+D0,0)) D0=-1 X DXS(1,9.2):D0>0 S X="" S D0=I(0,0)
+9 ;;^UTILITY(U,$J,"DIPT",840,"DXS",1,9.2)
+10 ;;=S I(100)="^ICPT(",J(100)=81 F D=0:0 S (D,D1)=$N(^ICPT(D0,"D",D)) Q:D'>0 I $D(^(D,0))#2 S X=$P(^(0),U,1) X DICMX Q:'$D(D) S D=D1
+11 ;;^UTILITY(U,$J,"DIPT",840,"DXS",2,9.2)
+12 ;;=F D=0:0 S (D,D0)=$N(^IBE(350.4,"C",I(0,0),D)) Q:D'>0 I $D(^IBE(350.4,D,0)) S X=$P(^(0),U,1),Y=X D D^DIQ S X=Y S DIXX=DIXX(1) D M Q:'$D(D) S D=D0
+13 ;;^UTILITY(U,$J,"DIPT",840,"DXS",3,9.2)
+14 ;;=S DIP(101)=$S($D(^IBE(350.4,D0,0)):^(0),1:"") S X=$S('$D(^IBE(350.1,+$P(DIP(101),U,3),0)):"",1:$P(^(0),U,1)),DIP(102)=X S X=" ",DIP(103)=X S X=2,DIP(104)=X S X=999
+15 ;;^UTILITY(U,$J,"DIPT",840,"DXS",4,9)
+16 ;;=S IBDTX=$P(^IBE(350.4,D0,0),U,1) S:$D(IBDIV) IBDIVX=IBDIV D FMCD^IBEFUNC1 W:$D(^DG(40.8,+IBDIVX,0)) $E($P(^DG(40.8,+IBDIVX,0),U,1),1,15)
+17 ;;^UTILITY(U,$J,"DIPT",840,"DXS",5,9)
+18 ;;=S IBCDX=$P(^IBE(350.4,D0,0),U,2) D FCC^IBEFUNC1 W:IBCHGX'="" $J(IBCHGX,8,2) K IBDTX,IBDIVX,IBCDX,IBCHGX
+19 ;;^UTILITY(U,$J,"DIPT",840,"DXS",6,0)
+20 ;;=INACTIVE
+21 ;;^UTILITY(U,$J,"DIPT",840,"DXS",6,1)
+22 ;;=ACTIVE
+23 ;;^UTILITY(U,$J,"DIPT",840,"F",1)
+24 ;;="CPT/HCFA Code";C1;S1~"Current OPC Status";C63~"--------------";C1~"------------------";C63~.01;C1;""~
+25 ;;^UTILITY(U,$J,"DIPT",840,"F",2)
+26 ;;=X $P(^DD(409.71,.015,0),U,5,99) S DIP(1)=X S X="- "_DIP(1) W X K DIP;C7;"";Z;""- "_SHORT NAME"~205;"";C50;R31~
+27 ;;^UTILITY(U,$J,"DIPT",840,"F",3)
+28 ;;=X DXS(1,9) W X K DIP;C5;S1;"";m;Z;"CODE:DESCRIPTION"~"Effective Date";C2;S1~"Billing Status";C18~"Billing Group";C34~"Division";C56~"Charge";C74~
+29 ;;^UTILITY(U,$J,"DIPT",840,"F",4)
+30 ;;="--------------";C2~"--------------";C18~"--------------";C34~"--------";C56~"------";C74~
+31 ;;^UTILITY(U,$J,"DIPT",840,"F",5)
+32 ;;=-350.4,^IBE(350.4,^1^S I(0,0)=$S($D(D0):D0,1:"") X DXS(2,9.2) S X="" S D0=I(0,0);Z;"BILLABLE AMBULATORY SURGICAL:"~-350.4,.01;C2;""~-350.4,.04;C18;""~
+33 ;;^UTILITY(U,$J,"DIPT",840,"F",6)
+34 ;;=-350.4,X DXS(3,9.2) S X=$P(DIP(102),DIP(103),DIP(104),X) W X K DIP;C34;L19;"";Z;"$P(RATE GROUP," ",2,999)"~
+35 ;;^UTILITY(U,$J,"DIPT",840,"F",7)
+36 ;;=-350.4,X DXS(4,9);C56;"";Z;"S IBDTX=$P(^IBE(350.4,D0,0),U,1) S:$D(IBDIV) IBDIVX=IBDIV D FMCD^IBEFUNC1 W:$D(^DG(40.8,+IBDIVX,0)) $E($P(^DG(40.8,+IBDIVX,0),U,1),1,15)"~
+37 ;;^UTILITY(U,$J,"DIPT",840,"F",8)
+38 ;;=-350.4,X DXS(5,9);C72;X;"";Z;"S IBCDX=$P(^IBE(350.4,D0,0),U,2) D FCC^IBEFUNC1 W:IBCHGX'="" $J(IBCHGX,8,2) K IBDTX,IBDIVX,IBCDX,IBCHGX"~
+39 ;;^UTILITY(U,$J,"DIPT",840,"F",9)
+40 ;;=S X="-",DIP(1)=X,DIP(2)=X,X=$S($D(IOM):IOM,1:80) S X=X,X1=DIP(1) S %=X,X="" Q:X1="" S $P(X,X1,%\$L(X1)+1)=X1,X=$E(X,1,%) W X K DIP;C1;S1;X;Z;"DUP("-",IOM)"~
+41 ;;^UTILITY(U,$J,"DIPT",840,"H")
+42 ;;=AMBULATORY PROCEDURE BILLING LIST
+43 ;;^UTILITY(U,$J,"DIPT",840,"IOM")
+44 ;;=80
+45 ;;^UTILITY(U,$J,"DIPT",840,"LAST")
+46 ;;=
+47 ;;^UTILITY(U,$J,"DIPT",840,"ROU")
+48 ;;=^IBXCPTR
+49 ;;^UTILITY(U,$J,"DIPT",840,"ROUOLD")
+50 ;;=IBXCPTR
+51 ;;^UTILITY(U,$J,"DIPT",841,0)
+52 ;;=IB DIVISION DISPLAY^2920205.1722^@^40.8^10882^@^2930406
+53 ;;^UTILITY(U,$J,"DIPT",841,"%D",0)
+54 ;;=^^1^1^2920708^
+55 ;;^UTILITY(U,$J,"DIPT",841,"%D",1,0)
+56 ;;=Displays wage rates and locality modifer data for a division.
+57 ;;^UTILITY(U,$J,"DIPT",841,"DXS",1,9.2)
+58 ;;=F D=0:0 S (D,D0)=$N(^IBE(350.5,"C",I(0,0),D)) Q:D'>0 I $D(^IBE(350.5,D,0)) S X=$P(^(0),U,1),Y=X D D^DIQ S X=Y S DIXX=DIXX(1) D M Q:'$D(D) S D=D0