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

LA7UID.m

Go to the documentation of this file.
  1. LA7UID ;DALOI/JMC - BUILD HL7 DOWNLOAD TO UI; 12/3/1997
  1. ;;5.2;AUTOMATED LAB INSTRUMENTS;**17,57**;Sep 27, 1994
  1. Q
  1. ;
  1. EN ;; This line tag is called from ^LADOWN when downloading
  1. ; a load work list to the Auto Instrument.
  1. ;
  1. ; LRLL= IEN in 68.2 Load Worklist file, from field in 62.4
  1. ; LRINST= IEN IN 62.4 Auto Inst file
  1. ; LRAUTO= zero node of 62.4 entry
  1. ;
  1. S LA7INST=LRINST
  1. I '$G(LA7ADL) D BLDINST^LA7ADL1(LA7INST,LRLL)
  1. S LA76248=$P(^LAB(62.4,LA7INST,0),"^",8)
  1. I 'LA76248 D Q
  1. . I '$D(ZTQUEUED) D
  1. . . W $C(7),!!,"You must have a MESSAGE CONFIGURATION defined in field 8 of"
  1. . . W !,"the AUTO INSTRUMENT file before downloading to this instrument!"
  1. . S XQAMSG="MESSAGE CONFIGURATION not defined in AUTO INSTRUMENT file for "_$P(LRAUTO,"^")
  1. . D ERROR
  1. . D EXIT
  1. ;
  1. I '$P(^LAHM(62.48,LA76248,0),"^",3) D Q
  1. . I '$D(ZTQUEUED) D
  1. . . W $C(7),!!,"The STATUS field in the MESSAGE PARAMETER file must be "
  1. . . W !,"turned on before downloading to this instrument!"
  1. . S XQAMSG="STATUS field in the MESSAGE PARAMETER file not turned on for "_$P(LRAUTO,"^")
  1. . D ERROR
  1. . D EXIT
  1. ;
  1. S LA7MODE=$P(^LAHM(62.48,LA76248,0),"^",4)
  1. ;
  1. ;
  1. CALL ; Call the routine specified in the PROCESS DOWNLOAD field
  1. ; in file 62.48
  1. X $G(^LAHM(62.48,LA76248,2))
  1. ;
  1. ;
  1. EXIT ; Download for one whole load list is done
  1. I '$G(LA7ADL) K ^TMP("LA7-INST",$J),LA76248,LA7MODE
  1. Q
  1. ;
  1. ;
  1. ERROR ; Send warning of error in Auto Instrument file configuration.
  1. ;
  1. S XQA("G.LAB MESSAGING")=""
  1. D SETUP^XQALERT
  1. Q