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 ;DALIO/JRR - BUILD HL7 DOWNLOAD TO UI ;May 20, 2008
  1. ;;5.2;AUTOMATED LAB INSTRUMENTS;**17,57,66**;Sep 27, 1994;Build 30
  1. ;
  1. Q
  1. ;
  1. EN ; This line tag is called from ^LADOWN when downloading
  1. ; a load work list to the Auto Instrument. LADOWN1 should
  1. ; have already built ^TMP($J with all of the atomic and
  1. ; cosmic tests, ^TMP("LA7",$J holds all of the Instrument defined
  1. ; tests from 62.4.
  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. N LA7MODE
  1. S LA7INST=LRINST
  1. I '$G(LA7ADL) D BLDINST^LA7ADL1(LA7INST,LRLL)
  1. S LA76248=$P($G(^LAB(62.4,+$G(LRINST),0)),"^",8)
  1. I 'LA76248 D Q
  1. . S XQAMSG="MESSAGE CONFIGURATION not defined in AUTO INSTRUMENT file for "_$P(LRAUTO,"^")
  1. . D ERROR,EXIT
  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. . ;
  1. ;
  1. I '$P(^LAHM(62.48,LA76248,0),"^",3) D Q
  1. . S XQAMSG="STATUS field in the LA7 MESSAGE PARAMETER file not turned on for "_$P(LRAUTO,"^")
  1. . D ERROR,EXIT
  1. . I '$D(ZTQUEUED) D ;
  1. . . W $C(7),!!,"The STATUS field in the LA7 MESSAGE PARAMETER file must be "
  1. . . W !,"turned on before downloading to this instrument!"
  1. . ;
  1. ;
  1. S LA7MODE=$P(^LAHM(62.48,LA76248,0),"^",4)
  1. ;
  1. ; Call the routine specified in the PROCESS DOWNLOAD field in file 62.48
  1. ; Download for one whole load list is done
  1. X $G(^LAHM(62.48,LA76248,2))
  1. ;
  1. EXIT I '$G(LA7ADL) K ^TMP("LA7",$J),LA76248
  1. Q
  1. ;
  1. ;
  1. ERROR ; Send warning of error in Auto Instrument file configuration.
  1. S XQA("G.LAB MESSAGING")=""
  1. D SETUP^XQALERT
  1. K XQA,XQAMSG
  1. Q