Produced by Araxis Merge on 4/2/2019 9:48:36 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_JLV 2_7_2_0_0.zip\JLV_Src\JLV\src\java\gov\va\med\jmeadows | JMeadowsServiceHandlerImpl.java | Wed Mar 20 21:44:28 2019 UTC |
2 | JLV_JLV 2_7_2_0_0.zip\JLV_Src\JLV\src\java\gov\va\med\jmeadows | JMeadowsServiceHandlerImpl.java | Tue Apr 2 00:54:14 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 4104 |
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 getC linicalRem inderDetai lUseHS(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
410 | ||
411 | lo g("getClin icalRemind erDetailUs eHS", quer yBean); | |
412 | ||
413 | Fr eeTextRepo rt returnV al = null; | |
414 | ||
415 | tr y { | |
416 | ||
417 | JMeadows Data port = getJMead owsDataPor t(); | |
418 | returnVa l = port.g etClinical ReminderDe tailUseHS( queryBean) ; | |
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 | ||
428 | @Overr ide | |
429 | public FreeTextR eport[] ge tConsultRe port(JMead owsQuery q ueryBean) throws SOA PException { | |
430 | ||
431 | lo g("getCons ultReport" , queryBea n); | |
432 | ||
433 | Fr eeTextRepo rt[] retur nVal = nul l; | |
434 | ||
435 | tr y { | |
436 | ||
437 | JMeadows Data port = getJMead owsDataPor t(); | |
438 | returnVa l = port.g etConsultR eport(quer yBean).toA rray(new F reeTextRep ort[0]); | |
439 | } catch (Exc eption e) { | |
440 | logError (e); | |
441 | throw ne w SOAPExce ption(e); | |
442 | } | |
443 | ||
444 | re turn retur nVal; | |
445 | } | |
446 | ||
447 | @Overr ide | |
448 | public FreeTextR eport getM edicationD etails(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
449 | ||
450 | lo g("getMedi cationDeta ils", quer yBean); | |
451 | ||
452 | Fr eeTextRepo rt returnV al = null; | |
453 | ||
454 | tr y { | |
455 | ||
456 | JMeadows Data port = getJMead owsDataPor t(); | |
457 | returnVa l = port.g etMedicati onDetail(q ueryBean); | |
458 | } catch (Exc eption e) { | |
459 | logError (e); | |
460 | throw ne w SOAPExce ption(e); | |
461 | } | |
462 | ||
463 | re turn retur nVal; | |
464 | } | |
465 | ||
466 | @Overr ide | |
467 | public FreeTextR eport getM edicationA dministrat ionHistory (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
468 | ||
469 | lo g("getMedi cationAdmi nistration History", queryBean) ; | |
470 | ||
471 | Fr eeTextRepo rt returnV al = null; | |
472 | ||
473 | tr y { | |
474 | ||
475 | JMeadows Data port = getJMead owsDataPor t(); | |
476 | returnVa l = port.g etMedicati onAdminist rationHist ory(queryB ean); | |
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 getM edicationA dministrat ionLog(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
487 | ||
488 | lo g("getMedi cationAdmi nistration Log", quer yBean); | |
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 etMedicati onAdminist rationLog( queryBean) ; | |
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 LabResult [] getLabO rderResult (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
506 | lo g("getLabO rderResult ", queryBe an); | |
507 | ||
508 | La bResult[] returnVal = null; | |
509 | ||
510 | tr y { | |
511 | ||
512 | JMeadows Data port = getJMead owsDataPor t(); | |
513 | returnVa l = port.g etLabOrder Result(que ryBean).to Array(new LabResult[ 0]); | |
514 | } catch (Exc eption e) { | |
515 | logError (e); | |
516 | throw ne w SOAPExce ption(e); | |
517 | } | |
518 | ||
519 | re turn retur nVal; | |
520 | } | |
521 | ||
522 | @Overr ide | |
523 | public FreeTextR eport getO rderDetail (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
524 | ||
525 | lo g("getOrde rDetail", queryBean) ; | |
526 | ||
527 | Fr eeTextRepo rt returnV al = null; | |
528 | ||
529 | tr y { | |
530 | ||
531 | JMeadows Data port = getJMead owsDataPor t(); | |
532 | returnVa l = port.g etOrderDet ail(queryB ean); | |
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 JMedResul tCollectio n getPatie ntAdmissio ns(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
543 | ||
544 | lo g("getPati entAdmissi ons", quer yBean); | |
545 | ||
546 | JM edResultCo llection r eturnVal = null; | |
547 | ||
548 | tr y { | |
549 | ||
550 | JMeadows Data port = getJMead owsDataPor t(); | |
551 | returnVa l = port.g etPatientA dmissions( queryBean) ; | |
552 | } catch (Exc eption e) { | |
553 | logError (e); | |
554 | throw ne w SOAPExce ption(e); | |
555 | } | |
556 | ||
557 | re turn retur nVal; | |
558 | } | |
559 | ||
560 | @Overr ide | |
561 | public JMedResul tCollectio n getPatie ntAllergie s(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
562 | lo g("getPati entAllergi es", query Bean); | |
563 | ||
564 | JM edResultCo llection r eturnVal = null; | |
565 | ||
566 | tr y { | |
567 | ||
568 | JMeadows Data port = getJMead owsDataPor t(); | |
569 | returnVa l = port.g etPatientA llergies(q ueryBean); | |
570 | } catch (Exc eption e) { | |
571 | logError (e); | |
572 | throw ne w SOAPExce ption(e); | |
573 | } | |
574 | ||
575 | re turn retur nVal; | |
576 | } | |
577 | ||
578 | @Overr ide | |
579 | public AllergyDe tail getAl lergyDetai l(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
580 | lo g("getAlle rgyDetail" , queryBea n); | |
581 | ||
582 | Al lergyDetai l returnVa l = null; | |
583 | ||
584 | tr y { | |
585 | ||
586 | JMeadows Data port = getJMead owsDataPor t(); | |
587 | returnVa l = port.g etAllergyD etail(quer yBean); | |
588 | } catch (Exc eption e) { | |
589 | logError (e); | |
590 | throw ne w SOAPExce ption(e); | |
591 | } | |
592 | ||
593 | re turn retur nVal; | |
594 | } | |
595 | ||
596 | @Overr ide | |
597 | public JMedResul tCollectio n getPatie ntAppointm ents(JMead owsQuery q ueryBean) throws SOA PException { | |
598 | lo g("getPati entAppoint ments", qu eryBean); | |
599 | ||
600 | JM edResultCo llection r eturnVal = null; | |
601 | ||
602 | tr y { | |
603 | ||
604 | JMeadows Data port = getJMead owsDataPor t(); | |
605 | returnVa l = port.g etPatientA ppointment s(queryBea n); | |
606 | } catch (Exc eption e) { | |
607 | logError (e); | |
608 | throw ne w SOAPExce ption(e); | |
609 | } | |
610 | ||
611 | re turn retur nVal; | |
612 | } | |
613 | ||
614 | @Overr ide | |
615 | public JMedResul tCollectio n getPatie ntDocument s(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
616 | lo g("getPati entDocumen ts", query Bean); | |
617 | ||
618 | JM edResultCo llection r eturnVal = null; | |
619 | ||
620 | tr y { | |
621 | ||
622 | JMeadows Data port = getJMead owsDataPor t(); | |
623 | returnVa l = port.g etPatientD ocuments(q ueryBean); | |
624 | } catch (Exc eption e) { | |
625 | logError (e); | |
626 | throw ne w SOAPExce ption(e); | |
627 | } | |
628 | ||
629 | re turn retur nVal; | |
630 | } | |
631 | ||
632 | @Overr ide | |
633 | public JMedResul tCollectio n getPatie ntDentalDo cuments(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
634 | lo g("getPati entDentalD ocuments", queryBean ); | |
635 | ||
636 | JM edResultCo llection r eturnVal = null; | |
637 | ||
638 | tr y { | |
639 | ||
640 | JMeadows Data port = getJMead owsDataPor t(); | |
641 | returnVa l = port.g etPatientD entalDocum ents(query Bean); | |
642 | } catch (Exc eption e) { | |
643 | logError (e); | |
644 | throw ne w SOAPExce ption(e); | |
645 | } | |
646 | ||
647 | re turn retur nVal; | |
648 | } | |
649 | ||
650 | @Overr ide | |
651 | public JMedResul tCollectio n getPatie ntEncounte rs(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
652 | lo g("getPati entEncount er", query Bean); | |
653 | ||
654 | JM edResultCo llection r eturnVal = null; | |
655 | ||
656 | tr y { | |
657 | ||
658 | JMeadows Data port = getJMead owsDataPor t(); | |
659 | returnVa l = port.g etPatientE ncounters( queryBean) ; | |
660 | } catch (Exc eption e) { | |
661 | logError (e); | |
662 | throw ne w SOAPExce ption(e); | |
663 | } | |
664 | ||
665 | re turn retur nVal; | |
666 | } | |
667 | ||
668 | @Overr ide | |
669 | public JMedResul tCollectio n getPatie ntClinical Reminders( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
670 | lo g("getPati entClinica lReminders ", queryBe an); | |
671 | ||
672 | JM edResultCo llection r eturnVal = null; | |
673 | ||
674 | tr y { | |
675 | ||
676 | JMeadows Data port = getJMead owsDataPor t(); | |
677 | returnVa l = port.g etPatientC linicalRem inders(que ryBean); | |
678 | } catch (Exc eption e) { | |
679 | logError (e); | |
680 | throw ne w SOAPExce ption(e); | |
681 | } | |
682 | ||
683 | re turn retur nVal; | |
684 | } | |
685 | ||
686 | @Overr ide | |
687 | public JMedResul tCollectio n getPatie ntClinical RemindersU seHS(JMead owsQuery q ueryBean) throws SOA PException { | |
688 | lo g("getPati entClinica lReminders UseHS", qu eryBean); | |
689 | ||
690 | JM edResultCo llection r eturnVal = null; | |
691 | ||
692 | tr y { | |
693 | ||
694 | JMeadows Data port = getJMead owsDataPor t(); | |
695 | returnVa l = port.g etPatientC linicalRem indersUseH S(queryBea n); | |
696 | } catch (Exc eption e) { | |
697 | logError (e); | |
698 | throw ne w SOAPExce ption(e); | |
699 | } | |
700 | ||
701 | re turn retur nVal; | |
702 | } | |
703 | ||
704 | @Overr ide | |
705 | public JMedResul tCollectio n getPatie ntConsultR equests(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
706 | lo g("getPati entConsult Requests", queryBean ); | |
707 | ||
708 | JM edResultCo llection r eturnVal = null; | |
709 | ||
710 | tr y { | |
711 | ||
712 | JMeadows Data port = getJMead owsDataPor t(); | |
713 | returnVa l = port.g etPatientC onsultRequ ests(query Bean); | |
714 | } catch (Exc eption e) { | |
715 | logError (e); | |
716 | throw ne w SOAPExce ption(e); | |
717 | } | |
718 | ||
719 | re turn retur nVal; | |
720 | } | |
721 | ||
722 | // @Ove rride | |
723 | // publ ic JMedRes ultCollect ion getPat ientCurren tVitals(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
724 | // log("getPa tientCurre ntVitals", queryBean ); | |
725 | // | |
726 | // JMedResult Collection returnVal = null; | |
727 | // | |
728 | // try { | |
729 | // | |
730 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
731 | // return Val = port .getPatien tCurrentVi tals(query Bean); | |
732 | // } catch (E xception e ) { | |
733 | // logErr or(e); | |
734 | // throw new SOAPEx ception(e) ; | |
735 | // } | |
736 | // | |
737 | // return ret urnVal; | |
738 | // | |
739 | // } | |
740 | ||
741 | @Overr ide | |
742 | public List<Pati entDemogra phicsDetai l> getAllP atientDemo graphicDet ails(JMead owsQuery q ueryBean) throws SOA PException { | |
743 | lo g("getAllP atientDemo graphicDet ails", que ryBean); | |
744 | ||
745 | Li st<Patient Demographi csDetail> returnVal = null; | |
746 | tr y { | |
747 | ||
748 | JMeadows Data port = getJMead owsDataPor t(); | |
749 | returnVa l = port.g etPatientD emographic sDetail(qu eryBean); | |
750 | } catch (Exc eption e) { | |
751 | logError (e); | |
752 | throw ne w SOAPExce ption(e); | |
753 | } | |
754 | re turn retur nVal; | |
755 | } | |
756 | ||
757 | @Overr ide | |
758 | public JMedResul tCollectio n getPatie ntDemograp hics(JMead owsQuery q ueryBean) throws SOA PException { | |
759 | lo g("getPati entDemogra phics", qu eryBean); | |
760 | ||
761 | JM edResultCo llection r eturnVal = null; | |
762 | tr y { | |
763 | ||
764 | JMeadows Data port = getJMead owsDataPor t(); | |
765 | returnVa l = port.g etPatientD emographic s(queryBea n); | |
766 | } catch (Exc eption e) { | |
767 | logError (e); | |
768 | throw ne w SOAPExce ption(e); | |
769 | } | |
770 | re turn retur nVal; | |
771 | } | |
772 | ||
773 | @Overr ide | |
774 | public JMedResul tCollectio n getPatie ntProcedur es(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
775 | lo g("getPati entProcedu res", quer yBean); | |
776 | ||
777 | JM edResultCo llection r eturnVal = null; | |
778 | ||
779 | tr y { | |
780 | ||
781 | JMeadows Data port = getJMead owsDataPor t(); | |
782 | returnVa l = port.g etOutpatie ntProcedur es(queryBe an); | |
783 | } catch (Exc eption e) { | |
784 | logError (e); | |
785 | throw ne w SOAPExce ption(e); | |
786 | } | |
787 | ||
788 | re turn retur nVal; | |
789 | } | |
790 | ||
791 | ||
792 | // @Ove rride | |
793 | // publ ic Questio nnaireBean [] getPati entQuestio nnaires(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
794 | // log("getPa tientQuest ionnaires" , queryBea n); | |
795 | // | |
796 | // Questionna ireBean[] returnVal = null; | |
797 | // | |
798 | // try { | |
799 | // | |
800 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
801 | // return Val = port .getPatien tQuestionn aires(quer yBean).toA rray(new Q uestionnai reBean[0]) ; | |
802 | // } catch (E xception e ) { | |
803 | // throw new SOAPEx ception(e) ; | |
804 | // } | |
805 | // | |
806 | // return ret urnVal; | |
807 | // } | |
808 | ||
809 | @Overr ide | |
810 | public JMedResul tCollectio n getPatie ntForms(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
811 | lo g("getPati entForms", queryBean ); | |
812 | ||
813 | JM edResultCo llection r eturnVal = null; | |
814 | ||
815 | tr y { | |
816 | ||
817 | JMeadows Data port = getJMead owsDataPor t(); | |
818 | returnVa l = port.g etPatientF orms(query Bean); | |
819 | } catch (Exc eption e) { | |
820 | logError (e); | |
821 | throw ne w SOAPExce ption(e); | |
822 | } | |
823 | ||
824 | re turn retur nVal; | |
825 | } | |
826 | ||
827 | @Overr ide | |
828 | public JMedResul tCollectio n getPatie ntDischarg eSummaries (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
829 | lo g("getPati entDischar geSummarie s", queryB ean); | |
830 | ||
831 | JM edResultCo llection r eturnVal = null; | |
832 | ||
833 | tr y { | |
834 | ||
835 | JMeadows Data port = getJMead owsDataPor t(); | |
836 | returnVa l = port.g etPatientD ischargeSu mmaries(qu eryBean); | |
837 | } catch (Exc eption e) { | |
838 | logError (e); | |
839 | throw ne w SOAPExce ption(e); | |
840 | } | |
841 | ||
842 | re turn retur nVal; | |
843 | } | |
844 | ||
845 | @Overr ide | |
846 | public JMedResul tCollectio n getPatie ntAdvanceD irectives( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
847 | lo g("getPati entAdvance Directives ", queryBe an); | |
848 | ||
849 | JM edResultCo llection r eturnVal = null; | |
850 | ||
851 | tr y { | |
852 | ||
853 | JMeadows Data port = getJMead owsDataPor t(); | |
854 | returnVa l = port.g etPatientA dvanceDire ctives(que ryBean); | |
855 | } catch (Exc eption e) { | |
856 | logError (e); | |
857 | throw ne w SOAPExce ption(e); | |
858 | } | |
859 | ||
860 | re turn retur nVal; | |
861 | } | |
862 | ||
863 | ||
864 | @Overr ide | |
865 | public JMedResul tCollectio n getPatie ntImmuniza tions(JMea dowsQuery queryBean) throws SO APExceptio n { | |
866 | lo g("getPati entImmuniz ations", q ueryBean); | |
867 | ||
868 | JM edResultCo llection r eturnVal = null; | |
869 | tr y { | |
870 | ||
871 | JMeadows Data port = getJMead owsDataPor t(); | |
872 | returnVa l = port.g etPatientI mmunizatio ns(queryBe an); | |
873 | } catch (Exc eption e) { | |
874 | logError (e); | |
875 | throw ne w SOAPExce ption(e); | |
876 | } | |
877 | re turn retur nVal; | |
878 | } | |
879 | ||
880 | @Overr ide | |
881 | public JMedResul tCollectio n getPatie ntInsuranc es(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
882 | lo g("getPati entInsuran ces", quer yBean); | |
883 | ||
884 | JM edResultCo llection r eturnVal = null; | |
885 | ||
886 | tr y { | |
887 | JMeadows Data port = getJMead owsDataPor t(); | |
888 | returnVa l = port.g etPatientI nsurances( queryBean) ; | |
889 | ||
890 | } catch (Exc eption e) { | |
891 | logError (e); | |
892 | throw ne w SOAPExce ption(e); | |
893 | } | |
894 | ||
895 | re turn retur nVal; | |
896 | } | |
897 | ||
898 | ||
899 | @Overr ide | |
900 | public JMedResul tCollectio n getPatie ntLabs(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
901 | lo g("getPati entLabs", queryBean) ; | |
902 | ||
903 | JM edResultCo llection r eturnVal = null; | |
904 | tr y { | |
905 | ||
906 | JMeadows Data port = getJMead owsDataPor t(); | |
907 | returnVa l = port.g etPatientL abs(queryB ean); | |
908 | } catch (Exc eption e) { | |
909 | logError (e); | |
910 | throw ne w SOAPExce ption(e); | |
911 | } | |
912 | ||
913 | re turn retur nVal; | |
914 | } | |
915 | ||
916 | @Overr ide | |
917 | public FreeTextR eport getP atientLabR eport(JMea dowsQuery queryBean) throws SO APExceptio n { | |
918 | lo g("getPati entLabRepo rt", query Bean); | |
919 | ||
920 | Fr eeTextRepo rt returnV al = null; | |
921 | tr y { | |
922 | ||
923 | JMeadows Data port = getJMead owsDataPor t(); | |
924 | returnVa l = port.g etPatientL abReport(q ueryBean); | |
925 | } catch (Exc eption e) { | |
926 | logError (e); | |
927 | throw ne w SOAPExce ption(e); | |
928 | } | |
929 | ||
930 | re turn retur nVal; | |
931 | } | |
932 | ||
933 | @Overr ide | |
934 | public LabResult [] getPati entLabTest Results(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
935 | lo g("getPati entLabTest Results", queryBean) ; | |
936 | ||
937 | La bResult[] returnVal = null; | |
938 | tr y { | |
939 | ||
940 | JMeadows Data port = getJMead owsDataPor t(); | |
941 | returnVa l = port.g etPatientL abTestResu lts(queryB ean).toArr ay(new Lab Result[0]) ; | |
942 | } catch (Exc eption e) { | |
943 | logError (e); | |
944 | throw ne w SOAPExce ption(e); | |
945 | } | |
946 | ||
947 | re turn retur nVal; | |
948 | } | |
949 | ||
950 | @Overr ide | |
951 | public JMedResul tCollectio n getPatie ntLabResul ts(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
952 | lo g("getPati entLabResu lts", quer yBean); | |
953 | ||
954 | JM edResultCo llection r eturnVal = null; | |
955 | tr y { | |
956 | ||
957 | JMeadows Data port = getJMead owsDataPor t(); | |
958 | returnVa l = port.g etPatientL abResults( queryBean) ; | |
959 | } catch (Exc eption e) { | |
960 | logError (e); | |
961 | throw ne w SOAPExce ption(e); | |
962 | } | |
963 | ||
964 | re turn retur nVal; | |
965 | } | |
966 | ||
967 | @Overr ide | |
968 | public JMedResul tCollectio n getPatie ntMedicati ons(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
969 | lo g("getPati entMedicat ions", que ryBean); | |
970 | ||
971 | JM edResultCo llection r eturnVal = null; | |
972 | tr y { | |
973 | ||
974 | JMeadows Data port = getJMead owsDataPor t(); | |
975 | returnVa l = port.g etPatientM edications (queryBean ); | |
976 | } catch (Exc eption e) { | |
977 | logError (e); | |
978 | throw ne w SOAPExce ption(e); | |
979 | } | |
980 | ||
981 | re turn retur nVal; | |
982 | } | |
983 | ||
984 | // publ ic Medicat ion[] getP atientMedi cationsNVA (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
985 | // log("getPa tientMedic ationsNVA" , queryBea n); | |
986 | // | |
987 | // Medication [] returnV al = null; | |
988 | // try { | |
989 | // | |
990 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
991 | // return Val = port .getPatien tMedicatio nsNVA(quer yBean).toA rray(new M edication[ 0]); | |
992 | // } catch (E xception e ) { | |
993 | // throw new SOAPEx ception(e) ; | |
994 | // } | |
995 | // return ret urnVal; | |
996 | // | |
997 | // } | |
998 | ||
999 | @Overr ide | |
1000 | public JMedResul tCollectio n getPatie ntOrders(J MeadowsQue ry queryBe an) throws SOAPExcep tion { | |
1001 | lo g("getPati entOrders" , queryBea n); | |
1002 | ||
1003 | JM edResultCo llection r eturnVal = null; | |
1004 | ||
1005 | tr y { | |
1006 | ||
1007 | JMeadows Data port = getJMead owsDataPor t(); | |
1008 | returnVa l = port.g etPatientO rders(quer yBean); | |
1009 | } catch (Exc eption e) { | |
1010 | logError (e); | |
1011 | throw ne w SOAPExce ption(e); | |
1012 | } | |
1013 | ||
1014 | re turn retur nVal; | |
1015 | } | |
1016 | ||
1017 | @Overr ide | |
1018 | public JMedResul tCollectio n getPatie ntProblemL ist(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
1019 | lo g("getPati entProblem List", que ryBean); | |
1020 | ||
1021 | JM edResultCo llection r eturnVal = null; | |
1022 | ||
1023 | tr y { | |
1024 | ||
1025 | JMeadows Data port = getJMead owsDataPor t(); | |
1026 | returnVa l = port.g etPatientP roblemList (queryBean ); | |
1027 | } catch (Exc eption e) { | |
1028 | logError (e); | |
1029 | throw ne w SOAPExce ption(e); | |
1030 | } | |
1031 | ||
1032 | re turn retur nVal; | |
1033 | } | |
1034 | ||
1035 | // pu blic Proce dure[] get PatientPro cedures(JM eadowsQuer y queryBea n) throws SOAPExcept ion | |
1036 | // { | |
1037 | // Proc edure[] re turnVal = null; | |
1038 | // | |
1039 | // try { | |
1040 | // | |
1041 | // JMeadows Data port = getJMead owsDataPor t(); | |
1042 | // returnVa l = port.g etPatientP rocedures( queryBean) .toArray(n ew Procedu re[0]); | |
1043 | // } | |
1044 | // catch (Exception e) | |
1045 | // { | |
1046 | // throw ne w SOAPExce ption(e); | |
1047 | // } | |
1048 | // | |
1049 | // return ret urnVal; | |
1050 | // | |
1051 | // } | |
1052 | ||
1053 | @Overr ide | |
1054 | public JMedResul tCollectio n getPatie ntProgress Notes(JMea dowsQuery queryBean) throws SO APExceptio n { | |
1055 | lo g("getPati entProgres sNotes", q ueryBean); | |
1056 | ||
1057 | JM edResultCo llection r eturnVal = null; | |
1058 | ||
1059 | tr y { | |
1060 | ||
1061 | JMeadows Data port = getJMead owsDataPor t(); | |
1062 | returnVa l = port.g etPatientP rogressNot es(queryBe an); | |
1063 | } catch (Exc eption e) { | |
1064 | logError (e); | |
1065 | throw ne w SOAPExce ption(e); | |
1066 | } | |
1067 | ||
1068 | re turn retur nVal; | |
1069 | } | |
1070 | ||
1071 | /** | |
1072 | * Fet ches a BHI E note ima ge. | |
1073 | * | |
1074 | * @pa ram queryB ean requir ed params: provider, itemid (c ontaining bhie note event id) | |
1075 | * @re turn Note image | |
1076 | * @th rows javax .xml.soap. SOAPExcept ion if an error occu rs. | |
1077 | */ | |
1078 | @Overr ide | |
1079 | public NoteImage getBHIENo teImage(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
1080 | lo g("getBHIE NoteImage" , queryBea n); | |
1081 | ||
1082 | tr y { | |
1083 | return g etJMeadows DataPort(t rue).getBH IENoteImag e(queryBea n); | |
1084 | ||
1085 | } catch (Exc eption e) { | |
1086 | logError (e); | |
1087 | throw ne w SOAPExce ption(e); | |
1088 | } | |
1089 | ||
1090 | } | |
1091 | ||
1092 | /** | |
1093 | * Fet ches a BHI E note ima ge. | |
1094 | * | |
1095 | * @pa ram queryB ean requir ed params: provider, itemid (c ontaining bhie note event id) | |
1096 | * @re turn Note image | |
1097 | * @th rows javax .xml.soap. SOAPExcept ion if an error occu rs. | |
1098 | */ | |
1099 | @Overr ide | |
1100 | public NoteImage getBHIENo teAttachme nt(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1101 | lo g("getBHIE NoteImage" , queryBea n); | |
1102 | ||
1103 | tr y { | |
1104 | return g etJMeadows DataPort(t rue).getBH IENoteAtta chment(que ryBean); | |
1105 | ||
1106 | } catch (Exc eption e) { | |
1107 | logError (e); | |
1108 | throw ne w SOAPExce ption(e); | |
1109 | } | |
1110 | ||
1111 | } | |
1112 | ||
1113 | @Overr ide | |
1114 | public JMedResul tCollectio n getPatie ntRads(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
1115 | lo g("getPati entRads", queryBean) ; | |
1116 | ||
1117 | JM edResultCo llection r eturnVal = null; | |
1118 | ||
1119 | tr y { | |
1120 | ||
1121 | JMeadows Data port = getJMead owsDataPor t(); | |
1122 | returnVa l = port.g etPatientR ads(queryB ean); | |
1123 | } catch (Exc eption e) { | |
1124 | logError (e); | |
1125 | throw ne w SOAPExce ption(e); | |
1126 | } | |
1127 | ||
1128 | re turn retur nVal; | |
1129 | } | |
1130 | ||
1131 | @Overr ide | |
1132 | public JMedResul tCollectio n getPatie ntVitals(J MeadowsQue ry queryBe an) throws SOAPExcep tion { | |
1133 | lo g("getPati entVitals" , queryBea n); | |
1134 | ||
1135 | JM edResultCo llection r eturnVal = null; | |
1136 | ||
1137 | tr y { | |
1138 | ||
1139 | JMeadows Data port = getJMead owsDataPor t(); | |
1140 | returnVa l = port.g etPatientV itals(quer yBean); | |
1141 | } catch (Exc eption e) { | |
1142 | logError (e); | |
1143 | throw ne w SOAPExce ption(e); | |
1144 | } | |
1145 | ||
1146 | re turn retur nVal; | |
1147 | } | |
1148 | ||
1149 | // public Pre scription getPrescri ptionFills (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
1150 | // log("getPr escription Fills", qu eryBean); | |
1151 | // | |
1152 | // Prescripti on returnV al = null; | |
1153 | // | |
1154 | // try { | |
1155 | // | |
1156 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
1157 | // return Val = port .getPrescr iptionFill s(queryBea n); | |
1158 | // } catch (E xception e ) { | |
1159 | // throw new SOAPEx ception(e) ; | |
1160 | // } | |
1161 | // | |
1162 | // return ret urnVal; | |
1163 | // | |
1164 | // } | |
1165 | @Overr ide | |
1166 | public JMedResul tCollectio n getPatie ntHistorie s(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1167 | lo g("getPati entHistori es", query Bean); | |
1168 | ||
1169 | JM edResultCo llection r eturnVal = null; | |
1170 | ||
1171 | tr y { | |
1172 | ||
1173 | JMeadows Data port = getJMead owsDataPor t(); | |
1174 | returnVa l = port.g etPatientH istory(que ryBean); | |
1175 | } catch (Exc eption e) { | |
1176 | logError (e); | |
1177 | throw ne w SOAPExce ption(e); | |
1178 | } | |
1179 | ||
1180 | re turn retur nVal; | |
1181 | } | |
1182 | ||
1183 | @Overr ide | |
1184 | public JMedResul tCollectio n getVLERD ocumentLis t(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1185 | lo g("getVLER DocumentLi st", query Bean); | |
1186 | ||
1187 | JM edResultCo llection r eturnVal = null; | |
1188 | ||
1189 | tr y { | |
1190 | ||
1191 | JMeadows Data port = getJMead owsDataPor t(); | |
1192 | returnVa l = port.g etVLERDocu mentList(q ueryBean); | |
1193 | } catch (Exc eption e) { | |
1194 | logError (e); | |
1195 | throw ne w SOAPExce ption(e); | |
1196 | } | |
1197 | ||
1198 | re turn retur nVal; | |
1199 | } | |
1200 | ||
1201 | @Overr ide | |
1202 | public JMedResul tCollectio n getDODVL ERDocument List(JMead owsQuery q ueryBean) throws SOA PException { | |
1203 | lo g("getDODV LERDocumen tList", qu eryBean); | |
1204 | ||
1205 | JM edResultCo llection r eturnVal = null; | |
1206 | ||
1207 | tr y { | |
1208 | ||
1209 | JMeadows Data port = getJMead owsDataPor t(); | |
1210 | returnVa l = port.g etDODVLERD ocumentLis t(queryBea n); | |
1211 | } catch (Exc eption e) { | |
1212 | logError (e); | |
1213 | throw ne w SOAPExce ption(e); | |
1214 | } | |
1215 | ||
1216 | re turn retur nVal; | |
1217 | } | |
1218 | ||
1219 | @Overr ide | |
1220 | public VlerDocum ent getVLE RDocument( JMeadowsQu ery queryB ean, VlerD ocument vD oc) throws SOAPExcep tion { | |
1221 | lo g("getVLER Document", queryBean ); | |
1222 | ||
1223 | Vl erDocument returnVal = null; | |
1224 | ||
1225 | tr y { | |
1226 | ||
1227 | JMeadows Data port = getJMead owsDataPor t(); | |
1228 | returnVa l = port.g etVLERDocu ment(vDoc, queryBean ); | |
1229 | } catch (Exc eption e) { | |
1230 | logError (e); | |
1231 | throw ne w SOAPExce ption(e); | |
1232 | } | |
1233 | ||
1234 | re turn retur nVal; | |
1235 | } | |
1236 | ||
1237 | @Overr ide | |
1238 | public JMedResul tCollectio n getDODVL ERPatientC CDA(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
1239 | lo g("getDODV LERPatient CCDA", que ryBean); | |
1240 | ||
1241 | JM edResultCo llection r eturnVal = null; | |
1242 | ||
1243 | tr y { | |
1244 | ||
1245 | JMeadows Data port = getJMead owsDataPor t(); | |
1246 | returnVa l = port.g etDODVLERP atientCCDA (queryBean ); | |
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 Vlerccda[ ] getDASVL ERPatientC CDA(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
1257 | lo g("getDASV LERPatient CCDA", que ryBean); | |
1258 | ||
1259 | Vl erccda[] r eturnVal = null; | |
1260 | ||
1261 | tr y { | |
1262 | ||
1263 | JMeadows Data port = getJMead owsDataPor t(); | |
1264 | returnVa l = port.g etDASPatie ntData(que ryBean).to Array(new Vlerccda[0 ]); | |
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 | ||
1274 | @Overr ide | |
1275 | public ProblemDe tail getPr oblemDetai l(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1276 | lo g("getProb lemDetail" , queryBea n); | |
1277 | ||
1278 | Pr oblemDetai l returnVa l = null; | |
1279 | ||
1280 | tr y { | |
1281 | ||
1282 | JMeadows Data port = getJMead owsDataPor t(); | |
1283 | returnVa l = port.g etProblemD etail(quer yBean); | |
1284 | } catch (Exc eption e) { | |
1285 | logError (e); | |
1286 | throw ne w SOAPExce ption(e); | |
1287 | } | |
1288 | ||
1289 | re turn retur nVal; | |
1290 | } | |
1291 | ||
1292 | @Overr ide | |
1293 | public FreeTextR eport getP rogressNot e(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1294 | lo g("getProg ressNote", queryBean ); | |
1295 | ||
1296 | Fr eeTextRepo rt returnV al = null; | |
1297 | ||
1298 | tr y { | |
1299 | ||
1300 | JMeadows Data port = getJMead owsDataPor t(); | |
1301 | returnVa l = port.g etProgress Note(query Bean); | |
1302 | } catch (Exc eption e) { | |
1303 | logError (e); | |
1304 | throw ne w SOAPExce ption(e); | |
1305 | } | |
1306 | ||
1307 | re turn retur nVal; | |
1308 | } | |
1309 | ||
1310 | @Overr ide | |
1311 | public JMedResul tCollectio n getMhsGe nesisDocum ents(JMead owsQuery q ueryBean) throws SOA PException { | |
1312 | lo g("getMhsG enesisDocu ments", qu eryBean); | |
1313 | ||
1314 | JM edResultCo llection r eturnVal = null; | |
1315 | ||
1316 | tr y { | |
1317 | JMeadows Data port = getJMead owsDataPor t(); | |
1318 | returnVa l = port.g etMhsGenes isDocument s(queryBea n); | |
1319 | } catch (Exc eption e) { | |
1320 | logError (e); | |
1321 | throw ne w SOAPExce ption(e); | |
1322 | } | |
1323 | ||
1324 | re turn retur nVal; | |
1325 | } | |
1326 | ||
1327 | @Overr ide | |
1328 | public User getP roviderPro file(JMead owsQuery q ueryBean) throws SOA PException { | |
1329 | lo g("getProv iderProfil e", queryB ean); | |
1330 | ||
1331 | Us er returnV al = null; | |
1332 | tr y { | |
1333 | ||
1334 | JMeadows Data port = getJMead owsDataPor t(); | |
1335 | returnVa l = port.g etProvider Profile(qu eryBean); | |
1336 | ||
1337 | } catch (Exc eption e) { | |
1338 | logError (e); | |
1339 | throw ne w SOAPExce ption(e); | |
1340 | } | |
1341 | re turn retur nVal; | |
1342 | } | |
1343 | ||
1344 | @Overr ide | |
1345 | public Radiology Report get RadiologyR eport(JMea dowsQuery queryBean) throws SO APExceptio n { | |
1346 | lo g("getRadi ologyRepor t", queryB ean); | |
1347 | ||
1348 | Ra diologyRep ort return Val = null ; | |
1349 | ||
1350 | tr y { | |
1351 | ||
1352 | JMeadows Data port = getJMead owsDataPor t(); | |
1353 | returnVa l = port.g etRadiolog yReport(qu eryBean); | |
1354 | } catch (Exc eption e) { | |
1355 | logError (e); | |
1356 | throw ne w SOAPExce ption(e); | |
1357 | } | |
1358 | ||
1359 | re turn retur nVal; | |
1360 | ||
1361 | } | |
1362 | ||
1363 | @Overr ide | |
1364 | public Alert[] g etUserAler ts(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1365 | lo g("getUser Alerts", q ueryBean); | |
1366 | ||
1367 | Al ert[] retu rnVal = nu ll; | |
1368 | ||
1369 | tr y { | |
1370 | ||
1371 | JMeadows Data port = getJMead owsDataPor t(); | |
1372 | returnVa l = port.g etUserAler ts(queryBe an).toArra y(new Aler t[0]); | |
1373 | } catch (Exc eption e) { | |
1374 | logError (e); | |
1375 | throw ne w SOAPExce ption(e); | |
1376 | } | |
1377 | re turn retur nVal; | |
1378 | ||
1379 | } | |
1380 | ||
1381 | @Overr ide | |
1382 | public FreeTextR eport getV isitNotes( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
1383 | lo g("getVisi tNotes", q ueryBean); | |
1384 | ||
1385 | Fr eeTextRepo rt returnV al = null; | |
1386 | ||
1387 | tr y { | |
1388 | ||
1389 | JMeadows Data port = getJMead owsDataPor t(); | |
1390 | returnVa l = port.g etVisitNot es(queryBe an); | |
1391 | } catch (Exc eption e) { | |
1392 | logError (e); | |
1393 | throw ne w SOAPExce ption(e); | |
1394 | } | |
1395 | re turn retur nVal; | |
1396 | } | |
1397 | ||
1398 | @Overr ide | |
1399 | public FreeTextR eport getP atientEnco untersRepo rt(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1400 | lo g("getPati entEncount ersReport" , queryBea n); | |
1401 | ||
1402 | Fr eeTextRepo rt returnV al = null; | |
1403 | ||
1404 | tr y { | |
1405 | ||
1406 | JMeadows Data port = getJMead owsDataPor t(); | |
1407 | returnVa l = port.g etPatientE ncountersR eport(quer yBean); | |
1408 | } catch (Exc eption e) { | |
1409 | logError (e); | |
1410 | throw ne w SOAPExce ption(e); | |
1411 | } | |
1412 | re turn retur nVal; | |
1413 | } | |
1414 | ||
1415 | @Overr ide | |
1416 | public Patient[] lookupPat ient(JMead owsQuery q ueryBean) throws SOA PException { | |
1417 | lo g("lookupP atient", q ueryBean); | |
1418 | ||
1419 | Pa tient[] re turnVal = null; | |
1420 | ||
1421 | tr y { | |
1422 | ||
1423 | JMeadows Data port = getJMead owsDataPor t(); | |
1424 | returnVa l = port.l ookupPatie nt(queryBe an).toArra y(new Pati ent[0]); | |
1425 | } catch (Exc eption e) { | |
1426 | logError (e); | |
1427 | throw ne w SOAPExce ption(e); | |
1428 | } | |
1429 | ||
1430 | re turn retur nVal; | |
1431 | ||
1432 | } | |
1433 | ||
1434 | @Overr ide | |
1435 | public ResponseP atientQuer y lookupPa tientPDWS( PdwsQueryB ean queryB ean) throw s SOAPExce ption { | |
1436 | lo g("lookupP atientPDWS "); | |
1437 | ||
1438 | Re sponsePati entQuery r eturnVal = null; | |
1439 | ||
1440 | tr y { | |
1441 | JMeadows Data port = getJMead owsDataPor t(); | |
1442 | returnVa l = port.l ookupPatie ntPDWS(que ryBean); | |
1443 | } catch (Exc eption e) { | |
1444 | logError (e); | |
1445 | throw ne w SOAPExce ption(e); | |
1446 | } | |
1447 | ||
1448 | re turn retur nVal; | |
1449 | } | |
1450 | ||
1451 | @Overr ide | |
1452 | public ResponseP atientQuer y lookupPa tientMVI(P dwsQueryBe an queryBe an) throws SOAPExcep tion { | |
1453 | lo g("lookupP atientMVI" ); | |
1454 | ||
1455 | Re sponsePati entQuery r eturnVal = null; | |
1456 | ||
1457 | tr y { | |
1458 | JMeadows Data port = getJMead owsDataPor t(); | |
1459 | returnVa l = port.l ookupPatie ntMVI(quer yBean); | |
1460 | } catch (Exc eption e) { | |
1461 | logError (e); | |
1462 | throw ne w SOAPExce ption(e); | |
1463 | } | |
1464 | ||
1465 | re turn retur nVal; | |
1466 | } | |
1467 | ||
1468 | @Overr ide | |
1469 | public Patient s electPatie nt(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1470 | lo g("selectP atient", q ueryBean); | |
1471 | ||
1472 | Pa tient retu rnVal = nu ll; | |
1473 | ||
1474 | tr y { | |
1475 | ||
1476 | JMeadows Data port = getJMead owsDataPor t(); | |
1477 | returnVa l = port.s electPatie nt(queryBe an); | |
1478 | } catch (Exc eption e) { | |
1479 | logError (e); | |
1480 | throw ne w SOAPExce ption(e); | |
1481 | } | |
1482 | ||
1483 | re turn retur nVal; | |
1484 | ||
1485 | } | |
1486 | ||
1487 | @Overr ide | |
1488 | public ResponseP atientSele ct selectP atientMVI( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
1489 | lo g("selectP atientMVI" ); | |
1490 | ||
1491 | Re sponsePati entSelect returnVal = null; | |
1492 | ||
1493 | tr y { | |
1494 | JMeadows Data port = getJMead owsDataPor t(); | |
1495 | returnVa l = port.s electPatie ntMVI(quer yBean); | |
1496 | } catch (Exc eption e) { | |
1497 | logError (e); | |
1498 | throw ne w SOAPExce ption(e); | |
1499 | } | |
1500 | ||
1501 | re turn retur nVal; | |
1502 | } | |
1503 | ||
1504 | @Overr ide | |
1505 | public void sele ctPatientF orVASensit ive(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
1506 | lo g("selectP atientForV ASensitive "); | |
1507 | ||
1508 | tr y { | |
1509 | JMeadows Data port = getJMead owsDataPor t(); | |
1510 | port.sel ectPatient ForVASensi tive(query Bean); | |
1511 | } catch (Exc eption e) { | |
1512 | logError (e); | |
1513 | throw ne w SOAPExce ption(e); | |
1514 | } | |
1515 | } | |
1516 | ||
1517 | @Overr ide | |
1518 | public Alert[] g etVASensit ivePatient Alerts(JMe adowsQuery queryBean ) throws S OAPExcepti on{ | |
1519 | lo g("getVASe nsitivePat ientAlerts "); | |
1520 | ||
1521 | Al ert[] retu rnVal = nu ll; | |
1522 | ||
1523 | tr y { | |
1524 | JMeadows Data port = getJMead owsDataPor t(); | |
1525 | returnVa l = port.g etVASensit ivePatient Alerts(que ryBean).to Array(new Alert[0]); | |
1526 | } catch (Exc eption e) { | |
1527 | logError (e); | |
1528 | throw ne w SOAPExce ption(e); | |
1529 | } | |
1530 | re turn retur nVal; | |
1531 | ||
1532 | } | |
1533 | ||
1534 | ||
1535 | @Overr ide | |
1536 | public void audi tVARestric tedAccess( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
1537 | lo g("auditVA Restricted Access"); | |
1538 | ||
1539 | tr y { | |
1540 | JMeadows Data port = getJMead owsDataPor t(); | |
1541 | port.aud itVARestri ctedAccess (queryBean ); | |
1542 | } catch (Exc eption e) { | |
1543 | logError (e); | |
1544 | throw ne w SOAPExce ption(e); | |
1545 | } | |
1546 | } | |
1547 | ||
1548 | @Overr ide | |
1549 | public void audi tSensitive RecordAcce ss(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1550 | lo g("auditSe nsitiveRec ordAccess" ); | |
1551 | ||
1552 | tr y { | |
1553 | JMeadows Data port = getJMead owsDataPor t(); | |
1554 | port.aud itSensitiv eRecordAcc ess(queryB ean); | |
1555 | } catch (Exc eption e) { | |
1556 | logError (e); | |
1557 | throw ne w SOAPExce ption(e); | |
1558 | } | |
1559 | } | |
1560 | ||
1561 | @Overr ide | |
1562 | 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, | |
1563 | Strin g userName , String p atId, Stri ng categor y, String requesting App, | |
1564 | Strin g startDat e, String endDate, S tring info , String c ardId, Str ing emailA ddress, | |
1565 | Strin g complexT ransaction ) throws S OAPExcepti on { | |
1566 | ||
1567 | lo g("logAudi t"); | |
1568 | ||
1569 | tr y { | |
1570 | JMeadows Data port = getJMead owsDataPor t(); | |
1571 | port.log Audit(site Id, siteMo niker, sit eAgency, r ecordID, u serId, pro viderId, u serNPI, us erName, pa tId, | |
1572 | category, appName, s tartDate, endDate, i nfo, cardI d, emailAd dress, com plexTransa ction); | |
1573 | } catch (Exc eption e) { | |
1574 | logError (e); | |
1575 | throw ne w SOAPExce ption(e); | |
1576 | } | |
1577 | ||
1578 | } | |
1579 | ||
1580 | // @Ove rride | |
1581 | // publ ic void lo gAudit(Str ing siteId , String u serId, Str ing provid erId, Stri ng userNPI , | |
1582 | // Str ing userNa me, String patId, St ring categ ory, | |
1583 | // Str ing startD ate, Strin g endDate) throws SO APExceptio n { | |
1584 | // | |
1585 | // log("logAu dit"); | |
1586 | // | |
1587 | // try { | |
1588 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
1589 | // port.l ogAudit(si teId, user Id, provid erId, user NPI, userN ame, patId , category , appName, startDate , endDate) ; | |
1590 | // } catch (E xception e ) { | |
1591 | // throw new SOAPEx ception(e) ; | |
1592 | // } | |
1593 | // | |
1594 | // } | |
1595 | ||
1596 | @Overr ide | |
1597 | public PatientAd mission[] getProvide rAdmission s(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1598 | ||
1599 | lo g("getProv iderAdmiss ions", que ryBean); | |
1600 | ||
1601 | Pa tientAdmis sion[] ret urnVal = n ull; | |
1602 | tr y { | |
1603 | JMeadows Data port = getJMead owsDataPor t(); | |
1604 | returnVa l = port.g etProvider Admissions (queryBean ).toArray( new Patien tAdmission [0]); | |
1605 | } catch (Exc eption e) { | |
1606 | logError (e); | |
1607 | throw ne w SOAPExce ption(e); | |
1608 | } | |
1609 | re turn retur nVal; | |
1610 | } | |
1611 | ||
1612 | @Overr ide | |
1613 | public PatientAp pointments [] getProv iderAppoin tments(JMe adowsQuery queryBean ) throws S OAPExcepti on { | |
1614 | lo g("getProv iderAppoin tments", q ueryBean); | |
1615 | ||
1616 | Pa tientAppoi ntments[] returnVal = null; | |
1617 | tr y { | |
1618 | JMeadows Data port = getJMead owsDataPor t(); | |
1619 | returnVa l = port.g etProvider Appointmen ts(queryBe an).toArra y(new Pati entAppoint ments[0]); | |
1620 | } catch (Exc eption e) { | |
1621 | logError (e); | |
1622 | throw ne w SOAPExce ption(e); | |
1623 | } | |
1624 | re turn retur nVal; | |
1625 | } | |
1626 | ||
1627 | @Overr ide | |
1628 | public Consult[] getProvid erConsults Received(J MeadowsQue ry queryBe an) throws SOAPExcep tion { | |
1629 | lo g("getProv iderConsul tsReceived ", queryBe an); | |
1630 | ||
1631 | Co nsult[] re turnVal = null; | |
1632 | tr y { | |
1633 | JMeadows Data port = getJMead owsDataPor t(); | |
1634 | returnVa l = port.g etProvider ConsultsRe ceived(que ryBean).to Array(new Consult[0] ); | |
1635 | } catch (Exc eption e) { | |
1636 | logError (e); | |
1637 | throw ne w SOAPExce ption(e); | |
1638 | } | |
1639 | re turn retur nVal; | |
1640 | } | |
1641 | ||
1642 | @Overr ide | |
1643 | public Consult[] getProvid erConsults Requested( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
1644 | lo g("getProv iderConsul tsRequeste d", queryB ean); | |
1645 | ||
1646 | Co nsult[] re turnVal = null; | |
1647 | tr y { | |
1648 | JMeadows Data port = getJMead owsDataPor t(); | |
1649 | returnVa l = port.g etProvider ConsultsRe quested(qu eryBean).t oArray(new Consult[0 ]); | |
1650 | } catch (Exc eption e) { | |
1651 | logError (e); | |
1652 | throw ne w SOAPExce ption(e); | |
1653 | } | |
1654 | re turn retur nVal; | |
1655 | } | |
1656 | ||
1657 | @Overr ide | |
1658 | public LabResult [] getProv iderLabAbn ormalResul ts(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1659 | lo g("getProv iderLabAbn ormalResul ts", query Bean); | |
1660 | ||
1661 | La bResult[] returnVal = null; | |
1662 | tr y { | |
1663 | JMeadows Data port = getJMead owsDataPor t(); | |
1664 | returnVa l = port.g etProvider LabAbnorma lResults(q ueryBean). toArray(ne w LabResul t[0]); | |
1665 | } catch (Exc eption e) { | |
1666 | logError (e); | |
1667 | throw ne w SOAPExce ption(e); | |
1668 | } | |
1669 | re turn retur nVal; | |
1670 | } | |
1671 | ||
1672 | @Overr ide | |
1673 | public Order[] g etProvider OrdersPend ing(JMeado wsQuery qu eryBean) t hrows SOAP Exception { | |
1674 | lo g("getProv iderOrders Pending", queryBean) ; | |
1675 | ||
1676 | Or der[] retu rnVal = nu ll; | |
1677 | tr y { | |
1678 | JMeadows Data port = getJMead owsDataPor t(); | |
1679 | returnVa l = port.g etProvider OrdersPend ing(queryB ean).toArr ay(new Ord er[0]); | |
1680 | } catch (Exc eption e) { | |
1681 | logError (e); | |
1682 | throw ne w SOAPExce ption(e); | |
1683 | } | |
1684 | re turn retur nVal; | |
1685 | } | |
1686 | ||
1687 | @Overr ide | |
1688 | public Order[] g etProvider OrdersResu lted(JMead owsQuery q ueryBean) throws SOA PException { | |
1689 | lo g("getProv iderOrders Resulted", queryBean ); | |
1690 | ||
1691 | Or der[] retu rnVal = nu ll; | |
1692 | tr y { | |
1693 | JMeadows Data port = getJMead owsDataPor t(); | |
1694 | returnVa l = port.g etProvider OrdersResu lted(query Bean).toAr ray(new Or der[0]); | |
1695 | } catch (Exc eption e) { | |
1696 | logError (e); | |
1697 | throw ne w SOAPExce ption(e); | |
1698 | } | |
1699 | re turn retur nVal; | |
1700 | } | |
1701 | ||
1702 | @Overr ide | |
1703 | public ProgressN ote[] getP roviderUns ignedNotes (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
1704 | lo g("getProv iderUnsign edNotes", queryBean) ; | |
1705 | ||
1706 | Pr ogressNote [] returnV al = null; | |
1707 | tr y { | |
1708 | JMeadows Data port = getJMead owsDataPor t(); | |
1709 | returnVa l = port.g etProvider UnsignedNo tes(queryB ean).toArr ay(new Pro gressNote[ 0]); | |
1710 | } catch (Exc eption e) { | |
1711 | logError (e); | |
1712 | throw ne w SOAPExce ption(e); | |
1713 | } | |
1714 | re turn retur nVal; | |
1715 | } | |
1716 | ||
1717 | @Overr ide | |
1718 | public boolean s etJanusGUI Config(JMe adowsQuery queryBean , String c fg) throws SOAPExcep tion { | |
1719 | lo g("setJanu sGUIConfig ", queryBe an); | |
1720 | ||
1721 | bo olean bRet = false; | |
1722 | tr y { | |
1723 | JMeadows Data port = getJMead owsDataPor t(); | |
1724 | bRet = p ort.setJan usGUIConfi g(queryBea n, cfg); | |
1725 | } catch (Exc eption e) { | |
1726 | logError (e); | |
1727 | throw ne w SOAPExce ption(e); | |
1728 | } | |
1729 | re turn bRet; | |
1730 | } | |
1731 | ||
1732 | @Overr ide | |
1733 | public String ge tJanusGUIC onfig(JMea dowsQuery queryBean) throws SO APExceptio n { | |
1734 | lo g("getJanu sGUIConfig ", queryBe an); | |
1735 | ||
1736 | St ring retVa l = ""; | |
1737 | tr y { | |
1738 | JMeadows Data port = getJMead owsDataPor t(); | |
1739 | retVal = port.getJ anusGUICon fig(queryB ean); | |
1740 | } catch (Exc eption e) { | |
1741 | logError (e); | |
1742 | throw ne w SOAPExce ption(e); | |
1743 | } | |
1744 | re turn retVa l; | |
1745 | } | |
1746 | ||
1747 | @Overr ide | |
1748 | public boolean s etProvider Flags(JMea dowsQuery queryBean, String fl ags) throw s SOAPExce ption { | |
1749 | lo g("setProv iderFlags" , queryBea n); | |
1750 | ||
1751 | bo olean bRet = false; | |
1752 | tr y { | |
1753 | JMeadows Data port = getJMead owsDataPor t(); | |
1754 | bRet = p ort.setPro viderFlags (queryBean , flags); | |
1755 | } catch (Exc eption e) { | |
1756 | logError (e); | |
1757 | throw ne w SOAPExce ption(e); | |
1758 | } | |
1759 | re turn bRet; | |
1760 | } | |
1761 | ||
1762 | @Overr ide | |
1763 | public String ge tProviderF lags(JMead owsQuery q ueryBean) throws SOA PException { | |
1764 | lo g("getProv iderFlags" , queryBea n); | |
1765 | ||
1766 | St ring retVa l = ""; | |
1767 | tr y { | |
1768 | JMeadows Data port = getJMead owsDataPor t(); | |
1769 | retVal = port.getP roviderFla gs(queryBe an); | |
1770 | } catch (Exc eption e) { | |
1771 | logError (e); | |
1772 | throw ne w SOAPExce ption(e); | |
1773 | } | |
1774 | re turn retVa l; | |
1775 | } | |
1776 | ||
1777 | // @Ove rride | |
1778 | // publ ic IehrUse rProfile g etIehrUser Profile(St ring smart CardID, St ring smart CardAgency ) throws S OAPExcepti on { | |
1779 | // return get IehrUserPr ofile(smar tCardID, s martCardAg ency, ""); | |
1780 | // } | |
1781 | ||
1782 | @Overr ide | |
1783 | public IehrUserP rofile get IehrUserPr ofile(Stri ng smartCa rdID, Stri ng smartCa rdAgency, String ema ilAddress) throws SO APExceptio n { | |
1784 | Ie hrUserProf ile retVal = null; | |
1785 | tr y { | |
1786 | JMeadows Data port = getJMead owsDataPor t(); | |
1787 | retVal = port.getI ehrUserPro file(smart CardID, sm artCardAge ncy, email Address); | |
1788 | } catch (Exc eption e) { | |
1789 | logError (e); | |
1790 | throw ne w SOAPExce ption(e); | |
1791 | } | |
1792 | re turn retVa l; | |
1793 | } | |
1794 | ||
1795 | @Overr ide | |
1796 | public boolean s etIehrUser Profile(Ie hrUserProf ile userPr ofile) thr ows SOAPEx ception { | |
1797 | bo olean bRet = false; | |
1798 | tr y { | |
1799 | JMeadows Data port = getJMead owsDataPor t(); | |
1800 | bRet = p ort.setIeh rUserProfi le(userPro file); | |
1801 | } catch (Exc eption e) { | |
1802 | logError (e); | |
1803 | throw ne w SOAPExce ption(e); | |
1804 | } | |
1805 | re turn bRet; | |
1806 | } | |
1807 | ||
1808 | @Overr ide | |
1809 | public String ge tAppName() { | |
1810 | re turn appNa me; | |
1811 | } | |
1812 | ||
1813 | @Overr ide | |
1814 | public void setA ppName(Str ing appNam e) { | |
1815 | th is.appName = appName ; | |
1816 | } | |
1817 | ||
1818 | @Overr ide | |
1819 | public List<Site > getSites () throws SOAPExcept ion { | |
1820 | Li st<Site> r etVal = nu ll; | |
1821 | tr y { | |
1822 | JMeadows Data port = getJMead owsDataPor t(); | |
1823 | retVal = port.getS ites(); | |
1824 | } catch (Exc eption e) { | |
1825 | logError (e); | |
1826 | throw ne w SOAPExce ption(e); | |
1827 | } | |
1828 | re turn retVa l; | |
1829 | } | |
1830 | ||
1831 | @Overr ide | |
1832 | public List<Audi tEntry> ge tLoginInfo (String ca rdID, Stri ng emailAd dress) thr ows SOAPEx ception { | |
1833 | Li st<AuditEn try> retVa l = null; | |
1834 | tr y { | |
1835 | JMeadows Data port = getJMead owsDataPor t(); | |
1836 | retVal = port.getL oginInfo(c ardID, ema ilAddress) ; | |
1837 | } catch (Exc eption e) { | |
1838 | logError (e); | |
1839 | throw ne w SOAPExce ption(e); | |
1840 | } | |
1841 | re turn retVa l; | |
1842 | } | |
1843 | ||
1844 | // @Ove rride | |
1845 | // publ ic String getService Errors() t hrows SOAP Exception { | |
1846 | // String ret Val = null ; | |
1847 | // try { | |
1848 | // JMeado wsData por t = getJMe adowsDataP ort(); | |
1849 | // retVal = port.ge tServiceEr rors(); | |
1850 | // } catch (E xception e ) { | |
1851 | // logErr or(e); | |
1852 | // throw new SOAPEx ception(e) ; | |
1853 | // } | |
1854 | // return ret Val; | |
1855 | // } | |
1856 | ||
1857 | @Overr ide | |
1858 | public AuthUserI nfo getAut hUser(Auth UserInfo a uthUserInf oQuery) th rows SOAPE xception { | |
1859 | Au thUserInfo retVal = null; | |
1860 | ||
1861 | tr y { | |
1862 | JMeadows Data port = getJMead owsDataPor t(); | |
1863 | retVal = port.getA uthUser(au thUserInfo Query); | |
1864 | } catch (Exc eption e) { | |
1865 | logError (e); | |
1866 | throw ne w SOAPExce ption(e); | |
1867 | } | |
1868 | ||
1869 | re turn retVa l; | |
1870 | } | |
1871 | ||
1872 | @Overr ide | |
1873 | public List<Pati ent> getRe centlyView edPatients (String us erId) thro ws SOAPExc eption { | |
1874 | Li st<Patient > patients = null; | |
1875 | ||
1876 | tr y { | |
1877 | JMeadows Data port = getJMead owsDataPor t(); | |
1878 | patients = port.ge tRecentlyV iewedPatie nts(userId ); | |
1879 | } | |
1880 | ca tch (Excep tion e) { | |
1881 | logError (e); | |
1882 | throw ne w SOAPExce ption(e); | |
1883 | } | |
1884 | ||
1885 | re turn patie nts; | |
1886 | } | |
1887 | ||
1888 | @Overr ide | |
1889 | public String ge tPatientDo cumentVixS tudyViewer Url(JMeado wsQuery qu eryBean, P atientDocu ment docum ent) throw s SOAPExce ption { | |
1890 | tr y { | |
1891 | JMeadows Data port = getJMead owsDataPor t(); | |
1892 | return p ort.getPat ientDocume ntVixStudy ViewerUrl( queryBean, document) ; | |
1893 | } catch (Exc eption e) { | |
1894 | logError (e); | |
1895 | throw ne w SOAPExce ption(e); | |
1896 | } | |
1897 | } | |
1898 | ||
1899 | @Overr ide | |
1900 | public String ge tEncounter DocumentVi xStudyView erUrl(JMea dowsQuery queryBean, String do cumentId, String doc umentSiteI d) throws SOAPExcept ion { | |
1901 | tr y { | |
1902 | JMeadows Data port = getJMead owsDataPor t(); | |
1903 | return p ort.getEnc ounterDocu mentVixStu dyViewerUr l(queryBea n, documen tId, docum entSiteId) ; | |
1904 | } catch (Exc eption e) { | |
1905 | logError (e); | |
1906 | throw ne w SOAPExce ption(e); | |
1907 | } | |
1908 | } | |
1909 | ||
1910 | @Overr ide | |
1911 | public String ge tRadiology VixStudyVi ewerUrl(JM eadowsQuer y queryBea n, Radiolo gyReport r adiologyRe port) thro ws SOAPExc eption { | |
1912 | tr y { | |
1913 | JMeadows Data port = getJMead owsDataPor t(); | |
1914 | return p ort.getRad iologyVixS tudyViewer Url(queryB ean, radio logyReport ); | |
1915 | } catch (Exc eption e) { | |
1916 | logError (e); | |
1917 | throw ne w SOAPExce ption(e); | |
1918 | } | |
1919 | } | |
1920 | ||
1921 | @Overr ide | |
1922 | public FreeTextR eport getP atientHeal thSummary( JMeadowsQu ery queryB ean) throw s SOAPExce ption { | |
1923 | tr y { | |
1924 | JMeadows Data port = getJMead owsDataPor t(); | |
1925 | return p ort.getPat ientHealth Summary(qu eryBean); | |
1926 | } catch (Exc eption e) { | |
1927 | logError (e); | |
1928 | throw ne w SOAPExce ption(e); | |
1929 | } | |
1930 | } | |
1931 | ||
1932 | @Overr ide | |
1933 | public JMedResul tCollectio n getPatie ntHealthSu mmaryTypes (JMeadowsQ uery query Bean) thro ws SOAPExc eption { | |
1934 | tr y { | |
1935 | JMeadows Data port = getJMead owsDataPor t(); | |
1936 | return p ort.getPat ientHealth SummaryTyp es(queryBe an); | |
1937 | } catch (Exc eption e) { | |
1938 | logError (e); | |
1939 | throw ne w SOAPExce ption(e); | |
1940 | } | |
1941 | } | |
1942 | ||
1943 | @Overr ide | |
1944 | public List<Free TextReport > getPatie ntHealthSu mmaries(JM eadowsQuer y queryBea n) throws SOAPExcept ion { | |
1945 | tr y { | |
1946 | JMeadows Data port = getJMead owsDataPor t(); | |
1947 | return p ort.getPat ientHealth Summaries( queryBean) ; | |
1948 | } catch (Exc eption e) { | |
1949 | logError (e); | |
1950 | throw ne w SOAPExce ption(e); | |
1951 | } | |
1952 | } | |
1953 | ||
1954 | @Overr ide | |
1955 | public List<Pce> getPcesFo rNote(JMea dowsQuery queryBean) throws SO APExceptio n { | |
1956 | tr y { | |
1957 | JMeadows Data port = getJMead owsDataPor t(); | |
1958 | return p ort.getPce sForNote(q ueryBean); | |
1959 | } catch (Exc eption e) { | |
1960 | logError (e); | |
1961 | throw ne w SOAPExce ption(e); | |
1962 | } | |
1963 | } | |
1964 | ||
1965 | @Overr ide | |
1966 | public JMedResul tCollectio n getPatie ntSurgerie s(JMeadows Query quer yBean) thr ows SOAPEx ception { | |
1967 | tr y { | |
1968 | JMeadows Data port = getJMead owsDataPor t(); | |
1969 | return p ort.getPat ientSurger ies(queryB ean); | |
1970 | } catch (Exc eption e) { | |
1971 | logError (e); | |
1972 | throw ne w SOAPExce ption(e); | |
1973 | } | |
1974 | } | |
1975 | ||
1976 | @Overr ide | |
1977 | public FreeTextR eport getS urgeryDeta il(JMeadow sQuery que ryBean) th rows SOAPE xception { | |
1978 | tr y { | |
1979 | JMeadows Data port = getJMead owsDataPor t(); | |
1980 | return p ort.getSur geryDetail (queryBean ); | |
1981 | } catch (Exc eption e) { | |
1982 | logError (e); | |
1983 | throw ne w SOAPExce ption(e); | |
1984 | } | |
1985 | } | |
1986 | ||
1987 | @Overr ide | |
1988 | public boolean s etLinkedDa ta(String userId, St ring probl emId, Link DataDetail s linkData ) | |
1989 | throws S OAPExcepti on { | |
1990 | ||
1991 | bo olean ret; | |
1992 | ||
1993 | tr y { | |
1994 | JMeadows Data port = getJMead owsDataPor t(); | |
1995 | ret = po rt.setLink edData(use rId, probl emId, link Data); | |
1996 | } | |
1997 | ca tch (Excep tion e) { | |
1998 | logError (e); | |
1999 | throw ne w SOAPExce ption(e); | |
2000 | } | |
2001 | re turn ret; | |
2002 | } | |
2003 | ||
2004 | @Overr ide | |
2005 | public boolean r emoveLinke dData(Stri ng userId, String pr oblemId, S tring link edDataId) throws SOA PException { | |
2006 | ||
2007 | bo olean ret; | |
2008 | tr y { | |
2009 | JMeadows Data port = getJMead owsDataPor t(); | |
2010 | ret = po rt.removeL inkedData( userId, pr oblemId, l inkedDataI d); | |
2011 | } | |
2012 | ca tch (Excep tion e) { | |
2013 | logError (e); | |
2014 | throw ne w SOAPExce ption(e); | |
2015 | } | |
2016 | re turn ret; | |
2017 | } | |
2018 | ||
2019 | @Overr ide | |
2020 | public boolean s etLinkedDa taAuthor(L inkDataAut hor author , String p roblemId, String lin kedDataId) throws SO APExceptio n { | |
2021 | ||
2022 | bo olean ret; | |
2023 | ||
2024 | tr y { | |
2025 | JMeadows Data port = getJMead owsDataPor t(); | |
2026 | ret = po rt.setLink edDataAuth or(author, problemId , linkedDa taId); | |
2027 | } | |
2028 | ca tch (Excep tion e) { | |
2029 | logError (e); | |
2030 | throw ne w SOAPExce ption(e); | |
2031 | } | |
2032 | re turn ret; | |
2033 | } | |
2034 | @Overr ide | |
2035 | public boolean r emoveLinke dDataAutho r(String u serId, Str ing proble mId, Strin g linkedDa taId) thro ws SOAPExc eption { | |
2036 | ||
2037 | bo olean ret; | |
2038 | ||
2039 | tr y { | |
2040 | JMeadows Data port = getJMead owsDataPor t(); | |
2041 | ret = po rt.removeL inkedDataA uthor(user Id, proble mId, linke dDataId); | |
2042 | } | |
2043 | ca tch (Excep tion e) { | |
2044 | logError (e); | |
2045 | throw ne w SOAPExce ption(e); | |
2046 | } | |
2047 | re turn ret; | |
2048 | } | |
2049 | ||
2050 | privat e void log Error(Exce ption e){ | |
2051 | lo gger.error ("JLV ERRO R: " + e.g etMessage( ), e); | |
2052 | } | |
2053 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.