LR291 ;DAL/WTY - LR*5.2*291 PATCH ENVIRONMENT CHECK ROUTINE ;8/10/04
;;5.2;LAB SERVICE;**291**;Sep 27, 1994
EN ; Does not prevent loading of the transport global.
; Environment check is done only during the install.
;
I '$G(XPDENV) D Q
.N XQA,XQAMSG
.S XQAMSG="Transport global for patch "_$G(XPDNM,"Unknown patch")
.S XQAMSG=XQAMSG_" loaded on "_$$HTE^XLFDT($H)
.S XQA("G.LMI")=""
.D SETUP^XQALERT
.S MSG="Sending transport global loaded alert to mail group G.LMI"
.D BMES^XPDUTL($$CJ^XLFSTR(MSG,80)) K MSG
;
D P68
D CHECK
D EXIT
Q
;
CHECK ; Perform environment check
;
I $S('$G(IOM):1,'$G(IOSL):1,$G(U)'="^":1,1:0) D Q
.D BMES^XPDUTL($$CJ^XLFSTR("Terminal Device is not defined",80))
.S XPDQUIT=2
;
I $S('$G(DUZ):1,$D(DUZ)[0:1,$D(DUZ(0))[0:1,1:0) D Q
.S MSG="Please log in to set local DUZ... variables"
.D BMES^XPDUTL($$CJ^XLFSTR(MSG,80)) K MSG
.S XPDQUIT=2
;
I '$D(^VA(200,$G(DUZ),0))#2 D Q
.S MSG="You are not a valid user on this system"
.D BMES^XPDUTL($$CJ^XLFSTR(MSG,80)) K MSG
.S XPDQUIT=2
;
S XPDDIQ("XPZ1")=0
;
Q
;
EXIT ;
I $G(XPDQUIT) D
.S MSG="--- Install Environment Check FAILED ---"
.D BMES^XPDUTL($$CJ^XLFSTR(MSG,80)) K MSG
I '$G(XPDQUIT) D
.D BMES^XPDUTL($$CJ^XLFSTR("--- Environment Check is Ok ---",80))
Q
;
PRE ; KIDS Pre install for LR*5.2*291
;
N XQA,XQAMSG
S XQAMSG="Installation of patch "_$G(XPDNM,"Unknown patch")
S XQAMSG=XQAMSG_" started on "_$$HTE^XLFDT($H)
S XQA("G.LMI")=""
D SETUP^XQALERT
;
S MSG="Sending install started alert to mail group G.LMI"
D BMES^XPDUTL($$CJ^XLFSTR(MSG,80)) K MSG
;
D BMES^XPDUTL($$CJ^XLFSTR("*** Pre install started ***",80))
;
S Y=$$OPTDE^XPDUTL("LRMENU",2)
S MSG="Disabling Laboratory DHCP Menu [LRMENU] option"
D BMES^XPDUTL($$CJ^XLFSTR(MSG,80)) K MSG
;
D BMES^XPDUTL($$CJ^XLFSTR("*** Pre install completed ***",80))
;
Q
;
POST ; KIDS Post install for LR*5.2*291
;
N XQA,XQAMSG
D BMES^XPDUTL($$CJ^XLFSTR("*** Post install started ***",80))
;
K MSG
S MSG(1)=" "
S MSG(2)=" ************************ IMPORTANT ************************"
S MSG(3)=" * Please run option LAB TESTS AND PANELS REPORT *"
S MSG(4)=" * [LRBE PANEL REPORT] to generate a listing of all tests *"
S MSG(5)=" * in the LABORATORY TEST (#60) file and the associated *"
S MSG(6)=" * CPT codes that will be sent to PCE for billing. The *"
S MSG(7)=" * report should be used by the coders to enter the proper *"
S MSG(8)=" * CPT codes in the LABORATORY TEST (#60) file. This option*"
S MSG(9)=" * is located in the Lab liaison [LRLIAISON] menu. *"
S MSG(10)=" ***********************************************************"
D BMES^XPDUTL(.MSG) K MSG
;
S Y=$$OPTDE^XPDUTL("LRMENU",1)
S MSG="Enabling Laboratory DHCP Menu [LRMENU] option"
D BMES^XPDUTL($$CJ^XLFSTR(MSG,80)) K MSG
;
D BMES^XPDUTL($$CJ^XLFSTR("*** Post install completed ***",80))
;
S XQAMSG="Installation of patch "_$G(XPDNM,"Unknown patch")
S XQAMSG=XQAMSG_" completed on "_$$HTE^XLFDT($H)
S XQA("G.LMI")=""
D SETUP^XQALERT
;
S MSG="Sending install completion alert to mail group G.LMI"
D BMES^XPDUTL($$CJ^XLFSTR(MSG,80)) K MSG
;
Q
P68 ; Modify the RESPONIBLE OFFICAL in #68
N A,B,DIC,ENT,HD,QT,Y,USR
S QT=0
S A="" F S A=$O(^LRO(68,"B",A)) Q:A=""!(QT) D
.S B="" F S B=$O(^LRO(68,"B",A,B)) Q:B=""!(QT) D
..I $P(^LRO(68,"B",A,B),"^",1)=1!('$D(^LRO(68,B))) Q
..S HD="ACCESSION AREA: "_A D EN^DDIOL(HD,"","!")
..S X=$$GET1^DIQ(68,B_",",".1","I")
..S USR=$S($D(^VA(200,+X,0)):$P(^(0),"^"),1:X)
..S ENT=" Old RESPONSIBLE OFFICIAL: "_USR D EN^DDIOL(ENT,"","!")
..S DIC="^VA(200,",DIC("A")=" New RESPONSIBLE OFFICIAL: "
..S DIC="^VA(200,",DIC("B")=USR,DIC(0)="AMEQZ" D ^DIC
..I $D(DTOUT)!($D(DUOUT))!(+Y=-1) S QT=1 K DIC Q:QT
..D SET(B,+Y)
Q
SET(TIEN,RO) ; Set #68
N LRFDA,FIL,IEN
S FIL=68,IEN=TIEN_","
S LRFDA(99,FIL,IEN,.1)=RO
D UPDATE^DIE("","LRFDA(99)","","LRERR")
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HLR291 4023 printed Dec 13, 2024@02:03:37 Page 2
LR291 ;DAL/WTY - LR*5.2*291 PATCH ENVIRONMENT CHECK ROUTINE ;8/10/04
+1 ;;5.2;LAB SERVICE;**291**;Sep 27, 1994
EN ; Does not prevent loading of the transport global.
+1 ; Environment check is done only during the install.
+2 ;
+3 IF '$GET(XPDENV)
Begin DoDot:1
+4 NEW XQA,XQAMSG
+5 SET XQAMSG="Transport global for patch "_$GET(XPDNM,"Unknown patch")
+6 SET XQAMSG=XQAMSG_" loaded on "_$$HTE^XLFDT($HOROLOG)
+7 SET XQA("G.LMI")=""
+8 DO SETUP^XQALERT
+9 SET MSG="Sending transport global loaded alert to mail group G.LMI"
+10 DO BMES^XPDUTL($$CJ^XLFSTR(MSG,80))
KILL MSG
End DoDot:1
QUIT
+11 ;
+12 DO P68
+13 DO CHECK
+14 DO EXIT
+15 QUIT
+16 ;
CHECK ; Perform environment check
+1 ;
+2 IF $SELECT('$GET(IOM):1,'$GET(IOSL):1,$GET(U)'="^":1,1:0)
Begin DoDot:1
+3 DO BMES^XPDUTL($$CJ^XLFSTR("Terminal Device is not defined",80))
+4 SET XPDQUIT=2
End DoDot:1
QUIT
+5 ;
+6 IF $SELECT('$GET(DUZ):1,$DATA(DUZ)[0:1,$DATA(DUZ(0))[0:1,1:0)
Begin DoDot:1
+7 SET MSG="Please log in to set local DUZ... variables"
+8 DO BMES^XPDUTL($$CJ^XLFSTR(MSG,80))
KILL MSG
+9 SET XPDQUIT=2
End DoDot:1
QUIT
+10 ;
+11 IF '$DATA(^VA(200,$GET(DUZ),0))#2
Begin DoDot:1
+12 SET MSG="You are not a valid user on this system"
+13 DO BMES^XPDUTL($$CJ^XLFSTR(MSG,80))
KILL MSG
+14 SET XPDQUIT=2
End DoDot:1
QUIT
+15 ;
+16 SET XPDDIQ("XPZ1")=0
+17 ;
+18 QUIT
+19 ;
EXIT ;
+1 IF $GET(XPDQUIT)
Begin DoDot:1
+2 SET MSG="--- Install Environment Check FAILED ---"
+3 DO BMES^XPDUTL($$CJ^XLFSTR(MSG,80))
KILL MSG
End DoDot:1
+4 IF '$GET(XPDQUIT)
Begin DoDot:1
+5 DO BMES^XPDUTL($$CJ^XLFSTR("--- Environment Check is Ok ---",80))
End DoDot:1
+6 QUIT
+7 ;
PRE ; KIDS Pre install for LR*5.2*291
+1 ;
+2 NEW XQA,XQAMSG
+3 SET XQAMSG="Installation of patch "_$GET(XPDNM,"Unknown patch")
+4 SET XQAMSG=XQAMSG_" started on "_$$HTE^XLFDT($HOROLOG)
+5 SET XQA("G.LMI")=""
+6 DO SETUP^XQALERT
+7 ;
+8 SET MSG="Sending install started alert to mail group G.LMI"
+9 DO BMES^XPDUTL($$CJ^XLFSTR(MSG,80))
KILL MSG
+10 ;
+11 DO BMES^XPDUTL($$CJ^XLFSTR("*** Pre install started ***",80))
+12 ;
+13 SET Y=$$OPTDE^XPDUTL("LRMENU",2)
+14 SET MSG="Disabling Laboratory DHCP Menu [LRMENU] option"
+15 DO BMES^XPDUTL($$CJ^XLFSTR(MSG,80))
KILL MSG
+16 ;
+17 DO BMES^XPDUTL($$CJ^XLFSTR("*** Pre install completed ***",80))
+18 ;
+19 QUIT
+20 ;
POST ; KIDS Post install for LR*5.2*291
+1 ;
+2 NEW XQA,XQAMSG
+3 DO BMES^XPDUTL($$CJ^XLFSTR("*** Post install started ***",80))
+4 ;
+5 KILL MSG
+6 SET MSG(1)=" "
+7 SET MSG(2)=" ************************ IMPORTANT ************************"
+8 SET MSG(3)=" * Please run option LAB TESTS AND PANELS REPORT *"
+9 SET MSG(4)=" * [LRBE PANEL REPORT] to generate a listing of all tests *"
+10 SET MSG(5)=" * in the LABORATORY TEST (#60) file and the associated *"
+11 SET MSG(6)=" * CPT codes that will be sent to PCE for billing. The *"
+12 SET MSG(7)=" * report should be used by the coders to enter the proper *"
+13 SET MSG(8)=" * CPT codes in the LABORATORY TEST (#60) file. This option*"
+14 SET MSG(9)=" * is located in the Lab liaison [LRLIAISON] menu. *"
+15 SET MSG(10)=" ***********************************************************"
+16 DO BMES^XPDUTL(.MSG)
KILL MSG
+17 ;
+18 SET Y=$$OPTDE^XPDUTL("LRMENU",1)
+19 SET MSG="Enabling Laboratory DHCP Menu [LRMENU] option"
+20 DO BMES^XPDUTL($$CJ^XLFSTR(MSG,80))
KILL MSG
+21 ;
+22 DO BMES^XPDUTL($$CJ^XLFSTR("*** Post install completed ***",80))
+23 ;
+24 SET XQAMSG="Installation of patch "_$GET(XPDNM,"Unknown patch")
+25 SET XQAMSG=XQAMSG_" completed on "_$$HTE^XLFDT($HOROLOG)
+26 SET XQA("G.LMI")=""
+27 DO SETUP^XQALERT
+28 ;
+29 SET MSG="Sending install completion alert to mail group G.LMI"
+30 DO BMES^XPDUTL($$CJ^XLFSTR(MSG,80))
KILL MSG
+31 ;
+32 QUIT
P68 ; Modify the RESPONIBLE OFFICAL in #68
+1 NEW A,B,DIC,ENT,HD,QT,Y,USR
+2 SET QT=0
+3 SET A=""
FOR
SET A=$ORDER(^LRO(68,"B",A))
if A=""!(QT)
QUIT
Begin DoDot:1
+4 SET B=""
FOR
SET B=$ORDER(^LRO(68,"B",A,B))
if B=""!(QT)
QUIT
Begin DoDot:2
+5 IF $PIECE(^LRO(68,"B",A,B),"^",1)=1!('$DATA(^LRO(68,B)))
QUIT
+6 SET HD="ACCESSION AREA: "_A
DO EN^DDIOL(HD,"","!")
+7 SET X=$$GET1^DIQ(68,B_",",".1","I")
+8 SET USR=$SELECT($DATA(^VA(200,+X,0)):$PIECE(^(0),"^"),1:X)
+9 SET ENT=" Old RESPONSIBLE OFFICIAL: "_USR
DO EN^DDIOL(ENT,"","!")
+10 SET DIC="^VA(200,"
SET DIC("A")=" New RESPONSIBLE OFFICIAL: "
+11 SET DIC="^VA(200,"
SET DIC("B")=USR
SET DIC(0)="AMEQZ"
DO ^DIC
+12 IF $DATA(DTOUT)!($DATA(DUOUT))!(+Y=-1)
SET QT=1
KILL DIC
if QT
QUIT
+13 DO SET(B,+Y)
End DoDot:2
End DoDot:1
+14 QUIT
SET(TIEN,RO) ; Set #68
+1 NEW LRFDA,FIL,IEN
+2 SET FIL=68
SET IEN=TIEN_","
+3 SET LRFDA(99,FIL,IEN,.1)=RO
+4 DO UPDATE^DIE("","LRFDA(99)","","LRERR")
+5 QUIT