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

LRUTELL.m

Go to the documentation of this file.
LRUTELL ;DALOI/REG - FIND EXISTING ACCESSION NUMBER ;04/23/10  12:55
 ;;5.2;LAB SERVICE;**350**;Sep 27, 1994;Build 230
 ;
 N LRSPEC,Y
 ;
 S Y=+^LRO(68,LRAA,1,LRAD,1,X,0),LRSPEC=$S($D(^(5,1,0)):+^(0),1:LRU)
 I 'Y K ^LRO(68,LRAA,LRAD,1,X),Y Q
 ;
 S Y(1)=$$GET1^DID($P(^LR(Y,0),"^",2),"","","GLOBAL NAME")
 S Y=$P(^LR(Y,0),"^",3)
 W $C(7),!!,"Sorry, Accession # ",X," assigned to ",$P(@(Y(1)_Y_",0)"),"^")
 ;
 I "CYEMSPAU"'[LRSS W " Specimen type: ",$S(LRSPEC'=0:$P(^LAB(61,LRSPEC,0),"^"),1:"NOT ENTERED")
 ;
 W !,"Specimen(s) Taken "
 S Y=$P(^LRO(68,LRAA,1,LRAD,1,X,0),U,3) D D^LRU
 W Y,!!
 Q