source: FOIAVistA/trunk/r/LAB_SERVICE-LR-LS/LREXEC.m@ 1154

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

initial load of FOIAVistA 6/30/08 version

File size: 884 bytes
Line 
1LREXEC ;SLC/RWF - EXECUTE CODE EXPANSION ; 6/2/86 7:54 AM ;
2 ;;5.2;LAB SERVICE;;Sep 27, 1994
3 F LREX1=1:1 S LREX2=$P(LREXEC,U,LREX1) Q:LREX2="" D LR2
4 K LREX1,LREX2 Q
5LR2 I +LREX2'=LREX2 S LREX2=$O(^LAB(62.07,"B",LREX2,0)) I LREX2="" W " Execute code ",LREX2," not found." Q
6 I $D(^LAB(62.07,+LREX2,.1)) X ^(.1)
7 Q
8DELTA ;
9 F LREX1=1:1 S LREX2=$P(LREXEC,U,LREX1) Q:LREX2="" D LR4
10 K LREX1,LREX2 Q
11LR4 S LREX2=$O(^LAB(62.1,"B",LREX2,0)) I LREX2="" W " Delta code ",LREX2," not found." Q
12 I $D(^LAB(62.1,LREX2,1)) X ^(1)
13 Q
14SETVAL ;Set value in X into LRSB for test in X1.
15 Q:'$D(X)!('$D(X1)) Q:X1="" S Q2=$O(^LAB(60,"B",X1,0)) Q:Q2'>0 S Q1=$S($D(^LAB(60,Q2,0)):$P($P(^(0),"^",5),";",2),1:"") Q:Q1'>0
16 S LRSB(Q1)=X Q
17SETUTL ;Set ^TMP("LR",$J,"VTO",test) so that a test in X will be verified.
18 Q:'$D(X1) Q:X1="" S Q2=$O(^LAB(60,"B",X1,0)) Q:Q2'>0 S ^TMP("LR",$J,"VTO",Q2)=""
19 Q
Note: See TracBrowser for help on using the repository browser.