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

PSDP346.m

Go to the documentation of this file.
  1. PSDP346 ; BAY/KAM - Patch PSD*3*46 Install Utility Routine ;5/3/04 12:17pm
  1. ;;3.0; CONTROLLED SUBSTANCES;**46**;AUG 13, 1993
  1. ;
  1. ENV ;Main Entry point for Environment Check
  1. S XPDABORT=""
  1. D PROGCHK(.XPDABORT) ;checks programmer variables
  1. I XPDABORT="" K XPDABORT Q
  1. D COREFLS
  1. Q
  1. PROGCHK(XPDABORT) ; checks for necessary programmer variables
  1. ;
  1. I '$G(DUZ)!($G(DUZ(0))'="@")!('$G(DT))!($G(U)'="^") D
  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. COREFLS ; this is the environment check for CoreFLS
  1. I $$PATCH^XPDUTL("PSD*3.0*38")!($$PATCH^XPDUTL("PSA*3.0*32")) D
  1. . W !,"You are a test site for a CoreFLS version (Patch PSD*3*38 and/or PSA*3*32)",!,"of Controlled Substance or Drug Accountability"
  1. . W !,"Instructions are in PSD*3*38 and PSA*3*32 on how to flip the switch to CoreFLS."
  1. . W !,"This patch has a conflict with the FB-CoreFLS test software."
  1. . W !,"It must NOT be installed unless an accompanying update is made to the"
  1. . W !,"FB-CoreFLS software immediately after installation of this patch."
  1. . W !
  1. . K DIR S DIR(0)="YA"
  1. . S DIR("A")="Do you have the corresponding update to the FB-CoreFLS software that is associated with this patch? (Note:Entering ""No"" here will stop the installation of this patch) Y/N//"
  1. . D ^DIR K DIR
  1. . I $D(DTOUT)!$D(DUOUT)!(Y'=1) W !,"Installation of this patch has been stopped!" S XPDABORT=2 Q
  1. . W !,"OK to install"
  1. Q