LRBLPP ; IHS/DIR/FJE - BB PATIENT PRINT OPTS 7/18/88 07:0 ;
;;5.2;LR;;NOV 01, 1997
;
;;5.2;LAB SERVICE;;Sep 27, 1994
S X="BLOOD BANK" D ^LRUTL Q:Y=-1
W @IOF W ?31,"Blood Bank Patient Print Options"
OPTS ;
R !!,"Select Blood Bank Patient Print Option: ",X:DTIME Q:X=""!(X[U)
F A=1:1 S Y=$P($T(OPT+A),";",3) Q:Y="" G:$E(X,1)=$P(Y,U,2) DO
W !!,"Select from:" G LST
DO W " ",$E($P(Y,U,1),7,$L($P(Y,U,1))),! S LROPT=$P(Y,U,3,4) D @LROPT G OPTS
LST F A=1:1 W !,?15,$P($P($T(OPT+A),";",3),U,1) Q:$T(OPT+A)=""
G OPTS
T S (BY,FLDS)="[LRBL TRANSFUSION REACTIONS]" G SET
SET D V^LRU S L=0,DIC="^LRD(65," K IOP G EN1^DIP
OPT ;;OPTION LIST
;;D ==> Display Blood bank record^D^^LRBLPD
;;T ==> Transfusion reactions report^T^T
LRBLPP ; IHS/DIR/FJE - BB PATIENT PRINT OPTS 7/18/88 07:0 ;
+1 ;;5.2;LR;;NOV 01, 1997
+2 ;
+3 ;;5.2;LAB SERVICE;;Sep 27, 1994
+4 SET X="BLOOD BANK"
DO ^LRUTL
IF Y=-1
QUIT
+5 WRITE @IOF
WRITE ?31,"Blood Bank Patient Print Options"
OPTS ;
+1 READ !!,"Select Blood Bank Patient Print Option: ",X:DTIME
IF X=""!(X[U)
QUIT
+2 FOR A=1:1
SET Y=$PIECE($TEXT(OPT+A),";",3)
IF Y=""
QUIT
IF $EXTRACT(X,1)=$PIECE(Y,U,2)
GOTO DO
+3 WRITE !!,"Select from:"
GOTO LST
DO WRITE " ",$EXTRACT($PIECE(Y,U,1),7,$LENGTH($PIECE(Y,U,1))),!
SET LROPT=$PIECE(Y,U,3,4)
DO @LROPT
GOTO OPTS
LST FOR A=1:1
WRITE !,?15,$PIECE($PIECE($TEXT(OPT+A),";",3),U,1)
IF $TEXT(OPT+A)=""
QUIT
+1 GOTO OPTS
T SET (BY,FLDS)="[LRBL TRANSFUSION REACTIONS]"
GOTO SET
SET DO V^LRU
SET L=0
SET DIC="^LRD(65,"
KILL IOP
GOTO EN1^DIP
OPT ;;OPTION LIST
+1 ;;D ==> Display Blood bank record^D^^LRBLPD
+2 ;;T ==> Transfusion reactions report^T^T