LEX2025P ;ISA/FJF-Pre/Post Install; 05/14/2003
;;2.0;LEXICON UTILITY;**25**;Sep 23, 1996
;
; External References
; DBIA 10086 HOME^%ZIS
; DBIA 2052 $$GET1^DID
; DBIA 2055 PRD^DILFD
; DBIA 10014 EN^DIU2
; DBIA 10141 BMES^XPDUTL
; DBIA 10141 MES^XPDUTL
;
Q
;
POST ; LEX*2.0*25 Post-Install
N LEXEDT S LEXEDT=$G(^LEXM(0,"CREATED")) D LOAD,MSG
Q
LOAD ; Load data
N LEXB,LEXBUILD,LEXCD,LEXIGHF,LEXLAST,LEXLREV D IMP^LEX2025
S U="^",LEXB=$G(^LEXM(0,"BUILD")) Q:LEXB="" Q:LEXBUILD=""
S LEXCD=0 S LEXCD=+($$CPD^LEX2025)
I LEXCD,LEXB=LEXBUILD D G RV
. S X="Data for patch "_LEXBUILD_" has already been installed"
. W:'$D(XPDNM) !!,X D:$D(XPDNM) BMES^XPDUTL(X)
. S X="" W:'$D(XPDNM) ! D:$D(XPDNM) MES^XPDUTL(X)
I 'LEXCD,LEXB=LEXBUILD D EN^LEXXGI
RV ; Revision Numbers
N LEXRV F LEXRV=757,757.001,757.01,757.02,757.1,757.9,757.901,757.902,757.903,757.91 D
. Q:'$D(^LEX(LEXRV,0))&('$D(^LEXT(LEXRV,0)))&('$D(^LEXC(LEXRV,0)))
. Q:'$L($$GET1^DID(+LEXRV,.01,,"LABEL")) D PRD^DILFD(LEXRV,"25^3030930")
F LEXRV=80,80.1 D
. Q:'$D(^DD(LEXRV,0)) Q:'$L($$GET1^DID(+LEXRV,.01,,"LABEL"))
. D PRD^DILFD(LEXRV,"6^3030930")
F LEXRV=81,81.3 D
. Q:'$D(^DD(LEXRV,0)) Q:'$L($$GET1^DID(+LEXRV,.01,,"LABEL"))
. D PRD^DILFD(LEXRV,"14^3030930")
LOADQ ; Quit Load
D KLEXM
Q
MSG ; Send Installation Message
Q:+($G(DUZ))=0!($$NOTDEF^LEX2025($G(DUZ)))
D HOME^%ZIS N DIFROM,LEXLREV,LEXLAST,LEXBUILD,LEXIGHF
D IMP^LEX2025,SEND^LEXXST Q
;
PRE ; LEX*2.0*25 Pre-Install
D KDD Q
KDD ; Kill previous copies of DDs
N DIU,X S X="^DD(81.3,0,""ID"",5)" K @X S X="^DD(81,0,""ID"",5)" K @X
Q
F DIU=757.9,757.901,757.902,757.903,757.904,757.91 D
. Q:'$L($$GET1^DID(+DIU,.01,,"LABEL")) S DIU(0)="" D EN^DIU2 K ^LEXC(+($G(DIU)))
Q
;
KLEXM ; Subscripted Kill of ^LEXM
N DA S DA=0 F S DA=$O(^LEXM(DA)) Q:+DA=0 K ^LEXM(DA)
K ^LEXM(0)
Q
CON ; Conversion of data (N/A for patch 25)
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HLEX2025P 2054 printed Dec 13, 2024@02:03:47 Page 2
LEX2025P ;ISA/FJF-Pre/Post Install; 05/14/2003
+1 ;;2.0;LEXICON UTILITY;**25**;Sep 23, 1996
+2 ;
+3 ; External References
+4 ; DBIA 10086 HOME^%ZIS
+5 ; DBIA 2052 $$GET1^DID
+6 ; DBIA 2055 PRD^DILFD
+7 ; DBIA 10014 EN^DIU2
+8 ; DBIA 10141 BMES^XPDUTL
+9 ; DBIA 10141 MES^XPDUTL
+10 ;
+11 QUIT
+12 ;
POST ; LEX*2.0*25 Post-Install
+1 NEW LEXEDT
SET LEXEDT=$GET(^LEXM(0,"CREATED"))
DO LOAD
DO MSG
+2 QUIT
LOAD ; Load data
+1 NEW LEXB,LEXBUILD,LEXCD,LEXIGHF,LEXLAST,LEXLREV
DO IMP^LEX2025
+2 SET U="^"
SET LEXB=$GET(^LEXM(0,"BUILD"))
if LEXB=""
QUIT
if LEXBUILD=""
QUIT
+3 SET LEXCD=0
SET LEXCD=+($$CPD^LEX2025)
+4 IF LEXCD
IF LEXB=LEXBUILD
Begin DoDot:1
+5 SET X="Data for patch "_LEXBUILD_" has already been installed"
+6 if '$DATA(XPDNM)
WRITE !!,X
if $DATA(XPDNM)
DO BMES^XPDUTL(X)
+7 SET X=""
if '$DATA(XPDNM)
WRITE !
if $DATA(XPDNM)
DO MES^XPDUTL(X)
End DoDot:1
GOTO RV
+8 IF 'LEXCD
IF LEXB=LEXBUILD
DO EN^LEXXGI
RV ; Revision Numbers
+1 NEW LEXRV
FOR LEXRV=757,757.001,757.01,757.02,757.1,757.9,757.901,757.902,757.903,757.91
Begin DoDot:1
+2 if '$DATA(^LEX(LEXRV,0))&('$DATA(^LEXT(LEXRV,0)))&('$DATA(^LEXC(LEXRV,0)))
QUIT
+3 if '$LENGTH($$GET1^DID(+LEXRV,.01,,"LABEL"))
QUIT
DO PRD^DILFD(LEXRV,"25^3030930")
End DoDot:1
+4 FOR LEXRV=80,80.1
Begin DoDot:1
+5 if '$DATA(^DD(LEXRV,0))
QUIT
if '$LENGTH($$GET1^DID(+LEXRV,.01,,"LABEL"))
QUIT
+6 DO PRD^DILFD(LEXRV,"6^3030930")
End DoDot:1
+7 FOR LEXRV=81,81.3
Begin DoDot:1
+8 if '$DATA(^DD(LEXRV,0))
QUIT
if '$LENGTH($$GET1^DID(+LEXRV,.01,,"LABEL"))
QUIT
+9 DO PRD^DILFD(LEXRV,"14^3030930")
End DoDot:1
LOADQ ; Quit Load
+1 DO KLEXM
+2 QUIT
MSG ; Send Installation Message
+1 if +($GET(DUZ))=0!($$NOTDEF^LEX2025($GET(DUZ)))
QUIT
+2 DO HOME^%ZIS
NEW DIFROM,LEXLREV,LEXLAST,LEXBUILD,LEXIGHF
+3 DO IMP^LEX2025
DO SEND^LEXXST
QUIT
+4 ;
PRE ; LEX*2.0*25 Pre-Install
+1 DO KDD
QUIT
KDD ; Kill previous copies of DDs
+1 NEW DIU,X
SET X="^DD(81.3,0,""ID"",5)"
KILL @X
SET X="^DD(81,0,""ID"",5)"
KILL @X
+2 QUIT
+3 FOR DIU=757.9,757.901,757.902,757.903,757.904,757.91
Begin DoDot:1
+4 if '$LENGTH($$GET1^DID(+DIU,.01,,"LABEL"))
QUIT
SET DIU(0)=""
DO EN^DIU2
KILL ^LEXC(+($GET(DIU)))
End DoDot:1
+5 QUIT
+6 ;
KLEXM ; Subscripted Kill of ^LEXM
+1 NEW DA
SET DA=0
FOR
SET DA=$ORDER(^LEXM(DA))
if +DA=0
QUIT
KILL ^LEXM(DA)
+2 KILL ^LEXM(0)
+3 QUIT
CON ; Conversion of data (N/A for patch 25)
+1 QUIT