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

LRHYF2.m

Go to the documentation of this file.
LRHYF2 ;VA/DALOI/HOAK - LAB ARRIVAL AND DRAW TIME UPDATER ; 13-Aug-2013 09:16 ; MKK
 ;;5.2;LAB SERVICE;**405,1033**;NOV 01, 1997
 ;
PAT ;
 ;
 K LRHNV
 S LREND=0
 S DIC="^DPT("
 S DIC(0)="AEMQZ"
 D ^DIC
 S DFN=+Y
 S LRDFN=$G(^DPT(DFN,"LR"))
 D ^VADPT,INP^VADPT
 ;
 QUIT
 ;
SINGLE ;
 ; This block calls up the testing demogs
 ;
 K LRAA,LRAN,LRTEXH,LRPHLEB,LRAD,LRN0,LRHNODE,LR0NODE,LRACC
 W !!
 S LRACC=""
 K LRHN0 D ^LRHYU4
 I LRAN<1 QUIT
JOEIN ;
 I '$D(^LRO(68,LRAA,1,LRAD,1,LRAN,0)) W !,"Doesn't exist." G SINGLE
 S LRUNC=1
 S LRDAT=+$P(^LRO(68,LRAA,1,LRAD,1,LRAN,0),U,4),LRSN=+$P(^(0),U,5)
 D LST1^LRHYLS1 ;URG^LRX,TESTS
 S LRTEST=$O(^LRO(68,LRAA,1,LRAD,1,LRAN,4,0))
 S LRURG=$P($G(^LRO(68,LRAA,1,LRAD,1,LRAN,4,LRTEST,0)),U,2)
 W !,$S($D(^LAB(62.05,+LRURG,0)):$P(^(0),U),1:"")," "
 D EDIT
 I $G(LREND) W !,"Please start over..." K LREND,LRIDTNEW
 G SINGLE
 ;
 ;
 QUIT
 ;
 ;
EDIT ;
 D D1^LRHYBC1 QUIT