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

AMER3E6.m

Go to the documentation of this file.
  1. AMER3E6 ;GDIT/HS/BEE - AMER v3.0 Patch 6 ENVIRONMENT CHECK ; 07 Oct 2013 11:33 AM
  1. ;;3.0;ER VISIT SYSTEM;**6**;MAR 03, 2009;Build 30
  1. ;
  1. ;Check for AMER*3.0*5
  1. I '$$INSTALLD("AMER*3.0*5") D FIX(2)
  1. ;
  1. ;Check for BJPC*2.0*11
  1. I '$$INSTALLD("BJPC*2.0*11") D FIX(2)
  1. ;
  1. ;Check for LEX*2.0*1003
  1. I '$$INSTALLD("LEX*2.0*1003") D FIX(2)
  1. ;
  1. Q
  1. ;
  1. INSTALLD(AMERSTAL) ;EP - Determine if patch AMERSTAL was installed, where
  1. ; AMERSTAL is the name of the INSTALL. E.g "AG*6.0*11".
  1. ;
  1. NEW AMERY,INST
  1. ;
  1. S AMERY=$O(^XPD(9.7,"B",AMERSTAL,""))
  1. S INST=$S(AMERY>0:1,1:0)
  1. D IMES(AMERSTAL,INST)
  1. Q INST
  1. ;
  1. IMES(AMERSTAL,Y) ;Display message to screen
  1. D MES^XPDUTL($$CJ^XLFSTR("Patch """_AMERSTAL_""" is"_$S(Y<1:" *NOT*",1:"")_" installed.",IOM))
  1. Q
  1. ;
  1. FIX(X) ;
  1. KILL DIFQ
  1. I X=3 S XPDQUIT=2 Q
  1. S XPDQUIT=X
  1. W *7,!,$$CJ^XLFSTR("This patch must be installed prior to the installation of AMER*3.0*6",IOM)
  1. Q