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

XUP468.m

Go to the documentation of this file.
  1. XUP468 ;OIFO-OAKLAND/RM - REPORT OF BACKUP ALERT REVIEWERS ;08/14/2007
  1. ;;8.0;KERNEL;**468**;Jul 10, 1995;Build 4
  1. ;This routines is in support of p468.
  1. Q
  1. RPT1 ;This report will generate a list of active users/providers that hold
  1. ;the ORES key and backup reviewers for ALERTS.
  1. N IEN S IEN=0
  1. F S IEN=$O(^VA(200,IEN)) Q:'IEN D
  1. .I ('$D(^VA(200,IEN,0)))#2 Q ;Check of zero node
  1. .Q:'$$ACTIVE^XUSER(IEN)
  1. .I $D(^XUSEC("ORES",IEN)) D
  1. ..S ^TMP("XQAL NO BKRV",$J,$P(^VA(200,IEN,0),U),IEN)=""
  1. ;WRITE REPORT
  1. N DIC,L,FLDS,BY
  1. S DIC="^VA(200,",L=0,FLDS="[XQAL NO BKUP REVIEWER]"
  1. S L(0)=2,BY(0)="^TMP(""XQAL NO BKRV"",$J,"
  1. D EN1^DIP
  1. Q
  1. BKRV(IEN) ;WRITE BACKUP REVEIWER
  1. ;This entry is called from the print template XQAL NO BKUP REVIEWER
  1. ;and will retieve all backup reveiwer for a provider. It will also
  1. ;check to see if the backup reviewer is an active user.
  1. N XQAA,BKIEN,BKNAME,I
  1. S BKNAME="",I=0
  1. D GETBKUP^XQALDEL(.XQAA,IEN)
  1. I $D(XQAA) S BKIEN=0 F S BKIEN=$O(XQAA(BKIEN)) Q:'BKIEN D
  1. .S I=I+1
  1. .I ('$D(^VA(200,BKIEN,0)))#2 Q ;Check of zero node
  1. .S BKNAME=$P(^VA(200,BKIEN,0),U)
  1. .I '$$ACTIVE^XUSER(BKIEN) S BKNAME="*"_BKNAME ;for an inactive user
  1. .W:I>1 !
  1. .W ?63,BKNAME ;print to report
  1. Q