IBINI0A3 ; ; 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,6,1,2,1.3)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$S('$D(^VA(200,+$P(Y(1),U,8),0)):"",1:$P(^(0),U,1))=""
;;^DD(399,6,1,2,1.4)
;;=S DIH=$S($D(^DGCR(399,DIV(0),"S")):^("S"),1:""),DIV=X S $P(^("S"),U,8)=DIV,DIH=399,DIG=8 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
;;^DD(399,6,1,2,2)
;;=Q
;;^DD(399,6,1,2,"CREATE CONDITION")
;;=SECONDARY REVIEWER=""
;;^DD(399,6,1,2,"CREATE VALUE")
;;=S X=DUZ
;;^DD(399,6,1,2,"DELETE VALUE")
;;=NO EFFECT
;;^DD(399,6,1,2,"DT")
;;=2940310
;;^DD(399,6,1,2,"FIELD")
;;=SECONDARY REVIEWER
;;^DD(399,6,1,3,0)
;;=^^TRIGGER^399^.13
;;^DD(399,6,1,3,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y=Y(0) X:$D(^DD(399,6,2)) ^(2) S X=Y="YES" I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,0)):^(0),1:"") S X=$P(Y(1),U,13),X=X S DIU=X K Y S X=DIV S X=2 X ^DD(399,6,1,3,1.4)
;;^DD(399,6,1,3,1.4)
;;=S DIH=$S($D(^DGCR(399,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,13)=DIV,DIH=399,DIG=.13 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(399,6,1,3,2)
;;=Q
;;^DD(399,6,1,3,"CREATE CONDITION")
;;=#6="YES"
;;^DD(399,6,1,3,"CREATE VALUE")
;;=S X=2
;;^DD(399,6,1,3,"DELETE VALUE")
;;=NO EFFECT
;;^DD(399,6,1,3,"FIELD")
;;=STATUS
;;^DD(399,6,2)
;;=S Y(0)=Y S Y=$S(Y:"YES",Y=0:"NO",1:"")
;;^DD(399,6,2.1)
;;=S Y=$S(Y:"YES",Y=0:"NO",1:"")
;;^DD(399,6,3)
;;=Enter 'Yes' or '1' if the information in this record is accurate and complete, or 'No' or '0' if the information is inaccurate or incomplete.
;;^DD(399,6,5,1,0)
;;=399^3^3
;;^DD(399,6,21,0)
;;=^^2^2^2880831^
;;^DD(399,6,21,1,0)
;;=This allows the user to approve or disapprove the information contained in
;;^DD(399,6,21,2,0)
;;=this billing record during the secondary review stage.
;;^DD(399,6,"DT")
;;=2940310
;;^DD(399,7,0)
;;=SECONDARY REVIEW DATE^D^^S;7^S %DT="ETX" D ^%DT S X=Y K:Y<1 X
;;^DD(399,7,3)
;;=Enter the date on which last review was performed.
;;^DD(399,7,5,1,0)
;;=399^6^1
;;^DD(399,7,21,0)
;;=^^1^1^2880831^
;;^DD(399,7,21,1,0)
;;=This is the date on which this record was last reviewed.
;;^DD(399,7,"DT")
;;=2880523
;;^DD(399,8,0)
;;=SECONDARY REVIEWER^P200'^VA(200,^S;8^Q
;;^DD(399,8,3)
;;=Enter the user who performed the last review on this billing record.
;;^DD(399,8,5,1,0)
;;=399^6^2
;;^DD(399,8,21,0)
;;=^^1^1^2880831^
;;^DD(399,8,21,1,0)
;;=This is the user who performed the last review of this billing record.
;;^DD(399,8,"DT")
;;=2900921
;;^DD(399,9,0)
;;=AUTHORIZE BILL GENERATION?^FOX^^S;9^I $D(X) D YN^IBCU
;;^DD(399,9,1,0)
;;=^.1
;;^DD(399,9,1,1,0)
;;=^^TRIGGER^399^10
;;^DD(399,9,1,1,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$P(Y(1),U,10)="" I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$P(Y(1),U,10),X=X S DIU=X K Y S X=DIV S X=DT X ^DD(399,9,1,1,1.4)
;;^DD(399,9,1,1,1.4)
;;=S DIH=$S($D(^DGCR(399,DIV(0),"S")):^("S"),1:""),DIV=X S $P(^("S"),U,10)=DIV,DIH=399,DIG=10 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
;;^DD(399,9,1,1,2)
;;=Q
;;^DD(399,9,1,1,"CREATE CONDITION")
;;=AUTHORIZATION DATE=""
;;^DD(399,9,1,1,"CREATE VALUE")
;;=TODAY
;;^DD(399,9,1,1,"DELETE VALUE")
;;=NO EFFECT
;;^DD(399,9,1,1,"DT")
;;=2940310
;;^DD(399,9,1,1,"FIELD")
;;=AUTHORIZATION DATE
;;^DD(399,9,1,2,0)
;;=^^TRIGGER^399^11
;;^DD(399,9,1,2,1)
;;=X ^DD(399,9,1,2,1.3) I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$P(Y(1),U,11),X=X S DIU=X K Y S X=DIV S X=DUZ X ^DD(399,9,1,2,1.4)
;;^DD(399,9,1,2,1.3)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$S('$D(^VA(200,+$P(Y(1),U,11),0)):"",1:$P(^(0),U,1))=""
IBINI0A3 ; ; 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,6,1,2,1.3)
+2 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$S('$D(^VA(200,+$P(Y(1),U,8),0)):"",1:$P(^(0),U,1))=""
+3 ;;^DD(399,6,1,2,1.4)
+4 ;;=S DIH=$S($D(^DGCR(399,DIV(0),"S")):^("S"),1:""),DIV=X S $P(^("S"),U,8)=DIV,DIH=399,DIG=8 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
+5 ;;^DD(399,6,1,2,2)
+6 ;;=Q
+7 ;;^DD(399,6,1,2,"CREATE CONDITION")
+8 ;;=SECONDARY REVIEWER=""
+9 ;;^DD(399,6,1,2,"CREATE VALUE")
+10 ;;=S X=DUZ
+11 ;;^DD(399,6,1,2,"DELETE VALUE")
+12 ;;=NO EFFECT
+13 ;;^DD(399,6,1,2,"DT")
+14 ;;=2940310
+15 ;;^DD(399,6,1,2,"FIELD")
+16 ;;=SECONDARY REVIEWER
+17 ;;^DD(399,6,1,3,0)
+18 ;;=^^TRIGGER^399^.13
+19 ;;^DD(399,6,1,3,1)
+20 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y=Y(0) X:$D(^DD(399,6,2)) ^(2) S X=Y="YES" I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,0)):^(0),1:"") S X=$P(Y(1),U,13),X=X S DIU=X K Y S X=DIV S X=2 X ^DD(399,6,1,3,1.4)
+21 ;;^DD(399,6,1,3,1.4)
+22 ;;=S DIH=$S($D(^DGCR(399,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,13)=DIV,DIH=399,DIG=.13 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+23 ;;^DD(399,6,1,3,2)
+24 ;;=Q
+25 ;;^DD(399,6,1,3,"CREATE CONDITION")
+26 ;;=#6="YES"
+27 ;;^DD(399,6,1,3,"CREATE VALUE")
+28 ;;=S X=2
+29 ;;^DD(399,6,1,3,"DELETE VALUE")
+30 ;;=NO EFFECT
+31 ;;^DD(399,6,1,3,"FIELD")
+32 ;;=STATUS
+33 ;;^DD(399,6,2)
+34 ;;=S Y(0)=Y S Y=$S(Y:"YES",Y=0:"NO",1:"")
+35 ;;^DD(399,6,2.1)
+36 ;;=S Y=$S(Y:"YES",Y=0:"NO",1:"")
+37 ;;^DD(399,6,3)
+38 ;;=Enter 'Yes' or '1' if the information in this record is accurate and complete, or 'No' or '0' if the information is inaccurate or incomplete.
+39 ;;^DD(399,6,5,1,0)
+40 ;;=399^3^3
+41 ;;^DD(399,6,21,0)
+42 ;;=^^2^2^2880831^
+43 ;;^DD(399,6,21,1,0)
+44 ;;=This allows the user to approve or disapprove the information contained in
+45 ;;^DD(399,6,21,2,0)
+46 ;;=this billing record during the secondary review stage.
+47 ;;^DD(399,6,"DT")
+48 ;;=2940310
+49 ;;^DD(399,7,0)
+50 ;;=SECONDARY REVIEW DATE^D^^S;7^S %DT="ETX" D ^%DT S X=Y K:Y<1 X
+51 ;;^DD(399,7,3)
+52 ;;=Enter the date on which last review was performed.
+53 ;;^DD(399,7,5,1,0)
+54 ;;=399^6^1
+55 ;;^DD(399,7,21,0)
+56 ;;=^^1^1^2880831^
+57 ;;^DD(399,7,21,1,0)
+58 ;;=This is the date on which this record was last reviewed.
+59 ;;^DD(399,7,"DT")
+60 ;;=2880523
+61 ;;^DD(399,8,0)
+62 ;;=SECONDARY REVIEWER^P200'^VA(200,^S;8^Q
+63 ;;^DD(399,8,3)
+64 ;;=Enter the user who performed the last review on this billing record.
+65 ;;^DD(399,8,5,1,0)
+66 ;;=399^6^2
+67 ;;^DD(399,8,21,0)
+68 ;;=^^1^1^2880831^
+69 ;;^DD(399,8,21,1,0)
+70 ;;=This is the user who performed the last review of this billing record.
+71 ;;^DD(399,8,"DT")
+72 ;;=2900921
+73 ;;^DD(399,9,0)
+74 ;;=AUTHORIZE BILL GENERATION?^FOX^^S;9^I $D(X) D YN^IBCU
+75 ;;^DD(399,9,1,0)
+76 ;;=^.1
+77 ;;^DD(399,9,1,1,0)
+78 ;;=^^TRIGGER^399^10
+79 ;;^DD(399,9,1,1,1)
+80 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$P(Y(1),U,10)="" I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$P(Y(1),U,10),X=X S DIU=X K Y S X=DIV S X=DT X ^DD(399,9,1,1,1.4)
+81 ;;^DD(399,9,1,1,1.4)
+82 ;;=S DIH=$S($D(^DGCR(399,DIV(0),"S")):^("S"),1:""),DIV=X S $P(^("S"),U,10)=DIV,DIH=399,DIG=10 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
+83 ;;^DD(399,9,1,1,2)
+84 ;;=Q
+85 ;;^DD(399,9,1,1,"CREATE CONDITION")
+86 ;;=AUTHORIZATION DATE=""
+87 ;;^DD(399,9,1,1,"CREATE VALUE")
+88 ;;=TODAY
+89 ;;^DD(399,9,1,1,"DELETE VALUE")
+90 ;;=NO EFFECT
+91 ;;^DD(399,9,1,1,"DT")
+92 ;;=2940310
+93 ;;^DD(399,9,1,1,"FIELD")
+94 ;;=AUTHORIZATION DATE
+95 ;;^DD(399,9,1,2,0)
+96 ;;=^^TRIGGER^399^11
+97 ;;^DD(399,9,1,2,1)
+98 ;;=X ^DD(399,9,1,2,1.3) I X S X=DIV S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$P(Y(1),U,11),X=X S DIU=X K Y S X=DIV S X=DUZ X ^DD(399,9,1,2,1.4)
+99 ;;^DD(399,9,1,2,1.3)
+100 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S Y(1)=$S($D(^DGCR(399,D0,"S")):^("S"),1:"") S X=$S('$D(^VA(200,+$P(Y(1),U,11),0)):"",1:$P(^(0),U,1))=""