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

BLRAG02A.m

Go to the documentation of this file.
  1. BLRAG02A ; IHS/MSC/SAT - LABORATORY ACCESSION GUI RPCS - PRINTING UTILITIES ; JAN 24, 2013; SAT
  1. ;;5.2;IHS LABORATORY;**1031**;NOV 01, 1997;Build 185
  1. ;
  1. ; BLR REF LAB USING LEDI - UL^BLRAG02 = return the value of the 'REF LAB USING LEDI?' field in the BLR MASTER CONTROL file
  1. ; BLR ICD LOOKUP - ICDLKUP^BLRAG07 = ICD code lookup
  1. ; BLR ORDER REASON LKUP - ORL^BLRAG07 = return order reasons from file 100.03
  1. ; BLR PATIENT LOOKUP - PTLK^BLRAG04 = Patient Lookup
  1. ; BLR PRINTERS AVAILABLE - DEVICE^BLRAG10 = return available printers from the DEVICE file
  1. ; BLR USER LOOKUP - NP^BLRAG06 = return entries from the NEW PERSON table 200 that are 'active'
  1. ;
  1. ; BLR ACCESSION - ACC^BLRAG05 = lab accession processor
  1. ; BLR ACCESSION PRINT - ABR^BLRAG02 = reprint accession label or manifest
  1. ; BLR ALL NON-ACCESSIONED - ANA^BLRAG01 = return all non-accessioned lab records
  1. ; BLR ALL-ACCESSIONED - ABD^BLRAG02 = return all accessioned records for given date range
  1. ; BLR COLLECTION INFO - BLC^BLRAG06 = check BLR PT CONFIRM parameter and return insurances for patient
  1. ; BLR DELETE TEST - DELTST^BLRAG08 = Cancel tests - Test are no longer deleted, instead the status is changed to Not Performed.
  1. ; BLR ORDER/TEST STATUS - LROS^BLRAG03 = return order/test status for given patient and date range
  1. ;
  1. ; BLR SHIP CONF - SC^BLRAG09A = select a shipping configuration
  1. ; BLR MANIFEST BUILD - BM^BLRAG09B = build a shipping manifest
  1. ; BLR MANIFEST CLOSE/SHIP - CLSHIP^BLRAG09C = Close/ship a shipping manifest
  1. ; BLR MANIFEST DISPLAY - DISP^BLRAG09G = screen formatted text for manifest display
  1. ; BLR MANIFEST START - SMONLY^BLRAG09C = Start a shipping manifest only, no building
  1. ; BLR MANIFEST TEST ADD - ADDTEST^BLRAG09C= Add tests to an existing manifest\
  1. ; BLR MANIFEST TEST REMOVE - REMVTST^BLRAG09C= Remove a test from manifest - actually flags test as "removed".
  1. ; BLR MANIFEST TESTS TO ADD- TARPC^BLRAG09B = return tests that can be added to a manifest
  1. ;
  1. LBLTYP ; Determine label routine to use. (LBLTYP^LRLABLD)
  1. ; Sets LRLABEL to label print routine (label^routine).
  1. ; Called by above, LRLABLD0, LRLABLIO, LRLABXOL, LRLABXT, LRPHLIS1
  1. ;
  1. N BLRDEVLS
  1. ; Default label routine
  1. S LRLABEL="^LRLABEL"_$P($G(^LAB(69.9,1,3)),U,3)
  1. S BLRIOS=$P($G(^LAB(69.9,1,0)),U,1)
  1. S BLRDEVLS=$O(^LAB(69.9,1,3.6,"B",+BLRDEV,0))
  1. I BLRDEVLS D
  1. . S BLRDEVLS(0)=$G(^LAB(69.9,1,3.6,BLRDEVLS,0))
  1. . ; default accession area for characteristics.
  1. . I '$G(LRAA),$P(BLRDEVLS(0),"^",6) S LRAA=$P(BLRDEVLS(0),"^",6)
  1. ;
  1. ; Site's local accession area label routine.
  1. I $G(LRAA)>0,$L($P(^LRO(68,LRAA,.4),"^",5)) D Q
  1. . S LRLABEL=$P(^LRO(68,LRAA,.4),"^",4,5)
  1. ;
  1. ; This device not defined in file #69.9.
  1. I BLRDEVLS<1 Q ; D ERR^BLRAGUT("BLRAG02A: Label device "_$P($G(^%ZIS(1,+BLRDEV,0)),U,1)_"is not defined in the LABORATORY SITE file.") Q
  1. ;
  1. ; Site's designated local label routine.
  1. I $L($P(BLRDEVLS(0),"^",5)) D Q
  1. . S LRLABEL=$P(BLRDEVLS(0),"^",4,5)
  1. ;
  1. ; Intermec 3000/4000 printer
  1. I $P(BLRDEVLS(0),"^",2)=1 D
  1. . I $P(BLRDEVLS(0),"^",3)=1 S LRLABEL="^LRLABELC" Q ; 1x3 label
  1. . I $P(BLRDEVLS(0),"^",3)=2 S LRLABEL="^LRLABELA" Q ; 1x2 label
  1. . I $P(BLRDEVLS(0),"^",3)=3 S LRLABEL="^LRLABELB" Q ; 10 part label
  1. ;
  1. ; Zebra ZPL II compatible printer
  1. I $P(BLRDEVLS(0),"^",2)=2 D
  1. . I $P(BLRDEVLS(0),"^",3)=1 S LRLABEL="^LRLABELG" Q ; 1x3 label
  1. . I $P(BLRDEVLS(0),"^",3)=2 S LRLABEL="^LRLABELD" Q ; 1x2 label
  1. . I $P(BLRDEVLS(0),"^",3)=3 S LRLABEL="^LRLABELE" Q ; 10 part label
  1. ;
  1. Q