source: FOIAVistA/trunk/r/AUTOMATED_LAB_INSTRUMENTS-LA/LAC178HP.m@ 794

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

initial load of FOIAVistA 6/30/08 version

File size: 1.3 KB
Line 
1LAC178HP ;SLC/FHS - DUAL CORNING 178 VIA HP COMPUTER ;8/16/90 14:12
2 ;;5.2;AUTOMATED LAB INSTRUMENTS;;Sep 27, 1994
3EN ;
4 ;Cross linked by IDE
5 ;Enter transmitted test name in PARAM 3
6 S:$D(ZTQUEUED) ZTREQ="@"
7 S LANM=$T(+0),TSK=$O(^LAB(62.4,"C",LANM,0)) Q:'$D(^LA(TSK,"I",0))
8 S SS="CH" D ^LASET Q:TSK<1 S X="TRAP^"_LANM,@^%ZOSF("TRAP")
9 F I=0:0 S I=$O(TC(I)) Q:I'>0 S LA(TC(I,4))=TC(I,1)
10 S (TOUT,ID)=0,TRAY=1
11LA2 D IN G QUIT:TOUT G LA2:$E(IN,1,7)'="Corning" D IN S X=$E(IN,20,30) D PACK G:X="---" LA2 S (CUP,ID,IDE)=X
12TEST ;
13 F A=0:0 D IN Q:IN="" S TEST=$P(IN," "),X=$E(IN,8,13) D PACK I $D(LA(TEST)) S @LA(TEST)=X
14 X LAGEN F I=0:0 S I=$O(TV(I)) Q:I<1 S R=$S($D(TV(I,1)):TV(I,1),1:"") S:R'="" ^LAH(LWL,1,ISQN,I)=R
15 F I=0:0 S I=$O(TC(I)) Q:I<1 S:$D(TC(I,1)) @TC(I,1)=""
16 G LA2
17PACK S Y=X,X="" F I=1:1:$L(Y) S:$A(Y,I)-32 X=X_$E(Y,I)
18 Q:X="" S:X'?.P1N.NP X="---" Q
19IN S CNT=^LA(TSK,"I",0)+1 IF '$D(^(CNT)) Q:TOUT>9 S TOUT=TOUT+1 H 9 G IN
20 S IN=^(CNT),^(0)=CNT,TOUT=0
21 Q
22QUIT F I=0:0 LOCK ^LA(TSK):1 Q:$T H 5 G QUIT
23 K ^LA(TSK),^LA("LOCK",TSK) LOCK
24 Q
25TRAP D ^LABERR S T=TSK D SET^LAB G @("LA2^"_LANM) ;ERROR TRAP
26 ;
27FORMAT ;Data stream should look like.
28 ;
29 ;Corning 178-1 xx/xx/xx 00:00
30 ; ACC #
31 ;pH 7.401
32 ;pCO2 57.8
33 ;pO2 47.5
34 ;COMMENT
35 ;
36 ;Spacing is not exact
Note: See TracBrowser for help on using the repository browser.