1 | MHVU1 ;WAS/GPM - UTILITIES ; 7/25/05 3:48pm [12/13/07 12:06am]
|
---|
2 | ;;1.0;My HealtheVet;**2**;Aug 23, 2005;Build 22
|
---|
3 | ;;Per VHA Directive 2004-038, this routine should not be modified.
|
---|
4 | ;
|
---|
5 | Q
|
---|
6 | ;
|
---|
7 | NOTIFY(ADM) ; Notify MHV server of patch installation, and configuration data
|
---|
8 | ; Sends the current version and last patch installed for the
|
---|
9 | ; My HealtheVet package. This is called by post install routines to
|
---|
10 | ; notify the MHV server of patch installation.
|
---|
11 | ; Configuration data passed in ADM will also be sent.
|
---|
12 | ;
|
---|
13 | ; Input:
|
---|
14 | ; ADM - Array of administrative data
|
---|
15 | ; SITE NUMBER - From Institution file
|
---|
16 | ; SITE NAME - Descriptive Site Name
|
---|
17 | ; DOMAIN - System Domain Name
|
---|
18 | ; SYSTEM TYPE - Production or Test
|
---|
19 | ; VERSION - MHV version
|
---|
20 | ; PATCH NUMBER - Last MHV patch loaded
|
---|
21 | ; RPC BROKER PORT - Broker port MHV Server should use
|
---|
22 | ; IP ADDRESS - System IP address
|
---|
23 | ; HL7 LISTENER PORT - For HL7 listener
|
---|
24 | ;
|
---|
25 | ; Output:
|
---|
26 | ; MFN^Z01 Message is sent to the MHV server
|
---|
27 | ;
|
---|
28 | ;
|
---|
29 | N XMT
|
---|
30 | D LOG^MHVUL2("MFN-Z01 UPDATE","BEGIN","S","TRACE")
|
---|
31 | D LOG^MHVUL2("ADM",.ADM,"M","TRACE")
|
---|
32 | S XMT("BUILDER")="MFNZ01^MHV7B0"
|
---|
33 | S XMT("PROTOCOL")="MHV MFN-Z01 Event Driver"
|
---|
34 | S XMT("MODE")="A"
|
---|
35 | D XMIT^MHV7T(.ADM,.XMT,"","","")
|
---|
36 | ;
|
---|
37 | ; code to use Email transmitter
|
---|
38 | ;S XMT("SAF")=ADM("SITE NUMBER")
|
---|
39 | ;S XMT("EMAIL")="VHAMHVSITECOMMCONFIG@MED.VA.GOV"
|
---|
40 | ;D EMAIL^MHV7T(.ADM,.XMT,"","","")
|
---|
41 | ;
|
---|
42 | D LOG^MHVUL2("MFN-Z01 UPDATE","END","S","TRACE")
|
---|
43 | ;
|
---|
44 | Q
|
---|
45 | ;
|
---|
46 | SETADM(ADM) ; Set up ADM array of site information
|
---|
47 | ;
|
---|
48 | ; Integration Agreements:
|
---|
49 | ; 10141 : $$LAST^XPDUTL,$$VERSION^XPDUTL
|
---|
50 | ; 3552 : $$PARAM^HLCS2
|
---|
51 | ; 4440 : $$PROD^XUPROD
|
---|
52 | ;
|
---|
53 | ; Input: None
|
---|
54 | ;
|
---|
55 | ; Output:
|
---|
56 | ; ADM - Array of administrative data
|
---|
57 | ; SITE NUMBER - From Institution file
|
---|
58 | ; SITE NAME - Descriptive Site Name
|
---|
59 | ; DOMAIN - System Domain Name
|
---|
60 | ; SYSTEM TYPE - Production or Test
|
---|
61 | ; VERSION - MHV version
|
---|
62 | ; PATCH NUMBER - Last MHV patch loaded
|
---|
63 | ; RPC BROKER PORT - Broker port MHV Server should use
|
---|
64 | ; IP ADDRESS - System IP address
|
---|
65 | ; HL7 LISTENER PORT - For HL7 listener
|
---|
66 | ;
|
---|
67 | N PARAM,VERSION,PATCH
|
---|
68 | S PARAM=$$PARAM^HLCS2
|
---|
69 | S VERSION=$$VERSION^XPDUTL("My HealtheVet")
|
---|
70 | S PATCH=$P($$LAST^XPDUTL("My HealtheVet",.VERSION),"^")
|
---|
71 | I PATCH<1 S PATCH=""
|
---|
72 | ;
|
---|
73 | S ADM("SITE NUMBER")=$P(PARAM,"^",6)
|
---|
74 | S ADM("SITE NAME")=$P(PARAM,"^",5)
|
---|
75 | S ADM("DOMAIN")=$P(PARAM,"^",2)
|
---|
76 | S ADM("SYSTEM TYPE")=$S($$PROD^XUPROD(1):"P",1:"T")
|
---|
77 | S ADM("VERSION")=VERSION
|
---|
78 | S ADM("PATCH NUMBER")=PATCH
|
---|
79 | S ADM("RPC BROKER PORT")=""
|
---|
80 | S ADM("IP ADDRESS")=""
|
---|
81 | S ADM("HL7 LISTENER PORT")=5000
|
---|
82 | Q
|
---|
83 | ;
|
---|