SRHLXTMP ;B'HAM ISC/DLR - Surgery Interface Purge ^XTMP("SRHL7"_CASE# ; [ 05/06/98 7:14 AM ]
;;3.0; Surgery ;**41**;24 Jun 93
; Per VHA Directive 10-93-142, this routine SHOULD NOT be modified.
;this routine is used to purge entries from the XTMP global
N SRX,SRX1
S SRX="" F S SRX=$O(^XTMP(SRX)) Q:SRX="" I SRX["SRHL7" S SRX1=0 F S SRX1=$O(^XTMP(SRX,SRX1)) Q:'SRX1 D
.I '$D(^XTMP(SRX,SRX1,0)) K ^XTMP(SRX)
.S X1=DT,X2=-1 D C^%DTC I ^XTMP(SRX,SRX1,0)'>X K ^XTMP(SRX)
Q
SRHLXTMP ;B'HAM ISC/DLR - Surgery Interface Purge ^XTMP("SRHL7"_CASE# ; [ 05/06/98 7:14 AM ]
+1 ;;3.0; Surgery ;**41**;24 Jun 93
+2 ; Per VHA Directive 10-93-142, this routine SHOULD NOT be modified.
+3 ;this routine is used to purge entries from the XTMP global
+4 NEW SRX,SRX1
+5 SET SRX=""
FOR
SET SRX=$ORDER(^XTMP(SRX))
IF SRX=""
QUIT
IF SRX["SRHL7"
SET SRX1=0
FOR
SET SRX1=$ORDER(^XTMP(SRX,SRX1))
IF 'SRX1
QUIT
Begin DoDot:1
+6 IF '$DATA(^XTMP(SRX,SRX1,0))
KILL ^XTMP(SRX)
+7 SET X1=DT
SET X2=-1
DO C^%DTC
IF ^XTMP(SRX,SRX1,0)'>X
KILL ^XTMP(SRX)
End DoDot:1
+8 QUIT