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

MCARENV1.m

Go to the documentation of this file.
  1. MCARENV1 ;WISC/MLH-MEDICINE PACKAGE INSTALLATION-ENVIRONMENT CHECK ROUTINE #2 ;5/2/96 10:26
  1. ;;2.3;Medicine;;09/13/1996
  1. ;
  1. ; define bells & whistles
  1. N MCSCATT
  1. I $G(IOST)?1"C-VT".E F I=0:1:7 S MCSCATT(I)=$C(27,91)_I_"m"
  1. E F I=0:1:7 S MCSCATT(I)=""
  1. ;
  1. ; clean up some files before we start
  1. S OKTOGO=$$NOTIFY
  1. I OKTOGO S OKTOGO=$$NOTIFY1
  1. ; abort the init if user has requested a bailout
  1. IF 'OKTOGO D
  1. . W !!,"OK, stopping the installation here..nothing changed!"
  1. . K DIFQ
  1. . Q
  1. ;END IF
  1. ;
  1. QUIT
  1. ;
  1. NOTIFY(X) ; alert user to cleanup, allow them to bail out
  1. W @IOF,"*********************************************************"
  1. W !,"* *"
  1. W !,"* "
  1. W *7,MCSCATT(5),MCSCATT(7),"C A U T I O N !",MCSCATT(0),*7
  1. W " *",*7
  1. W !,"* *"
  1. W !,"* This pre-initialization routine will "
  1. W MCSCATT(4),"delete",MCSCATT(0)," the *"
  1. W !,"* ",MCSCATT(1),"DATA DICTIONARIES",MCSCATT(0)
  1. W " (but ",MCSCATT(4),"retain",MCSCATT(0)," the data) for the *"
  1. W !,"* following files: *"
  1. W !,"* *"
  1. W !,"* 690 (MEDICAL PATIENT) *"
  1. W !,"* 691.1 (CARDIAC CATHETERIZATION) *"
  1. W !,"* 697 (ANATOMY) *"
  1. W !,"* 697.5 (MEDICAL DIAGNOSIS/ICD CODES) *"
  1. W !,"* 699.6 (DIAG/THERAP INTERVENT) *"
  1. W !,"* *"
  1. W !,"* You "
  1. W MCSCATT(1),"MUST",MCSCATT(0)," save any local modifications to the *"
  1. W !,"* data dictionaries for these files before *"
  1. W !,"* proceeding with this routine. *"
  1. W !,"* (See the Installation Guide for instructions.) *"
  1. W !,"* Any changes not saved will be "
  1. W MCSCATT(1),"LOST!",MCSCATT(0)," *"
  1. W !,"* *"
  1. W !,"*********************************************************",!
  1. S DIR(0)="E",DIR("A")="Press ""^"" to abort the installation here, or RETURN to continue"
  1. D ^DIR
  1. Q Y
  1. ;
  1. NOTIFY1(X) ; alert user to cleanup -- part 2
  1. W @IOF,"*********************************************************"
  1. W !,"* *"
  1. W !,"* "
  1. W *7,MCSCATT(5),MCSCATT(7),"C A U T I O N !",MCSCATT(0),*7
  1. W " *",*7
  1. W !,"* *"
  1. W !,"* This pre-initialization routine will "
  1. W MCSCATT(4),"delete",MCSCATT(0)," the *"
  1. W !,"* ",MCSCATT(1),"DATA DICTIONARIES ",MCSCATT(0)
  1. W MCSCATT(4),"and",MCSCATT(0),MCSCATT(1)," DATA",MCSCATT(0)
  1. W " for the following *"
  1. W !,"* file: *"
  1. W !,"* *"
  1. W !,"* 697.3 (MEDICINE SCREEN) *"
  1. W !,"* *"
  1. W !,"* You "
  1. W MCSCATT(1),"MUST",MCSCATT(0)," save any local modifications to the *"
  1. W !,"* data dictionaries and data for this file *"
  1. W !,"* before proceeding with this routine. *"
  1. W !,"* (See the Installation Guide for instructions.) *"
  1. W !,"* Any changes not saved will be "
  1. W MCSCATT(1),"LOST!",MCSCATT(0)," *"
  1. W !,"* *"
  1. W !,"*********************************************************",!
  1. S DIR(0)="E",DIR("A")="Press ""^"" to abort the installation here, or RETURN to continue"
  1. D ^DIR
  1. Q Y