Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: MAGIP81

MAGIP81.m

Go to the documentation of this file.
  1. MAGIP81 ;Post init routine to queue site activity at install.
  1. ;;3.0;IMAGING;**81**;May 17, 2007
  1. ;; Per VHA Directive 2004-038, this routine should not be modified.
  1. ;; +---------------------------------------------------------------+
  1. ;; | Property of the US Government. |
  1. ;; | No permission to copy or redistribute this software is given. |
  1. ;; | Use of unreleased versions of this software requires the user |
  1. ;; | to execute a written test agreement with the VistA Imaging |
  1. ;; | Development Office of the Department of Veterans Affairs, |
  1. ;; | telephone (301) 734-0100. |
  1. ;; | The Food and Drug Administration classifies this software as |
  1. ;; | a medical device. As such, it may not be changed |
  1. ;; | in any way. Modifications to this software may result in an |
  1. ;; | adulterated medical device under 21CFR820, the use of which |
  1. ;; | is considered to be a violation of US Federal Statutes. |
  1. ;; +---------------------------------------------------------------+
  1. ;;
  1. PRE ;
  1. ; Remove RPC so that it installs cleanly
  1. D RMRPC("MAGQ VOK")
  1. Q
  1. POST ;
  1. D BMES^XPDUTL("Updating MAG WINDOWS: "_$$FMTE^XLFDT($$NOW^XLFDT))
  1. D ADDRPC^MAGQBUT4("MAGQ VOK","MAG WINDOWS")
  1. D INS^MAGQBUT4(XPDNM,DUZ,$$NOW^XLFDT,XPDA)
  1. Q
  1. RMRPC(NAME) ; Removing an RPC in order to revise
  1. N MW,RPC,MWE,DIERR
  1. S MW=$$FIND1^DIC(19,"","X","MAG WINDOWS","","","")
  1. D CLEAN^DILF
  1. Q:'MW
  1. S RPC=$$FIND1^DIC(8994,"","X",NAME,"","","")
  1. D CLEAN^DILF
  1. Q:'RPC
  1. S MWE=$$FIND1^DIC(19.05,","_MW_",","X",NAME,"","","")
  1. D CLEAN^DILF
  1. Q:'MWE
  1. S DA=MWE,DA(1)=MW,DIK="^DIC(19,"_DA(1)_",""RPC"","
  1. D ^DIK
  1. K DA,DIK
  1. S DA=RPC,DIK="^XWB(8994,"
  1. D ^DIK
  1. K DA,DIK
  1. Q
  1. ;