source: FOIAVistA/tag/r/HINQ-DVB--DVBA--DVBE--DVBC/DVB4049P.m@ 628

Last change on this file since 628 was 628, checked in by George Lilly, 14 years ago

initial load of FOIAVistA 6/30/08 version

File size: 3.3 KB
Line 
1DVB4049P ;ALB/ERC - CHANGE IP ADDR FOR HINQ TO VBA CORPORATE ; 9/1/05 1:46pm
2 ;;4.0;HINQ;**49**;03/25/92
3 ;
4 ;this routine will change the IP address for the HINQ inquiries
5 ;to the address for the AAC interface engine, which will communicate
6 ;with the new VBA corporate database in addition to the C&P and BIRLS
7 ;databases. There will be only one address for all sites. This is
8 ;being done for the HINQ replacement, interim solution.
9 ;this routine will also add three entries into the Anatomical - Loss
10 ;Code file (#395.2) in the POST subroutine
11 ;
12 D ADDR
13 D POST
14 Q
15 ;
16ADDR ;
17 N DVBADD,DVBFDA,DVBMSG,DVBNEW,DVBOLDAD,DVBSTA,X,X1,X2
18 K ^XTMP("DVBBACK")
19 S DVBSTA=$O(^DVB(395,0))
20 I '$D(DVBSTA)!($G(DVBSTA)']"") S DVBMSG="HINQ Parameter file (#395) not set properly." G MSG
21 I '$D(^DVB(395,DVBSTA,0)) S DVBMSG="HINQ Parameter file (#395) not set properly." G MSG
22 ;new AAC server address DVB*4*49
23 S X1=DT,X2=30 D C^%DTC
24 S ^XTMP("DVBBACK",0)=X_"^"_$$NOW^XLFDT_"^DVB*4*49 - HINQ REPLACEMENT PATCH"
25 S DVBOLDAD=$$GET1^DIQ(395,1,22)
26 I $G(DVBOLDAD)']"" S DVBOLDAD="Not populated."
27 S ^XTMP("DVBBACK","OLDIP")=DVBOLDAD
28 S DVBADD="10.224.132.143"
29 S DVBFDA(395,"1,",22)=DVBADD
30 D FILE^DIE("E","DVBFDA")
31 S DVBNEW=$G(^DVB(395,DVBSTA,"HQIP"))
32 I $G(DVBNEW)'=DVBADD S DVBMSG="Address change not successful - update manually." G MSG
33 S DVBMSG="IP address successfully updated to "_DVBADD_"." D MSG
34 S DVBMSG="Previous IP address was "_DVBOLDAD_"." D MSG
35 Q
36MSG ;add message to the KIDS build
37 D BMES^XPDUTL(.DVBMSG)
38 Q
39 ;
40 ;need to add three entries into file 395.2 (Anat-Loss Code file)
41 ;this is patterned after DVB448PT
42POST ;entry point for post-install, setting up checkpoints
43 N %
44 S %=$$NEWCP^XPDUTL("DVBLINE","EN^DVB4049P",1)
45 Q
46 ;
47EN ;begin processing
48 ;
49 N DVBLINE
50 ;
51 D BMES^XPDUTL(" >> *** Updating ANATOMICAL-LOSS CODE file (#395.2)")
52 D MES^XPDUTL(" ")
53 ;
54 ;get value from checkpoints, previous run
55 S DVBLINE=+$$PARCP^XPDUTL("DVBLINE")
56 ;
57DVBNEW ;add new codes or modify name if code is in use
58 ;
59 F DVBI=DVBLINE:1 S DVBJ=$P($T(NEWCODE+DVBI),";;",2) Q:DVBJ["$EXIT" D
60 .S DVBCODE=+DVBJ,DVBLINE=DVBI
61 .S DVBDESC=$E($P(DVBJ,"^",2),1,30)
62 .;
63 .;add new code
64 .I '$D(^DVB(395.2,"B",DVBCODE)) D G UPDATECH
65 ..K DD,DO
66 ..S DIC="^DVB(395.2,",DIC(0)="L",DIC("DR")="1////"_DVBDESC
67 ..S X=$P(DVBJ,U),DLAYGO=31
68 ..D FILE^DICN
69 ..D MES^XPDUTL("adding new code - "_X)
70 ..K DLAYGO,DIC,X
71 ..Q
72 .;
73 .;modify name
74 .S DVBIEN=+$O(^DVB(395.2,"B",DVBCODE,0))
75 .S DVBREC=$G(^DVB(395.2,DVBIEN,0)),DVBOLDSC=$P(DVBREC,U,2) I DVBREC']"" D G UPDATECH
76 ..D MES^XPDUTL(" >>>> error "_DVBCODE_" in B x-reference and not in file 395.2")
77 ..Q
78 .S DVBOLDC=$P(DVBREC,"^") I DVBOLDC=DVBCODE,(DVBOLDSC=DVBDESC) G UPDATECH
79 .I DVBOLDC'=DVBCODE D
80 ..S DA=DVBIEN,DIE="^DVB(395.2,",DR=".01////"_DVBCODE_";1////"_DVBDESC
81 ..D ^DIE
82 ..K DR,DA,DIE
83 .I DVBOLDSC'=DVBDESC D
84 ..S DA=DVBIEN,DIE="^DVB(395.2,",DR="1////"_DVBDESC
85 ..D ^DIE
86 ..K DA,DIE,DR
87 ..D MES^XPDUTL(DVBCODE_": changing description...")
88 ..D MES^XPDUTL(" from: "_DVBOLDSC)
89 ..D MES^XPDUTL(" to: "_DVBDESC)
90 .;
91UPDATECH .;update checkpoint
92 .S %=$$UPCP^XPDUTL("DVBLINE",DVBLINE)
93 .Q
94 K DVBCODE,DVBI,DVBIEN,DVBJ,DVBNAME,DVBOLDC,DVBOLDN,DVBREC,DVBDESC,DVBOLDSC
95 Q
96 ;
97NEWCODE ;codes to be added or changed
98 ;;16^Deafness, Total
99 ;;17^Aphonia
100 ;;29^Deafnessand Aphonia
101 ;;$EXIT
102 Q
Note: See TracBrowser for help on using the repository browser.