- MAGIPS96 ;Post init routine to queue site activity at install ; 16 Feb 2004 2:41 PM
- ;;3.0;IMAGING;**96**;April 29, 2008;Build 9
- ;; 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 ;
- ; create and send the site installation message
- D VERCHKON ; Turn on Version Checking
- D REMTASK^MAGQE4
- D STTASK^MAGQE4
- D INS^MAGQBUT4(XPDNM,DUZ,$$NOW^XLFDT,XPDA)
- Q
- VERCHKON ; Turn on Version Checking at the Sites.
- ; We aren't forcing it to stay on, sites can turn it back off.
- N MAGIEN,MAGSITE,VERCHK,MSG
- S MAGIEN=0
- F S MAGIEN=$O(^MAG(2006.1,MAGIEN)) Q:'MAGIEN D
- . S MSG="is already ON, no action taken"
- . S MAGSITE=$P($G(^MAG(2006.1,MAGIEN,0)),"^",1)
- . S VERCHK=$P($G(^MAG(2006.1,MAGIEN,"KEYS")),"^",5)
- . I 'VERCHK S $P(^MAG(2006.1,MAGIEN,"KEYS"),"^",5)=1 S MSG="has been turned ON"
- . D MES^XPDUTL("Patch 96 is turning Version Checking ON...")
- . D MES^XPDUTL("Version Checking "_MSG_" for Site: "_MAGSITE)
- Q
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMAGIPS96 1959 printed Feb 18, 2025@23:33:03 Page 2
- MAGIPS96 ;Post init routine to queue site activity at install ; 16 Feb 2004 2:41 PM
- +1 ;;3.0;IMAGING;**96**;April 29, 2008;Build 9
- +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 ;; | |
- +11 ;; | The Food and Drug Administration classifies this software as |
- +12 ;; | a medical device. As such, it may not be changed in any way. |
- +13 ;; | Modifications to this software may result in an adulterated |
- +14 ;; | medical device under 21CFR820, the use of which is considered |
- +15 ;; | to be a violation of US Federal Statutes. |
- +16 ;; +---------------------------------------------------------------+
- +17 ;;
- +18 QUIT
- POST ;
- +1 ; create and send the site installation message
- +2 ; Turn on Version Checking
- DO VERCHKON
- +3 DO REMTASK^MAGQE4
- +4 DO STTASK^MAGQE4
- +5 DO INS^MAGQBUT4(XPDNM,DUZ,$$NOW^XLFDT,XPDA)
- +6 QUIT
- VERCHKON ; Turn on Version Checking at the Sites.
- +1 ; We aren't forcing it to stay on, sites can turn it back off.
- +2 NEW MAGIEN,MAGSITE,VERCHK,MSG
- +3 SET MAGIEN=0
- +4 FOR
- SET MAGIEN=$ORDER(^MAG(2006.1,MAGIEN))
- if 'MAGIEN
- QUIT
- Begin DoDot:1
- +5 SET MSG="is already ON, no action taken"
- +6 SET MAGSITE=$PIECE($GET(^MAG(2006.1,MAGIEN,0)),"^",1)
- +7 SET VERCHK=$PIECE($GET(^MAG(2006.1,MAGIEN,"KEYS")),"^",5)
- +8 IF 'VERCHK
- SET $PIECE(^MAG(2006.1,MAGIEN,"KEYS"),"^",5)=1
- SET MSG="has been turned ON"
- +9 DO MES^XPDUTL("Patch 96 is turning Version Checking ON...")
- +10 DO MES^XPDUTL("Version Checking "_MSG_" for Site: "_MAGSITE)
- End DoDot:1
- +11 QUIT