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

LRIPRECK.m

Go to the documentation of this file.
  1. LRIPRECK ;SLC/FHS - PRE-INIT ENVIRONMENT CHECK FOR VERSION 5.2 ;10/18/90 13:36 ;
  1. ;;5.2;LR;;NOV 01, 1997
  1. ;
  1. ;;5.2;LAB SERVICE;;Sep 27, 1994
  1. EN ;
  1. I $G(U)'="^" G DUZ
  1. I $S('$D(DUZ):1,'$D(^VA(200,+DUZ)):1,'$D(IO):1,1:0) G DUZ
  1. I $S('$D(DUZ(0)):1,DUZ(0)'="@":1,1:0) G DUZ0
  1. I $D(^DD(60,0,"VR")),+^DD(60,0,"VR")<5.1 W !,$C(7),"YOU MUST HAVE AT LEAST VERSION 5.1 BEFORE I CAN INIT THIS VERSION ",$P($T(+2),";",3),! K DIFQ Q
  1. EN1 ;
  1. I $O(^DD(63.04,0)) S GLO="^DD(63.04",GLO1="^XTMP634",CM="," D ENT^LRIGCOPY
  1. I '$O(^DD(63.04,0)) W !?5,"You must first run the LR63INIT routines ",!!,$C(7) K DIFQ Q
  1. I '$D(^DD(62.4,.01,0))#2 W !?5,"You must first run ^LAINIT ",!!,$C(7) K DIFQ Q
  1. FIRST ;
  1. S IOP="HOME",%ZIS="" D ^%ZIS I POP W !,"HOME device is not defined ",! K DIFQ Q
  1. NPC I $G(^DD(60,0,"VR")),$G(^DD(60,0,"VR"))<5.11,$G(^LAB(60,"PREINIT"))'=2 D
  1. . W !!?5,"You must start the New Person conversion process before doing LRINITS ",!! K DIFQ
  1. Q:'$D(DIFQ)
  1. GLB ;
  1. W !!,"Checking for required globals.",!
  1. F I=60,61,62,62.6,69.9 I '$D(^LAB(I,0))#2 W !,"Global ^LAB("_I_",0) is missing Load Global Tape ",!!,$C(7) K DIFQ Q
  1. I $D(DIFQ) W !!?10,"Global check complete 'OK' ",!
  1. I '$O(^LAB(60,0)) W !!?10,"You must load the LABORATORY PACKAGE Globals",!,"Consult your installation guide.",!!,$C(7) K DIFQ Q
  1. G:$G(^DD(60,0,"VR"))>5.1!('$D(^DD(60,0))) END
  1. F I=1:1 Q:$P($T(MSG+I),";",3)="END" W !?5,$P($T(MSG+I),";",3)
  1. W !!?10,"OK to continue " S %=2 D YN^DICN I %'=1 K DIFQ Q
  1. Q
  1. MSG ;
  1. ;;Please ensure that the laboratory service has collected all of
  1. ;;workload (AMIS) data to this date. This information will be lost
  1. ;;after V 5.2 is installed.
  1. ;;
  1. ;;Please perform Purge old Orders and Accessions Option. This will
  1. ;;reduce the conversion time of the install.
  1. ;;
  1. ;;Make a copy of your tasked/startup Laboratory options. You will have
  1. ;;to re-enter the dates and times after the install.
  1. ;;END
  1. Q
  1. DUZ W !!?10,"Please log in using access and verify codes",!!,$C(7) K DIFQ Q
  1. DUZ0 W !!?10,"You do not have programmer access in your fileman access code",!!,$C(7) K DIFQ Q
  1. END ;
  1. Q