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

ACHSAUDD.m

Go to the documentation of this file.
  1. ACHSAUDD ; IHS/ITSC/PMF - TPF ACHS AUTO AUDIT PURGE ; [ 10/16/2001 8:16 AM ]
  1. ;;3.1;CONTRACT HEALTH MGMT SYSTEM;;JUN 11, 2001
  1. ;;
  1. ;;
  1. ;PURGE ALL DATA AUDIT ENTRIES FO ALL ACHS FILES
  1. START ;
  1. ;LETS SET UP THE FROM TO DATES
  1. S (FROMTXT,X)="T-30" D ^%DT S FROM=Y-1,FROM=FROM_".99999"
  1. S (TOTXT,X)="T" D ^%DT S TO=Y
  1. ;
  1. ;LETS GO THRU ALL CHS DATA NAMES
  1. ;
  1. S U="^"
  1. S ACHSFNAM="CHS "
  1. F S ACHSFNAM=$O(^DIC("B",ACHSFNAM)) Q:ACHSFNAM=""!($E(ACHSFNAM,1,3)'="CHS") D
  1. .S ACHSFNUM=$O(^DIC("B",ACHSFNAM,""))
  1. .Q:ACHSFNUM=""
  1. .W !,ACHSFNAM
  1. .D PURGE
  1. Q
  1. PURGE ;
  1. S DPP=1
  1. S DPP(1)=ACHSFNUM_U_"DATE/TIME RECORDED"_UUUUUUU1
  1. S DPP(1,"F")=FROM_U_FROMTXT_U
  1. S DPP(1,"T")=TO_U_TOTXT_U
  1. Q