[613] | 1 | LA7UID ;DALIO/JRR - BUILD HL7 DOWNLOAD TO UI ;May 20, 2008
|
---|
| 2 | ;;5.2;AUTOMATED LAB INSTRUMENTS;**17,57,66**;Sep 27, 1994;Build 30
|
---|
| 3 | ;
|
---|
| 4 | Q
|
---|
| 5 | ;
|
---|
| 6 | EN ; This line tag is called from ^LADOWN when downloading
|
---|
| 7 | ; a load work list to the Auto Instrument. LADOWN1 should
|
---|
| 8 | ; have already built ^TMP($J with all of the atomic and
|
---|
| 9 | ; cosmic tests, ^TMP("LA7",$J holds all of the Instrument defined
|
---|
| 10 | ; tests from 62.4.
|
---|
| 11 | ; LRLL= IEN in 68.2 Load Worklist file, from field in 62.4
|
---|
| 12 | ; LRINST= IEN IN 62.4 Auto Inst file
|
---|
| 13 | ; LRAUTO= zero node of 62.4 entry
|
---|
| 14 | ;
|
---|
| 15 | N LA7MODE
|
---|
| 16 | S LA7INST=LRINST
|
---|
| 17 | I '$G(LA7ADL) D BLDINST^LA7ADL1(LA7INST,LRLL)
|
---|
| 18 | S LA76248=$P($G(^LAB(62.4,+$G(LRINST),0)),"^",8)
|
---|
| 19 | I 'LA76248 D Q
|
---|
| 20 | . S XQAMSG="MESSAGE CONFIGURATION not defined in AUTO INSTRUMENT file for "_$P(LRAUTO,"^")
|
---|
| 21 | . D ERROR,EXIT
|
---|
| 22 | . I '$D(ZTQUEUED) D ;
|
---|
| 23 | . . W $C(7),!!,"You must have a MESSAGE CONFIGURATION defined in field 8 of"
|
---|
| 24 | . . W !,"the AUTO INSTRUMENT file before downloading to this instrument!"
|
---|
| 25 | . ;
|
---|
| 26 | ;
|
---|
| 27 | I '$P(^LAHM(62.48,LA76248,0),"^",3) D Q
|
---|
| 28 | . S XQAMSG="STATUS field in the LA7 MESSAGE PARAMETER file not turned on for "_$P(LRAUTO,"^")
|
---|
| 29 | . D ERROR,EXIT
|
---|
| 30 | . I '$D(ZTQUEUED) D ;
|
---|
| 31 | . . W $C(7),!!,"The STATUS field in the LA7 MESSAGE PARAMETER file must be "
|
---|
| 32 | . . W !,"turned on before downloading to this instrument!"
|
---|
| 33 | . ;
|
---|
| 34 | ;
|
---|
| 35 | S LA7MODE=$P(^LAHM(62.48,LA76248,0),"^",4)
|
---|
| 36 | ;
|
---|
| 37 | ; Call the routine specified in the PROCESS DOWNLOAD field in file 62.48
|
---|
| 38 | ; Download for one whole load list is done
|
---|
| 39 | X $G(^LAHM(62.48,LA76248,2))
|
---|
| 40 | ;
|
---|
| 41 | EXIT I '$G(LA7ADL) K ^TMP("LA7",$J),LA76248
|
---|
| 42 | Q
|
---|
| 43 | ;
|
---|
| 44 | ;
|
---|
| 45 | ERROR ; Send warning of error in Auto Instrument file configuration.
|
---|
| 46 | S XQA("G.LAB MESSAGING")=""
|
---|
| 47 | D SETUP^XQALERT
|
---|
| 48 | K XQA,XQAMSG
|
---|
| 49 | Q
|
---|