PXRMP35I ;SLC/PKR - Inits for PXRM*2.0*35. ;02/03/2016
;;2.0;CLINICAL REMINDERS;**35**;Feb 04, 2005;Build 206
Q
;==========================================
PRE ;Pre-init
;Disable options and protocols
N P47I
S P47I=$$PATCH^XPDUTL("PXRM*2.0*47")
I 'P47I D
. D OPTION^PXRMUTIL("DISABLE")
. D PROTOCOL^PXRMUTIL("DISABLE")
I P47I D
. D OPTIONS^PXRMUTIL("DISABLE","INSTALL OF PXRM*2.0*35")
. D PROTCOLS^PXRMUTIL("DISABLE","INSTALL OF PXRM*2.0*35")
D DELEXE^PXRMEXSI("EXARRAY","PXRMP35E")
Q
;
;==========================================
POST ;Post-init
;Enable options and protocols
N P47I
S P47I=$$PATCH^XPDUTL("PXRM*2.0*47")
I 'P47I D
. D OPTION^PXRMUTIL("ENABLE")
. D PROTOCOL^PXRMUTIL("ENABLE")
I P47I D
. D OPTIONS^PXRMUTIL("ENABLE","INSTALL OF PXRM*2.0*35")
. D PROTCOLS^PXRMUTIL("ENABLE","INSTALL OF PXRM*2.0*35")
D SETPVER^PXRMUTIL("2.0P35")
;Install Exchange File entries.
D SMEXINS^PXRMEXSI("EXARRAY","PXRMP35E")
D SENDIM^PXRMP35I
Q
;
;==========================================
SENDIM ;Send install message.
N FROM,NODE,PARAM,SYSTEM,SUBJECT,TO,VALUE
S NODE="PXRM*2.0*35"
K ^TMP(NODE,$J)
;DBIA #1131 for ^XMB("NETNAME")
S FROM="PXRM*2.0*35 Install@"_^XMB("NETNAME")
;DBIA #2541
S SYSTEM=$$KSP^XUPARAM("WHERE")
I $$PROD^XUPROD(1) S TO("G.CLINICAL REMINDERS SUPPORT@DOMAIN.EXT")=""
E D
. N MGIEN,MGROUP
. S MGIEN=$G(^PXRM(800,1,"MGFE"))
. S MGROUP=$S(MGIEN'="":"G."_$$GET1^DIQ(3.8,MGIEN,.01),1:DUZ)
. S TO(MGROUP)=""
S SUBJECT="Install of PXRM*2.0*35"
S ^TMP(NODE,$J,1,0)="PXRM*2.0*35 has been installed."
S ^TMP(NODE,$J,2,0)="System is "_SYSTEM
D SEND^PXRMMSG(NODE,SUBJECT,.TO,FROM)
Q
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPXRMP35I 1697 printed Dec 13, 2024@01:47:33 Page 2
PXRMP35I ;SLC/PKR - Inits for PXRM*2.0*35. ;02/03/2016
+1 ;;2.0;CLINICAL REMINDERS;**35**;Feb 04, 2005;Build 206
+2 QUIT
+3 ;==========================================
PRE ;Pre-init
+1 ;Disable options and protocols
+2 NEW P47I
+3 SET P47I=$$PATCH^XPDUTL("PXRM*2.0*47")
+4 IF 'P47I
Begin DoDot:1
+5 DO OPTION^PXRMUTIL("DISABLE")
+6 DO PROTOCOL^PXRMUTIL("DISABLE")
End DoDot:1
+7 IF P47I
Begin DoDot:1
+8 DO OPTIONS^PXRMUTIL("DISABLE","INSTALL OF PXRM*2.0*35")
+9 DO PROTCOLS^PXRMUTIL("DISABLE","INSTALL OF PXRM*2.0*35")
End DoDot:1
+10 DO DELEXE^PXRMEXSI("EXARRAY","PXRMP35E")
+11 QUIT
+12 ;
+13 ;==========================================
POST ;Post-init
+1 ;Enable options and protocols
+2 NEW P47I
+3 SET P47I=$$PATCH^XPDUTL("PXRM*2.0*47")
+4 IF 'P47I
Begin DoDot:1
+5 DO OPTION^PXRMUTIL("ENABLE")
+6 DO PROTOCOL^PXRMUTIL("ENABLE")
End DoDot:1
+7 IF P47I
Begin DoDot:1
+8 DO OPTIONS^PXRMUTIL("ENABLE","INSTALL OF PXRM*2.0*35")
+9 DO PROTCOLS^PXRMUTIL("ENABLE","INSTALL OF PXRM*2.0*35")
End DoDot:1
+10 DO SETPVER^PXRMUTIL("2.0P35")
+11 ;Install Exchange File entries.
+12 DO SMEXINS^PXRMEXSI("EXARRAY","PXRMP35E")
+13 DO SENDIM^PXRMP35I
+14 QUIT
+15 ;
+16 ;==========================================
SENDIM ;Send install message.
+1 NEW FROM,NODE,PARAM,SYSTEM,SUBJECT,TO,VALUE
+2 SET NODE="PXRM*2.0*35"
+3 KILL ^TMP(NODE,$JOB)
+4 ;DBIA #1131 for ^XMB("NETNAME")
+5 SET FROM="PXRM*2.0*35 Install@"_^XMB("NETNAME")
+6 ;DBIA #2541
+7 SET SYSTEM=$$KSP^XUPARAM("WHERE")
+8 IF $$PROD^XUPROD(1)
SET TO("G.CLINICAL REMINDERS SUPPORT@DOMAIN.EXT")=""
+9 IF '$TEST
Begin DoDot:1
+10 NEW MGIEN,MGROUP
+11 SET MGIEN=$GET(^PXRM(800,1,"MGFE"))
+12 SET MGROUP=$SELECT(MGIEN'="":"G."_$$GET1^DIQ(3.8,MGIEN,.01),1:DUZ)
+13 SET TO(MGROUP)=""
End DoDot:1
+14 SET SUBJECT="Install of PXRM*2.0*35"
+15 SET ^TMP(NODE,$JOB,1,0)="PXRM*2.0*35 has been installed."
+16 SET ^TMP(NODE,$JOB,2,0)="System is "_SYSTEM
+17 DO SEND^PXRMMSG(NODE,SUBJECT,.TO,FROM)
+18 QUIT
+19 ;