1 | LAC178HP ;SLC/FHS - DUAL CORNING 178 VIA HP COMPUTER ;8/16/90 14:12
|
---|
2 | ;;5.2;AUTOMATED LAB INSTRUMENTS;;Sep 27, 1994
|
---|
3 | EN ;
|
---|
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
|
---|
11 | LA2 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
|
---|
12 | TEST ;
|
---|
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
|
---|
17 | PACK 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
|
---|
19 | IN 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
|
---|
22 | QUIT F I=0:0 LOCK ^LA(TSK):1 Q:$T H 5 G QUIT
|
---|
23 | K ^LA(TSK),^LA("LOCK",TSK) LOCK
|
---|
24 | Q
|
---|
25 | TRAP D ^LABERR S T=TSK D SET^LAB G @("LA2^"_LANM) ;ERROR TRAP
|
---|
26 | ;
|
---|
27 | FORMAT ;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
|
---|