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

PSNEN169.m

Go to the documentation of this file.
  1. PSNEN169 ;BIR/RTR-Environment Check routine for patch PSN*4*169 ;10/04/08
  1. ;;4.0;NATIONAL DRUG FILE;**169**; 30 Oct 98;Build 8
  1. ;
  1. Q:'$G(XPDENV)
  1. ;
  1. EN ;
  1. N PSNVJMES,PSNVJAR,PSNVJARX,PSNVJLP,PSNVJFLG,DIC,DTOUT,DUOUT,X,Y,DIRUT,DIROUT,DIR
  1. S PSNVJMES(1)="Upon completion of the Post Install, a mail message will be sent"
  1. S PSNVJMES(2)="to the patch installer, and at least one pharmacy user. Please"
  1. S PSNVJMES(3)="enter one or more Pharmacy users (e.g., Pharmacy ADPAC or designee)"
  1. S PSNVJMES(4)="who should receive this message."
  1. D MES^XPDUTL(.PSNVJMES)
  1. S PSNVJAR(DUZ)=""
  1. S PSNVJFLG=0
  1. ;
  1. ASK ;
  1. D BMES^XPDUTL(" ")
  1. K DIC S DIC=200,DIC(0)="QEAMZ",DIC("A")="Enter Pharmacy User: "
  1. D ^DIC K DIC I $D(DTOUT)!($D(DUOUT))!(+Y'>0) G END
  1. I $D(PSNVJAR(+Y)) D BMES^XPDUTL("Already selected.") G ASK
  1. S PSNVJFLG=1
  1. S PSNVJAR(+Y)=""
  1. G ASK
  1. ;
  1. END ;
  1. I 'PSNVJFLG D BMES^XPDUTL("At least one pharmacy user must be selected. Install aborted.") S XPDABORT=2 Q
  1. D BMES^XPDUTL(" ")
  1. K DIR,Y S DIR(0)="Y",DIR("B")="Y",DIR("A")="Continue with install",DIR("?")="Enter 'Y' to continue with install, enter 'N' or '^' to abort install" D ^DIR K DIR
  1. I Y'=1!($D(DTOUT))!($D(DUOUT)) S XPDABORT=2 Q
  1. D BMES^XPDUTL(" ")
  1. F PSNVJLP=0:0 S PSNVJLP=$O(PSNVJAR(PSNVJLP)) Q:'PSNVJLP S @XPDGREF@("PSNVJARX",PSNVJLP)=""
  1. Q