MAGIP269 ;WOIFO/ZEB - Install code for MAG*3.0*269 ;3/4/21 15:24
;;3.0;IMAGING;**269**;Mar 19, 2002;Build 8;Jan 18, 2012
;; 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
;
;+++++ INSTALLATION ERROR HANDLING
ERROR ;
S:$D(XPDNM) XPDABORT=1
;--- Display the messages and store them to the INSTALL file
D DUMP^MAGUERR1(),ABTMSG^MAGKIDS()
Q
;
;***** POST-INSTALL CODE
POS ;
N CALLBACK
D CLEAR^MAGUERR(1)
D RPCS
;
;--- Send the notification e-mail
D BMES^XPDUTL("Post Install Mail Message: "_$$FMTE^XLFDT($$NOW^XLFDT))
D INS^MAGQBUT4(XPDNM,DUZ,$$NOW^XLFDT,XPDA)
Q
RPCS ;register RPCs in MAG WINDOWS
N RPC,I,D0,DIC,DA,X
S RPC(0)=6
S RPC(1)=$O(^XWB(8994,"B","XHD GET SITE INFO",""))
S RPC(2)=$O(^XWB(8994,"B","ORWCIRN FACLIST",""))
S RPC(3)=$O(^XWB(8994,"B","ORRCQLPT PTDEMOS",""))
S RPC(4)=$O(^XWB(8994,"B","ORWU USERINFO",""))
S RPC(5)=$O(^XWB(8994,"B","DSIC DPT GET ICN",""))
S RPC(6)=$O(^XWB(8994,"B","MAG STUDY UID QUERY",""))
;find IEN for MAG WINDOWS
S D0=$O(^DIC(19,"B","MAG WINDOWS",""))
Q:D0="" ;abort iff MAG WINDOWS doesn't exist
;add RPCS to context
F I=1:1:RPC(0) D
. Q:RPC(I)="" ;abort if RPC doesn't exist
. Q:$O(^DIC(19,D0,"RPC","B",RPC(I),""))]"" ;abort if RPC in context already
. S DIC="^DIC(19,"_D0_",""RPC"","
. S DIC(0)="FL"
. S DA(1)=D0
. S X=RPC(I)
. K DO
. D FILE^DICN
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMAGIP269 2328 printed Dec 13, 2024@02:05:26 Page 2
MAGIP269 ;WOIFO/ZEB - Install code for MAG*3.0*269 ;3/4/21 15:24
+1 ;;3.0;IMAGING;**269**;Mar 19, 2002;Build 8;Jan 18, 2012
+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 ;
+19 ;+++++ INSTALLATION ERROR HANDLING
ERROR ;
+1 if $DATA(XPDNM)
SET XPDABORT=1
+2 ;--- Display the messages and store them to the INSTALL file
+3 DO DUMP^MAGUERR1()
DO ABTMSG^MAGKIDS()
+4 QUIT
+5 ;
+6 ;***** POST-INSTALL CODE
POS ;
+1 NEW CALLBACK
+2 DO CLEAR^MAGUERR(1)
+3 DO RPCS
+4 ;
+5 ;--- Send the notification e-mail
+6 DO BMES^XPDUTL("Post Install Mail Message: "_$$FMTE^XLFDT($$NOW^XLFDT))
+7 DO INS^MAGQBUT4(XPDNM,DUZ,$$NOW^XLFDT,XPDA)
+8 QUIT
RPCS ;register RPCs in MAG WINDOWS
+1 NEW RPC,I,D0,DIC,DA,X
+2 SET RPC(0)=6
+3 SET RPC(1)=$ORDER(^XWB(8994,"B","XHD GET SITE INFO",""))
+4 SET RPC(2)=$ORDER(^XWB(8994,"B","ORWCIRN FACLIST",""))
+5 SET RPC(3)=$ORDER(^XWB(8994,"B","ORRCQLPT PTDEMOS",""))
+6 SET RPC(4)=$ORDER(^XWB(8994,"B","ORWU USERINFO",""))
+7 SET RPC(5)=$ORDER(^XWB(8994,"B","DSIC DPT GET ICN",""))
+8 SET RPC(6)=$ORDER(^XWB(8994,"B","MAG STUDY UID QUERY",""))
+9 ;find IEN for MAG WINDOWS
+10 SET D0=$ORDER(^DIC(19,"B","MAG WINDOWS",""))
+11 ;abort iff MAG WINDOWS doesn't exist
if D0=""
QUIT
+12 ;add RPCS to context
+13 FOR I=1:1:RPC(0)
Begin DoDot:1
+14 ;abort if RPC doesn't exist
if RPC(I)=""
QUIT
+15 ;abort if RPC in context already
if $ORDER(^DIC(19,D0,"RPC","B",RPC(I),""))]""
QUIT
+16 SET DIC="^DIC(19,"_D0_",""RPC"","
+17 SET DIC(0)="FL"
+18 SET DA(1)=D0
+19 SET X=RPC(I)
+20 KILL DO
+21 DO FILE^DICN
End DoDot:1
+22 QUIT