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

LRLABEL.m

Go to the documentation of this file.
LRLABEL ;SLC/TGA - PRINTS STANDARD LABELS 3.5X15/16 ;2/6/91  08:18 [ 05/06/2003  8:03 AM ]
 ;;5.2;LR;**1018,1022**;September 20, 2007
 ;;5.2;LAB SERVICE;**161**;Sep 27, 1994
 ;FOR 3.5 X 15/16 LABEL
 U IO
 S LRTXT=$$LRTXT^LRLABLD(.LRTS,54)
 I $G(LRBAR(+$G(LRAA)),0) D BAR Q  ; Print barcode label
 W LRACC
 ; I $P(LRURGA,"^",2),$L(LRURGA,"^") W ?20,$P(LRURGA,"^")
 ;----- BEGIN IHS/OIT/MKK MOD LR*5.2*1022
 I $P($G(LRURGA),"^",2),$L($G(LRURGA),"^") W ?20,$P($G(LRURGA),"^")
 ;----- END IHS/OIT/MKK MOD LR*5.2*1022
 W:$L(LRINFW) ?27,LRINFW
 ;W !,$E(PNM,1,22),?24,$P(LRDAT," "),!,SSN,"  W:",LRLLOC,?20,$S(LRRB=0:"",1:" B:"_LRRB)
 ;----- BEGIN IHS MODIFICATIONS LR*5.2*1018
 W !,$E(PNM,1,22),?24,"W: ",LRLLOC," ",$S(LRRB=0:"",1:" B:"_LRRB),?40,"SEX: ",SEX,!,HRCN," DOB: ",DOB  ;IHS/ANMC/CLS 11/1/95
 ;----- END IHS MODIFICATIONS
 W !
 I LRXL G SKIP:N-I<LRXL
 W LRPREF
SKIP ;W LRTOP,?15," Order:",LRCE,!
 ;----- BEGIN IHS MODIFICATIONS LR*5.2*1018
 W LRTOP,!  ;IHS/ANMC/CLS 11/1/95
 ;----- END IHS MODIFICATIONS
 W LRTXT,!!
 Q
 ;
BAR ;Print Bar code label
 W LRACC
 ; I $P(LRURGA,"^",2),$L(LRURGA,"^") W ?15,$P(LRURGA,"^")
 ;----- BEGIN IHS/OIT/MKK MOD LR*5.2*1022
 I $P($G(LRURGA),"^",2),$L($G(LRURGA),"^") W ?15,$P($G(LRURGA),"^")
 ;----- END IHS/OIT/MKK MOD LR*5.2*1022
 W:$L(LRINFW) ?21,LRINFW
 W !,$E(PNM,1,20),?22,$P(SSN,"-",3),!
 W:'$L(LRBAR1)!('$L(LRBAR0)) !
 I $L(LRBAR1),$L(LRBAR0) W @LRBAR1,LRBARID,@LRBAR0
 W:$D(LRTXT) LRTXT
 W !!
 Q