Produced by Araxis Merge on 5/28/2019 3:28:34 PM Eastern 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 | CV_src.zip\CVjMeadows-CCP\src\main\java\gov\va\med\jmeadows\dataservicehandler | VistaDataServiceHandler.java | Wed May 1 18:46:27 2019 UTC |
2 | CV_src.zip\CVjMeadows-CCP\src\main\java\gov\va\med\jmeadows\dataservicehandler | VistaDataServiceHandler.java | Sat May 25 18:46:03 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 2480 |
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:// DNS . 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 FreeTextR eport getC linicalRem inderDetai lUseHS(Que ryBean que ryBean) th rows JMead owsExcepti on { | |
178 | Fr eeTextRepo rt returnV al = null; | |
179 | ||
180 | tr y { | |
181 | VistaDat a port = g etVistaDat aPort(); | |
182 | returnVa l = port.g etClinical ReminderDe tailUseHS( queryBean) ; | |
183 | } catch (Exc eption e) { | |
184 | logError (e); | |
185 | throw ne w JMeadows Exception( e); | |
186 | } | |
187 | ||
188 | re turn retur nVal; | |
189 | } | |
190 | ||
191 | public List<Free TextReport > getConsu ltReport(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
192 | tr y { | |
193 | VistaDat a port = g etVistaDat aPort(); | |
194 | return p ort.getCon sultReport (queryBean ); | |
195 | } catch (Exc eption e) { | |
196 | throw ne w JMeadows Exception( e); | |
197 | } | |
198 | } | |
199 | ||
200 | public FreeTextR eport getM edicationD etail(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
201 | Fr eeTextRepo rt returnV al = null; | |
202 | ||
203 | tr y { | |
204 | VistaDat a port = g etVistaDat aPort(); | |
205 | returnVa l = port.g etMedicati onDetail(q ueryBean); | |
206 | } catch (Exc eption e) { | |
207 | logError (e); | |
208 | throw ne w JMeadows Exception( e); | |
209 | } | |
210 | ||
211 | re turn retur nVal; | |
212 | } | |
213 | ||
214 | public LabResult [] getLabO rderResult (QueryBean queryBean ) throws J MeadowsExc eption { | |
215 | La bResult[] orderResul t = null; | |
216 | ||
217 | tr y { | |
218 | VistaDat a port = g etVistaDat aPort(); | |
219 | List<Lab Result> or es = port. getLabOrde rResult(qu eryBean); | |
220 | orderRes ult = ores .toArray(n ew LabResu lt[ores.si ze()]); | |
221 | } catch (Exc eption e) { | |
222 | logError (e); | |
223 | throw ne w JMeadows Exception( e); | |
224 | } | |
225 | ||
226 | re turn order Result; | |
227 | } | |
228 | ||
229 | public FreeTextR eport getP atientLabR eport(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
230 | Fr eeTextRepo rt report = null; | |
231 | ||
232 | tr y { | |
233 | VistaDat a port = g etVistaDat aPort(); | |
234 | report = port.getP atientLabR eport(quer yBean); | |
235 | } catch (Exc eption e) { | |
236 | logError (e); | |
237 | throw ne w JMeadows Exception( e); | |
238 | } | |
239 | ||
240 | re turn repor t; | |
241 | } | |
242 | ||
243 | public JMedResul tCollectio n getPatie ntLabResul ts(QueryBe an queryBe an) throws JMeadowsE xception { | |
244 | JM edResultCo llection r etVal = nu ll; | |
245 | ||
246 | tr y { | |
247 | VistaDat a port = g etVistaDat aPort(); | |
248 | retVal = new JMedR esultColle ction(port .getPatien tLabResult s(queryBea n)); | |
249 | } catch (Exc eption e) { | |
250 | logError (e); | |
251 | throw ne w JMeadows Exception( e); | |
252 | } | |
253 | ||
254 | re turn retVa l; | |
255 | } | |
256 | ||
257 | public FreeTextR eport getO rderDetail (QueryBean queryBean ) throws J MeadowsExc eption | |
258 | { | |
259 | Fr eeTextRepo rt returnV al = null; | |
260 | ||
261 | tr y { | |
262 | VistaDat a port = g etVistaDat aPort(); | |
263 | returnVa l = port.g etOrderDet ail(queryB ean); | |
264 | } catch (Exc eption e) { | |
265 | logError (e); | |
266 | throw ne w JMeadows Exception( e); | |
267 | } | |
268 | ||
269 | re turn retur nVal; | |
270 | } | |
271 | ||
272 | public JMedResul tCollectio n getPatie ntAdmissio ns(QueryBe an queryBe an) throws JMeadowsE xception { | |
273 | JM edResultCo llection r etVal = nu ll; | |
274 | ||
275 | tr y { | |
276 | VistaDat a port = g etVistaDat aPort(); | |
277 | retVal = new JMedR esultColle ction(port .getPatien tAdmission s(queryBea n)); | |
278 | } catch (Exc eption e) { | |
279 | logError (e); | |
280 | throw ne w JMeadows Exception( e); | |
281 | } | |
282 | ||
283 | re turn retVa l; | |
284 | } | |
285 | ||
286 | /** | |
287 | * Ret rieves lis t of patie nt allergi es. | |
288 | * @pa ram queryB ean Query parameters . | |
289 | * Requir ed params: User, Pat ient | |
290 | * @re turn A lis t of patie nt allergi es. | |
291 | * @th rows JMead owsExcepti on if ther e was an e rror.. | |
292 | */ | |
293 | public JMedResul tCollectio n getPatie ntAllergie s(QueryBea n queryBea n) throws JMeadowsEx ception { | |
294 | JM edResultCo llection r etVal = nu ll; | |
295 | ||
296 | tr y { | |
297 | VistaDat a port = g etVistaDat aPort(); | |
298 | retVal = new JMedR esultColle ction(port .getPatien tAllergies (queryBean )); | |
299 | } catch (Exc eption e) { | |
300 | logError (e); | |
301 | throw ne w JMeadows Exception( e); | |
302 | } | |
303 | ||
304 | re turn retVa l; | |
305 | } | |
306 | ||
307 | /** | |
308 | * Ret rieves det ails of an allergy. | |
309 | * @pa ram queryB ean Query parameters . | |
310 | * Requir ed params: User, Pat ient, item Id, record Site | |
311 | * @re turn Aller gyDetail c ontaining allergy re port text. | |
312 | * @th rows JMead owsExcepti on if ther e was an e rror.. | |
313 | */ | |
314 | public AllergyDe tail getAl lergyDetai l(QueryBea n queryBea n) throws JMeadowsEx ception { | |
315 | Al lergyDetai l allergyD etail = nu ll; | |
316 | ||
317 | tr y { | |
318 | VistaDat a port = g etVistaDat aPort(); | |
319 | allergyD etail = po rt.getAlle rgyDetail( queryBean) ; | |
320 | } catch (Exc eption e) { | |
321 | logError (e); | |
322 | throw ne w JMeadows Exception( e); | |
323 | } | |
324 | ||
325 | re turn aller gyDetail; | |
326 | } | |
327 | ||
328 | public JMedResul tCollectio n getPatie ntAppointm ents(Query Bean query Bean) thro ws JMeadow sException { | |
329 | JM edResultCo llection r esultColle ction = nu ll; | |
330 | ||
331 | tr y { | |
332 | VistaDat a port = g etVistaDat aPort(); | |
333 | resultCo llection = new JMedR esultColle ction(port .getPatien tAppointme nts(queryB ean)); | |
334 | // appoin tments = a pts.toArra y(new Pati entAppoint ments[apts .size()]); | |
335 | } catch (Exc eption e) { | |
336 | logError (e); | |
337 | throw ne w JMeadows Exception( e); | |
338 | } | |
339 | ||
340 | re turn resul tCollectio n; | |
341 | } | |
342 | ||
343 | public JMedResul tCollectio n getPatie ntEncounte rs(QueryBe an queryBe an) throws JMeadowsE xception { | |
344 | JM edResultCo llection r etVal = nu ll; | |
345 | ||
346 | tr y { | |
347 | VistaDat a port = g etVistaDat aPort(); | |
348 | retVal = new JMedR esultColle ction(port .getPatien tEncounter s(queryBea n)); | |
349 | // encoun ters = enc .toArray(n ew Encount er[enc.siz e()]); | |
350 | } catch (Exc eption e) { | |
351 | logError (e); | |
352 | throw ne w JMeadows Exception( e); | |
353 | } | |
354 | ||
355 | re turn retVa l; | |
356 | } | |
357 | ||
358 | public FreeTextR eport getE ncountersR eport(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
359 | Fr eeTextRepo rt returnV al = null; | |
360 | ||
361 | tr y { | |
362 | VistaDat a port = g etVistaDat aPort(); | |
363 | returnVa l = port.g etEncounte rsReport(q ueryBean); | |
364 | } catch (Exc eption e) { | |
365 | throw ne w JMeadows Exception( e); | |
366 | } | |
367 | ||
368 | re turn retur nVal; | |
369 | } | |
370 | ||
371 | public JMedResul tCollectio n getPatie ntClinical Reminders( QueryBean queryBean) throws JM eadowsExce ption { | |
372 | JM edResultCo llection r esultColle ction = nu ll; | |
373 | ||
374 | tr y { | |
375 | VistaDat a port = g etVistaDat aPort(); | |
376 | resultCo llection = new JMedR esultColle ction(port .getPatien tClinicalR eminders(q ueryBean)) ; | |
377 | } catch (Exc eption e) { | |
378 | throw ne w JMeadows Exception( e); | |
379 | } | |
380 | ||
381 | re turn resul tCollectio n; | |
382 | } | |
383 | ||
384 | public JMedResul tCollectio n getPatie ntClinical RemindersU seHS(Query Bean query Bean) thro ws JMeadow sException { | |
385 | JM edResultCo llection r esultColle ction = nu ll; | |
386 | ||
387 | tr y { | |
388 | VistaDat a port = g etVistaDat aPort(); | |
389 | resultCo llection = new JMedR esultColle ction(port .getPatien tClinicalR emindersUs eHS(queryB ean)); | |
390 | } catch (Exc eption e) { | |
391 | throw ne w JMeadows Exception( e); | |
392 | } | |
393 | ||
394 | re turn resul tCollectio n; | |
395 | } | |
396 | ||
397 | // publ ic String getPatient CodeGreen( QueryBean queryBean) throws JM eadowsExce ption { | |
398 | // String ret urnVal = n ull; | |
399 | // | |
400 | // try { | |
401 | // VistaD ata port = getVistaD ataPort(); | |
402 | // return Val = port .getPatien tCodeGreen (queryBean ); | |
403 | // } catch (E xception e ) { | |
404 | // throw new JMeado wsExceptio n(e); | |
405 | // } | |
406 | // | |
407 | // return ret urnVal; | |
408 | // } | |
409 | ||
410 | public JMedResul tCollectio n getPatie ntConsultR equests(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion { | |
411 | JM edResultCo llection r etVal = nu ll; | |
412 | ||
413 | tr y { | |
414 | VistaDat a port = g etVistaDat aPort(); | |
415 | retVal = new JMedR esultColle ction(port .getPatien tConsultRe quests(que ryBean)); | |
416 | } catch (Exc eption e) { | |
417 | logError (e); | |
418 | throw ne w JMeadows Exception( e); | |
419 | } | |
420 | ||
421 | re turn retVa l; | |
422 | } | |
423 | ||
424 | public Consult[] getPatien tConsultRe quest(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
425 | Co nsult[] co nsults = n ull; | |
426 | Co nsult cons ult; | |
427 | ||
428 | tr y { | |
429 | VistaDat a port = g etVistaDat aPort(); | |
430 | consult = port.get PatientCon sultReques t(queryBea n); | |
431 | if (cons ult != nul l) { | |
432 | cons ults = new Consult[1 ]; | |
433 | cons ults[0] = consult; | |
434 | } | |
435 | } | |
436 | ca tch (Excep tion e) { | |
437 | throw ne w JMeadows Exception( e); | |
438 | } | |
439 | ||
440 | re turn consu lts; | |
441 | } | |
442 | ||
443 | public Consult[] getPatien tActiveCon sultReques ts(QueryBe an queryBe an) throws JMeadowsE xception { | |
444 | Co nsult[] co nsults = n ull; | |
445 | ||
446 | tr y { | |
447 | VistaDat a port = g etVistaDat aPort(); | |
448 | consults = port.ge tPatientAc tiveConsul tRequests( queryBean) .toArray(n ew Consult [0]); | |
449 | } catch (Exc eption e) { | |
450 | throw ne w JMeadows Exception( e); | |
451 | } | |
452 | ||
453 | re turn consu lts; | |
454 | } | |
455 | ||
456 | public JMedResul tCollectio n getPatie ntCurrentV itals(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
457 | JM edResultCo llection r etVal = nu ll; | |
458 | ||
459 | tr y { | |
460 | VistaDat a port = g etVistaDat aPort(); | |
461 | retVal = new JMedR esultColle ction(port .getPatien tCurrentVi tals(query Bean)); | |
462 | } catch (Exc eption e) { | |
463 | logError (e); | |
464 | throw ne w JMeadows Exception( e); | |
465 | } | |
466 | ||
467 | re turn retVa l; | |
468 | ||
469 | } | |
470 | ||
471 | public JMedResul tCollectio n getPatie ntDemograp hics(Query Bean query Bean) thro ws JMeadow sException { | |
472 | JM edResultCo llection r eturnVal = null; | |
473 | tr y { | |
474 | VistaDat a port = g etVistaDat aPort(); | |
475 | // List<P atientDemo graphics> demo = por t.getPatie ntDemograp hics(query Bean).getD emographic s(); | |
476 | returnVa l = new JM edResultCo llection(p ort.getPat ientDemogr aphics(que ryBean)); | |
477 | } catch (Exc eption e) { | |
478 | throw ne w JMeadows Exception( e); | |
479 | } | |
480 | ||
481 | re turn retur nVal; | |
482 | } | |
483 | ||
484 | public JMedResul tCollectio n getPatie ntDischarg eSummaries (QueryBean queryBean ) throws J MeadowsExc eption { | |
485 | JM edResultCo llection r etVal = nu ll; | |
486 | ||
487 | tr y { | |
488 | VistaDat a port = g etVistaDat aPort(); | |
489 | retVal = new JMedR esultColle ction(port .getPatien tDischarge Summaries( queryBean) ); | |
490 | // notes = sum.toAr ray(new Pr ogressNote [sum.size( )]); | |
491 | } catch (Exc eption e) { | |
492 | throw ne w JMeadows Exception( e); | |
493 | } | |
494 | ||
495 | re turn retVa l; | |
496 | } | |
497 | ||
498 | public boolean i sSensitive Patient(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion { | |
499 | tr y { | |
500 | VistaDat a port = g etVistaDat aPort(); | |
501 | List<Ale rt> alerts = port.ge tSensitive PatientAle rts(queryB ean); | |
502 | int oldA lertLevel = -2; | |
503 | int newA lertLevel; | |
504 | ||
505 | for (Ale rt alert: alerts) { | |
506 | newA lertLevel = Integer. parseInt(a lert.getAl ertId()); | |
507 | if ( newAlertLe vel > oldA lertLevel) { | |
508 | oldAlertLe vel = newA lertLevel; | |
509 | } | |
510 | } | |
511 | ||
512 | if (oldA lertLevel == -2) { | |
513 | thro w new JMea dowsExcept ion("Unabl e to deter mine if pa tient has sensitive records.") ; | |
514 | } | |
515 | ||
516 | if (oldA lertLevel > 0) { | |
517 | retu rn true; | |
518 | } else { | |
519 | retu rn false; | |
520 | } | |
521 | ||
522 | } catch (Exc eption e) { | |
523 | logError (e); | |
524 | throw ne w JMeadows Exception( e); | |
525 | } | |
526 | } | |
527 | ||
528 | public List<Aler t> getSens itivePatie ntAlerts(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
529 | tr y { | |
530 | VistaDat a port = g etVistaDat aPort(); | |
531 | return p ort.getSen sitivePati entAlerts( queryBean) ; | |
532 | } catch (Exc eption e) { | |
533 | logError (e); | |
534 | throw ne w JMeadows Exception( e); | |
535 | } | |
536 | } | |
537 | ||
538 | public PatientDe mographics Detail[] g etPatientD emographic sDetail(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion { | |
539 | Pa tientDemog raphicsDet ail[] retu rnVal = nu ll; | |
540 | ||
541 | tr y { | |
542 | VistaDat a port = g etVistaDat aPort(); | |
543 | List<Pat ientDemogr aphicsDeta il> demo = port.getP atientDemo graphicsDe tail(query Bean); | |
544 | returnVa l = demo.t oArray(new PatientDe mographics Detail[dem o.size()]) ; | |
545 | } catch (Exc eption e) { | |
546 | logError (e); | |
547 | throw ne w JMeadows Exception( e); | |
548 | } | |
549 | ||
550 | re turn retur nVal; | |
551 | } | |
552 | ||
553 | public JMedResul tCollectio n getPatie ntImmuniza tions(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
554 | JM edResultCo llection r etVal = nu ll; | |
555 | tr y { | |
556 | VistaDat a port = g etVistaDat aPort(); | |
557 | retVal = new JMedR esultColle ction(port .getPatien tImmunizat ions(query Bean)); | |
558 | } catch (Exc eption e) { | |
559 | logError (e); | |
560 | throw ne w JMeadows Exception( e); | |
561 | } | |
562 | ||
563 | re turn retVa l; | |
564 | } | |
565 | ||
566 | public JMedResul tCollectio n getPatie ntLabs(Que ryBean que ryBean) th rows JMead owsExcepti on { | |
567 | JM edResultCo llection r etVal = nu ll; | |
568 | tr y { | |
569 | VistaDat a port = g etVistaDat aPort(); | |
570 | retVal = new JMedR esultColle ction(port .getPatien tLabs(quer yBean)); | |
571 | // orders = ord.toA rray(new L abOrder[or d.size()]) ; | |
572 | } catch (Exc eption e) { | |
573 | logError (e); | |
574 | throw ne w JMeadows Exception( e); | |
575 | } | |
576 | ||
577 | re turn retVa l; | |
578 | } | |
579 | ||
580 | public LabResult [] getPati entLabTest Results(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion { | |
581 | La bResult[] results = null; | |
582 | tr y { | |
583 | VistaDat a port = g etVistaDat aPort(); | |
584 | List<Lab Result> re s = port.g etPatientL abTestResu lts(queryB ean); | |
585 | results = res.toAr ray(new La bResult[re s.size()]) ; | |
586 | } catch (Exc eption e) { | |
587 | logError (e); | |
588 | throw ne w JMeadows Exception( e); | |
589 | } | |
590 | ||
591 | re turn resul ts; | |
592 | } | |
593 | ||
594 | public JMedResul tCollectio n getPatie ntMedicati ons(QueryB ean queryB ean) throw s JMeadows Exception { | |
595 | JM edResultCo llection r etVal = nu ll; | |
596 | tr y { | |
597 | VistaDat a port = g etVistaDat aPort(); | |
598 | retVal = new JMedR esultColle ction(port .getPatien tMedicatio ns(queryBe an)); | |
599 | } catch (Exc eption e) { | |
600 | logError (e); | |
601 | throw ne w JMeadows Exception( e); | |
602 | } | |
603 | ||
604 | re turn retVa l; | |
605 | } | |
606 | ||
607 | // publ ic Medicat ion[] getP atientMedi cationsNVA (QueryBean queryBean ) throws J MeadowsExc eption { | |
608 | // Medication [] medicat ion = null ; | |
609 | // try { | |
610 | // VistaD ata port = getVistaD ataPort(); | |
611 | // medica tion = por t.getPatie ntMedicati onsNVA(que ryBean).to Array(new Medication [0]); | |
612 | // | |
613 | // } catch (E xception e ) { | |
614 | // throw new JMeado wsExceptio n(e); | |
615 | // } | |
616 | // | |
617 | // return med ication; | |
618 | // | |
619 | // } | |
620 | ||
621 | public JMedResul tCollectio n getPatie ntOrders(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
622 | JM edResultCo llection r etVal = nu ll; | |
623 | ||
624 | tr y { | |
625 | VistaDat a port = g etVistaDat aPort(); | |
626 | retVal = new JMedR esultColle ction(port .getPatien tOrders(qu eryBean)); | |
627 | } catch (Exc eption e) { | |
628 | logError (e); | |
629 | throw ne w JMeadows Exception( e); | |
630 | } | |
631 | ||
632 | re turn retVa l; | |
633 | } | |
634 | ||
635 | public JMedResul tCollectio n getPatie ntProblemL ist(QueryB ean queryB ean) throw s JMeadows Exception { | |
636 | JM edResultCo llection r etVal = nu ll; | |
637 | ||
638 | tr y { | |
639 | VistaDat a port = g etVistaDat aPort(); | |
640 | retVal = new JMedR esultColle ction(port .getPatien tProblemLi st(queryBe an)); | |
641 | } catch (Exc eption e) { | |
642 | logError (e); | |
643 | throw ne w JMeadows Exception( e); | |
644 | } | |
645 | ||
646 | re turn retVa l; | |
647 | } | |
648 | ||
649 | public JMedResul tCollectio n getPatie ntProcedur es(QueryBe an queryBe an) throws JMeadowsE xception { | |
650 | JM edResultCo llection r etVal = nu ll; | |
651 | ||
652 | tr y { | |
653 | VistaDat a port = g etVistaDat aPort(); | |
654 | retVal = new JMedR esultColle ction(port .getPatien tProcedure s(queryBea n)); | |
655 | } catch (Exc eption e) { | |
656 | throw ne w JMeadows Exception( e); | |
657 | } | |
658 | ||
659 | re turn retVa l; | |
660 | } | |
661 | ||
662 | public JMedResul tCollectio n getPatie ntProgress Notes(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
663 | JM edResultCo llection r etVal = nu ll; | |
664 | ||
665 | tr y { | |
666 | VistaDat a port = g etVistaDat aPort(); | |
667 | retVal = new JMedR esultColle ction(port .getPatien tProgressN otes(query Bean)); | |
668 | // notes = note.toA rray(new P rogressNot e[note.siz e()]); | |
669 | } catch (Exc eption e) { | |
670 | logError (e); | |
671 | throw ne w JMeadows Exception( e); | |
672 | } | |
673 | ||
674 | re turn retVa l; | |
675 | } | |
676 | ||
677 | public JMedResul tCollectio n getPatie ntAdvanceD irectives( QueryBean queryBean) throws JM eadowsExce ption { | |
678 | JM edResultCo llection r etVal = nu ll; | |
679 | ||
680 | tr y { | |
681 | VistaDat a port = g etVistaDat aPort(); | |
682 | retVal = new JMedR esultColle ction(port .getPatien tAdvanceDi rectives(q ueryBean)) ; | |
683 | } catch (Exc eption e) { | |
684 | logError (e); | |
685 | throw ne w JMeadows Exception( e); | |
686 | } | |
687 | ||
688 | re turn retVa l; | |
689 | } | |
690 | ||
691 | public JMedResul tCollectio n getPatie ntRads(Que ryBean que ryBean) th rows JMead owsExcepti on { | |
692 | JM edResultCo llection r etVal = nu ll; | |
693 | ||
694 | tr y { | |
695 | VistaDat a port = g etVistaDat aPort(); | |
696 | retVal = new JMedR esultColle ction(port .getPatien tRads(quer yBean)); | |
697 | } catch (Exc eption e) { | |
698 | throw ne w JMeadows Exception( e); | |
699 | } | |
700 | ||
701 | re turn retVa l; | |
702 | } | |
703 | ||
704 | public JMedResul tCollectio n getPatie ntSurgerie s(QueryBea n queryBea n) throws JMeadowsEx ception { | |
705 | JM edResultCo llection r etValue = null; | |
706 | ||
707 | tr y { | |
708 | VistaDat a port = g etVistaDat aPort(); | |
709 | retValue = new JMe dResultCol lection(po rt.getPati entSurgeri es(queryBe an)); | |
710 | } catch (Exc eption e) { | |
711 | logError (e); | |
712 | throw ne w JMeadows Exception( e); | |
713 | } | |
714 | ||
715 | re turn retVa lue; | |
716 | } | |
717 | ||
718 | public JMedResul tCollectio n getPatie ntVitals(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
719 | JM edResultCo llection r etVal = nu ll; | |
720 | ||
721 | tr y { | |
722 | VistaDat a port = g etVistaDat aPort(); | |
723 | retVal = new JMedR esultColle ction(port .getPatien tVitals(qu eryBean)); | |
724 | } catch (Exc eption e) { | |
725 | logError (e); | |
726 | throw ne w JMeadows Exception( e); | |
727 | } | |
728 | ||
729 | re turn retVa l; | |
730 | } | |
731 | ||
732 | // publ ic Prescri ption getP rescriptio nFills(Que ryBean que ryBean) th rows JMead owsExcepti on { | |
733 | // Prescripti on returnV al = null; | |
734 | // | |
735 | // try { | |
736 | // VistaD ata port = getVistaD ataPort(); | |
737 | // return Val = port .getPrescr iptionFill s(queryBea n); | |
738 | // } catch (E xception e ) { | |
739 | // throw new JMeado wsExceptio n(e); | |
740 | // } | |
741 | // | |
742 | // return ret urnVal; | |
743 | // | |
744 | // } | |
745 | ||
746 | public ProblemDe tail getPr oblemDetai l(QueryBea n queryBea n) throws JMeadowsEx ception { | |
747 | Pr oblemDetai l returnVa l = null; | |
748 | ||
749 | tr y { | |
750 | VistaDat a port = g etVistaDat aPort(); | |
751 | returnVa l = port.g etProblemD etail(quer yBean); | |
752 | } catch (Exc eption e) { | |
753 | logError (e); | |
754 | throw ne w JMeadows Exception( e); | |
755 | } | |
756 | ||
757 | re turn retur nVal; | |
758 | } | |
759 | ||
760 | public FreeTextR eport getP rogressNot e(QueryBea n queryBea n) throws JMeadowsEx ception { | |
761 | Fr eeTextRepo rt returnV al = null; | |
762 | ||
763 | tr y { | |
764 | VistaDat a port = g etVistaDat aPort(); | |
765 | returnVa l = port.g etProgress Note(query Bean); | |
766 | } catch (Exc eption e) { | |
767 | logError (e); | |
768 | throw ne w JMeadows Exception( e); | |
769 | } | |
770 | ||
771 | re turn retur nVal; | |
772 | } | |
773 | ||
774 | public User getP roviderPro file(Site site, Stri ng userIen , String p roviderNPI ) throws J MeadowsExc eption { | |
775 | Us er returnV al = null; | |
776 | tr y { | |
777 | VistaDat a port = g etVistaDat aPort(); | |
778 | returnVa l = port.g etProvider Profile(si te, userIe n, provide rNPI); | |
779 | } catch (Exc eption e) { | |
780 | logError (e); | |
781 | throw ne w JMeadows Exception( e); | |
782 | } | |
783 | ||
784 | re turn retur nVal; | |
785 | } | |
786 | ||
787 | public Radiology Report get RadiologyR eport(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
788 | Ra diologyRep ort return Val = null ; | |
789 | ||
790 | tr y { | |
791 | VistaDat a port = g etVistaDat aPort(); | |
792 | returnVa l = port.g etRadiolog yReport(qu eryBean); | |
793 | } catch (Exc eption e) { | |
794 | logError (e); | |
795 | throw ne w JMeadows Exception( e); | |
796 | } | |
797 | ||
798 | re turn retur nVal; | |
799 | ||
800 | } | |
801 | ||
802 | public FreeTextR eport getS urgeryDeta il(QueryBe an queryBe an) throws JMeadowsE xception { | |
803 | Fr eeTextRepo rt returnV alue = nul l; | |
804 | ||
805 | tr y { | |
806 | VistaDat a port = g etVistaDat aPort(); | |
807 | returnVa lue = port .getSurger yDetail(qu eryBean); | |
808 | } catch (Exc eption e) { | |
809 | logError (e); | |
810 | throw ne w JMeadows Exception( e); | |
811 | } | |
812 | ||
813 | re turn retur nValue; | |
814 | } | |
815 | ||
816 | public List<Aler t> getUser Alerts(Que ryBean que ryBean) th rows JMead owsExcepti on { | |
817 | ||
818 | tr y { | |
819 | VistaDat a port = g etVistaDat aPort(); | |
820 | return p ort.getUse rAlerts(qu eryBean); | |
821 | } catch (Exc eption e) { | |
822 | logError (e); | |
823 | throw ne w JMeadows Exception( e); | |
824 | } | |
825 | } | |
826 | ||
827 | public Diagnosis [] getVisi tDiagnosis (QueryBean queryBean ) throws J MeadowsExc eption { | |
828 | Di agnosis[] returnVal = null; | |
829 | tr y { | |
830 | VistaDat a port = g etVistaDat aPort(); | |
831 | List<Dia gnosis> di ag = port. getVisitDi agnosis(qu eryBean); | |
832 | returnVa l = diag.t oArray(new Diagnosis [diag.size ()]); | |
833 | } catch (Exc eption e) { | |
834 | logError (e); | |
835 | throw ne w JMeadows Exception( e); | |
836 | } | |
837 | ||
838 | re turn retur nVal; | |
839 | } | |
840 | ||
841 | public FreeTextR eport getV isitNotes( QueryBean queryBean) throws JM eadowsExce ption { | |
842 | Fr eeTextRepo rt returnV al = null; | |
843 | ||
844 | tr y { | |
845 | VistaDat a port = g etVistaDat aPort(); | |
846 | returnVa l = port.g etVisitNot es(queryBe an); | |
847 | } catch (Exc eption e) { | |
848 | logError (e); | |
849 | throw ne w JMeadows Exception( e); | |
850 | } | |
851 | ||
852 | re turn retur nVal; | |
853 | } | |
854 | ||
855 | public Procedure [] getVisi tProcedure s(QueryBea n queryBea n) throws JMeadowsEx ception { | |
856 | Pr ocedure[] returnVal = null; | |
857 | ||
858 | tr y { | |
859 | VistaDat a port = g etVistaDat aPort(); | |
860 | List<Pro cedure> pr oc = port. getVisitPr ocedures(q ueryBean); | |
861 | returnVa l = proc.t oArray(new Procedure [proc.size ()]); | |
862 | } catch (Exc eption e) { | |
863 | logError (e); | |
864 | throw ne w JMeadows Exception( e); | |
865 | } | |
866 | ||
867 | ||
868 | re turn retur nVal; | |
869 | } | |
870 | ||
871 | ||
872 | public List<Pati ent> looku pPatient(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
873 | ||
874 | tr y { | |
875 | VistaDat a port = g etVistaDat aPort(); | |
876 | //return a max of 100 patien ts | |
877 | queryBea n.setMax(1 00); | |
878 | return p ort.lookup Patient(qu eryBean); | |
879 | } catch (Exc eption e) { | |
880 | logError (e); | |
881 | throw ne w JMeadows Exception( e); | |
882 | } | |
883 | } | |
884 | ||
885 | public boolean s electPatie nt(QueryBe an queryBe an) throws JMeadowsE xception { | |
886 | bo olean retu rnVal = fa lse; | |
887 | ||
888 | tr y { | |
889 | VistaDat a port = g etVistaDat aPort(); | |
890 | //return a max of 100 patien ts | |
891 | queryBea n.setMax(1 00); | |
892 | returnVa l = port.s electPatie nt(queryBe an); | |
893 | } catch (Exc eption e) { | |
894 | logError (e); | |
895 | throw ne w JMeadows Exception( e); | |
896 | } | |
897 | ||
898 | re turn retur nVal; | |
899 | ||
900 | } | |
901 | ||
902 | public ReferralB ean[] getD RReferrals (QueryBean queryBean ) throws J MeadowsExc eption { | |
903 | Re ferralBean [] returnV al = null; | |
904 | ||
905 | tr y { | |
906 | VistaDat a port = g etVistaDat aPort(); | |
907 | List<Ref erralBean> ref = por t.getDRRef errals(que ryBean); | |
908 | returnVa l = ref.to Array(new ReferralBe an[ref.siz e()]); | |
909 | } catch (Exc eption e) { | |
910 | logError (e); | |
911 | throw ne w JMeadows Exception( e); | |
912 | } | |
913 | ||
914 | re turn retur nVal; | |
915 | } | |
916 | ||
917 | public PatientAd mission[] getProvide rAdmission s(QueryBea n queryBea n) throws JMeadowsEx ception { | |
918 | tr y { | |
919 | List<Pat ientAdmiss ion> admis sions = nu ll; | |
920 | VistaDat a port = g etVistaDat aPort(); | |
921 | admissio ns = port. getProvide rAdmission s(queryBea n); | |
922 | return a dmissions. toArray(ne w PatientA dmission[a dmissions. size()]); | |
923 | } catch (Exc eption e) { | |
924 | logError (e); | |
925 | throw ne w JMeadows Exception( e); | |
926 | } | |
927 | } | |
928 | ||
929 | public PatientAd mission[] getWardAdm issions(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion { | |
930 | tr y { | |
931 | List<Pat ientAdmiss ion> admis sions = nu ll; | |
932 | VistaDat a port = g etVistaDat aPort(); | |
933 | admissio ns = port. getWardAdm issions(qu eryBean); | |
934 | return a dmissions. toArray(ne w PatientA dmission[a dmissions. size()]); | |
935 | } catch (Exc eption e) { | |
936 | throw ne w JMeadows Exception( e); | |
937 | } | |
938 | } | |
939 | ||
940 | public PatientAp pointments [] getProv iderAppoin tments(Que ryBean que ryBean) th rows JMead owsExcepti on { | |
941 | tr y { | |
942 | List<Pat ientAppoin tments> ap pointments = null; | |
943 | VistaDat a port = g etVistaDat aPort(); | |
944 | appointm ents = por t.getProvi derAppoint ments(quer yBean); | |
945 | return a ppointment s.toArray( new Patien tAppointme nts[appoin tments.siz e()]); | |
946 | } catch (Exc eption e) { | |
947 | logError (e); | |
948 | throw ne w JMeadows Exception( e); | |
949 | } | |
950 | } | |
951 | ||
952 | public ProgressN ote[] getP roviderUns ignedNotes (QueryBean queryBean ) throws J MeadowsExc eption { | |
953 | tr y { | |
954 | List<Pro gressNote> unsignedN otes = nul l; | |
955 | VistaDat a port = g etVistaDat aPort(); | |
956 | unsigned Notes = po rt.getProv iderUnsign edNotes(qu eryBean); | |
957 | return u nsignedNot es.toArray (new Progr essNote[un signedNote s.size()]) ; | |
958 | } catch (Exc eption e) { | |
959 | throw ne w JMeadows Exception( e); | |
960 | } | |
961 | } | |
962 | ||
963 | public Consult[] getProvid erConsults Requested( QueryBean queryBean) throws JM eadowsExce ption { | |
964 | tr y { | |
965 | List<Con sult> cons ultsReques ted = null ; | |
966 | VistaDat a port = g etVistaDat aPort(); | |
967 | consults Requested = port.get ProviderCo nsultsRequ ested(quer yBean); | |
968 | return c onsultsReq uested.toA rray(new C onsult[con sultsReque sted.size( )]); | |
969 | } catch (Exc eption e) { | |
970 | logError (e); | |
971 | throw ne w JMeadows Exception( e); | |
972 | } | |
973 | } | |
974 | ||
975 | public Consult[] getProvid erConsults Received(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
976 | tr y { | |
977 | List<Con sult> cons ultsReceiv ed = null; | |
978 | VistaDat a port = g etVistaDat aPort(); | |
979 | consults Received = port.getP roviderCon sultsRecei ved(queryB ean); | |
980 | return c onsultsRec eived.toAr ray(new Co nsult[cons ultsReceiv ed.size()] ); | |
981 | } catch (Exc eption e) { | |
982 | logError (e); | |
983 | throw ne w JMeadows Exception( e); | |
984 | } | |
985 | } | |
986 | ||
987 | public Order[] g etProvider OrdersPend ing(QueryB ean queryB ean) throw s JMeadows Exception { | |
988 | tr y { | |
989 | List<Ord er> orders = null; | |
990 | VistaDat a port = g etVistaDat aPort(); | |
991 | orders = port.getP roviderOrd ersPending (queryBean ); | |
992 | return o rders.toAr ray(new Or der[orders .size()]); | |
993 | } catch (Exc eption e) { | |
994 | logError (e); | |
995 | throw ne w JMeadows Exception( e); | |
996 | } | |
997 | } | |
998 | ||
999 | public Order[] g etProvider OrdersResu lted(Query Bean query Bean) thro ws JMeadow sException { | |
1000 | tr y { | |
1001 | List<Ord er> orders = null; | |
1002 | VistaDat a port = g etVistaDat aPort(); | |
1003 | orders = port.getP roviderOrd ersResulte d(queryBea n); | |
1004 | return o rders.toAr ray(new Or der[orders .size()]); | |
1005 | } catch (Exc eption e) { | |
1006 | logError (e); | |
1007 | throw ne w JMeadows Exception( e); | |
1008 | } | |
1009 | } | |
1010 | ||
1011 | public LabResult [] getProv iderLabAbn ormalResul ts(QueryBe an queryBe an) throws JMeadowsE xception { | |
1012 | tr y { | |
1013 | List<Lab Result> la bResults = null; | |
1014 | VistaDat a port = g etVistaDat aPort(); | |
1015 | labResul ts = port. getProvide rLabAbnorm alResults( queryBean) ; | |
1016 | return l abResults. toArray(ne w LabResul t[labResul ts.size()] ); | |
1017 | } catch (Exc eption e) { | |
1018 | logError (e); | |
1019 | throw ne w JMeadows Exception( e); | |
1020 | } | |
1021 | } | |
1022 | ||
1023 | public JMedResul tCollectio n getPatie ntInsuranc es(QueryBe an queryBe an) throws JMeadowsE xception { | |
1024 | JM edResultCo llection r etVal = nu ll; | |
1025 | ||
1026 | tr y { | |
1027 | VistaDat a port = g etVistaDat aPort(); | |
1028 | retVal = new JMedR esultColle ction(port .getPatien tInsurance (queryBean )); | |
1029 | } catch (Exc eption e) { | |
1030 | logError (e); | |
1031 | throw ne w JMeadows Exception( e); | |
1032 | } | |
1033 | ||
1034 | re turn retVa l; | |
1035 | } | |
1036 | ||
1037 | public String ge tPatientIc nFromIen(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
1038 | St ring icn = ""; | |
1039 | ||
1040 | tr y { | |
1041 | VistaDat a port = g etVistaDat aPort(); | |
1042 | icn = po rt.getPati entIcnFrom Ien(queryB ean); | |
1043 | } catch (Exc eption e) { | |
1044 | throw ne w JMeadows Exception( e); | |
1045 | } | |
1046 | ||
1047 | re turn icn; | |
1048 | } | |
1049 | ||
1050 | public StudyQuer y[] getVix StudyQuery FromSite(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
1051 | St udyQuery[] studyQuer ies = null ; | |
1052 | ||
1053 | tr y { | |
1054 | VistaDat a port = g etVistaDat aPort(); | |
1055 | StudyQue ry studyQu ery = port .getVixStu dyQueryFro mSite(quer yBean); | |
1056 | ||
1057 | List<Stu dyQuery> l ist = new ArrayList< StudyQuery >(); | |
1058 | list.add (studyQuer y); | |
1059 | ||
1060 | studyQue ries = lis t.toArray( new StudyQ uery[list. size()]); | |
1061 | } | |
1062 | ca tch (Excep tion e) { | |
1063 | logError (e); | |
1064 | throw ne w JMeadows Exception( e); | |
1065 | } | |
1066 | ||
1067 | re turn study Queries; | |
1068 | } | |
1069 | ||
1070 | public StudyQuer y getVixSt udyQueryFr omSitesWit houtDetail s(QueryBea n queryBea n) throws JMeadowsEx ception { | |
1071 | St udyQuery s tudyQuery = null; | |
1072 | ||
1073 | tr y { | |
1074 | VistaDat a port = g etVistaDat aPort(); | |
1075 | studyQue ry = port. getVixStud yQueryFrom SitesWitho utDetails( queryBean) ; | |
1076 | } | |
1077 | ca tch (Excep tion e) { | |
1078 | logError (e); | |
1079 | throw ne w JMeadows Exception( e); | |
1080 | } | |
1081 | ||
1082 | re turn study Query; | |
1083 | } | |
1084 | ||
1085 | public StudyQuer y getVixSt udyQueryWi thDetails( QueryBean queryBean) throws JM eadowsExce ption { | |
1086 | St udyQuery s tudyQuery; | |
1087 | ||
1088 | tr y { | |
1089 | VistaDat a port = g etVistaDat aPort(); | |
1090 | studyQue ry = port. getVixStud yQueryWith Details(qu eryBean); | |
1091 | } | |
1092 | ca tch (Excep tion e) { | |
1093 | logError (e); | |
1094 | throw ne w JMeadows Exception( e); | |
1095 | } | |
1096 | ||
1097 | re turn study Query; | |
1098 | } | |
1099 | ||
1100 | public StudyQuer y getVixSt udyQueryWi thoutDetai ls(QueryBe an queryBe an) throws JMeadowsE xception | |
1101 | { | |
1102 | St udyQuery s tudyQuery; | |
1103 | ||
1104 | tr y { | |
1105 | VistaDat a port = g etVistaDat aPort(); | |
1106 | studyQue ry = port. getVixStud yQueryWith outDetails (queryBean ); | |
1107 | } | |
1108 | ca tch (Excep tion e) { | |
1109 | logError (e); | |
1110 | throw ne w JMeadows Exception( e); | |
1111 | } | |
1112 | ||
1113 | re turn study Query; | |
1114 | } | |
1115 | ||
1116 | public StudyDeta il getVixS tudyDetail (QueryBean queryBean ) throws J MeadowsExc eption | |
1117 | { | |
1118 | St udyDetail studyDetai l; | |
1119 | ||
1120 | tr y { | |
1121 | VistaDat a port = g etVistaDat aPort(); | |
1122 | studyDet ail = port .getVixStu dyDetail(q ueryBean); | |
1123 | } | |
1124 | ca tch (Excep tion e) { | |
1125 | logError (e); | |
1126 | throw ne w JMeadows Exception( e); | |
1127 | } | |
1128 | ||
1129 | re turn study Detail; | |
1130 | } | |
1131 | ||
1132 | public String ge tVixStudyV iewerUrl(Q ueryBean q ueryBean) throws JMe adowsExcep tion { | |
1133 | St ring viewe rUrl; | |
1134 | ||
1135 | tr y { | |
1136 | VistaDat a port = g etVistaDat aPort(); | |
1137 | viewerUr l = port.g etVixStudy ViewerUrl( queryBean) ; | |
1138 | } | |
1139 | ca tch (Excep tion e) { | |
1140 | logError (e); | |
1141 | throw ne w JMeadows Exception( e); | |
1142 | } | |
1143 | ||
1144 | re turn viewe rUrl; | |
1145 | } | |
1146 | ||
1147 | public byte[] ge tVixThumbn ail(QueryB ean queryB ean) throw s JMeadows Exception { | |
1148 | tr y { | |
1149 | VistaDat a port = g etVistaDat aPort(); | |
1150 | return p ort.getVix Thumbnail( queryBean) ; | |
1151 | } catch (Exc eption e) { | |
1152 | logError (e); | |
1153 | throw ne w JMeadows Exception( e); | |
1154 | } | |
1155 | } | |
1156 | ||
1157 | public ViStudy g etViStudyB yCprsId(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion { | |
1158 | tr y { | |
1159 | VistaDat a port = g etVistaDat aPort(); | |
1160 | return p ort.getViS tudyByCprs Id(queryBe an); | |
1161 | } catch (Exc eption e) { | |
1162 | logError (e); | |
1163 | throw ne w JMeadows Exception( e); | |
1164 | } | |
1165 | } | |
1166 | ||
1167 | public ViImageRe sponse get ViImage(Qu eryBean qu eryBean, S tring imag eUrn, Stri ng imageQu ality) thr ows JMeado wsExceptio n { | |
1168 | tr y { | |
1169 | VistaDat a port = g etVistaDat aPort(); | |
1170 | return p ort.getViI mage(query Bean, imag eUrn, imag eQuality); | |
1171 | } catch (Exc eption e) { | |
1172 | logError (e); | |
1173 | throw ne w JMeadows Exception( e); | |
1174 | } | |
1175 | } | |
1176 | ||
1177 | public JMedResul tCollectio n getPatie ntHealthSu mmaryTypes List(Query Bean query Bean) thro ws JMeadow sException { | |
1178 | JM edResultCo llection r etVal = nu ll; | |
1179 | ||
1180 | tr y { | |
1181 | VistaDat a port = g etVistaDat aPort(); | |
1182 | retVal = new JMedR esultColle ction(port .getPatien tHealthSum maryTypes( queryBean) ); | |
1183 | ||
1184 | } catch (Exc eption e) { | |
1185 | logError (e); | |
1186 | throw ne w JMeadows Exception( e); | |
1187 | } | |
1188 | ||
1189 | re turn retVa l; | |
1190 | } | |
1191 | ||
1192 | public FreeTextR eport getP atientHeal thSummary( QueryBean queryBean) throws JM eadowsExce ption { | |
1193 | Fr eeTextRepo rt returnV al = null; | |
1194 | ||
1195 | tr y { | |
1196 | VistaDat a port = g etVistaDat aPort(); | |
1197 | returnVa l = port.g etPatientH ealthSumma ry(queryBe an); | |
1198 | } catch (Exc eption e) { | |
1199 | logError (e); | |
1200 | throw ne w JMeadows Exception( e); | |
1201 | } | |
1202 | ||
1203 | ||
1204 | re turn retur nVal; | |
1205 | ||
1206 | } | |
1207 | ||
1208 | public FreeTextR eport[] ge tPatientHe althSummar ies(QueryB ean queryB ean) throw s JMeadows Exception { | |
1209 | Li st<FreeTex tReport> l istList = null; | |
1210 | ||
1211 | tr y { | |
1212 | VistaDat a port = g etVistaDat aPort(); | |
1213 | listList = port.ge tPatientHe althSummar ies(queryB ean); | |
1214 | ||
1215 | } catch (Exc eption e) { | |
1216 | logError (e); | |
1217 | throw ne w JMeadows Exception( e); | |
1218 | } | |
1219 | ||
1220 | re turn listL ist.toArra y(new Free TextReport [listList. size()]); | |
1221 | } | |
1222 | ||
1223 | public List<Pce> getPcesFo rNote(Quer yBean quer yBean) thr ows JMeado wsExceptio n { | |
1224 | Li st<Pce> pc es = null; | |
1225 | ||
1226 | tr y { | |
1227 | VistaDat a port = g etVistaDat aPort(); | |
1228 | pces = p ort.getPce sForNote(q ueryBean); | |
1229 | } | |
1230 | ca tch (Excep tion e) { | |
1231 | logE rror(e); | |
1232 | thro w new JMea dowsExcept ion(e); | |
1233 | } | |
1234 | ||
1235 | re turn pces; | |
1236 | } | |
1237 | ||
1238 | privat e void log Error(Exce ption e){ | |
1239 | LO GGER.error ("VistaDat aService E RROR: " + e.getMessa ge(), e); | |
1240 | } | |
1241 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.