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

MHV1P10.m

Go to the documentation of this file.
  1. MHV1P10 ;KUM - My HealtheVet Install Utility Routine ; [1/15/13 15:01pm]
  1. ;;1.0;My HealtheVet;**10**;Aug 23, 2005;Build 50
  1. ;;Per VHA Directive 2004-038, this routine should not be modified.
  1. ;
  1. ; Integration Agreements:
  1. ; 10141 : BMES^XPDUTL
  1. ; : MES^XPDUTL
  1. ; 10018 : UPDATE^DIE
  1. ; 10103 : $$FMTH^XLFDT
  1. ; : $$HTFM^XLFDT
  1. ; : $$NOW^XLFDT
  1. ;
  1. ENV ;
  1. Q
  1. ;
  1. PRE ; Pre-init routine
  1. ; Turn on MHV Application Logging, add a log entry for the start
  1. ; of the patch install.
  1. D LOGON
  1. D LOG^MHVUL2(XPDNM,"PRE-INIT","S","TRACE")
  1. Q
  1. ;
  1. POST ; Post-init routine
  1. N ERR
  1. D LOG^MHVUL2(XPDNM,"POST-INIT BEGIN","S","TRACE")
  1. ;
  1. D QRYSMC
  1. D QRYTIU
  1. D RSPTIU
  1. D PRLSMS
  1. D PRLSME
  1. D PRLSMSR
  1. D PRLSMER
  1. ;
  1. D LOG^MHVUL2(XPDNM,"POST-INIT END","S","TRACE")
  1. D LOGOFF
  1. D RESET^MHVUL2
  1. Q
  1. ;
  1. LOGON ; Turn on MHV application logging
  1. N UPDATE,SUCCESS
  1. D BMES^XPDUTL(" Turning on MHV Application Logging")
  1. S UPDATE("STATE")=1
  1. S UPDATE("DELETE")=$$HTFM^XLFDT($H+60)
  1. S UPDATE("LEVEL")="DEBUG"
  1. D LOGSET^MHVUL1(.SUCCESS,.UPDATE)
  1. Q
  1. ;
  1. LOGOFF ; Turn off MHV application logging
  1. N SUCCESS
  1. D BMES^XPDUTL(" Turning off MHV Application Logging")
  1. D LOGOFF^MHVUL1(.SUCCESS)
  1. Q
  1. ;
  1. QRYSMC ; Setup for Clinics By Stop Code query
  1. ; Setup MHV REQUEST TYPE
  1. ;
  1. D BMES^XPDUTL(" Creating Entry in MHV REQUEST TYPE File - SMCLINICS ")
  1. N FIELDS,ERR
  1. S ERR=""
  1. S FIELDS("REQUEST TYPE")="SMCLINICS"
  1. S FIELDS("NUMBER")=41
  1. S FIELDS("BLOCK")=0
  1. S FIELDS("REALTIME")=1
  1. S FIELDS("DATATYPE")="SMClinicsByStopCode"
  1. S FIELDS("EXECUTE")="SPCLIN~MHVXCLN"
  1. S FIELDS("BUILDER")="SMORG~MHV7B9A"
  1. S FIELDS("DESCRIPTION",1)="QBP^Q11 query for Clinic information."
  1. S FIELDS("DESCRIPTION",2)="Specify Clinic name or leave blank for all."
  1. S FIELDS("DESCRIPTION",3)="Specify Credit Stop Code, not null, 719 is expected."
  1. S FIELDS("DESCRIPTION",4)="Developed for Secure Messaging."
  1. D LOG^MHVUL2("UPDATE REQUEST TYPE",.FIELDS,"M","DEBUG")
  1. D UPDREQ^MHVU2(.FIELDS,1,.ERR)
  1. I ERR'="" D
  1. . D LOG^MHVUL2("UPDATE FAILED",ERR,"S","ERROR")
  1. . D BMES^XPDUTL(" *** An Error occurred during installation.")
  1. . D MES^XPDUTL(" Please log a remedy ticket.")
  1. . Q
  1. ;
  1. QRYTIU ; Setup for TIUTITLES Query
  1. ;
  1. D BMES^XPDUTL(" Creating Entry in MHV REQUEST TYPE File - TIUTITLES ")
  1. N FIELDS,ERR
  1. S ERR=""
  1. S FIELDS("REQUEST TYPE")="TIUTITLES"
  1. S FIELDS("NUMBER")=42
  1. S FIELDS("BLOCK")=0
  1. S FIELDS("REALTIME")=1
  1. S FIELDS("DATATYPE")="TIUTitlesByDocumentClass"
  1. S FIELDS("EXECUTE")="EXTRACT~MHVXTIU"
  1. S FIELDS("BUILDER")="MHV7B1C"
  1. S FIELDS("DESCRIPTION",1)="QBP^Q13 query for TIU Titles information."
  1. S FIELDS("DESCRIPTION",2)="Specify Document Class Name, SECURE MESSAGING DOCUMENTS is expected."
  1. S FIELDS("DESCRIPTION",3)="Developed for Secure Messaging."
  1. D LOG^MHVUL2("UPDATE REQUEST TYPE",.FIELDS,"M","DEBUG")
  1. D UPDREQ^MHVU2(.FIELDS,1,.ERR)
  1. I ERR'="" D
  1. . D LOG^MHVUL2("UPDATE FAILED",ERR,"S","ERROR")
  1. . D BMES^XPDUTL(" *** An Error occurred during installation.")
  1. . D MES^XPDUTL(" Please log a remedy ticket.")
  1. . Q
  1. ;
  1. RSPTIU ; Set up RESPONSE MAP FOR TIUTITLES
  1. D BMES^XPDUTL(" Creating Entry in MHV RESPONSE MAP - MHVSM QBP-Q13 Subscriber ")
  1. N FLDS,ERR
  1. K FLDS
  1. S ERR=""
  1. S FLDS("SUBSCRIBER")="MHVSM QBP-Q13 Subscriber"
  1. S FLDS("PROTOCOL")="MHVSM RTB-K13 Event Driver"
  1. S FLDS("BUILDER")="RTBK13~MHV7B1"
  1. S FLDS("SEGMENT")="RDT"
  1. D LOG^MHVUL2("UPDATE RESPONSE MAP",.FLDS,"M","DEBUG")
  1. D UPDMAP^MHVU2(.FLDS,1,.ERR)
  1. I ERR'="" D
  1. . D LOG^MHVUL2("UPDATE FAILED",ERR,"S","ERROR")
  1. . D BMES^XPDUTL(" *** An Error occurred during installation.")
  1. . D MES^XPDUTL(" Please log a remedy ticket.")
  1. . Q
  1. Q
  1. ;
  1. PRLSMS ; Setup for PROTOCOLs
  1. D BMES^XPDUTL(" Creating Entry in PROTOCOL - MHVSM QBP-Q13 Subscriber ")
  1. N NAME,IEN,FIELDS,ERR
  1. S ERR=""
  1. S NAME="MHVSM QBP-Q13 Subscriber"
  1. S IEN=$O(^ORD(101,"B",NAME,0))
  1. I IEN Q
  1. I 'IEN S IEN="+1"
  1. S IEN=IEN_","
  1. S FIELDS(101,IEN,.01)="MHVSM QBP-Q13 Subscriber"
  1. S FIELDS(101,IEN,44)="MHVSM QBP-Q13 Subscriber"
  1. S FIELDS(101,IEN,4)="subscriber"
  1. S FIELDS(101,IEN,99)=$$FMTH^XLFDT($$NOW^XLFDT())
  1. S FIELDS(101,IEN,770.4)="K13"
  1. S FIELDS(101,IEN,770.11)="RTB"
  1. S FIELDS(101,IEN,773.1)="YES"
  1. S FIELDS(101,IEN,773.3)="NO"
  1. S FIELDS(101,IEN,770.2)="MHV VISTA"
  1. S FIELDS(101,IEN,771)="D QBPQ13^MHV7R6"
  1. S FIELDS(101,IEN,773.2)="YES"
  1. ;S FIELDS(101,IEN,770.95)="2.4"
  1. D UPDATE^DIE("E","FIELDS","","ERR")
  1. I $D(ERR("DIERR")) D
  1. . S ERR=$G(ERR("DIERR",1,"TEXT",1))
  1. . D LOG^MHVUL2("UPDATE FAILED",ERR,"S","ERROR")
  1. . D BMES^XPDUTL(" *** An Error occurred during installation.")
  1. . D MES^XPDUTL(" Please log a remedy ticket.")
  1. . Q
  1. Q
  1. PRLSME ; Setup for PROTOCOLs
  1. D BMES^XPDUTL(" Creating Entry in PROTOCOL - MHVSM QBP-Q13 Event Driver ")
  1. N NAME,IEN,FIELDS,ERR
  1. S ERR=""
  1. S NAME="MHVSM QBP-Q13 Event Driver"
  1. S IEN=$O(^ORD(101,"B",NAME,0))
  1. I IEN Q
  1. I 'IEN S IEN="+1"
  1. S IEN=IEN_","
  1. S FIELDS(101,IEN,.01)="MHVSM QBP-Q13 Event Driver"
  1. S FIELDS(101,IEN,44)="MHVSM QBP-Q13 Event Driver"
  1. S FIELDS(101,IEN,4)="event driver"
  1. S FIELDS(101,IEN,99)=$$FMTH^XLFDT($$NOW^XLFDT())
  1. S FIELDS(101,IEN,770.4)="Q13"
  1. S FIELDS(101,IEN,770.1)="MHV SM"
  1. S FIELDS(101,IEN,770.3)="QBP"
  1. S FIELDS(101,IEN,770.5)="QBP_Q13"
  1. S FIELDS(101,IEN,770.95)="2.4"
  1. S FIELDS(101.0775,"+2,"_IEN,.01)="MHVSM QBP-Q13 Subscriber"
  1. D UPDATE^DIE("E","FIELDS","","ERR")
  1. I $D(ERR("DIERR")) D
  1. . S ERR=$G(ERR("DIERR",1,"TEXT",1))
  1. . D LOG^MHVUL2("UPDATE FAILED",ERR,"S","ERROR")
  1. . D BMES^XPDUTL(" *** An Error occurred during installation.")
  1. . D MES^XPDUTL(" Please log a remedy ticket.")
  1. . Q
  1. Q
  1. PRLSMSR ; Setup for PROTOCOLs
  1. D BMES^XPDUTL(" Creating Entry in PROTOCOL - MHVSM RTB-K13 Subscriber ")
  1. N NAME,IEN,FIELDS,ERR
  1. S ERR=""
  1. S NAME="MHVSM RTB-K13 Subscriber"
  1. S IEN=$O(^ORD(101,"B",NAME,0))
  1. I IEN Q
  1. I 'IEN S IEN="+1"
  1. S IEN=IEN_","
  1. S FIELDS(101,IEN,.01)="MHVSM RTB-K13 Subscriber"
  1. S FIELDS(101,IEN,44)="MHVSM RTB-K13 Subscriber"
  1. S FIELDS(101,IEN,4)="subscriber"
  1. S FIELDS(101,IEN,99)=$$FMTH^XLFDT($$NOW^XLFDT())
  1. S FIELDS(101,IEN,770.4)="K13"
  1. S FIELDS(101,IEN,770.11)="RTB"
  1. S FIELDS(101,IEN,773.1)="YES"
  1. S FIELDS(101,IEN,773.3)="NO"
  1. S FIELDS(101,IEN,770.2)="MHV SM"
  1. S FIELDS(101,IEN,770.7)="MHVVA"
  1. S FIELDS(101,IEN,773.2)="YES"
  1. D UPDATE^DIE("E","FIELDS","","ERR")
  1. I $D(ERR("DIERR")) D
  1. . S ERR=$G(ERR("DIERR",1,"TEXT",1))
  1. . D LOG^MHVUL2("UPDATE FAILED",ERR,"S","ERROR")
  1. . D BMES^XPDUTL(" *** An Error occurred during installation.")
  1. . D MES^XPDUTL(" Please log a remedy ticket.")
  1. . Q
  1. Q
  1. PRLSMER ; Setup for PROTOCOLs
  1. D BMES^XPDUTL(" Creating Entry in PROTOCOL - MHVSM RTB-K13 Event Driver ")
  1. N NAME,IEN,FIELDS,ERR
  1. S ERR=""
  1. S NAME="MHVSM RTB-K13 Event Driver"
  1. S IEN=$O(^ORD(101,"B",NAME,0))
  1. I IEN Q
  1. I 'IEN S IEN="+1"
  1. S IEN=IEN_","
  1. S FIELDS(101,IEN,.01)="MHVSM RTB-K13 Event Driver"
  1. S FIELDS(101,IEN,44)="MHVSM RTB-K13 Event Driver"
  1. S FIELDS(101,IEN,4)="event driver"
  1. S FIELDS(101,IEN,99)=$$FMTH^XLFDT($$NOW^XLFDT())
  1. S FIELDS(101,IEN,770.4)="K13"
  1. S FIELDS(101,IEN,770.1)="MHV VISTA"
  1. S FIELDS(101,IEN,770.3)="RTB"
  1. S FIELDS(101,IEN,770.5)="RTB_K13"
  1. S FIELDS(101,IEN,770.8)="AL"
  1. S FIELDS(101,IEN,770.9)="NE"
  1. S FIELDS(101,IEN,770.95)="2.4"
  1. S FIELDS(101.0775,"+2,"_IEN,.01)="MHVSM RTB-K13 Subscriber"
  1. D UPDATE^DIE("E","FIELDS","","ERR")
  1. I $D(ERR("DIERR")) D
  1. . S ERR=$G(ERR("DIERR",1,"TEXT",1))
  1. . D LOG^MHVUL2("UPDATE FAILED",ERR,"S","ERROR")
  1. . D BMES^XPDUTL(" *** An Error occurred during installation.")
  1. . D MES^XPDUTL(" Please log a remedy ticket.")
  1. . Q
  1. Q