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

VBECP3.m

Go to the documentation of this file.
  1. VBECP3 ;HIOFO;RLM VBECS PATCH 3 Post Install Routine ; 04/30/09 14:40
  1. ;;1.0;VBECS;**3**;Apr 14, 2005;Build 21
  1. ;
  1. ; Note: This routine supports data exchange with an FDA registered
  1. ; medical device. As such, it may not be changed in any way without
  1. ; prior written approval from the medical device manufacturer.
  1. ;
  1. ; Integration Agreements:
  1. ; Reference to FILESEC^DDMOD supported by DBIA #2916
  1. ; Reference to ^XMD supported by DBIA #10113
  1. ; Reference to ^XPDUTL supported by DBIA #10141
  1. ; Reference to $$GET1^DIQ supported by DBIA #2056
  1. ; Reference to $$SITE^VASITE supported by DBIA #10112
  1. ENV ; Environment Check
  1. ;Don't install the patch if 6002.03 hasn't been installed.
  1. q:$d(^VBEC(6002.03))
  1. s XPDQUIT=1
  1. ;Send a message showing unsuccessful installation.
  1. s ^TMP("VBEC",$J,1,0)="Patch VBEC*1.0*3 installation failed at "_$P($$SITE^VASITE,"^",2)
  1. s XMSUB="VBEC*1.0*3 Patch Installation Failure",XMTEXT="^TMP(""VBEC"",$J,",XMDUN="VBECS Patch Monitor"
  1. s ^TMP("VBEC",$J,2,0)="VBECS does not appear to be installed"
  1. d PATCH
  1. d ^XMD k ^TMP("VBEC",$J)
  1. q
  1. POST ;Post Install entry point
  1. k DISEC
  1. s DISEC("DD")=""
  1. s DISEC("RD")=""
  1. s DISEC("WR")=""
  1. s DISEC("DEL")=""
  1. s DISEC("LAYGO")=""
  1. s DISEC("AUDIT")=""
  1. s DIFIL=6002.03
  1. ;Update the security in file 6002.03
  1. d FILESEC^DDMOD(DIFIL,.DISEC,"DIMSGA")
  1. ;Send a message showing successful installation.
  1. K ^TMP("VBEC",$J)
  1. s ^TMP("VBEC",$J,1,0)="Patch VBEC*1.0*3 has been installed by "_$$GET1^DIQ(200,DUZ_",",".01","E","VBECN","ERR")_" at "_$P($$SITE^VASITE,"^",2)
  1. s XMSUB="VBEC*1.0*3 Patch Installation verification",XMTEXT="^TMP(""VBEC"",$J)",XMDUN="VBECS Patch Monitor"
  1. s ^TMP("VBEC",$J,2,0)=$s($D(DIMSGA):"",1:"No ")_"errors encountered updating 6002.03"
  1. d PATCH
  1. s XMY("G.VBEC@DOMAIN.EXT")=""
  1. d SENDMSG^XMXAPI(DUZ,XMSUB,XMTEXT,.XMY)
  1. ;d ^XMD
  1. k ^TMP("VBEC",$J)
  1. q
  1. PATCH ;
  1. s ^TMP("VBEC",$J,3,0)=" ",^TMP("VBEC",$J,4,0)=" ",^TMP("VBEC",$J,5,0)="Previous Patches:"
  1. ;Update the loop in this line to reflect all released patches
  1. f VBECI=0:1:2 s VBECA=$$PATCH^XPDUTL("VBEC*1.0*"_VBECI),^TMP("VBEC",$J,(VBECI+6),0)="Patch VBEC*1.0*"_VBECI_" "_$S(VBECA=1:"has",1:"hasn't")_" been installed."
  1. q
  1. EOR ;VBECP3