Produced by Araxis Merge on 5/1/2018 12:02:03 PM 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 | C:\AraxisMergeCompare\Pri_un\ZIP\JLV_2.6.2.0.3_src\jMeadows\src\main\java\gov\va\med\jmeadows\dataservicehandler | VistaDataServiceHandler.java | Thu Mar 29 22:08:33 2018 UTC |
2 | C:\AraxisMergeCompare\Pri_re\ZIP\JLV_2.6.2.0.3_src\jMeadows\src\main\java\gov\va\med\jmeadows\dataservicehandler | VistaDataServiceHandler.java | Tue May 1 13:46:48 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 2192 |
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 .beans.JMe dResultCol lection; | |
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 ax.xml.nam espace.QNa me; | |
21 | import jav ax.xml.ws. BindingPro vider; | |
22 | import jav ax.xml.ws. handler.Ha ndler; | |
23 | import jav a.util.Arr ayList; | |
24 | import jav a.util.Lis t; | |
25 | ||
26 | ||
27 | /** | |
28 | * | |
29 | * @author vhahonbru nos | |
30 | */ | |
31 | public cla ss VistaDa taServiceH andler ext ends DataS erviceHand ler { | |
32 | privat e VistaDat aService m _VistaData Service; | |
33 | privat e static f inal Logge r LOGGER = LoggerFac tory.getLo gger(Vista DataServic eHandler.c lass); | |
34 | ||
35 | public VistaData ServiceHan dler(Strin g url) { | |
36 | su per(); | |
37 | ||
38 | se rviceURL = url; | |
39 | se rviceName = "VistaDa taService" ; | |
40 | serviceNam espace = " http://web service.vd s. URL /"; | |
41 | qS erviceName = new QNa me(service Namespace, serviceNa me); | |
42 | ||
43 | } | |
44 | ||
45 | privat e VistaDat a getVista DataPort() { | |
46 | ||
47 | if (m_VistaD ataService == null) { | |
48 | createSe rvice(); | |
49 | } | |
50 | ||
51 | Vi staData po rt = m_Vis taDataServ ice.getVis taDataPort (); | |
52 | ||
53 | // set port e ndpoint ad dress | |
54 | Bi ndingProvi der prov = (BindingP rovider) p ort; | |
55 | pr ov.getRequ estContext ().put(Bin dingProvid er.ENDPOIN T_ADDRESS_ PROPERTY, serviceURL ); | |
56 | pr ov.getRequ estContext ().put("co m.sun.xml. internal.w s.connect. timeout", serviceCon nectionTim eoutMS); | |
57 | pr ov.getRequ estContext ().put("co m.sun.xml. internal.w s.request. timeout", serviceReq uestTimeou tMS); | |
58 | pr ov.getRequ estContext ().put("co m.sun.xml. ws.connect .timeout", serviceCo nnectionTi meoutMS); | |
59 | pr ov.getRequ estContext ().put("co m.sun.xml. ws.request .timeout", serviceRe questTimeo utMS); | |
60 | ||
61 | // SOAP mess age loggin g - Enable to show l ogging in output win dow | |
62 | if ("test".e qualsIgnor eCase(APP_ CONFIG.get AppEnviron ment()) || "developm ent".equal sIgnoreCas e(APP_CONF IG.getAppE nvironment ())) | |
63 | { | |
64 | prov.get Binding(). getHandler Chain().ad d(new SOAP LoggingHan dler()); | |
65 | List<Han dler> hand lerList = prov.getBi nding().ge tHandlerCh ain(); | |
66 | handlerL ist.add(ne w SOAPLogg ingHandler ()); | |
67 | prov.get Binding(). setHandler Chain(hand lerList); | |
68 | } | |
69 | ||
70 | re turn port; | |
71 | } | |
72 | ||
73 | privat e synchron ized void createServ ice() { | |
74 | if (m_VistaD ataService == null) { | |
75 | try { | |
76 | m_Vi staDataSer vice = new VistaData Service(); | |
77 | } catch (Exception e) { | |
78 | logE rror(e); | |
79 | thro w new Runt imeExcepti on(e); | |
80 | } | |
81 | } | |
82 | } | |
83 | ||
84 | public User logi n(Site sit e, String accessCode , String v erifyCode) throws JM eadowsExce ption | |
85 | { | |
86 | Us er user = null; | |
87 | ||
88 | tr y { | |
89 | VistaDat a port = g etVistaDat aPort(); | |
90 | user = p ort.login( site, acce ssCode, ve rifyCode); | |
91 | } catch (Exc eption e) { | |
92 | logError (e); | |
93 | throw ne w JMeadows Exception( e); | |
94 | } | |
95 | ||
96 | re turn user; | |
97 | } | |
98 | ||
99 | public User logi nSaml(Site site, Str ing samlTo ken) throw s JMeadows Exception | |
100 | { | |
101 | Us er user = null; | |
102 | ||
103 | tr y { | |
104 | VistaDat a port = g etVistaDat aPort(); | |
105 | user = p ort.loginS aml(site, samlToken) ; | |
106 | } catch (Exc eption e) { | |
107 | logError (e); | |
108 | throw ne w JMeadows Exception( e); | |
109 | } | |
110 | ||
111 | re turn user; | |
112 | } | |
113 | ||
114 | public Admission Detail get AdmissionD etails(Que ryBean que ryBean) th rows JMead owsExcepti on { | |
115 | Ad missionDet ail return Val = null ; | |
116 | ||
117 | tr y { | |
118 | VistaDat a port = g etVistaDat aPort(); | |
119 | returnVa l = port.g etAdmissio nDetails(q ueryBean); | |
120 | ||
121 | } catch (Exc eption e) { | |
122 | logError (e); | |
123 | throw ne w JMeadows Exception( e); | |
124 | } | |
125 | ||
126 | ||
127 | re turn retur nVal; | |
128 | } | |
129 | ||
130 | public Diagnosis [] getAdmi ssionDiagn osis(Query Bean query Bean) thro ws JMeadow sException { | |
131 | Di agnosis[] diagnosis = null; | |
132 | ||
133 | tr y { | |
134 | ||
135 | VistaDat a port = g etVistaDat aPort(); | |
136 | List<Dia gnosis> di ag = port. getAdmissi onDiagnosi s(queryBea n); | |
137 | diagnosi s = diag.t oArray(new Diagnosis [diag.size ()]); | |
138 | } catch (Exc eption e) { | |
139 | logError (e); | |
140 | throw ne w JMeadows Exception( e); | |
141 | } | |
142 | re turn diagn osis; | |
143 | ||
144 | } | |
145 | ||
146 | public Procedure [] getAdmi ssionProce dures(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
147 | Pr ocedure[] admissionP rocedures = null; | |
148 | ||
149 | tr y { | |
150 | VistaDat a port = g etVistaDat aPort(); | |
151 | List<Pro cedure> pr oc = port. getAdmissi onProcedur es(queryBe an); | |
152 | admissio nProcedure s = proc.t oArray(new Procedure [proc.size ()]); | |
153 | } catch (Exc eption e) { | |
154 | logError (e); | |
155 | throw ne w JMeadows Exception( e); | |
156 | } | |
157 | ||
158 | re turn admis sionProced ures; | |
159 | } | |
160 | ||
161 | public FreeTextR eport getC linicalRem inderDetai l(QueryBea n queryBea n) throws JMeadowsEx ception { | |
162 | Fr eeTextRepo rt returnV al = null; | |
163 | ||
164 | tr y { | |
165 | VistaDat a port = g etVistaDat aPort(); | |
166 | returnVa l = port.g etClinical ReminderDe tail(query Bean); | |
167 | } catch (Exc eption e) { | |
168 | logError (e); | |
169 | throw ne w JMeadows Exception( e); | |
170 | } | |
171 | ||
172 | ||
173 | re turn retur nVal; | |
174 | ||
175 | } | |
176 | ||
177 | public List<Free TextReport > getConsu ltReport(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
178 | tr y { | |
179 | VistaDat a port = g etVistaDat aPort(); | |
180 | return p ort.getCon sultReport (queryBean ); | |
181 | } catch (Exc eption e) { | |
182 | throw ne w JMeadows Exception( e); | |
183 | } | |
184 | } | |
185 | ||
186 | public FreeTextR eport getM edicationD etail(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
187 | Fr eeTextRepo rt returnV al = null; | |
188 | ||
189 | tr y { | |
190 | VistaDat a port = g etVistaDat aPort(); | |
191 | returnVa l = port.g etMedicati onDetail(q ueryBean); | |
192 | } catch (Exc eption e) { | |
193 | logError (e); | |
194 | throw ne w JMeadows Exception( e); | |
195 | } | |
196 | ||
197 | re turn retur nVal; | |
198 | } | |
199 | ||
200 | public LabResult [] getLabO rderResult (QueryBean queryBean ) throws J MeadowsExc eption { | |
201 | La bResult[] orderResul t = null; | |
202 | ||
203 | tr y { | |
204 | VistaDat a port = g etVistaDat aPort(); | |
205 | List<Lab Result> or es = port. getLabOrde rResult(qu eryBean); | |
206 | orderRes ult = ores .toArray(n ew LabResu lt[ores.si ze()]); | |
207 | } catch (Exc eption e) { | |
208 | logError (e); | |
209 | throw ne w JMeadows Exception( e); | |
210 | } | |
211 | ||
212 | re turn order Result; | |
213 | } | |
214 | ||
215 | public FreeTextR eport getP atientLabR eport(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
216 | Fr eeTextRepo rt report = null; | |
217 | ||
218 | tr y { | |
219 | VistaDat a port = g etVistaDat aPort(); | |
220 | report = port.getP atientLabR eport(quer yBean); | |
221 | } catch (Exc eption e) { | |
222 | logError (e); | |
223 | throw ne w JMeadows Exception( e); | |
224 | } | |
225 | ||
226 | re turn repor t; | |
227 | } | |
228 | ||
229 | public JMedResul tCollectio n getPatie ntLabResul ts(QueryBe an queryBe an) throws JMeadowsE xception { | |
230 | JM edResultCo llection r etVal = nu ll; | |
231 | ||
232 | tr y { | |
233 | VistaDat a port = g etVistaDat aPort(); | |
234 | retVal = new JMedR esultColle ction(port .getPatien tLabResult s(queryBea n)); | |
235 | } catch (Exc eption e) { | |
236 | logError (e); | |
237 | throw ne w JMeadows Exception( e); | |
238 | } | |
239 | ||
240 | re turn retVa l; | |
241 | } | |
242 | ||
243 | public FreeTextR eport getO rderDetail (QueryBean queryBean ) throws J MeadowsExc eption | |
244 | { | |
245 | Fr eeTextRepo rt returnV al = null; | |
246 | ||
247 | tr y { | |
248 | VistaDat a port = g etVistaDat aPort(); | |
249 | returnVa l = port.g etOrderDet ail(queryB ean); | |
250 | } catch (Exc eption e) { | |
251 | logError (e); | |
252 | throw ne w JMeadows Exception( e); | |
253 | } | |
254 | ||
255 | re turn retur nVal; | |
256 | } | |
257 | ||
258 | public JMedResul tCollectio n getPatie ntAdmissio ns(QueryBe an queryBe an) throws JMeadowsE xception { | |
259 | JM edResultCo llection r etVal = nu ll; | |
260 | ||
261 | tr y { | |
262 | VistaDat a port = g etVistaDat aPort(); | |
263 | retVal = new JMedR esultColle ction(port .getPatien tAdmission s(queryBea n)); | |
264 | } catch (Exc eption e) { | |
265 | logError (e); | |
266 | throw ne w JMeadows Exception( e); | |
267 | } | |
268 | ||
269 | re turn retVa l; | |
270 | } | |
271 | ||
272 | /** | |
273 | * Ret rieves lis t of patie nt allergi es. | |
274 | * @pa ram queryB ean Query parameters . | |
275 | * Requir ed params: User, Pat ient | |
276 | * @re turn A lis t of patie nt allergi es. | |
277 | * @th rows JMead owsExcepti on if ther e was an e rror.. | |
278 | */ | |
279 | public JMedResul tCollectio n getPatie ntAllergie s(QueryBea n queryBea n) throws JMeadowsEx ception { | |
280 | JM edResultCo llection r etVal = nu ll; | |
281 | ||
282 | tr y { | |
283 | VistaDat a port = g etVistaDat aPort(); | |
284 | retVal = new JMedR esultColle ction(port .getPatien tAllergies (queryBean )); | |
285 | } catch (Exc eption e) { | |
286 | logError (e); | |
287 | throw ne w JMeadows Exception( e); | |
288 | } | |
289 | ||
290 | re turn retVa l; | |
291 | } | |
292 | ||
293 | /** | |
294 | * Ret rieves det ails of an allergy. | |
295 | * @pa ram queryB ean Query parameters . | |
296 | * Requir ed params: User, Pat ient, item Id, record Site | |
297 | * @re turn Aller gyDetail c ontaining allergy re port text. | |
298 | * @th rows JMead owsExcepti on if ther e was an e rror.. | |
299 | */ | |
300 | public AllergyDe tail getAl lergyDetai l(QueryBea n queryBea n) throws JMeadowsEx ception { | |
301 | Al lergyDetai l allergyD etail = nu ll; | |
302 | ||
303 | tr y { | |
304 | VistaDat a port = g etVistaDat aPort(); | |
305 | allergyD etail = po rt.getAlle rgyDetail( queryBean) ; | |
306 | } catch (Exc eption e) { | |
307 | logError (e); | |
308 | throw ne w JMeadows Exception( e); | |
309 | } | |
310 | ||
311 | re turn aller gyDetail; | |
312 | } | |
313 | ||
314 | public JMedResul tCollectio n getPatie ntAppointm ents(Query Bean query Bean) thro ws JMeadow sException { | |
315 | JM edResultCo llection r esultColle ction = nu ll; | |
316 | ||
317 | tr y { | |
318 | VistaDat a port = g etVistaDat aPort(); | |
319 | resultCo llection = new JMedR esultColle ction(port .getPatien tAppointme nts(queryB ean)); | |
320 | // appoin tments = a pts.toArra y(new Pati entAppoint ments[apts .size()]); | |
321 | } catch (Exc eption e) { | |
322 | logError (e); | |
323 | throw ne w JMeadows Exception( e); | |
324 | } | |
325 | ||
326 | re turn resul tCollectio n; | |
327 | } | |
328 | ||
329 | public JMedResul tCollectio n getPatie ntEncounte rs(QueryBe an queryBe an) throws JMeadowsE xception { | |
330 | JM edResultCo llection r etVal = nu ll; | |
331 | ||
332 | tr y { | |
333 | VistaDat a port = g etVistaDat aPort(); | |
334 | retVal = new JMedR esultColle ction(port .getPatien tEncounter s(queryBea n)); | |
335 | // encoun ters = enc .toArray(n ew Encount er[enc.siz e()]); | |
336 | } catch (Exc eption e) { | |
337 | logError (e); | |
338 | throw ne w JMeadows Exception( e); | |
339 | } | |
340 | ||
341 | re turn retVa l; | |
342 | } | |
343 | ||
344 | public FreeTextR eport getE ncountersR eport(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
345 | Fr eeTextRepo rt returnV al = null; | |
346 | ||
347 | tr y { | |
348 | VistaDat a port = g etVistaDat aPort(); | |
349 | returnVa l = port.g etEncounte rsReport(q ueryBean); | |
350 | } catch (Exc eption e) { | |
351 | throw ne w JMeadows Exception( e); | |
352 | } | |
353 | ||
354 | re turn retur nVal; | |
355 | } | |
356 | ||
357 | public JMedResul tCollectio n getPatie ntClinical Reminders( QueryBean queryBean) throws JM eadowsExce ption { | |
358 | JM edResultCo llection r esultColle ction = nu ll; | |
359 | ||
360 | tr y { | |
361 | VistaDat a port = g etVistaDat aPort(); | |
362 | resultCo llection = new JMedR esultColle ction(port .getPatien tClinicalR eminders(q ueryBean)) ; | |
363 | } catch (Exc eption e) { | |
364 | throw ne w JMeadows Exception( e); | |
365 | } | |
366 | ||
367 | re turn resul tCollectio n; | |
368 | } | |
369 | ||
370 | // publ ic String getPatient CodeGreen( QueryBean queryBean) throws JM eadowsExce ption { | |
371 | // String ret urnVal = n ull; | |
372 | // | |
373 | // try { | |
374 | // VistaD ata port = getVistaD ataPort(); | |
375 | // return Val = port .getPatien tCodeGreen (queryBean ); | |
376 | // } catch (E xception e ) { | |
377 | // throw new JMeado wsExceptio n(e); | |
378 | // } | |
379 | // | |
380 | // return ret urnVal; | |
381 | // } | |
382 | ||
383 | public JMedResul tCollectio n getPatie ntConsultR equests(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion { | |
384 | JM edResultCo llection r etVal = nu ll; | |
385 | ||
386 | tr y { | |
387 | VistaDat a port = g etVistaDat aPort(); | |
388 | retVal = new JMedR esultColle ction(port .getPatien tConsultRe quests(que ryBean)); | |
389 | } catch (Exc eption e) { | |
390 | logError (e); | |
391 | throw ne w JMeadows Exception( e); | |
392 | } | |
393 | ||
394 | re turn retVa l; | |
395 | } | |
396 | ||
397 | public JMedResul tCollectio n getPatie ntCurrentV itals(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
398 | JM edResultCo llection r etVal = nu ll; | |
399 | ||
400 | tr y { | |
401 | VistaDat a port = g etVistaDat aPort(); | |
402 | retVal = new JMedR esultColle ction(port .getPatien tCurrentVi tals(query Bean)); | |
403 | } catch (Exc eption e) { | |
404 | logError (e); | |
405 | throw ne w JMeadows Exception( e); | |
406 | } | |
407 | ||
408 | re turn retVa l; | |
409 | ||
410 | } | |
411 | ||
412 | public JMedResul tCollectio n getPatie ntDemograp hics(Query Bean query Bean) thro ws JMeadow sException { | |
413 | JM edResultCo llection r eturnVal = null; | |
414 | tr y { | |
415 | VistaDat a port = g etVistaDat aPort(); | |
416 | // List<P atientDemo graphics> demo = por t.getPatie ntDemograp hics(query Bean).getD emographic s(); | |
417 | returnVa l = new JM edResultCo llection(p ort.getPat ientDemogr aphics(que ryBean)); | |
418 | } catch (Exc eption e) { | |
419 | throw ne w JMeadows Exception( e); | |
420 | } | |
421 | ||
422 | re turn retur nVal; | |
423 | } | |
424 | ||
425 | public JMedResul tCollectio n getPatie ntDischarg eSummaries (QueryBean queryBean ) throws J MeadowsExc eption { | |
426 | JM edResultCo llection r etVal = nu ll; | |
427 | ||
428 | tr y { | |
429 | VistaDat a port = g etVistaDat aPort(); | |
430 | retVal = new JMedR esultColle ction(port .getPatien tDischarge Summaries( queryBean) ); | |
431 | // notes = sum.toAr ray(new Pr ogressNote [sum.size( )]); | |
432 | } catch (Exc eption e) { | |
433 | throw ne w JMeadows Exception( e); | |
434 | } | |
435 | ||
436 | re turn retVa l; | |
437 | } | |
438 | ||
439 | public boolean i sSensitive Patient(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion { | |
440 | tr y { | |
441 | VistaDat a port = g etVistaDat aPort(); | |
442 | List<Ale rt> alerts = port.ge tSensitive PatientAle rts(queryB ean); | |
443 | int oldA lertLevel = -2; | |
444 | int newA lertLevel; | |
445 | ||
446 | for (Ale rt alert: alerts) { | |
447 | newA lertLevel = Integer. parseInt(a lert.getAl ertId()); | |
448 | if ( newAlertLe vel > oldA lertLevel) { | |
449 | oldAlertLe vel = newA lertLevel; | |
450 | } | |
451 | } | |
452 | ||
453 | if (oldA lertLevel == -2) { | |
454 | thro w new JMea dowsExcept ion("Unabl e to deter mine if pa tient has sensitive records.") ; | |
455 | } | |
456 | ||
457 | if (oldA lertLevel > 0) { | |
458 | retu rn true; | |
459 | } else { | |
460 | retu rn false; | |
461 | } | |
462 | ||
463 | } catch (Exc eption e) { | |
464 | logError (e); | |
465 | throw ne w JMeadows Exception( e); | |
466 | } | |
467 | } | |
468 | ||
469 | public List<Aler t> getSens itivePatie ntAlerts(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
470 | tr y { | |
471 | VistaDat a port = g etVistaDat aPort(); | |
472 | return p ort.getSen sitivePati entAlerts( queryBean) ; | |
473 | } catch (Exc eption e) { | |
474 | logError (e); | |
475 | throw ne w JMeadows Exception( e); | |
476 | } | |
477 | } | |
478 | ||
479 | public PatientDe mographics Detail[] g etPatientD emographic sDetail(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion { | |
480 | Pa tientDemog raphicsDet ail[] retu rnVal = nu ll; | |
481 | ||
482 | tr y { | |
483 | VistaDat a port = g etVistaDat aPort(); | |
484 | List<Pat ientDemogr aphicsDeta il> demo = port.getP atientDemo graphicsDe tail(query Bean); | |
485 | returnVa l = demo.t oArray(new PatientDe mographics Detail[dem o.size()]) ; | |
486 | } catch (Exc eption e) { | |
487 | logError (e); | |
488 | throw ne w JMeadows Exception( e); | |
489 | } | |
490 | ||
491 | re turn retur nVal; | |
492 | } | |
493 | ||
494 | public JMedResul tCollectio n getPatie ntImmuniza tions(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
495 | JM edResultCo llection r etVal = nu ll; | |
496 | tr y { | |
497 | VistaDat a port = g etVistaDat aPort(); | |
498 | retVal = new JMedR esultColle ction(port .getPatien tImmunizat ions(query Bean)); | |
499 | } catch (Exc eption e) { | |
500 | logError (e); | |
501 | throw ne w JMeadows Exception( e); | |
502 | } | |
503 | ||
504 | re turn retVa l; | |
505 | } | |
506 | ||
507 | public JMedResul tCollectio n getPatie ntLabs(Que ryBean que ryBean) th rows JMead owsExcepti on { | |
508 | JM edResultCo llection r etVal = nu ll; | |
509 | tr y { | |
510 | VistaDat a port = g etVistaDat aPort(); | |
511 | retVal = new JMedR esultColle ction(port .getPatien tLabs(quer yBean)); | |
512 | // orders = ord.toA rray(new L abOrder[or d.size()]) ; | |
513 | } catch (Exc eption e) { | |
514 | logError (e); | |
515 | throw ne w JMeadows Exception( e); | |
516 | } | |
517 | ||
518 | re turn retVa l; | |
519 | } | |
520 | ||
521 | public LabResult [] getPati entLabTest Results(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion { | |
522 | La bResult[] results = null; | |
523 | tr y { | |
524 | VistaDat a port = g etVistaDat aPort(); | |
525 | List<Lab Result> re s = port.g etPatientL abTestResu lts(queryB ean); | |
526 | results = res.toAr ray(new La bResult[re s.size()]) ; | |
527 | } catch (Exc eption e) { | |
528 | logError (e); | |
529 | throw ne w JMeadows Exception( e); | |
530 | } | |
531 | ||
532 | re turn resul ts; | |
533 | } | |
534 | ||
535 | public JMedResul tCollectio n getPatie ntMedicati ons(QueryB ean queryB ean) throw s JMeadows Exception { | |
536 | JM edResultCo llection r etVal = nu ll; | |
537 | tr y { | |
538 | VistaDat a port = g etVistaDat aPort(); | |
539 | retVal = new JMedR esultColle ction(port .getPatien tMedicatio ns(queryBe an)); | |
540 | } catch (Exc eption e) { | |
541 | logError (e); | |
542 | throw ne w JMeadows Exception( e); | |
543 | } | |
544 | ||
545 | re turn retVa l; | |
546 | } | |
547 | ||
548 | // publ ic Medicat ion[] getP atientMedi cationsNVA (QueryBean queryBean ) throws J MeadowsExc eption { | |
549 | // Medication [] medicat ion = null ; | |
550 | // try { | |
551 | // VistaD ata port = getVistaD ataPort(); | |
552 | // medica tion = por t.getPatie ntMedicati onsNVA(que ryBean).to Array(new Medication [0]); | |
553 | // | |
554 | // } catch (E xception e ) { | |
555 | // throw new JMeado wsExceptio n(e); | |
556 | // } | |
557 | // | |
558 | // return med ication; | |
559 | // | |
560 | // } | |
561 | ||
562 | public JMedResul tCollectio n getPatie ntOrders(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
563 | JM edResultCo llection r etVal = nu ll; | |
564 | ||
565 | tr y { | |
566 | VistaDat a port = g etVistaDat aPort(); | |
567 | retVal = new JMedR esultColle ction(port .getPatien tOrders(qu eryBean)); | |
568 | } catch (Exc eption e) { | |
569 | logError (e); | |
570 | throw ne w JMeadows Exception( e); | |
571 | } | |
572 | ||
573 | re turn retVa l; | |
574 | } | |
575 | ||
576 | public JMedResul tCollectio n getPatie ntProblemL ist(QueryB ean queryB ean) throw s JMeadows Exception { | |
577 | JM edResultCo llection r etVal = nu ll; | |
578 | ||
579 | tr y { | |
580 | VistaDat a port = g etVistaDat aPort(); | |
581 | retVal = new JMedR esultColle ction(port .getPatien tProblemLi st(queryBe an)); | |
582 | } catch (Exc eption e) { | |
583 | logError (e); | |
584 | throw ne w JMeadows Exception( e); | |
585 | } | |
586 | ||
587 | re turn retVa l; | |
588 | } | |
589 | ||
590 | public JMedResul tCollectio n getPatie ntProcedur es(QueryBe an queryBe an) throws JMeadowsE xception { | |
591 | JM edResultCo llection r etVal = nu ll; | |
592 | ||
593 | tr y { | |
594 | VistaDat a port = g etVistaDat aPort(); | |
595 | retVal = new JMedR esultColle ction(port .getPatien tProcedure s(queryBea n)); | |
596 | } catch (Exc eption e) { | |
597 | throw ne w JMeadows Exception( e); | |
598 | } | |
599 | ||
600 | re turn retVa l; | |
601 | } | |
602 | ||
603 | public JMedResul tCollectio n getPatie ntProgress Notes(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
604 | JM edResultCo llection r etVal = nu ll; | |
605 | ||
606 | tr y { | |
607 | VistaDat a port = g etVistaDat aPort(); | |
608 | retVal = new JMedR esultColle ction(port .getPatien tProgressN otes(query Bean)); | |
609 | // notes = note.toA rray(new P rogressNot e[note.siz e()]); | |
610 | } catch (Exc eption e) { | |
611 | logError (e); | |
612 | throw ne w JMeadows Exception( e); | |
613 | } | |
614 | ||
615 | re turn retVa l; | |
616 | } | |
617 | ||
618 | public JMedResul tCollectio n getPatie ntRads(Que ryBean que ryBean) th rows JMead owsExcepti on { | |
619 | JM edResultCo llection r etVal = nu ll; | |
620 | ||
621 | tr y { | |
622 | VistaDat a port = g etVistaDat aPort(); | |
623 | retVal = new JMedR esultColle ction(port .getPatien tRads(quer yBean)); | |
624 | } catch (Exc eption e) { | |
625 | throw ne w JMeadows Exception( e); | |
626 | } | |
627 | ||
628 | re turn retVa l; | |
629 | } | |
630 | ||
631 | public JMedResul tCollectio n getPatie ntVitals(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
632 | JM edResultCo llection r etVal = nu ll; | |
633 | ||
634 | tr y { | |
635 | VistaDat a port = g etVistaDat aPort(); | |
636 | retVal = new JMedR esultColle ction(port .getPatien tVitals(qu eryBean)); | |
637 | } catch (Exc eption e) { | |
638 | logError (e); | |
639 | throw ne w JMeadows Exception( e); | |
640 | } | |
641 | ||
642 | re turn retVa l; | |
643 | } | |
644 | ||
645 | // publ ic Prescri ption getP rescriptio nFills(Que ryBean que ryBean) th rows JMead owsExcepti on { | |
646 | // Prescripti on returnV al = null; | |
647 | // | |
648 | // try { | |
649 | // VistaD ata port = getVistaD ataPort(); | |
650 | // return Val = port .getPrescr iptionFill s(queryBea n); | |
651 | // } catch (E xception e ) { | |
652 | // throw new JMeado wsExceptio n(e); | |
653 | // } | |
654 | // | |
655 | // return ret urnVal; | |
656 | // | |
657 | // } | |
658 | ||
659 | public ProblemDe tail getPr oblemDetai l(QueryBea n queryBea n) throws JMeadowsEx ception { | |
660 | Pr oblemDetai l returnVa l = null; | |
661 | ||
662 | tr y { | |
663 | VistaDat a port = g etVistaDat aPort(); | |
664 | returnVa l = port.g etProblemD etail(quer yBean); | |
665 | } catch (Exc eption e) { | |
666 | logError (e); | |
667 | throw ne w JMeadows Exception( e); | |
668 | } | |
669 | ||
670 | re turn retur nVal; | |
671 | } | |
672 | ||
673 | public FreeTextR eport getP rogressNot e(QueryBea n queryBea n) throws JMeadowsEx ception { | |
674 | Fr eeTextRepo rt returnV al = null; | |
675 | ||
676 | tr y { | |
677 | VistaDat a port = g etVistaDat aPort(); | |
678 | returnVa l = port.g etProgress Note(query Bean); | |
679 | } catch (Exc eption e) { | |
680 | logError (e); | |
681 | throw ne w JMeadows Exception( e); | |
682 | } | |
683 | ||
684 | re turn retur nVal; | |
685 | } | |
686 | ||
687 | public User getP roviderPro file(Site site, Stri ng userIen , String p roviderNPI ) throws J MeadowsExc eption { | |
688 | Us er returnV al = null; | |
689 | tr y { | |
690 | VistaDat a port = g etVistaDat aPort(); | |
691 | returnVa l = port.g etProvider Profile(si te, userIe n, provide rNPI); | |
692 | } catch (Exc eption e) { | |
693 | logError (e); | |
694 | throw ne w JMeadows Exception( e); | |
695 | } | |
696 | ||
697 | re turn retur nVal; | |
698 | } | |
699 | ||
700 | public Radiology Report get RadiologyR eport(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
701 | Ra diologyRep ort return Val = null ; | |
702 | ||
703 | tr y { | |
704 | VistaDat a port = g etVistaDat aPort(); | |
705 | returnVa l = port.g etRadiolog yReport(qu eryBean); | |
706 | } catch (Exc eption e) { | |
707 | logError (e); | |
708 | throw ne w JMeadows Exception( e); | |
709 | } | |
710 | ||
711 | re turn retur nVal; | |
712 | ||
713 | } | |
714 | ||
715 | public List<Aler t> getUser Alerts(Que ryBean que ryBean) th rows JMead owsExcepti on { | |
716 | ||
717 | tr y { | |
718 | VistaDat a port = g etVistaDat aPort(); | |
719 | return p ort.getUse rAlerts(qu eryBean); | |
720 | } catch (Exc eption e) { | |
721 | logError (e); | |
722 | throw ne w JMeadows Exception( e); | |
723 | } | |
724 | } | |
725 | ||
726 | public Diagnosis [] getVisi tDiagnosis (QueryBean queryBean ) throws J MeadowsExc eption { | |
727 | Di agnosis[] returnVal = null; | |
728 | tr y { | |
729 | VistaDat a port = g etVistaDat aPort(); | |
730 | List<Dia gnosis> di ag = port. getVisitDi agnosis(qu eryBean); | |
731 | returnVa l = diag.t oArray(new Diagnosis [diag.size ()]); | |
732 | } catch (Exc eption e) { | |
733 | logError (e); | |
734 | throw ne w JMeadows Exception( e); | |
735 | } | |
736 | ||
737 | re turn retur nVal; | |
738 | } | |
739 | ||
740 | public FreeTextR eport getV isitNotes( QueryBean queryBean) throws JM eadowsExce ption { | |
741 | Fr eeTextRepo rt returnV al = null; | |
742 | ||
743 | tr y { | |
744 | VistaDat a port = g etVistaDat aPort(); | |
745 | returnVa l = port.g etVisitNot es(queryBe an); | |
746 | } catch (Exc eption e) { | |
747 | logError (e); | |
748 | throw ne w JMeadows Exception( e); | |
749 | } | |
750 | ||
751 | re turn retur nVal; | |
752 | } | |
753 | ||
754 | public Procedure [] getVisi tProcedure s(QueryBea n queryBea n) throws JMeadowsEx ception { | |
755 | Pr ocedure[] returnVal = null; | |
756 | ||
757 | tr y { | |
758 | VistaDat a port = g etVistaDat aPort(); | |
759 | List<Pro cedure> pr oc = port. getVisitPr ocedures(q ueryBean); | |
760 | returnVa l = proc.t oArray(new Procedure [proc.size ()]); | |
761 | } catch (Exc eption e) { | |
762 | logError (e); | |
763 | throw ne w JMeadows Exception( e); | |
764 | } | |
765 | ||
766 | ||
767 | re turn retur nVal; | |
768 | } | |
769 | ||
770 | ||
771 | public List<Pati ent> looku pPatient(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
772 | ||
773 | tr y { | |
774 | VistaDat a port = g etVistaDat aPort(); | |
775 | //return a max of 100 patien ts | |
776 | queryBea n.setMax(1 00); | |
777 | return p ort.lookup Patient(qu eryBean); | |
778 | } catch (Exc eption e) { | |
779 | logError (e); | |
780 | throw ne w JMeadows Exception( e); | |
781 | } | |
782 | } | |
783 | ||
784 | public boolean s electPatie nt(QueryBe an queryBe an) throws JMeadowsE xception { | |
785 | bo olean retu rnVal = fa lse; | |
786 | ||
787 | tr y { | |
788 | VistaDat a port = g etVistaDat aPort(); | |
789 | //return a max of 100 patien ts | |
790 | queryBea n.setMax(1 00); | |
791 | returnVa l = port.s electPatie nt(queryBe an); | |
792 | } catch (Exc eption e) { | |
793 | logError (e); | |
794 | throw ne w JMeadows Exception( e); | |
795 | } | |
796 | ||
797 | re turn retur nVal; | |
798 | ||
799 | } | |
800 | ||
801 | public ReferralB ean[] getD RReferrals (QueryBean queryBean ) throws J MeadowsExc eption { | |
802 | Re ferralBean [] returnV al = null; | |
803 | ||
804 | tr y { | |
805 | VistaDat a port = g etVistaDat aPort(); | |
806 | List<Ref erralBean> ref = por t.getDRRef errals(que ryBean); | |
807 | returnVa l = ref.to Array(new ReferralBe an[ref.siz e()]); | |
808 | } catch (Exc eption e) { | |
809 | logError (e); | |
810 | throw ne w JMeadows Exception( e); | |
811 | } | |
812 | ||
813 | re turn retur nVal; | |
814 | } | |
815 | ||
816 | public PatientAd mission[] getProvide rAdmission s(QueryBea n queryBea n) throws JMeadowsEx ception { | |
817 | tr y { | |
818 | List<Pat ientAdmiss ion> admis sions = nu ll; | |
819 | VistaDat a port = g etVistaDat aPort(); | |
820 | admissio ns = port. getProvide rAdmission s(queryBea n); | |
821 | return a dmissions. toArray(ne w PatientA dmission[a dmissions. size()]); | |
822 | } catch (Exc eption e) { | |
823 | logError (e); | |
824 | throw ne w JMeadows Exception( e); | |
825 | } | |
826 | } | |
827 | ||
828 | public PatientAd mission[] getWardAdm issions(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion { | |
829 | tr y { | |
830 | List<Pat ientAdmiss ion> admis sions = nu ll; | |
831 | VistaDat a port = g etVistaDat aPort(); | |
832 | admissio ns = port. getWardAdm issions(qu eryBean); | |
833 | return a dmissions. toArray(ne w PatientA dmission[a dmissions. size()]); | |
834 | } catch (Exc eption e) { | |
835 | throw ne w JMeadows Exception( e); | |
836 | } | |
837 | } | |
838 | ||
839 | public PatientAp pointments [] getProv iderAppoin tments(Que ryBean que ryBean) th rows JMead owsExcepti on { | |
840 | tr y { | |
841 | List<Pat ientAppoin tments> ap pointments = null; | |
842 | VistaDat a port = g etVistaDat aPort(); | |
843 | appointm ents = por t.getProvi derAppoint ments(quer yBean); | |
844 | return a ppointment s.toArray( new Patien tAppointme nts[appoin tments.siz e()]); | |
845 | } catch (Exc eption e) { | |
846 | logError (e); | |
847 | throw ne w JMeadows Exception( e); | |
848 | } | |
849 | } | |
850 | ||
851 | public ProgressN ote[] getP roviderUns ignedNotes (QueryBean queryBean ) throws J MeadowsExc eption { | |
852 | tr y { | |
853 | List<Pro gressNote> unsignedN otes = nul l; | |
854 | VistaDat a port = g etVistaDat aPort(); | |
855 | unsigned Notes = po rt.getProv iderUnsign edNotes(qu eryBean); | |
856 | return u nsignedNot es.toArray (new Progr essNote[un signedNote s.size()]) ; | |
857 | } catch (Exc eption e) { | |
858 | throw ne w JMeadows Exception( e); | |
859 | } | |
860 | } | |
861 | ||
862 | public Consult[] getProvid erConsults Requested( QueryBean queryBean) throws JM eadowsExce ption { | |
863 | tr y { | |
864 | List<Con sult> cons ultsReques ted = null ; | |
865 | VistaDat a port = g etVistaDat aPort(); | |
866 | consults Requested = port.get ProviderCo nsultsRequ ested(quer yBean); | |
867 | return c onsultsReq uested.toA rray(new C onsult[con sultsReque sted.size( )]); | |
868 | } catch (Exc eption e) { | |
869 | logError (e); | |
870 | throw ne w JMeadows Exception( e); | |
871 | } | |
872 | } | |
873 | ||
874 | public Consult[] getProvid erConsults Received(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
875 | tr y { | |
876 | List<Con sult> cons ultsReceiv ed = null; | |
877 | VistaDat a port = g etVistaDat aPort(); | |
878 | consults Received = port.getP roviderCon sultsRecei ved(queryB ean); | |
879 | return c onsultsRec eived.toAr ray(new Co nsult[cons ultsReceiv ed.size()] ); | |
880 | } catch (Exc eption e) { | |
881 | logError (e); | |
882 | throw ne w JMeadows Exception( e); | |
883 | } | |
884 | } | |
885 | ||
886 | public Order[] g etProvider OrdersPend ing(QueryB ean queryB ean) throw s JMeadows Exception { | |
887 | tr y { | |
888 | List<Ord er> orders = null; | |
889 | VistaDat a port = g etVistaDat aPort(); | |
890 | orders = port.getP roviderOrd ersPending (queryBean ); | |
891 | return o rders.toAr ray(new Or der[orders .size()]); | |
892 | } catch (Exc eption e) { | |
893 | logError (e); | |
894 | throw ne w JMeadows Exception( e); | |
895 | } | |
896 | } | |
897 | ||
898 | public Order[] g etProvider OrdersResu lted(Query Bean query Bean) thro ws JMeadow sException { | |
899 | tr y { | |
900 | List<Ord er> orders = null; | |
901 | VistaDat a port = g etVistaDat aPort(); | |
902 | orders = port.getP roviderOrd ersResulte d(queryBea n); | |
903 | return o rders.toAr ray(new Or der[orders .size()]); | |
904 | } catch (Exc eption e) { | |
905 | logError (e); | |
906 | throw ne w JMeadows Exception( e); | |
907 | } | |
908 | } | |
909 | ||
910 | public LabResult [] getProv iderLabAbn ormalResul ts(QueryBe an queryBe an) throws JMeadowsE xception { | |
911 | tr y { | |
912 | List<Lab Result> la bResults = null; | |
913 | VistaDat a port = g etVistaDat aPort(); | |
914 | labResul ts = port. getProvide rLabAbnorm alResults( queryBean) ; | |
915 | return l abResults. toArray(ne w LabResul t[labResul ts.size()] ); | |
916 | } catch (Exc eption e) { | |
917 | logError (e); | |
918 | throw ne w JMeadows Exception( e); | |
919 | } | |
920 | } | |
921 | ||
922 | public JMedResul tCollectio n getPatie ntInsuranc es(QueryBe an queryBe an) throws JMeadowsE xception { | |
923 | JM edResultCo llection r etVal = nu ll; | |
924 | ||
925 | tr y { | |
926 | VistaDat a port = g etVistaDat aPort(); | |
927 | retVal = new JMedR esultColle ction(port .getPatien tInsurance (queryBean )); | |
928 | } catch (Exc eption e) { | |
929 | logError (e); | |
930 | throw ne w JMeadows Exception( e); | |
931 | } | |
932 | ||
933 | re turn retVa l; | |
934 | } | |
935 | ||
936 | public StudyQuer y[] getVix StudyQuery FromSite(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
937 | St udyQuery[] studyQuer ies = null ; | |
938 | ||
939 | tr y { | |
940 | VistaDat a port = g etVistaDat aPort(); | |
941 | StudyQue ry studyQu ery = port .getVixStu dyQueryFro mSite(quer yBean); | |
942 | ||
943 | List<Stu dyQuery> l ist = new ArrayList< StudyQuery >(); | |
944 | list.add (studyQuer y); | |
945 | ||
946 | studyQue ries = lis t.toArray( new StudyQ uery[list. size()]); | |
947 | } | |
948 | ca tch (Excep tion e) { | |
949 | logError (e); | |
950 | throw ne w JMeadows Exception( e); | |
951 | } | |
952 | ||
953 | re turn study Queries; | |
954 | } | |
955 | ||
956 | public StudyQuer y getVixSt udyQueryFr omSitesWit houtDetail s(QueryBea n queryBea n) throws JMeadowsEx ception { | |
957 | St udyQuery s tudyQuery = null; | |
958 | ||
959 | tr y { | |
960 | VistaDat a port = g etVistaDat aPort(); | |
961 | studyQue ry = port. getVixStud yQueryFrom SitesWitho utDetails( queryBean) ; | |
962 | } | |
963 | ca tch (Excep tion e) { | |
964 | logError (e); | |
965 | throw ne w JMeadows Exception( e); | |
966 | } | |
967 | ||
968 | re turn study Query; | |
969 | } | |
970 | ||
971 | public StudyQuer y getVixSt udyQueryWi thDetails( QueryBean queryBean) throws JM eadowsExce ption { | |
972 | St udyQuery s tudyQuery; | |
973 | ||
974 | tr y { | |
975 | VistaDat a port = g etVistaDat aPort(); | |
976 | studyQue ry = port. getVixStud yQueryWith Details(qu eryBean); | |
977 | } | |
978 | ca tch (Excep tion e) { | |
979 | logError (e); | |
980 | throw ne w JMeadows Exception( e); | |
981 | } | |
982 | ||
983 | re turn study Query; | |
984 | } | |
985 | ||
986 | public StudyQuer y getVixSt udyQueryWi thoutDetai ls(QueryBe an queryBe an) throws JMeadowsE xception | |
987 | { | |
988 | St udyQuery s tudyQuery; | |
989 | ||
990 | tr y { | |
991 | VistaDat a port = g etVistaDat aPort(); | |
992 | studyQue ry = port. getVixStud yQueryWith outDetails (queryBean ); | |
993 | } | |
994 | ca tch (Excep tion e) { | |
995 | logError (e); | |
996 | throw ne w JMeadows Exception( e); | |
997 | } | |
998 | ||
999 | re turn study Query; | |
1000 | } | |
1001 | ||
1002 | public StudyDeta il getVixS tudyDetail (QueryBean queryBean ) throws J MeadowsExc eption | |
1003 | { | |
1004 | St udyDetail studyDetai l; | |
1005 | ||
1006 | tr y { | |
1007 | VistaDat a port = g etVistaDat aPort(); | |
1008 | studyDet ail = port .getVixStu dyDetail(q ueryBean); | |
1009 | } | |
1010 | ca tch (Excep tion e) { | |
1011 | logError (e); | |
1012 | throw ne w JMeadows Exception( e); | |
1013 | } | |
1014 | ||
1015 | re turn study Detail; | |
1016 | } | |
1017 | ||
1018 | public String ge tVixStudyV iewerUrl(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
1019 | St ring viewe rUrl; | |
1020 | ||
1021 | tr y { | |
1022 | VistaDat a port = g etVistaDat aPort(); | |
1023 | viewerUr l = port.g etVixStudy ViewerUrl( queryBean) ; | |
1024 | } | |
1025 | ca tch (Excep tion e) { | |
1026 | logError (e); | |
1027 | throw ne w JMeadows Exception( e); | |
1028 | } | |
1029 | ||
1030 | re turn viewe rUrl; | |
1031 | } | |
1032 | ||
1033 | public JMedResul tCollectio n getPatie ntHealthSu mmaryTypes List(Query Bean query Bean) thro ws JMeadow sException { | |
1034 | JM edResultCo llection r etVal = nu ll; | |
1035 | ||
1036 | tr y { | |
1037 | VistaDat a port = g etVistaDat aPort(); | |
1038 | retVal = new JMedR esultColle ction(port .getPatien tHealthSum maryTypes( queryBean) ); | |
1039 | ||
1040 | } catch (Exc eption e) { | |
1041 | logError (e); | |
1042 | throw ne w JMeadows Exception( e); | |
1043 | } | |
1044 | ||
1045 | re turn retVa l; | |
1046 | } | |
1047 | ||
1048 | public FreeTextR eport getP atientHeal thSummary( QueryBean queryBean) throws JM eadowsExce ption { | |
1049 | Fr eeTextRepo rt returnV al = null; | |
1050 | ||
1051 | tr y { | |
1052 | VistaDat a port = g etVistaDat aPort(); | |
1053 | returnVa l = port.g etPatientH ealthSumma ry(queryBe an); | |
1054 | } catch (Exc eption e) { | |
1055 | logError (e); | |
1056 | throw ne w JMeadows Exception( e); | |
1057 | } | |
1058 | ||
1059 | ||
1060 | re turn retur nVal; | |
1061 | ||
1062 | } | |
1063 | ||
1064 | public FreeTextR eport[] ge tPatientHe althSummar ies(QueryB ean queryB ean) throw s JMeadows Exception { | |
1065 | Li st<FreeTex tReport> l istList = null; | |
1066 | ||
1067 | tr y { | |
1068 | VistaDat a port = g etVistaDat aPort(); | |
1069 | listList = port.ge tPatientHe althSummar ies(queryB ean); | |
1070 | ||
1071 | } catch (Exc eption e) { | |
1072 | logError (e); | |
1073 | throw ne w JMeadows Exception( e); | |
1074 | } | |
1075 | ||
1076 | re turn listL ist.toArra y(new Free TextReport [listList. size()]); | |
1077 | } | |
1078 | ||
1079 | public List<Pce> getPcesFo rNote(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
1080 | Li st<Pce> pc es = null; | |
1081 | ||
1082 | tr y { | |
1083 | VistaDat a port = g etVistaDat aPort(); | |
1084 | pces = p ort.getPce sForNote(q ueryBean); | |
1085 | } | |
1086 | ca tch (Excep tion e) { | |
1087 | logE rror(e); | |
1088 | thro w new JMea dowsExcept ion(e); | |
1089 | } | |
1090 | ||
1091 | re turn pces; | |
1092 | } | |
1093 | ||
1094 | privat e void log Error(Exce ption e){ | |
1095 | LO GGER.error ("VistaDat aService E RROR: " + e.getMessa ge(), e); | |
1096 | } | |
1097 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.