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

HLPOSTQ.m

Go to the documentation of this file.
  1. HLPOSTQ ;ALB/JRP - POST-INIT QUESTIONS;23-MAR-95
  1. ;;1.6;HEALTH LEVEL SEVEN;;Oct 13, 1995
  1. RUNAGAIN(RUNDATE) ;ASK USER IF POST-INIT SHOULD BE RUN AGAIN
  1. ;INPUT : RUNDATE - Date post-init was originally run
  1. ;OUTPUT : 1 = Yes
  1. ; 0 = No
  1. ; -1 = Error (bad input/time out/user abort)
  1. ;
  1. ;CHECK INPUT
  1. Q:('$G(RUNDATE)) -1
  1. Q:(RUNDATE'?7N.1".".6N) -1
  1. ;DECLARE VARIABLES
  1. N X,Y,DIR,DTOUT,DUOUT,DIRUT,DIROUT
  1. S Y=RUNDATE
  1. X ^DD("DD")
  1. S RUNDATE=$P(Y,"@",1)_" @ "_$P(Y,"@",2)
  1. S DIR(0)="YA"
  1. S DIR("A")="Do you wish to continue ? "
  1. S DIR("A",1)="Post-init was already run on "_RUNDATE
  1. S DIR("B")="NO"
  1. S DIR("?",1)="This post-init has already been run. Answering 'YES' will allow you to"
  1. S DIR("?",2)="selectively re-run portions of the post-init. If you do not want to do"
  1. S DIR("?")="this, answer 'NO' (the default response)."
  1. W !!
  1. D ^DIR
  1. ;USER ABORT
  1. Q:($D(DIRUT)) -1
  1. ;RETURN Y
  1. Q (+Y)
  1. PROTINST() ;ASK USER IF PROTOCOLS SHOULD BE RE-INSTALLED
  1. ;INPUT : None
  1. ;OUTPUT : 1 = Yes
  1. ; 0 = No
  1. ; -1 = Error (bad input/time out/user abort)
  1. ;
  1. ;DECLARE VARIABLES
  1. N X,Y,DIR,DTOUT,DUOUT,DIRUT,DIROUT
  1. S DIR(0)="YA"
  1. S DIR("A")="Do you want to re-install PROTOCOLS ? "
  1. S DIR("B")="YES"
  1. S DIR("?",1)="This package distributes a set of protocols which may have already"
  1. S DIR("?",2)="been installed. Answering 'YES' (the default and recommended response)"
  1. S DIR("?")="will re-install these protocols."
  1. W !!
  1. D ^DIR
  1. ;USER ABORT
  1. Q:($D(DIRUT)) -1
  1. ;RETURN Y
  1. Q (+Y)
  1. LISTINST() ;ASK USER IF LIST TEMPLATES SHOULD BE RE-INSTALLED
  1. ;INPUT : None
  1. ;OUTPUT : 1 = Yes
  1. ; 0 = No
  1. ; -1 = Error (bad input/time out/user abort)
  1. ;
  1. ;DECLARE VARIABLES
  1. N X,Y,DIR,DTOUT,DUOUT,DIRUT,DIROUT
  1. S DIR(0)="YA"
  1. S DIR("A")="Do you want to re-install LIST TEMPLATES ? "
  1. S DIR("B")="YES"
  1. S DIR("?",1)="This package distributes a set of list templates which may have already"
  1. S DIR("?",2)="been installed. Answering 'YES' (the default and recommended response)"
  1. S DIR("?")="will re-install these list templates."
  1. W !!
  1. D ^DIR
  1. ;USER ABORT
  1. Q:($D(DIRUT)) -1
  1. ;RETURN Y
  1. Q (+Y)
  1. FILECNV() ;ASK USER IF FILE CONVERSIONS SHOULD BE RE-RUN
  1. ;INPUT : None
  1. ;OUTPUT : 1 = Yes
  1. ; 0 = No
  1. ; -1 = Error (bad input/time out/user abort)
  1. ;
  1. ;DECLARE VARIABLES
  1. N X,Y,DIR,DTOUT,DUOUT,DIRUT,DIROUT
  1. S DIR(0)="YA"
  1. S DIR("A")="Do you want to re-run the file conversions ? "
  1. S DIR("B")="YES"
  1. S DIR("?",1)="Installation of this package requires that a set of file conversions be"
  1. S DIR("?",2)="run. Answering 'YES' (the default and recommended response) will allow"
  1. S DIR("?",3)="these conversions to be re-run. Answer 'NO' if the file conversions"
  1. S DIR("?")="have already run to completion."
  1. W !!
  1. D ^DIR
  1. ;USER ABORT
  1. Q:($D(DIRUT))
  1. ;RETURN Y
  1. Q (+Y)