- IBINI01W ; ; 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
- ;;^DIC(350.6,0,"GL")
- ;;=^IBE(350.6,
- ;;^DIC("B","IB ARCHIVE/PURGE LOG",350.6)
- ;;=
- ;;^DIC(350.6,"%D",0)
- ;;=^^15^15^2940214^^
- ;;^DIC(350.6,"%D",1,0)
- ;;=This file will be used to track the archiving and purging operations
- ;;^DIC(350.6,"%D",2,0)
- ;;=of the following three data files used in billing:
- ;;^DIC(350.6,"%D",3,0)
- ;;=
- ;;^DIC(350.6,"%D",4,0)
- ;;= #350 INTEGRATED BILLING ACTION
- ;;^DIC(350.6,"%D",5,0)
- ;;= #351 CATEGORY C BILLING CLOCK
- ;;^DIC(350.6,"%D",6,0)
- ;;= #399 BILL/CLAIMS
- ;;^DIC(350.6,"%D",7,0)
- ;;=
- ;;^DIC(350.6,"%D",8,0)
- ;;=A log entry will be filed when an archival "search" is initiated for
- ;;^DIC(350.6,"%D",9,0)
- ;;=one of these files. Once the search end date is logged, archiving
- ;;^DIC(350.6,"%D",10,0)
- ;;=will be permitted, and subsequently purging will be allowed when the
- ;;^DIC(350.6,"%D",11,0)
- ;;=archive end date is logged. The log entry is thus used to assure that
- ;;^DIC(350.6,"%D",12,0)
- ;;=all the necessary steps for archiving and purging are performed in
- ;;^DIC(350.6,"%D",13,0)
- ;;=their entirety in the correct order.
- ;;^DIC(350.6,"%D",14,0)
- ;;=
- ;;^DIC(350.6,"%D",15,0)
- ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
- ;;^DD(350.6,0)
- ;;=FIELD^^3.03^14
- ;;^DD(350.6,0,"DDA")
- ;;=N
- ;;^DD(350.6,0,"DT")
- ;;=2920408
- ;;^DD(350.6,0,"ID",.03)
- ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^DIC(+$P(^(0),U,3),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(1,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
- ;;^DD(350.6,0,"ID",.05)
- ;;=W " ",@("$P($P($C(59)_$S($D(^DD(350.6,.05,0)):$P(^(0),U,3),1:0)_$E("_DIC_"Y,0),0),$C(59)_$P(^(0),U,5)_"":"",2),$C(59),1)")
- ;;^DD(350.6,0,"ID",1.01)
- ;;=W:$D(^(1)) " ",$E($P(^(1),U,1),4,5)_"-"_$E($P(^(1),U,1),6,7)_"-"_$E($P(^(1),U,1),2,3)
- ;;^DD(350.6,0,"IX","AF",350.6,.03)
- ;;=
- ;;^DD(350.6,0,"IX","AF1",350.6,1.01)
- ;;=
- ;;^DD(350.6,0,"IX","B",350.6,.01)
- ;;=
- ;;^DD(350.6,0,"IX","C",350.6,.02)
- ;;=
- ;;^DD(350.6,0,"IX","D",350.6,.03)
- ;;=
- ;;^DD(350.6,0,"IX","E",350.6,.05)
- ;;=
- ;;^DD(350.6,0,"NM","IB ARCHIVE/PURGE LOG")
- ;;=
- ;;^DD(350.6,.01,0)
- ;;=ARCHIVE LOG #^RNJ15,0^^0;1^K:+X'=X!(X>999999999999999)!(X<1)!(X?.E1"."1N.N) X
- ;;^DD(350.6,.01,1,0)
- ;;=^.1
- ;;^DD(350.6,.01,1,1,0)
- ;;=350.6^B
- ;;^DD(350.6,.01,1,1,1)
- ;;=S ^IBE(350.6,"B",$E(X,1,30),DA)=""
- ;;^DD(350.6,.01,1,1,2)
- ;;=K ^IBE(350.6,"B",$E(X,1,30),DA)
- ;;^DD(350.6,.01,3)
- ;;=Type a Number between 1 and 999999999999999, 0 Decimal Digits
- ;;^DD(350.6,.01,21,0)
- ;;=^^3^3^2920427^^^
- ;;^DD(350.6,.01,21,1,0)
- ;;=The Log # number is used to identify a unique archive/purge operation
- ;;^DD(350.6,.01,21,2,0)
- ;;=for a single file. The number will be equal to the internal entry
- ;;^DD(350.6,.01,21,3,0)
- ;;=number of the Log entry.
- ;;^DD(350.6,.01,"DT")
- ;;=2920408
- ;;^DD(350.6,.02,0)
- ;;=SEARCH TEMPLATE^F^^0;2^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>33!($L(X)<6) X
- ;;^DD(350.6,.02,1,0)
- ;;=^.1
- ;;^DD(350.6,.02,1,1,0)
- ;;=350.6^C
- ;;^DD(350.6,.02,1,1,1)
- ;;=S ^IBE(350.6,"C",$E(X,1,30),DA)=""
- ;;^DD(350.6,.02,1,1,2)
- ;;=K ^IBE(350.6,"C",$E(X,1,30),DA)
- ;;^DD(350.6,.02,1,1,"DT")
- ;;=2920408
- ;;^DD(350.6,.02,3)
- ;;=Answer must be 6-33 characters in length.
- ;;^DD(350.6,.02,21,0)
- ;;=^^7^7^2920427^
- ;;^DD(350.6,.02,21,1,0)
- ;;=This field contains the name of the Search Template used to contain the
- ;;^DD(350.6,.02,21,2,0)
- ;;=list of entries to be archived/purged. This name is the .01 field for
- ;;^DD(350.6,.02,21,3,0)
- ;;=the template entry in the SORT TEMPLATE file (#.401). The name of the
- ;;^DD(350.6,.02,21,4,0)
- ;;=template is stored instead of a hard pointer to the SORT TEMPLATE file
- IBINI01W ; ; 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 ;;^DIC(350.6,0,"GL")
- +2 ;;=^IBE(350.6,
- +3 ;;^DIC("B","IB ARCHIVE/PURGE LOG",350.6)
- +4 ;;=
- +5 ;;^DIC(350.6,"%D",0)
- +6 ;;=^^15^15^2940214^^
- +7 ;;^DIC(350.6,"%D",1,0)
- +8 ;;=This file will be used to track the archiving and purging operations
- +9 ;;^DIC(350.6,"%D",2,0)
- +10 ;;=of the following three data files used in billing:
- +11 ;;^DIC(350.6,"%D",3,0)
- +12 ;;=
- +13 ;;^DIC(350.6,"%D",4,0)
- +14 ;;= #350 INTEGRATED BILLING ACTION
- +15 ;;^DIC(350.6,"%D",5,0)
- +16 ;;= #351 CATEGORY C BILLING CLOCK
- +17 ;;^DIC(350.6,"%D",6,0)
- +18 ;;= #399 BILL/CLAIMS
- +19 ;;^DIC(350.6,"%D",7,0)
- +20 ;;=
- +21 ;;^DIC(350.6,"%D",8,0)
- +22 ;;=A log entry will be filed when an archival "search" is initiated for
- +23 ;;^DIC(350.6,"%D",9,0)
- +24 ;;=one of these files. Once the search end date is logged, archiving
- +25 ;;^DIC(350.6,"%D",10,0)
- +26 ;;=will be permitted, and subsequently purging will be allowed when the
- +27 ;;^DIC(350.6,"%D",11,0)
- +28 ;;=archive end date is logged. The log entry is thus used to assure that
- +29 ;;^DIC(350.6,"%D",12,0)
- +30 ;;=all the necessary steps for archiving and purging are performed in
- +31 ;;^DIC(350.6,"%D",13,0)
- +32 ;;=their entirety in the correct order.
- +33 ;;^DIC(350.6,"%D",14,0)
- +34 ;;=
- +35 ;;^DIC(350.6,"%D",15,0)
- +36 ;;=Per VHA Directive 10-93-142, this file definition should not be modified.
- +37 ;;^DD(350.6,0)
- +38 ;;=FIELD^^3.03^14
- +39 ;;^DD(350.6,0,"DDA")
- +40 ;;=N
- +41 ;;^DD(350.6,0,"DT")
- +42 ;;=2920408
- +43 ;;^DD(350.6,0,"ID",.03)
- +44 ;;=S %I=Y,Y=$S('$D(^(0)):"",$D(^DIC(+$P(^(0),U,3),0))#2:$P(^(0),U,1),1:""),C=$P(^DD(1,.01,0),U,2) D Y^DIQ:Y]"" W " ",Y,@("$E("_DIC_"%I,0),0)") S Y=%I K %I
- +45 ;;^DD(350.6,0,"ID",.05)
- +46 ;;=W " ",@("$P($P($C(59)_$S($D(^DD(350.6,.05,0)):$P(^(0),U,3),1:0)_$E("_DIC_"Y,0),0),$C(59)_$P(^(0),U,5)_"":"",2),$C(59),1)")
- +47 ;;^DD(350.6,0,"ID",1.01)
- +48 ;;=W:$D(^(1)) " ",$E($P(^(1),U,1),4,5)_"-"_$E($P(^(1),U,1),6,7)_"-"_$E($P(^(1),U,1),2,3)
- +49 ;;^DD(350.6,0,"IX","AF",350.6,.03)
- +50 ;;=
- +51 ;;^DD(350.6,0,"IX","AF1",350.6,1.01)
- +52 ;;=
- +53 ;;^DD(350.6,0,"IX","B",350.6,.01)
- +54 ;;=
- +55 ;;^DD(350.6,0,"IX","C",350.6,.02)
- +56 ;;=
- +57 ;;^DD(350.6,0,"IX","D",350.6,.03)
- +58 ;;=
- +59 ;;^DD(350.6,0,"IX","E",350.6,.05)
- +60 ;;=
- +61 ;;^DD(350.6,0,"NM","IB ARCHIVE/PURGE LOG")
- +62 ;;=
- +63 ;;^DD(350.6,.01,0)
- +64 ;;=ARCHIVE LOG #^RNJ15,0^^0;1^K:+X'=X!(X>999999999999999)!(X<1)!(X?.E1"."1N.N) X
- +65 ;;^DD(350.6,.01,1,0)
- +66 ;;=^.1
- +67 ;;^DD(350.6,.01,1,1,0)
- +68 ;;=350.6^B
- +69 ;;^DD(350.6,.01,1,1,1)
- +70 ;;=S ^IBE(350.6,"B",$E(X,1,30),DA)=""
- +71 ;;^DD(350.6,.01,1,1,2)
- +72 ;;=K ^IBE(350.6,"B",$E(X,1,30),DA)
- +73 ;;^DD(350.6,.01,3)
- +74 ;;=Type a Number between 1 and 999999999999999, 0 Decimal Digits
- +75 ;;^DD(350.6,.01,21,0)
- +76 ;;=^^3^3^2920427^^^
- +77 ;;^DD(350.6,.01,21,1,0)
- +78 ;;=The Log # number is used to identify a unique archive/purge operation
- +79 ;;^DD(350.6,.01,21,2,0)
- +80 ;;=for a single file. The number will be equal to the internal entry
- +81 ;;^DD(350.6,.01,21,3,0)
- +82 ;;=number of the Log entry.
- +83 ;;^DD(350.6,.01,"DT")
- +84 ;;=2920408
- +85 ;;^DD(350.6,.02,0)
- +86 ;;=SEARCH TEMPLATE^F^^0;2^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>33!($L(X)<6) X
- +87 ;;^DD(350.6,.02,1,0)
- +88 ;;=^.1
- +89 ;;^DD(350.6,.02,1,1,0)
- +90 ;;=350.6^C
- +91 ;;^DD(350.6,.02,1,1,1)
- +92 ;;=S ^IBE(350.6,"C",$E(X,1,30),DA)=""
- +93 ;;^DD(350.6,.02,1,1,2)
- +94 ;;=K ^IBE(350.6,"C",$E(X,1,30),DA)
- +95 ;;^DD(350.6,.02,1,1,"DT")
- +96 ;;=2920408
- +97 ;;^DD(350.6,.02,3)
- +98 ;;=Answer must be 6-33 characters in length.
- +99 ;;^DD(350.6,.02,21,0)
- +100 ;;=^^7^7^2920427^
- +101 ;;^DD(350.6,.02,21,1,0)
- +102 ;;=This field contains the name of the Search Template used to contain the
- +103 ;;^DD(350.6,.02,21,2,0)
- +104 ;;=list of entries to be archived/purged. This name is the .01 field for
- +105 ;;^DD(350.6,.02,21,3,0)
- +106 ;;=the template entry in the SORT TEMPLATE file (#.401). The name of the
- +107 ;;^DD(350.6,.02,21,4,0)
- +108 ;;=template is stored instead of a hard pointer to the SORT TEMPLATE file