PXRMP62I ;SLC/KCM - Inits for PXRM*2.0*62. ;01/13/2016
;;2.0;CLINICAL REMINDERS;**62**;Feb 04, 2005;Build 23
;==========================================
PRE ;Pre-init
;Disable options and protocols
D OPTION^PXRMUTIL("DISABLE")
D PROTOCOL^PXRMUTIL("DISABLE")
D DELEXE^PXRMEXSI("EXARRAY","PXRMP62E")
Q
;
;==========================================
POST ;Post-init
;Enable options and protocols
D OPTION^PXRMUTIL("ENABLE")
D PROTOCOL^PXRMUTIL("ENABLE")
D SETPVER^PXRMUTIL("2.0P62")
;Install Exchange File entries.
D SMEXINS^PXRMEXSI("EXARRAY","PXRMP62E")
D SENDIM^PXRMP62I
D UPDSPONS
Q
;
;==========================================
SENDIM ;Send install message.
N FROM,NODE,PARAM,SYSTEM,SUBJECT,TO,VALUE
S NODE="PXRM*2.0*62"
K ^TMP(NODE,$J)
;DBIA #1131 for ^XMB("NETNAME")
S FROM="PXRM*2.0*62 Install@"_^XMB("NETNAME")
;DBIA #2571
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*62"
S ^TMP(NODE,$J,1,0)="PXRM*2.0*62 has been installed."
S ^TMP(NODE,$J,2,0)="System is "_SYSTEM
D SEND^PXRMMSG(NODE,SUBJECT,.TO,FROM)
Q
;
; =========================================
UPDSPONS ;update sponsor names
N OLD,NEW
S OLD="Office of Mental Health Services"
S NEW="Mental Health Services"
I $$FIND1^DIC(811.6,"","BXU",OLD)>0 D RENAME^PXRMUTIL(811.6,OLD,NEW)
S OLD="Office of Mental Health Services and Women Veterans Health Program"
S NEW="Mental Health Services and Women Veterans Health Program"
I $$FIND1^DIC(811.6,"","BXU",OLD)>0 D RENAME^PXRMUTIL(811.6,OLD,NEW)
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPXRMP62I 1775 printed Dec 13, 2024@01:48:01 Page 2
PXRMP62I ;SLC/KCM - Inits for PXRM*2.0*62. ;01/13/2016
+1 ;;2.0;CLINICAL REMINDERS;**62**;Feb 04, 2005;Build 23
+2 ;==========================================
PRE ;Pre-init
+1 ;Disable options and protocols
+2 DO OPTION^PXRMUTIL("DISABLE")
+3 DO PROTOCOL^PXRMUTIL("DISABLE")
+4 DO DELEXE^PXRMEXSI("EXARRAY","PXRMP62E")
+5 QUIT
+6 ;
+7 ;==========================================
POST ;Post-init
+1 ;Enable options and protocols
+2 DO OPTION^PXRMUTIL("ENABLE")
+3 DO PROTOCOL^PXRMUTIL("ENABLE")
+4 DO SETPVER^PXRMUTIL("2.0P62")
+5 ;Install Exchange File entries.
+6 DO SMEXINS^PXRMEXSI("EXARRAY","PXRMP62E")
+7 DO SENDIM^PXRMP62I
+8 DO UPDSPONS
+9 QUIT
+10 ;
+11 ;==========================================
SENDIM ;Send install message.
+1 NEW FROM,NODE,PARAM,SYSTEM,SUBJECT,TO,VALUE
+2 SET NODE="PXRM*2.0*62"
+3 KILL ^TMP(NODE,$JOB)
+4 ;DBIA #1131 for ^XMB("NETNAME")
+5 SET FROM="PXRM*2.0*62 Install@"_^XMB("NETNAME")
+6 ;DBIA #2571
+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*62"
+15 SET ^TMP(NODE,$JOB,1,0)="PXRM*2.0*62 has been installed."
+16 SET ^TMP(NODE,$JOB,2,0)="System is "_SYSTEM
+17 DO SEND^PXRMMSG(NODE,SUBJECT,.TO,FROM)
+18 QUIT
+19 ;
+20 ; =========================================
UPDSPONS ;update sponsor names
+1 NEW OLD,NEW
+2 SET OLD="Office of Mental Health Services"
+3 SET NEW="Mental Health Services"
+4 IF $$FIND1^DIC(811.6,"","BXU",OLD)>0
DO RENAME^PXRMUTIL(811.6,OLD,NEW)
+5 SET OLD="Office of Mental Health Services and Women Veterans Health Program"
+6 SET NEW="Mental Health Services and Women Veterans Health Program"
+7 IF $$FIND1^DIC(811.6,"","BXU",OLD)>0
DO RENAME^PXRMUTIL(811.6,OLD,NEW)
+8 QUIT