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

PRC1358C.m

Go to the documentation of this file.
  1. PRC1358C ;WOIFO/LKG-1358 COMPLIANCE REPORTS ;9/21/10 09:57
  1. ;;5.1;IFCAP;**130,148**;Oct 20, 2000;Build 5
  1. ;Per VHA Directive 2004-038, this routine should not be modified.
  1. IN1 ;Entry point for execution of scheduled 1358 compliance reports and
  1. ;start of logic for 1358 Separation of Duties Violations report
  1. N PRCDOW S PRCDOW=$$DOW^XLFDT($$NOW^XLFDT,1) Q:PRCDOW=0 ;Quit if Sunday
  1. N L,DIOBEG,DIOEND,DIC,DISUPNO,FLDS,BY,FR,TO,IOP,XMQUIET,XMDUZ,XMSUB,XMY
  1. S L=0,DIC=410,BY="[PRC SEPARATION VIOLATE]",FLDS="[PRC 1358 SEPARATION VIOL]"
  1. ;Set FR to "T-2" for Monday's output and "T-1" for other days
  1. S FR=$S(PRCDOW=1:"T-2",1:"T-1"),TO="T-1",IOP="P-MESSAGE-HFS;79"
  1. S XMQUIET=1,XMDUZ="1358 EXAMINER",XMSUB="1358 SEPARATION OF DUTIES VIOLATIONS"
  1. S XMY("G.PRC 1358 MONITORS")=""
  1. D EN1^DIP
  1. IN2 ;Start of code for Missing Fields report
  1. Q ;The Missing Fields Report (1358) [PRC 1358 MISSING FIELDS] has been removed.
  1. ;
  1. IN3 ;Entry point for user interactive 1358 Separation of Duties Violations report
  1. N L,DIOBEG,DIOEND,DIC,DIPCRIT,DISUPNO,FLDS,BY,FR,TO,IOP,X S DIPCRIT=1
  1. S DIOBEG="W:$E(IOST,1,2)=""C-"" @IOF",DIOEND="R:$E(IOST,1,2)=""C-"" !,""Press RETURN to continue..."",X:DTIME"
  1. S L=0,DIC=410,BY="[PRC SEPARATION VIOLATE]",FLDS="[PRC 1358 SEPARATION VIOL]"
  1. D EN1^DIP
  1. Q
  1. ;
  1. IN4 ;Entry point for user interactive Missing 1358 Fields report
  1. N X W !!,"The Missing Fields Report (1358) [PRC 1358 MISSING FIELDS] has been deleted.",!?10,"Hit <RETURN> to continue... " R X:DTIME
  1. Q