LROCM ; IHS/DIR/FJE - WARNING MESSAGE ORDER LIST CLEAN-UP 07:48 ;
;;5.2;LR;**1013**;JUL 15, 2002
;
;;5.2;LAB SERVICE;;Sep 27, 1994
EN ;
S LRPD=$S($P(^LAB(69.9,1,0),U,9):$P(^(0),U,9),1:7),%DT="",X="T-"_LRPD D ^%DT,ADD^LRX S LRPDATE=Y
;W !!?7,"This option will purge Orders OLDER than '",LRPDATE,"'",!," from the Accession File 68 #",!," There are ",LRPD," days set for 'GRACE PERIOD FOR ORDERS' in file #69.9 ",!
W !!?7,"This Option will not purge the last ",LRPD," days of ORDERS/ACCESSIONS",!
W "As defined by the 'GRACE PERIOD FOR ORDER' field in file #69.9 "
W !!?10,"Orders/Accession OLDER than ",LRPDATE," will be PURGED",!
K LRPD,LRPDATE,%DT Q
LROCM ; IHS/DIR/FJE - WARNING MESSAGE ORDER LIST CLEAN-UP 07:48 ;
+1 ;;5.2;LR;**1013**;JUL 15, 2002
+2 ;
+3 ;;5.2;LAB SERVICE;;Sep 27, 1994
EN ;
+1 SET LRPD=$SELECT($PIECE(^LAB(69.9,1,0),U,9):$PIECE(^(0),U,9),1:7)
SET %DT=""
SET X="T-"_LRPD
DO ^%DT
DO ADD^LRX
SET LRPDATE=Y
+2 ;W !!?7,"This option will purge Orders OLDER than '",LRPDATE,"'",!," from the Accession File 68 #",!," There are ",LRPD," days set for 'GRACE PERIOD FOR ORDERS' in file #69.9 ",!
+3 WRITE !!?7,"This Option will not purge the last ",LRPD," days of ORDERS/ACCESSIONS",!
+4 WRITE "As defined by the 'GRACE PERIOD FOR ORDER' field in file #69.9 "
+5 WRITE !!?10,"Orders/Accession OLDER than ",LRPDATE," will be PURGED",!
+6 KILL LRPD,LRPDATE,%DT
QUIT