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

BLRBARE.m

Go to the documentation of this file.
  1. BLRBARE ; IHS/DIR/FJE - INTERMEC 4100 2 LABEL FORMAT 12:36 ; [ 10/12/1999 12:25 PM ]
  1. ;;5.2;LR;**1003,1007,1009**;OCT 10, 1999
  1. ;;MODIFIED FOR SSMARIE 10/12/99 fje
  1. ;This routine will program the Intermec 4100 for two label formats
  1. ;which can be used with BLRLABLE routine to print one normal label
  1. ;and one with the accesion # barcoded if the BARCODE LABEL field in
  1. ;file 68 (Accession area) is set to YES
  1. FMT ;E3;F3 erases form 3 and accesses form #
  1. ;Hx defines field 0 as human readable code where x is variable # sent
  1. ;o150,390 sets origin from center of label for the variable #
  1. ;fx rotate value, 0=donot rotate,f1=90deg
  1. ;c2 field 0 will print in font 2
  1. ;;c0=7X9font,c1=7x11,c2=10x14,c7=5x7,c20=8,c21=12,c22=20
  1. ;h1=height of field is normal, h2=twice actual size
  1. ;w1=width of field is normal, w2=twice actual size
  1. ;d0,30 data entered is in printable mode and expect 30 char long
  1. ;b1 prints stat in reverse color
  1. ;Bx is barcode,o=origin,c0,1=Code3-9,h60=60dots high
  1. ;
  1. ;The code S X=0 X ^%ZOSF("RM") is used to replace U IO:0 which only
  1. ;works on an MSM system. This code will work with both DSM and MSM
  1. ;
  1. ZIS K %ZIS S %ZIS="QN" D ^%ZIS I POP W !?7,*7,"NO DEVICE SELECTED ",! D ^%ZISC Q
  1. S ZTIO=ION,ZTDTH=$H,ZTDESC="BAR CODE FORMAT DOWN LOAD",ZTRTN="BAR^BLRBARE" D ^%ZTLOAD
  1. D ^%ZISC W !!?5,"Barcode Formating Program",$S($G(ZTSK):" Queued ",1:" NOT QUEUED"),!!
  1. D ^%ZISC K ZTSK Q
  1. BAR ;programs format F3 for label with the accession # barcoded
  1. S:$D(ZTQUEUED) ZTREQ="@"
  1. S X=0 X ^%ZOSF("RM") W *2,*27,"C",*3
  1. W *2,*27,"P",*3
  1. W *2,"E3;F3;",*3
  1. L1 W *2,"F3;H1;o150,390;f1;c2;h1;w1;d0,35;",*3 ;TEST
  1. L2 W *2,"F3;H2;o133,350;f1;c2;h1;w1;d0,14;",*3 ;TOP/SPECIMEN
  1. L3 W *2,"F3;H3;o116,350;f1;c2;h1;w1;d0,13;",*3 ;ORDER#
  1. L4 W *2,"F3;H4;o160,450;f2;c2;h2;w1;d0,14;",*3 ;ACCESSION
  1. L5 W *2,"F3;H5;o175,418;f2;c2;h1;w1;d0,17;",*3 ;DATE IHS/FJE 3/18/99
  1. L6 W *2,"F3;H6;o30,350;f1;c2;h1;w1;d0,7;",*3 ;HRCN
  1. L7 W *2,"F3;H7;o30,250;f1;c2;h1;w1;d0,12;",*3 ;LOCATION
  1. L8 W *2,"F3;H8;o0,350;f1;c2;h2;w1;d0,21;",*3 ;PT.NAME
  1. L9 W *2,"F3;H9;o116,90;f1;c0;h1;w1;d0,4;",*3 ;STAT remove b1 (w3;b1:d0)
  1. L10 W *2,"F3;B10;o50,350;f1;c0,1;h60;w2;d0,5;",*3 ;BAR CODE
  1. L11 W *2,"F3;H11;o133,200;f1;c2;h1;w1;d0,16;",*3 ;PROVIDER
  1. L12 W *2,"F3;H12;o116,225;f1;c2;h1;w1;d0,14;",*3 ;DOB
  1. ;
  1. PLAIN ;programs format F2 for plain label /no barcoded accession #
  1. W *2,*27,"C",*3
  1. W *2,*27,"P",*3
  1. W *2,"E2;F2;",*3
  1. L13 W *2,"F2;H13;o150,450;f1;c2;h1;w1;d0,35;",*3 ;TEST
  1. L14 W *2,"F2;H14;o133,450;f1;c2;h1;w1;d0,13;",*3 ;ORDER#
  1. L15 W *2,"F2;H15;o133,250;f1;c2;h1;w1;d0,12",*3 ;LOCATION
  1. L16 W *2,"F2;H16;o105,350;f1;c2;h1;w1;d0,7;",*3 ;HRCN
  1. L17 W *2,"F2;H17;o105,250;f1;c2;h1;w1;d0,14;",*3 ;DOB
  1. L18 W *2,"F2;H18;o75,350;f1;c2;h2;w1;d0,21;",*3 ;PT.NAME
  1. L19 W *2,"F2;H19;o50,450;f1;c2;h1;w1;d0,14;",*3 ;TOP/SPECIMEN
  1. L20 W *2,"F2;H20;o33,450;f1;c2;h1;w1;d0,17;",*3 ;DATE IHS/FJE 10/12/99
  1. L21 W *2,"F2;H21;o0,450;f1;c2;h2;w1;d0,21;",*3 ;ACCESSION
  1. L22 W *2,"F2;H22;o33,155;f1;c0;h1;w1;d0,4;",*3 ;STAT remove b1 (w3;b1;d0)
  1. L23 W *2,"F2;H23;o50,300;f1;c2;h1;w1;d0,16;",*3 ;PROVIDER
  1. ;
  1. PRT ;programs the Intermec for print mode
  1. W *2,"R",*3
  1. D ^%ZISC Q
  1. TEST ;sets variables used with the test labels
  1. S NUMBER="00087",LRAN="CH 1008 87",LRDAT="10/08/93 18:00" D
  1. .S LRTOP="MARBLED RED",PNM="YOKUM,HOKUM",HRCN="1234567"
  1. .S DOB="10/30/1955"
  1. .S LRLLOC="SICU",LRCE="203987",LRTEST="CHEM 7",LRURG="STAT"
  1. .S LRACCAP="SURG 1008 999",LRSPEC="WOUND TISSUE"
  1. .S LRDOC="DR. SMITH"
  1. F3 ;prints sample of label with accession # barcoded
  1. S X=0 X ^%ZOSF("RM") W *2,*27,"E3",*24,!,LRTEST,!,LRTOP,!,"O#:",LRCE,!,LRAN,*3
  1. W *2,!,LRDAT,!,HRCN,!,"W:",LRLLOC,*3
  1. W *2,!,PNM,*3
  1. W *2,!,LRURG W *3
  1. W *2,!,NUMBER,*3
  1. W *2,!,LRDOC,*3
  1. W *2,!,DOB,*3
  1. W *2,*23,*15,"S30",*3
  1. ;
  1. F2 ;prints sample of label without a barcoded accession number
  1. S X=0 X ^%ZOSF("RM") W *2,*27,"E2",*24,!,LRTEST,!,"O#:",LRCE,!,"W:",LRLLOC,!,HRCN,!,"DOB:",DOB,*3
  1. W *2,!,PNM,!,LRTOP,*3
  1. W *2,!,LRDAT,!,LRAN,*3
  1. W *2,!,LRURG W *3
  1. W *2,!,LRDOC,*3
  1. W *2,*23,*15,"S30",*3
  1. Q