Produced by Araxis Merge on 9/19/2018 2:19:47 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 | JLV_2.7_src.zip\JLV\src\java\gov\va\med\jmeadows | JMeadowsServiceHandlerImpl.java | Mon Jul 23 06:22:53 2018 UTC |
2 | JLV_2.7_src.zip\JLV\src\java\gov\va\med\jmeadows | JMeadowsServiceHandlerImpl.java | Tue Sep 18 16:08:37 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 3744 |
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.util.Arr ayList; | |
37 | import jav a.util.Lis t; | |
38 | ||
39 | @Component | |
40 | public cla ss JMeadow sServiceHa ndlerImpl implements JMeadowsS erviceHand ler { | |
41 | ||
42 | privat e static f inal Logge r logger = Logger.ge tLogger(JM eadowsServ iceHandler Impl.class .getName() ); | |
43 | @Autow ired | |
44 | protec ted AppCon fig appCon fig; | |
45 | privat e String s erviceURL; | |
46 | privat e String m _ServiceNa me = "JMea dowsDataSe rvice"; | |
47 | private St ring m_nam espace = " http:// DNS . URL /"; | |
48 | privat e QName m_ QserviceNa me = new Q Name(m_nam espace, m_ ServiceNam e); | |
49 | ||
50 | privat e String a ppName; | |
51 | ||
52 | privat e String u sername; | |
53 | privat e String p assword; | |
54 | ||
55 | privat e int conn ectionTime outMS = 30 000; | |
56 | privat e int requ estTimeout MS = 30000 ; | |
57 | ||
58 | privat e JMeadows DataServic e m_jmeado wsDataServ ice; | |
59 | ||
60 | public JMeadowsS erviceHand lerImpl(St ring url) { | |
61 | se rviceURL = url; | |
62 | } | |
63 | ||
64 | public JMeadowsS erviceHand lerImpl() { | |
65 | } | |
66 | ||
67 | ||
68 | public int getCo nnectionTi meoutMS() { | |
69 | re turn conne ctionTimeo utMS; | |
70 | } | |
71 | ||
72 | public void setC onnectionT imeoutMS(i nt connect ionTimeout MS) { | |
73 | th is.connect ionTimeout MS = conne ctionTimeo utMS; | |
74 | } | |
75 | ||
76 | public int getRe questTimeo utMS() { | |
77 | re turn reque stTimeoutM S; | |
78 | } | |
79 | ||
80 | public void setR equestTime outMS(int requestTim eoutMS) { | |
81 | th is.request TimeoutMS = requestT imeoutMS; | |
82 | } | |
83 | ||
84 | public String ge tServiceUR L() { | |
85 | re turn servi ceURL; | |
86 | } | |
87 | ||
88 | public void setS erviceURL( String ser viceURL) { | |
89 | th is.service URL = serv iceURL; | |
90 | } | |
91 | ||
92 | privat e JMeadows Data getJM eadowsData Port() { | |
93 | re turn getJM eadowsData Port(false ); | |
94 | } | |
95 | ||
96 | public String ge tUsername( ) { | |
97 | re turn usern ame; | |
98 | } | |
99 | ||
100 | public void setU sername(St ring usern ame) { | |
101 | th is.usernam e = userna me; | |
102 | } | |
103 | ||
104 | public String ge tPassword( ) { | |
105 | re turn passw ord; | |
106 | } | |
107 | ||
108 | public void setP assword(St ring passw ord) { | |
109 | th is.passwor d = passwo rd; | |
110 | } | |
111 | ||
112 | privat e JMeadows Data getJM eadowsData Port(boole an include MTOMFeatur e) { | |
113 | if (m_jmeado wsDataServ ice == nul l) { | |
114 | createSe rvice(); | |
115 | if (appC onfig.getE nableWSSec urityHeade r()) { | |
116 | m_jm eadowsData Service.se tHandlerRe solver(new HeaderHan dlerResolv er()); | |
117 | } | |
118 | } | |
119 | ||
120 | JM eadowsData port = nu ll; | |
121 | if (includeM TOMFeature ) { | |
122 | port = m _jmeadowsD ataService .getJMeado wsDataPort (new MTOMF eature()); | |
123 | } else port = m_jmeado wsDataServ ice.getJMe adowsDataP ort(); | |
124 | ||
125 | // set connec tion timeo ut | |
126 | Bi ndingProvi der bp = ( BindingPro vider) por t; | |
127 | bp .getReques tContext() .put(Bindi ngProvider .ENDPOINT_ ADDRESS_PR OPERTY, se rviceURL); | |
128 | bp .getReques tContext() .put("com. sun.xml.in ternal.ws. connect.ti meout", co nnectionTi meoutMS); | |
129 | bp .getReques tContext() .put("com. sun.xml.in ternal.ws. request.ti meout", re questTimeo utMS); | |
130 | bp .getReques tContext() .put("com. sun.xml.ws .connect.t imeout", c onnectionT imeoutMS); | |
131 | bp .getReques tContext() .put("com. sun.xml.ws .request.t imeout", r equestTime outMS); | |
132 | ||
133 | re turn port; | |
134 | } | |
135 | ||
136 | privat e synchron ized void createServ ice() { | |
137 | if (m_jmeado wsDataServ ice == nul l) { | |
138 | try { | |
139 | m_jm eadowsData Service = new JMeado wsDataServ ice(); | |
140 | } catch (Exception e) { | |
141 | thro w new Runt imeExcepti on(e); | |
142 | } | |
143 | ||
144 | } | |
145 | } | |
146 | ||
147 | privat e void log (String me thodName) { | |
148 | lo g(methodNa me, null); | |
149 | } | |
150 | ||
151 | privat e void log (String me thodName, JMeadowsQu ery queryB ean) { | |
152 | if (logger.i sDebugEnab led()) { | |
153 | logger.d ebug("Invo king metho d: " + met hodName); | |
154 | if (quer yBean != n ull) { | |
155 | logQ ueryBeanPa rams(metho dName, que ryBean); | |
156 | } | |
157 | } | |
158 | } | |
159 | ||
160 | privat e void log QueryBeanP arams(Stri ng methodN ame, JMead owsQuery q ueryBean) { | |
161 | if (!logger. isDebugEna bled()) re turn; | |
162 | ||
163 | St ring userI d; | |
164 | Si te hostSit e; | |
165 | St ring patVA Icn; | |
166 | St ring patDo DEdipi; | |
167 | Li st<Site> v istaSites = new Arra yList<Site >(); | |
168 | St ring itemI d; | |
169 | St ring recor dSiteCode; | |
170 | St ring statu s; | |
171 | In teger acti ve; | |
172 | St ring start Date; | |
173 | St ring endDa te; | |
174 | ||
175 | St ringBuilde r sb = new StringBui lder(); | |
176 | sb .append(me thodName); | |
177 | sb .append(" query bean params: " ); | |
178 | ||
179 | if (queryBea n != null) { | |
180 | User use r = queryB ean.getUse r(); | |
181 | Patient patient = queryBean. getPatient (); | |
182 | ||
183 | if (user != null) { | |
184 | user Id = user. getUserId( ); | |
185 | host Site = use r.getHostS ite(); | |
186 | ||
187 | sb.a ppend("Use r - userId : "); | |
188 | sb.a ppend(user Id); | |
189 | sb.a ppend(" , hostSite: "); | |
190 | if ( hostSite ! = null) sb .append(ho stSite.get SiteCode() ); | |
191 | } else { | |
192 | sb.a ppend("Use r - null") ; | |
193 | } | |
194 | ||
195 | if (pati ent != nul l) { | |
196 | ||
197 | patV AIcn = pat ient.getIC N(); | |
198 | patD oDEdipi = patient.ge tEDIPI(); | |
199 | ||
200 | sb.a ppend("; P atient - " ); | |
201 | sb.a ppend(", I CN: "); | |
202 | sb.a ppend(patV AIcn); | |
203 | sb.a ppend(", E DIPI: "); | |
204 | sb.a ppend(patD oDEdipi); | |
205 | ||
206 | sb.a ppend(", v istaSites: "); | |
207 | ||
208 | if ( vistaSites .size() < 1) sb.appe nd("none") ; | |
209 | ||
210 | for (Site site : vistaSi tes) { | |
211 | String sit eCode = si te.getSite Code(); | |
212 | sb.append( siteCode); | |
213 | sb.append( ", "); | |
214 | } | |
215 | } else { | |
216 | sb.a ppend("; P atient - n ull"); | |
217 | } | |
218 | ||
219 | itemId = queryBean .getItemId (); | |
220 | active = queryBean .getActive (); | |
221 | recordSi teCode = q ueryBean.g etRecordSi teCode(); | |
222 | startDat e = Utils. formatDisp layDate(qu eryBean.ge tStartDate ()); | |
223 | endDate = Utils.fo rmatDispla yDate(quer yBean.getE ndDate()); | |
224 | status = queryBean .getStatus (); | |
225 | ||
226 | sb.appen d("; start Date: "); | |
227 | sb.appen d(startDat e); | |
228 | sb.appen d(", endDa te: "); | |
229 | sb.appen d(endDate) ; | |
230 | sb.appen d(", itemI d: "); | |
231 | sb.appen d(itemId); | |
232 | sb.appen d(", recor dSiteCode: "); | |
233 | sb.appen d(recordSi teCode); | |
234 | sb.appen d(", statu s: "); | |
235 | sb.appen d(status); | |
236 | sb.appen d(", activ e: "); | |
237 | sb.appen d(active); | |
238 | ||
239 | } | |
240 | ||
241 | lo gger.debug (sb.toStri ng()); | |
242 | } | |
243 | ||
244 | @Overr ide | |
245 | 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 { | |
246 | ||
247 | lo g("loginEn terprise") ; | |
248 | ||
249 | Us er result = null; | |
250 | ||
251 | tr y { | |
252 | ||
253 | JMeadows Data port = getJMead owsDataPor t(); | |
254 | result = port.logi nEnterpris e(cardID, siteCode, accessCode , verifyCo de, appNam e, ipAddre ss, subjec tDN, email Address); | |
255 | ||
256 | } catch (Exc eption e) { | |
257 | logError (e); | |
258 | throw ne w SOAPExce ption(e); | |
259 | } | |
260 | ||
261 | re turn resul t; | |
262 | } | |
263 | ||
264 | @Overr ide | |
265 | public User logi nSaml(Stri ng siteCod e, String samlToken, String ip Address, S tring emai lAddress) throws SOA PException { | |
266 | ||
267 | lo g("loginSa ml"); | |
268 | ||
269 | Us er result = null; | |
270 | ||
271 | tr y { | |
272 | ||
273 | JMeadows Data port = getJMead owsDataPor t(); | |
274 | result = port.logi nSaml(site Code, saml Token, app Name, ipAd dress, ema ilAddress) ; | |
275 | ||
276 | } catch (Exc eption e) { | |
277 | logError (e); | |
278 | throw ne w SOAPExce ption(e); | |
279 | } | |
280 | ||
281 | re turn resul t; | |
282 | } | |
283 | ||
284 | // @Ove rride | |
285 | // 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 { | |
286 | // | |
287 | // log("login Enterprise "); | |
288 | // | |
289 | // User resul t = null; | |
290 | // | |
291 | // try { | |
292 | // | |
293 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
294 | // result = port.lo ginEnterpr ise(cardID , siteCode , accessCo de, verify Code, appN ame, ipAdd ress, subj ectDN, "") ; | |
295 | // | |
296 | // } catch (E xception e ) { | |
297 | // throw new SOAPEx ception(e) ; | |
298 | // } | |
299 | // | |
300 | // return res ult; | |
301 | // | |
302 | // //code to mock DoD u ser | |
303 | //// siteCode = "200"; | |
304 | //// | |
305 | //// User use r = new Us er(); | |
306 | //// user.set EncryptedF ederatedUi d(EncryptU til.encryp t("1234567 89")); | |
307 | //// user.set Name("Mock User,DoD") ; | |
308 | //// user.set UserIen("1 234"); | |
309 | //// user.set ProviderIe n("4321"); | |
310 | //// user.set Agency("DO D"); | |
311 | //// | |
312 | //// JMeadows Data port = getJMead owsDataPor t(); | |
313 | //// List<Sit e> sites = port.getS ites(); | |
314 | //// java.uti l.Iterator <Site> it = sites.it erator(); | |
315 | //// while(it .hasNext() ) | |
316 | //// { | |
317 | //// Site site = it .next(); | |
318 | //// if(s iteCode.eq ualsIgnore Case(site. getSiteCod e())) | |
319 | //// { | |
320 | //// user.setHo stSite(sit e); | |
321 | //// break; | |
322 | //// } | |
323 | //// } | |
324 | //// return u ser; | |
325 | // | |
326 | // } | |
327 | ||
328 | @Overr ide | |
329 | public Admission Detail get AdmissionD etails(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
330 | ||
331 | lo g("getAdmi ssionDetai ls", query Bean); | |
332 | ||
333 | Ad missionDet ail return Val = null ; | |
334 | ||
335 | tr y { | |
336 | ||
337 | JMeadows Data port = getJMead owsDataPor t(); | |
338 | returnVa l = port.g etAdmissio nDetails(q ueryBean); | |
339 | } catch (Exc eption e) { | |
340 | logError (e); | |
341 | throw ne w SOAPExce ption(e); | |
342 | } | |
343 | ||
344 | ||
345 | re turn retur nVal; | |
346 | } | |
347 | ||
348 | @Overr ide | |
349 | public Diagnosis [] getAdmi ssionDiagn osis(JMead owsQuery q ueryBean) throws SOA PException { | |
350 | ||
351 | lo g("getAdmi ssionDiagn osis", que ryBean); | |
352 | ||
353 | Di agnosis[] returnVal = null; | |
354 | ||
355 | tr y { | |
356 | ||
357 | JMeadows Data port = getJMead owsDataPor t(); | |
358 | returnVa l = port.g etAdmissio nDiagnosis (queryBean ).toArray( new Diagno sis[0]); | |
359 | } catch (Exc eption e) { | |
360 | logError (e); | |
361 | throw ne w SOAPExce ption(e); | |
362 | } | |
363 | ||
364 | re turn retur nVal; | |
365 | ||
366 | } | |
367 | ||
368 | ||
369 | @Overr ide | |
370 | public Procedure [] getAdmi ssionProce dures(JMea dowsQuery queryBean) throws SO APExceptio n { | |
371 | ||
372 | lo g("getAdmi ssionProce dures", qu eryBean); | |
373 | ||
374 | Pr ocedure[] returnVal = null; | |
375 | ||
376 | tr y { | |
377 | ||
378 | JMeadows Data port = getJMead owsDataPor t(); | |
379 | returnVa l = port.g etAdmissio nProcedure s(queryBea n).toArray (new Proce dure[0]); | |
380 | } catch (Exc eption e) { | |
381 | logError (e); | |
382 | throw ne w SOAPExce ption(e); | |
383 | } | |
384 | ||
385 | re turn retur nVal; | |
386 | } | |
387 | ||
388 | @Overr ide | |
389 | public FreeTextR eport getC linicalRem inderDetai l(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
390 | ||
391 | lo g("getClin icalRemind erDetail", queryBean ); | |
392 | ||
393 | Fr eeTextRepo rt returnV al = null; | |
394 | ||
395 | tr y { | |
396 | ||
397 | JMeadows Data port = getJMead owsDataPor t(); | |
398 | returnVa l = port.g etClinical ReminderDe tail(query Bean); | |
399 | } catch (Exc eption e) { | |
400 | logError (e); | |
401 | throw ne w SOAPExce ption(e); | |
402 | } | |
403 | ||
404 | re turn retur nVal; | |
405 | ||
406 | } | |
407 | ||
408 | @Overr ide | |
409 | public FreeTextR eport[] ge tConsultRe port(JMead owsQuery q ueryBean) throws SOA PException { | |
410 | ||
411 | lo g("getCons ultReport" , queryBea n); | |
412 | ||
413 | Fr eeTextRepo rt[] retur nVal = nul l; | |
414 | ||
415 | tr y { | |
416 | ||
417 | JMeadows Data port = getJMead owsDataPor t(); | |
418 | returnVa l = port.g etConsultR eport(quer yBean).toA rray(new F reeTextRep ort[0]); | |
419 | } catch (Exc eption e) { | |
420 | logError (e); | |
421 | throw ne w SOAPExce ption(e); | |
422 | } | |
423 | ||
424 | re turn retur nVal; | |
425 | } | |
426 | ||
427 | @Overr ide | |
428 | public FreeTextR eport getM edicationD etails(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
429 | ||
430 | lo g("getMedi cationDeta ils", quer yBean); | |
431 | ||
432 | Fr eeTextRepo rt returnV al = null; | |
433 | ||
434 | tr y { | |
435 | ||
436 | JMeadows Data port = getJMead owsDataPor t(); | |
437 | returnVa l = port.g etMedicati onDetail(q ueryBean); | |
438 | } catch (Exc eption e) { | |
439 | logError (e); | |
440 | throw ne w SOAPExce ption(e); | |
441 | } | |
442 | ||
443 | re turn retur nVal; | |
444 | } | |
445 | ||
446 | @Overr ide | |
447 | public LabResult [] getLabO rderResult (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
448 | lo g("getLabO rderResult ", queryBe an); | |
449 | ||
450 | La bResult[] returnVal = null; | |
451 | ||
452 | tr y { | |
453 | ||
454 | JMeadows Data port = getJMead owsDataPor t(); | |
455 | returnVa l = port.g etLabOrder Result(que ryBean).to Array(new LabResult[ 0]); | |
456 | } catch (Exc eption e) { | |
457 | logError (e); | |
458 | throw ne w SOAPExce ption(e); | |
459 | } | |
460 | ||
461 | re turn retur nVal; | |
462 | } | |
463 | ||
464 | @Overr ide | |
465 | public FreeTextR eport getO rderDetail (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
466 | ||
467 | lo g("getOrde rDetail", queryBean) ; | |
468 | ||
469 | Fr eeTextRepo rt returnV al = null; | |
470 | ||
471 | tr y { | |
472 | ||
473 | JMeadows Data port = getJMead owsDataPor t(); | |
474 | returnVa l = port.g etOrderDet ail(queryB ean); | |
475 | } catch (Exc eption e) { | |
476 | logError (e); | |
477 | throw ne w SOAPExce ption(e); | |
478 | } | |
479 | ||
480 | re turn retur nVal; | |
481 | } | |
482 | ||
483 | @Overr ide | |
484 | public JMedResul tCollectio n getPatie ntAdmissio ns(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
485 | ||
486 | lo g("getPati entAdmissi ons", quer yBean); | |
487 | ||
488 | JM edResultCo llection r eturnVal = null; | |
489 | ||
490 | tr y { | |
491 | ||
492 | JMeadows Data port = getJMead owsDataPor t(); | |
493 | returnVa l = port.g etPatientA dmissions( queryBean) ; | |
494 | } catch (Exc eption e) { | |
495 | logError (e); | |
496 | throw ne w SOAPExce ption(e); | |
497 | } | |
498 | ||
499 | re turn retur nVal; | |
500 | } | |
501 | ||
502 | @Overr ide | |
503 | public JMedResul tCollectio n getPatie ntAllergie s(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
504 | lo g("getPati entAllergi es", query Bean); | |
505 | ||
506 | JM edResultCo llection r eturnVal = null; | |
507 | ||
508 | tr y { | |
509 | ||
510 | JMeadows Data port = getJMead owsDataPor t(); | |
511 | returnVa l = port.g etPatientA llergies(q ueryBean); | |
512 | } catch (Exc eption e) { | |
513 | logError (e); | |
514 | throw ne w SOAPExce ption(e); | |
515 | } | |
516 | ||
517 | re turn retur nVal; | |
518 | } | |
519 | ||
520 | @Overr ide | |
521 | public AllergyDe tail getAl lergyDetai l(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
522 | lo g("getAlle rgyDetail" , queryBea n); | |
523 | ||
524 | Al lergyDetai l returnVa l = null; | |
525 | ||
526 | tr y { | |
527 | ||
528 | JMeadows Data port = getJMead owsDataPor t(); | |
529 | returnVa l = port.g etAllergyD etail(quer yBean); | |
530 | } catch (Exc eption e) { | |
531 | logError (e); | |
532 | throw ne w SOAPExce ption(e); | |
533 | } | |
534 | ||
535 | re turn retur nVal; | |
536 | } | |
537 | ||
538 | @Overr ide | |
539 | public JMedResul tCollectio n getPatie ntAppointm ents(JMead owsQuery q ueryBean) throws SOA PException { | |
540 | lo g("getPati entAppoint ments", qu eryBean); | |
541 | ||
542 | JM edResultCo llection r eturnVal = null; | |
543 | ||
544 | tr y { | |
545 | ||
546 | JMeadows Data port = getJMead owsDataPor t(); | |
547 | returnVa l = port.g etPatientA ppointment s(queryBea n); | |
548 | } catch (Exc eption e) { | |
549 | logError (e); | |
550 | throw ne w SOAPExce ption(e); | |
551 | } | |
552 | ||
553 | re turn retur nVal; | |
554 | } | |
555 | ||
556 | @Overr ide | |
557 | public JMedResul tCollectio n getPatie ntDocument s(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
558 | lo g("getPati entDocumen ts", query Bean); | |
559 | ||
560 | JM edResultCo llection r eturnVal = null; | |
561 | ||
562 | tr y { | |
563 | ||
564 | JMeadows Data port = getJMead owsDataPor t(); | |
565 | returnVa l = port.g etPatientD ocuments(q ueryBean); | |
566 | } catch (Exc eption e) { | |
567 | logError (e); | |
568 | throw ne w SOAPExce ption(e); | |
569 | } | |
570 | ||
571 | re turn retur nVal; | |
572 | } | |
573 | ||
574 | @Overr ide | |
575 | public JMedResul tCollectio n getPatie ntDentalDo cuments(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
576 | lo g("getPati entDentalD ocuments", queryBean ); | |
577 | ||
578 | JM edResultCo llection r eturnVal = null; | |
579 | ||
580 | tr y { | |
581 | ||
582 | JMeadows Data port = getJMead owsDataPor t(); | |
583 | returnVa l = port.g etPatientD entalDocum ents(query Bean); | |
584 | } catch (Exc eption e) { | |
585 | logError (e); | |
586 | throw ne w SOAPExce ption(e); | |
587 | } | |
588 | ||
589 | re turn retur nVal; | |
590 | } | |
591 | ||
592 | @Overr ide | |
593 | public JMedResul tCollectio n getPatie ntEncounte rs(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
594 | lo g("getPati entEncount er", query Bean); | |
595 | ||
596 | JM edResultCo llection r eturnVal = null; | |
597 | ||
598 | tr y { | |
599 | ||
600 | JMeadows Data port = getJMead owsDataPor t(); | |
601 | returnVa l = port.g etPatientE ncounters( queryBean) ; | |
602 | } catch (Exc eption e) { | |
603 | logError (e); | |
604 | throw ne w SOAPExce ption(e); | |
605 | } | |
606 | ||
607 | re turn retur nVal; | |
608 | } | |
609 | ||
610 | @Overr ide | |
611 | public JMedResul tCollectio n getPatie ntClinical Reminders( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
612 | lo g("getPati entClinica lReminders ", queryBe an); | |
613 | ||
614 | JM edResultCo llection r eturnVal = null; | |
615 | ||
616 | tr y { | |
617 | ||
618 | JMeadows Data port = getJMead owsDataPor t(); | |
619 | returnVa l = port.g etPatientC linicalRem inders(que ryBean); | |
620 | } catch (Exc eption e) { | |
621 | logError (e); | |
622 | throw ne w SOAPExce ption(e); | |
623 | } | |
624 | ||
625 | re turn retur nVal; | |
626 | } | |
627 | ||
628 | @Overr ide | |
629 | public JMedResul tCollectio n getPatie ntConsultR equests(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
630 | lo g("getPati entConsult Requests", queryBean ); | |
631 | ||
632 | JM edResultCo llection r eturnVal = null; | |
633 | ||
634 | tr y { | |
635 | ||
636 | JMeadows Data port = getJMead owsDataPor t(); | |
637 | returnVa l = port.g etPatientC onsultRequ ests(query Bean); | |
638 | } catch (Exc eption e) { | |
639 | logError (e); | |
640 | throw ne w SOAPExce ption(e); | |
641 | } | |
642 | ||
643 | re turn retur nVal; | |
644 | } | |
645 | ||
646 | // @Ove rride | |
647 | // publ ic JMedRes ultCollect ion getPat ientCurren tVitals(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
648 | // log("getPa tientCurre ntVitals", queryBean ); | |
649 | // | |
650 | // JMedResult Collection returnVal = null; | |
651 | // | |
652 | // try { | |
653 | // | |
654 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
655 | // return Val = port .getPatien tCurrentVi tals(query Bean); | |
656 | // } catch (E xception e ) { | |
657 | // logErr or(e); | |
658 | // throw new SOAPEx ception(e) ; | |
659 | // } | |
660 | // | |
661 | // return ret urnVal; | |
662 | // | |
663 | // } | |
664 | ||
665 | @Overr ide | |
666 | public List<Pati entDemogra phicsDetai l> getAllP atientDemo graphicDet ails(JMead owsQuery q ueryBean) throws SOA PException { | |
667 | lo g("getAllP atientDemo graphicDet ails", que ryBean); | |
668 | ||
669 | Li st<Patient Demographi csDetail> returnVal = null; | |
670 | tr y { | |
671 | ||
672 | JMeadows Data port = getJMead owsDataPor t(); | |
673 | returnVa l = port.g etPatientD emographic sDetail(qu eryBean); | |
674 | } catch (Exc eption e) { | |
675 | logError (e); | |
676 | throw ne w SOAPExce ption(e); | |
677 | } | |
678 | re turn retur nVal; | |
679 | } | |
680 | ||
681 | @Overr ide | |
682 | public JMedResul tCollectio n getPatie ntDemograp hics(JMead owsQuery q ueryBean) throws SOA PException { | |
683 | lo g("getPati entDemogra phics", qu eryBean); | |
684 | ||
685 | JM edResultCo llection r eturnVal = null; | |
686 | tr y { | |
687 | ||
688 | JMeadows Data port = getJMead owsDataPor t(); | |
689 | returnVa l = port.g etPatientD emographic s(queryBea n); | |
690 | } catch (Exc eption e) { | |
691 | logError (e); | |
692 | throw ne w SOAPExce ption(e); | |
693 | } | |
694 | re turn retur nVal; | |
695 | } | |
696 | ||
697 | @Overr ide | |
698 | public JMedResul tCollectio n getPatie ntProcedur es(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
699 | lo g("getPati entProcedu res", quer yBean); | |
700 | ||
701 | JM edResultCo llection r eturnVal = null; | |
702 | ||
703 | tr y { | |
704 | ||
705 | JMeadows Data port = getJMead owsDataPor t(); | |
706 | returnVa l = port.g etOutpatie ntProcedur es(queryBe an); | |
707 | } catch (Exc eption e) { | |
708 | logError (e); | |
709 | throw ne w SOAPExce ption(e); | |
710 | } | |
711 | ||
712 | re turn retur nVal; | |
713 | } | |
714 | ||
715 | ||
716 | // @Ove rride | |
717 | // publ ic Questio nnaireBean [] getPati entQuestio nnaires(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
718 | // log("getPa tientQuest ionnaires" , queryBea n); | |
719 | // | |
720 | // Questionna ireBean[] returnVal = null; | |
721 | // | |
722 | // try { | |
723 | // | |
724 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
725 | // return Val = port .getPatien tQuestionn aires(quer yBean).toA rray(new Q uestionnai reBean[0]) ; | |
726 | // } catch (E xception e ) { | |
727 | // throw new SOAPEx ception(e) ; | |
728 | // } | |
729 | // | |
730 | // return ret urnVal; | |
731 | // } | |
732 | ||
733 | @Overr ide | |
734 | public JMedResul tCollectio n getPatie ntForms(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
735 | lo g("getPati entForms", queryBean ); | |
736 | ||
737 | JM edResultCo llection r eturnVal = null; | |
738 | ||
739 | tr y { | |
740 | ||
741 | JMeadows Data port = getJMead owsDataPor t(); | |
742 | returnVa l = port.g etPatientF orms(query Bean); | |
743 | } catch (Exc eption e) { | |
744 | logError (e); | |
745 | throw ne w SOAPExce ption(e); | |
746 | } | |
747 | ||
748 | re turn retur nVal; | |
749 | } | |
750 | ||
751 | @Overr ide | |
752 | public JMedResul tCollectio n getPatie ntDischarg eSummaries (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
753 | lo g("getPati entDischar geSummarie s", queryB ean); | |
754 | ||
755 | JM edResultCo llection r eturnVal = null; | |
756 | ||
757 | tr y { | |
758 | ||
759 | JMeadows Data port = getJMead owsDataPor t(); | |
760 | returnVa l = port.g etPatientD ischargeSu mmaries(qu eryBean); | |
761 | } catch (Exc eption e) { | |
762 | logError (e); | |
763 | throw ne w SOAPExce ption(e); | |
764 | } | |
765 | ||
766 | re turn retur nVal; | |
767 | } | |
768 | ||
769 | @Overr ide | |
770 | public JMedResul tCollectio n getPatie ntImmuniza tions(JMea dowsQuery queryBean) throws SO APExceptio n { | |
771 | lo g("getPati entImmuniz ations", q ueryBean); | |
772 | ||
773 | JM edResultCo llection r eturnVal = null; | |
774 | tr y { | |
775 | ||
776 | JMeadows Data port = getJMead owsDataPor t(); | |
777 | returnVa l = port.g etPatientI mmunizatio ns(queryBe an); | |
778 | } catch (Exc eption e) { | |
779 | logError (e); | |
780 | throw ne w SOAPExce ption(e); | |
781 | } | |
782 | re turn retur nVal; | |
783 | } | |
784 | ||
785 | @Overr ide | |
786 | public JMedResul tCollectio n getPatie ntInsuranc es(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
787 | lo g("getPati entInsuran ces", quer yBean); | |
788 | ||
789 | JM edResultCo llection r eturnVal = null; | |
790 | ||
791 | tr y { | |
792 | JMeadows Data port = getJMead owsDataPor t(); | |
793 | returnVa l = port.g etPatientI nsurances( queryBean) ; | |
794 | ||
795 | } catch (Exc eption e) { | |
796 | logError (e); | |
797 | throw ne w SOAPExce ption(e); | |
798 | } | |
799 | ||
800 | re turn retur nVal; | |
801 | } | |
802 | ||
803 | ||
804 | @Overr ide | |
805 | public JMedResul tCollectio n getPatie ntLabs(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
806 | lo g("getPati entLabs", queryBean) ; | |
807 | ||
808 | JM edResultCo llection r eturnVal = null; | |
809 | tr y { | |
810 | ||
811 | JMeadows Data port = getJMead owsDataPor t(); | |
812 | returnVa l = port.g etPatientL abs(queryB ean); | |
813 | } catch (Exc eption e) { | |
814 | logError (e); | |
815 | throw ne w SOAPExce ption(e); | |
816 | } | |
817 | ||
818 | re turn retur nVal; | |
819 | } | |
820 | ||
821 | @Overr ide | |
822 | public FreeTextR eport getP atientLabR eport(JMea dowsQuery queryBean) throws SO APExceptio n { | |
823 | lo g("getPati entLabRepo rt", query Bean); | |
824 | ||
825 | Fr eeTextRepo rt returnV al = null; | |
826 | tr y { | |
827 | ||
828 | JMeadows Data port = getJMead owsDataPor t(); | |
829 | returnVa l = port.g etPatientL abReport(q ueryBean); | |
830 | } catch (Exc eption e) { | |
831 | logError (e); | |
832 | throw ne w SOAPExce ption(e); | |
833 | } | |
834 | ||
835 | re turn retur nVal; | |
836 | } | |
837 | ||
838 | @Overr ide | |
839 | public LabResult [] getPati entLabTest Results(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
840 | lo g("getPati entLabTest Results", queryBean) ; | |
841 | ||
842 | La bResult[] returnVal = null; | |
843 | tr y { | |
844 | ||
845 | JMeadows Data port = getJMead owsDataPor t(); | |
846 | returnVa l = port.g etPatientL abTestResu lts(queryB ean).toArr ay(new Lab Result[0]) ; | |
847 | } catch (Exc eption e) { | |
848 | logError (e); | |
849 | throw ne w SOAPExce ption(e); | |
850 | } | |
851 | ||
852 | re turn retur nVal; | |
853 | } | |
854 | ||
855 | @Overr ide | |
856 | public JMedResul tCollectio n getPatie ntLabResul ts(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
857 | lo g("getPati entLabResu lts", quer yBean); | |
858 | ||
859 | JM edResultCo llection r eturnVal = null; | |
860 | tr y { | |
861 | ||
862 | JMeadows Data port = getJMead owsDataPor t(); | |
863 | returnVa l = port.g etPatientL abResults( queryBean) ; | |
864 | } catch (Exc eption e) { | |
865 | logError (e); | |
866 | throw ne w SOAPExce ption(e); | |
867 | } | |
868 | ||
869 | re turn retur nVal; | |
870 | } | |
871 | ||
872 | @Overr ide | |
873 | public JMedResul tCollectio n getPatie ntMedicati ons(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
874 | lo g("getPati entMedicat ions", que ryBean); | |
875 | ||
876 | JM edResultCo llection r eturnVal = null; | |
877 | tr y { | |
878 | ||
879 | JMeadows Data port = getJMead owsDataPor t(); | |
880 | returnVa l = port.g etPatientM edications (queryBean ); | |
881 | } catch (Exc eption e) { | |
882 | logError (e); | |
883 | throw ne w SOAPExce ption(e); | |
884 | } | |
885 | ||
886 | re turn retur nVal; | |
887 | } | |
888 | ||
889 | // publ ic Medicat ion[] getP atientMedi cationsNVA (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
890 | // log("getPa tientMedic ationsNVA" , queryBea n); | |
891 | // | |
892 | // Medication [] returnV al = null; | |
893 | // try { | |
894 | // | |
895 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
896 | // return Val = port .getPatien tMedicatio nsNVA(quer yBean).toA rray(new M edication[ 0]); | |
897 | // } catch (E xception e ) { | |
898 | // throw new SOAPEx ception(e) ; | |
899 | // } | |
900 | // return ret urnVal; | |
901 | // | |
902 | // } | |
903 | ||
904 | @Overr ide | |
905 | public JMedResul tCollectio n getPatie ntOrders(J MeadowsQue ry queryBe an) throws SOAPExcep tion { | |
906 | lo g("getPati entOrders" , queryBea n); | |
907 | ||
908 | JM edResultCo llection r eturnVal = null; | |
909 | ||
910 | tr y { | |
911 | ||
912 | JMeadows Data port = getJMead owsDataPor t(); | |
913 | returnVa l = port.g etPatientO rders(quer yBean); | |
914 | } catch (Exc eption e) { | |
915 | logError (e); | |
916 | throw ne w SOAPExce ption(e); | |
917 | } | |
918 | ||
919 | re turn retur nVal; | |
920 | } | |
921 | ||
922 | @Overr ide | |
923 | public JMedResul tCollectio n getPatie ntProblemL ist(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
924 | lo g("getPati entProblem List", que ryBean); | |
925 | ||
926 | JM edResultCo llection r eturnVal = null; | |
927 | ||
928 | tr y { | |
929 | ||
930 | JMeadows Data port = getJMead owsDataPor t(); | |
931 | returnVa l = port.g etPatientP roblemList (queryBean ); | |
932 | } catch (Exc eption e) { | |
933 | logError (e); | |
934 | throw ne w SOAPExce ption(e); | |
935 | } | |
936 | ||
937 | re turn retur nVal; | |
938 | } | |
939 | ||
940 | // pu blic Proce dure[] get PatientPro cedures(JM eadowsQuer y queryBea n) throws SOAPExcept ion | |
941 | // { | |
942 | // Proc edure[] re turnVal = null; | |
943 | // | |
944 | // try { | |
945 | // | |
946 | // JMeadows Data port = getJMead owsDataPor t(); | |
947 | // returnVa l = port.g etPatientP rocedures( queryBean) .toArray(n ew Procedu re[0]); | |
948 | // } | |
949 | // catch (Exception e) | |
950 | // { | |
951 | // throw ne w SOAPExce ption(e); | |
952 | // } | |
953 | // | |
954 | // return ret urnVal; | |
955 | // | |
956 | // } | |
957 | ||
958 | @Overr ide | |
959 | public JMedResul tCollectio n getPatie ntProgress Notes(JMea dowsQuery queryBean) throws SO APExceptio n { | |
960 | lo g("getPati entProgres sNotes", q ueryBean); | |
961 | ||
962 | JM edResultCo llection r eturnVal = null; | |
963 | ||
964 | tr y { | |
965 | ||
966 | JMeadows Data port = getJMead owsDataPor t(); | |
967 | returnVa l = port.g etPatientP rogressNot es(queryBe an); | |
968 | } catch (Exc eption e) { | |
969 | logError (e); | |
970 | throw ne w SOAPExce ption(e); | |
971 | } | |
972 | ||
973 | re turn retur nVal; | |
974 | } | |
975 | ||
976 | /** | |
977 | * Fet ches a BHI E note ima ge. | |
978 | * | |
979 | * @pa ram queryB ean requir ed params: provider, itemid (c ontaining bhie note event id) | |
980 | * @re turn Note image | |
981 | * @th rows javax .xml.soap. SOAPExcept ion if an error occu rs. | |
982 | */ | |
983 | @Overr ide | |
984 | public NoteImage getBHIENo teImage(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
985 | lo g("getBHIE NoteImage" , queryBea n); | |
986 | ||
987 | tr y { | |
988 | return g etJMeadows DataPort(t rue).getBH IENoteImag e(queryBea n); | |
989 | ||
990 | } catch (Exc eption e) { | |
991 | logError (e); | |
992 | throw ne w SOAPExce ption(e); | |
993 | } | |
994 | ||
995 | } | |
996 | ||
997 | /** | |
998 | * Fet ches a BHI E note ima ge. | |
999 | * | |
1000 | * @pa ram queryB ean requir ed params: provider, itemid (c ontaining bhie note event id) | |
1001 | * @re turn Note image | |
1002 | * @th rows javax .xml.soap. SOAPExcept ion if an error occu rs. | |
1003 | */ | |
1004 | @Overr ide | |
1005 | public NoteImage getBHIENo teAttachme nt(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1006 | lo g("getBHIE NoteImage" , queryBea n); | |
1007 | ||
1008 | tr y { | |
1009 | return g etJMeadows DataPort(t rue).getBH IENoteAtta chment(que ryBean); | |
1010 | ||
1011 | } catch (Exc eption e) { | |
1012 | logError (e); | |
1013 | throw ne w SOAPExce ption(e); | |
1014 | } | |
1015 | ||
1016 | } | |
1017 | ||
1018 | @Overr ide | |
1019 | public JMedResul tCollectio n getPatie ntRads(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
1020 | lo g("getPati entRads", queryBean) ; | |
1021 | ||
1022 | JM edResultCo llection r eturnVal = null; | |
1023 | ||
1024 | tr y { | |
1025 | ||
1026 | JMeadows Data port = getJMead owsDataPor t(); | |
1027 | returnVa l = port.g etPatientR ads(queryB ean); | |
1028 | } catch (Exc eption e) { | |
1029 | logError (e); | |
1030 | throw ne w SOAPExce ption(e); | |
1031 | } | |
1032 | ||
1033 | re turn retur nVal; | |
1034 | } | |
1035 | ||
1036 | @Overr ide | |
1037 | public JMedResul tCollectio n getPatie ntVitals(J MeadowsQue ry queryBe an) throws SOAPExcep tion { | |
1038 | lo g("getPati entVitals" , queryBea n); | |
1039 | ||
1040 | JM edResultCo llection r eturnVal = null; | |
1041 | ||
1042 | tr y { | |
1043 | ||
1044 | JMeadows Data port = getJMead owsDataPor t(); | |
1045 | returnVa l = port.g etPatientV itals(quer yBean); | |
1046 | } catch (Exc eption e) { | |
1047 | logError (e); | |
1048 | throw ne w SOAPExce ption(e); | |
1049 | } | |
1050 | ||
1051 | re turn retur nVal; | |
1052 | } | |
1053 | ||
1054 | // public Pre scription getPrescri ptionFills (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
1055 | // log("getPr escription Fills", qu eryBean); | |
1056 | // | |
1057 | // Prescripti on returnV al = null; | |
1058 | // | |
1059 | // try { | |
1060 | // | |
1061 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
1062 | // return Val = port .getPrescr iptionFill s(queryBea n); | |
1063 | // } catch (E xception e ) { | |
1064 | // throw new SOAPEx ception(e) ; | |
1065 | // } | |
1066 | // | |
1067 | // return ret urnVal; | |
1068 | // | |
1069 | // } | |
1070 | @Overr ide | |
1071 | public JMedResul tCollectio n getPatie ntHistorie s(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1072 | lo g("getPati entHistori es", query Bean); | |
1073 | ||
1074 | JM edResultCo llection r eturnVal = null; | |
1075 | ||
1076 | tr y { | |
1077 | ||
1078 | JMeadows Data port = getJMead owsDataPor t(); | |
1079 | returnVa l = port.g etPatientH istory(que ryBean); | |
1080 | } catch (Exc eption e) { | |
1081 | logError (e); | |
1082 | throw ne w SOAPExce ption(e); | |
1083 | } | |
1084 | ||
1085 | re turn retur nVal; | |
1086 | } | |
1087 | ||
1088 | @Overr ide | |
1089 | public JMedResul tCollectio n getVLERD ocumentLis t(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1090 | lo g("getVLER DocumentLi st", query Bean); | |
1091 | ||
1092 | JM edResultCo llection r eturnVal = null; | |
1093 | ||
1094 | tr y { | |
1095 | ||
1096 | JMeadows Data port = getJMead owsDataPor t(); | |
1097 | returnVa l = port.g etVLERDocu mentList(q ueryBean); | |
1098 | } catch (Exc eption e) { | |
1099 | logError (e); | |
1100 | throw ne w SOAPExce ption(e); | |
1101 | } | |
1102 | ||
1103 | re turn retur nVal; | |
1104 | } | |
1105 | ||
1106 | @Overr ide | |
1107 | public JMedResul tCollectio n getDODVL ERDocument List(JMead owsQuery q ueryBean) throws SOA PException { | |
1108 | lo g("getDODV LERDocumen tList", qu eryBean); | |
1109 | ||
1110 | JM edResultCo llection r eturnVal = null; | |
1111 | ||
1112 | tr y { | |
1113 | ||
1114 | JMeadows Data port = getJMead owsDataPor t(); | |
1115 | returnVa l = port.g etDODVLERD ocumentLis t(queryBea n); | |
1116 | } catch (Exc eption e) { | |
1117 | logError (e); | |
1118 | throw ne w SOAPExce ption(e); | |
1119 | } | |
1120 | ||
1121 | re turn retur nVal; | |
1122 | } | |
1123 | ||
1124 | @Overr ide | |
1125 | public VlerDocum ent getVLE RDocument( JMeadowsQu ery queryB ean, VlerD ocument vD oc) throws SOAPExcep tion { | |
1126 | lo g("getVLER Document", queryBean ); | |
1127 | ||
1128 | Vl erDocument returnVal = null; | |
1129 | ||
1130 | tr y { | |
1131 | ||
1132 | JMeadows Data port = getJMead owsDataPor t(); | |
1133 | returnVa l = port.g etVLERDocu ment(vDoc, queryBean ); | |
1134 | } catch (Exc eption e) { | |
1135 | logError (e); | |
1136 | throw ne w SOAPExce ption(e); | |
1137 | } | |
1138 | ||
1139 | re turn retur nVal; | |
1140 | } | |
1141 | ||
1142 | @Overr ide | |
1143 | public JMedResul tCollectio n getDODVL ERPatientC CDA(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
1144 | lo g("getDODV LERPatient CCDA", que ryBean); | |
1145 | ||
1146 | JM edResultCo llection r eturnVal = null; | |
1147 | ||
1148 | tr y { | |
1149 | ||
1150 | JMeadows Data port = getJMead owsDataPor t(); | |
1151 | returnVa l = port.g etDODVLERP atientCCDA (queryBean ); | |
1152 | } catch (Exc eption e) { | |
1153 | logError (e); | |
1154 | throw ne w SOAPExce ption(e); | |
1155 | } | |
1156 | ||
1157 | re turn retur nVal; | |
1158 | } | |
1159 | ||
1160 | @Overr ide | |
1161 | public Vlerccda[ ] getDASVL ERPatientC CDA(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
1162 | lo g("getDASV LERPatient CCDA", que ryBean); | |
1163 | ||
1164 | Vl erccda[] r eturnVal = null; | |
1165 | ||
1166 | tr y { | |
1167 | ||
1168 | JMeadows Data port = getJMead owsDataPor t(); | |
1169 | returnVa l = port.g etDASPatie ntData(que ryBean).to Array(new Vlerccda[0 ]); | |
1170 | } catch (Exc eption e) { | |
1171 | logError (e); | |
1172 | throw ne w SOAPExce ption(e); | |
1173 | } | |
1174 | ||
1175 | re turn retur nVal; | |
1176 | } | |
1177 | ||
1178 | ||
1179 | @Overr ide | |
1180 | public ProblemDe tail getPr oblemDetai l(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1181 | lo g("getProb lemDetail" , queryBea n); | |
1182 | ||
1183 | Pr oblemDetai l returnVa l = null; | |
1184 | ||
1185 | tr y { | |
1186 | ||
1187 | JMeadows Data port = getJMead owsDataPor t(); | |
1188 | returnVa l = port.g etProblemD etail(quer yBean); | |
1189 | } catch (Exc eption e) { | |
1190 | logError (e); | |
1191 | throw ne w SOAPExce ption(e); | |
1192 | } | |
1193 | ||
1194 | re turn retur nVal; | |
1195 | } | |
1196 | ||
1197 | @Overr ide | |
1198 | public FreeTextR eport getP rogressNot e(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1199 | lo g("getProg ressNote", queryBean ); | |
1200 | ||
1201 | Fr eeTextRepo rt returnV al = null; | |
1202 | ||
1203 | tr y { | |
1204 | ||
1205 | JMeadows Data port = getJMead owsDataPor t(); | |
1206 | returnVa l = port.g etProgress Note(query Bean); | |
1207 | } catch (Exc eption e) { | |
1208 | logError (e); | |
1209 | throw ne w SOAPExce ption(e); | |
1210 | } | |
1211 | ||
1212 | re turn retur nVal; | |
1213 | } | |
1214 | ||
1215 | @Overr ide | |
1216 | public JMedResul tCollectio n getMhsGe nesisDocum ents(JMead owsQuery q ueryBean) throws SOA PException { | |
1217 | lo g("getMhsG enesisDocu ments", qu eryBean); | |
1218 | ||
1219 | JM edResultCo llection r eturnVal = null; | |
1220 | ||
1221 | tr y { | |
1222 | JMeadows Data port = getJMead owsDataPor t(); | |
1223 | returnVa l = port.g etMhsGenes isDocument s(queryBea n); | |
1224 | } catch (Exc eption e) { | |
1225 | logError (e); | |
1226 | throw ne w SOAPExce ption(e); | |
1227 | } | |
1228 | ||
1229 | re turn retur nVal; | |
1230 | } | |
1231 | ||
1232 | @Overr ide | |
1233 | public User getP roviderPro file(JMead owsQuery q ueryBean) throws SOA PException { | |
1234 | lo g("getProv iderProfil e", queryB ean); | |
1235 | ||
1236 | Us er returnV al = null; | |
1237 | tr y { | |
1238 | ||
1239 | JMeadows Data port = getJMead owsDataPor t(); | |
1240 | returnVa l = port.g etProvider Profile(qu eryBean); | |
1241 | ||
1242 | } catch (Exc eption e) { | |
1243 | logError (e); | |
1244 | throw ne w SOAPExce ption(e); | |
1245 | } | |
1246 | re turn retur nVal; | |
1247 | } | |
1248 | ||
1249 | @Overr ide | |
1250 | public Radiology Report get RadiologyR eport(JMea dowsQuery queryBean) throws SO APExceptio n { | |
1251 | lo g("getRadi ologyRepor t", queryB ean); | |
1252 | ||
1253 | Ra diologyRep ort return Val = null ; | |
1254 | ||
1255 | tr y { | |
1256 | ||
1257 | JMeadows Data port = getJMead owsDataPor t(); | |
1258 | returnVa l = port.g etRadiolog yReport(qu eryBean); | |
1259 | } catch (Exc eption e) { | |
1260 | logError (e); | |
1261 | throw ne w SOAPExce ption(e); | |
1262 | } | |
1263 | ||
1264 | re turn retur nVal; | |
1265 | ||
1266 | } | |
1267 | ||
1268 | @Overr ide | |
1269 | public Alert[] g etUserAler ts(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1270 | lo g("getUser Alerts", q ueryBean); | |
1271 | ||
1272 | Al ert[] retu rnVal = nu ll; | |
1273 | ||
1274 | tr y { | |
1275 | ||
1276 | JMeadows Data port = getJMead owsDataPor t(); | |
1277 | returnVa l = port.g etUserAler ts(queryBe an).toArra y(new Aler t[0]); | |
1278 | } catch (Exc eption e) { | |
1279 | logError (e); | |
1280 | throw ne w SOAPExce ption(e); | |
1281 | } | |
1282 | re turn retur nVal; | |
1283 | ||
1284 | } | |
1285 | ||
1286 | @Overr ide | |
1287 | public FreeTextR eport getV isitNotes( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
1288 | lo g("getVisi tNotes", q ueryBean); | |
1289 | ||
1290 | Fr eeTextRepo rt returnV al = null; | |
1291 | ||
1292 | tr y { | |
1293 | ||
1294 | JMeadows Data port = getJMead owsDataPor t(); | |
1295 | returnVa l = port.g etVisitNot es(queryBe an); | |
1296 | } catch (Exc eption e) { | |
1297 | logError (e); | |
1298 | throw ne w SOAPExce ption(e); | |
1299 | } | |
1300 | re turn retur nVal; | |
1301 | } | |
1302 | ||
1303 | @Overr ide | |
1304 | public FreeTextR eport getP atientEnco untersRepo rt(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1305 | lo g("getPati entEncount ersReport" , queryBea n); | |
1306 | ||
1307 | Fr eeTextRepo rt returnV al = null; | |
1308 | ||
1309 | tr y { | |
1310 | ||
1311 | JMeadows Data port = getJMead owsDataPor t(); | |
1312 | returnVa l = port.g etPatientE ncountersR eport(quer yBean); | |
1313 | } catch (Exc eption e) { | |
1314 | logError (e); | |
1315 | throw ne w SOAPExce ption(e); | |
1316 | } | |
1317 | re turn retur nVal; | |
1318 | } | |
1319 | ||
1320 | @Overr ide | |
1321 | public Patient[] lookupPat ient(JMead owsQuery q ueryBean) throws SOA PException { | |
1322 | lo g("lookupP atient", q ueryBean); | |
1323 | ||
1324 | Pa tient[] re turnVal = null; | |
1325 | ||
1326 | tr y { | |
1327 | ||
1328 | JMeadows Data port = getJMead owsDataPor t(); | |
1329 | returnVa l = port.l ookupPatie nt(queryBe an).toArra y(new Pati ent[0]); | |
1330 | } catch (Exc eption e) { | |
1331 | logError (e); | |
1332 | throw ne w SOAPExce ption(e); | |
1333 | } | |
1334 | ||
1335 | re turn retur nVal; | |
1336 | ||
1337 | } | |
1338 | ||
1339 | @Overr ide | |
1340 | public ResponseP atientQuer y lookupPa tientPDWS( PdwsQueryB ean queryB ean) throw s SOAPExce ption { | |
1341 | lo g("lookupP atientPDWS "); | |
1342 | ||
1343 | Re sponsePati entQuery r eturnVal = null; | |
1344 | ||
1345 | tr y { | |
1346 | JMeadows Data port = getJMead owsDataPor t(); | |
1347 | returnVa l = port.l ookupPatie ntPDWS(que ryBean); | |
1348 | } catch (Exc eption e) { | |
1349 | logError (e); | |
1350 | throw ne w SOAPExce ption(e); | |
1351 | } | |
1352 | ||
1353 | re turn retur nVal; | |
1354 | } | |
1355 | ||
1356 | @Overr ide | |
1357 | public ResponseP atientQuer y lookupPa tientMVI(P dwsQueryBe an queryBe an) throws SOAPExcep tion { | |
1358 | lo g("lookupP atientMVI" ); | |
1359 | ||
1360 | Re sponsePati entQuery r eturnVal = null; | |
1361 | ||
1362 | tr y { | |
1363 | JMeadows Data port = getJMead owsDataPor t(); | |
1364 | returnVa l = port.l ookupPatie ntMVI(quer yBean); | |
1365 | } catch (Exc eption e) { | |
1366 | logError (e); | |
1367 | throw ne w SOAPExce ption(e); | |
1368 | } | |
1369 | ||
1370 | re turn retur nVal; | |
1371 | } | |
1372 | ||
1373 | @Overr ide | |
1374 | public Patient s electPatie nt(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1375 | lo g("selectP atient", q ueryBean); | |
1376 | ||
1377 | Pa tient retu rnVal = nu ll; | |
1378 | ||
1379 | tr y { | |
1380 | ||
1381 | JMeadows Data port = getJMead owsDataPor t(); | |
1382 | returnVa l = port.s electPatie nt(queryBe an); | |
1383 | } catch (Exc eption e) { | |
1384 | logError (e); | |
1385 | throw ne w SOAPExce ption(e); | |
1386 | } | |
1387 | ||
1388 | re turn retur nVal; | |
1389 | ||
1390 | } | |
1391 | ||
1392 | @Overr ide | |
1393 | public ResponseP atientSele ct selectP atientMVI( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
1394 | lo g("selectP atientMVI" ); | |
1395 | ||
1396 | Re sponsePati entSelect returnVal = null; | |
1397 | ||
1398 | tr y { | |
1399 | JMeadows Data port = getJMead owsDataPor t(); | |
1400 | returnVa l = port.s electPatie ntMVI(quer yBean); | |
1401 | } catch (Exc eption e) { | |
1402 | logError (e); | |
1403 | throw ne w SOAPExce ption(e); | |
1404 | } | |
1405 | ||
1406 | re turn retur nVal; | |
1407 | } | |
1408 | ||
1409 | @Overr ide | |
1410 | public void sele ctPatientF orVASensit ive(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
1411 | lo g("selectP atientForV ASensitive "); | |
1412 | ||
1413 | tr y { | |
1414 | JMeadows Data port = getJMead owsDataPor t(); | |
1415 | port.sel ectPatient ForVASensi tive(query Bean); | |
1416 | } catch (Exc eption e) { | |
1417 | logError (e); | |
1418 | throw ne w SOAPExce ption(e); | |
1419 | } | |
1420 | } | |
1421 | ||
1422 | @Overr ide | |
1423 | public Alert[] g etVASensit ivePatient Alerts(JMe adowsQuery queryBean ) throws S OAPExcepti on{ | |
1424 | lo g("getVASe nsitivePat ientAlerts "); | |
1425 | ||
1426 | Al ert[] retu rnVal = nu ll; | |
1427 | ||
1428 | tr y { | |
1429 | JMeadows Data port = getJMead owsDataPor t(); | |
1430 | returnVa l = port.g etVASensit ivePatient Alerts(que ryBean).to Array(new Alert[0]); | |
1431 | } catch (Exc eption e) { | |
1432 | logError (e); | |
1433 | throw ne w SOAPExce ption(e); | |
1434 | } | |
1435 | re turn retur nVal; | |
1436 | ||
1437 | } | |
1438 | ||
1439 | ||
1440 | @Overr ide | |
1441 | public void audi tVARestric tedAccess( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
1442 | lo g("auditVA Restricted Access"); | |
1443 | ||
1444 | tr y { | |
1445 | JMeadows Data port = getJMead owsDataPor t(); | |
1446 | port.aud itVARestri ctedAccess (queryBean ); | |
1447 | } catch (Exc eption e) { | |
1448 | logError (e); | |
1449 | throw ne w SOAPExce ption(e); | |
1450 | } | |
1451 | } | |
1452 | ||
1453 | @Overr ide | |
1454 | public void audi tSensitive RecordAcce ss(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1455 | lo g("auditSe nsitiveRec ordAccess" ); | |
1456 | ||
1457 | tr y { | |
1458 | JMeadows Data port = getJMead owsDataPor t(); | |
1459 | port.aud itSensitiv eRecordAcc ess(queryB ean); | |
1460 | } catch (Exc eption e) { | |
1461 | logError (e); | |
1462 | throw ne w SOAPExce ption(e); | |
1463 | } | |
1464 | } | |
1465 | ||
1466 | @Overr ide | |
1467 | 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, | |
1468 | Strin g userName , String p atId, Stri ng categor y, String requesting App, | |
1469 | Strin g startDat e, String endDate, S tring info , String c ardId, Str ing emailA ddress, | |
1470 | Strin g complexT ransaction ) throws S OAPExcepti on { | |
1471 | ||
1472 | lo g("logAudi t"); | |
1473 | ||
1474 | tr y { | |
1475 | JMeadows Data port = getJMead owsDataPor t(); | |
1476 | port.log Audit(site Id, siteMo niker, sit eAgency, r ecordID, u serId, pro viderId, u serNPI, us erName, pa tId, | |
1477 | category, appName, s tartDate, endDate, i nfo, cardI d, emailAd dress, com plexTransa ction); | |
1478 | } catch (Exc eption e) { | |
1479 | logError (e); | |
1480 | throw ne w SOAPExce ption(e); | |
1481 | } | |
1482 | ||
1483 | } | |
1484 | ||
1485 | // @Ove rride | |
1486 | // publ ic void lo gAudit(Str ing siteId , String u serId, Str ing provid erId, Stri ng userNPI , | |
1487 | // Str ing userNa me, String patId, St ring categ ory, | |
1488 | // Str ing startD ate, Strin g endDate) throws SO APExceptio n { | |
1489 | // | |
1490 | // log("logAu dit"); | |
1491 | // | |
1492 | // try { | |
1493 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
1494 | // port.l ogAudit(si teId, user Id, provid erId, user NPI, userN ame, patId , category , appName, startDate , endDate) ; | |
1495 | // } catch (E xception e ) { | |
1496 | // throw new SOAPEx ception(e) ; | |
1497 | // } | |
1498 | // | |
1499 | // } | |
1500 | ||
1501 | @Overr ide | |
1502 | public PatientAd mission[] getProvide rAdmission s(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1503 | ||
1504 | lo g("getProv iderAdmiss ions", que ryBean); | |
1505 | ||
1506 | Pa tientAdmis sion[] ret urnVal = n ull; | |
1507 | tr y { | |
1508 | JMeadows Data port = getJMead owsDataPor t(); | |
1509 | returnVa l = port.g etProvider Admissions (queryBean ).toArray( new Patien tAdmission [0]); | |
1510 | } catch (Exc eption e) { | |
1511 | logError (e); | |
1512 | throw ne w SOAPExce ption(e); | |
1513 | } | |
1514 | re turn retur nVal; | |
1515 | } | |
1516 | ||
1517 | @Overr ide | |
1518 | public PatientAp pointments [] getProv iderAppoin tments(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
1519 | lo g("getProv iderAppoin tments", q ueryBean); | |
1520 | ||
1521 | Pa tientAppoi ntments[] returnVal = null; | |
1522 | tr y { | |
1523 | JMeadows Data port = getJMead owsDataPor t(); | |
1524 | returnVa l = port.g etProvider Appointmen ts(queryBe an).toArra y(new Pati entAppoint ments[0]); | |
1525 | } catch (Exc eption e) { | |
1526 | logError (e); | |
1527 | throw ne w SOAPExce ption(e); | |
1528 | } | |
1529 | re turn retur nVal; | |
1530 | } | |
1531 | ||
1532 | @Overr ide | |
1533 | public Consult[] getProvid erConsults Received(J MeadowsQue ry queryBe an) throws SOAPExcep tion { | |
1534 | lo g("getProv iderConsul tsReceived ", queryBe an); | |
1535 | ||
1536 | Co nsult[] re turnVal = null; | |
1537 | tr y { | |
1538 | JMeadows Data port = getJMead owsDataPor t(); | |
1539 | returnVa l = port.g etProvider ConsultsRe ceived(que ryBean).to Array(new Consult[0] ); | |
1540 | } catch (Exc eption e) { | |
1541 | logError (e); | |
1542 | throw ne w SOAPExce ption(e); | |
1543 | } | |
1544 | re turn retur nVal; | |
1545 | } | |
1546 | ||
1547 | @Overr ide | |
1548 | public Consult[] getProvid erConsults Requested( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
1549 | lo g("getProv iderConsul tsRequeste d", queryB ean); | |
1550 | ||
1551 | Co nsult[] re turnVal = null; | |
1552 | tr y { | |
1553 | JMeadows Data port = getJMead owsDataPor t(); | |
1554 | returnVa l = port.g etProvider ConsultsRe quested(qu eryBean).t oArray(new Consult[0 ]); | |
1555 | } catch (Exc eption e) { | |
1556 | logError (e); | |
1557 | throw ne w SOAPExce ption(e); | |
1558 | } | |
1559 | re turn retur nVal; | |
1560 | } | |
1561 | ||
1562 | @Overr ide | |
1563 | public LabResult [] getProv iderLabAbn ormalResul ts(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1564 | lo g("getProv iderLabAbn ormalResul ts", query Bean); | |
1565 | ||
1566 | La bResult[] returnVal = null; | |
1567 | tr y { | |
1568 | JMeadows Data port = getJMead owsDataPor t(); | |
1569 | returnVa l = port.g etProvider LabAbnorma lResults(q ueryBean). toArray(ne w LabResul t[0]); | |
1570 | } catch (Exc eption e) { | |
1571 | logError (e); | |
1572 | throw ne w SOAPExce ption(e); | |
1573 | } | |
1574 | re turn retur nVal; | |
1575 | } | |
1576 | ||
1577 | @Overr ide | |
1578 | public Order[] g etProvider OrdersPend ing(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
1579 | lo g("getProv iderOrders Pending", queryBean) ; | |
1580 | ||
1581 | Or der[] retu rnVal = nu ll; | |
1582 | tr y { | |
1583 | JMeadows Data port = getJMead owsDataPor t(); | |
1584 | returnVa l = port.g etProvider OrdersPend ing(queryB ean).toArr ay(new Ord er[0]); | |
1585 | } catch (Exc eption e) { | |
1586 | logError (e); | |
1587 | throw ne w SOAPExce ption(e); | |
1588 | } | |
1589 | re turn retur nVal; | |
1590 | } | |
1591 | ||
1592 | @Overr ide | |
1593 | public Order[] g etProvider OrdersResu lted(JMead owsQuery q ueryBean) throws SOA PException { | |
1594 | lo g("getProv iderOrders Resulted", queryBean ); | |
1595 | ||
1596 | Or der[] retu rnVal = nu ll; | |
1597 | tr y { | |
1598 | JMeadows Data port = getJMead owsDataPor t(); | |
1599 | returnVa l = port.g etProvider OrdersResu lted(query Bean).toAr ray(new Or der[0]); | |
1600 | } catch (Exc eption e) { | |
1601 | logError (e); | |
1602 | throw ne w SOAPExce ption(e); | |
1603 | } | |
1604 | re turn retur nVal; | |
1605 | } | |
1606 | ||
1607 | @Overr ide | |
1608 | public ProgressN ote[] getP roviderUns ignedNotes (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
1609 | lo g("getProv iderUnsign edNotes", queryBean) ; | |
1610 | ||
1611 | Pr ogressNote [] returnV al = null; | |
1612 | tr y { | |
1613 | JMeadows Data port = getJMead owsDataPor t(); | |
1614 | returnVa l = port.g etProvider UnsignedNo tes(queryB ean).toArr ay(new Pro gressNote[ 0]); | |
1615 | } catch (Exc eption e) { | |
1616 | logError (e); | |
1617 | throw ne w SOAPExce ption(e); | |
1618 | } | |
1619 | re turn retur nVal; | |
1620 | } | |
1621 | ||
1622 | @Overr ide | |
1623 | public boolean s etJanusGUI Config(JMe adowsQuery queryBean , String c fg) throws SOAPExcep tion { | |
1624 | lo g("setJanu sGUIConfig ", queryBe an); | |
1625 | ||
1626 | bo olean bRet = false; | |
1627 | tr y { | |
1628 | JMeadows Data port = getJMead owsDataPor t(); | |
1629 | bRet = p ort.setJan usGUIConfi g(queryBea n, cfg); | |
1630 | } catch (Exc eption e) { | |
1631 | logError (e); | |
1632 | throw ne w SOAPExce ption(e); | |
1633 | } | |
1634 | re turn bRet; | |
1635 | } | |
1636 | ||
1637 | @Overr ide | |
1638 | public String ge tJanusGUIC onfig(JMea dowsQuery queryBean) throws SO APExceptio n { | |
1639 | lo g("getJanu sGUIConfig ", queryBe an); | |
1640 | ||
1641 | St ring retVa l = ""; | |
1642 | tr y { | |
1643 | JMeadows Data port = getJMead owsDataPor t(); | |
1644 | retVal = port.getJ anusGUICon fig(queryB ean); | |
1645 | } catch (Exc eption e) { | |
1646 | logError (e); | |
1647 | throw ne w SOAPExce ption(e); | |
1648 | } | |
1649 | re turn retVa l; | |
1650 | } | |
1651 | ||
1652 | @Overr ide | |
1653 | public boolean s etProvider Flags(JMea dowsQuery queryBean, String fl ags) throw s SOAPExce ption { | |
1654 | lo g("setProv iderFlags" , queryBea n); | |
1655 | ||
1656 | bo olean bRet = false; | |
1657 | tr y { | |
1658 | JMeadows Data port = getJMead owsDataPor t(); | |
1659 | bRet = p ort.setPro viderFlags (queryBean , flags); | |
1660 | } catch (Exc eption e) { | |
1661 | logError (e); | |
1662 | throw ne w SOAPExce ption(e); | |
1663 | } | |
1664 | re turn bRet; | |
1665 | } | |
1666 | ||
1667 | @Overr ide | |
1668 | public String ge tProviderF lags(JMead owsQuery q ueryBean) throws SOA PException { | |
1669 | lo g("getProv iderFlags" , queryBea n); | |
1670 | ||
1671 | St ring retVa l = ""; | |
1672 | tr y { | |
1673 | JMeadows Data port = getJMead owsDataPor t(); | |
1674 | retVal = port.getP roviderFla gs(queryBe an); | |
1675 | } catch (Exc eption e) { | |
1676 | logError (e); | |
1677 | throw ne w SOAPExce ption(e); | |
1678 | } | |
1679 | re turn retVa l; | |
1680 | } | |
1681 | ||
1682 | // @Ove rride | |
1683 | // publ ic IehrUse rProfile g etIehrUser Profile(St ring smart CardID, St ring smart CardAgency ) throws S OAPExcepti on { | |
1684 | // return get IehrUserPr ofile(smar tCardID, s martCardAg ency, ""); | |
1685 | // } | |
1686 | ||
1687 | @Overr ide | |
1688 | public IehrUserP rofile get IehrUserPr ofile(Stri ng smartCa rdID, Stri ng smartCa rdAgency, String ema ilAddress) throws SO APExceptio n { | |
1689 | Ie hrUserProf ile retVal = null; | |
1690 | tr y { | |
1691 | JMeadows Data port = getJMead owsDataPor t(); | |
1692 | retVal = port.getI ehrUserPro file(smart CardID, sm artCardAge ncy, email Address); | |
1693 | } catch (Exc eption e) { | |
1694 | logError (e); | |
1695 | throw ne w SOAPExce ption(e); | |
1696 | } | |
1697 | re turn retVa l; | |
1698 | } | |
1699 | ||
1700 | @Overr ide | |
1701 | public boolean s etIehrUser Profile(Ie hrUserProf ile userPr ofile) thr ows SOAPEx ception { | |
1702 | bo olean bRet = false; | |
1703 | tr y { | |
1704 | JMeadows Data port = getJMead owsDataPor t(); | |
1705 | bRet = p ort.setIeh rUserProfi le(userPro file); | |
1706 | } catch (Exc eption e) { | |
1707 | logError (e); | |
1708 | throw ne w SOAPExce ption(e); | |
1709 | } | |
1710 | re turn bRet; | |
1711 | } | |
1712 | ||
1713 | @Overr ide | |
1714 | public String ge tAppName() { | |
1715 | re turn appNa me; | |
1716 | } | |
1717 | ||
1718 | @Overr ide | |
1719 | public void setA ppName(Str ing appNam e) { | |
1720 | th is.appName = appName ; | |
1721 | } | |
1722 | ||
1723 | @Overr ide | |
1724 | public List<Site > getSites () throws SOAPExcept ion { | |
1725 | Li st<Site> r etVal = nu ll; | |
1726 | tr y { | |
1727 | JMeadows Data port = getJMead owsDataPor t(); | |
1728 | retVal = port.getS ites(); | |
1729 | } catch (Exc eption e) { | |
1730 | logError (e); | |
1731 | throw ne w SOAPExce ption(e); | |
1732 | } | |
1733 | re turn retVa l; | |
1734 | } | |
1735 | ||
1736 | @Overr ide | |
1737 | public List<Audi tEntry> ge tLoginInfo (String ca rdID, Stri ng emailAd dress) thr ows SOAPEx ception { | |
1738 | Li st<AuditEn try> retVa l = null; | |
1739 | tr y { | |
1740 | JMeadows Data port = getJMead owsDataPor t(); | |
1741 | retVal = port.getL oginInfo(c ardID, ema ilAddress) ; | |
1742 | } catch (Exc eption e) { | |
1743 | logError (e); | |
1744 | throw ne w SOAPExce ption(e); | |
1745 | } | |
1746 | re turn retVa l; | |
1747 | } | |
1748 | ||
1749 | // @Ove rride | |
1750 | // publ ic String getService Errors() t hrows SOAP Exception { | |
1751 | // String ret Val = null ; | |
1752 | // try { | |
1753 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
1754 | // retVal = port.ge tServiceEr rors(); | |
1755 | // } catch (E xception e ) { | |
1756 | // logErr or(e); | |
1757 | // throw new SOAPEx ception(e) ; | |
1758 | // } | |
1759 | // return ret Val; | |
1760 | // } | |
1761 | ||
1762 | @Overr ide | |
1763 | public AuthUserI nfo getAut hUser(Auth UserInfo a uthUserInf oQuery) th rows SOAPE xception { | |
1764 | Au thUserInfo retVal = null; | |
1765 | ||
1766 | tr y { | |
1767 | JMeadows Data port = getJMead owsDataPor t(); | |
1768 | retVal = port.getA uthUser(au thUserInfo Query); | |
1769 | } catch (Exc eption e) { | |
1770 | logError (e); | |
1771 | throw ne w SOAPExce ption(e); | |
1772 | } | |
1773 | ||
1774 | re turn retVa l; | |
1775 | } | |
1776 | ||
1777 | @Overr ide | |
1778 | public List<Pati ent> getRe centlyView edPatients (String us erId) thro ws SOAPExc eption { | |
1779 | Li st<Patient > patients = null; | |
1780 | ||
1781 | tr y { | |
1782 | JMeadows Data port = getJMead owsDataPor t(); | |
1783 | patients = port.ge tRecentlyV iewedPatie nts(userId ); | |
1784 | } | |
1785 | ca tch (Excep tion e) { | |
1786 | logError (e); | |
1787 | throw ne w SOAPExce ption(e); | |
1788 | } | |
1789 | ||
1790 | re turn patie nts; | |
1791 | } | |
1792 | ||
1793 | @Overr ide | |
1794 | public String ge tPatientDo cumentVixS tudyViewer Url(JMeado wsQuery qu eryBean, P atientDocu ment docum ent) throw s SOAPExce ption { | |
1795 | tr y { | |
1796 | JMeadows Data port = getJMead owsDataPor t(); | |
1797 | return p ort.getPat ientDocume ntVixStudy ViewerUrl( queryBean, document) ; | |
1798 | } catch (Exc eption e) { | |
1799 | logError (e); | |
1800 | throw ne w SOAPExce ption(e); | |
1801 | } | |
1802 | } | |
1803 | ||
1804 | @Overr ide | |
1805 | public String ge tEncounter DocumentVi xStudyView erUrl(JMea dowsQuery queryBean, String do cumentId, String doc umentSiteI d) throws SOAPExcept ion { | |
1806 | tr y { | |
1807 | JMeadows Data port = getJMead owsDataPor t(); | |
1808 | return p ort.getEnc ounterDocu mentVixStu dyViewerUr l(queryBea n, documen tId, docum entSiteId) ; | |
1809 | } catch (Exc eption e) { | |
1810 | logError (e); | |
1811 | throw ne w SOAPExce ption(e); | |
1812 | } | |
1813 | } | |
1814 | ||
1815 | @Overr ide | |
1816 | public String ge tRadiology VixStudyVi ewerUrl(JM eadowsQuer y queryBea n, Radiolo gyReport r adiologyRe port) thro ws SOAPExc eption { | |
1817 | tr y { | |
1818 | JMeadows Data port = getJMead owsDataPor t(); | |
1819 | return p ort.getRad iologyVixS tudyViewer Url(queryB ean, radio logyReport ); | |
1820 | } catch (Exc eption e) { | |
1821 | logError (e); | |
1822 | throw ne w SOAPExce ption(e); | |
1823 | } | |
1824 | } | |
1825 | ||
1826 | @Overr ide | |
1827 | public FreeTextR eport getP atientHeal thSummary( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
1828 | tr y { | |
1829 | JMeadows Data port = getJMead owsDataPor t(); | |
1830 | return p ort.getPat ientHealth Summary(qu eryBean); | |
1831 | } catch (Exc eption e) { | |
1832 | logError (e); | |
1833 | throw ne w SOAPExce ption(e); | |
1834 | } | |
1835 | } | |
1836 | ||
1837 | @Overr ide | |
1838 | public JMedResul tCollectio n getPatie ntHealthSu mmaryTypes (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
1839 | tr y { | |
1840 | JMeadows Data port = getJMead owsDataPor t(); | |
1841 | return p ort.getPat ientHealth SummaryTyp es(queryBe an); | |
1842 | } catch (Exc eption e) { | |
1843 | logError (e); | |
1844 | throw ne w SOAPExce ption(e); | |
1845 | } | |
1846 | } | |
1847 | ||
1848 | @Overr ide | |
1849 | public List<Free TextReport > getPatie ntHealthSu mmaries(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
1850 | tr y { | |
1851 | JMeadows Data port = getJMead owsDataPor t(); | |
1852 | return p ort.getPat ientHealth Summaries( queryBean) ; | |
1853 | } catch (Exc eption e) { | |
1854 | logError (e); | |
1855 | throw ne w SOAPExce ption(e); | |
1856 | } | |
1857 | } | |
1858 | ||
1859 | @Overr ide | |
1860 | public List<Pce> getPcesFo rNote(JMea dowsQuery queryBean) throws SO APExceptio n { | |
1861 | tr y { | |
1862 | JMeadows Data port = getJMead owsDataPor t(); | |
1863 | return p ort.getPce sForNote(q ueryBean); | |
1864 | } catch (Exc eption e) { | |
1865 | logError (e); | |
1866 | throw ne w SOAPExce ption(e); | |
1867 | } | |
1868 | } | |
1869 | ||
1870 | privat e void log Error(Exce ption e){ | |
1871 | lo gger.error ("JLV ERRO R: " + e.g etMessage( ), e); | |
1872 | } | |
1873 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.