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

PSDPATI.m

Go to the documentation of this file.
  1. PSDPATI ;B'ham ISC/BJW - Patient/Location Inquiry ; 11 Feb 98
  1. ;;3.0; CONTROLLED SUBSTANCES ;**8**;13 Feb 97
  1. ;**Y2K compliance**,"P" added to date input string
  1. I '$D(PSDSITE) D ^PSDSET Q:'$D(PSDSITE)
  1. I '$D(^XUSEC("PSD ERROR",DUZ)) W $C(7),!!,"Contact your Pharmacy Coordinator for access to display the",!,"Patient/Location data.",!!,"PSD ERROR security key required.",! Q
  1. PAT ;ask patient
  1. K DA,DIC S DIC=2,DIC(0)="QEAMZ",DIC("A")="Select Patient Name: "
  1. D ^DIC K DIC G:Y<0 END S DFN=+Y,PSDPAT=$P(Y,"^",2)
  1. DATE ;ask date
  1. K DA,%DT S %DT="AEPT",%DT("A")="Enter Date of Stay: "
  1. D ^%DT K %DT G:Y<0 END S VAINDT=+Y X ^DD("DD") S PSDT=Y
  1. INQ ;patient inquire
  1. D INP^VADPT W @IOF,?15,"Patient Inquiry",!!,"Patient: ",PSDPAT,!,"Date of Stay: ",PSDT,!,"Ward Location: ",$P(VAIN(4),"^",2),!,"Room-Bed: ",$P(VAIN(5),"^"),!
  1. D KVAR^VADPT K VA
  1. G PAT
  1. END ;kills variables
  1. K %DT,DA,DIC,DTOUT,DUOUT,PSDT,PSDPAT,X,Y
  1. Q