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

BMCPRE.m

Go to the documentation of this file.
  1. BMCPRE ; IHS/PHXAO/TMJ - PREINIT, CHK RQMNTS, ETC., DELETE DICS ;
  1. ;;4.0;REFERRED CARE INFO SYSTEM;;JAN 09, 2006
  1. ;
  1. ;Patch #1 - Includes running this same Pre-Init Routine
  1. NEW BMCNAME
  1. I '$G(DUZ) K DIFQ W $C(7),!,"DUZ UNDEFINED OR 0." S XPDQUIT=1 Q
  1. S IOM=IO ;IOM Variable doesn't appear to be around
  1. I '$L($G(DUZ(0))) K DIFQ W $C(7),!,"DUZ(0) UNDEFINED OR NULL." S XPDQUIT=1 Q
  1. S X=$P(^VA(200,DUZ,0),U),BMCNAME=$P($T(BMCPRE+1),";",4)
  1. W !!,"Hello - Checking system requirements...."
  1. I $G(^DD("VERSION"))<21 K DIFQ W $C(7),!,"I NEED AT LEAST FILEMAN 21." S XPDQUIT=1 Q
  1. W !,"FileMan OK.."
  1. I $S('$O(^DIC(9.4,"C","XU",0)):1,$G(^DIC(9.4,$O(^DIC(9.4,"C","XU",0)),"VERSION"))<7.1:1,1:0) K DIFQ W !,"I NEED AT LEAST KERNEL 7.1" S XPDQUIT=1 Q
  1. W !,"Kernel OK..."
  1. S %="STATUS"
  1. S X="BMC",Y="BMB"
  1. I '$D(^DIC(9.4,"C","BMC")),'$D(^DIC(19,"C",X)),'($E($O(^DIC(19,"B",Y)),1,4)=X),'($E($O(^DIC(19.1,"B",Y)),1,4)=X) W !!,"NEW INSTALL",! S ^TMP($J,"BMC","NEW INSTALL")=1 Q
  1. ;
  1. NEW DIC
  1. V1 ;
  1. W !!,"Checking PACKAGE File For Duplicate "_BMCNAME_" Entries"
  1. S X="BMC",DIC="^DIC(9.4,",DIC(0)="",D="C" D IX^DIC
  1. I Y<0 D S XPDQUIT=1 Q
  1. .K DIFQ
  1. .W !!,$C(7),$C(7),"You Have More Than One Entry For The "_BMCNAME_" In Your Package File."
  1. .W !,"One entry needs to be deleted."
  1. .W !,"Please Contact Computer Support Personnel Before Proceeding.",!!,$C(7),$C(7),$C(7)
  1. .D EOP^BMC
  1. .Q
  1. W !,"PACKAGE file OK..."
  1. ;
  1. ;D ^BMCPREI
  1. Q