source: WorldVistAEHR/trunk/r/MY_HEALTHEVET-MHV/MHVU1.m@ 1450

Last change on this file since 1450 was 623, checked in by George Lilly, 15 years ago

revised back to 6/30/08 version

File size: 2.5 KB
RevLine 
[623]1MHVU1 ;WAS/GPM - MHV UTILITIES ; [8/22/05 6:20pm]
2 ;;1.0;My HealtheVet;;Aug 23, 2005
3 ;;Per VHA Directive 2004-038, this routine should not be modified.
4 ;
5 Q
6 ;
7NOTIFY(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^MHV7U("ADM",.ADM,"M",1)
31 S XMT("BUILDER")="MFNZ01^MHV7B0"
32 S XMT("PROTOCOL")="MHV MFN-Z01 Event Driver"
33 ; Use email transmitter for now
34 S XMT("SAF")=ADM("SITE NUMBER")
35 S XMT("EMAIL")="VHAMHVSITECOMMCONFIG@MED.VA.GOV"
36 D EMAIL^MHV7T(.ADM,.XMT,"","","")
37 Q
38 ;
39SETADM(ADM) ; Set up ADM array of site information
40 ;
41 ; Integration Agreements:
42 ; 10141 : $$LAST^XPDUTL,$$VERSION^XPDUTL
43 ; 3552 : $$PARAM^HLCS2
44 ; 4440 : $$PROD^XUPROD
45 ;
46 ; Input: None
47 ;
48 ; Output:
49 ; ADM - Array of administrative data
50 ; SITE NUMBER - From Institution file
51 ; SITE NAME - Descriptive Site Name
52 ; DOMAIN - System Domain Name
53 ; SYSTEM TYPE - Production or Test
54 ; VERSION - MHV version
55 ; PATCH NUMBER - Last MHV patch loaded
56 ; RPC BROKER PORT - Broker port MHV Server should use
57 ; IP ADDRESS - System IP address
58 ; HL7 LISTENER PORT - For HL7 listener
59 ;
60 N PARAM,VERSION,PATCH
61 S PARAM=$$PARAM^HLCS2
62 S VERSION=$$VERSION^XPDUTL("My HealtheVet")
63 S PATCH=$P($$LAST^XPDUTL("My HealtheVet",.VERSION),"^")
64 I PATCH<1 S PATCH=""
65 ;
66 S ADM("SITE NUMBER")=$P(PARAM,"^",6)
67 S ADM("SITE NAME")=$P(PARAM,"^",5)
68 S ADM("DOMAIN")=$P(PARAM,"^",2)
69 S ADM("SYSTEM TYPE")=$S($$PROD^XUPROD(1):"P",1:"T")
70 S ADM("VERSION")=VERSION
71 S ADM("PATCH NUMBER")=PATCH
72 S ADM("RPC BROKER PORT")=""
73 S ADM("IP ADDRESS")=""
74 S ADM("HL7 LISTENER PORT")=5000
75 Q
76 ;
Note: See TracBrowser for help on using the repository browser.