Produced by Araxis Merge on 5/28/2019 3:18:03 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\CV-CCP\src\java\gov\va\med\jmeadows | JMeadowsServiceHandlerImpl.java | Wed May 1 18:46:26 2019 UTC |
2 | CV_src.zip\CV-CCP\src\java\gov\va\med\jmeadows | JMeadowsServiceHandlerImpl.java | Sat May 25 18:49:01 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 4710 |
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 | * Honor able Senat or Daniel K. Inouye | |
7 | * VA Pa cific Isla nds Health Care Syst em | |
8 | * Tripl er Army Me dical Cent er | |
9 | * | |
10 | * License d under th e Apache L icense, Ve rsion 2.0 (the "Lice nse"); you may not u se this fi le except in complia nce with t he License . | |
11 | * | |
12 | * You may obtain a copy of th e License at: | |
13 | * | |
14 | * http:/ /www.apach e.org/lice nses/LICEN SE-2.0.txt | |
15 | * | |
16 | * Unless required b y applicab le law or agreed to in writing , software | |
17 | * distrib uted under the Licen se is dist ributed on an "AS IS " BASIS, | |
18 | * WITHOUT WARRANTIE S OR CONDI TIONS OF A NY KIND, e ither expr ess or imp lied. | |
19 | * See the License f or the spe cific lang uage gover ning permi ssions and limitatio ns under t he License . | |
20 | */ | |
21 | ||
22 | ||
23 | package go v.va.med.j meadows; | |
24 | ||
25 | import gov .va.med.co mmon.AppCo nfig; | |
26 | import gov .va.med.jm eadows.web service.*; | |
27 | import gov .va.med.vh ahon.commo n.Utils; | |
28 | import org .apache.lo g4j.Logger ; | |
29 | import org .springfra mework.bea ns.factory .annotatio n.Autowire d; | |
30 | import org .springfra mework.ste reotype.Co mponent; | |
31 | ||
32 | import jav ax.xml.nam espace.QNa me; | |
33 | import jav ax.xml.soa p.SOAPExce ption; | |
34 | import jav ax.xml.ws. BindingPro vider; | |
35 | import jav ax.xml.ws. soap.MTOMF eature; | |
36 | import jav a.nio.char set.Charse t; | |
37 | import jav a.util.Arr ayList; | |
38 | import jav a.util.Lis t; | |
39 | ||
40 | @Component | |
41 | public cla ss JMeadow sServiceHa ndlerImpl implements JMeadowsS erviceHand ler { | |
42 | ||
43 | privat e static f inal Logge r logger = Logger.ge tLogger(JM eadowsServ iceHandler Impl.class .getName() ); | |
44 | @Autow ired | |
45 | protec ted AppCon fig appCon fig; | |
46 | privat e String s erviceURL; | |
47 | privat e String m _ServiceNa me = "JMea dowsDataSe rvice"; | |
48 | private St ring m_nam espace = " http:// DNS . URL /"; | |
49 | privat e QName m_ QserviceNa me = new Q Name(m_nam espace, m_ ServiceNam e); | |
50 | ||
51 | privat e String a ppName; | |
52 | ||
53 | privat e String u sername; | |
54 | privat e String p assword; | |
55 | ||
56 | privat e int conn ectionTime outMS = 30 000; | |
57 | privat e int requ estTimeout MS = 30000 ; | |
58 | ||
59 | privat e JMeadows DataServic e m_jmeado wsDataServ ice; | |
60 | ||
61 | public JMeadowsS erviceHand lerImpl(St ring url) { | |
62 | se rviceURL = url; | |
63 | } | |
64 | ||
65 | public JMeadowsS erviceHand lerImpl() { | |
66 | } | |
67 | ||
68 | ||
69 | public int getCo nnectionTi meoutMS() { | |
70 | re turn conne ctionTimeo utMS; | |
71 | } | |
72 | ||
73 | public void setC onnectionT imeoutMS(i nt connect ionTimeout MS) { | |
74 | th is.connect ionTimeout MS = conne ctionTimeo utMS; | |
75 | } | |
76 | ||
77 | public int getRe questTimeo utMS() { | |
78 | re turn reque stTimeoutM S; | |
79 | } | |
80 | ||
81 | public void setR equestTime outMS(int requestTim eoutMS) { | |
82 | th is.request TimeoutMS = requestT imeoutMS; | |
83 | } | |
84 | ||
85 | public String ge tServiceUR L() { | |
86 | re turn servi ceURL; | |
87 | } | |
88 | ||
89 | public void setS erviceURL( String ser viceURL) { | |
90 | th is.service URL = serv iceURL; | |
91 | } | |
92 | ||
93 | privat e JMeadows Data getJM eadowsData Port() { | |
94 | re turn getJM eadowsData Port(false ); | |
95 | } | |
96 | ||
97 | public String ge tUsername( ) { | |
98 | re turn usern ame; | |
99 | } | |
100 | ||
101 | public void setU sername(St ring usern ame) { | |
102 | th is.usernam e = userna me; | |
103 | } | |
104 | ||
105 | public String ge tPassword( ) { | |
106 | re turn passw ord; | |
107 | } | |
108 | ||
109 | public void setP assword(St ring passw ord) { | |
110 | th is.passwor d = passwo rd; | |
111 | } | |
112 | ||
113 | privat e JMeadows Data getJM eadowsData Port(boole an include MTOMFeatur e) { | |
114 | if (m_jmeado wsDataServ ice == nul l) { | |
115 | createSe rvice(); | |
116 | if (appC onfig.getE nableWSSec urityHeade r()) { | |
117 | m_jm eadowsData Service.se tHandlerRe solver(new HeaderHan dlerResolv er()); | |
118 | } | |
119 | } | |
120 | ||
121 | JM eadowsData port = nu ll; | |
122 | if (includeM TOMFeature ) { | |
123 | port = m _jmeadowsD ataService .getJMeado wsDataPort (new MTOMF eature()); | |
124 | } else port = m_jmeado wsDataServ ice.getJMe adowsDataP ort(); | |
125 | ||
126 | // set connec tion timeo ut | |
127 | Bi ndingProvi der bp = ( BindingPro vider) por t; | |
128 | bp .getReques tContext() .put(Bindi ngProvider .ENDPOINT_ ADDRESS_PR OPERTY, se rviceURL); | |
129 | bp .getReques tContext() .put("com. sun.xml.in ternal.ws. connect.ti meout", co nnectionTi meoutMS); | |
130 | bp .getReques tContext() .put("com. sun.xml.in ternal.ws. request.ti meout", re questTimeo utMS); | |
131 | bp .getReques tContext() .put("com. sun.xml.ws .connect.t imeout", c onnectionT imeoutMS); | |
132 | bp .getReques tContext() .put("com. sun.xml.ws .request.t imeout", r equestTime outMS); | |
133 | ||
134 | re turn port; | |
135 | } | |
136 | ||
137 | privat e synchron ized void createServ ice() { | |
138 | if (m_jmeado wsDataServ ice == nul l) { | |
139 | try { | |
140 | m_jm eadowsData Service = new JMeado wsDataServ ice(); | |
141 | } catch (Exception e) { | |
142 | thro w new Runt imeExcepti on(e); | |
143 | } | |
144 | ||
145 | } | |
146 | } | |
147 | ||
148 | privat e void log (String me thodName) { | |
149 | lo g(methodNa me, null); | |
150 | } | |
151 | ||
152 | privat e void log (String me thodName, JMeadowsQu ery queryB ean) { | |
153 | if (logger.i sDebugEnab led()) { | |
154 | logger.d ebug("Invo king metho d: " + met hodName); | |
155 | if (quer yBean != n ull) { | |
156 | logQ ueryBeanPa rams(metho dName, que ryBean); | |
157 | } | |
158 | } | |
159 | } | |
160 | ||
161 | privat e void log QueryBeanP arams(Stri ng methodN ame, JMead owsQuery q ueryBean) { | |
162 | if (!logger. isDebugEna bled()) re turn; | |
163 | ||
164 | St ring userI d; | |
165 | Si te hostSit e; | |
166 | St ring patVA Icn; | |
167 | St ring patDo DEdipi; | |
168 | Li st<Site> v istaSites = new Arra yList<Site >(); | |
169 | St ring itemI d; | |
170 | St ring recor dSiteCode; | |
171 | St ring statu s; | |
172 | In teger acti ve; | |
173 | St ring start Date; | |
174 | St ring endDa te; | |
175 | ||
176 | St ringBuilde r sb = new StringBui lder(); | |
177 | sb .append(me thodName); | |
178 | sb .append(" query bean params: " ); | |
179 | ||
180 | if (queryBea n != null) { | |
181 | User use r = queryB ean.getUse r(); | |
182 | Patient patient = queryBean. getPatient (); | |
183 | ||
184 | if (user != null) { | |
185 | user Id = user. getUserId( ); | |
186 | host Site = use r.getHostS ite(); | |
187 | ||
188 | sb.a ppend("Use r - userId : "); | |
189 | sb.a ppend(user Id); | |
190 | sb.a ppend(" , hostSite: "); | |
191 | if ( hostSite ! = null) sb .append(ho stSite.get SiteCode() ); | |
192 | } else { | |
193 | sb.a ppend("Use r - null") ; | |
194 | } | |
195 | ||
196 | if (pati ent != nul l) { | |
197 | ||
198 | patV AIcn = pat ient.getIC N(); | |
199 | patD oDEdipi = patient.ge tEDIPI(); | |
200 | ||
201 | sb.a ppend("; P atient - " ); | |
202 | sb.a ppend(", I CN: "); | |
203 | sb.a ppend(patV AIcn); | |
204 | sb.a ppend(", E DIPI: "); | |
205 | sb.a ppend(patD oDEdipi); | |
206 | ||
207 | sb.a ppend(", v istaSites: "); | |
208 | ||
209 | if ( vistaSites .size() < 1) sb.appe nd("none") ; | |
210 | ||
211 | for (Site site : vistaSi tes) { | |
212 | String sit eCode = si te.getSite Code(); | |
213 | sb.append( siteCode); | |
214 | sb.append( ", "); | |
215 | } | |
216 | } else { | |
217 | sb.a ppend("; P atient - n ull"); | |
218 | } | |
219 | ||
220 | itemId = queryBean .getItemId (); | |
221 | active = queryBean .getActive (); | |
222 | recordSi teCode = q ueryBean.g etRecordSi teCode(); | |
223 | startDat e = Utils. formatDisp layDate(qu eryBean.ge tStartDate ()); | |
224 | endDate = Utils.fo rmatDispla yDate(quer yBean.getE ndDate()); | |
225 | status = queryBean .getStatus (); | |
226 | ||
227 | sb.appen d("; start Date: "); | |
228 | sb.appen d(startDat e); | |
229 | sb.appen d(", endDa te: "); | |
230 | sb.appen d(endDate) ; | |
231 | sb.appen d(", itemI d: "); | |
232 | sb.appen d(itemId); | |
233 | sb.appen d(", recor dSiteCode: "); | |
234 | sb.appen d(recordSi teCode); | |
235 | sb.appen d(", statu s: "); | |
236 | sb.appen d(status); | |
237 | sb.appen d(", activ e: "); | |
238 | sb.appen d(active); | |
239 | ||
240 | } | |
241 | ||
242 | lo gger.debug (sb.toStri ng()); | |
243 | } | |
244 | ||
245 | @Overr ide | |
246 | public User logi nEnterpris e(String c ardID, Str ing siteCo de, String accessCod e, String verifyCode , String i pAddress, String sub jectDN, St ring email Address) t hrows SOAP Exception { | |
247 | ||
248 | lo g("loginEn terprise") ; | |
249 | ||
250 | Us er result = null; | |
251 | ||
252 | tr y { | |
253 | ||
254 | JMeadows Data port = getJMead owsDataPor t(); | |
255 | result = port.logi nEnterpris e(cardID, siteCode, accessCode , verifyCo de, appNam e, ipAddre ss, subjec tDN, email Address); | |
256 | ||
257 | } catch (Exc eption e) { | |
258 | logError (e); | |
259 | throw ne w SOAPExce ption(e); | |
260 | } | |
261 | ||
262 | re turn resul t; | |
263 | } | |
264 | ||
265 | @Overr ide | |
266 | public User logi nSaml(Stri ng siteCod e, String samlToken, String ip Address, S tring emai lAddress) throws SOA PException { | |
267 | ||
268 | lo g("loginSa ml"); | |
269 | ||
270 | Us er result = null; | |
271 | ||
272 | tr y { | |
273 | ||
274 | JMeadows Data port = getJMead owsDataPor t(); | |
275 | result = port.logi nSaml(site Code, saml Token, app Name, ipAd dress, ema ilAddress) ; | |
276 | ||
277 | } catch (Exc eption e) { | |
278 | logError (e); | |
279 | throw ne w SOAPExce ption(e); | |
280 | } | |
281 | ||
282 | re turn resul t; | |
283 | } | |
284 | ||
285 | // @Ove rride | |
286 | // publ ic User lo ginEnterpr ise(String cardID, S tring site Code, Stri ng accessC ode, Strin g verifyCo de, String ipAddress , String s ubjectDN) throws SOA PException { | |
287 | // | |
288 | // log("login Enterprise "); | |
289 | // | |
290 | // User resul t = null; | |
291 | // | |
292 | // try { | |
293 | // | |
294 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
295 | // result = port.lo ginEnterpr ise(cardID , siteCode , accessCo de, verify Code, appN ame, ipAdd ress, subj ectDN, "") ; | |
296 | // | |
297 | // } catch (E xception e ) { | |
298 | // throw new SOAPEx ception(e) ; | |
299 | // } | |
300 | // | |
301 | // return res ult; | |
302 | // | |
303 | // //code to mock DoD u ser | |
304 | //// siteCode = "200"; | |
305 | //// | |
306 | //// User use r = new Us er(); | |
307 | //// user.set EncryptedF ederatedUi d(EncryptU til.encryp t("1234567 89")); | |
308 | //// user.set Name("Mock User,DoD") ; | |
309 | //// user.set UserIen("1 234"); | |
310 | //// user.set ProviderIe n("4321"); | |
311 | //// user.set Agency("DO D"); | |
312 | //// | |
313 | //// JMeadows Data port = getJMead owsDataPor t(); | |
314 | //// List<Sit e> sites = port.getS ites(); | |
315 | //// java.uti l.Iterator <Site> it = sites.it erator(); | |
316 | //// while(it .hasNext() ) | |
317 | //// { | |
318 | //// Site site = it .next(); | |
319 | //// if(s iteCode.eq ualsIgnore Case(site. getSiteCod e())) | |
320 | //// { | |
321 | //// user.setHo stSite(sit e); | |
322 | //// break; | |
323 | //// } | |
324 | //// } | |
325 | //// return u ser; | |
326 | // | |
327 | // } | |
328 | ||
329 | @Overr ide | |
330 | public Admission Detail get AdmissionD etails(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
331 | ||
332 | lo g("getAdmi ssionDetai ls", query Bean); | |
333 | ||
334 | Ad missionDet ail return Val = null ; | |
335 | ||
336 | tr y { | |
337 | ||
338 | JMeadows Data port = getJMead owsDataPor t(); | |
339 | returnVa l = port.g etAdmissio nDetails(q ueryBean); | |
340 | } catch (Exc eption e) { | |
341 | logError (e); | |
342 | throw ne w SOAPExce ption(e); | |
343 | } | |
344 | ||
345 | ||
346 | re turn retur nVal; | |
347 | } | |
348 | ||
349 | @Overr ide | |
350 | public Diagnosis [] getAdmi ssionDiagn osis(JMead owsQuery q ueryBean) throws SOA PException { | |
351 | ||
352 | lo g("getAdmi ssionDiagn osis", que ryBean); | |
353 | ||
354 | Di agnosis[] returnVal = null; | |
355 | ||
356 | tr y { | |
357 | ||
358 | JMeadows Data port = getJMead owsDataPor t(); | |
359 | returnVa l = port.g etAdmissio nDiagnosis (queryBean ).toArray( new Diagno sis[0]); | |
360 | } catch (Exc eption e) { | |
361 | logError (e); | |
362 | throw ne w SOAPExce ption(e); | |
363 | } | |
364 | ||
365 | re turn retur nVal; | |
366 | ||
367 | } | |
368 | ||
369 | ||
370 | @Overr ide | |
371 | public Procedure [] getAdmi ssionProce dures(JMea dowsQuery queryBean) throws SO APExceptio n { | |
372 | ||
373 | lo g("getAdmi ssionProce dures", qu eryBean); | |
374 | ||
375 | Pr ocedure[] returnVal = null; | |
376 | ||
377 | tr y { | |
378 | ||
379 | JMeadows Data port = getJMead owsDataPor t(); | |
380 | returnVa l = port.g etAdmissio nProcedure s(queryBea n).toArray (new Proce dure[0]); | |
381 | } catch (Exc eption e) { | |
382 | logError (e); | |
383 | throw ne w SOAPExce ption(e); | |
384 | } | |
385 | ||
386 | re turn retur nVal; | |
387 | } | |
388 | ||
389 | @Overr ide | |
390 | public FreeTextR eport getC linicalRem inderDetai l(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
391 | ||
392 | lo g("getClin icalRemind erDetail", queryBean ); | |
393 | ||
394 | Fr eeTextRepo rt returnV al = null; | |
395 | ||
396 | tr y { | |
397 | ||
398 | JMeadows Data port = getJMead owsDataPor t(); | |
399 | returnVa l = port.g etClinical ReminderDe tail(query Bean); | |
400 | } catch (Exc eption e) { | |
401 | logError (e); | |
402 | throw ne w SOAPExce ption(e); | |
403 | } | |
404 | ||
405 | re turn retur nVal; | |
406 | ||
407 | } | |
408 | ||
409 | @Overr ide | |
410 | public FreeTextR eport getC linicalRem inderDetai lUseHS(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
411 | ||
412 | lo g("getClin icalRemind erDetailUs eHS", quer yBean); | |
413 | ||
414 | Fr eeTextRepo rt returnV al = null; | |
415 | ||
416 | tr y { | |
417 | ||
418 | JMeadows Data port = getJMead owsDataPor t(); | |
419 | returnVa l = port.g etClinical ReminderDe tailUseHS( queryBean) ; | |
420 | } catch (Exc eption e) { | |
421 | logError (e); | |
422 | throw ne w SOAPExce ption(e); | |
423 | } | |
424 | ||
425 | re turn retur nVal; | |
426 | ||
427 | } | |
428 | ||
429 | @Overr ide | |
430 | public FreeTextR eport[] ge tConsultRe port(JMead owsQuery q ueryBean) throws SOA PException { | |
431 | ||
432 | lo g("getCons ultReport" , queryBea n); | |
433 | ||
434 | Fr eeTextRepo rt[] retur nVal = nul l; | |
435 | ||
436 | tr y { | |
437 | ||
438 | JMeadows Data port = getJMead owsDataPor t(); | |
439 | returnVa l = port.g etConsultR eport(quer yBean).toA rray(new F reeTextRep ort[0]); | |
440 | } catch (Exc eption e) { | |
441 | logError (e); | |
442 | throw ne w SOAPExce ption(e); | |
443 | } | |
444 | ||
445 | re turn retur nVal; | |
446 | } | |
447 | ||
448 | @Overr ide | |
449 | public FreeTextR eport getM edicationD etails(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
450 | ||
451 | lo g("getMedi cationDeta ils", quer yBean); | |
452 | ||
453 | Fr eeTextRepo rt returnV al = null; | |
454 | ||
455 | tr y { | |
456 | ||
457 | JMeadows Data port = getJMead owsDataPor t(); | |
458 | returnVa l = port.g etMedicati onDetail(q ueryBean); | |
459 | } catch (Exc eption e) { | |
460 | logError (e); | |
461 | throw ne w SOAPExce ption(e); | |
462 | } | |
463 | ||
464 | re turn retur nVal; | |
465 | } | |
466 | ||
467 | @Overr ide | |
468 | public LabResult [] getLabO rderResult (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
469 | lo g("getLabO rderResult ", queryBe an); | |
470 | ||
471 | La bResult[] returnVal = null; | |
472 | ||
473 | tr y { | |
474 | ||
475 | JMeadows Data port = getJMead owsDataPor t(); | |
476 | returnVa l = port.g etLabOrder Result(que ryBean).to Array(new LabResult[ 0]); | |
477 | } catch (Exc eption e) { | |
478 | logError (e); | |
479 | throw ne w SOAPExce ption(e); | |
480 | } | |
481 | ||
482 | re turn retur nVal; | |
483 | } | |
484 | ||
485 | @Overr ide | |
486 | public FreeTextR eport getO rderDetail (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
487 | ||
488 | lo g("getOrde rDetail", queryBean) ; | |
489 | ||
490 | Fr eeTextRepo rt returnV al = null; | |
491 | ||
492 | tr y { | |
493 | ||
494 | JMeadows Data port = getJMead owsDataPor t(); | |
495 | returnVa l = port.g etOrderDet ail(queryB ean); | |
496 | } catch (Exc eption e) { | |
497 | logError (e); | |
498 | throw ne w SOAPExce ption(e); | |
499 | } | |
500 | ||
501 | re turn retur nVal; | |
502 | } | |
503 | ||
504 | @Overr ide | |
505 | public JMedResul tCollectio n getPatie ntAdmissio ns(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
506 | ||
507 | lo g("getPati entAdmissi ons", quer yBean); | |
508 | ||
509 | JM edResultCo llection r eturnVal = null; | |
510 | ||
511 | tr y { | |
512 | ||
513 | JMeadows Data port = getJMead owsDataPor t(); | |
514 | returnVa l = port.g etPatientA dmissions( queryBean) ; | |
515 | } catch (Exc eption e) { | |
516 | logError (e); | |
517 | throw ne w SOAPExce ption(e); | |
518 | } | |
519 | ||
520 | re turn retur nVal; | |
521 | } | |
522 | ||
523 | @Overr ide | |
524 | public JMedResul tCollectio n getPatie ntAllergie s(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
525 | lo g("getPati entAllergi es", query Bean); | |
526 | ||
527 | JM edResultCo llection r eturnVal = null; | |
528 | ||
529 | tr y { | |
530 | ||
531 | JMeadows Data port = getJMead owsDataPor t(); | |
532 | returnVa l = port.g etPatientA llergies(q ueryBean); | |
533 | } catch (Exc eption e) { | |
534 | logError (e); | |
535 | throw ne w SOAPExce ption(e); | |
536 | } | |
537 | ||
538 | re turn retur nVal; | |
539 | } | |
540 | ||
541 | @Overr ide | |
542 | public AllergyDe tail getAl lergyDetai l(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
543 | lo g("getAlle rgyDetail" , queryBea n); | |
544 | ||
545 | Al lergyDetai l returnVa l = null; | |
546 | ||
547 | tr y { | |
548 | ||
549 | JMeadows Data port = getJMead owsDataPor t(); | |
550 | returnVa l = port.g etAllergyD etail(quer yBean); | |
551 | } catch (Exc eption e) { | |
552 | logError (e); | |
553 | throw ne w SOAPExce ption(e); | |
554 | } | |
555 | ||
556 | re turn retur nVal; | |
557 | } | |
558 | ||
559 | @Overr ide | |
560 | public JMedResul tCollectio n getPatie ntAppointm ents(JMead owsQuery q ueryBean) throws SOA PException { | |
561 | lo g("getPati entAppoint ments", qu eryBean); | |
562 | ||
563 | JM edResultCo llection r eturnVal = null; | |
564 | ||
565 | tr y { | |
566 | ||
567 | JMeadows Data port = getJMead owsDataPor t(); | |
568 | returnVa l = port.g etPatientA ppointment s(queryBea n); | |
569 | } catch (Exc eption e) { | |
570 | logError (e); | |
571 | throw ne w SOAPExce ption(e); | |
572 | } | |
573 | ||
574 | re turn retur nVal; | |
575 | } | |
576 | ||
577 | @Overr ide | |
578 | public JMedResul tCollectio n getPatie ntDocument s(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
579 | lo g("getPati entDocumen ts", query Bean); | |
580 | ||
581 | JM edResultCo llection r eturnVal = null; | |
582 | ||
583 | tr y { | |
584 | ||
585 | JMeadows Data port = getJMead owsDataPor t(); | |
586 | returnVa l = port.g etPatientD ocuments(q ueryBean); | |
587 | } catch (Exc eption e) { | |
588 | logError (e); | |
589 | throw ne w SOAPExce ption(e); | |
590 | } | |
591 | ||
592 | re turn retur nVal; | |
593 | } | |
594 | ||
595 | @Overr ide | |
596 | public JMedResul tCollectio n getPatie ntDentalDo cuments(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
597 | lo g("getPati entDentalD ocuments", queryBean ); | |
598 | ||
599 | JM edResultCo llection r eturnVal = null; | |
600 | ||
601 | tr y { | |
602 | ||
603 | JMeadows Data port = getJMead owsDataPor t(); | |
604 | returnVa l = port.g etPatientD entalDocum ents(query Bean); | |
605 | } catch (Exc eption e) { | |
606 | logError (e); | |
607 | throw ne w SOAPExce ption(e); | |
608 | } | |
609 | ||
610 | re turn retur nVal; | |
611 | } | |
612 | ||
613 | @Overr ide | |
614 | public JMedResul tCollectio n getPatie ntEncounte rs(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
615 | lo g("getPati entEncount er", query Bean); | |
616 | ||
617 | JM edResultCo llection r eturnVal = null; | |
618 | ||
619 | tr y { | |
620 | ||
621 | JMeadows Data port = getJMead owsDataPor t(); | |
622 | returnVa l = port.g etPatientE ncounters( queryBean) ; | |
623 | } catch (Exc eption e) { | |
624 | logError (e); | |
625 | throw ne w SOAPExce ption(e); | |
626 | } | |
627 | ||
628 | re turn retur nVal; | |
629 | } | |
630 | ||
631 | @Overr ide | |
632 | public JMedResul tCollectio n getPatie ntClinical Reminders( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
633 | lo g("getPati entClinica lReminders ", queryBe an); | |
634 | ||
635 | JM edResultCo llection r eturnVal = null; | |
636 | ||
637 | tr y { | |
638 | ||
639 | JMeadows Data port = getJMead owsDataPor t(); | |
640 | returnVa l = port.g etPatientC linicalRem inders(que ryBean); | |
641 | } catch (Exc eption e) { | |
642 | logError (e); | |
643 | throw ne w SOAPExce ption(e); | |
644 | } | |
645 | ||
646 | re turn retur nVal; | |
647 | } | |
648 | ||
649 | @Overr ide | |
650 | public JMedResul tCollectio n getPatie ntClinical RemindersU seHS(JMead owsQuery q ueryBean) throws SOA PException { | |
651 | lo g("getPati entClinica lReminders UseHS", qu eryBean); | |
652 | ||
653 | JM edResultCo llection r eturnVal = null; | |
654 | ||
655 | tr y { | |
656 | ||
657 | JMeadows Data port = getJMead owsDataPor t(); | |
658 | returnVa l = port.g etPatientC linicalRem indersUseH S(queryBea n); | |
659 | } catch (Exc eption e) { | |
660 | logError (e); | |
661 | throw ne w SOAPExce ption(e); | |
662 | } | |
663 | ||
664 | re turn retur nVal; | |
665 | } | |
666 | ||
667 | @Overr ide | |
668 | public JMedResul tCollectio n getPatie ntConsultR equests(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
669 | lo g("getPati entConsult Requests", queryBean ); | |
670 | ||
671 | JM edResultCo llection r eturnVal = null; | |
672 | ||
673 | tr y { | |
674 | ||
675 | JMeadows Data port = getJMead owsDataPor t(); | |
676 | returnVa l = port.g etPatientC onsultRequ ests(query Bean); | |
677 | } catch (Exc eption e) { | |
678 | logError (e); | |
679 | throw ne w SOAPExce ption(e); | |
680 | } | |
681 | ||
682 | re turn retur nVal; | |
683 | } | |
684 | ||
685 | // @Ove rride | |
686 | // publ ic JMedRes ultCollect ion getPat ientCurren tVitals(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
687 | // log("getPa tientCurre ntVitals", queryBean ); | |
688 | // | |
689 | // JMedResult Collection returnVal = null; | |
690 | // | |
691 | // try { | |
692 | // | |
693 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
694 | // return Val = port .getPatien tCurrentVi tals(query Bean); | |
695 | // } catch (E xception e ) { | |
696 | // logErr or(e); | |
697 | // throw new SOAPEx ception(e) ; | |
698 | // } | |
699 | // | |
700 | // return ret urnVal; | |
701 | // | |
702 | // } | |
703 | ||
704 | @Overr ide | |
705 | public List<Pati entDemogra phicsDetai l> getAllP atientDemo graphicDet ails(JMead owsQuery q ueryBean) throws SOA PException { | |
706 | lo g("getAllP atientDemo graphicDet ails", que ryBean); | |
707 | ||
708 | Li st<Patient Demographi csDetail> returnVal = null; | |
709 | tr y { | |
710 | ||
711 | JMeadows Data port = getJMead owsDataPor t(); | |
712 | returnVa l = port.g etPatientD emographic sDetail(qu eryBean); | |
713 | } catch (Exc eption e) { | |
714 | logError (e); | |
715 | throw ne w SOAPExce ption(e); | |
716 | } | |
717 | re turn retur nVal; | |
718 | } | |
719 | ||
720 | @Overr ide | |
721 | public JMedResul tCollectio n getPatie ntDemograp hics(JMead owsQuery q ueryBean) throws SOA PException { | |
722 | lo g("getPati entDemogra phics", qu eryBean); | |
723 | ||
724 | JM edResultCo llection r eturnVal = null; | |
725 | tr y { | |
726 | ||
727 | JMeadows Data port = getJMead owsDataPor t(); | |
728 | returnVa l = port.g etPatientD emographic s(queryBea n); | |
729 | } catch (Exc eption e) { | |
730 | logError (e); | |
731 | throw ne w SOAPExce ption(e); | |
732 | } | |
733 | re turn retur nVal; | |
734 | } | |
735 | ||
736 | @Overr ide | |
737 | public JMedResul tCollectio n getPatie ntProcedur es(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
738 | lo g("getPati entProcedu res", quer yBean); | |
739 | ||
740 | JM edResultCo llection r eturnVal = null; | |
741 | ||
742 | tr y { | |
743 | ||
744 | JMeadows Data port = getJMead owsDataPor t(); | |
745 | returnVa l = port.g etOutpatie ntProcedur es(queryBe an); | |
746 | } catch (Exc eption e) { | |
747 | logError (e); | |
748 | throw ne w SOAPExce ption(e); | |
749 | } | |
750 | ||
751 | re turn retur nVal; | |
752 | } | |
753 | ||
754 | ||
755 | // @Ove rride | |
756 | // publ ic Questio nnaireBean [] getPati entQuestio nnaires(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
757 | // log("getPa tientQuest ionnaires" , queryBea n); | |
758 | // | |
759 | // Questionna ireBean[] returnVal = null; | |
760 | // | |
761 | // try { | |
762 | // | |
763 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
764 | // return Val = port .getPatien tQuestionn aires(quer yBean).toA rray(new Q uestionnai reBean[0]) ; | |
765 | // } catch (E xception e ) { | |
766 | // throw new SOAPEx ception(e) ; | |
767 | // } | |
768 | // | |
769 | // return ret urnVal; | |
770 | // } | |
771 | ||
772 | @Overr ide | |
773 | public JMedResul tCollectio n getPatie ntForms(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
774 | lo g("getPati entForms", queryBean ); | |
775 | ||
776 | JM edResultCo llection r eturnVal = null; | |
777 | ||
778 | tr y { | |
779 | ||
780 | JMeadows Data port = getJMead owsDataPor t(); | |
781 | returnVa l = port.g etPatientF orms(query Bean); | |
782 | } catch (Exc eption e) { | |
783 | logError (e); | |
784 | throw ne w SOAPExce ption(e); | |
785 | } | |
786 | ||
787 | re turn retur nVal; | |
788 | } | |
789 | ||
790 | @Overr ide | |
791 | public JMedResul tCollectio n getPatie ntDischarg eSummaries (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
792 | lo g("getPati entDischar geSummarie s", queryB ean); | |
793 | ||
794 | JM edResultCo llection r eturnVal = null; | |
795 | ||
796 | tr y { | |
797 | ||
798 | JMeadows Data port = getJMead owsDataPor t(); | |
799 | returnVa l = port.g etPatientD ischargeSu mmaries(qu eryBean); | |
800 | } catch (Exc eption e) { | |
801 | logError (e); | |
802 | throw ne w SOAPExce ption(e); | |
803 | } | |
804 | ||
805 | re turn retur nVal; | |
806 | } | |
807 | ||
808 | @Overr ide | |
809 | public JMedResul tCollectio n getPatie ntAdvanceD irectives( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
810 | lo g("getPati entAdvance Directives ", queryBe an); | |
811 | ||
812 | JM edResultCo llection r eturnVal = null; | |
813 | ||
814 | tr y { | |
815 | ||
816 | JMeadows Data port = getJMead owsDataPor t(); | |
817 | returnVa l = port.g etPatientA dvanceDire ctives(que ryBean); | |
818 | } catch (Exc eption e) { | |
819 | logError (e); | |
820 | throw ne w SOAPExce ption(e); | |
821 | } | |
822 | ||
823 | re turn retur nVal; | |
824 | } | |
825 | ||
826 | ||
827 | @Overr ide | |
828 | public JMedResul tCollectio n getPatie ntImmuniza tions(JMea dowsQuery queryBean) throws SO APExceptio n { | |
829 | lo g("getPati entImmuniz ations", q ueryBean); | |
830 | ||
831 | JM edResultCo llection r eturnVal = null; | |
832 | tr y { | |
833 | ||
834 | JMeadows Data port = getJMead owsDataPor t(); | |
835 | returnVa l = port.g etPatientI mmunizatio ns(queryBe an); | |
836 | } catch (Exc eption e) { | |
837 | logError (e); | |
838 | throw ne w SOAPExce ption(e); | |
839 | } | |
840 | re turn retur nVal; | |
841 | } | |
842 | ||
843 | @Overr ide | |
844 | public JMedResul tCollectio n getPatie ntInsuranc es(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
845 | lo g("getPati entInsuran ces", quer yBean); | |
846 | ||
847 | JM edResultCo llection r eturnVal = null; | |
848 | ||
849 | tr y { | |
850 | JMeadows Data port = getJMead owsDataPor t(); | |
851 | returnVa l = port.g etPatientI nsurances( queryBean) ; | |
852 | ||
853 | } catch (Exc eption e) { | |
854 | logError (e); | |
855 | throw ne w SOAPExce ption(e); | |
856 | } | |
857 | ||
858 | re turn retur nVal; | |
859 | } | |
860 | ||
861 | ||
862 | @Overr ide | |
863 | public JMedResul tCollectio n getPatie ntLabs(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
864 | lo g("getPati entLabs", queryBean) ; | |
865 | ||
866 | JM edResultCo llection r eturnVal = null; | |
867 | tr y { | |
868 | ||
869 | JMeadows Data port = getJMead owsDataPor t(); | |
870 | returnVa l = port.g etPatientL abs(queryB ean); | |
871 | } catch (Exc eption e) { | |
872 | logError (e); | |
873 | throw ne w SOAPExce ption(e); | |
874 | } | |
875 | ||
876 | re turn retur nVal; | |
877 | } | |
878 | ||
879 | @Overr ide | |
880 | public FreeTextR eport getP atientLabR eport(JMea dowsQuery queryBean) throws SO APExceptio n { | |
881 | lo g("getPati entLabRepo rt", query Bean); | |
882 | ||
883 | Fr eeTextRepo rt returnV al = null; | |
884 | tr y { | |
885 | ||
886 | JMeadows Data port = getJMead owsDataPor t(); | |
887 | returnVa l = port.g etPatientL abReport(q ueryBean); | |
888 | } catch (Exc eption e) { | |
889 | logError (e); | |
890 | throw ne w SOAPExce ption(e); | |
891 | } | |
892 | ||
893 | re turn retur nVal; | |
894 | } | |
895 | ||
896 | @Overr ide | |
897 | public LabResult [] getPati entLabTest Results(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
898 | lo g("getPati entLabTest Results", queryBean) ; | |
899 | ||
900 | La bResult[] returnVal = null; | |
901 | tr y { | |
902 | ||
903 | JMeadows Data port = getJMead owsDataPor t(); | |
904 | returnVa l = port.g etPatientL abTestResu lts(queryB ean).toArr ay(new Lab Result[0]) ; | |
905 | } catch (Exc eption e) { | |
906 | logError (e); | |
907 | throw ne w SOAPExce ption(e); | |
908 | } | |
909 | ||
910 | re turn retur nVal; | |
911 | } | |
912 | ||
913 | @Overr ide | |
914 | public JMedResul tCollectio n getPatie ntLabResul ts(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
915 | lo g("getPati entLabResu lts", quer yBean); | |
916 | ||
917 | JM edResultCo llection r eturnVal = null; | |
918 | tr y { | |
919 | ||
920 | JMeadows Data port = getJMead owsDataPor t(); | |
921 | returnVa l = port.g etPatientL abResults( queryBean) ; | |
922 | } catch (Exc eption e) { | |
923 | logError (e); | |
924 | throw ne w SOAPExce ption(e); | |
925 | } | |
926 | ||
927 | re turn retur nVal; | |
928 | } | |
929 | ||
930 | @Overr ide | |
931 | public JMedResul tCollectio n getPatie ntMedicati ons(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
932 | lo g("getPati entMedicat ions", que ryBean); | |
933 | ||
934 | JM edResultCo llection r eturnVal = null; | |
935 | tr y { | |
936 | ||
937 | JMeadows Data port = getJMead owsDataPor t(); | |
938 | returnVa l = port.g etPatientM edications (queryBean ); | |
939 | } catch (Exc eption e) { | |
940 | logError (e); | |
941 | throw ne w SOAPExce ption(e); | |
942 | } | |
943 | ||
944 | re turn retur nVal; | |
945 | } | |
946 | ||
947 | // publ ic Medicat ion[] getP atientMedi cationsNVA (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
948 | // log("getPa tientMedic ationsNVA" , queryBea n); | |
949 | // | |
950 | // Medication [] returnV al = null; | |
951 | // try { | |
952 | // | |
953 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
954 | // return Val = port .getPatien tMedicatio nsNVA(quer yBean).toA rray(new M edication[ 0]); | |
955 | // } catch (E xception e ) { | |
956 | // throw new SOAPEx ception(e) ; | |
957 | // } | |
958 | // return ret urnVal; | |
959 | // | |
960 | // } | |
961 | ||
962 | @Overr ide | |
963 | public JMedResul tCollectio n getPatie ntOrders(J MeadowsQue ry queryBe an) throws SOAPExcep tion { | |
964 | lo g("getPati entOrders" , queryBea n); | |
965 | ||
966 | JM edResultCo llection r eturnVal = null; | |
967 | ||
968 | tr y { | |
969 | ||
970 | JMeadows Data port = getJMead owsDataPor t(); | |
971 | returnVa l = port.g etPatientO rders(quer yBean); | |
972 | } catch (Exc eption e) { | |
973 | logError (e); | |
974 | throw ne w SOAPExce ption(e); | |
975 | } | |
976 | ||
977 | re turn retur nVal; | |
978 | } | |
979 | ||
980 | @Overr ide | |
981 | public JMedResul tCollectio n getPatie ntProblemL ist(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
982 | lo g("getPati entProblem List", que ryBean); | |
983 | ||
984 | JM edResultCo llection r eturnVal = null; | |
985 | ||
986 | tr y { | |
987 | ||
988 | JMeadows Data port = getJMead owsDataPor t(); | |
989 | returnVa l = port.g etPatientP roblemList (queryBean ); | |
990 | } catch (Exc eption e) { | |
991 | logError (e); | |
992 | throw ne w SOAPExce ption(e); | |
993 | } | |
994 | ||
995 | re turn retur nVal; | |
996 | } | |
997 | ||
998 | // pu blic Proce dure[] get PatientPro cedures(JM eadowsQuer y queryBea n) throws SOAPExcept ion | |
999 | // { | |
1000 | // Proc edure[] re turnVal = null; | |
1001 | // | |
1002 | // try { | |
1003 | // | |
1004 | // JMeadows Data port = getJMead owsDataPor t(); | |
1005 | // returnVa l = port.g etPatientP rocedures( queryBean) .toArray(n ew Procedu re[0]); | |
1006 | // } | |
1007 | // catch (Exception e) | |
1008 | // { | |
1009 | // throw ne w SOAPExce ption(e); | |
1010 | // } | |
1011 | // | |
1012 | // return ret urnVal; | |
1013 | // | |
1014 | // } | |
1015 | ||
1016 | @Overr ide | |
1017 | public JMedResul tCollectio n getPatie ntProgress Notes(JMea dowsQuery queryBean) throws SO APExceptio n { | |
1018 | lo g("getPati entProgres sNotes", q ueryBean); | |
1019 | ||
1020 | JM edResultCo llection r eturnVal = null; | |
1021 | ||
1022 | tr y { | |
1023 | ||
1024 | JMeadows Data port = getJMead owsDataPor t(); | |
1025 | returnVa l = port.g etPatientP rogressNot es(queryBe an); | |
1026 | } catch (Exc eption e) { | |
1027 | logError (e); | |
1028 | throw ne w SOAPExce ption(e); | |
1029 | } | |
1030 | ||
1031 | re turn retur nVal; | |
1032 | } | |
1033 | ||
1034 | /** | |
1035 | * Fet ches a BHI E note ima ge. | |
1036 | * | |
1037 | * @pa ram queryB ean requir ed params: provider, itemid (c ontaining bhie note event id) | |
1038 | * @re turn Note image | |
1039 | * @th rows javax .xml.soap. SOAPExcept ion if an error occu rs. | |
1040 | */ | |
1041 | @Overr ide | |
1042 | public NoteImage getBHIENo teImage(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
1043 | lo g("getBHIE NoteImage" , queryBea n); | |
1044 | ||
1045 | tr y { | |
1046 | return g etJMeadows DataPort(t rue).getBH IENoteImag e(queryBea n); | |
1047 | ||
1048 | } catch (Exc eption e) { | |
1049 | logError (e); | |
1050 | throw ne w SOAPExce ption(e); | |
1051 | } | |
1052 | ||
1053 | } | |
1054 | ||
1055 | /** | |
1056 | * Fet ches a BHI E note ima ge. | |
1057 | * | |
1058 | * @pa ram queryB ean requir ed params: provider, itemid (c ontaining bhie note event id) | |
1059 | * @re turn Note image | |
1060 | * @th rows javax .xml.soap. SOAPExcept ion if an error occu rs. | |
1061 | */ | |
1062 | @Overr ide | |
1063 | public NoteImage getBHIENo teAttachme nt(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1064 | lo g("getBHIE NoteImage" , queryBea n); | |
1065 | ||
1066 | tr y { | |
1067 | return g etJMeadows DataPort(t rue).getBH IENoteAtta chment(que ryBean); | |
1068 | ||
1069 | } catch (Exc eption e) { | |
1070 | logError (e); | |
1071 | throw ne w SOAPExce ption(e); | |
1072 | } | |
1073 | ||
1074 | } | |
1075 | ||
1076 | @Overr ide | |
1077 | public JMedResul tCollectio n getPatie ntRads(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
1078 | lo g("getPati entRads", queryBean) ; | |
1079 | ||
1080 | JM edResultCo llection r eturnVal = null; | |
1081 | ||
1082 | tr y { | |
1083 | ||
1084 | JMeadows Data port = getJMead owsDataPor t(); | |
1085 | returnVa l = port.g etPatientR ads(queryB ean); | |
1086 | } catch (Exc eption e) { | |
1087 | logError (e); | |
1088 | throw ne w SOAPExce ption(e); | |
1089 | } | |
1090 | ||
1091 | re turn retur nVal; | |
1092 | } | |
1093 | ||
1094 | @Overr ide | |
1095 | public JMedResul tCollectio n getPatie ntVitals(J MeadowsQue ry queryBe an) throws SOAPExcep tion { | |
1096 | lo g("getPati entVitals" , queryBea n); | |
1097 | ||
1098 | JM edResultCo llection r eturnVal = null; | |
1099 | ||
1100 | tr y { | |
1101 | ||
1102 | JMeadows Data port = getJMead owsDataPor t(); | |
1103 | returnVa l = port.g etPatientV itals(quer yBean); | |
1104 | } catch (Exc eption e) { | |
1105 | logError (e); | |
1106 | throw ne w SOAPExce ption(e); | |
1107 | } | |
1108 | ||
1109 | re turn retur nVal; | |
1110 | } | |
1111 | ||
1112 | // public Pre scription getPrescri ptionFills (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
1113 | // log("getPr escription Fills", qu eryBean); | |
1114 | // | |
1115 | // Prescripti on returnV al = null; | |
1116 | // | |
1117 | // try { | |
1118 | // | |
1119 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
1120 | // return Val = port .getPrescr iptionFill s(queryBea n); | |
1121 | // } catch (E xception e ) { | |
1122 | // throw new SOAPEx ception(e) ; | |
1123 | // } | |
1124 | // | |
1125 | // return ret urnVal; | |
1126 | // | |
1127 | // } | |
1128 | @Overr ide | |
1129 | public JMedResul tCollectio n getPatie ntHistorie s(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1130 | lo g("getPati entHistori es", query Bean); | |
1131 | ||
1132 | JM edResultCo llection r eturnVal = null; | |
1133 | ||
1134 | tr y { | |
1135 | ||
1136 | JMeadows Data port = getJMead owsDataPor t(); | |
1137 | returnVa l = port.g etPatientH istory(que ryBean); | |
1138 | } catch (Exc eption e) { | |
1139 | logError (e); | |
1140 | throw ne w SOAPExce ption(e); | |
1141 | } | |
1142 | ||
1143 | re turn retur nVal; | |
1144 | } | |
1145 | ||
1146 | @Overr ide | |
1147 | public JMedResul tCollectio n getVLERD ocumentLis t(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1148 | lo g("getVLER DocumentLi st", query Bean); | |
1149 | ||
1150 | JM edResultCo llection r eturnVal = null; | |
1151 | ||
1152 | tr y { | |
1153 | ||
1154 | JMeadows Data port = getJMead owsDataPor t(); | |
1155 | returnVa l = port.g etVLERDocu mentList(q ueryBean); | |
1156 | } catch (Exc eption e) { | |
1157 | logError (e); | |
1158 | throw ne w SOAPExce ption(e); | |
1159 | } | |
1160 | ||
1161 | re turn retur nVal; | |
1162 | } | |
1163 | ||
1164 | @Overr ide | |
1165 | public JMedResul tCollectio n getDODVL ERDocument List(JMead owsQuery q ueryBean) throws SOA PException { | |
1166 | lo g("getDODV LERDocumen tList", qu eryBean); | |
1167 | ||
1168 | JM edResultCo llection r eturnVal = null; | |
1169 | ||
1170 | tr y { | |
1171 | ||
1172 | JMeadows Data port = getJMead owsDataPor t(); | |
1173 | returnVa l = port.g etDODVLERD ocumentLis t(queryBea n); | |
1174 | } catch (Exc eption e) { | |
1175 | logError (e); | |
1176 | throw ne w SOAPExce ption(e); | |
1177 | } | |
1178 | ||
1179 | re turn retur nVal; | |
1180 | } | |
1181 | ||
1182 | @Overr ide | |
1183 | public VlerDocum ent getVLE RDocument( JMeadowsQu ery queryB ean, VlerD ocument vD oc) throws SOAPExcep tion { | |
1184 | lo g("getVLER Document", queryBean ); | |
1185 | ||
1186 | Vl erDocument returnVal = null; | |
1187 | ||
1188 | tr y { | |
1189 | ||
1190 | JMeadows Data port = getJMead owsDataPor t(); | |
1191 | returnVa l = port.g etVLERDocu ment(vDoc, queryBean ); | |
1192 | } catch (Exc eption e) { | |
1193 | logError (e); | |
1194 | throw ne w SOAPExce ption(e); | |
1195 | } | |
1196 | ||
1197 | re turn retur nVal; | |
1198 | } | |
1199 | ||
1200 | @Overr ide | |
1201 | public JMedResul tCollectio n getDODVL ERPatientC CDA(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
1202 | lo g("getDODV LERPatient CCDA", que ryBean); | |
1203 | ||
1204 | JM edResultCo llection r eturnVal = null; | |
1205 | ||
1206 | tr y { | |
1207 | ||
1208 | JMeadows Data port = getJMead owsDataPor t(); | |
1209 | returnVa l = port.g etDODVLERP atientCCDA (queryBean ); | |
1210 | } catch (Exc eption e) { | |
1211 | logError (e); | |
1212 | throw ne w SOAPExce ption(e); | |
1213 | } | |
1214 | ||
1215 | re turn retur nVal; | |
1216 | } | |
1217 | ||
1218 | @Overr ide | |
1219 | public Vlerccda[ ] getDASVL ERPatientC CDA(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
1220 | lo g("getDASV LERPatient CCDA", que ryBean); | |
1221 | ||
1222 | Vl erccda[] r eturnVal = null; | |
1223 | ||
1224 | tr y { | |
1225 | ||
1226 | JMeadows Data port = getJMead owsDataPor t(); | |
1227 | returnVa l = port.g etDASPatie ntData(que ryBean).to Array(new Vlerccda[0 ]); | |
1228 | } catch (Exc eption e) { | |
1229 | logError (e); | |
1230 | throw ne w SOAPExce ption(e); | |
1231 | } | |
1232 | ||
1233 | re turn retur nVal; | |
1234 | } | |
1235 | ||
1236 | ||
1237 | @Overr ide | |
1238 | public ProblemDe tail getPr oblemDetai l(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1239 | lo g("getProb lemDetail" , queryBea n); | |
1240 | ||
1241 | Pr oblemDetai l returnVa l = null; | |
1242 | ||
1243 | tr y { | |
1244 | ||
1245 | JMeadows Data port = getJMead owsDataPor t(); | |
1246 | returnVa l = port.g etProblemD etail(quer yBean); | |
1247 | } catch (Exc eption e) { | |
1248 | logError (e); | |
1249 | throw ne w SOAPExce ption(e); | |
1250 | } | |
1251 | ||
1252 | re turn retur nVal; | |
1253 | } | |
1254 | ||
1255 | @Overr ide | |
1256 | public FreeTextR eport getP rogressNot e(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1257 | lo g("getProg ressNote", queryBean ); | |
1258 | ||
1259 | Fr eeTextRepo rt returnV al = null; | |
1260 | ||
1261 | tr y { | |
1262 | ||
1263 | JMeadows Data port = getJMead owsDataPor t(); | |
1264 | returnVa l = port.g etProgress Note(query Bean); | |
1265 | } catch (Exc eption e) { | |
1266 | logError (e); | |
1267 | throw ne w SOAPExce ption(e); | |
1268 | } | |
1269 | ||
1270 | re turn retur nVal; | |
1271 | } | |
1272 | ||
1273 | @Overr ide | |
1274 | public JMedResul tCollectio n getMhsGe nesisDocum ents(JMead owsQuery q ueryBean) throws SOA PException { | |
1275 | lo g("getMhsG enesisDocu ments", qu eryBean); | |
1276 | ||
1277 | JM edResultCo llection r eturnVal = null; | |
1278 | ||
1279 | tr y { | |
1280 | JMeadows Data port = getJMead owsDataPor t(); | |
1281 | returnVa l = port.g etMhsGenes isDocument s(queryBea n); | |
1282 | } catch (Exc eption e) { | |
1283 | logError (e); | |
1284 | throw ne w SOAPExce ption(e); | |
1285 | } | |
1286 | ||
1287 | re turn retur nVal; | |
1288 | } | |
1289 | ||
1290 | @Overr ide | |
1291 | public User getP roviderPro file(JMead owsQuery q ueryBean) throws SOA PException { | |
1292 | lo g("getProv iderProfil e", queryB ean); | |
1293 | ||
1294 | Us er returnV al = null; | |
1295 | tr y { | |
1296 | ||
1297 | JMeadows Data port = getJMead owsDataPor t(); | |
1298 | returnVa l = port.g etProvider Profile(qu eryBean); | |
1299 | ||
1300 | } catch (Exc eption e) { | |
1301 | logError (e); | |
1302 | throw ne w SOAPExce ption(e); | |
1303 | } | |
1304 | re turn retur nVal; | |
1305 | } | |
1306 | ||
1307 | @Overr ide | |
1308 | public Radiology Report get RadiologyR eport(JMea dowsQuery queryBean) throws SO APExceptio n { | |
1309 | lo g("getRadi ologyRepor t", queryB ean); | |
1310 | ||
1311 | Ra diologyRep ort return Val = null ; | |
1312 | ||
1313 | tr y { | |
1314 | ||
1315 | JMeadows Data port = getJMead owsDataPor t(); | |
1316 | returnVa l = port.g etRadiolog yReport(qu eryBean); | |
1317 | } catch (Exc eption e) { | |
1318 | logError (e); | |
1319 | throw ne w SOAPExce ption(e); | |
1320 | } | |
1321 | ||
1322 | re turn retur nVal; | |
1323 | ||
1324 | } | |
1325 | ||
1326 | @Overr ide | |
1327 | public Alert[] g etUserAler ts(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1328 | lo g("getUser Alerts", q ueryBean); | |
1329 | ||
1330 | Al ert[] retu rnVal = nu ll; | |
1331 | ||
1332 | tr y { | |
1333 | ||
1334 | JMeadows Data port = getJMead owsDataPor t(); | |
1335 | returnVa l = port.g etUserAler ts(queryBe an).toArra y(new Aler t[0]); | |
1336 | } catch (Exc eption e) { | |
1337 | logError (e); | |
1338 | throw ne w SOAPExce ption(e); | |
1339 | } | |
1340 | re turn retur nVal; | |
1341 | ||
1342 | } | |
1343 | ||
1344 | @Overr ide | |
1345 | public FreeTextR eport getV isitNotes( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
1346 | lo g("getVisi tNotes", q ueryBean); | |
1347 | ||
1348 | Fr eeTextRepo rt returnV al = null; | |
1349 | ||
1350 | tr y { | |
1351 | ||
1352 | JMeadows Data port = getJMead owsDataPor t(); | |
1353 | returnVa l = port.g etVisitNot es(queryBe an); | |
1354 | } catch (Exc eption e) { | |
1355 | logError (e); | |
1356 | throw ne w SOAPExce ption(e); | |
1357 | } | |
1358 | re turn retur nVal; | |
1359 | } | |
1360 | ||
1361 | @Overr ide | |
1362 | public FreeTextR eport getP atientEnco untersRepo rt(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1363 | lo g("getPati entEncount ersReport" , queryBea n); | |
1364 | ||
1365 | Fr eeTextRepo rt returnV al = null; | |
1366 | ||
1367 | tr y { | |
1368 | ||
1369 | JMeadows Data port = getJMead owsDataPor t(); | |
1370 | returnVa l = port.g etPatientE ncountersR eport(quer yBean); | |
1371 | } catch (Exc eption e) { | |
1372 | logError (e); | |
1373 | throw ne w SOAPExce ption(e); | |
1374 | } | |
1375 | re turn retur nVal; | |
1376 | } | |
1377 | ||
1378 | @Overr ide | |
1379 | public Patient[] lookupPat ient(JMead owsQuery q ueryBean) throws SOA PException { | |
1380 | lo g("lookupP atient", q ueryBean); | |
1381 | ||
1382 | Pa tient[] re turnVal = null; | |
1383 | ||
1384 | tr y { | |
1385 | ||
1386 | JMeadows Data port = getJMead owsDataPor t(); | |
1387 | returnVa l = port.l ookupPatie nt(queryBe an).toArra y(new Pati ent[0]); | |
1388 | } catch (Exc eption e) { | |
1389 | logError (e); | |
1390 | throw ne w SOAPExce ption(e); | |
1391 | } | |
1392 | ||
1393 | re turn retur nVal; | |
1394 | ||
1395 | } | |
1396 | ||
1397 | @Overr ide | |
1398 | public ResponseP atientQuer y lookupPa tientPDWS( PdwsQueryB ean queryB ean) throw s SOAPExce ption { | |
1399 | lo g("lookupP atientPDWS "); | |
1400 | ||
1401 | Re sponsePati entQuery r eturnVal = null; | |
1402 | ||
1403 | tr y { | |
1404 | JMeadows Data port = getJMead owsDataPor t(); | |
1405 | returnVa l = port.l ookupPatie ntPDWS(que ryBean); | |
1406 | } catch (Exc eption e) { | |
1407 | logError (e); | |
1408 | throw ne w SOAPExce ption(e); | |
1409 | } | |
1410 | ||
1411 | re turn retur nVal; | |
1412 | } | |
1413 | ||
1414 | @Overr ide | |
1415 | public ResponseP atientQuer y lookupPa tientMVI(P dwsQueryBe an queryBe an) throws SOAPExcep tion { | |
1416 | lo g("lookupP atientMVI" ); | |
1417 | ||
1418 | Re sponsePati entQuery r eturnVal = null; | |
1419 | ||
1420 | tr y { | |
1421 | JMeadows Data port = getJMead owsDataPor t(); | |
1422 | returnVa l = port.l ookupPatie ntMVI(quer yBean); | |
1423 | } catch (Exc eption e) { | |
1424 | logError (e); | |
1425 | throw ne w SOAPExce ption(e); | |
1426 | } | |
1427 | ||
1428 | re turn retur nVal; | |
1429 | } | |
1430 | ||
1431 | @Overr ide | |
1432 | public Patient s electPatie nt(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1433 | lo g("selectP atient", q ueryBean); | |
1434 | ||
1435 | Pa tient retu rnVal = nu ll; | |
1436 | ||
1437 | tr y { | |
1438 | ||
1439 | JMeadows Data port = getJMead owsDataPor t(); | |
1440 | returnVa l = port.s electPatie nt(queryBe an); | |
1441 | } catch (Exc eption e) { | |
1442 | logError (e); | |
1443 | throw ne w SOAPExce ption(e); | |
1444 | } | |
1445 | ||
1446 | re turn retur nVal; | |
1447 | ||
1448 | } | |
1449 | ||
1450 | @Overr ide | |
1451 | public ResponseP atientSele ct selectP atientMVI( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
1452 | lo g("selectP atientMVI" ); | |
1453 | ||
1454 | Re sponsePati entSelect returnVal = null; | |
1455 | ||
1456 | tr y { | |
1457 | JMeadows Data port = getJMead owsDataPor t(); | |
1458 | returnVa l = port.s electPatie ntMVI(quer yBean); | |
1459 | } catch (Exc eption e) { | |
1460 | logError (e); | |
1461 | throw ne w SOAPExce ption(e); | |
1462 | } | |
1463 | ||
1464 | re turn retur nVal; | |
1465 | } | |
1466 | ||
1467 | @Overr ide | |
1468 | public void sele ctPatientF orVASensit ive(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
1469 | lo g("selectP atientForV ASensitive "); | |
1470 | ||
1471 | tr y { | |
1472 | JMeadows Data port = getJMead owsDataPor t(); | |
1473 | port.sel ectPatient ForVASensi tive(query Bean); | |
1474 | } catch (Exc eption e) { | |
1475 | logError (e); | |
1476 | throw ne w SOAPExce ption(e); | |
1477 | } | |
1478 | } | |
1479 | ||
1480 | @Overr ide | |
1481 | public Alert[] g etVASensit ivePatient Alerts(JMe adowsQuery queryBean ) throws S OAPExcepti on{ | |
1482 | lo g("getVASe nsitivePat ientAlerts "); | |
1483 | ||
1484 | Al ert[] retu rnVal = nu ll; | |
1485 | ||
1486 | tr y { | |
1487 | JMeadows Data port = getJMead owsDataPor t(); | |
1488 | returnVa l = port.g etVASensit ivePatient Alerts(que ryBean).to Array(new Alert[0]); | |
1489 | } catch (Exc eption e) { | |
1490 | logError (e); | |
1491 | throw ne w SOAPExce ption(e); | |
1492 | } | |
1493 | re turn retur nVal; | |
1494 | ||
1495 | } | |
1496 | ||
1497 | ||
1498 | @Overr ide | |
1499 | public void audi tVARestric tedAccess( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
1500 | lo g("auditVA Restricted Access"); | |
1501 | ||
1502 | tr y { | |
1503 | JMeadows Data port = getJMead owsDataPor t(); | |
1504 | port.aud itVARestri ctedAccess (queryBean ); | |
1505 | } catch (Exc eption e) { | |
1506 | logError (e); | |
1507 | throw ne w SOAPExce ption(e); | |
1508 | } | |
1509 | } | |
1510 | ||
1511 | @Overr ide | |
1512 | public void audi tSensitive RecordAcce ss(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1513 | lo g("auditSe nsitiveRec ordAccess" ); | |
1514 | ||
1515 | tr y { | |
1516 | JMeadows Data port = getJMead owsDataPor t(); | |
1517 | port.aud itSensitiv eRecordAcc ess(queryB ean); | |
1518 | } catch (Exc eption e) { | |
1519 | logError (e); | |
1520 | throw ne w SOAPExce ption(e); | |
1521 | } | |
1522 | } | |
1523 | ||
1524 | @Overr ide | |
1525 | public void logA udit(Strin g siteId, String sit eMoniker, String sit eAgency, S tring reco rdID, Stri ng userId, String pr oviderId, String use rNPI, | |
1526 | Strin g userName , String p atId, Stri ng categor y, String requesting App, | |
1527 | Strin g startDat e, String endDate, S tring info , String c ardId, Str ing emailA ddress, | |
1528 | Strin g complexT ransaction ) throws S OAPExcepti on { | |
1529 | ||
1530 | lo g("logAudi t"); | |
1531 | ||
1532 | tr y { | |
1533 | JMeadows Data port = getJMead owsDataPor t(); | |
1534 | port.log Audit(site Id, siteMo niker, sit eAgency, r ecordID, u serId, pro viderId, u serNPI, us erName, pa tId, | |
1535 | category, appName, s tartDate, endDate, i nfo, cardI d, emailAd dress, com plexTransa ction); | |
1536 | } catch (Exc eption e) { | |
1537 | logError (e); | |
1538 | throw ne w SOAPExce ption(e); | |
1539 | } | |
1540 | ||
1541 | } | |
1542 | ||
1543 | // @Ove rride | |
1544 | // publ ic void lo gAudit(Str ing siteId , String u serId, Str ing provid erId, Stri ng userNPI , | |
1545 | // Str ing userNa me, String patId, St ring categ ory, | |
1546 | // Str ing startD ate, Strin g endDate) throws SO APExceptio n { | |
1547 | // | |
1548 | // log("logAu dit"); | |
1549 | // | |
1550 | // try { | |
1551 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
1552 | // port.l ogAudit(si teId, user Id, provid erId, user NPI, userN ame, patId , category , appName, startDate , endDate) ; | |
1553 | // } catch (E xception e ) { | |
1554 | // throw new SOAPEx ception(e) ; | |
1555 | // } | |
1556 | // | |
1557 | // } | |
1558 | ||
1559 | @Overr ide | |
1560 | public PatientAd mission[] getProvide rAdmission s(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1561 | ||
1562 | lo g("getProv iderAdmiss ions", que ryBean); | |
1563 | ||
1564 | Pa tientAdmis sion[] ret urnVal = n ull; | |
1565 | tr y { | |
1566 | JMeadows Data port = getJMead owsDataPor t(); | |
1567 | returnVa l = port.g etProvider Admissions (queryBean ).toArray( new Patien tAdmission [0]); | |
1568 | } catch (Exc eption e) { | |
1569 | logError (e); | |
1570 | throw ne w SOAPExce ption(e); | |
1571 | } | |
1572 | re turn retur nVal; | |
1573 | } | |
1574 | ||
1575 | @Overr ide | |
1576 | public PatientAp pointments [] getProv iderAppoin tments(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
1577 | lo g("getProv iderAppoin tments", q ueryBean); | |
1578 | ||
1579 | Pa tientAppoi ntments[] returnVal = null; | |
1580 | tr y { | |
1581 | JMeadows Data port = getJMead owsDataPor t(); | |
1582 | returnVa l = port.g etProvider Appointmen ts(queryBe an).toArra y(new Pati entAppoint ments[0]); | |
1583 | } catch (Exc eption e) { | |
1584 | logError (e); | |
1585 | throw ne w SOAPExce ption(e); | |
1586 | } | |
1587 | re turn retur nVal; | |
1588 | } | |
1589 | ||
1590 | @Overr ide | |
1591 | public Consult[] getProvid erConsults Received(J MeadowsQue ry queryBe an) throws SOAPExcep tion { | |
1592 | lo g("getProv iderConsul tsReceived ", queryBe an); | |
1593 | ||
1594 | Co nsult[] re turnVal = null; | |
1595 | tr y { | |
1596 | JMeadows Data port = getJMead owsDataPor t(); | |
1597 | returnVa l = port.g etProvider ConsultsRe ceived(que ryBean).to Array(new Consult[0] ); | |
1598 | } catch (Exc eption e) { | |
1599 | logError (e); | |
1600 | throw ne w SOAPExce ption(e); | |
1601 | } | |
1602 | re turn retur nVal; | |
1603 | } | |
1604 | ||
1605 | @Overr ide | |
1606 | public Consult[] getProvid erConsults Requested( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
1607 | lo g("getProv iderConsul tsRequeste d", queryB ean); | |
1608 | ||
1609 | Co nsult[] re turnVal = null; | |
1610 | tr y { | |
1611 | JMeadows Data port = getJMead owsDataPor t(); | |
1612 | returnVa l = port.g etProvider ConsultsRe quested(qu eryBean).t oArray(new Consult[0 ]); | |
1613 | } catch (Exc eption e) { | |
1614 | logError (e); | |
1615 | throw ne w SOAPExce ption(e); | |
1616 | } | |
1617 | re turn retur nVal; | |
1618 | } | |
1619 | ||
1620 | @Overr ide | |
1621 | public LabResult [] getProv iderLabAbn ormalResul ts(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1622 | lo g("getProv iderLabAbn ormalResul ts", query Bean); | |
1623 | ||
1624 | La bResult[] returnVal = null; | |
1625 | tr y { | |
1626 | JMeadows Data port = getJMead owsDataPor t(); | |
1627 | returnVa l = port.g etProvider LabAbnorma lResults(q ueryBean). toArray(ne w LabResul t[0]); | |
1628 | } catch (Exc eption e) { | |
1629 | logError (e); | |
1630 | throw ne w SOAPExce ption(e); | |
1631 | } | |
1632 | re turn retur nVal; | |
1633 | } | |
1634 | ||
1635 | @Overr ide | |
1636 | public Order[] g etProvider OrdersPend ing(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
1637 | lo g("getProv iderOrders Pending", queryBean) ; | |
1638 | ||
1639 | Or der[] retu rnVal = nu ll; | |
1640 | tr y { | |
1641 | JMeadows Data port = getJMead owsDataPor t(); | |
1642 | returnVa l = port.g etProvider OrdersPend ing(queryB ean).toArr ay(new Ord er[0]); | |
1643 | } catch (Exc eption e) { | |
1644 | logError (e); | |
1645 | throw ne w SOAPExce ption(e); | |
1646 | } | |
1647 | re turn retur nVal; | |
1648 | } | |
1649 | ||
1650 | @Overr ide | |
1651 | public Order[] g etProvider OrdersResu lted(JMead owsQuery q ueryBean) throws SOA PException { | |
1652 | lo g("getProv iderOrders Resulted", queryBean ); | |
1653 | ||
1654 | Or der[] retu rnVal = nu ll; | |
1655 | tr y { | |
1656 | JMeadows Data port = getJMead owsDataPor t(); | |
1657 | returnVa l = port.g etProvider OrdersResu lted(query Bean).toAr ray(new Or der[0]); | |
1658 | } catch (Exc eption e) { | |
1659 | logError (e); | |
1660 | throw ne w SOAPExce ption(e); | |
1661 | } | |
1662 | re turn retur nVal; | |
1663 | } | |
1664 | ||
1665 | @Overr ide | |
1666 | public ProgressN ote[] getP roviderUns ignedNotes (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
1667 | lo g("getProv iderUnsign edNotes", queryBean) ; | |
1668 | ||
1669 | Pr ogressNote [] returnV al = null; | |
1670 | tr y { | |
1671 | JMeadows Data port = getJMead owsDataPor t(); | |
1672 | returnVa l = port.g etProvider UnsignedNo tes(queryB ean).toArr ay(new Pro gressNote[ 0]); | |
1673 | } catch (Exc eption e) { | |
1674 | logError (e); | |
1675 | throw ne w SOAPExce ption(e); | |
1676 | } | |
1677 | re turn retur nVal; | |
1678 | } | |
1679 | ||
1680 | @Overr ide | |
1681 | public boolean s etJanusGUI Config(JMe adowsQuery queryBean , String c fg) throws SOAPExcep tion { | |
1682 | lo g("setJanu sGUIConfig ", queryBe an); | |
1683 | ||
1684 | bo olean bRet = false; | |
1685 | tr y { | |
1686 | JMeadows Data port = getJMead owsDataPor t(); | |
1687 | bRet = p ort.setJan usGUIConfi g(queryBea n, cfg); | |
1688 | } catch (Exc eption e) { | |
1689 | logError (e); | |
1690 | throw ne w SOAPExce ption(e); | |
1691 | } | |
1692 | re turn bRet; | |
1693 | } | |
1694 | ||
1695 | @Overr ide | |
1696 | public String ge tJanusGUIC onfig(JMea dowsQuery queryBean) throws SO APExceptio n { | |
1697 | lo g("getJanu sGUIConfig ", queryBe an); | |
1698 | ||
1699 | St ring retVa l = ""; | |
1700 | tr y { | |
1701 | JMeadows Data port = getJMead owsDataPor t(); | |
1702 | retVal = port.getJ anusGUICon fig(queryB ean); | |
1703 | } catch (Exc eption e) { | |
1704 | logError (e); | |
1705 | throw ne w SOAPExce ption(e); | |
1706 | } | |
1707 | re turn retVa l; | |
1708 | } | |
1709 | ||
1710 | @Overr ide | |
1711 | public boolean s etProvider Flags(JMea dowsQuery queryBean, String fl ags) throw s SOAPExce ption { | |
1712 | lo g("setProv iderFlags" , queryBea n); | |
1713 | ||
1714 | bo olean bRet = false; | |
1715 | tr y { | |
1716 | JMeadows Data port = getJMead owsDataPor t(); | |
1717 | bRet = p ort.setPro viderFlags (queryBean , flags); | |
1718 | } catch (Exc eption e) { | |
1719 | logError (e); | |
1720 | throw ne w SOAPExce ption(e); | |
1721 | } | |
1722 | re turn bRet; | |
1723 | } | |
1724 | ||
1725 | @Overr ide | |
1726 | public String ge tProviderF lags(JMead owsQuery q ueryBean) throws SOA PException { | |
1727 | lo g("getProv iderFlags" , queryBea n); | |
1728 | ||
1729 | St ring retVa l = ""; | |
1730 | tr y { | |
1731 | JMeadows Data port = getJMead owsDataPor t(); | |
1732 | retVal = port.getP roviderFla gs(queryBe an); | |
1733 | } catch (Exc eption e) { | |
1734 | logError (e); | |
1735 | throw ne w SOAPExce ption(e); | |
1736 | } | |
1737 | re turn retVa l; | |
1738 | } | |
1739 | ||
1740 | // @Ove rride | |
1741 | // publ ic IehrUse rProfile g etIehrUser Profile(St ring smart CardID, St ring smart CardAgency ) throws S OAPExcepti on { | |
1742 | // return get IehrUserPr ofile(smar tCardID, s martCardAg ency, ""); | |
1743 | // } | |
1744 | ||
1745 | @Overr ide | |
1746 | public IehrUserP rofile get IehrUserPr ofile(Stri ng smartCa rdID, Stri ng smartCa rdAgency, String ema ilAddress) throws SO APExceptio n { | |
1747 | Ie hrUserProf ile retVal = null; | |
1748 | tr y { | |
1749 | JMeadows Data port = getJMead owsDataPor t(); | |
1750 | retVal = port.getI ehrUserPro file(smart CardID, sm artCardAge ncy, email Address); | |
1751 | } catch (Exc eption e) { | |
1752 | logError (e); | |
1753 | throw ne w SOAPExce ption(e); | |
1754 | } | |
1755 | re turn retVa l; | |
1756 | } | |
1757 | ||
1758 | @Overr ide | |
1759 | public boolean s etIehrUser Profile(Ie hrUserProf ile userPr ofile) thr ows SOAPEx ception { | |
1760 | bo olean bRet = false; | |
1761 | tr y { | |
1762 | JMeadows Data port = getJMead owsDataPor t(); | |
1763 | bRet = p ort.setIeh rUserProfi le(userPro file); | |
1764 | } catch (Exc eption e) { | |
1765 | logError (e); | |
1766 | throw ne w SOAPExce ption(e); | |
1767 | } | |
1768 | re turn bRet; | |
1769 | } | |
1770 | ||
1771 | @Overr ide | |
1772 | public String ge tAppName() { | |
1773 | re turn appNa me; | |
1774 | } | |
1775 | ||
1776 | @Overr ide | |
1777 | public void setA ppName(Str ing appNam e) { | |
1778 | th is.appName = appName ; | |
1779 | } | |
1780 | ||
1781 | @Overr ide | |
1782 | public List<Site > getSites () throws SOAPExcept ion { | |
1783 | Li st<Site> r etVal = nu ll; | |
1784 | tr y { | |
1785 | JMeadows Data port = getJMead owsDataPor t(); | |
1786 | retVal = port.getS ites(); | |
1787 | } catch (Exc eption e) { | |
1788 | logError (e); | |
1789 | throw ne w SOAPExce ption(e); | |
1790 | } | |
1791 | re turn retVa l; | |
1792 | } | |
1793 | ||
1794 | @Overr ide | |
1795 | public List<Audi tEntry> ge tLoginInfo (String ca rdID, Stri ng emailAd dress) thr ows SOAPEx ception { | |
1796 | Li st<AuditEn try> retVa l = null; | |
1797 | tr y { | |
1798 | JMeadows Data port = getJMead owsDataPor t(); | |
1799 | retVal = port.getL oginInfo(c ardID, ema ilAddress) ; | |
1800 | } catch (Exc eption e) { | |
1801 | logError (e); | |
1802 | throw ne w SOAPExce ption(e); | |
1803 | } | |
1804 | re turn retVa l; | |
1805 | } | |
1806 | ||
1807 | @Overr ide | |
1808 | public String ge tServiceEr rors() thr ows SOAPEx ception { | |
1809 | St ring retVa l = null; | |
1810 | tr y { | |
1811 | JMeadows Data port = getJMead owsDataPor t(); | |
1812 | retVal = port.getS erviceErro rs(); | |
1813 | } catch (Exc eption e) { | |
1814 | logError (e); | |
1815 | throw ne w SOAPExce ption(e); | |
1816 | } | |
1817 | re turn retVa l; | |
1818 | } | |
1819 | ||
1820 | @Overr ide | |
1821 | public AuthUserI nfo getAut hUser(Auth UserInfo a uthUserInf oQuery) th rows SOAPE xception { | |
1822 | Au thUserInfo retVal = null; | |
1823 | ||
1824 | tr y { | |
1825 | JMeadows Data port = getJMead owsDataPor t(); | |
1826 | retVal = port.getA uthUser(au thUserInfo Query); | |
1827 | } catch (Exc eption e) { | |
1828 | logError (e); | |
1829 | throw ne w SOAPExce ption(e); | |
1830 | } | |
1831 | ||
1832 | re turn retVa l; | |
1833 | } | |
1834 | ||
1835 | @Overr ide | |
1836 | public List<Pati ent> getRe centlyView edPatients (String us erId) thro ws SOAPExc eption { | |
1837 | Li st<Patient > patients = null; | |
1838 | ||
1839 | tr y { | |
1840 | JMeadows Data port = getJMead owsDataPor t(); | |
1841 | patients = port.ge tRecentlyV iewedPatie nts(userId ); | |
1842 | } | |
1843 | ca tch (Excep tion e) { | |
1844 | logError (e); | |
1845 | throw ne w SOAPExce ption(e); | |
1846 | } | |
1847 | ||
1848 | re turn patie nts; | |
1849 | } | |
1850 | ||
1851 | // @Ove rride | |
1852 | // publ ic String getPatient DocumentVi xStudyView erUrl(JMea dowsQuery queryBean, PatientDo cument doc ument) thr ows SOAPEx ception { | |
1853 | // try { | |
1854 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
1855 | // return port.getP atientDocu mentVixStu dyViewerUr l(queryBea n, documen t); | |
1856 | // } catch (E xception e ) { | |
1857 | // logErr or(e); | |
1858 | // throw new SOAPEx ception(e) ; | |
1859 | // } | |
1860 | // } | |
1861 | ||
1862 | // @Ove rride | |
1863 | // publ ic String getEncount erDocument VixStudyVi ewerUrl(JM eadowsQuer y queryBea n, String documentId , String d ocumentSit eId) throw s SOAPExce ption { | |
1864 | // try { | |
1865 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
1866 | // return port.getE ncounterDo cumentVixS tudyViewer Url(queryB ean, docum entId, doc umentSiteI d); | |
1867 | // } catch (E xception e ) { | |
1868 | // logErr or(e); | |
1869 | // throw new SOAPEx ception(e) ; | |
1870 | // } | |
1871 | // } | |
1872 | ||
1873 | // @Ove rride | |
1874 | // publ ic String getRadiolo gyVixStudy ViewerUrl( JMeadowsQu ery queryB ean, Radio logyReport radiology Report) th rows SOAPE xception { | |
1875 | // try { | |
1876 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
1877 | // return port.getR adiologyVi xStudyView erUrl(quer yBean, rad iologyRepo rt); | |
1878 | // } catch (E xception e ) { | |
1879 | // logErr or(e); | |
1880 | // throw new SOAPEx ception(e) ; | |
1881 | // } | |
1882 | // } | |
1883 | ||
1884 | @Overr ide | |
1885 | public FreeTextR eport getP atientHeal thSummary( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
1886 | tr y { | |
1887 | JMeadows Data port = getJMead owsDataPor t(); | |
1888 | return p ort.getPat ientHealth Summary(qu eryBean); | |
1889 | } catch (Exc eption e) { | |
1890 | logError (e); | |
1891 | throw ne w SOAPExce ption(e); | |
1892 | } | |
1893 | } | |
1894 | ||
1895 | @Overr ide | |
1896 | public JMedResul tCollectio n getPatie ntHealthSu mmaryTypes (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
1897 | tr y { | |
1898 | JMeadows Data port = getJMead owsDataPor t(); | |
1899 | return p ort.getPat ientHealth SummaryTyp es(queryBe an); | |
1900 | } catch (Exc eption e) { | |
1901 | logError (e); | |
1902 | throw ne w SOAPExce ption(e); | |
1903 | } | |
1904 | } | |
1905 | ||
1906 | @Overr ide | |
1907 | public List<Free TextReport > getPatie ntHealthSu mmaries(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
1908 | tr y { | |
1909 | JMeadows Data port = getJMead owsDataPor t(); | |
1910 | return p ort.getPat ientHealth Summaries( queryBean) ; | |
1911 | } catch (Exc eption e) { | |
1912 | logError (e); | |
1913 | throw ne w SOAPExce ption(e); | |
1914 | } | |
1915 | } | |
1916 | ||
1917 | @Overr ide | |
1918 | public List<Pce> getPcesFo rNote(JMea dowsQuery queryBean) throws SO APExceptio n { | |
1919 | tr y { | |
1920 | JMeadows Data port = getJMead owsDataPor t(); | |
1921 | return p ort.getPce sForNote(q ueryBean); | |
1922 | } catch (Exc eption e) { | |
1923 | logError (e); | |
1924 | throw ne w SOAPExce ption(e); | |
1925 | } | |
1926 | } | |
1927 | ||
1928 | @Overr ide | |
1929 | public JMedResul tCollectio n getPatie ntSurgerie s(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1930 | tr y { | |
1931 | JMeadows Data port = getJMead owsDataPor t(); | |
1932 | return p ort.getPat ientSurger ies(queryB ean); | |
1933 | } catch (Exc eption e) { | |
1934 | logError (e); | |
1935 | throw ne w SOAPExce ption(e); | |
1936 | } | |
1937 | } | |
1938 | ||
1939 | @Overr ide | |
1940 | public FreeTextR eport getS urgeryDeta il(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1941 | tr y { | |
1942 | JMeadows Data port = getJMead owsDataPor t(); | |
1943 | return p ort.getSur geryDetail (queryBean ); | |
1944 | } catch (Exc eption e) { | |
1945 | logError (e); | |
1946 | throw ne w SOAPExce ption(e); | |
1947 | } | |
1948 | } | |
1949 | ||
1950 | @Overr ide | |
1951 | public boolean s etLinkedDa ta(String userId, St ring probl emId, Link DataDetail s linkData ) | |
1952 | throws S OAPExcepti on { | |
1953 | ||
1954 | bo olean ret; | |
1955 | ||
1956 | tr y { | |
1957 | JMeadows Data port = getJMead owsDataPor t(); | |
1958 | ret = po rt.setLink edData(use rId, probl emId, link Data); | |
1959 | } | |
1960 | ca tch (Excep tion e) { | |
1961 | logError (e); | |
1962 | throw ne w SOAPExce ption(e); | |
1963 | } | |
1964 | re turn ret; | |
1965 | } | |
1966 | ||
1967 | @Overr ide | |
1968 | public boolean r emoveLinke dData(Stri ng userId, String pr oblemId, S tring link edDataId) throws SOA PException { | |
1969 | ||
1970 | bo olean ret; | |
1971 | tr y { | |
1972 | JMeadows Data port = getJMead owsDataPor t(); | |
1973 | ret = po rt.removeL inkedData( userId, pr oblemId, l inkedDataI d); | |
1974 | } | |
1975 | ca tch (Excep tion e) { | |
1976 | logError (e); | |
1977 | throw ne w SOAPExce ption(e); | |
1978 | } | |
1979 | re turn ret; | |
1980 | } | |
1981 | ||
1982 | @Overr ide | |
1983 | public boolean s etLinkedDa taAuthor(L inkDataAut hor author , String p roblemId, String lin kedDataId) throws SO APExceptio n { | |
1984 | ||
1985 | bo olean ret; | |
1986 | ||
1987 | tr y { | |
1988 | JMeadows Data port = getJMead owsDataPor t(); | |
1989 | ret = po rt.setLink edDataAuth or(author, problemId , linkedDa taId); | |
1990 | } | |
1991 | ca tch (Excep tion e) { | |
1992 | logError (e); | |
1993 | throw ne w SOAPExce ption(e); | |
1994 | } | |
1995 | re turn ret; | |
1996 | } | |
1997 | @Overr ide | |
1998 | public boolean r emoveLinke dDataAutho r(String u serId, Str ing proble mId, Strin g linkedDa taId) thro ws SOAPExc eption { | |
1999 | ||
2000 | bo olean ret; | |
2001 | ||
2002 | tr y { | |
2003 | JMeadows Data port = getJMead owsDataPor t(); | |
2004 | ret = po rt.removeL inkedDataA uthor(user Id, proble mId, linke dDataId); | |
2005 | } | |
2006 | ca tch (Excep tion e) { | |
2007 | logError (e); | |
2008 | throw ne w SOAPExce ption(e); | |
2009 | } | |
2010 | re turn ret; | |
2011 | } | |
2012 | ||
2013 | /*---- - CV Notif ication -- ---*/ | |
2014 | ||
2015 | @Overr ide | |
2016 | public List<CNot ification> retrieveN otificatio nsCCP() th rows SOAPE xception { | |
2017 | Li st<CNotifi cation> re turnVal = null; | |
2018 | ||
2019 | tr y { | |
2020 | ||
2021 | JMeadows Data port = getJMead owsDataPor t(); | |
2022 | returnVa l = port.r etrieveNot ifications CCP(); | |
2023 | } catch (Exc eption e) { | |
2024 | throw ne w SOAPExce ption(e); | |
2025 | } | |
2026 | re turn retur nVal; | |
2027 | } | |
2028 | ||
2029 | @Overr ide | |
2030 | public CProvider loginProv ider(JMead owsQuery q b, String username, String pas sword) thr ows SOAPEx ception { | |
2031 | ||
2032 | CP rovider re turnVal = null; | |
2033 | ||
2034 | tr y { | |
2035 | ||
2036 | JMeadows Data port = getJMead owsDataPor t(); | |
2037 | returnVa l = port.l oginProvid er(qb, use rname, pas sword); | |
2038 | } catch (Exc eption e) { | |
2039 | throw ne w SOAPExce ption(e); | |
2040 | } | |
2041 | ||
2042 | re turn retur nVal; | |
2043 | } | |
2044 | ||
2045 | /*---- - SECURITY AGREEMENT -----*/ | |
2046 | @Overr ide | |
2047 | public boolean c reateSecur ityAgreeme ntRecord(J MeadowsQue ry qb, Str ing provUs ername, | |
2048 | S tring isaD ownload, S tring ehrR obDownload , String c ertIsa, | |
2049 | S tring cert EhrRob, St ring certH ipaa, Stri ng securit yAgreement ) throws S OAPExcepti on { | |
2050 | bo olean bRet = false; | |
2051 | tr y { | |
2052 | JMeadows Data port = getJMead owsDataPor t(); | |
2053 | bRet = p ort.create SecurityAg reementRec ord(qb, pr ovUsername , isaDownl oad, ehrRo bDownload, certIsa, certEhrRob , | |
2054 | certHipaa, securityA greement); | |
2055 | } catch (Exc eption e) { | |
2056 | throw ne w SOAPExce ption(e); | |
2057 | } | |
2058 | re turn bRet; | |
2059 | } | |
2060 | ||
2061 | @Overr ide | |
2062 | public boolean i sSecurityA greementVa lid(String provUsern ame) throw s SOAPExce ption { | |
2063 | bo olean bRet = false; | |
2064 | tr y { | |
2065 | JMeadows Data port = getJMead owsDataPor t(); | |
2066 | bRet = p ort.isSecu rityAgreem entValid(p rovUsernam e); | |
2067 | } catch (Exc eption e) { | |
2068 | throw ne w SOAPExce ption(e); | |
2069 | } | |
2070 | re turn bRet; | |
2071 | } | |
2072 | ||
2073 | @Overr ide | |
2074 | public String re trieveSecu rityExpira tion(JMead owsQuery q b, String provUserna me) throws SOAPExcep tion { | |
2075 | St ring bRet = ""; | |
2076 | tr y { | |
2077 | JMeadows Data port = getJMead owsDataPor t(); | |
2078 | bRet = p ort.retrie veSecurity Expiration (qb, provU sername); | |
2079 | } catch (Exc eption e) { | |
2080 | throw ne w SOAPExce ption(e); | |
2081 | } | |
2082 | re turn bRet; | |
2083 | } | |
2084 | ||
2085 | /*---- - PASSWORD RESET --- --*/ | |
2086 | ||
2087 | @Overr ide | |
2088 | public boolean e mailResetP assword(St ring usern ame) throw s SOAPExce ption { | |
2089 | ||
2090 | tr y { | |
2091 | JMeadows Data port = getJMead owsDataPor t(); | |
2092 | JMeadows Query qb = new JMead owsQuery() ; | |
2093 | qb.setIt emId(usern ame); | |
2094 | return p ort.genera teRMPProvi derPasswor dResetRequ est(qb); | |
2095 | } catch (Exc eption e) { | |
2096 | logger.e rror(e.get Message(), e); | |
2097 | throw ne w SOAPExce ption(e); | |
2098 | } | |
2099 | } | |
2100 | ||
2101 | @Overr ide | |
2102 | public boolean v alidatePas swordReset SecurityTo ken(String securityT oken) thro ws SOAPExc eption { | |
2103 | tr y { | |
2104 | JMeadows Data port = getJMead owsDataPor t(); | |
2105 | return p ort.valida tePassword ResetSecur ityToken(s ecurityTok en.getByte s(Charset. forName("U TF-8"))); | |
2106 | } catch (Exc eption e) { | |
2107 | logger.e rror(e.get Message(), e); | |
2108 | throw ne w SOAPExce ption(e); | |
2109 | } | |
2110 | } | |
2111 | ||
2112 | @Overr ide | |
2113 | public String re trieveEmai lFromSecur ityToken(S tring secu rityToken) throws SO APExceptio n { | |
2114 | tr y { | |
2115 | JMeadows Data port = getJMead owsDataPor t(); | |
2116 | return p ort.retrie veEmailFro mSecurityT oken(secur ityToken.g etBytes(Ch arset.forN ame("UTF-8 "))); | |
2117 | } catch (Exc eption e) { | |
2118 | logger.e rror(e.get Message(), e); | |
2119 | throw ne w SOAPExce ption(e); | |
2120 | } | |
2121 | } | |
2122 | ||
2123 | @Overr ide | |
2124 | public boolean u pdatePassw ordResetPr oviderPass word(Strin g security Token, Str ing hashed Password, String pwd UniqueChar s) throws SOAPExcept ion { | |
2125 | tr y { | |
2126 | JMeadows Data port = getJMead owsDataPor t(); | |
2127 | return p ort.update PasswordRe setProvide rPassword( securityTo ken.getByt es(Charset .forName(" UTF-8")), hashedPass word, pwdU niqueChars ); | |
2128 | } catch (Exc eption e) { | |
2129 | logger.e rror(e.get Message(), e); | |
2130 | throw ne w SOAPExce ption(e); | |
2131 | } | |
2132 | } | |
2133 | ||
2134 | @Overr ide | |
2135 | public String re trievePwdC har(String srcOfReq, String ke y) throws SOAPExcept ion { | |
2136 | tr y { | |
2137 | JMeadows Data port = getJMead owsDataPor t(); | |
2138 | return p ort.retrie vePwdCharP ackage(src OfReq, key .getBytes( Charset.fo rName("UTF -8"))); | |
2139 | } catch (Exc eption e) { | |
2140 | logger.e rror(e.get Message(), e); | |
2141 | throw ne w SOAPExce ption(e); | |
2142 | } | |
2143 | } | |
2144 | ||
2145 | @Overr ide | |
2146 | public boolean h asPwdBeenU sedBefore( String use rName, Str ing newPwd ) throws S OAPExcepti on { | |
2147 | ||
2148 | bo olean isUs edBefore = true; | |
2149 | ||
2150 | tr y { | |
2151 | JMeadows Data port = getJMead owsDataPor t(); | |
2152 | isUsedBe fore = por t.hasPwdBe enUsedBefo re(userNam e, newPwd) ; | |
2153 | } catch (Exc eption e) { | |
2154 | throw ne w SOAPExce ption(e); | |
2155 | } | |
2156 | ||
2157 | re turn isUse dBefore; | |
2158 | } | |
2159 | ||
2160 | /*---- - PPMS Met hods ----- */ | |
2161 | ||
2162 | @Overr ide | |
2163 | public CProvider loginPPMS Provider(S tring user name, Stri ng passwor d) throws SOAPExcept ion { | |
2164 | tr y { | |
2165 | JMeadows Data port = getJMead owsDataPor t(); | |
2166 | return p ort.loginP PMSProvide r(username , password ); | |
2167 | } catch (Exc eption e) { | |
2168 | logger.e rror(e.get Message(), e); | |
2169 | throw ne w SOAPExce ption(e); | |
2170 | } | |
2171 | } | |
2172 | ||
2173 | @Overr ide | |
2174 | public List<CPat ient> retr ievePPMSPr oviderPati entList(JM eadowsQuer y qb, Stri ng provide rNPI) thro ws SOAPExc eption { | |
2175 | tr y { | |
2176 | JMeadows Data port = getJMead owsDataPor t(); | |
2177 | return p ort.retrie vePPMSProv iderPatien tList(qb, providerNP I); | |
2178 | } catch (Exc eption e) { | |
2179 | logger.e rror(e.get Message(), e); | |
2180 | throw ne w SOAPExce ption(e); | |
2181 | } | |
2182 | } | |
2183 | ||
2184 | @Overr ide | |
2185 | public List<CPat ient> retr ieveProvid erPatientL ist(JMeado wsQuery qb , String p roviderId) throws SO APExceptio n { | |
2186 | ||
2187 | Li st<CPatien t> returnV al = null; | |
2188 | ||
2189 | tr y { | |
2190 | JMeadows Data port = getJMead owsDataPor t(); | |
2191 | returnVa l = port.r etrievePro viderPatie ntList(qb, providerI d); | |
2192 | } catch (Exc eption e) { | |
2193 | throw ne w SOAPExce ption(e); | |
2194 | } | |
2195 | ||
2196 | re turn retur nVal; | |
2197 | ||
2198 | } | |
2199 | ||
2200 | @Overr ide | |
2201 | public List<CPat ient> retr ievePPMSOr ganization PatientLis t(JMeadows Query qb, String pro viderNPI) throws SOA PException { | |
2202 | tr y { | |
2203 | JMeadows Data port = getJMead owsDataPor t(); | |
2204 | return p ort.retrie vePPMSOrga nizationPa tientList( qb, provid erNPI); | |
2205 | } catch (Exc eption e) { | |
2206 | logger.e rror(e.get Message(), e); | |
2207 | throw ne w SOAPExce ption(e); | |
2208 | } | |
2209 | } | |
2210 | ||
2211 | @Overr ide | |
2212 | public List<CPat ient> retr ieveOrgani zationPati entList(JM eadowsQuer y qb, Stri ng provide rId) throw s SOAPExce ption { | |
2213 | ||
2214 | Li st<CPatien t> returnV al = null; | |
2215 | ||
2216 | tr y { | |
2217 | JMeadows Data port = getJMead owsDataPor t(); | |
2218 | returnVa l = port.r etrieveOrg anizationP atientList (qb, provi derId); | |
2219 | } catch (Exc eption e) { | |
2220 | throw ne w SOAPExce ption(e); | |
2221 | } | |
2222 | ||
2223 | re turn retur nVal; | |
2224 | ||
2225 | } | |
2226 | ||
2227 | /*---- - PPMS Pas sword Rese t Methods -----*/ | |
2228 | ||
2229 | @Overr ide | |
2230 | public boolean n piPPMSRese tPassword( String use rname) thr ows SOAPEx ception { | |
2231 | ||
2232 | tr y { | |
2233 | JMeadows Data port = getJMead owsDataPor t(); | |
2234 | JMeadows Query qb = new JMead owsQuery() ; | |
2235 | qb.setIt emId(usern ame); | |
2236 | return p ort.genera tePPMSProv iderPasswo rdResetReq uest(qb); | |
2237 | } catch (Exc eption e) { | |
2238 | logger.e rror(e.get Message(), e); | |
2239 | throw ne w SOAPExce ption(e); | |
2240 | } | |
2241 | } | |
2242 | ||
2243 | /*---- -- Vista I maging Met hods ----- */ | |
2244 | ||
2245 | @Overr ide | |
2246 | public String ge tRadiology VixStudyVi ewerUrl(JM eadowsQuer y queryBea n, Radiolo gyReport r adiologyRe port) thro ws SOAPExc eption { | |
2247 | tr y { | |
2248 | JMeadows Data port = getJMead owsDataPor t(); | |
2249 | return p ort.getRad iologyVixS tudyViewer Url(queryB ean, radio logyReport ); | |
2250 | } catch (Exc eption e) { | |
2251 | logger.e rror(e.get Message(), e); | |
2252 | throw ne w SOAPExce ption(e); | |
2253 | } | |
2254 | } | |
2255 | ||
2256 | @Overr ide | |
2257 | public String ge tPatientDo cumentVixS tudyViewer Url(JMeado wsQuery qu eryBean, P atientDocu ment docum ent) throw s SOAPExce ption { | |
2258 | tr y { | |
2259 | JMeadows Data port = getJMead owsDataPor t(); | |
2260 | return p ort.getPat ientDocume ntVixStudy ViewerUrl( queryBean, document) ; | |
2261 | } catch (Exc eption e) { | |
2262 | logger.e rror(e.get Message(), e); | |
2263 | throw ne w SOAPExce ption(e); | |
2264 | } | |
2265 | } | |
2266 | ||
2267 | @Overr ide | |
2268 | public String ge tEncounter DocumentVi xStudyView erUrl(JMea dowsQuery queryBean, String do cumentId, String doc umentSiteI d) throws SOAPExcept ion { | |
2269 | tr y { | |
2270 | JMeadows Data port = getJMead owsDataPor t(); | |
2271 | return p ort.getEnc ounterDocu mentVixStu dyViewerUr l(queryBea n, documen tId, docum entSiteId) ; | |
2272 | } catch (Exc eption e) { | |
2273 | logger.e rror(e.get Message(), e); | |
2274 | throw ne w SOAPExce ption(e); | |
2275 | } | |
2276 | } | |
2277 | ||
2278 | @Overr ide | |
2279 | public ViStudy g etEncounte rDocumentV iStudy(JMe adowsQuery queryBean , String d ocumentId, String do cumentSite Id) throws SOAPExcep tion { | |
2280 | tr y { | |
2281 | JMeadows Data port = getJMead owsDataPor t(); | |
2282 | return p ort.getEnc ounterDocu mentViStud y(queryBea n, documen tId, docum entSiteId) ; | |
2283 | } catch (Exc eption e) { | |
2284 | logger.e rror(e.get Message(), e); | |
2285 | throw ne w SOAPExce ption(e); | |
2286 | } | |
2287 | } | |
2288 | ||
2289 | // @Ove rride | |
2290 | // publ ic ViStudy getProgre ssNotesViS tudy(JMead owsQuery q ueryBean, ProgressNo te progres sNote) thr ows SOAPEx ception { | |
2291 | // try { | |
2292 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
2293 | // return port.getP rogressNot eViStudy(q ueryBean, progressNo te); | |
2294 | // } catch (E xception e ) { | |
2295 | // logger .error(e.g etMessage( ), e); | |
2296 | // throw new SOAPEx ception(e) ; | |
2297 | // } | |
2298 | // } | |
2299 | ||
2300 | @Overr ide | |
2301 | public ViStudy g etRadiolog yViStudy(J MeadowsQue ry queryBe an, Radiol ogyReport radiologyR eport) thr ows SOAPEx ception { | |
2302 | tr y { | |
2303 | JMeadows Data port = getJMead owsDataPor t(); | |
2304 | return p ort.getRad iologyRepo rtViStudy( queryBean, radiology Report); | |
2305 | } catch (Exc eption e) { | |
2306 | logger.e rror(e.get Message(), e); | |
2307 | throw ne w SOAPExce ption(e); | |
2308 | } | |
2309 | } | |
2310 | ||
2311 | @Overr ide | |
2312 | public byte[] ge tVixThumbn ail(JMeado wsQuery qu eryBean, S tring thum bnailUrl) throws SOA PException { | |
2313 | tr y { | |
2314 | JMeadows Data port = getJMead owsDataPor t(); | |
2315 | return p ort.getVix Thumbnail( queryBean, thumbnail Url); | |
2316 | } catch (Exc eption e) { | |
2317 | logger.e rror(e.get Message(), e); | |
2318 | throw ne w SOAPExce ption(e); | |
2319 | } | |
2320 | } | |
2321 | ||
2322 | @Overr ide | |
2323 | public ViImageRe sponse get ViImage(JM eadowsQuer y queryBea n, String imageUrn, String ima geQuality) throws SO APExceptio n { | |
2324 | tr y { | |
2325 | JMeadows Data port = getJMead owsDataPor t(); | |
2326 | return p ort.getViI mage(query Bean, imag eUrn, imag eQuality); | |
2327 | } catch (Exc eption e) { | |
2328 | logger.e rror(e.get Message(), e); | |
2329 | throw ne w SOAPExce ption(e); | |
2330 | } | |
2331 | } | |
2332 | ||
2333 | /*---- Pain Mana gement --- -*/ | |
2334 | @Overr ide | |
2335 | public JMedResul tCollectio n getPatie ntPainProg ressNotes( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
2336 | lo g("getPati entPainPro gressNotes ", queryBe an); | |
2337 | ||
2338 | JM edResultCo llection r eturnVal; | |
2339 | ||
2340 | tr y { | |
2341 | ||
2342 | JMeadows Data port = getJMead owsDataPor t(); | |
2343 | returnVa l = port.g etPatientP ainProgres sNotes(que ryBean); | |
2344 | } catch (Exc eption e) { | |
2345 | throw ne w SOAPExce ption(e); | |
2346 | } | |
2347 | ||
2348 | re turn retur nVal; | |
2349 | } | |
2350 | ||
2351 | ||
2352 | ||
2353 | privat e void log Error(Exce ption e){ | |
2354 | lo gger.error ("JLV ERRO R: " + e.g etMessage( ), e); | |
2355 | } | |
2356 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.