Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: FSCRPCAP

FSCRPCAP.m

Go to the documentation of this file.
  1. FSCRPCAP ;SLC/STAFF-NOIS RPC Alert Process ;1/11/98 18:48
  1. ;;1.1;NOIS;;Sep 06, 1998
  1. ;
  1. ALERT(XQADATA) ; from FSCRPCA
  1. I '$O(^FSCD("SEND","B",+XQADATA,0)) Q
  1. N CALL,LNUM,NUM
  1. K ^TMP("FSC CURRENT LIST",$J)
  1. K ^TMP("FSC LIST CLEANUP",$J)
  1. S LNUM=0
  1. S NUM=0 F S NUM=$O(^FSCD("SEND","B",+XQADATA,NUM)) Q:NUM<1 D
  1. .S CALL=+$P($G(^FSCD("SEND",NUM,0)),U,2)
  1. .D SETUP(CALL,$P($G(^FSCD("ALERT",+XQADATA,0)),U,3))
  1. .D MRA^FSCMR(DUZ,CALL)
  1. .S LNUM=LNUM+1
  1. .S ^TMP("FSC LIST CLEANUP",$J,LNUM)=$P($G(^FSCD("ALERT",+XQADATA,0)),U,3)
  1. .D OUTPUT^FSCRPCA
  1. S NUM=0 F S NUM=$O(^FSCD("SEND","B",+XQADATA,NUM)) Q:NUM<1 D
  1. .I '$L($P($G(^FSCD("SEND",NUM,0)),U,3)) S $P(^(0),U,3)=DT
  1. Q
  1. ;
  1. USER ; from FSCRPCA
  1. N CALL,DA,DIK,LNUM,NUM,X,Y
  1. K ^FSCD("ALERT","ALERT",DUZ)
  1. K ^TMP("FSC CURRENT LIST",$J)
  1. K ^TMP("FSC LIST CLEANUP",$J)
  1. S LNUM=0
  1. S DIK="^FSCD(""ALERT"","
  1. S CALL=0 F S CALL=$O(^FSCD("ALERT","AUC",DUZ,CALL)) Q:CALL<1 S NUM=^(CALL) D
  1. .D SETUP(CALL,$P($G(^FSCD("ALERT",NUM,0)),U,3))
  1. .D MRA^FSCMR(DUZ,CALL)
  1. .S LNUM=LNUM+1
  1. .S ^TMP("FSC LIST CLEANUP",$J,LNUM)=$P(^FSCD("ALERT",NUM,0),U,3)
  1. .S DA=+NUM D ^DIK
  1. .D OUTPUT^FSCRPCA
  1. Q
  1. ;
  1. SETUP(CALL,MSG) ;
  1. N LNUM
  1. S LNUM=1+$O(^TMP("FSC CURRENT LIST",$J,"A"),-1)
  1. I LNUM<1000 S LNUM=LNUM+1000
  1. S ^TMP("FSC CURRENT LIST",$J,LNUM)=CALL_U_$$SHORT^FSCRPXUS(CALL,DUZ)_" ("_MSG_")"
  1. S ^TMP("FSC CURRENT LIST",$J,"C",CALL)=LNUM
  1. Q