IBINI0AY ; ; 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.042,.08,23,4,0)
;;=This is used to determine which of the revenue codes should be deleted
;;^DD(399.042,.08,23,5,0)
;;=before the calculator re-builds them. (ALL^IBCU61)
;;^DD(399.042,.08,"DT")
;;=2940207
;;^DD(399.043,0)
;;=OP VISITS DATE(S) SUB-FIELD^^.01^1
;;^DD(399.043,0,"DIK")
;;=IBXX
;;^DD(399.043,0,"NM","OP VISITS DATE(S)")
;;=
;;^DD(399.043,0,"UP")
;;=399
;;^DD(399.043,.01,0)
;;=OP VISITS DATE(S)^MDX^^0;1^S %DT="E" D ^%DT S X=Y K:Y<1!('$D(IBIFN))!('$$OPV^IBCU41(X,IBIFN)) X I $D(X) S DINUM=X
;;^DD(399.043,.01,1,0)
;;=^.1
;;^DD(399.043,.01,1,1,0)
;;=399^AOPV^MUMPS
;;^DD(399.043,.01,1,1,1)
;;=S ^DGCR(399,"AOPV",$P(^DGCR(399,DA(1),0),U,2),$E(X,1,30),DA(1))=""
;;^DD(399.043,.01,1,1,2)
;;=K ^DGCR(399,"AOPV",$P(^DGCR(399,DA(1),0),U,2),$E(X,1,30),DA(1))
;;^DD(399.043,.01,1,1,"%D",0)
;;=^^1^1^2940214^
;;^DD(399.043,.01,1,1,"%D",1,0)
;;=Cross reference of bills by patient and outpatient visit date.
;;^DD(399.043,.01,1,2,0)
;;=399^AREV1^MUMPS
;;^DD(399.043,.01,1,2,1)
;;=S DGRVRCAL=1
;;^DD(399.043,.01,1,2,2)
;;=S DGRVRCAL=2
;;^DD(399.043,.01,1,2,"%D",0)
;;=^^2^2^2940214^^
;;^DD(399.043,.01,1,2,"%D",1,0)
;;=Variable causes revenue codes and chrges to be re-calculated on return
;;^DD(399.043,.01,1,2,"%D",2,0)
;;=to the enter/edit billing screens.
;;^DD(399.043,.01,3)
;;=Enter outpatient dates which are covered by this bill. These dates must be included within the period which this statement covers.
;;^DD(399.043,.01,"DT")
;;=2930903
;;^DD(399.044,0)
;;=REASON(S) DISAPPROVED-INITIAL SUB-FIELD^^.01^1
;;^DD(399.044,0,"DIK")
;;=IBXX
;;^DD(399.044,0,"IX","B",399.044,.01)
;;=
;;^DD(399.044,0,"NM","REASON(S) DISAPPROVED-INITIAL")
;;=
;;^DD(399.044,0,"UP")
;;=399
;;^DD(399.044,.01,0)
;;=REASON(S) DISAPPROVED-INITIAL^MP399.4'^DGCR(399.4,^0;1^Q
;;^DD(399.044,.01,1,0)
;;=^.1
;;^DD(399.044,.01,1,1,0)
;;=399.044^B
;;^DD(399.044,.01,1,1,1)
;;=S ^DGCR(399,DA(1),"D1","B",$E(X,1,30),DA)=""
;;^DD(399.044,.01,1,1,2)
;;=K ^DGCR(399,DA(1),"D1","B",$E(X,1,30),DA)
;;^DD(399.044,.01,3)
;;=Select reason(s) why this billing record has been disapproved.
;;^DD(399.044,.01,"DT")
;;=2880523
;;^DD(399.045,0)
;;=REASON(S) DISAPPROVED-SECOND SUB-FIELD^^.01^1
;;^DD(399.045,0,"DIK")
;;=IBXX
;;^DD(399.045,0,"IX","B",399.045,.01)
;;=
;;^DD(399.045,0,"NM","REASON(S) DISAPPROVED-SECOND")
;;=
;;^DD(399.045,0,"UP")
;;=399
;;^DD(399.045,.01,0)
;;=REASON(S) DISAPPROVED-SECOND^MP399.4'^DGCR(399.4,^0;1^Q
;;^DD(399.045,.01,1,0)
;;=^.1
;;^DD(399.045,.01,1,1,0)
;;=399.045^B
;;^DD(399.045,.01,1,1,1)
;;=S ^DGCR(399,DA(1),"D2","B",$E(X,1,30),DA)=""
;;^DD(399.045,.01,1,1,2)
;;=K ^DGCR(399,DA(1),"D2","B",$E(X,1,30),DA)
;;^DD(399.045,.01,3)
;;=Select reason(s) why this billing record has been disapproved.
;;^DD(399.045,.01,"DT")
;;=2880523
;;^DD(399.046,0)
;;=RETURNED LOG DATE/TIME SUB-FIELD^^.04^4
;;^DD(399.046,0,"DIK")
;;=IBXX
;;^DD(399.046,0,"IX","AC",399.046,.04)
;;=
;;^DD(399.046,0,"IX","B",399.046,.01)
;;=
;;^DD(399.046,0,"NM","RETURNED LOG DATE/TIME")
;;=
;;^DD(399.046,0,"UP")
;;=399
;;^DD(399.046,.01,0)
;;=LOG DATE/TIME^D^^0;1^S %DT="ETXR" D ^%DT S X=Y K:Y<1 X
;;^DD(399.046,.01,1,0)
;;=^.1
;;^DD(399.046,.01,1,1,0)
;;=399.046^B
;;^DD(399.046,.01,1,1,1)
;;=S ^DGCR(399,DA(1),"R","B",$E(X,1,30),DA)=""
;;^DD(399.046,.01,1,1,2)
;;=K ^DGCR(399,DA(1),"R","B",$E(X,1,30),DA)
;;^DD(399.046,.01,21,0)
;;=^^1^1^2911025^
;;^DD(399.046,.01,21,1,0)
;;=This is the date and time that this entry was edited.
;;^DD(399.046,.01,"DT")
;;=2900605
IBINI0AY ; ; 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.042,.08,23,4,0)
+2 ;;=This is used to determine which of the revenue codes should be deleted
+3 ;;^DD(399.042,.08,23,5,0)
+4 ;;=before the calculator re-builds them. (ALL^IBCU61)
+5 ;;^DD(399.042,.08,"DT")
+6 ;;=2940207
+7 ;;^DD(399.043,0)
+8 ;;=OP VISITS DATE(S) SUB-FIELD^^.01^1
+9 ;;^DD(399.043,0,"DIK")
+10 ;;=IBXX
+11 ;;^DD(399.043,0,"NM","OP VISITS DATE(S)")
+12 ;;=
+13 ;;^DD(399.043,0,"UP")
+14 ;;=399
+15 ;;^DD(399.043,.01,0)
+16 ;;=OP VISITS DATE(S)^MDX^^0;1^S %DT="E" D ^%DT S X=Y K:Y<1!('$D(IBIFN))!('$$OPV^IBCU41(X,IBIFN)) X I $D(X) S DINUM=X
+17 ;;^DD(399.043,.01,1,0)
+18 ;;=^.1
+19 ;;^DD(399.043,.01,1,1,0)
+20 ;;=399^AOPV^MUMPS
+21 ;;^DD(399.043,.01,1,1,1)
+22 ;;=S ^DGCR(399,"AOPV",$P(^DGCR(399,DA(1),0),U,2),$E(X,1,30),DA(1))=""
+23 ;;^DD(399.043,.01,1,1,2)
+24 ;;=K ^DGCR(399,"AOPV",$P(^DGCR(399,DA(1),0),U,2),$E(X,1,30),DA(1))
+25 ;;^DD(399.043,.01,1,1,"%D",0)
+26 ;;=^^1^1^2940214^
+27 ;;^DD(399.043,.01,1,1,"%D",1,0)
+28 ;;=Cross reference of bills by patient and outpatient visit date.
+29 ;;^DD(399.043,.01,1,2,0)
+30 ;;=399^AREV1^MUMPS
+31 ;;^DD(399.043,.01,1,2,1)
+32 ;;=S DGRVRCAL=1
+33 ;;^DD(399.043,.01,1,2,2)
+34 ;;=S DGRVRCAL=2
+35 ;;^DD(399.043,.01,1,2,"%D",0)
+36 ;;=^^2^2^2940214^^
+37 ;;^DD(399.043,.01,1,2,"%D",1,0)
+38 ;;=Variable causes revenue codes and chrges to be re-calculated on return
+39 ;;^DD(399.043,.01,1,2,"%D",2,0)
+40 ;;=to the enter/edit billing screens.
+41 ;;^DD(399.043,.01,3)
+42 ;;=Enter outpatient dates which are covered by this bill. These dates must be included within the period which this statement covers.
+43 ;;^DD(399.043,.01,"DT")
+44 ;;=2930903
+45 ;;^DD(399.044,0)
+46 ;;=REASON(S) DISAPPROVED-INITIAL SUB-FIELD^^.01^1
+47 ;;^DD(399.044,0,"DIK")
+48 ;;=IBXX
+49 ;;^DD(399.044,0,"IX","B",399.044,.01)
+50 ;;=
+51 ;;^DD(399.044,0,"NM","REASON(S) DISAPPROVED-INITIAL")
+52 ;;=
+53 ;;^DD(399.044,0,"UP")
+54 ;;=399
+55 ;;^DD(399.044,.01,0)
+56 ;;=REASON(S) DISAPPROVED-INITIAL^MP399.4'^DGCR(399.4,^0;1^Q
+57 ;;^DD(399.044,.01,1,0)
+58 ;;=^.1
+59 ;;^DD(399.044,.01,1,1,0)
+60 ;;=399.044^B
+61 ;;^DD(399.044,.01,1,1,1)
+62 ;;=S ^DGCR(399,DA(1),"D1","B",$E(X,1,30),DA)=""
+63 ;;^DD(399.044,.01,1,1,2)
+64 ;;=K ^DGCR(399,DA(1),"D1","B",$E(X,1,30),DA)
+65 ;;^DD(399.044,.01,3)
+66 ;;=Select reason(s) why this billing record has been disapproved.
+67 ;;^DD(399.044,.01,"DT")
+68 ;;=2880523
+69 ;;^DD(399.045,0)
+70 ;;=REASON(S) DISAPPROVED-SECOND SUB-FIELD^^.01^1
+71 ;;^DD(399.045,0,"DIK")
+72 ;;=IBXX
+73 ;;^DD(399.045,0,"IX","B",399.045,.01)
+74 ;;=
+75 ;;^DD(399.045,0,"NM","REASON(S) DISAPPROVED-SECOND")
+76 ;;=
+77 ;;^DD(399.045,0,"UP")
+78 ;;=399
+79 ;;^DD(399.045,.01,0)
+80 ;;=REASON(S) DISAPPROVED-SECOND^MP399.4'^DGCR(399.4,^0;1^Q
+81 ;;^DD(399.045,.01,1,0)
+82 ;;=^.1
+83 ;;^DD(399.045,.01,1,1,0)
+84 ;;=399.045^B
+85 ;;^DD(399.045,.01,1,1,1)
+86 ;;=S ^DGCR(399,DA(1),"D2","B",$E(X,1,30),DA)=""
+87 ;;^DD(399.045,.01,1,1,2)
+88 ;;=K ^DGCR(399,DA(1),"D2","B",$E(X,1,30),DA)
+89 ;;^DD(399.045,.01,3)
+90 ;;=Select reason(s) why this billing record has been disapproved.
+91 ;;^DD(399.045,.01,"DT")
+92 ;;=2880523
+93 ;;^DD(399.046,0)
+94 ;;=RETURNED LOG DATE/TIME SUB-FIELD^^.04^4
+95 ;;^DD(399.046,0,"DIK")
+96 ;;=IBXX
+97 ;;^DD(399.046,0,"IX","AC",399.046,.04)
+98 ;;=
+99 ;;^DD(399.046,0,"IX","B",399.046,.01)
+100 ;;=
+101 ;;^DD(399.046,0,"NM","RETURNED LOG DATE/TIME")
+102 ;;=
+103 ;;^DD(399.046,0,"UP")
+104 ;;=399
+105 ;;^DD(399.046,.01,0)
+106 ;;=LOG DATE/TIME^D^^0;1^S %DT="ETXR" D ^%DT S X=Y K:Y<1 X
+107 ;;^DD(399.046,.01,1,0)
+108 ;;=^.1
+109 ;;^DD(399.046,.01,1,1,0)
+110 ;;=399.046^B
+111 ;;^DD(399.046,.01,1,1,1)
+112 ;;=S ^DGCR(399,DA(1),"R","B",$E(X,1,30),DA)=""
+113 ;;^DD(399.046,.01,1,1,2)
+114 ;;=K ^DGCR(399,DA(1),"R","B",$E(X,1,30),DA)
+115 ;;^DD(399.046,.01,21,0)
+116 ;;=^^1^1^2911025^
+117 ;;^DD(399.046,.01,21,1,0)
+118 ;;=This is the date and time that this entry was edited.
+119 ;;^DD(399.046,.01,"DT")
+120 ;;=2900605