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

LRUC.m

Go to the documentation of this file.
  1. LRUC ;DALISC/CYM GET LOCATIONS BY DIVISION ; 9/13/1999
  1. ;;5.2;LAB SERVICE;**72,247**;Sep 27, 1994
  1. ; Called from input transform of LOCATION field (#65.03,.04)
  1. S DIC="^SC(",DIC(0)="EQMZ",DIC("S")="I '$P(^(0),U,15)!(DUZ(2)=+$$SITE^VASITE(DT,+$P(^(0),U,15)))"
  1. D ^DIC K DIC
  1. I Y>0 S X=$P(Y,U,2) Q
  1. GET D EN^DDIOL("You must choose a location","","!,?5,$C(7)")
  1. D EN^DDIOL("Do you want to see the entire HOSPITAL LOCATION File?","","!,?3")
  1. S %=1 D YN^LRU I %=1 D
  1. . S DIC="^SC(",DIC(0)="AEQMZ",DIC("S")="I '$P(^(0),U,15)!(DUZ(2)=+$$SITE^VASITE(DT,+$P(^(0),U,15)))"
  1. . D ^DIC K DIC
  1. I Y=-1 K X Q
  1. I Y>0 S X=$P(Y,U,2) Q
  1. Q
  1. EN D EN^DDIOL("Please choose a location within your division","","!,?3,$C(7)")
  1. D EN^DDIOL("Type in at least two characters of your choice","","!,?3")
  1. D EN^DDIOL(" OR type in ^ to exit","","!,?5")
  1. Q