IBINI01X ; ; 21-MAR-1994
;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
Q:'DIFQ(350.6) 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(350.6,.02,21,5,0)
;;=because the template is deleted from the file after the entries have
;;^DD(350.6,.02,21,6,0)
;;=been purged. The name of the template is the string "IB ARCHIVE/PURGE #"
;;^DD(350.6,.02,21,7,0)
;;=concatenated with the Archive Log # (field .01).
;;^DD(350.6,.02,"DT")
;;=2920408
;;^DD(350.6,.03,0)
;;=ARCHIVE FILE^P1'^DIC(^0;3^Q
;;^DD(350.6,.03,1,0)
;;=^.1
;;^DD(350.6,.03,1,1,0)
;;=350.6^D
;;^DD(350.6,.03,1,1,1)
;;=S ^IBE(350.6,"D",$E(X,1,30),DA)=""
;;^DD(350.6,.03,1,1,2)
;;=K ^IBE(350.6,"D",$E(X,1,30),DA)
;;^DD(350.6,.03,1,1,"DT")
;;=2920408
;;^DD(350.6,.03,1,2,0)
;;=350.6^AF^MUMPS
;;^DD(350.6,.03,1,2,1)
;;=I $D(^IBE(350.6,DA,1)),^(1) S ^IBE(350.6,"AF",X,-^(1),DA)=""
;;^DD(350.6,.03,1,2,2)
;;=I $D(^IBE(350.6,DA,1)),^(1) K ^IBE(350.6,"AF",X,-^(1),DA)
;;^DD(350.6,.03,1,2,"%D",0)
;;=^^5^5^2920408^
;;^DD(350.6,.03,1,2,"%D",1,0)
;;=Cross-reference of all ARCHIVE/PURGE LOG entries (by Archive file [#.03]
;;^DD(350.6,.03,1,2,"%D",2,0)
;;=and the inverse Search Begin Date/Time [#1.01]) for which a search has
;;^DD(350.6,.03,1,2,"%D",3,0)
;;=been initiated. The cross-reference will be used to find the most recent
;;^DD(350.6,.03,1,2,"%D",4,0)
;;=log entry for a file. The "AF1" cross-reference on the Search Begin
;;^DD(350.6,.03,1,2,"%D",5,0)
;;=Date/Time field (#1.01) is the companion to this cross-reference.
;;^DD(350.6,.03,1,2,"DT")
;;=2920408
;;^DD(350.6,.03,21,0)
;;=^^7^7^2940209^^
;;^DD(350.6,.03,21,1,0)
;;=This field points to the FILE file (#1) and represents the file to be
;;^DD(350.6,.03,21,2,0)
;;=archived/purged. The Billing data files subject to archiving/purging
;;^DD(350.6,.03,21,3,0)
;;=currently are:
;;^DD(350.6,.03,21,4,0)
;;=
;;^DD(350.6,.03,21,5,0)
;;= 350 INTEGRATED BILLING ACTION
;;^DD(350.6,.03,21,6,0)
;;= 351 CATEGORY C BILLING CLOCK
;;^DD(350.6,.03,21,7,0)
;;= 399 BILL/CLAIMS
;;^DD(350.6,.03,"DT")
;;=2920408
;;^DD(350.6,.04,0)
;;=# RECORDS ARCHIVED^NJ15,0^^0;4^K:+X'=X!(X>999999999999999)!(X<1)!(X?.E1"."1N.N) X
;;^DD(350.6,.04,3)
;;=Type a Number between 1 and 999999999999999, 0 Decimal Digits
;;^DD(350.6,.04,21,0)
;;=^^7^7^2920427^
;;^DD(350.6,.04,21,1,0)
;;=This field will contain the number of entries which have been processed
;;^DD(350.6,.04,21,2,0)
;;=in each sequential archive/purge operation. The 'Search' option will
;;^DD(350.6,.04,21,3,0)
;;=update the field with the number of entries which have met the search
;;^DD(350.6,.04,21,4,0)
;;=criteria. The 'Archive' option will update this field with the number
;;^DD(350.6,.04,21,5,0)
;;=of entries archived. The 'Purge' option will update the field with the
;;^DD(350.6,.04,21,6,0)
;;=number of entries purged. Also, the 'Delete Entry From Search Template'
;;^DD(350.6,.04,21,7,0)
;;=option will update the field when entries from the template are deleted.
;;^DD(350.6,.04,"DT")
;;=2920408
;;^DD(350.6,.05,0)
;;=LOG STATUS^S^1:OPEN;2:CLOSED;3:CANCELLED;^0;5^Q
;;^DD(350.6,.05,1,0)
;;=^.1
;;^DD(350.6,.05,1,1,0)
;;=350.6^E
;;^DD(350.6,.05,1,1,1)
;;=S ^IBE(350.6,"E",$E(X,1,30),DA)=""
;;^DD(350.6,.05,1,1,2)
;;=K ^IBE(350.6,"E",$E(X,1,30),DA)
;;^DD(350.6,.05,1,1,"DT")
;;=2920408
;;^DD(350.6,.05,21,0)
;;=^^4^4^2920427^^^
;;^DD(350.6,.05,21,1,0)
;;=This field contains the current status of the archive/purge operation.
;;^DD(350.6,.05,21,2,0)
;;=The status will be OPEN when the log entry is created, and CLOSED after
;;^DD(350.6,.05,21,3,0)
;;=successfully purging archived entries. The entry will be CANCELLED if an
IBINI01X ; ; 21-MAR-1994
+1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
+2 IF 'DIFQ(350.6)
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(350.6,.02,21,5,0)
+2 ;;=because the template is deleted from the file after the entries have
+3 ;;^DD(350.6,.02,21,6,0)
+4 ;;=been purged. The name of the template is the string "IB ARCHIVE/PURGE #"
+5 ;;^DD(350.6,.02,21,7,0)
+6 ;;=concatenated with the Archive Log # (field .01).
+7 ;;^DD(350.6,.02,"DT")
+8 ;;=2920408
+9 ;;^DD(350.6,.03,0)
+10 ;;=ARCHIVE FILE^P1'^DIC(^0;3^Q
+11 ;;^DD(350.6,.03,1,0)
+12 ;;=^.1
+13 ;;^DD(350.6,.03,1,1,0)
+14 ;;=350.6^D
+15 ;;^DD(350.6,.03,1,1,1)
+16 ;;=S ^IBE(350.6,"D",$E(X,1,30),DA)=""
+17 ;;^DD(350.6,.03,1,1,2)
+18 ;;=K ^IBE(350.6,"D",$E(X,1,30),DA)
+19 ;;^DD(350.6,.03,1,1,"DT")
+20 ;;=2920408
+21 ;;^DD(350.6,.03,1,2,0)
+22 ;;=350.6^AF^MUMPS
+23 ;;^DD(350.6,.03,1,2,1)
+24 ;;=I $D(^IBE(350.6,DA,1)),^(1) S ^IBE(350.6,"AF",X,-^(1),DA)=""
+25 ;;^DD(350.6,.03,1,2,2)
+26 ;;=I $D(^IBE(350.6,DA,1)),^(1) K ^IBE(350.6,"AF",X,-^(1),DA)
+27 ;;^DD(350.6,.03,1,2,"%D",0)
+28 ;;=^^5^5^2920408^
+29 ;;^DD(350.6,.03,1,2,"%D",1,0)
+30 ;;=Cross-reference of all ARCHIVE/PURGE LOG entries (by Archive file [#.03]
+31 ;;^DD(350.6,.03,1,2,"%D",2,0)
+32 ;;=and the inverse Search Begin Date/Time [#1.01]) for which a search has
+33 ;;^DD(350.6,.03,1,2,"%D",3,0)
+34 ;;=been initiated. The cross-reference will be used to find the most recent
+35 ;;^DD(350.6,.03,1,2,"%D",4,0)
+36 ;;=log entry for a file. The "AF1" cross-reference on the Search Begin
+37 ;;^DD(350.6,.03,1,2,"%D",5,0)
+38 ;;=Date/Time field (#1.01) is the companion to this cross-reference.
+39 ;;^DD(350.6,.03,1,2,"DT")
+40 ;;=2920408
+41 ;;^DD(350.6,.03,21,0)
+42 ;;=^^7^7^2940209^^
+43 ;;^DD(350.6,.03,21,1,0)
+44 ;;=This field points to the FILE file (#1) and represents the file to be
+45 ;;^DD(350.6,.03,21,2,0)
+46 ;;=archived/purged. The Billing data files subject to archiving/purging
+47 ;;^DD(350.6,.03,21,3,0)
+48 ;;=currently are:
+49 ;;^DD(350.6,.03,21,4,0)
+50 ;;=
+51 ;;^DD(350.6,.03,21,5,0)
+52 ;;= 350 INTEGRATED BILLING ACTION
+53 ;;^DD(350.6,.03,21,6,0)
+54 ;;= 351 CATEGORY C BILLING CLOCK
+55 ;;^DD(350.6,.03,21,7,0)
+56 ;;= 399 BILL/CLAIMS
+57 ;;^DD(350.6,.03,"DT")
+58 ;;=2920408
+59 ;;^DD(350.6,.04,0)
+60 ;;=# RECORDS ARCHIVED^NJ15,0^^0;4^K:+X'=X!(X>999999999999999)!(X<1)!(X?.E1"."1N.N) X
+61 ;;^DD(350.6,.04,3)
+62 ;;=Type a Number between 1 and 999999999999999, 0 Decimal Digits
+63 ;;^DD(350.6,.04,21,0)
+64 ;;=^^7^7^2920427^
+65 ;;^DD(350.6,.04,21,1,0)
+66 ;;=This field will contain the number of entries which have been processed
+67 ;;^DD(350.6,.04,21,2,0)
+68 ;;=in each sequential archive/purge operation. The 'Search' option will
+69 ;;^DD(350.6,.04,21,3,0)
+70 ;;=update the field with the number of entries which have met the search
+71 ;;^DD(350.6,.04,21,4,0)
+72 ;;=criteria. The 'Archive' option will update this field with the number
+73 ;;^DD(350.6,.04,21,5,0)
+74 ;;=of entries archived. The 'Purge' option will update the field with the
+75 ;;^DD(350.6,.04,21,6,0)
+76 ;;=number of entries purged. Also, the 'Delete Entry From Search Template'
+77 ;;^DD(350.6,.04,21,7,0)
+78 ;;=option will update the field when entries from the template are deleted.
+79 ;;^DD(350.6,.04,"DT")
+80 ;;=2920408
+81 ;;^DD(350.6,.05,0)
+82 ;;=LOG STATUS^S^1:OPEN;2:CLOSED;3:CANCELLED;^0;5^Q
+83 ;;^DD(350.6,.05,1,0)
+84 ;;=^.1
+85 ;;^DD(350.6,.05,1,1,0)
+86 ;;=350.6^E
+87 ;;^DD(350.6,.05,1,1,1)
+88 ;;=S ^IBE(350.6,"E",$E(X,1,30),DA)=""
+89 ;;^DD(350.6,.05,1,1,2)
+90 ;;=K ^IBE(350.6,"E",$E(X,1,30),DA)
+91 ;;^DD(350.6,.05,1,1,"DT")
+92 ;;=2920408
+93 ;;^DD(350.6,.05,21,0)
+94 ;;=^^4^4^2920427^^^
+95 ;;^DD(350.6,.05,21,1,0)
+96 ;;=This field contains the current status of the archive/purge operation.
+97 ;;^DD(350.6,.05,21,2,0)
+98 ;;=The status will be OPEN when the log entry is created, and CLOSED after
+99 ;;^DD(350.6,.05,21,3,0)
+100 ;;=successfully purging archived entries. The entry will be CANCELLED if an