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

PSGWPRE1.m

Go to the documentation of this file.
  1. PSGWPRE1 ;BHAM ISC/CML-Pre-init for AR/WS V2.3 ; 16 Jun 93 / 1:18 PM
  1. ;;2.3; Automatic Replenishment/Ward Stock ;;4 JAN 94
  1. I $S(('($D(DUZ)#2)):1,'$D(^VA(200,DUZ,0)):1,'$D(DUZ(0)):1,DUZ(0)'="@":1,1:0) W !!,"DUZ MUST BE SET TO A VALID USER NUMBER AND",!,"DUZ(0) MUST BE SET TO THE ""@"" SIGN",!! K DIFQ Q
  1. S XQABT1=$H
  1. G:'$D(^PSI(58.1,0)) START ; This version can be installed in an account that has not had AR/WS before
  1. I $S('$D(^PS(59.7,0)):1,'$D(^PS(59.7,1,59.99)):1,$P(^PS(59.7,1,59.99),"^")<2:1,1:0) D MSG K DIFQ Q ; This version cannot be installed in an account that is currently running a version prior to V2.04
  1. START ;
  1. D NOW^%DTC S INITDT=X,(START,Y)=% X ^DD("DD") W !!,"Beginning pre-init...",!!,"Initialization process started ",Y,".",!
  1. ;KILL DD FOR RETURN REASON FIELD
  1. W !!,"Deleting RETURN REASON subfield in Pharmacy AOU Stock file (#58.1)...",!,"(This field will be restored by inits as a multiple field)"
  1. S DA(1)=58.15,DA=2,DIK="^DD(58.15," D ^DIK
  1. QUIT W !!,"Pre-initialization is now complete!",!
  1. S (XQABT2,XQABT3)=$H
  1. K %,%H,%I,DA,DIC,DIK,LN,X,Y Q
  1. MSG S $P(LN,"*",79)=""
  1. W *7,*7,*7,!!,LN,!,"** You cannot install version 2.3 over a current version earlier than 2.04. **",!,"** Contact your local ISC for a copy of AR/WS V2.04 (tape and release notes)**"
  1. W !,"** and install it first.",?76,"**",!,"**",?76,"**",!,"********************* INSTALLATION OF AR/WS V2.3 ABORTED *********************" Q