IBINI05S ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(356.1) 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(356.1,.2,1,1,"%D",0)
;;=^^2^2^2940213^^
;;^DD(356.1,.2,1,1,"%D",1,0)
;;=Cross reference of all non-completed reviews so it can be used as a tickler
;;^DD(356.1,.2,1,1,"%D",2,0)
;;=file.
;;^DD(356.1,.2,1,1,"DT")
;;=2930722
;;^DD(356.1,.2,5,1,0)
;;=356.1^.21^4
;;^DD(356.1,.2,21,0)
;;=^^7^7^2940213^^
;;^DD(356.1,.2,21,1,0)
;;=This is the date that this review should be reviewed next. If the review
;;^DD(356.1,.2,21,2,0)
;;=status is entered then this field will contain the date it was entered. If
;;^DD(356.1,.2,21,3,0)
;;=the review status is complete then the data in this field is automatically
;;^DD(356.1,.2,21,4,0)
;;=deleted.
;;^DD(356.1,.2,21,5,0)
;;=
;;^DD(356.1,.2,21,6,0)
;;=This field is used to create your pending work lists. Enter the date that
;;^DD(356.1,.2,21,7,0)
;;=you want to be reminded to follow-up on this review.
;;^DD(356.1,.2,"DT")
;;=2930722
;;^DD(356.1,.21,0)
;;=REVIEW STATUS^S^0:INACTIVE;1:ENTERED;2:PENDING;10:COMPLETE;^0;21^Q
;;^DD(356.1,.21,1,0)
;;=^.1
;;^DD(356.1,.21,1,1,0)
;;=356.1^AC
;;^DD(356.1,.21,1,1,1)
;;=S ^IBT(356.1,"AC",$E(X,1,30),DA)=""
;;^DD(356.1,.21,1,1,2)
;;=K ^IBT(356.1,"AC",$E(X,1,30),DA)
;;^DD(356.1,.21,1,1,"DT")
;;=2930714
;;^DD(356.1,.21,1,2,0)
;;=^^TRIGGER^356.1^1.05
;;^DD(356.1,.21,1,2,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I $P(^IBT(356.1,D0,0),U,21)=10,$P($G(^(1)),U,5)="" I X S X=DIV S Y(1)=$S($D(^IBT(356.1,D0,1)):^(1),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y X ^DD(356.1,.21,1,2,1.1) X ^DD(356.1,.21,1,2,1.4)
;;^DD(356.1,.21,1,2,1.1)
;;=S X=DIV S %=$P($H,",",2),X=DT_(%\60#60/100+(%\3600)+(%#60/10000)/100)
;;^DD(356.1,.21,1,2,1.4)
;;=S DIH=$S($D(^IBT(356.1,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,5)=DIV,DIH=356.1,DIG=1.05 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(356.1,.21,1,2,2)
;;=Q
;;^DD(356.1,.21,1,2,"%D",0)
;;=^^1^1^2930714^
;;^DD(356.1,.21,1,2,"%D",1,0)
;;=Trigger date completed when status changes to complete
;;^DD(356.1,.21,1,2,"CREATE CONDITION")
;;=I $P(^IBT(356.1,D0,0),U,21)=10,$P($G(^(1)),U,5)=""
;;^DD(356.1,.21,1,2,"CREATE VALUE")
;;=NOW
;;^DD(356.1,.21,1,2,"DELETE VALUE")
;;=NO EFFECT
;;^DD(356.1,.21,1,2,"DT")
;;=2930714
;;^DD(356.1,.21,1,2,"FIELD")
;;=#1.05
;;^DD(356.1,.21,1,3,0)
;;=^^TRIGGER^356.1^1.06
;;^DD(356.1,.21,1,3,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I $P(^IBT(356.1,D0,0),U,21)=10,$P($G(^(1)),U,6)="" I X S X=DIV S Y(1)=$S($D(^IBT(356.1,D0,1)):^(1),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y S X=DIV S X=DUZ X ^DD(356.1,.21,1,3,1.4)
;;^DD(356.1,.21,1,3,1.4)
;;=S DIH=$S($D(^IBT(356.1,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,6)=DIV,DIH=356.1,DIG=1.06 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
;;^DD(356.1,.21,1,3,2)
;;=Q
;;^DD(356.1,.21,1,3,"%D",0)
;;=^^1^1^2930714^
;;^DD(356.1,.21,1,3,"%D",1,0)
;;=Trigger completed by when status changes to complete
;;^DD(356.1,.21,1,3,"CREATE CONDITION")
;;=I $P(^IBT(356.1,D0,0),U,21)=10,$P($G(^(1)),U,6)=""
;;^DD(356.1,.21,1,3,"CREATE VALUE")
;;=S X=DUZ
;;^DD(356.1,.21,1,3,"DELETE VALUE")
;;=NO EFFECT
;;^DD(356.1,.21,1,3,"DT")
;;=2930714
;;^DD(356.1,.21,1,3,"FIELD")
;;=#1.06
;;^DD(356.1,.21,1,4,0)
;;=^^TRIGGER^356.1^.2
;;^DD(356.1,.21,1,4,1)
;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I $P(^IBT(356.1,DA,0),U,21)=10 I X S X=DIV S Y(1)=$S($D(^IBT(356.1,D0,0)):^(0),1:"") S X=$P(Y(1),U,20),X=X S DIU=X K Y S X="" X ^DD(356.1,.21,1,4,1.4)
;;^DD(356.1,.21,1,4,1.4)
;;=S DIH=$S($D(^IBT(356.1,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,20)=DIV,DIH=356.1,DIG=.2 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
;;^DD(356.1,.21,1,4,2)
;;=Q
IBINI05S ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(356.1)
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(356.1,.2,1,1,"%D",0)
+2 ;;=^^2^2^2940213^^
+3 ;;^DD(356.1,.2,1,1,"%D",1,0)
+4 ;;=Cross reference of all non-completed reviews so it can be used as a tickler
+5 ;;^DD(356.1,.2,1,1,"%D",2,0)
+6 ;;=file.
+7 ;;^DD(356.1,.2,1,1,"DT")
+8 ;;=2930722
+9 ;;^DD(356.1,.2,5,1,0)
+10 ;;=356.1^.21^4
+11 ;;^DD(356.1,.2,21,0)
+12 ;;=^^7^7^2940213^^
+13 ;;^DD(356.1,.2,21,1,0)
+14 ;;=This is the date that this review should be reviewed next. If the review
+15 ;;^DD(356.1,.2,21,2,0)
+16 ;;=status is entered then this field will contain the date it was entered. If
+17 ;;^DD(356.1,.2,21,3,0)
+18 ;;=the review status is complete then the data in this field is automatically
+19 ;;^DD(356.1,.2,21,4,0)
+20 ;;=deleted.
+21 ;;^DD(356.1,.2,21,5,0)
+22 ;;=
+23 ;;^DD(356.1,.2,21,6,0)
+24 ;;=This field is used to create your pending work lists. Enter the date that
+25 ;;^DD(356.1,.2,21,7,0)
+26 ;;=you want to be reminded to follow-up on this review.
+27 ;;^DD(356.1,.2,"DT")
+28 ;;=2930722
+29 ;;^DD(356.1,.21,0)
+30 ;;=REVIEW STATUS^S^0:INACTIVE;1:ENTERED;2:PENDING;10:COMPLETE;^0;21^Q
+31 ;;^DD(356.1,.21,1,0)
+32 ;;=^.1
+33 ;;^DD(356.1,.21,1,1,0)
+34 ;;=356.1^AC
+35 ;;^DD(356.1,.21,1,1,1)
+36 ;;=S ^IBT(356.1,"AC",$E(X,1,30),DA)=""
+37 ;;^DD(356.1,.21,1,1,2)
+38 ;;=K ^IBT(356.1,"AC",$E(X,1,30),DA)
+39 ;;^DD(356.1,.21,1,1,"DT")
+40 ;;=2930714
+41 ;;^DD(356.1,.21,1,2,0)
+42 ;;=^^TRIGGER^356.1^1.05
+43 ;;^DD(356.1,.21,1,2,1)
+44 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I $P(^IBT(356.1,D0,0),U,21)=10,$P($G(^(1)),U,5)="" I X S X=DIV S Y(1)=$S($D(^IBT(356.1,D0,1)):^(1),1:"") S X=$P(Y(1),U,5),X=X S DIU=X K Y X ^DD(356.1,.21,1,2,1.1) X ^DD(356.1,.21,1,2,1.4)
+45 ;;^DD(356.1,.21,1,2,1.1)
+46 ;;=S X=DIV S %=$P($H,",",2),X=DT_(%\60#60/100+(%\3600)+(%#60/10000)/100)
+47 ;;^DD(356.1,.21,1,2,1.4)
+48 ;;=S DIH=$S($D(^IBT(356.1,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,5)=DIV,DIH=356.1,DIG=1.05 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+49 ;;^DD(356.1,.21,1,2,2)
+50 ;;=Q
+51 ;;^DD(356.1,.21,1,2,"%D",0)
+52 ;;=^^1^1^2930714^
+53 ;;^DD(356.1,.21,1,2,"%D",1,0)
+54 ;;=Trigger date completed when status changes to complete
+55 ;;^DD(356.1,.21,1,2,"CREATE CONDITION")
+56 ;;=I $P(^IBT(356.1,D0,0),U,21)=10,$P($G(^(1)),U,5)=""
+57 ;;^DD(356.1,.21,1,2,"CREATE VALUE")
+58 ;;=NOW
+59 ;;^DD(356.1,.21,1,2,"DELETE VALUE")
+60 ;;=NO EFFECT
+61 ;;^DD(356.1,.21,1,2,"DT")
+62 ;;=2930714
+63 ;;^DD(356.1,.21,1,2,"FIELD")
+64 ;;=#1.05
+65 ;;^DD(356.1,.21,1,3,0)
+66 ;;=^^TRIGGER^356.1^1.06
+67 ;;^DD(356.1,.21,1,3,1)
+68 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I $P(^IBT(356.1,D0,0),U,21)=10,$P($G(^(1)),U,6)="" I X S X=DIV S Y(1)=$S($D(^IBT(356.1,D0,1)):^(1),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y S X=DIV S X=DUZ X ^DD(356.1,.21,1,3,1.4)
+69 ;;^DD(356.1,.21,1,3,1.4)
+70 ;;=S DIH=$S($D(^IBT(356.1,DIV(0),1)):^(1),1:""),DIV=X S $P(^(1),U,6)=DIV,DIH=356.1,DIG=1.06 D ^DICR:$N(^DD(DIH,DIG,1,0))>0
+71 ;;^DD(356.1,.21,1,3,2)
+72 ;;=Q
+73 ;;^DD(356.1,.21,1,3,"%D",0)
+74 ;;=^^1^1^2930714^
+75 ;;^DD(356.1,.21,1,3,"%D",1,0)
+76 ;;=Trigger completed by when status changes to complete
+77 ;;^DD(356.1,.21,1,3,"CREATE CONDITION")
+78 ;;=I $P(^IBT(356.1,D0,0),U,21)=10,$P($G(^(1)),U,6)=""
+79 ;;^DD(356.1,.21,1,3,"CREATE VALUE")
+80 ;;=S X=DUZ
+81 ;;^DD(356.1,.21,1,3,"DELETE VALUE")
+82 ;;=NO EFFECT
+83 ;;^DD(356.1,.21,1,3,"DT")
+84 ;;=2930714
+85 ;;^DD(356.1,.21,1,3,"FIELD")
+86 ;;=#1.06
+87 ;;^DD(356.1,.21,1,4,0)
+88 ;;=^^TRIGGER^356.1^.2
+89 ;;^DD(356.1,.21,1,4,1)
+90 ;;=K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I $P(^IBT(356.1,DA,0),U,21)=10 I X S X=DIV S Y(1)=$S($D(^IBT(356.1,D0,0)):^(0),1:"") S X=$P(Y(1),U,20),X=X S DIU=X K Y S X="" X ^DD(356.1,.21,1,4,1.4)
+91 ;;^DD(356.1,.21,1,4,1.4)
+92 ;;=S DIH=$S($D(^IBT(356.1,DIV(0),0)):^(0),1:""),DIV=X S $P(^(0),U,20)=DIV,DIH=356.1,DIG=.2 D ^DICR:$O(^DD(DIH,DIG,1,0))>0
+93 ;;^DD(356.1,.21,1,4,2)
+94 ;;=Q