IBINI0AS ; ; 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
;;^DD(399.0304,3,1,0)
;;=^.1
;;^DD(399.0304,3,1,1,0)
;;=399.0304^D
;;^DD(399.0304,3,1,1,1)
;;=S ^DGCR(399,DA(1),"CP","D",$E(X,1,30),DA)=""
;;^DD(399.0304,3,1,1,2)
;;=K ^DGCR(399,DA(1),"CP","D",$E(X,1,30),DA)
;;^DD(399.0304,3,1,1,"DT")
;;=2911030
;;^DD(399.0304,3,3)
;;=Type a Number between 1 and 99, 0 Decimal Digits
;;^DD(399.0304,3,21,0)
;;=^^3^3^2940120^^^^
;;^DD(399.0304,3,21,1,0)
;;=This is the relative order that this procedure will appear on the
;;^DD(399.0304,3,21,2,0)
;;=bill. The lowest numbers will appear on the UB forms in the blocks
;;^DD(399.0304,3,21,3,0)
;;=for procedure. The highest numbers will appear as additional procedures.
;;^DD(399.0304,3,"DT")
;;=2911030
;;^DD(399.0304,4,0)
;;=BASC BILLABLE^S^1:YES;^0;5^Q
;;^DD(399.0304,4,1,0)
;;=^.1
;;^DD(399.0304,4,1,1,0)
;;=399.0304^AREV7^MUMPS
;;^DD(399.0304,4,1,1,1)
;;=S DGRVRCAL=1
;;^DD(399.0304,4,1,1,2)
;;=S DGRVRCAL=2
;;^DD(399.0304,4,1,1,"%D",0)
;;=^^2^2^2911119^
;;^DD(399.0304,4,1,1,"%D",1,0)
;;=When this field is edited or changed, the revenue codes and charges for this
;;^DD(399.0304,4,1,1,"%D",2,0)
;;=bill will automatically be recalculated.
;;^DD(399.0304,4,1,1,"DT")
;;=2911119
;;^DD(399.0304,4,1,2,0)
;;=399.0304^ASC
;;^DD(399.0304,4,1,2,1)
;;=S ^DGCR(399,DA(1),"CP","ASC",$E(X,1,30),DA)=""
;;^DD(399.0304,4,1,2,2)
;;=K ^DGCR(399,DA(1),"CP","ASC",$E(X,1,30),DA)
;;^DD(399.0304,4,1,2,"%D",0)
;;=^^2^2^2930611^^
;;^DD(399.0304,4,1,2,"%D",1,0)
;;=This cross-reference is used to determine if any procedures entered are
;;^DD(399.0304,4,1,2,"%D",2,0)
;;=billable as Ambulatory Surgery Codes.
;;^DD(399.0304,4,1,2,"DT")
;;=2911120
;;^DD(399.0304,4,3)
;;=
;;^DD(399.0304,4,5,1,0)
;;=399.0304^5^1
;;^DD(399.0304,4,5,2,0)
;;=399.0304^.01^3
;;^DD(399.0304,4,5,3,0)
;;=399.0304^1^2
;;^DD(399.0304,4,21,0)
;;=2^^2^2^2940214^
;;^DD(399.0304,4,21,1,0)
;;=This field will be completed by the system if this procedure is an
;;^DD(399.0304,4,21,2,0)
;;=Ambulatory Surgery that can be billed under the HCFA rate system.
;;^DD(399.0304,4,"DT")
;;=2920228
;;^DD(399.0304,5,0)
;;=DIVISION^RP40.8'^DG(40.8,^0;6^Q
;;^DD(399.0304,5,1,0)
;;=^.1
;;^DD(399.0304,5,1,1,0)
;;=^^TRIGGER^399.0304^4
;;^DD(399.0304,5,1,1,1)
;;=K DIV S DIV=X,D0=DA(1),DIV(0)=D0,D1=DA,DIV(1)=D1 S Y(1)=$S($D(^DGCR(399,D0,"CP",D1,0)):^(0),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y X ^DD(399.0304,5,1,1,1.1) X ^DD(399.0304,5,1,1,1.4)
;;^DD(399.0304,5,1,1,1.1)
;;=S X=DIV S X=$$CP^IBEFUNC1(DA(1),DA) I X'="" S X=1
;;^DD(399.0304,5,1,1,1.4)
;;=S DIH=$S($D(^DGCR(399,DIV(0),"CP",DIV(1),0)):^(0),1:""),DIV=X S $P(^(0),U,5)=DIV,DIH=399.0304,DIG=4 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(399.0304,5,1,1,2)
;;=K DIV S DIV=X,D0=DA(1),DIV(0)=D0,D1=DA,DIV(1)=D1 S Y(1)=$S($D(^DGCR(399,D0,"CP",D1,0)):^(0),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y S X="" X ^DD(399.0304,5,1,1,2.4)
;;^DD(399.0304,5,1,1,2.4)
;;=S DIH=$S($D(^DGCR(399,DIV(0),"CP",DIV(1),0)):^(0),1:""),DIV=X S $P(^(0),U,5)=DIV,DIH=399.0304,DIG=4 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(399.0304,5,1,1,"%D",0)
;;=^^1^1^2930903^
;;^DD(399.0304,5,1,1,"%D",1,0)
;;=Calculate and set BASC billable flag.
;;^DD(399.0304,5,1,1,"CREATE VALUE")
;;=S X=$$CP^IBEFUNC1(DA(1),DA) I X'="" S X=1
;;^DD(399.0304,5,1,1,"DELETE VALUE")
;;=@
;;^DD(399.0304,5,1,1,"DT")
;;=2930903
;;^DD(399.0304,5,1,1,"FIELD")
;;=BASC BILLABLE
;;^DD(399.0304,5,3)
;;=Enter the division where this procedure was performed.
;;^DD(399.0304,5,21,0)
;;=^^3^3^2930611^^^^
;;^DD(399.0304,5,21,1,0)
;;=Enter the Division at which this procedure was performed. If this field
IBINI0AS ; ; 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 ;;^DD(399.0304,3,1,0)
+2 ;;=^.1
+3 ;;^DD(399.0304,3,1,1,0)
+4 ;;=399.0304^D
+5 ;;^DD(399.0304,3,1,1,1)
+6 ;;=S ^DGCR(399,DA(1),"CP","D",$E(X,1,30),DA)=""
+7 ;;^DD(399.0304,3,1,1,2)
+8 ;;=K ^DGCR(399,DA(1),"CP","D",$E(X,1,30),DA)
+9 ;;^DD(399.0304,3,1,1,"DT")
+10 ;;=2911030
+11 ;;^DD(399.0304,3,3)
+12 ;;=Type a Number between 1 and 99, 0 Decimal Digits
+13 ;;^DD(399.0304,3,21,0)
+14 ;;=^^3^3^2940120^^^^
+15 ;;^DD(399.0304,3,21,1,0)
+16 ;;=This is the relative order that this procedure will appear on the
+17 ;;^DD(399.0304,3,21,2,0)
+18 ;;=bill. The lowest numbers will appear on the UB forms in the blocks
+19 ;;^DD(399.0304,3,21,3,0)
+20 ;;=for procedure. The highest numbers will appear as additional procedures.
+21 ;;^DD(399.0304,3,"DT")
+22 ;;=2911030
+23 ;;^DD(399.0304,4,0)
+24 ;;=BASC BILLABLE^S^1:YES;^0;5^Q
+25 ;;^DD(399.0304,4,1,0)
+26 ;;=^.1
+27 ;;^DD(399.0304,4,1,1,0)
+28 ;;=399.0304^AREV7^MUMPS
+29 ;;^DD(399.0304,4,1,1,1)
+30 ;;=S DGRVRCAL=1
+31 ;;^DD(399.0304,4,1,1,2)
+32 ;;=S DGRVRCAL=2
+33 ;;^DD(399.0304,4,1,1,"%D",0)
+34 ;;=^^2^2^2911119^
+35 ;;^DD(399.0304,4,1,1,"%D",1,0)
+36 ;;=When this field is edited or changed, the revenue codes and charges for this
+37 ;;^DD(399.0304,4,1,1,"%D",2,0)
+38 ;;=bill will automatically be recalculated.
+39 ;;^DD(399.0304,4,1,1,"DT")
+40 ;;=2911119
+41 ;;^DD(399.0304,4,1,2,0)
+42 ;;=399.0304^ASC
+43 ;;^DD(399.0304,4,1,2,1)
+44 ;;=S ^DGCR(399,DA(1),"CP","ASC",$E(X,1,30),DA)=""
+45 ;;^DD(399.0304,4,1,2,2)
+46 ;;=K ^DGCR(399,DA(1),"CP","ASC",$E(X,1,30),DA)
+47 ;;^DD(399.0304,4,1,2,"%D",0)
+48 ;;=^^2^2^2930611^^
+49 ;;^DD(399.0304,4,1,2,"%D",1,0)
+50 ;;=This cross-reference is used to determine if any procedures entered are
+51 ;;^DD(399.0304,4,1,2,"%D",2,0)
+52 ;;=billable as Ambulatory Surgery Codes.
+53 ;;^DD(399.0304,4,1,2,"DT")
+54 ;;=2911120
+55 ;;^DD(399.0304,4,3)
+56 ;;=
+57 ;;^DD(399.0304,4,5,1,0)
+58 ;;=399.0304^5^1
+59 ;;^DD(399.0304,4,5,2,0)
+60 ;;=399.0304^.01^3
+61 ;;^DD(399.0304,4,5,3,0)
+62 ;;=399.0304^1^2
+63 ;;^DD(399.0304,4,21,0)
+64 ;;=2^^2^2^2940214^
+65 ;;^DD(399.0304,4,21,1,0)
+66 ;;=This field will be completed by the system if this procedure is an
+67 ;;^DD(399.0304,4,21,2,0)
+68 ;;=Ambulatory Surgery that can be billed under the HCFA rate system.
+69 ;;^DD(399.0304,4,"DT")
+70 ;;=2920228
+71 ;;^DD(399.0304,5,0)
+72 ;;=DIVISION^RP40.8'^DG(40.8,^0;6^Q
+73 ;;^DD(399.0304,5,1,0)
+74 ;;=^.1
+75 ;;^DD(399.0304,5,1,1,0)
+76 ;;=^^TRIGGER^399.0304^4
+77 ;;^DD(399.0304,5,1,1,1)
+78 ;;=K DIV S DIV=X,D0=DA(1),DIV(0)=D0,D1=DA,DIV(1)=D1 S Y(1)=$S($D(^DGCR(399,D0,"CP",D1,0)):^(0),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y X ^DD(399.0304,5,1,1,1.1) X ^DD(399.0304,5,1,1,1.4)
+79 ;;^DD(399.0304,5,1,1,1.1)
+80 ;;=S X=DIV S X=$$CP^IBEFUNC1(DA(1),DA) I X'="" S X=1
+81 ;;^DD(399.0304,5,1,1,1.4)
+82 ;;=S DIH=$S($D(^DGCR(399,DIV(0),"CP",DIV(1),0)):^(0),1:""),DIV=X S $P(^(0),U,5)=DIV,DIH=399.0304,DIG=4 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+83 ;;^DD(399.0304,5,1,1,2)
+84 ;;=K DIV S DIV=X,D0=DA(1),DIV(0)=D0,D1=DA,DIV(1)=D1 S Y(1)=$S($D(^DGCR(399,D0,"CP",D1,0)):^(0),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y S X="" X ^DD(399.0304,5,1,1,2.4)
+85 ;;^DD(399.0304,5,1,1,2.4)
+86 ;;=S DIH=$S($D(^DGCR(399,DIV(0),"CP",DIV(1),0)):^(0),1:""),DIV=X S $P(^(0),U,5)=DIV,DIH=399.0304,DIG=4 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+87 ;;^DD(399.0304,5,1,1,"%D",0)
+88 ;;=^^1^1^2930903^
+89 ;;^DD(399.0304,5,1,1,"%D",1,0)
+90 ;;=Calculate and set BASC billable flag.
+91 ;;^DD(399.0304,5,1,1,"CREATE VALUE")
+92 ;;=S X=$$CP^IBEFUNC1(DA(1),DA) I X'="" S X=1
+93 ;;^DD(399.0304,5,1,1,"DELETE VALUE")
+94 ;;=@
+95 ;;^DD(399.0304,5,1,1,"DT")
+96 ;;=2930903
+97 ;;^DD(399.0304,5,1,1,"FIELD")
+98 ;;=BASC BILLABLE
+99 ;;^DD(399.0304,5,3)
+100 ;;=Enter the division where this procedure was performed.
+101 ;;^DD(399.0304,5,21,0)
+102 ;;=^^3^3^2930611^^^^
+103 ;;^DD(399.0304,5,21,1,0)
+104 ;;=Enter the Division at which this procedure was performed. If this field