MAGIP122 ;WOIFO/JSL - INSTALL CODE FOR MAG*3.0*122 ; 08 Nov 2010 3:17 PM
;;3.0;IMAGING;**122**;Mar 19, 2002;Build 92;Aug 02, 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
POST ;
D CLEAR^MAGUERR(1),CHKFNSZ
N ERROR D EN^XPAR("SYS","MAG IMAGE ALLOW ANNOTATE",,"NO",.ERROR)
D BMES^XPDUTL("Turn off MAG IMAGE Annotation by default - EDIT PARAMETER VALUES(OPTION NAME)")
;--- Link new remote procedures to the Broker context option
D BMES^XPDUTL("Updating MAG WINDOWS: RPCs ")
D ADDRPC("MAG ANNOT GET IMAGE")
D ADDRPC("MAG ANNOT GET IMAGE DETAIL")
D ADDRPC("MAG ANNOT STORE IMAGE DETAIL")
D ADDRPC("MAG ANNOT IMAGE ALLOW")
D ADDRPC("MAG DICOM GET AGENCY")
D ADDRPC("MAGJ GET TREATING LIST")
D REMTASK^MAGQE4,STTASK^MAGQE4
D BMES^XPDUTL("Post Install Mail Message: "_$$FMTE^XLFDT($$NOW^XLFDT))
D INS^MAGQBUT4(XPDNM,DUZ,$$NOW^XLFDT,XPDA)
Q
ADDRPC(NAME) ;Adding Remote Procedure Call
Q:$G(NAME)="" ;IA # 4011
I $$FIND1^DIC(8994,,"O",NAME,"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",NAME,"")))) D ADDRPC^MAGQBUT4(NAME,"MAG WINDOWS") W "*"
Q
CHKFNSZ ;Checking default annotate font size (11->36)
N USR,Y
S USR=0 F S USR=$O(^MAG(2006.18,USR)) Q:'USR D
. S Y=$G(^MAG(2006.18,USR,"ANNOTCAPTURE")) I $P(Y,U,3)=11 S $P(^("ANNOTCAPTURE"),U,3)=36 W "|"
. S Y=$G(^MAG(2006.18,USR,"ANNOTDISPLAY")) I $P(Y,U,3)=11 S $P(^("ANNOTDISPLAY"),U,3)=36 W "-"
. Q
Q
;
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMAGIP122 2667 printed Nov 22, 2024@17:14:04 Page 2
MAGIP122 ;WOIFO/JSL - INSTALL CODE FOR MAG*3.0*122 ; 08 Nov 2010 3:17 PM
+1 ;;3.0;IMAGING;**122**;Mar 19, 2002;Build 92;Aug 02, 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
POST ;
+1 DO CLEAR^MAGUERR(1)
DO CHKFNSZ
+2 NEW ERROR
DO EN^XPAR("SYS","MAG IMAGE ALLOW ANNOTATE",,"NO",.ERROR)
+3 DO BMES^XPDUTL("Turn off MAG IMAGE Annotation by default - EDIT PARAMETER VALUES(OPTION NAME)")
+4 ;--- Link new remote procedures to the Broker context option
+5 DO BMES^XPDUTL("Updating MAG WINDOWS: RPCs ")
+6 DO ADDRPC("MAG ANNOT GET IMAGE")
+7 DO ADDRPC("MAG ANNOT GET IMAGE DETAIL")
+8 DO ADDRPC("MAG ANNOT STORE IMAGE DETAIL")
+9 DO ADDRPC("MAG ANNOT IMAGE ALLOW")
+10 DO ADDRPC("MAG DICOM GET AGENCY")
+11 DO ADDRPC("MAGJ GET TREATING LIST")
+12 DO REMTASK^MAGQE4
DO STTASK^MAGQE4
+13 DO BMES^XPDUTL("Post Install Mail Message: "_$$FMTE^XLFDT($$NOW^XLFDT))
+14 DO INS^MAGQBUT4(XPDNM,DUZ,$$NOW^XLFDT,XPDA)
+15 QUIT
ADDRPC(NAME) ;Adding Remote Procedure Call
+1 ;IA # 4011
if $GET(NAME)=""
QUIT
+2 IF $$FIND1^DIC(8994,,"O",NAME,"B",,"MAGMSG")>0
Begin DoDot:1
+3 NEW DIC,Y,X
SET DIC="^DIC(19,"
SET DIC(0)=""
SET X="MAG WINDOWS"
DO ^DIC
if $PIECE(Y,U)<0
QUIT
+4 IF '$DATA(^DIC(19,+Y,"RPC","B",$ORDER(^XWB(8994,"B",NAME,""))))
DO ADDRPC^MAGQBUT4(NAME,"MAG WINDOWS")
WRITE "*"
End DoDot:1
+5 QUIT
CHKFNSZ ;Checking default annotate font size (11->36)
+1 NEW USR,Y
+2 SET USR=0
FOR
SET USR=$ORDER(^MAG(2006.18,USR))
if 'USR
QUIT
Begin DoDot:1
+3 SET Y=$GET(^MAG(2006.18,USR,"ANNOTCAPTURE"))
IF $PIECE(Y,U,3)=11
SET $PIECE(^("ANNOTCAPTURE"),U,3)=36
WRITE "|"
+4 SET Y=$GET(^MAG(2006.18,USR,"ANNOTDISPLAY"))
IF $PIECE(Y,U,3)=11
SET $PIECE(^("ANNOTDISPLAY"),U,3)=36
WRITE "-"
+5 QUIT
End DoDot:1
+6 QUIT
+7 ;