MHV1P2 ;WAS/GPM - My HealtheVet Install Utility Routine ; 2/2/08 12:35pm ;;1.0;My HealtheVet;**2**;Aug 23, 2005;Build 22 ;;Per VHA Directive 2004-038, this routine should not be modified. ; ; Integration Agreements: ; 10141 : BMES^XPDUTL ; : MES^XPDUTL ; 3552 : PARAM^HLCS2 ; ENV ; Q ; PRE ; Pre-init routine ; Turn on MHV Application Logging, add a log entry for the start ; of the patch install. D LOGON D LOG^MHVUL2(XPDNM,"PRE-INIT","S","TRACE") Q ; POST ; Post-init routine ; Add a log entry for the post init, and turn off logging. D LOG^MHVUL2(XPDNM,"POST-INIT BEGIN","S","TRACE") ; D BMES^XPDUTL(" Updating MHVVA logical link") I '$$UPDLINK D . D BMES^XPDUTL(" *** Update to MHVVA logical link failed.") . D MES^XPDUTL(" Please update the MHVVA logical link manually.") . D MES^XPDUTL(" The DNS DOMAIN field shoud be 'MHV.MED.VA.GOV'") . D MES^XPDUTL(" The AUTOSTART field should be 'Enabled'") . D MES^XPDUTL(" No other fields should be changed.") . D MES^XPDUTL(" If you need help with this please consult the HL7 System Manager") . D MES^XPDUTL(" Guide, or log a Remedy Ticket.") . Q ; I '$$LOGCHK D . D LOG^MHVUL2("LOG CHECK","FAILED","S","TRACE") . D BMES^XPDUTL(" *** An HL7 message was processed by MHV during installation.") . D MES^XPDUTL(" Please check your error trap. If you find an error in an MHV") . D MES^XPDUTL(" routine, please log a remedy ticket.") . Q D LOG^MHVUL2(XPDNM,"POST-INIT END","S","TRACE") D LOGOFF D RESET^MHVUL2 Q ; LOGON ; Turn on MHV application logging N UPDATE,SUCCESS D BMES^XPDUTL(" Turning on MHV Application Logging") S UPDATE("STATE")=1 S UPDATE("DELETE")=$$HTFM^XLFDT($H+60) S UPDATE("LEVEL")="DEBUG" D LOGSET^MHVUL1(.SUCCESS,.UPDATE) Q ; LOGOFF ; Turn off MHV application logging N SUCCESS D BMES^XPDUTL(" Turning off MHV Application Logging") D LOGOFF^MHVUL1(.SUCCESS) Q ; LOGCHK() ; Check for log entries during patch installation N DTM,PREDTM,J,FLAG S PREDTM=$G(^TMP("MHV7LOG",$J)) Q:PREDTM="" 1 S DTM=$O(^XTMP("MHV7LOG",2,"")) I DTM'="",DTM