RGJUSITE ;ALB/JLU-CIRN SITE PARAMETER (#991.8) FILE API ;10/01/96
;;1.0;CLINICAL INFO RESOURCE NETWORK;**7,19**;30 Apr 99
;
SEND() ;this function call is used to determine if the MPI/PD messages should
;be fired. It will check the parameter 'stop mpi/pd messaging' in 991.8
;INPUTS - There are no inputs.
;OUTPUTS - This function will return a zero if the messages are
; to be stopped.
; A positive one will be returned if the messages are
; not to be stopped.
; A two will be returned for suspend.
;
N VAL,IEN,STOP ;**7
S STOP=1
S IEN=$O(^RGSITE(991.8,"B",1,0))
G STOPQ:'IEN
S VAL=$P($G(^RGSITE(991.8,IEN,1)),U,6)
S STOP=$S('VAL:0,1:1,2:2)
;
STOPQ Q STOP
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HRGJUSITE 735 printed Dec 13, 2024@01:42:05 Page 2
RGJUSITE ;ALB/JLU-CIRN SITE PARAMETER (#991.8) FILE API ;10/01/96
+1 ;;1.0;CLINICAL INFO RESOURCE NETWORK;**7,19**;30 Apr 99
+2 ;
SEND() ;this function call is used to determine if the MPI/PD messages should
+1 ;be fired. It will check the parameter 'stop mpi/pd messaging' in 991.8
+2 ;INPUTS - There are no inputs.
+3 ;OUTPUTS - This function will return a zero if the messages are
+4 ; to be stopped.
+5 ; A positive one will be returned if the messages are
+6 ; not to be stopped.
+7 ; A two will be returned for suspend.
+8 ;
+9 ;**7
NEW VAL,IEN,STOP
+10 SET STOP=1
+11 SET IEN=$ORDER(^RGSITE(991.8,"B",1,0))
+12 if 'IEN
GOTO STOPQ
+13 SET VAL=$PIECE($GET(^RGSITE(991.8,IEN,1)),U,6)
+14 SET STOP=$SELECT('VAL:0,1:1,2:2)
+15 ;
STOPQ QUIT STOP
+1 ;