[613] | 1 | PSAENVIR ;BIR/JMB-Environment Check ;9/6/97
|
---|
| 2 | ;;3.0; DRUG ACCOUNTABILITY/INVENTORY INTERFACE;; 10/24/97
|
---|
| 3 | ;
|
---|
| 4 | 1 ;CS not installed or not V. 3.0 or greater
|
---|
| 5 | S Y=$$VERSION^XPDUTL("PSD")
|
---|
| 6 | I Y<3 D
|
---|
| 7 | .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
|
---|
| 8 | I '$$PATCH^XPDUTL("PSD*3.0*6") W !,"Patch PSD*3.0*6 must be installed before installing Drug Accountability.",! S XPDABORT=1
|
---|
| 9 | ;
|
---|
| 10 | 2 ;PDM not installed or not V. 1.0
|
---|
| 11 | S Y=$$VERSION^XPDUTL("PSS")
|
---|
| 12 | I Y="" W !!,"Pharmacy Data Management V. 1.0 or greater must be installed before",!,"installing Drug Accountability." S XPDABORT=1
|
---|
| 13 | ;
|
---|
| 14 | 3 ;Kernel not V. 8.0
|
---|
| 15 | S Y=+$$VERSION^XPDUTL("XU")
|
---|
| 16 | I Y<8 W !!,"Kernel V. 8.0 or greater must be installed before installing Drug",!,"Accountability." S XPDABORT=1
|
---|
| 17 | ;
|
---|
| 18 | 4 ;Toolkit not installed or not V. 7.2
|
---|
| 19 | S Y=+$$VERSION^XPDUTL("XT")
|
---|
| 20 | I Y<7.2 W !!,"Toolkit V. 7.2 or greater must be installed before installing Drug",!,"Accountability." S XPDABORT=1
|
---|
| 21 | ;
|
---|
| 22 | 5 ;PSN not installed or not V. 3.16
|
---|
| 23 | S Y=+$$VERSION^XPDUTL("PSN")
|
---|
| 24 | I Y<3.16 W !!,"National Drug File V. 3.16 or greater must be installed before installing",!,"Drug Accountability." S XPDABORT=1
|
---|
| 25 | ;
|
---|
| 26 | 6 ;No master vault.
|
---|
| 27 | I '$O(^PSD(58.8,"ADISP","M",0)) D
|
---|
| 28 | .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."
|
---|
| 29 | .S XPDABORT=1
|
---|
| 30 | K Y
|
---|
| 31 | Q
|
---|