source: WorldVistAEHR/trunk/r/AUTOMATED_LAB_INSTRUMENTS-LA/LAMIVTL3.m@ 1714

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

initial load of WorldVistAEHR

File size: 2.6 KB
RevLine 
[613]1LAMIVTL3 ;DAL/HOAK 3RD VITEK LITERAL VERIFY RCR ; 01/02/96 08:00
2 ;;5.2;AUTOMATED LAB INSTRUMENTS;**12,40**;Sep 27,1994
3INIT ;
4 ;FROM LAMIAUT2 BY FHS
5MOVE ;Move data into ^LR(LRDFN,"MI",LRIDT,3,
6 ;I LREND S LREND=0,^LAH(LRLL,1,LRIFN,3,IR,0)=LRCNODE K LRMOVE(IR) Q
7 ;
8 S %X="^LAH("_LRLL_",1,"_LRIFN_",3,"
9 S %Y="^LAH("_LRLL_",1,"_LRIFN_",3,"
10 D %XY^%RCR
11SET ;
12 S %X="^LAH("_LRLL_",1,"_LRIFN(LRIFN)_",3,"_LRISO_","
13 S %Y="^LR("_LRDFN_","""_LRSUB_""","_LRIDT_",3,"_LRISO_","
14 D %XY^%RCR
15 S $P(^LR(LRDFN,LRSUB,LRIDT,3,LRISO,0),U,2)=$G(LRQUANT(LRISO)),$P(^(0),U,3)=""
16 ;
17 I '$D(^LR(LRDFN,LRSUB,LRIDT,3,LRISO,1,0)) D
18 . S ^LR(LRDFN,LRSUB,LRIDT,3,LRISO,1,0)="^63.31A"
19 S LRORG93=$P(^LR(LRDFN,LRSUB,LRIDT,3,LRISO,1,0),U,3)
20 S LRORG94=$P(^LR(LRDFN,LRSUB,LRIDT,3,LRISO,1,0),U,4)
21 S $P(^LR(LRDFN,LRSUB,LRIDT,3,LRISO,1,0),U,3)=$G(LRORG93)+1
22 S $P(^LR(LRDFN,LRSUB,LRIDT,3,LRISO,1,0),U,4)=$G(LRORG94)+1
23 Q
24CHKLAH ;
25 S LRNOT=0
26 S LRTIC=""
27 S LRTIC=$O(^TMP($J,"LA",3,LRISO,LRIFN(LRIFN),LRTIC))
28 I $D(^LAH(LRLL,1,"VITLIT",3,LRISO,LRIFN(LRIFN),LRTIC)) D
29 . S LRNOT=1 K ^TMP($J,"LA",LRISO,3,LRIFN(LRIFN),LRTIC)
30 . ;REMOVEING DUPS FROM VITLIT XREF
31 . S LRIF=LRIFN(LRIFN)
32 . F S LRIF=$O(^LAH(LRLL,1,"VITLIT",3,LRISO,LRIF)) Q:LRIF="" D
33 .. S LRPRG=""
34 .. F S LRPRG=$O(^LAH(LRLL,1,"VITLIT",3,LRISO,LRIF,LRPRG)) Q:LRPRG="" D
35 ... I LRTIC=LRPRG K ^LAH(LRLL,1,"VITLIT",3,LRISO,LRIF,LRPRG) D
36 .... K ^LAH(LRLL,1,"VITLIT",3,LRISO,LRIFN(LRIFN),LRPRG)
37 Q
38SLICK ;
39 S LRIK=1
40 F S LRIK=$O(^LAH(LRLL,1,"C",LRAN,LRIK)) Q:+LRIK'>0 D
41 . S LRISO=0
42 . F S LRISO=$O(^LAH(LRLL,1,LRIK,3,LRISO)) Q:+LRISO'>0 D
43 .. S LRDRUG=0
44 .. F S LRDRUG=$O(^LAH(LRLL,1,LRIK,3,LRISO,LRDRUG)) Q:+LRDRUG'>0 D
45 ... I $G(^LAH(LRLL,1,LRPC,3,LRISO,LRDRUG))=^LAH(LRLL,1,LRIK,3,LRISO,LRDRUG) D
46 .... K ^LAH(LRLL,1,LRIK)
47 Q
48GLEEP ;
49 ; This block removes all ^LR except logging node and comments
50 K DIR
51 W !
52 S DIR(0)="Y"
53 S DIR("A")=" Shall I delete this data?: "
54 S DIR("B")="Yes"
55 D ^DIR
56 I $D(DTOUT)!($D(DUOUT))!(Y=0) S OK=0 QUIT
57 K ^LR(LRDFN,LRSUB,LRIDT,3)
58 K ^LR(LRDFN,LRSUB,LRIDT,1)
59 ; This is optional.-----\/
60 W @IOF
61 S LRJOB=" REMOVING ^LR DATA"
62 D JOBTIME
63 QUIT
64JOBTIME ;
65 ;CAN BE USED INSTEAD OF dots TO SHOW USER HOW JOB IS PROCEEDING
66 D ENS^%ZISS S %ZIS="I"
67 W !!,IODHLT,LRJOB,!,IODHLB,LRJOB
68 S DX=2,DY=10 X IOXY
69 F I=1:1:35 S DX=I*2+2,DY=16 X IOXY D ;add a factor here as job proceeds
70 . S DX=2*(2+I),DY=10 X IOXY
71 . W IORVON
72 . W "->"
73 . W IORVOFF
74 . S DX=16,DY=17 X IOXY
75 . W IODHLT,2*($E((I/70)*100,1,4)),"% "
76 . S DX=16,DY=18 X IOXY
77 . W IODHLB,2*($E((I/70)*100,1,4)),"% "
78 W !!,IODHLT,"DONE",!,IODHLB,"DONE"
79 D KILL^%ZISS
80 Q
Note: See TracBrowser for help on using the repository browser.