Produced by Araxis Merge on 8/31/2017 11:16:53 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | JLV_2.6.zip\JLV_2.6\JLV_2.6\Joint Legacy Viewer\jMeadows\src\main\java\gov\va\med\jmeadows\dataservicehandler | VistaDataVLERServiceHandler.java | Thu Aug 31 12:13:08 2017 UTC |
2 | JLV_2.6.zip\JLV_2.6\JLV_2.6\Joint Legacy Viewer\jMeadows\src\main\java\gov\va\med\jmeadows\dataservicehandler | VistaDataVLERServiceHandler.java | Thu Aug 31 13:29:04 2017 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 412 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | /** | |
2 | * Janus 4 .0 (c) | |
3 | * Copyrig ht (c) 201 1 Hawaii R esource Gr oup LLC. A ll Rights Reserved. | |
4 | * Develop ed for the Pacific T elehealth & Technolo gy Hui and the Pacif ic Joint I nformation Technolog y Center | |
5 | * Contrib utors: | |
6 | * Hon orable Sen ator Danie l K. Inouy e | |
7 | * VA Pacific Is lands Heal th Care Sy stem | |
8 | * Tri pler Army Medical Ce nter | |
9 | */ | |
10 | ||
11 | ||
12 | package go v.va.med.j meadows.da taserviceh andler; | |
13 | ||
14 | import gov .va.med.jm eadows.com mon.JMeado wsExceptio n; | |
15 | import gov .va.med.jm eadows.dao .hdd.VLERS iteCache; | |
16 | import gov .va.med.vd s.webservi ce.*; | |
17 | import org .slf4j.Log ger; | |
18 | import org .slf4j.Log gerFactory ; | |
19 | ||
20 | import jav a.util.Lis t; | |
21 | ||
22 | import jav ax.xml.nam espace.QNa me; | |
23 | import jav ax.xml.ws. BindingPro vider; | |
24 | import jav ax.xml.ws. handler.Ha ndler; | |
25 | ||
26 | ||
27 | /** | |
28 | * | |
29 | * @author vhahongot om | |
30 | */ | |
31 | public cla ss VistaDa taVLERServ iceHandler extends D ataService Handler { | |
32 | privat e VistaDat aService m _VistaData VLERServic e; | |
33 | privat e static f inal Logge r LOGGER = LoggerFac tory.getLo gger(Vista DataVLERSe rviceHandl er.class); | |
34 | ||
35 | public VistaData VLERServic eHandler(S tring url) { | |
36 | su per(); | |
37 | ||
38 | se rviceURL = url; | |
39 | se rviceName = "VistaDa taVLERServ ice"; | |
40 | serviceNam espace = " http://web service.vd s. URL /"; | |
41 | qS erviceName = new QNa me(service Namespace, serviceNa me); | |
42 | ||
43 | se rviceConne ctionTimeo utMS = APP _CONFIG.ge tVLERConne ctionTimeo utMS(); | |
44 | se rviceReque stTimeoutM S = APP_CO NFIG.getVL ERRequestT imeoutMS() ; | |
45 | ||
46 | } | |
47 | ||
48 | privat e synchron ized void createServ ice() { | |
49 | if (m_VistaD ataVLERSer vice == nu ll) { | |
50 | try { | |
51 | m_Vi staDataVLE RService = new Vista DataServic e(); | |
52 | } catch (Exception e) { | |
53 | logE rror(e); | |
54 | thro w new Runt imeExcepti on(e); | |
55 | } | |
56 | } | |
57 | } | |
58 | privat e VistaDat a getVista DataPort() { | |
59 | ||
60 | if (m_VistaD ataVLERSer vice == nu ll) { | |
61 | createSe rvice(); | |
62 | } | |
63 | ||
64 | Vi staData po rt = m_Vis taDataVLER Service.ge tVistaData Port(); | |
65 | ||
66 | // set port e ndpoint ad dress | |
67 | Bi ndingProvi der prov = (BindingP rovider) p ort; | |
68 | pr ov.getRequ estContext ().put(Bin dingProvid er.ENDPOIN T_ADDRESS_ PROPERTY, serviceURL ); | |
69 | pr ov.getRequ estContext ().put("co m.sun.xml. internal.w s.connect. timeout", serviceCon nectionTim eoutMS); | |
70 | pr ov.getRequ estContext ().put("co m.sun.xml. internal.w s.request. timeout", serviceReq uestTimeou tMS); | |
71 | pr ov.getRequ estContext ().put("co m.sun.xml. ws.connect .timeout", serviceCo nnectionTi meoutMS); | |
72 | pr ov.getRequ estContext ().put("co m.sun.xml. ws.request .timeout", serviceRe questTimeo utMS); | |
73 | ||
74 | // SOAP mess age loggin g - Enable to show l ogging in output win dow | |
75 | if ("test".e qualsIgnor eCase(APP_ CONFIG.get AppEnviron ment()) || "developm ent".equal sIgnoreCas e(APP_CONF IG.getAppE nvironment ())) { | |
76 | prov.get Binding(). getHandler Chain().ad d(new SOAP LoggingHan dler()); | |
77 | List<Han dler> hand lerList = prov.getBi nding().ge tHandlerCh ain(); | |
78 | handlerL ist.add(ne w SOAPLogg ingHandler ()); | |
79 | prov.get Binding(). setHandler Chain(hand lerList); | |
80 | } | |
81 | ||
82 | re turn port; | |
83 | } | |
84 | ||
85 | public List<Vle rDocument> getVLERDo cumentList (QueryBean queryBean ) throws J MeadowsExc eption { | |
86 | ||
87 | tr y { | |
88 | VistaDat a port = g etVistaDat aPort(); | |
89 | List<Vle rDocument> vdList = port.getPa tientDocum entList(qu eryBean); | |
90 | for (Vle rDocument vd : vdLis t) { | |
91 | if ( vd.getHome CommunityI d() != nul l) { | |
92 | Author aut hor = new Author(); | |
93 | author.set Institutio n(VLERSite Cache.getV LERSiteNam e(vd.getHo meCommunit yId())); | |
94 | author.set Name(vd.ge tHomeCommu nityId()); | |
95 | vd.getAuth orList().a dd(0, auth or); | |
96 | } | |
97 | } | |
98 | return v dList; | |
99 | } catch (Exc eption e) { | |
100 | logError (e); | |
101 | throw ne w JMeadows Exception( e); | |
102 | } | |
103 | } | |
104 | ||
105 | // publ ic String getVLERSit eName(Stri ng hcid) { | |
106 | // String out put = ""; | |
107 | // String hci = ""; | |
108 | // if(hcid.st artsWith(" urn")) { | |
109 | // hci = hcid.subst ring(8, hc id.length( )); | |
110 | // } else { | |
111 | // hci = hcid; | |
112 | // } | |
113 | // if (VLERSi teCache.ge tCode("", hci, "") ! = null) { | |
114 | // output = VLERSit eCache.get Code("", h ci, "").ge tDisplay() ; | |
115 | // } | |
116 | // return out put; | |
117 | // } | |
118 | ||
119 | public VlerDocum ent getVLE RDocument( VlerDocume nt vDoc, Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
120 | Vl erDocument returnVal = null; | |
121 | tr y { | |
122 | VistaDat a port = g etVistaDat aPort(); | |
123 | returnVa l = port. getPatient Document(v Doc, query Bean); | |
124 | } catch (Exc eption e) { | |
125 | logError (e); | |
126 | throw ne w JMeadows Exception( e); | |
127 | } | |
128 | re turn retur nVal; | |
129 | } | |
130 | ||
131 | public DasResult Collection getDASVLE RAllergies (QueryBean queryBean ) throws J MeadowsExc eption { | |
132 | Da sResultCol lection re turnVal = null; | |
133 | tr y { | |
134 | VistaDat a port = g etVistaDat aPort(); | |
135 | returnVa l = port.g etVLERPati entAllergi es(queryBe an); | |
136 | } catch (Exc eption e){ | |
137 | logError (e); | |
138 | throw ne w JMeadows Exception( e); | |
139 | } | |
140 | re turn retur nVal; | |
141 | } | |
142 | ||
143 | public DasResult Collection getDASVLE RProblems( QueryBean queryBean) throws JM eadowsExce ption { | |
144 | Da sResultCol lection re turnVal = null; | |
145 | tr y { | |
146 | VistaDat a port = g etVistaDat aPort(); | |
147 | returnVa l = port.g etVLERPati entProblem s(queryBea n); | |
148 | } catch (Exc eption e){ | |
149 | logError (e); | |
150 | throw ne w JMeadows Exception( e); | |
151 | } | |
152 | re turn retur nVal; | |
153 | } | |
154 | ||
155 | public DasResult Collection getDASVLE RVitals(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion { | |
156 | Da sResultCol lection re turnVal = null; | |
157 | tr y { | |
158 | VistaDat a port = g etVistaDat aPort(); | |
159 | returnVa l = port.g etVLERPati entVitals( queryBean) ; | |
160 | } catch (Exc eption e){ | |
161 | logError (e); | |
162 | throw ne w JMeadows Exception( e); | |
163 | } | |
164 | re turn retur nVal; | |
165 | } | |
166 | ||
167 | public DasResult Collection getDASVLE RProcedure s(QueryBea n queryBea n) throws JMeadowsEx ception { | |
168 | Da sResultCol lection re turnVal = null; | |
169 | tr y { | |
170 | VistaDat a port = g etVistaDat aPort(); | |
171 | returnVa l = port.g etVLERPati entProcedu res(queryB ean); | |
172 | } catch (Exc eption e){ | |
173 | logError (e); | |
174 | throw ne w JMeadows Exception( e); | |
175 | } | |
176 | re turn retur nVal; | |
177 | } | |
178 | ||
179 | public DasResult Collection getDASVLE RImmunizat ions(Query Bean query Bean) thro ws JMeadow sException { | |
180 | Da sResultCol lection re turnVal = null; | |
181 | tr y { | |
182 | VistaDat a port = g etVistaDat aPort(); | |
183 | returnVa l = port.g etVLERPati entImmuniz ations(que ryBean); | |
184 | } catch (Exc eption e){ | |
185 | logError (e); | |
186 | throw ne w JMeadows Exception( e); | |
187 | } | |
188 | re turn retur nVal; | |
189 | } | |
190 | ||
191 | public DasResult Collection getDASVLE RDemograph ics(QueryB ean queryB ean) throw s JMeadows Exception { | |
192 | Da sResultCol lection re turnVal = null; | |
193 | tr y { | |
194 | VistaDat a port = g etVistaDat aPort(); | |
195 | returnVa l = port.g etVLERPati entDemogra phics(quer yBean); | |
196 | } catch (Exc eption e){ | |
197 | logError (e); | |
198 | throw ne w JMeadows Exception( e); | |
199 | } | |
200 | re turn retur nVal; | |
201 | } | |
202 | ||
203 | privat e void log Error(Exce ption e){ | |
204 | LO GGER.error ("VistaDat aService E RROR: " + e.getMessa ge(), e); | |
205 | } | |
206 | ||
207 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.