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

BDGP17PS.m

Go to the documentation of this file.
BDGP17PS ;ihs/cmi/maw - PIMS Patch 1017 env checker
 ;;5.3;PIMS;**1017**;MAY 28, 2004;Build 5
 ;
ENV ;-- environment check
 I '$$INSTALLD("PIMS*5.3*1016") D SORRY(2)
 I '$$INSTALLD("BJPC*2.0*9") D SORRY(2)
 I '$$INSTALLD("TIU*1.0*1010") D SORRY(2)
 Q
 ;
POST ;post init entry point
 D RCMP
 Q
 ;
RCMP ;-- recompile the SDAMXOE template
 N TIEN
 S TIEN=$O(^DIE("B","SD ENCOUNTER ENTRY",0))
 Q:'TIEN
 D EN2^DIEZ(TIEN,,"SDAMXOE",15000)
 Q
 ;
INSTALLD(BDGSTAL) ;EP - Determine if patch BDGSTAL was installed, where
 ; BDGSTAL is the name of the INSTALL.  E.g "AG*6.0*11".
 ;
 NEW BDGY,DIC,X,Y
 S X=$P(BDGSTAL,"*",1)
 S DIC="^DIC(9.4,",DIC(0)="FM",D="C"
 D IX^DIC
 I Y<1 D IMES Q 0
 S DIC=DIC_+Y_",22,",X=$P(BDGSTAL,"*",2)
 D ^DIC
 I Y<1 D IMES Q 0
 S DIC=DIC_+Y_",""PAH"",",X=$P(BDGSTAL,"*",3)
 D ^DIC
 S BDGY=Y
 D IMES
 Q $S(BDGY<1:0,1:1)
IMES ;
 D MES^XPDUTL($$CJ^XLFSTR("Patch """_BDGSTAL_""" is"_$S(Y<1:" *NOT*",1:"")_" Present.",IOM))
 Q
SORRY(X) ;
 KILL DIFQ
 I X=3 S XPDQUIT=2 Q
 S XPDQUIT=X
 W *7,!,$$CJ^XLFSTR("Sorry....FIX IT!",IOM)
 Q
 ;