Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: LRLABELG

LRLABELG.m

Go to the documentation of this file.
  1. LRLABELG ;DALOI/JMC - 1x3 label for Zebra Stripe printer; 6/4/98
  1. ;;5.2;LAB SERVICE;**218**;Sep 27, 1994
  1. ; Print Lab labels 25mm X 76mm (1X3) labels.
  1. ; Label length = 200 dots.
  1. ;
  1. N LRFONT,LRZ,ETX,STX
  1. ;
  1. D LH
  1. W STX
  1. ;
  1. ; Print urgency
  1. I $P(LRURGA,"^",2) D
  1. . I $P(LRURGA,"^",2)=2 D
  1. . . ; Set up graphic box.
  1. . . D GB^LRLABELD(340,0,15+($L($P(LRURGA,"^"))*12)_",20,20")
  1. . . ; Set field reverse.
  1. . . S LRFONT=LRFONT_"^FR"
  1. . D PL^LRLABELD(350,3,$P(LRURGA,"^"),LRFONT)
  1. . D FONT
  1. ;
  1. ; Print infection warning if present.
  1. I $L($G(LRINFW)) D
  1. . ; Make 'big' box else make 'little' box.
  1. . I $L(LRINFW)>10 S LRZ=130_",40,40"
  1. . E S LRZ=10+($L(LRINFW)*12)_",25,25"
  1. . D GB^LRLABELD(442,0,LRZ)
  1. . S LRFONT=LRFONT_"^FR"
  1. . ; Print infection warning.
  1. . D PL^LRLABELD(447,3,$E(LRINFW,1,10),LRFONT)
  1. . ; Print remainder of infection warning.
  1. . I $L(LRINFW)>10 D PL^LRLABELD(447,21,$E(LRINFW,11,20),LRFONT)
  1. . D FONT
  1. ;
  1. ; Print patient name.
  1. S LRFONT="^ADN,36,10"
  1. D PL^LRLABELD(0,0,$E(PNM,1,25),LRFONT)
  1. D FONT
  1. ;
  1. ; Print patient identifier.
  1. S LRFONT="^ADN,36,10"
  1. D PL^LRLABELD(0,40,SSN,LRFONT)
  1. D FONT
  1. ;
  1. ; Print patient location.
  1. D PL^LRLABELD(200,40,"Ward: "_LRLLOC,LRFONT)
  1. ;
  1. ; Print room-bed number.
  1. I $L(LRRB) D PL^LRLABELD(200,60," Bed: "_LRRB,LRFONT)
  1. ;
  1. ; Print accession.
  1. D PL^LRLABELD(0,80,LRACC,LRFONT)
  1. ;
  1. ; Print order number.
  1. D PL^LRLABELD(188,80,"Order #"_LRCE,LRFONT)
  1. ;
  1. ; Print Identifier.
  1. D PL^LRLABELD(0,100,LRUID,LRFONT)
  1. ;
  1. ; Print accession date.
  1. D PL^LRLABELD(188,100,LRDAT,LRFONT)
  1. ;
  1. ; Print collection sample.
  1. I LRXL,N-I<LRXL S X=LRTOP
  1. E S X=LRPREF_LRTOP
  1. D PL^LRLABELD(0,120,$E(X,1,55),LRFONT)
  1. ;
  1. ; Print list of tests
  1. S LRTXT=$$LRTXT^LRLABLD(.LRTS,55)
  1. D PL^LRLABELD(0,140,LRTXT,LRFONT)
  1. ;
  1. W ETX
  1. ;
  1. Q
  1. ;
  1. ;
  1. LH ; Set Label Home ("LH") parameters.
  1. ;
  1. S STX=$C(2),ETX=$C(3)
  1. ;
  1. ; Set Print Orientation ("PO") to Inverted, and Label Home ("LH") parameters.
  1. W STX,"^POI^LH240,5",ETX
  1. ;
  1. FONT ;
  1. ; Default font.
  1. S LRFONT="^ADN"
  1. Q