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

PSAENVIR.m

Go to the documentation of this file.
  1. PSAENVIR ;BIR/JMB-Environment Check ;9/6/97
  1. ;;3.0; DRUG ACCOUNTABILITY/INVENTORY INTERFACE;; 10/24/97
  1. ;
  1. 1 ;CS not installed or not V. 3.0 or greater
  1. S Y=$$VERSION^XPDUTL("PSD")
  1. I Y<3 D
  1. .W !!,"Controlled Substances V. 2.0 or greater must be installed before installing",!,"Drug Accountability. After you install the correct version and setup a",!,"master vault, you can install Drug Accountability." S XPDABORT=1
  1. I '$$PATCH^XPDUTL("PSD*3.0*6") W !,"Patch PSD*3.0*6 must be installed before installing Drug Accountability.",! S XPDABORT=1
  1. ;
  1. 2 ;PDM not installed or not V. 1.0
  1. S Y=$$VERSION^XPDUTL("PSS")
  1. I Y="" W !!,"Pharmacy Data Management V. 1.0 or greater must be installed before",!,"installing Drug Accountability." S XPDABORT=1
  1. ;
  1. 3 ;Kernel not V. 8.0
  1. S Y=+$$VERSION^XPDUTL("XU")
  1. I Y<8 W !!,"Kernel V. 8.0 or greater must be installed before installing Drug",!,"Accountability." S XPDABORT=1
  1. ;
  1. 4 ;Toolkit not installed or not V. 7.2
  1. S Y=+$$VERSION^XPDUTL("XT")
  1. I Y<7.2 W !!,"Toolkit V. 7.2 or greater must be installed before installing Drug",!,"Accountability." S XPDABORT=1
  1. ;
  1. 5 ;PSN not installed or not V. 3.16
  1. S Y=+$$VERSION^XPDUTL("PSN")
  1. I Y<3.16 W !!,"National Drug File V. 3.16 or greater must be installed before installing",!,"Drug Accountability." S XPDABORT=1
  1. ;
  1. 6 ;No master vault.
  1. I '$O(^PSD(58.8,"ADISP","M",0)) D
  1. .W !!,"A master vault must be set up in the Controlled Substances package before",!,"installing Drug Accountability. After you have set up a master vault, you",!,"can install Drug Accountability."
  1. .S XPDABORT=1
  1. K Y
  1. Q