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

DG737PRE.m

Go to the documentation of this file.
  1. DG737PRE ;BAY/JAT;restore the audit on the INTEGRATION CONTROL NUMBER
  1. ;;5.3;Registration;**737**;Aug 13,1993;Build 8
  1. ; This is an environment check and a pre-init routine for DG*5.3*737
  1. ; The purpose is to turn on the audit on the INTEGRATION CONTROL NUMBER (ICN)
  1. ; (field 991.01 on the Patient file) which was inadvertently turned off
  1. ; by patch DG*5.3*650
  1. ;
  1. S XPDABORT=""
  1. D PROGCHK(.XPDABORT)
  1. I XPDABORT="" K XPDABORT
  1. ;
  1. Q
  1. ;
  1. PROGCHK(XPDABORT) ;
  1. I '$G(DUZ)!($G(DUZ(0))'="@")!('$G(DT))!($G(U)'="^") DO
  1. .D BMES^XPDUTL("*****")
  1. .D MES^XPDUTL("Your programming variables are not set up properly.")
  1. .D MES^XPDUTL("Installation aborted.")
  1. .D MES^XPDUTL("*****")
  1. .S XPDABORT=2
  1. .Q
  1. EN ;
  1. N FLDNUM
  1. S FLDNUM=991.01
  1. D TURNON^DIAUTL(2,FLDNUM)
  1. W !,"Adding AUDIT to field #",FLDNUM
  1. Q