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

APSPEC03.m

Go to the documentation of this file.
  1. APSPEC03 ;IHS/CIA/PLS - APSP ENVIRONMENT CHECK ROUTINE ;24-Aug-2005 10:43;SM
  1. ;;7.0;IHS PHARMACY MODIFICATIONS;**1003**;DEC 11, 2003
  1. ;
  1. ENV ;EP
  1. ;
  1. S X=$$GET1^DIQ(200,DUZ,.01)
  1. W !!,$$CJ^XLFSTR("Hello, "_$P(X,",",2)_" "_$P(X,","),IOM)
  1. W !!,$$CJ^XLFSTR("Checking Environment for "_$P($T(+2),";",4)_" V "_$P($T(+2),";",3)_", Patch 1003.",IOM)
  1. S (XPDDIQ("XPZ1"),XPDDIQ("XPZ2"))=0 ; Suppress the Disable options and Move routines prompts
  1. S XPDABORT=0
  1. D:'$D(^XPD(9.7,"B","PIMS*5.3*1002")) MES("Patch PIMS*5.3*1002 is required and hasn't been installed.",1)
  1. D:'$D(^XPD(9.7,"B","APSP*7.0*1002")) MES("Patch APSP*7.0*1002 is required and hasn't been installed.",1)
  1. I 'XPDABORT D
  1. .W !!,"All requirements for installation have been met...",!
  1. E D
  1. .W !!,"Unable to continue with the installation...",!
  1. Q
  1. ;
  1. MES(TXT,QUIT) ;EP
  1. D BMES^XPDUTL(" "_$G(TXT))
  1. S:$G(QUIT) XPDABORT=QUIT
  1. Q
  1. ;
  1. PRE ;EP - Pre-init
  1. D RENXPAR("CIAZPRX LOG MESSAGES","APSPPCC LOG MESSAGES")
  1. Q
  1. RENXPAR(OLD,NEW) ; Rename parameter
  1. N IEN,FDA,FIL
  1. S FIL=8989.51
  1. Q:$$FIND1^DIC(FIL,,"X",NEW) ; New name already exists
  1. S IEN=$$FIND1^DIC(FIL,,"X",OLD)
  1. Q:'IEN ; Old name doesn't exist
  1. S FDA(FIL,IEN_",",.01)=NEW
  1. D FILE^DIE("E","FDA")
  1. Q
  1. POST ;EP
  1. D REGPROT^CIAURPC("PS EVSEND OR","IHS PS HOOK")
  1. Q