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

PSDSP.m

Go to the documentation of this file.
  1. PSDSP ;BIR/JPW-Check for Disp Site - one or more ; 27 Jul 92
  1. ;;3.0; CONTROLLED SUBSTANCES ;;13 Feb 97
  1. I '$D(PSDSITE) D ^PSDSET Q:'$D(PSDSITE)
  1. EN S CNT=0 F LOC="M","S" F JJ=0:0 S JJ=$O(^PSD(58.8,"ASITE",+PSDSITE,LOC,JJ)) Q:'JJ S CNT=CNT+1,LOC(CNT)=JJ
  1. I '$D(LOC(1)) W !!,"Please contact your Pharmacy Coordinator.",!,"You have not defined a pharmacy Dispensing Site",!! G END
  1. S:'$D(LOC(2)) PSDS=+LOC(1),PSDSN=$P($G(^PSD(58.8,+PSDS,0)),"^")
  1. END K CNT,JJ,LOC