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