source: WorldVistAEHR/trunk/r/LAB_SERVICE-LR-LS/LRLLS3.m@ 1169

Last change on this file since 1169 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 1.4 KB
RevLine 
[613]1LRLLS3 ;SLC/RWF - MORE LOAD/WORK LIST CODE ;2/5/91 14:41 ;
2 ;;5.2;LAB SERVICE;;Sep 27, 1994
3SHOW D ^LRWU4 Q:LRAN<1
4 S LRDFN=+^LRO(68,LRAA,1,LRAD,1,LRAN,0),LRACC=^(.2),DFN=$P(^LR(LRDFN,0),U,3),LRDPF=$P(^(0),U,2) D PT^LRX
5 W !,LRACC," ",PNM," ",SSN
6 F T=0:0 S T=$O(^LRO(68,LRAA,1,LRAD,1,LRAN,4,T)) Q:T<1 S X=^(T,0) W !?5,$P(^LAB(60,+X,0),U),?20," "
7 G SHOW
8SH2 W !?5,$P(^LAB(60,+X,0),U)
9 S X=$P(X,U,3) W " ",$P(^LRO(68.2,+$P(X,";"),0),U)," TRAY:",$P(X,";",2)," CUP:",$P(X,";",3)
10 Q
11CLEAR ;unload any test that has not been verified, from LRLL3
12 F T=0:0 S T=$O(^LRO(68.2,LRINST,1,T)) Q:T<1 D CL1
13 S ^LRO(68.2,LRINST,2)="^1^1^^" K T,C,X,Y,Z Q
14CL1 F C=0:0 S C=$O(^LRO(68.2,LRINST,1,T,1,C)) Q:C<1 D CL2
15 I $O(^LRO(68.2,LRINST,1,T,1,0))="" K ^LRO(68.2,LRINST,1,T)
16 Q
17CL2 S X=+^LRO(68.2,LRINST,1,T,1,C,0),Y=$P(^(0),U,2),Z=$P(^(0),U,3)
18 S I=0 F S I=$O(^LRO(68.2,LRINST,1,T,1,C,1,I)) Q:I<1 I $D(^LRO(68,X,1,Y,1,Z,4,I,0)),'$P(^(0),U,5) S $P(^LRO(68,X,1,Y,1,Z,4,I,0),U,3)=""
19 K ^LRO(68.2,LRINST,1,T,1,C) Q
20 Q
21EN ;
22NWSEQNM ;SET A NEW STARTING SEQUENCE NUMBER
23 S DIC=68.2,DIC(0)="AEQ",DIC("S")="I '$P(^(0),U,3)" D ^DIC K DIC G END:Y<1 S LRLL=+Y
24NEWNUM W !,"Enter the ""new starting"" sequence number: " R X:DTIME G END:X=""!(X["^") S J=+X
25 W !,"Do you really want to wipe out data from ",J," on up" S %=2 D YN^DICN G NEWNUM:%'=1
26 L +^LAH(LRLL) F I=J-1:0 S I=$O(^LAH(LRLL,1,I)) Q:I<1 D ZAP^LRVR3
27 S ^LAH(LRLL)=J L -^LAH(LRLL)
28END K A,DIC,I,J,LRLL,X,Y,Z
29 Q
Note: See TracBrowser for help on using the repository browser.