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

PSOTPPRE.m

Go to the documentation of this file.
  1. PSOTPPRE ;BIR/RTR-Patch 146 Pre Install routine ;07/27/03
  1. ;;7.0;OUTPATIENT PHARMACY;**146**;DEC 1997
  1. ;
  1. I $$PATCH^XPDUTL("PSO*7.0*146") Q
  1. N X,Y,DA,DIC
  1. N PSOTPLLX
  1. S PSOTPLLX="" F S PSOTPLLX=$O(^PS(53,"B",PSOTPLLX)) Q:PSOTPLLX=""!($G(XPDABORT)=2) D
  1. .I $$UP^XLFSTR(PSOTPLLX)="NON-VA" S XPDABORT=2 D
  1. ..D BMES^XPDUTL("Aborting install, NON-VA entry found in RX PATIENT STATUS File (#53).") S XPDABORT=2
  1. I $G(XPDABORT)=2 Q
  1. START ;Add entry to file
  1. K DIC S DIC="^PS(53,",DIC(0)="",X="NON-VA",DIC("DR")="2////"_"NVA"_";3////"_30_";4////"_11_";5////"_1_";15////"_0_";16////"_0 K DD,DO D FILE^DICN K DA,DIC,X,DD,DO
  1. I Y<1 D BMES^XPDUTL("Aborting Install, cannot add NON-VA Rx Patient Status entry to File #53.") S XPDABORT=2
  1. Q