LRLABELD ;DALOI/JMC - ZEBRA STRIPE 1X2 label printer ; 6/4/98 ;;5.2;LAB SERVICE;**218**;Sep 27, 1994 ; EN ; Print 1x2 label formats ; N ETX,LRFONT,LRFMT,LRTXT,LRX,LRZ,STX ; S LRRB=$G(LRRB) ; ; Set specific symbology. S LRFMT=+$G(LRBAR(+$G(LRAA))) ; ; Set up list of tests S LRTXT=$$LRTXT^LRLABLD(.LRTS,30) ; D LH ; I 'LRFMT D NOBAR Q I LRFMT=1 D BAR1 Q I LRFMT>1 D BAR2 Q ; NOBAR ; Print Lab 25mm X 50mm (1 X 2) labels. ; Plain label, no barcode identifier. ; Label length = 200 dots (8 dots/mm printhead). ; W STX S LRFONT="^ADN,36,10" ; ; Print accession. D PL(0,5,LRACC,LRFONT) D FONT ; ; Print accession date. D PL(0,40,LRDAT,LRFONT) ; ; Print collection sample. I LRXL,N-I10:80,1:85) S LRFONT="^BY2,"_$S($L(LRBARID)<7:3,1:2)_",60^" S LRFONT=LRFONT_"B3N,Y,,N,N" D PL(LRX,60,LRBARID,LRFONT) ; ; Print order number. D FONT D PL(75,125,"Order #"_LRCE,LRFONT) ; ; Print collection sample. I LRXL,N-I10:1,1:2)_","_$S($L(LRBARID)<7:3,1:2)_",60^" S LRFONT=LRFONT_$S(LRFMT=2:"B3N,N,,N,N",LRFMT=3:"B3N,Y,,N,N",LRFMT=4:"BCN,,N,N",LRFMT=5:"B4N,,N,A",1:"BCN,,N,N") D PL(LRX,60,LRBARID,LRFONT),FONT ; ; Print human-readable ID. D PL(0,125,LRBARID,LRFONT) ; ; Print infection warning if present. I $L(LRINFW) D . D GB(135,123,10+($L(LRINFW)*12)_",16,16") ; make box . S LRFONT=LRFONT_"^FR" . D PL(140,124,LRINFW,LRFONT) ; ; Print accession date. D PL(0,143,$P(LRDAT," "),LRFONT) ; ; Print accession. D PL(120,143,LRACC,LRFONT) ; ; Print order number. D PL(0,161,"Order #"_LRCE,LRFONT) ; ; Print collection sample. I LRXL,N-I