- Timestamp:
- Dec 4, 2009, 12:11:15 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WorldVistAEHR/trunk/r/AUTOMATED_LAB_INSTRUMENTS-LA/LA7UID.m
r613 r623 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 1 LA7UID ;DALOI/JMC - BUILD HL7 DOWNLOAD TO UI; 12/3/1997 2 ;;5.2;AUTOMATED LAB INSTRUMENTS;**17,57**;Sep 27, 1994 3 Q 4 ; 5 EN ;; This line tag is called from ^LADOWN when downloading 6 ; a load work list to the Auto Instrument. 7 ; 8 ; LRLL= IEN in 68.2 Load Worklist file, from field in 62.4 9 ; LRINST= IEN IN 62.4 Auto Inst file 10 ; LRAUTO= zero node of 62.4 entry 11 ; 12 S LA7INST=LRINST 13 I '$G(LA7ADL) D BLDINST^LA7ADL1(LA7INST,LRLL) 14 S LA76248=$P(^LAB(62.4,LA7INST,0),"^",8) 15 I 'LA76248 D Q 16 . I '$D(ZTQUEUED) D 17 . . W $C(7),!!,"You must have a MESSAGE CONFIGURATION defined in field 8 of" 18 . . W !,"the AUTO INSTRUMENT file before downloading to this instrument!" 19 . S XQAMSG="MESSAGE CONFIGURATION not defined in AUTO INSTRUMENT file for "_$P(LRAUTO,"^") 20 . D ERROR 21 . D EXIT 22 ; 23 I '$P(^LAHM(62.48,LA76248,0),"^",3) D Q 24 . I '$D(ZTQUEUED) D 25 . . W $C(7),!!,"The STATUS field in the MESSAGE PARAMETER file must be " 26 . . W !,"turned on before downloading to this instrument!" 27 . S XQAMSG="STATUS field in the MESSAGE PARAMETER file not turned on for "_$P(LRAUTO,"^") 28 . D ERROR 29 . D EXIT 30 ; 31 S LA7MODE=$P(^LAHM(62.48,LA76248,0),"^",4) 32 ; 33 ; 34 CALL ; Call the routine specified in the PROCESS DOWNLOAD field 35 ; in file 62.48 36 X $G(^LAHM(62.48,LA76248,2)) 37 ; 38 ; 39 EXIT ; Download for one whole load list is done 40 I '$G(LA7ADL) K ^TMP("LA7-INST",$J),LA76248,LA7MODE 41 Q 42 ; 43 ; 44 ERROR ; Send warning of error in Auto Instrument file configuration. 45 ; 46 S XQA("G.LAB MESSAGING")="" 47 D SETUP^XQALERT 48 Q
Note:
See TracChangeset
for help on using the changeset viewer.