ONC2PR19 ;HINES OIFO/RTK - Pre-Install Routine for Patch ONC*2.2*19 ;12/04/23
;;2.2;ONCOLOGY;**19**;Jul 31, 2013;Build 4
;
K ^ONCO(160.16) ;delete 160.16 and bring back in patch 19 build
K ^ONCO(164) ;delete 164 and bring back in patch 19 build
K ^ONCO(164.46) ;delete 164.46 and bring back in patch 19 build
K ^ONCO(165.8) ;delete 165.8 and bring back in patch 19 build
K ^ONCO(165.9) ;delete 165.9 and bring back in patch 19 build
K ^ONCO(169.3) ;delete 169.3 and bring back in patch 19 build
;
D USERV ;update url (development or production)
Q
;
USERV ;Update url to Production or Development server
N ONCSYS
S ONCSYS=$$PROD^XUPROD()
S DA=$O(^XOB(18.12,"B","ONCO WEB SERVER",""))
;production url
I ONCSYS D
.S DIE="^XOB(18.12,",DR=".04///^S X=""va-reg-prod-apim.reg.vaec.domain.ext""" D ^DIE
.W !,"Oncology Web Server is updated to Production url...",!
;preprod url
I 'ONCSYS D
.S DIE="^XOB(18.12,",DR=".04///^S X=""va-reg-preprod-apim.reg.vaec.domain.ext""" D ^DIE
.W !,"Oncology Web Server is updated to Development url...",!
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HONC2PR19 1095 printed Nov 22, 2024@17:31:45 Page 2
ONC2PR19 ;HINES OIFO/RTK - Pre-Install Routine for Patch ONC*2.2*19 ;12/04/23
+1 ;;2.2;ONCOLOGY;**19**;Jul 31, 2013;Build 4
+2 ;
+3 ;delete 160.16 and bring back in patch 19 build
KILL ^ONCO(160.16)
+4 ;delete 164 and bring back in patch 19 build
KILL ^ONCO(164)
+5 ;delete 164.46 and bring back in patch 19 build
KILL ^ONCO(164.46)
+6 ;delete 165.8 and bring back in patch 19 build
KILL ^ONCO(165.8)
+7 ;delete 165.9 and bring back in patch 19 build
KILL ^ONCO(165.9)
+8 ;delete 169.3 and bring back in patch 19 build
KILL ^ONCO(169.3)
+9 ;
+10 ;update url (development or production)
DO USERV
+11 QUIT
+12 ;
USERV ;Update url to Production or Development server
+1 NEW ONCSYS
+2 SET ONCSYS=$$PROD^XUPROD()
+3 SET DA=$ORDER(^XOB(18.12,"B","ONCO WEB SERVER",""))
+4 ;production url
+5 IF ONCSYS
Begin DoDot:1
+6 SET DIE="^XOB(18.12,"
SET DR=".04///^S X=""va-reg-prod-apim.reg.vaec.domain.ext"""
DO ^DIE
+7 WRITE !,"Oncology Web Server is updated to Production url...",!
End DoDot:1
+8 ;preprod url
+9 IF 'ONCSYS
Begin DoDot:1
+10 SET DIE="^XOB(18.12,"
SET DR=".04///^S X=""va-reg-preprod-apim.reg.vaec.domain.ext"""
DO ^DIE
+11 WRITE !,"Oncology Web Server is updated to Development url...",!
End DoDot:1
+12 QUIT