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

LRDIST4.m

Go to the documentation of this file.
LRDIST4 ;SLC/DCM - GRAPH ENTRY FOR OE/RR ;8/11/97
 ;;5.2T9;LR;**1018**;Nov 17, 2004
 ;;5.2;LAB SERVICE;**121,153**;Sep 27, 1994
OERR ;OE/RR entry for lab graph
 I '$D(LRPARAM) D EN^LRPARAM
 D DT^LRX K DIC S LREND=0,LRDPF=+$P(@("^"_$P(ORVP,";",2)_"0)"),"^",2)_"^"_$P(ORVP,";",2) D END^LRDPA Q:LRDFN<1  D PT^LRX
 D LIST^LRDIST
 Q
SET ;
 S LRCW=8,LRFLAG="",LRCTRL=0
 K LREDT D ^LRWU3 Q:LREND
 S LRNSET=80,N=LRNSET
L2 F I=0:0 W !,"How many time points? ",LRNSET,"//" R X:DTIME Q:X[U!'$L(X)!(X\1=X&(X'<1))!(X?.N)  W "  Enter a whole number."
 Q:X[U  S:X'="" LRNSET=X S N=LRNSET
L3 K ^TMP("LR",$J,"TMP"),^TMP("LR",$J,"X"),X,LRORD,DIC,ZTRTN,ZTIO,ZTDESC,ZTSAVE,ZTSK S LRSPEC=-1,DIC(0)="AEOQZ" S DIC="^LAB(61,",DIC("A")="Select SITE/SPECIMEN: ANY//" D ^DIC S LRSPEC=+Y I $D(DUOUT) S OREND=1 Q
L4 S LRSS="CH" K DIC("A") S:'LRFLAG LRSDNORM=0 IF (LRSPEC>0!LRCTRL)&'LRFLAG W !,"Plot relative to ",$S(LRCTRL:"expected",1:"normal")," values (if available)" S %=1 D YN^DICN Q:%=-1  G L4:%=0 S:%=1 LRSDNORM=1
 S:N<2 N=30 S LRSSP=0,DIC="^LAB(60,",DIC("S")="I $P(^(0),U,4)=""CH"""_$S(LRCTRL:"",1:$S('$D(^XUSEC("LRLIASON",DUZ)):",""N""'[$P(^(0),U,3)",1:"")) D ^DIC Q:Y<1
 IF $L($P(^L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