LRBLAGG ; IHS/DIR/FJE - BLOOD BANK AGGLUTINATION STRENGTH 3/9/94 10:29 ;
;;5.2;LR;;NOV 01, 1997
;
;;5.2;LAB SERVICE;;Sep 27, 1994
I X'?.ANP!($L(X)<1)!($L(X)>5) K X Q
S Y=$O(^LAB(62.55,"B",X,0)) I Y,$D(^LAB(62.55,Y,0)) S X(2)=^(0),X=$P(X(2),"^") W " ",X," ",$P(X(2),"^",2) Q
S:$D(DIC) LRTDIC=DIC S:$D(DIC(0)) LRTDIC(0)=DIC(0)
S DIC="^LAB(62.55,",DIC(0)="EQMZ" D ^DIC K DIC S:Y'=-1 X=$P(Y(0),"^") I Y=-1!(X["^") K X
END S:$D(LRTDIC) DIC=LRTDIC S:$D(LRTDIC(0)) DIC(0)=LRTDIC(0) K LRTDIC,LRTDIC(0) Q
OUT S %Y="",X=$O(^LAB(62.55,"B",Y,0)) Q:'X I $D(^LAB(62.55,X,0)) S %Y="("_$P(^(0),"^",2)_")" Q
LST ;
W "CHOOSE FROM:" S X=0 F A=0:0 S X=$O(^LAB(62.55,"B",X)) Q:X="" F Y=0:0 S Y=$O(^LAB(62.55,"B",X,Y)) Q:'Y I $D(^LAB(62.55,Y,0)) W !,X," ",$P(^(0),U,2) I $Y#21=0 R !,"'^' TO STOP: ",%Y:DTIME G:%Y[U END D STOP
Q
STOP W $C(13),$J("",15),$C(13) Q
LRBLAGG ; IHS/DIR/FJE - BLOOD BANK AGGLUTINATION STRENGTH 3/9/94 10:29 ;
+1 ;;5.2;LR;;NOV 01, 1997
+2 ;
+3 ;;5.2;LAB SERVICE;;Sep 27, 1994
+4 IF X'?.ANP!($LENGTH(X)<1)!($LENGTH(X)>5)
KILL X
QUIT
+5 SET Y=$ORDER(^LAB(62.55,"B",X,0))
IF Y
IF $DATA(^LAB(62.55,Y,0))
SET X(2)=^(0)
SET X=$PIECE(X(2),"^")
WRITE " ",X," ",$PIECE(X(2),"^",2)
QUIT
+6 IF $DATA(DIC)
SET LRTDIC=DIC
IF $DATA(DIC(0))
SET LRTDIC(0)=DIC(0)
+7 SET DIC="^LAB(62.55,"
SET DIC(0)="EQMZ"
DO ^DIC
KILL DIC
IF Y'=-1
SET X=$PIECE(Y(0),"^")
IF Y=-1!(X["^")
KILL X
END IF $DATA(LRTDIC)
SET DIC=LRTDIC
IF $DATA(LRTDIC(0))
SET DIC(0)=LRTDIC(0)
KILL LRTDIC,LRTDIC(0)
QUIT
OUT SET %Y=""
SET X=$ORDER(^LAB(62.55,"B",Y,0))
IF 'X
QUIT
IF $DATA(^LAB(62.55,X,0))
SET %Y="("_$PIECE(^(0),"^",2)_")"
QUIT
LST ;
+1 WRITE "CHOOSE FROM:"
SET X=0
FOR A=0:0
SET X=$ORDER(^LAB(62.55,"B",X))
IF X=""
QUIT
FOR Y=0:0
SET Y=$ORDER(^LAB(62.55,"B",X,Y))
IF 'Y
QUIT
IF $DATA(^LAB(62.55,Y,0))
WRITE !,X," ",$PIECE(^(0),U,2)
IF $Y#21=0
READ !,"'^' TO STOP: ",%Y:DTIME
IF %Y[U
GOTO END
DO STOP
+2 QUIT
STOP WRITE $CHAR(13),$JUSTIFY("",15),$CHAR(13)
QUIT