MAGIPS53 ;Post init routine to queue site activity at install. ; 24 Jun 2008 3:12 PM
;;3.0;IMAGING;**53**;Mar 19, 2002;Build 1719;Apr 28, 2010
;; 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
;
POST ;
D MENUPDT
N CT,CNT,D,D0,D1,D2,DDATE,DG,DIC,DICR,DIW,MAGMSG,ST,XMID,XMY
;
D GETENV^%ZOSV
S CNT=0
S CNT=CNT+1,MAGMSG(CNT)="PACKAGE INSTALL"
S CNT=CNT+1,MAGMSG(CNT)="SITE: "_$$KSP^XUPARAM("WHERE")
S CNT=CNT+1,MAGMSG(CNT)="PACKAGE: "_XPDNM
S CNT=CNT+1,MAGMSG(CNT)="Version: "_$$VER^XPDUTL(XPDNM)
S ST=$$GET1^DIQ(9.7,XPDA,11,"I")
S CNT=CNT+1,MAGMSG(CNT)="Start time: "_$$FMTE^XLFDT(ST)
S CT=$$GET1^DIQ(9.7,XPDA,17,"I") S:+CT'=CT CT=$$NOW^XLFDT()
S CNT=CNT+1,MAGMSG(CNT)="Completion time: "_$$FMTE^XLFDT(CT)
S CNT=CNT+1,MAGMSG(CNT)="Run time: "_$$FMDIFF^XLFDT(CT,ST,3)
S CNT=CNT+1,MAGMSG(CNT)="Environment: "_Y
S CNT=CNT+1,MAGMSG(CNT)="FILE COMMENT: "_$$GET1^DIQ(9.7,XPDA,6,"I")
S CNT=CNT+1,MAGMSG(CNT)="DATE: "_$$NOW^XLFDT()
S CNT=CNT+1,MAGMSG(CNT)="Installed by: "_$$GET1^DIQ(9.7,XPDA,9,"E")
S CNT=CNT+1,MAGMSG(CNT)="Install Name: "_$$GET1^DIQ(9.7,XPDA,.01,"E")
S DDATE=$$GET1^DIQ(9.7,XPDA,51,"I")
S CNT=CNT+1,MAGMSG(CNT)="Distribution Date: "_$$FMTE^XLFDT(DDATE)
S XMSUB=XPDNM_" INSTALLATION"
S XMID=$G(DUZ) S:'XMID XMID=.5
S XMY(XMID)=""
S XMY("G.MAG SERVER")=""
S:$G(MAGDUZ) XMY(MAGDUZ)=""
S XMSUB=$E(XMSUB,1,63)
D SENDMSG^XMXAPI(XMID,XMSUB,"MAGMSG",.XMY,,.XMZ,)
I $G(XMERR) M XMERR=^TMP("XMERR",$J) S $EC=",U13-Cannot send MailMan message,"
Q
;
D FILE("MAGD DICOM MENU","DICOM Menu Options")
D FILE("MAGD PRINT DICOM FILE","Print DICOM Failed Image File Entries")
Q
FILE(OPTION,NAME) ;
N FDAIEN,FDA
Q:'$L($G(OPTION))
Q:'$L($G(NAME))
S FDAIEN=$$FIND1^DIC(19,,,OPTION,"B")
Q:'FDAIEN
S FDAIEN=FDAIEN_",",FDA(19,FDAIEN,1)=NAME
D UPDATE^DIE("","FDA","")
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMAGIPS53 2828 printed Nov 22, 2024@17:16:25 Page 2
MAGIPS53 ;Post init routine to queue site activity at install. ; 24 Jun 2008 3:12 PM
+1 ;;3.0;IMAGING;**53**;Mar 19, 2002;Build 1719;Apr 28, 2010
+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 ;
POST ;
+1 DO MENUPDT
+2 NEW CT,CNT,D,D0,D1,D2,DDATE,DG,DIC,DICR,DIW,MAGMSG,ST,XMID,XMY
+3 ;
+4 DO GETENV^%ZOSV
+5 SET CNT=0
+6 SET CNT=CNT+1
SET MAGMSG(CNT)="PACKAGE INSTALL"
+7 SET CNT=CNT+1
SET MAGMSG(CNT)="SITE: "_$$KSP^XUPARAM("WHERE")
+8 SET CNT=CNT+1
SET MAGMSG(CNT)="PACKAGE: "_XPDNM
+9 SET CNT=CNT+1
SET MAGMSG(CNT)="Version: "_$$VER^XPDUTL(XPDNM)
+10 SET ST=$$GET1^DIQ(9.7,XPDA,11,"I")
+11 SET CNT=CNT+1
SET MAGMSG(CNT)="Start time: "_$$FMTE^XLFDT(ST)
+12 SET CT=$$GET1^DIQ(9.7,XPDA,17,"I")
if +CT'=CT
SET CT=$$NOW^XLFDT()
+13 SET CNT=CNT+1
SET MAGMSG(CNT)="Completion time: "_$$FMTE^XLFDT(CT)
+14 SET CNT=CNT+1
SET MAGMSG(CNT)="Run time: "_$$FMDIFF^XLFDT(CT,ST,3)
+15 SET CNT=CNT+1
SET MAGMSG(CNT)="Environment: "_Y
+16 SET CNT=CNT+1
SET MAGMSG(CNT)="FILE COMMENT: "_$$GET1^DIQ(9.7,XPDA,6,"I")
+17 SET CNT=CNT+1
SET MAGMSG(CNT)="DATE: "_$$NOW^XLFDT()
+18 SET CNT=CNT+1
SET MAGMSG(CNT)="Installed by: "_$$GET1^DIQ(9.7,XPDA,9,"E")
+19 SET CNT=CNT+1
SET MAGMSG(CNT)="Install Name: "_$$GET1^DIQ(9.7,XPDA,.01,"E")
+20 SET DDATE=$$GET1^DIQ(9.7,XPDA,51,"I")
+21 SET CNT=CNT+1
SET MAGMSG(CNT)="Distribution Date: "_$$FMTE^XLFDT(DDATE)
+22 SET XMSUB=XPDNM_" INSTALLATION"
+23 SET XMID=$GET(DUZ)
if 'XMID
SET XMID=.5
+24 SET XMY(XMID)=""
+25 SET XMY("G.MAG SERVER")=""
+26 if $GET(MAGDUZ)
SET XMY(MAGDUZ)=""
+27 SET XMSUB=$EXTRACT(XMSUB,1,63)
+28 DO SENDMSG^XMXAPI(XMID,XMSUB,"MAGMSG",.XMY,,.XMZ,)
+29 IF $GET(XMERR)
MERGE XMERR=^TMP("XMERR",$JOB)
SET $ECODE=",U13-Cannot send MailMan message,"
+30 QUIT
+31 ;
+1 DO FILE("MAGD DICOM MENU","DICOM Menu Options")
+2 DO FILE("MAGD PRINT DICOM FILE","Print DICOM Failed Image File Entries")
+3 QUIT
FILE(OPTION,NAME) ;
+1 NEW FDAIEN,FDA
+2 if '$LENGTH($GET(OPTION))
QUIT
+3 if '$LENGTH($GET(NAME))
QUIT
+4 SET FDAIEN=$$FIND1^DIC(19,,,OPTION,"B")
+5 if 'FDAIEN
QUIT
+6 SET FDAIEN=FDAIEN_","
SET FDA(19,FDAIEN,1)=NAME
+7 DO UPDATE^DIE("","FDA","")
+8 QUIT