IBINI0AJ ; ; 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,161,1,0)
;;=^.1
;;^DD(399,161,1,1,0)
;;=^^TRIGGER^399^162
;;^DD(399,161,1,1,1)
;;=X ^DD(399,161,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"U")):^("U"),1:"") S X=$P(Y(1),U,12),X=X S DIU=X K Y S X=DIV D DIS^IBCU S X=X X ^DD(399,161,1,1,1.4)
;;^DD(399,161,1,1,1.3)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^DGCR(399,D0,"U")):^("U"),1:"") S X=$S('$D(^DGCR(399.1,+$P(Y(1),U,12),0)):"",1:$P(^(0),U,1))=""
;;^DD(399,161,1,1,1.4)
;;=S DIH=$S($D(^DGCR(399,DIV(0),"U")):^("U"),1:""),DIV=X S $P(^("U"),U,12)=DIV,DIH=399,DIG=162 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(399,161,1,1,2)
;;=Q
;;^DD(399,161,1,1,"%D",0)
;;=^^2^2^2920212^
;;^DD(399,161,1,1,"%D",1,0)
;;=Sets the Discharge Status field to the correct status based upon the
;;^DD(399,161,1,1,"%D",2,0)
;;=Disposition Type field in the PTF Record.
;;^DD(399,161,1,1,"CREATE CONDITION")
;;=#162=""
;;^DD(399,161,1,1,"CREATE VALUE")
;;=D DIS^IBCU S X=X
;;^DD(399,161,1,1,"DELETE VALUE")
;;=NO EFFECT
;;^DD(399,161,1,1,"DT")
;;=2920212
;;^DD(399,161,1,1,"FIELD")
;;=#162
;;^DD(399,161,3)
;;=Enter the bedsection from which this patient was discharged.
;;^DD(399,161,12)
;;=Valid MCCR Bedsections only!
;;^DD(399,161,12.1)
;;=S DIC("S")="I $P(^DGCR(399.1,+Y,0),""^"",5)=1"
;;^DD(399,161,21,0)
;;=^^1^1^2880901^
;;^DD(399,161,21,1,0)
;;=This is the bedsection from which this patient was discharged.
;;^DD(399,161,"DT")
;;=2920212
;;^DD(399,162,0)
;;=DISCHARGE STATUS^*P399.1'^DGCR(399.1,^U;12^S DIC("S")="I $P(^DGCR(399.1,+Y,0),""^"",6)=1" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
;;^DD(399,162,3)
;;=Enter the code which indicates patient status as of statement covers through date.
;;^DD(399,162,5,1,0)
;;=399^161^1
;;^DD(399,162,5,2,0)
;;=399^.08^4
;;^DD(399,162,12)
;;=Valid MCCR Discharge Statuses only!
;;^DD(399,162,12.1)
;;=S DIC("S")="I $P(^DGCR(399.1,+Y,0),""^"",6)=1"
;;^DD(399,162,21,0)
;;=^^1^1^2880901^
;;^DD(399,162,21,1,0)
;;=This is the patient status as of the statement covers through date.
;;^DD(399,162,"DT")
;;=2880831
;;^DD(399,163,0)
;;=TREATMENT AUTHORIZATION CODE^F^^U;13^K:$L(X)>18!($L(X)<1) X
;;^DD(399,163,3)
;;=Answer must be 1-18 characters in length.
;;^DD(399,163,21,0)
;;=^^4^4^2931220^^^^
;;^DD(399,163,21,1,0)
;;=This indicates that the treatment covered by this bill has been authorized
;;^DD(399,163,21,2,0)
;;=by the payer.
;;^DD(399,163,21,3,0)
;;=
;;^DD(399,163,21,4,0)
;;=On the HCFA 1500 this is block 23, PRIOR AUTHORIZATION NUMBER.
;;^DD(399,163,"DT")
;;=2931220
;;^DD(399,164,0)
;;=BC/BS PROVIDER #^RFX^^U;14^K:$L(X)>13!($L(X)<3)!'(X?.ANP) X
;;^DD(399,164,3)
;;=Enter the Blue Cross/Shield provider number for this particular billing episode.
;;^DD(399,164,5,1,0)
;;=399^.01^5
;;^DD(399,164,21,0)
;;=^^1^1^2880901^
;;^DD(399,164,21,1,0)
;;=This is the Blue Cross/Blue Shield Provider Number for this billing episode.
;;^DD(399,164,"DT")
;;=2910819
;;^DD(399,165,0)
;;=LENGTH OF STAY^F^^U;15^K:$L(X)>6!($L(X)<1)!'(X?.N) X
;;^DD(399,165,3)
;;=Enter the length of stay for this inpatient episode excluding pass, AA and UA days.
;;^DD(399,165,5,1,0)
;;=399^.08^6
;;^DD(399,165,5,2,0)
;;=399^151^1
;;^DD(399,165,5,3,0)
;;=399^152^1
;;^DD(399,165,21,0)
;;=^^2^2^2931018^^^^
;;^DD(399,165,21,1,0)
;;=This defines the length of stay in days for this inpatient episode excluding
;;^DD(399,165,21,2,0)
;;=pass, AA, and UA days.
;;^DD(399,165,23,0)
;;=^^12^12^2931018^^^^
;;^DD(399,165,23,1,0)
;;=If no PTF defined then uses the Statement From and To dates for LOS.
IBINI0AJ ; ; 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,161,1,0)
+2 ;;=^.1
+3 ;;^DD(399,161,1,1,0)
+4 ;;=^^TRIGGER^399^162
+5 ;;^DD(399,161,1,1,1)
+6 ;;=X ^DD(399,161,1,1,1.3) I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"U")):^("U"),1:"") S X=$P(Y(1),U,12),X=X S DIU=X K Y S X=DIV D DIS^IBCU S X=X X ^DD(399,161,1,1,1.4)
+7 ;;^DD(399,161,1,1,1.3)
+8 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^DGCR(399,D0,"U")):^("U"),1:"") S X=$S('$D(^DGCR(399.1,+$P(Y(1),U,12),0)):"",1:$P(^(0),U,1))=""
+9 ;;^DD(399,161,1,1,1.4)
+10 ;;=S DIH=$S($D(^DGCR(399,DIV(0),"U")):^("U"),1:""),DIV=X S $P(^("U"),U,12)=DIV,DIH=399,DIG=162 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+11 ;;^DD(399,161,1,1,2)
+12 ;;=Q
+13 ;;^DD(399,161,1,1,"%D",0)
+14 ;;=^^2^2^2920212^
+15 ;;^DD(399,161,1,1,"%D",1,0)
+16 ;;=Sets the Discharge Status field to the correct status based upon the
+17 ;;^DD(399,161,1,1,"%D",2,0)
+18 ;;=Disposition Type field in the PTF Record.
+19 ;;^DD(399,161,1,1,"CREATE CONDITION")
+20 ;;=#162=""
+21 ;;^DD(399,161,1,1,"CREATE VALUE")
+22 ;;=D DIS^IBCU S X=X
+23 ;;^DD(399,161,1,1,"DELETE VALUE")
+24 ;;=NO EFFECT
+25 ;;^DD(399,161,1,1,"DT")
+26 ;;=2920212
+27 ;;^DD(399,161,1,1,"FIELD")
+28 ;;=#162
+29 ;;^DD(399,161,3)
+30 ;;=Enter the bedsection from which this patient was discharged.
+31 ;;^DD(399,161,12)
+32 ;;=Valid MCCR Bedsections only!
+33 ;;^DD(399,161,12.1)
+34 ;;=S DIC("S")="I $P(^DGCR(399.1,+Y,0),""^"",5)=1"
+35 ;;^DD(399,161,21,0)
+36 ;;=^^1^1^2880901^
+37 ;;^DD(399,161,21,1,0)
+38 ;;=This is the bedsection from which this patient was discharged.
+39 ;;^DD(399,161,"DT")
+40 ;;=2920212
+41 ;;^DD(399,162,0)
+42 ;;=DISCHARGE STATUS^*P399.1'^DGCR(399.1,^U;12^S DIC("S")="I $P(^DGCR(399.1,+Y,0),""^"",6)=1" D ^DIC K DIC S DIC=DIE,X=+Y K:Y<0 X
+43 ;;^DD(399,162,3)
+44 ;;=Enter the code which indicates patient status as of statement covers through date.
+45 ;;^DD(399,162,5,1,0)
+46 ;;=399^161^1
+47 ;;^DD(399,162,5,2,0)
+48 ;;=399^.08^4
+49 ;;^DD(399,162,12)
+50 ;;=Valid MCCR Discharge Statuses only!
+51 ;;^DD(399,162,12.1)
+52 ;;=S DIC("S")="I $P(^DGCR(399.1,+Y,0),""^"",6)=1"
+53 ;;^DD(399,162,21,0)
+54 ;;=^^1^1^2880901^
+55 ;;^DD(399,162,21,1,0)
+56 ;;=This is the patient status as of the statement covers through date.
+57 ;;^DD(399,162,"DT")
+58 ;;=2880831
+59 ;;^DD(399,163,0)
+60 ;;=TREATMENT AUTHORIZATION CODE^F^^U;13^K:$L(X)>18!($L(X)<1) X
+61 ;;^DD(399,163,3)
+62 ;;=Answer must be 1-18 characters in length.
+63 ;;^DD(399,163,21,0)
+64 ;;=^^4^4^2931220^^^^
+65 ;;^DD(399,163,21,1,0)
+66 ;;=This indicates that the treatment covered by this bill has been authorized
+67 ;;^DD(399,163,21,2,0)
+68 ;;=by the payer.
+69 ;;^DD(399,163,21,3,0)
+70 ;;=
+71 ;;^DD(399,163,21,4,0)
+72 ;;=On the HCFA 1500 this is block 23, PRIOR AUTHORIZATION NUMBER.
+73 ;;^DD(399,163,"DT")
+74 ;;=2931220
+75 ;;^DD(399,164,0)
+76 ;;=BC/BS PROVIDER #^RFX^^U;14^K:$L(X)>13!($L(X)<3)!'(X?.ANP) X
+77 ;;^DD(399,164,3)
+78 ;;=Enter the Blue Cross/Shield provider number for this particular billing episode.
+79 ;;^DD(399,164,5,1,0)
+80 ;;=399^.01^5
+81 ;;^DD(399,164,21,0)
+82 ;;=^^1^1^2880901^
+83 ;;^DD(399,164,21,1,0)
+84 ;;=This is the Blue Cross/Blue Shield Provider Number for this billing episode.
+85 ;;^DD(399,164,"DT")
+86 ;;=2910819
+87 ;;^DD(399,165,0)
+88 ;;=LENGTH OF STAY^F^^U;15^K:$L(X)>6!($L(X)<1)!'(X?.N) X
+89 ;;^DD(399,165,3)
+90 ;;=Enter the length of stay for this inpatient episode excluding pass, AA and UA days.
+91 ;;^DD(399,165,5,1,0)
+92 ;;=399^.08^6
+93 ;;^DD(399,165,5,2,0)
+94 ;;=399^151^1
+95 ;;^DD(399,165,5,3,0)
+96 ;;=399^152^1
+97 ;;^DD(399,165,21,0)
+98 ;;=^^2^2^2931018^^^^
+99 ;;^DD(399,165,21,1,0)
+100 ;;=This defines the length of stay in days for this inpatient episode excluding
+101 ;;^DD(399,165,21,2,0)
+102 ;;=pass, AA, and UA days.
+103 ;;^DD(399,165,23,0)
+104 ;;=^^12^12^2931018^^^^
+105 ;;^DD(399,165,23,1,0)
+106 ;;=If no PTF defined then uses the Statement From and To dates for LOS.