LRACP ;SLC/DCM - CUMULATIVE PURGE ;2/19/91 10:17 ; ;;5.2;LAB SERVICE;;Sep 27, 1994 QUEUE S U="^" W !,"This option uses the number of days entered in the GRACE PERIOD FOR CUMULATIVE",!,"field in the LABORATORY SITE file to identify and purge patient lab data from",!,"the cumulative file.",! W !?10,"The file is set for ( ",+$P(^LAB(69.9,1,0),U,12)," ) days ",! W !,"Are you sure you want to continue" S %=2 D YN^DICN I %=2!(%=-1) Q S ZTRTN="ENT^LRACP",ZTDESC="Cumulative Purge",ZTIO="" D ^%ZTLOAD Q MORE I '$D(^LR(LRDFN,0)) K ^LAC("LRAC",LRDFN) Q S X=^LR(LRDFN,0),LRDPF=$P(X,U,2),DFN=$P(X,U,3) Q:$O(^LR(LRDFN,"CH",0))