MAGIP356 ;WOIFO/CD - Install code for MAG*3.0*356 ; 27 Jul, 2023@13:31:33
;;3.0;IMAGING;**356**;Mar 19, 2002;Build 8
;; Per VHA Directive 2004-038, this routine should not be modified.
;; +---------------------------------------------------------------+
;; | Property of the US Government. |
;; | No permission to copy or redistribute this software is given. |
;; | Use of unreleased versions of this software requires the user |
;; | to execute a written test agreement with the VistA Imaging |
;; | Development Office of the Department of Veterans Affairs, |
;; | telephone (301) 734-0100. |
;; | The Food and Drug Administration classifies this software as |
;; | a medical device. As such, it may not be changed in any way. |
;; | Modifications to this software may result in an adulterated |
;; | medical device under 21CFR820, the use of which is considered |
;; | to be a violation of US Federal Statutes. |
;; +---------------------------------------------------------------+
;;
Q
;
EN ;
N PAR,ENT,INST,VAL,ERR,I,PNAME,RPCNAME
S PNAME="MAG TELER SSERV URL"
S PAR=$O(^XTV(8989.51,"B",PNAME,0))
D GETENT^XPAREDIT(.ENT,PAR_"^"_PNAME,0)
S INST=1,VAL="http://siteservice.telereader.das.domain.ext/VistaWebSvcs/ExchangeSiteService"
D BMES^XPDUTL("Setting parameter "_PNAME_" to "_VAL)
D EN^XPAR(ENT,PAR,INST,VAL,.ERR)
I $D(ERR),$G(ERR)'=0 D BMES^XPDUTL("Failed to set "_PNAME_". Exiting post install.") Q
; Register RPC
D BMES^XPDUTL("Adding RPC MAG TELER UPDATES to MAG WINDOWS")
S RPCNAME="MAG TELER UPDATES"
I $$FIND1^DIC(8994,,"O",RPCNAME,"B",,"MAGMSG")>0 D
. N DIC,Y,X S DIC="^DIC(19,",DIC(0)="",X="MAG WINDOWS" D ^DIC Q:$P(Y,U)<0
. I '$D(^DIC(19,+Y,"RPC","B",$O(^XWB(8994,"B",RPCNAME,"")))) D ADDRPC^MAGQBUT4(RPCNAME,"MAG WINDOWS")
D BMES^XPDUTL("Install Successfully Complete")
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMAGIP356 1957 printed Oct 16, 2024@18:06:47 Page 2
MAGIP356 ;WOIFO/CD - Install code for MAG*3.0*356 ; 27 Jul, 2023@13:31:33
+1 ;;3.0;IMAGING;**356**;Mar 19, 2002;Build 8
+2 ;; Per VHA Directive 2004-038, this routine should not be modified.
+3 ;; +---------------------------------------------------------------+
+4 ;; | Property of the US Government. |
+5 ;; | No permission to copy or redistribute this software is given. |
+6 ;; | Use of unreleased versions of this software requires the user |
+7 ;; | to execute a written test agreement with the VistA Imaging |
+8 ;; | Development Office of the Department of Veterans Affairs, |
+9 ;; | telephone (301) 734-0100. |
+10 ;; | The Food and Drug Administration classifies this software as |
+11 ;; | a medical device. As such, it may not be changed in any way. |
+12 ;; | Modifications to this software may result in an adulterated |
+13 ;; | medical device under 21CFR820, the use of which is considered |
+14 ;; | to be a violation of US Federal Statutes. |
+15 ;; +---------------------------------------------------------------+
+16 ;;
+17 QUIT
+18 ;
EN ;
+1 NEW PAR,ENT,INST,VAL,ERR,I,PNAME,RPCNAME
+2 SET PNAME="MAG TELER SSERV URL"
+3 SET PAR=$ORDER(^XTV(8989.51,"B",PNAME,0))
+4 DO GETENT^XPAREDIT(.ENT,PAR_"^"_PNAME,0)
+5 SET INST=1
SET VAL="http://siteservice.telereader.das.domain.ext/VistaWebSvcs/ExchangeSiteService"
+6 DO BMES^XPDUTL("Setting parameter "_PNAME_" to "_VAL)
+7 DO EN^XPAR(ENT,PAR,INST,VAL,.ERR)
+8 IF $DATA(ERR)
IF $GET(ERR)'=0
DO BMES^XPDUTL("Failed to set "_PNAME_". Exiting post install.")
QUIT
+9 ; Register RPC
+10 DO BMES^XPDUTL("Adding RPC MAG TELER UPDATES to MAG WINDOWS")
+11 SET RPCNAME="MAG TELER UPDATES"
+12 IF $$FIND1^DIC(8994,,"O",RPCNAME,"B",,"MAGMSG")>0
Begin DoDot:1
+13 NEW DIC,Y,X
SET DIC="^DIC(19,"
SET DIC(0)=""
SET X="MAG WINDOWS"
DO ^DIC
if $PIECE(Y,U)<0
QUIT
+14 IF '$DATA(^DIC(19,+Y,"RPC","B",$ORDER(^XWB(8994,"B",RPCNAME,""))))
DO ADDRPC^MAGQBUT4(RPCNAME,"MAG WINDOWS")
End DoDot:1
+15 DO BMES^XPDUTL("Install Successfully Complete")
+16 QUIT