LR291 ;VA/DAL/WTY - LR*5.2*291 PATCH ENVIRONMENT CHECK ROUTINE ;8/10/04
;;5.2;LAB SERVICE;**1031**;NOV 01, 1997
;
;;VA LR Patche(s): 291
;
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 BMES^XPDUTL($$CJ^XLFSTR("--- Installation of patch "_$G(XPDNM,"Unknown patch")_" started on "_$$HTE^XLFDT($H)_" ---",IOM)) ; IHS/MSC/MKK
;
D P68
D CHECK
D EXIT
Q
;
CHECK ; Perform environment check
D BMES^XPDUTL($$CJ^XLFSTR("--- Environment Check for "_$G(XPDNM,"Unknown patch")_" ---",80)) ; IHS/MSC/MKK
;
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))
;
I $G(XPDQUIT) D BMES^XPDUTL($$CJ^XLFSTR("--- Install Environment Check for "_$G(XPDNM,"Unknown patch")_" FAILED ---",80)) ; IHS/MSC/MKK
I '$G(XPDQUIT) D BMES^XPDUTL($$CJ^XLFSTR("--- Install Environment Check for "_$G(XPDNM,"Unknown patch")_" is Ok ---",80)) ; IHS/MSC/MKK
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
;
D BMES^XPDUTL($$CJ^XLFSTR("--- "_XQAMSG_" ---",80)) ; IHS/MSC/MKK
;
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))
D BMES^XPDUTL($$CJ^XLFSTR("*** Post install for "_$G(XPDNM,"Unknown patch")_" completed ***",80)) ; IHS/MSC/MKK
;
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
D BMES^XPDUTL($$CJ^XLFSTR("--- Modification of RESPONSIBLE OFFICIAL field in File # 68 ---",IOM)) ; IHS/MSC/MKK
D MES^XPDUTL($$CJ^XLFSTR("--- Started "_$$HTE^XLFDT($H,"5MZ")_"---",80)) ; IHS/MSC/MKK
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)
D BMES^XPDUTL($$CJ^XLFSTR("--- Modification of RESPONSIBLE OFFICIAL field in File # 68 ---",IOM)) ; IHS/MSC/MKK
D MES^XPDUTL($$CJ^XLFSTR("--- Completed "_$$HTE^XLFDT($H,"5MZ")_"---",80)) ; IHS/MSC/MKK
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
LR291 ;VA/DAL/WTY - LR*5.2*291 PATCH ENVIRONMENT CHECK ROUTINE ;8/10/04
+1 ;;5.2;LAB SERVICE;**1031**;NOV 01, 1997
+2 ;
+3 ;;VA LR Patche(s): 291
+4 ;
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 ; D SETUP^XQALERT
+9 SET MSG="Sending transport global loaded alert to mail group G.LMI"
+10 ; D BMES^XPDUTL($$CJ^XLFSTR(MSG,80)) K MSG
End DoDot:1
QUIT
+11 ;
+12 ; IHS/MSC/MKK
DO BMES^XPDUTL($$CJ^XLFSTR("--- Installation of patch "_$GET(XPDNM,"Unknown patch")_" started on "_$$HTE^XLFDT($HOROLOG)_" ---",IOM))
+13 ;
+14 DO P68
+15 DO CHECK
+16 DO EXIT
+17 QUIT
+18 ;
CHECK ; Perform environment check
+1 ; IHS/MSC/MKK
DO BMES^XPDUTL($$CJ^XLFSTR("--- Environment Check for "_$GET(XPDNM,"Unknown patch")_" ---",80))
+2 ;
+3 IF $SELECT('$GET(IOM):1,'$GET(IOSL):1,$GET(U)'="^":1,1:0)
Begin DoDot:1
+4 DO BMES^XPDUTL($$CJ^XLFSTR("Terminal Device is not defined",80))
+5 SET XPDQUIT=2
End DoDot:1
QUIT
+6 ;
+7 IF $SELECT('$GET(DUZ):1,$DATA(DUZ)[0:1,$DATA(DUZ(0))[0:1,1:0)
Begin DoDot:1
+8 SET MSG="Please log in to set local DUZ... variables"
+9 DO BMES^XPDUTL($$CJ^XLFSTR(MSG,80))
KILL MSG
+10 SET XPDQUIT=2
End DoDot:1
QUIT
+11 ;
+12 IF '$DATA(^VA(200,$GET(DUZ),0))#2
Begin DoDot:1
+13 SET MSG="You are not a valid user on this system"
+14 DO BMES^XPDUTL($$CJ^XLFSTR(MSG,80))
KILL MSG
+15 SET XPDQUIT=2
End DoDot:1
QUIT
+16 ;
+17 SET XPDDIQ("XPZ1")=0
+18 ;
+19 QUIT
+20 ;
EXIT ;
+1 IF $GET(XPDQUIT)
Begin DoDot:1
+2 SET MSG="--- Install Environment Check FAILED ---"
+3 ;D BMES^XPDUTL($$CJ^XLFSTR(MSG,80)) K MSG
End DoDot:1
+4 IF '$GET(XPDQUIT)
Begin DoDot:1
+5 ;D BMES^XPDUTL($$CJ^XLFSTR("--- Environment Check is Ok ---",80))
End DoDot:1
+6 ;
+7 ; IHS/MSC/MKK
IF $GET(XPDQUIT)
DO BMES^XPDUTL($$CJ^XLFSTR("--- Install Environment Check for "_$GET(XPDNM,"Unknown patch")_" FAILED ---",80))
+8 ; IHS/MSC/MKK
IF '$GET(XPDQUIT)
DO BMES^XPDUTL($$CJ^XLFSTR("--- Install Environment Check for "_$GET(XPDNM,"Unknown patch")_" is Ok ---",80))
+9 QUIT
+10 ;
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 ; D SETUP^XQALERT
+7 ;
+8 ; IHS/MSC/MKK
DO BMES^XPDUTL($$CJ^XLFSTR("--- "_XQAMSG_" ---",80))
+9 ;
+10 SET MSG="Sending install started alert to mail group G.LMI"
+11 ; D BMES^XPDUTL($$CJ^XLFSTR(MSG,80)) K MSG
+12 ;
+13 DO BMES^XPDUTL($$CJ^XLFSTR("*** Pre install started ***",80))
+14 ;
+15 SET Y=$$OPTDE^XPDUTL("LRMENU",2)
+16 SET MSG="Disabling Laboratory DHCP Menu [LRMENU] option"
+17 DO BMES^XPDUTL($$CJ^XLFSTR(MSG,80))
KILL MSG
+18 ;
+19 DO BMES^XPDUTL($$CJ^XLFSTR("*** Pre install completed ***",80))
+20 ;
+21 QUIT
+22 ;
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 ; D BMES^XPDUTL(.MSG) K 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 ; D BMES^XPDUTL($$CJ^XLFSTR("*** Post install completed ***",80))
+23 ; IHS/MSC/MKK
DO BMES^XPDUTL($$CJ^XLFSTR("*** Post install for "_$GET(XPDNM,"Unknown patch")_" completed ***",80))
+24 ;
+25 SET XQAMSG="Installation of patch "_$GET(XPDNM,"Unknown patch")
+26 SET XQAMSG=XQAMSG_" completed on "_$$HTE^XLFDT($HOROLOG)
+27 SET XQA("G.LMI")=""
+28 ; D SETUP^XQALERT
+29 ;
+30 SET MSG="Sending install completion alert to mail group G.LMI"
+31 ; D BMES^XPDUTL($$CJ^XLFSTR(MSG,80)) K MSG
+32 ;
+33 QUIT
P68 ; Modify the RESPONIBLE OFFICAL in #68
+1 NEW A,B,DIC,ENT,HD,QT,Y,USR
+2 ; IHS/MSC/MKK
DO BMES^XPDUTL($$CJ^XLFSTR("--- Modification of RESPONSIBLE OFFICIAL field in File # 68 ---",IOM))
+3 ; IHS/MSC/MKK
DO MES^XPDUTL($$CJ^XLFSTR("--- Started "_$$HTE^XLFDT($HOROLOG,"5MZ")_"---",80))
+4 SET QT=0
+5 SET A=""
FOR
SET A=$ORDER(^LRO(68,"B",A))
IF A=""!(QT)
QUIT
Begin DoDot:1
+6 SET B=""
FOR
SET B=$ORDER(^LRO(68,"B",A,B))
IF B=""!(QT)
QUIT
Begin DoDot:2
+7 IF $PIECE(^LRO(68,"B",A,B),"^",1)=1!('$DATA(^LRO(68,B)))
QUIT
+8 SET HD="ACCESSION AREA: "_A
DO EN^DDIOL(HD,"","!")
+9 SET X=$$GET1^DIQ(68,B_",",".1","I")
+10 SET USR=$SELECT($DATA(^VA(200,+X,0)):$PIECE(^(0),"^"),1:X)
+11 SET ENT=" Old RESPONSIBLE OFFICIAL: "_USR
DO EN^DDIOL(ENT,"","!")
+12 SET DIC="^VA(200,"
SET DIC("A")=" New RESPONSIBLE OFFICIAL: "
+13 SET DIC="^VA(200,"
SET DIC("B")=USR
SET DIC(0)="AMEQZ"
DO ^DIC
+14 IF $DATA(DTOUT)!($DATA(DUOUT))!(+Y=-1)
SET QT=1
KILL DIC
IF QT
QUIT
+15 DO SET(B,+Y)
End DoDot:2
End DoDot:1
+16 ; IHS/MSC/MKK
DO BMES^XPDUTL($$CJ^XLFSTR("--- Modification of RESPONSIBLE OFFICIAL field in File # 68 ---",IOM))
+17 ; IHS/MSC/MKK
DO MES^XPDUTL($$CJ^XLFSTR("--- Completed "_$$HTE^XLFDT($HOROLOG,"5MZ")_"---",80))
+18 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