27792. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/27/2019 4:11:44 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.

27792.1 Files compared

# Location File Last Modified
1 JLV_CV_CV_2_9_1_0.zip\CVjMeadows-CCP\src\gov\va\med\jmeadows\dataservicehandler VistaDataServiceHandler.java Wed Mar 20 21:43:06 2019 UTC
2 JLV_CV_CV_2_9_1_0.zip\CVjMeadows-CCP\src\gov\va\med\jmeadows\dataservicehandler VistaDataServiceHandler.java Wed Mar 27 14:45:53 2019 UTC

27792.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 2350
Changed 1 2
Inserted 0 0
Removed 0 0

27792.3 Comparison options

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

27792.4 Active regular expressions

No regular expressions were active.

27792.5 Comparison detail

  1   /**
  2    * Janus 4 .0 (c)
  3    * Copyrig ht (c) 201 1 Hawaii R esource Gr oup LLC. A ll Rights  Reserved.
  4    * Develop ed for the  Pacific T elehealth  & Technolo gy Hui and  the Pacif ic Joint I nformation  Technolog y Center
  5    * Contrib utors:
  6    *     Hon orable Sen ator Danie l K. Inouy e
  7    *     VA  Pacific Is lands Heal th Care Sy stem
  8    *     Tri pler Army  Medical Ce nter
  9    */
  10  
  11  
  12   package go v.va.med.j meadows.da taserviceh andler;
  13  
  14   import gov .va.med.jm eadows.com mon.JMeado wsExceptio n;
  15   import gov .va.med.vd s.webservi ce.*;
  16   import org .slf4j.Log ger;
  17   import org .slf4j.Log gerFactory ;
  18  
  19   import jav a.util.Arr ayList;
  20   import jav a.util.Lis t;
  21  
  22   import jav ax.xml.nam espace.QNa me;
  23   import jav ax.xml.ws. BindingPro vider;
  24   import jav ax.xml.ws. handler.Ha ndler;
  25  
  26  
  27   /**
  28    *
  29    * @author  vhahonbru nos
  30    */
  31   public cla ss VistaDa taServiceH andler ext ends DataS erviceHand ler {
  32       privat e VistaDat aService m _VistaData Service;
  33       privat e static f inal Logge r LOGGER =  LoggerFac tory.getLo gger(Vista DataServic eHandler.c lass);
  34  
  35       public  VistaData ServiceHan dler(Strin g url) {
  36           su per();
  37  
  38           se rviceURL =  url;
  39           se rviceName  = "VistaDa taService" ;
  40             serviceNam espace = " http:// DNS . URL         /";
  41           qS erviceName  = new QNa me(service Namespace,  serviceNa me);
  42       }
  43  
  44       privat e VistaDat a getVista DataPort()  {
  45  
  46           if  (m_VistaD ataService  == null)  {
  47                createSe rvice();
  48           }
  49  
  50           Vi staData po rt = m_Vis taDataServ ice.getVis taDataPort ();
  51  
  52           // set port e ndpoint ad dress
  53           Bi ndingProvi der prov =  (BindingP rovider) p ort;
  54           pr ov.getRequ estContext ().put(Bin dingProvid er.ENDPOIN T_ADDRESS_ PROPERTY,  serviceURL );
  55           pr ov.getRequ estContext ().put("co m.sun.xml. internal.w s.connect. timeout",  serviceCon nectionTim eoutMS);
  56           pr ov.getRequ estContext ().put("co m.sun.xml. internal.w s.request. timeout",  serviceReq uestTimeou tMS);
  57           pr ov.getRequ estContext ().put("co m.sun.xml. ws.connect .timeout",  serviceCo nnectionTi meoutMS);
  58           pr ov.getRequ estContext ().put("co m.sun.xml. ws.request .timeout",  serviceRe questTimeo utMS);
  59  
  60           //  SOAP mess age loggin g - Enable  to show l ogging in  output win dow
  61           if  ("test".e qualsIgnor eCase(APP_ CONFIG.get AppEnviron ment()) ||  "developm ent".equal sIgnoreCas e(APP_CONF IG.getAppE nvironment ()))
  62           {
  63                prov.get Binding(). getHandler Chain().ad d(new SOAP LoggingHan dler());
  64                List<Han dler> hand lerList =  prov.getBi nding().ge tHandlerCh ain();
  65                handlerL ist.add(ne w SOAPLogg ingHandler ());
  66                prov.get Binding(). setHandler Chain(hand lerList);
  67           }
  68  
  69           re turn port;
  70       }
  71  
  72       privat e synchron ized void  createServ ice() {
  73           if  (m_VistaD ataService  == null)  {
  74                try {
  75                    m_Vi staDataSer vice = new  VistaData Service();
  76                } catch  (Exception  e) {
  77                    logE rror(e);
  78                    thro w new Runt imeExcepti on(e);
  79                }
  80           }
  81       }
  82  
  83       public  User logi n(Site sit e, String  accessCode , String v erifyCode)  throws JM eadowsExce ption
  84       {
  85           Us er user =  null;
  86  
  87           tr y {
  88                VistaDat a port = g etVistaDat aPort();
  89                user = p ort.login( site, acce ssCode, ve rifyCode);
  90           }  catch (Exc eption e)  {
  91                logError (e);
  92                throw ne w JMeadows Exception( e);
  93           }
  94  
  95           re turn user;
  96       }
  97  
  98       public  User logi nSaml(Site  site, Str ing samlTo ken) throw s JMeadows Exception
  99       {
  100           Us er user =  null;
  101  
  102           tr y {
  103                VistaDat a port = g etVistaDat aPort();
  104                user = p ort.loginS aml(site,  samlToken) ;
  105           }  catch (Exc eption e)  {
  106                logError (e);
  107                throw ne w JMeadows Exception( e);
  108           }
  109  
  110           re turn user;
  111       }
  112  
  113       public  Admission Detail get AdmissionD etails(Que ryBean que ryBean) th rows JMead owsExcepti on {
  114           Ad missionDet ail return Val = null ;
  115  
  116           tr y {
  117                VistaDat a port = g etVistaDat aPort();
  118                returnVa l = port.g etAdmissio nDetails(q ueryBean);
  119  
  120           }  catch (Exc eption e)  {
  121                logError (e);
  122                throw ne w JMeadows Exception( e);
  123           }
  124  
  125  
  126           re turn retur nVal;
  127       }
  128  
  129       public  Diagnosis [] getAdmi ssionDiagn osis(Query Bean query Bean) thro ws JMeadow sException  {
  130           Di agnosis[]  diagnosis  = null;
  131  
  132           tr y {
  133  
  134                VistaDat a port = g etVistaDat aPort();
  135                List<Dia gnosis> di ag = port. getAdmissi onDiagnosi s(queryBea n);
  136                diagnosi s = diag.t oArray(new  Diagnosis [diag.size ()]);
  137           }  catch (Exc eption e)  {
  138                logError (e);
  139                throw ne w JMeadows Exception( e);
  140           }
  141           re turn diagn osis;
  142  
  143       }
  144  
  145       public  Procedure [] getAdmi ssionProce dures(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  146           Pr ocedure[]  admissionP rocedures  = null;
  147  
  148           tr y {
  149                VistaDat a port = g etVistaDat aPort();
  150                List<Pro cedure> pr oc = port. getAdmissi onProcedur es(queryBe an);
  151                admissio nProcedure s = proc.t oArray(new  Procedure [proc.size ()]);
  152           }  catch (Exc eption e)  {
  153                logError (e);
  154                throw ne w JMeadows Exception( e);
  155           }
  156  
  157           re turn admis sionProced ures;
  158       }
  159  
  160       public  FreeTextR eport getC linicalRem inderDetai l(QueryBea n queryBea n) throws  JMeadowsEx ception {
  161           Fr eeTextRepo rt returnV al = null;
  162  
  163           tr y {
  164                VistaDat a port = g etVistaDat aPort();
  165                returnVa l = port.g etClinical ReminderDe tail(query Bean);
  166           }  catch (Exc eption e)  {
  167                logError (e);
  168                throw ne w JMeadows Exception( e);
  169           }
  170  
  171           re turn retur nVal;
  172       }
  173  
  174       public  List<Free TextReport > getConsu ltReport(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  175           tr y {
  176                VistaDat a port = g etVistaDat aPort();
  177                return p ort.getCon sultReport (queryBean );
  178           }  catch (Exc eption e)  {
  179                throw ne w JMeadows Exception( e);
  180           }
  181       }
  182  
  183       public  FreeTextR eport getM edicationD etail(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  184           Fr eeTextRepo rt returnV al = null;
  185  
  186           tr y {
  187                VistaDat a port = g etVistaDat aPort();
  188                returnVa l = port.g etMedicati onDetail(q ueryBean);
  189           }  catch (Exc eption e)  {
  190                logError (e);
  191                throw ne w JMeadows Exception( e);
  192           }
  193  
  194           re turn retur nVal;
  195       }
  196  
  197       public  LabResult [] getLabO rderResult (QueryBean  queryBean ) throws J MeadowsExc eption {
  198           La bResult[]  orderResul t = null;
  199  
  200           tr y {
  201                VistaDat a port = g etVistaDat aPort();
  202                List<Lab Result> or es = port. getLabOrde rResult(qu eryBean);
  203                orderRes ult = ores .toArray(n ew LabResu lt[ores.si ze()]);
  204           }  catch (Exc eption e)  {
  205                logError (e);
  206                throw ne w JMeadows Exception( e);
  207           }
  208  
  209           re turn order Result;
  210       }
  211  
  212       public  FreeTextR eport getP atientLabR eport(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  213           Fr eeTextRepo rt report  = null;
  214  
  215           tr y {
  216                VistaDat a port = g etVistaDat aPort();
  217                report =  port.getP atientLabR eport(quer yBean);
  218           }  catch (Exc eption e)  {
  219                logError (e);
  220                throw ne w JMeadows Exception( e);
  221           }
  222  
  223           re turn repor t;
  224       }
  225  
  226       public  LabResult [] getPati entLabResu lts(QueryB ean queryB ean) throw s JMeadows Exception  {
  227           Li st<LabResu lt> labRes ults = nul l;
  228  
  229           tr y {
  230                VistaDat a port = g etVistaDat aPort();
  231                labResul ts = port. getPatient LabResults (queryBean );
  232           }  catch (Exc eption e)  {
  233                logError (e);
  234                throw ne w JMeadows Exception( e);
  235           }
  236  
  237           re turn labRe sults.toAr ray(new La bResult[la bResults.s ize()]);
  238       }
  239  
  240       public  FreeTextR eport getO rderDetail (QueryBean  queryBean ) throws J MeadowsExc eption {
  241           Fr eeTextRepo rt returnV al = null;
  242  
  243           tr y {
  244                VistaDat a port = g etVistaDat aPort();
  245                returnVa l = port.g etOrderDet ail(queryB ean);
  246           }  catch (Exc eption e)  {
  247                logError (e);
  248                throw ne w JMeadows Exception( e);
  249           }
  250  
  251           re turn retur nVal;
  252       }
  253  
  254       public  PatientAd mission[]  getPatient Admissions (QueryBean  queryBean ) throws J MeadowsExc eption {
  255           Pa tientAdmis sion[] pat Admissions  = null;
  256  
  257           tr y {
  258                VistaDat a port = g etVistaDat aPort();
  259                List<Pat ientAdmiss ion> adm =  port.getP atientAdmi ssions(que ryBean);
  260                patAdmis sions = ad m.toArray( new Patien tAdmission [adm.size( )]);
  261           }  catch (Exc eption e)  {
  262                logError (e);
  263                throw ne w JMeadows Exception( e);
  264           }
  265  
  266           re turn patAd missions;
  267       }
  268  
  269       /**
  270        * Ret rieves lis t of patie nt allergi es.
  271        * @pa ram queryB ean Query  parameters .
  272        *                    Requir ed params:  User, Pat ient
  273        * @re turn A lis t of patie nt allergi es.
  274        * @th rows JMead owsExcepti on if ther e was an e rror..
  275        */
  276       public  Allergy[]  getPatien tAllergies (QueryBean  queryBean ) throws J MeadowsExc eption {
  277           Al lergy[] al lergy = nu ll;
  278  
  279           tr y {
  280                VistaDat a port = g etVistaDat aPort();
  281                List<All ergy> algy  = port.ge tPatientAl lergies(qu eryBean);
  282                allergy  = algy.toA rray(new A llergy[alg y.size()]) ;
  283           }  catch (Exc eption e)  {
  284                logError (e);
  285                throw ne w JMeadows Exception( e);
  286           }
  287  
  288           re turn aller gy;
  289       }
  290  
  291       /**
  292        * Ret rieves det ails of an  allergy.
  293        * @pa ram queryB ean Query  parameters .
  294        *                    Requir ed params:  User, Pat ient, item Id, record Site
  295        * @re turn Aller gyDetail c ontaining  allergy re port text.
  296        * @th rows JMead owsExcepti on if ther e was an e rror..
  297        */
  298       public  AllergyDe tail getAl lergyDetai l(QueryBea n queryBea n) throws  JMeadowsEx ception {
  299           Al lergyDetai l allergyD etail = nu ll;
  300  
  301           tr y {
  302                VistaDat a port = g etVistaDat aPort();
  303                allergyD etail = po rt.getAlle rgyDetail( queryBean) ;
  304           }  catch (Exc eption e)  {
  305                logError (e);
  306                throw ne w JMeadows Exception( e);
  307           }
  308  
  309           re turn aller gyDetail;
  310       }
  311  
  312       public  PatientAp pointments [] getPati entAppoint ments(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  313           Pa tientAppoi ntments[]  appointmen ts = null;
  314  
  315           tr y {
  316                VistaDat a port = g etVistaDat aPort();
  317                List<Pat ientAppoin tments> ap ts = port. getPatient Appointmen ts(queryBe an);
  318                appointm ents = apt s.toArray( new Patien tAppointme nts[apts.s ize()]);
  319           }  catch (Exc eption e)  {
  320                logError (e);
  321                throw ne w JMeadows Exception( e);
  322           }
  323  
  324           re turn appoi ntments;
  325       }
  326  
  327       public  Encounter [] getPati entEncount ers(QueryB ean queryB ean) throw s JMeadows Exception  {
  328           En counter[]  encounters  = null;
  329  
  330           tr y {
  331                VistaDat a port = g etVistaDat aPort();
  332                List<Enc ounter> en c = port.g etPatientE ncounters( queryBean) ;
  333                encounte rs = enc.t oArray(new  Encounter [enc.size( )]);
  334           }  catch (Exc eption e)  {
  335                logError (e);
  336                throw ne w JMeadows Exception( e);
  337           }
  338  
  339           re turn encou nters;
  340       }
  341  
  342       public  FreeTextR eport getE ncountersR eport(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  343           Fr eeTextRepo rt returnV al = null;
  344  
  345           tr y {
  346                VistaDat a port = g etVistaDat aPort();
  347                returnVa l = port.g etEncounte rsReport(q ueryBean);
  348           }  catch (Exc eption e)  {
  349                throw ne w JMeadows Exception( e);
  350           }
  351  
  352           re turn retur nVal;
  353       }
  354  
  355       public  ClinicalR eminder[]  getPatient ClinicalRe minders(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  356           Cl inicalRemi nder[] rem inders = n ull;
  357  
  358           tr y {
  359                VistaDat a port = g etVistaDat aPort();
  360                List<Cli nicalRemin der> remin d = port.g etPatientC linicalRem inders(que ryBean);
  361                reminder s = remind .toArray(n ew Clinica lReminder[ remind.siz e()]);
  362           }  catch (Exc eption e)  {
  363                throw ne w JMeadows Exception( e);
  364           }
  365  
  366           re turn remin ders;
  367       }
  368  
  369   //    publ ic String  getPatient CodeGreen( QueryBean  queryBean)  throws JM eadowsExce ption {
  370   //         String ret urnVal = n ull;
  371   //
  372   //         try {
  373   //             VistaD ata port =  getVistaD ataPort();
  374   //             return Val = port .getPatien tCodeGreen (queryBean );
  375   //         } catch (E xception e ) {
  376   //             throw  new JMeado wsExceptio n(e);
  377   //         }
  378   //
  379   //         return ret urnVal;
  380   //    }
  381  
  382       public  Consult[]  getPatien tConsultRe quests(Que ryBean que ryBean) th rows JMead owsExcepti on {
  383           Co nsult[] co nsults = n ull;
  384  
  385           tr y {
  386                VistaDat a port = g etVistaDat aPort();
  387                List<Con sult> cons  = port.ge tPatientCo nsultReque sts(queryB ean);
  388                consults  = cons.to Array(new  Consult[co ns.size()] );
  389           }  catch (Exc eption e)  {
  390                logError (e);
  391                throw ne w JMeadows Exception( e);
  392           }
  393  
  394           re turn consu lts;
  395       }
  396  
  397       public  Consult[]  getPatien tConsultRe quest(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  398           Co nsult[] co nsults = n ull;
  399           Co nsult cons ult;
  400  
  401           tr y {
  402                VistaDat a port = g etVistaDat aPort();
  403                consult  = port.get PatientCon sultReques t(queryBea n);
  404                if (cons ult != nul l) {
  405                    cons ults = new  Consult[1 ];
  406                    cons ults[0] =  consult;
  407                }
  408           }
  409           ca tch (Excep tion e) {
  410                throw ne w JMeadows Exception( e);
  411           }
  412  
  413           re turn consu lts;
  414       }
  415  
  416       public  Consult[]  getPatien tActiveCon sultReques ts(QueryBe an queryBe an) throws  JMeadowsE xception {
  417           Co nsult[] co nsults = n ull;
  418  
  419           tr y {
  420                VistaDat a port = g etVistaDat aPort();
  421                consults  = port.ge tPatientAc tiveConsul tRequests( queryBean) .toArray(n ew Consult [0]);
  422           }  catch (Exc eption e)  {
  423                throw ne w JMeadows Exception( e);
  424           }
  425  
  426           re turn consu lts;
  427       }
  428  
  429       public  Vitals[]  getPatient CurrentVit als(QueryB ean queryB ean) throw s JMeadows Exception  {
  430           Vi tals[] vit als = null ;
  431  
  432           tr y {
  433                VistaDat a port = g etVistaDat aPort();
  434                List<Vit als> vit =  port.getP atientCurr entVitals( queryBean) ;
  435                vitals =  vit.toArr ay(new Vit als[vit.si ze()]);
  436           }  catch (Exc eption e)  {
  437                logError (e);
  438                throw ne w JMeadows Exception( e);
  439           }
  440  
  441           re turn vital s;
  442  
  443       }
  444  
  445       public  PatientDe mographics [] getPati entDemogra phics(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  446           Pa tientDemog raphics[]  returnVal  = null;
  447           tr y {
  448                VistaDat a port = g etVistaDat aPort();
  449                List<Pat ientDemogr aphics> de mo = port. getPatient Demographi cs(queryBe an);
  450                returnVa l = demo.t oArray(new  PatientDe mographics [demo.size ()]);
  451           }  catch (Exc eption e)  {
  452                throw ne w JMeadows Exception( e);
  453           }
  454  
  455           re turn retur nVal;
  456       }
  457  
  458       public  ProgressN ote[] getP atientDisc hargeSumma ries(Query Bean query Bean) thro ws JMeadow sException  {
  459           Pr ogressNote [] notes =  null;
  460  
  461           tr y {
  462                VistaDat a port = g etVistaDat aPort();
  463                List<Pro gressNote>  sum = por t.getPatie ntDischarg eSummaries (queryBean );
  464                notes =  sum.toArra y(new Prog ressNote[s um.size()] );
  465           }  catch (Exc eption e)  {
  466                throw ne w JMeadows Exception( e);
  467           }
  468  
  469           re turn notes ;
  470       }
  471  
  472   //    publ ic Boolean  isSensiti vePatient( QueryBean  queryBean)  throws JM eadowsExce ption {
  473   //         try {
  474   //             VistaD ata port =  getVistaD ataPort();
  475   //             return  port.isSe nsitivePat ient(query Bean);
  476   //         } catch (E xception e ) {
  477   //             throw  new JMeado wsExceptio n(e);
  478   //         }
  479   //    }
  480  
  481       public  boolean i sSensitive Patient(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  482           tr y {
  483                VistaDat a port = g etVistaDat aPort();
  484                List<Ale rt> alerts  = port.ge tSensitive PatientAle rts(queryB ean);
  485                int oldA lertLevel  = -2;
  486                int newA lertLevel;
  487  
  488                for (Ale rt alert:  alerts) {
  489                    newA lertLevel  = Integer. parseInt(a lert.getAl ertId());
  490                    if ( newAlertLe vel > oldA lertLevel)  {
  491                         oldAlertLe vel = newA lertLevel;
  492                    }
  493                }
  494  
  495                if (oldA lertLevel  == -2) {
  496                    thro w new JMea dowsExcept ion("Unabl e to deter mine if pa tient has  sensitive  records.") ;
  497                }
  498  
  499                if (oldA lertLevel  > 0) {
  500                    retu rn true;
  501                } else {
  502                    retu rn false;
  503                }
  504  
  505           }  catch (Exc eption e)  {
  506                logError (e);
  507                throw ne w JMeadows Exception( e);
  508           }
  509       }
  510  
  511       public  List<Aler t> getSens itivePatie ntAlerts(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  512           tr y {
  513                VistaDat a port = g etVistaDat aPort();
  514                return p ort.getSen sitivePati entAlerts( queryBean) ;
  515           }  catch (Exc eption e)  {
  516                logError (e);
  517                throw ne w JMeadows Exception( e);
  518           }
  519       }
  520  
  521       public  PatientDe mographics Detail[] g etPatientD emographic sDetail(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  522           Pa tientDemog raphicsDet ail[] retu rnVal = nu ll;
  523  
  524           tr y {
  525                VistaDat a port = g etVistaDat aPort();
  526                List<Pat ientDemogr aphicsDeta il> demo =  port.getP atientDemo graphicsDe tail(query Bean);
  527                returnVa l = demo.t oArray(new  PatientDe mographics Detail[dem o.size()]) ;
  528           }  catch (Exc eption e)  {
  529                logError (e);
  530                throw ne w JMeadows Exception( e);
  531           }
  532  
  533           re turn retur nVal;
  534       }
  535  
  536       public  Immunizat ion[] getP atientImmu nizations( QueryBean  queryBean)  throws JM eadowsExce ption {
  537           Im munization [] immuniz ation = nu ll;
  538           tr y {
  539                VistaDat a port = g etVistaDat aPort();
  540                List<Imm unization>  imm = por t.getPatie ntImmuniza tions(quer yBean);
  541                immuniza tion = imm .toArray(n ew Immuniz ation[imm. size()]);
  542           }  catch (Exc eption e)  {
  543                logError (e);
  544                throw ne w JMeadows Exception( e);
  545           }
  546  
  547           re turn immun ization;
  548       }
  549  
  550       public  LabOrder[ ] getPatie ntLabs(Que ryBean que ryBean) th rows JMead owsExcepti on {
  551           La bOrder[] o rders = nu ll;
  552           tr y {
  553                VistaDat a port = g etVistaDat aPort();
  554                List<Lab Order> ord  = port.ge tPatientLa bs(queryBe an);
  555                orders =  ord.toArr ay(new Lab Order[ord. size()]);
  556           }  catch (Exc eption e)  {
  557                logError (e);
  558                throw ne w JMeadows Exception( e);
  559           }
  560  
  561           re turn order s;
  562       }
  563  
  564       public  LabResult [] getPati entLabTest Results(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  565           La bResult[]  results =  null;
  566           tr y {
  567                VistaDat a port = g etVistaDat aPort();
  568                List<Lab Result> re s = port.g etPatientL abTestResu lts(queryB ean);
  569                results  = res.toAr ray(new La bResult[re s.size()]) ;
  570           }  catch (Exc eption e)  {
  571                logError (e);
  572                throw ne w JMeadows Exception( e);
  573           }
  574  
  575           re turn resul ts;
  576       }
  577  
  578       public  Medicatio n[] getPat ientMedica tions(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  579           Me dication[]  medicatio n = null;
  580           tr y {
  581                VistaDat a port = g etVistaDat aPort();
  582                List<Med ication> m eds = port .getPatien tMedicatio ns(queryBe an);
  583                medicati on = meds. toArray(ne w Medicati on[meds.si ze()]);
  584           }  catch (Exc eption e)  {
  585                logError (e);
  586                throw ne w JMeadows Exception( e);
  587           }
  588  
  589           re turn medic ation;
  590       }
  591  
  592   //    publ ic Medicat ion[] getP atientMedi cationsNVA (QueryBean  queryBean ) throws J MeadowsExc eption {
  593   //         Medication [] medicat ion = null ;
  594   //         try {
  595   //             VistaD ata port =  getVistaD ataPort();
  596   //             medica tion = por t.getPatie ntMedicati onsNVA(que ryBean).to Array(new  Medication [0]);
  597   //
  598   //         } catch (E xception e ) {
  599   //             throw  new JMeado wsExceptio n(e);
  600   //         }
  601   //
  602   //         return med ication;
  603   //
  604   //    }
  605  
  606       public  Order[] g etPatientO rders(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  607           Or der[] orde rs = null;
  608  
  609           tr y {
  610                VistaDat a port = g etVistaDat aPort();
  611                List<Ord er> ord =  port.getPa tientOrder s(queryBea n);
  612                orders =  ord.toArr ay(new Ord er[ord.siz e()]);
  613           }  catch (Exc eption e)  {
  614                logError (e);
  615                throw ne w JMeadows Exception( e);
  616           }
  617  
  618           re turn order s;
  619       }
  620  
  621       public  Problem[]  getPatien tProblemLi st(QueryBe an queryBe an) throws  JMeadowsE xception {
  622           Pr oblem[] pr oblems = n ull;
  623  
  624           tr y {
  625                VistaDat a port = g etVistaDat aPort();
  626                List<Pro blem> prob  = port.ge tPatientPr oblemList( queryBean) ;
  627                problems  = prob.to Array(new  Problem[pr ob.size()] );
  628           }  catch (Exc eption e)  {
  629                logError (e);
  630                throw ne w JMeadows Exception( e);
  631           }
  632  
  633           re turn probl ems;
  634       }
  635  
  636       public  ProgressN ote[] getP atientProg ressNotes( QueryBean  queryBean)  throws JM eadowsExce ption {
  637           Pr ogressNote [] notes =  null;
  638  
  639           tr y {
  640                VistaDat a port = g etVistaDat aPort();
  641                List<Pro gressNote>  note = po rt.getPati entProgres sNotes(que ryBean);
  642                notes =  note.toArr ay(new Pro gressNote[ note.size( )]);
  643           }  catch (Exc eption e)  {
  644                logError (e);
  645                throw ne w JMeadows Exception( e);
  646           }
  647  
  648           re turn notes ;
  649       }
  650  
  651       public  Radiology Report[] g etPatientR ads(QueryB ean queryB ean) throw s JMeadows Exception  {
  652           Ra diologyRep ort[] exam s = null;
  653  
  654           tr y {
  655                VistaDat a port = g etVistaDat aPort();
  656                List<Rad iologyRepo rt> rpt =  port.getPa tientRads( queryBean) ;
  657                exams =  rpt.toArra y(new Radi ologyRepor t[rpt.size ()]);
  658           }  catch (Exc eption e)  {
  659                throw ne w JMeadows Exception( e);
  660           }
  661  
  662           re turn exams ;
  663       }
  664  
  665       public  Vitals[]  getPatient Vitals(Que ryBean que ryBean) th rows JMead owsExcepti on {
  666           Vi tals[] vit als = null ;
  667  
  668           tr y {
  669                VistaDat a port = g etVistaDat aPort();
  670                List<Vit als> vit =  port.getP atientVita ls(queryBe an);
  671                vitals =  vit.toArr ay(new Vit als[vit.si ze()]);
  672           }  catch (Exc eption e)  {
  673                logError (e);
  674                throw ne w JMeadows Exception( e);
  675           }
  676  
  677           re turn vital s;
  678       }
  679  
  680   //    publ ic Prescri ption getP rescriptio nFills(Que ryBean que ryBean) th rows JMead owsExcepti on {
  681   //         Prescripti on returnV al = null;
  682   //
  683   //         try {
  684   //             VistaD ata port =  getVistaD ataPort();
  685   //             return Val = port .getPrescr iptionFill s(queryBea n);
  686   //         } catch (E xception e ) {
  687   //             throw  new JMeado wsExceptio n(e);
  688   //         }
  689   //
  690   //         return ret urnVal;
  691   //
  692   //    }
  693  
  694       public  ProblemDe tail getPr oblemDetai l(QueryBea n queryBea n) throws  JMeadowsEx ception {
  695           Pr oblemDetai l returnVa l = null;
  696  
  697           tr y {
  698                VistaDat a port = g etVistaDat aPort();
  699                returnVa l = port.g etProblemD etail(quer yBean);
  700           }  catch (Exc eption e)  {
  701                logError (e);
  702                throw ne w JMeadows Exception( e);
  703           }
  704  
  705           re turn retur nVal;
  706       }
  707  
  708       public  FreeTextR eport getP rogressNot e(QueryBea n queryBea n) throws  JMeadowsEx ception {
  709           Fr eeTextRepo rt returnV al = null;
  710  
  711           tr y {
  712                VistaDat a port = g etVistaDat aPort();
  713                returnVa l = port.g etProgress Note(query Bean);
  714           }  catch (Exc eption e)  {
  715                logError (e);
  716                throw ne w JMeadows Exception( e);
  717           }
  718  
  719           re turn retur nVal;
  720       }
  721  
  722       public  User getP roviderPro file(Site  site, Stri ng userIen , String p roviderNPI ) throws J MeadowsExc eption {
  723           Us er returnV al = null;
  724           tr y {
  725                VistaDat a port = g etVistaDat aPort();
  726                returnVa l = port.g etProvider Profile(si te, userIe n, provide rNPI);
  727           }  catch (Exc eption e)  {
  728                logError (e);
  729                throw ne w JMeadows Exception( e);
  730           }
  731  
  732           re turn retur nVal;
  733       }
  734  
  735       public  Radiology Report get RadiologyR eport(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  736           Ra diologyRep ort return Val = null ;
  737  
  738           tr y {
  739                VistaDat a port = g etVistaDat aPort();
  740                returnVa l = port.g etRadiolog yReport(qu eryBean);
  741           }  catch (Exc eption e)  {
  742                logError (e);
  743                throw ne w JMeadows Exception( e);
  744           }
  745  
  746           re turn retur nVal;
  747  
  748       }
  749  
  750       public  List<Aler t> getUser Alerts(Que ryBean que ryBean) th rows JMead owsExcepti on {
  751  
  752           tr y {
  753                VistaDat a port = g etVistaDat aPort();
  754                return p ort.getUse rAlerts(qu eryBean);
  755           }  catch (Exc eption e)  {
  756                logError (e);
  757                throw ne w JMeadows Exception( e);
  758           }
  759       }
  760  
  761       public  Diagnosis [] getVisi tDiagnosis (QueryBean  queryBean ) throws J MeadowsExc eption {
  762           Di agnosis[]  returnVal  = null;
  763           tr y {
  764                VistaDat a port = g etVistaDat aPort();
  765                List<Dia gnosis> di ag = port. getVisitDi agnosis(qu eryBean);
  766                returnVa l = diag.t oArray(new  Diagnosis [diag.size ()]);
  767           }  catch (Exc eption e)  {
  768                logError (e);
  769                throw ne w JMeadows Exception( e);
  770           }
  771  
  772           re turn retur nVal;
  773       }
  774  
  775       public  FreeTextR eport getV isitNotes( QueryBean  queryBean)  throws JM eadowsExce ption {
  776           Fr eeTextRepo rt returnV al = null;
  777  
  778           tr y {
  779                VistaDat a port = g etVistaDat aPort();
  780                returnVa l = port.g etVisitNot es(queryBe an);
  781           }  catch (Exc eption e)  {
  782                logError (e);
  783                throw ne w JMeadows Exception( e);
  784           }
  785  
  786           re turn retur nVal;
  787       }
  788  
  789       public  Procedure [] getVisi tProcedure s(QueryBea n queryBea n) throws  JMeadowsEx ception {
  790           Pr ocedure[]  returnVal  = null;
  791  
  792           tr y {
  793                VistaDat a port = g etVistaDat aPort();
  794                List<Pro cedure> pr oc = port. getVisitPr ocedures(q ueryBean);
  795                returnVa l = proc.t oArray(new  Procedure [proc.size ()]);
  796           }  catch (Exc eption e)  {
  797                logError (e);
  798                throw ne w JMeadows Exception( e);
  799           }
  800  
  801  
  802           re turn retur nVal;
  803       }
  804  
  805  
  806       public  List<Pati ent> looku pPatient(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  807  
  808           tr y {
  809                VistaDat a port = g etVistaDat aPort();
  810                //return  a max of  100 patien ts
  811                queryBea n.setMax(1 00);
  812                return p ort.lookup Patient(qu eryBean);
  813           }  catch (Exc eption e)  {
  814                logError (e);
  815                throw ne w JMeadows Exception( e);
  816           }
  817       }
  818  
  819       public  boolean s electPatie nt(QueryBe an queryBe an) throws  JMeadowsE xception {
  820           bo olean retu rnVal = fa lse;
  821  
  822           tr y {
  823                VistaDat a port = g etVistaDat aPort();
  824                //return  a max of  100 patien ts
  825                queryBea n.setMax(1 00);
  826                returnVa l = port.s electPatie nt(queryBe an);
  827           }  catch (Exc eption e)  {
  828                logError (e);
  829                throw ne w JMeadows Exception( e);
  830           }
  831  
  832           re turn retur nVal;
  833  
  834       }
  835  
  836       public  ReferralB ean[] getD RReferrals (QueryBean  queryBean ) throws J MeadowsExc eption {
  837           Re ferralBean [] returnV al = null;
  838  
  839           tr y {
  840                VistaDat a port = g etVistaDat aPort();
  841                List<Ref erralBean>  ref = por t.getDRRef errals(que ryBean);
  842                returnVa l = ref.to Array(new  ReferralBe an[ref.siz e()]);
  843           }  catch (Exc eption e)  {
  844                logError (e);
  845                throw ne w JMeadows Exception( e);
  846           }
  847  
  848           re turn retur nVal;
  849       }
  850  
  851       public  PatientAd mission[]  getProvide rAdmission s(QueryBea n queryBea n) throws  JMeadowsEx ception {
  852           tr y {
  853                List<Pat ientAdmiss ion> admis sions = nu ll;
  854                VistaDat a port = g etVistaDat aPort();
  855                admissio ns = port. getProvide rAdmission s(queryBea n);
  856                return a dmissions. toArray(ne w PatientA dmission[a dmissions. size()]);
  857           }  catch (Exc eption e)  {
  858                logError (e);
  859                throw ne w JMeadows Exception( e);
  860           }
  861       }
  862  
  863       public  PatientAd mission[]  getWardAdm issions(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  864           tr y {
  865                List<Pat ientAdmiss ion> admis sions = nu ll;
  866                VistaDat a port = g etVistaDat aPort();
  867                admissio ns = port. getWardAdm issions(qu eryBean);
  868                return a dmissions. toArray(ne w PatientA dmission[a dmissions. size()]);
  869           }  catch (Exc eption e)  {
  870                throw ne w JMeadows Exception( e);
  871           }
  872       }
  873  
  874       public  PatientAp pointments [] getProv iderAppoin tments(Que ryBean que ryBean) th rows JMead owsExcepti on {
  875           tr y {
  876                List<Pat ientAppoin tments> ap pointments  = null;
  877                VistaDat a port = g etVistaDat aPort();
  878                appointm ents = por t.getProvi derAppoint ments(quer yBean);
  879                return a ppointment s.toArray( new Patien tAppointme nts[appoin tments.siz e()]);
  880           }  catch (Exc eption e)  {
  881                logError (e);
  882                throw ne w JMeadows Exception( e);
  883           }
  884       }
  885  
  886       public  ProgressN ote[] getP roviderUns ignedNotes (QueryBean  queryBean ) throws J MeadowsExc eption {
  887           tr y {
  888                List<Pro gressNote>  unsignedN otes = nul l;
  889                VistaDat a port = g etVistaDat aPort();
  890                unsigned Notes = po rt.getProv iderUnsign edNotes(qu eryBean);
  891                return u nsignedNot es.toArray (new Progr essNote[un signedNote s.size()]) ;
  892           }  catch (Exc eption e)  {
  893                throw ne w JMeadows Exception( e);
  894           }
  895       }
  896  
  897       public  Consult[]  getProvid erConsults Requested( QueryBean  queryBean)  throws JM eadowsExce ption {
  898           tr y {
  899                List<Con sult> cons ultsReques ted = null ;
  900                VistaDat a port = g etVistaDat aPort();
  901                consults Requested  = port.get ProviderCo nsultsRequ ested(quer yBean);
  902                return c onsultsReq uested.toA rray(new C onsult[con sultsReque sted.size( )]);
  903           }  catch (Exc eption e)  {
  904                logError (e);
  905                throw ne w JMeadows Exception( e);
  906           }
  907       }
  908  
  909       public  Consult[]  getProvid erConsults Received(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  910           tr y {
  911                List<Con sult> cons ultsReceiv ed = null;
  912                VistaDat a port = g etVistaDat aPort();
  913                consults Received =  port.getP roviderCon sultsRecei ved(queryB ean);
  914                return c onsultsRec eived.toAr ray(new Co nsult[cons ultsReceiv ed.size()] );
  915           }  catch (Exc eption e)  {
  916                logError (e);
  917                throw ne w JMeadows Exception( e);
  918           }
  919       }
  920  
  921       public  Order[] g etProvider OrdersPend ing(QueryB ean queryB ean) throw s JMeadows Exception  {
  922           tr y {
  923                List<Ord er> orders  = null;
  924                VistaDat a port = g etVistaDat aPort();
  925                orders =  port.getP roviderOrd ersPending (queryBean );
  926                return o rders.toAr ray(new Or der[orders .size()]);
  927           }  catch (Exc eption e)  {
  928                logError (e);
  929                throw ne w JMeadows Exception( e);
  930           }
  931       }
  932  
  933       public  Order[] g etProvider OrdersResu lted(Query Bean query Bean) thro ws JMeadow sException  {
  934           tr y {
  935                List<Ord er> orders  = null;
  936                VistaDat a port = g etVistaDat aPort();
  937                orders =  port.getP roviderOrd ersResulte d(queryBea n);
  938                return o rders.toAr ray(new Or der[orders .size()]);
  939           }  catch (Exc eption e)  {
  940                logError (e);
  941                throw ne w JMeadows Exception( e);
  942           }
  943       }
  944  
  945       public  LabResult [] getProv iderLabAbn ormalResul ts(QueryBe an queryBe an) throws  JMeadowsE xception {
  946           tr y {
  947                List<Lab Result> la bResults =  null;
  948                VistaDat a port = g etVistaDat aPort();
  949                labResul ts = port. getProvide rLabAbnorm alResults( queryBean) ;
  950                return l abResults. toArray(ne w LabResul t[labResul ts.size()] );
  951           }  catch (Exc eption e)  {
  952                logError (e);
  953                throw ne w JMeadows Exception( e);
  954           }
  955       }
  956  
  957       public  Insurance Bean[] get PatientIns urances(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  958           In suranceBea n[] insura nces = nul l;
  959  
  960           tr y {
  961                VistaDat a port = g etVistaDat aPort();
  962                List<Ins uranceBean > ins = po rt.getPati entInsuran ce(queryBe an);
  963                insuranc es = ins.t oArray(new  Insurance Bean[ins.s ize()]);
  964           }  catch (Exc eption e)  {
  965                logError (e);
  966                throw ne w JMeadows Exception( e);
  967           }
  968  
  969           re turn insur ances;
  970       }
  971  
  972       public  Procedure [] getPati entProcedu res(QueryB ean queryB ean) throw s JMeadows Exception  {
  973           Pr ocedure[]  procedures  = null;
  974  
  975           tr y {
  976                VistaDat a port = g etVistaDat aPort();
  977                List<Pro cedure> pr oc = port. getPatient Procedures (queryBean );
  978                procedur es = proc. toArray(ne w Procedur e[proc.siz e()]);
  979           }  catch (Exc eption e)  {
  980                logError (e);
  981                throw ne w JMeadows Exception( e);
  982           }
  983  
  984           re turn proce dures;
  985       }
  986  
  987       public  String ge tPatientIc nFromIen(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  988           St ring icn =  "";
  989  
  990           tr y {
  991                VistaDat a port = g etVistaDat aPort();
  992                icn = po rt.getPati entIcnFrom Ien(queryB ean);
  993           }  catch (Exc eption e)  {
  994                throw ne w JMeadows Exception( e);
  995           }
  996  
  997           re turn icn;
  998       }
  999  
  1000       public  StudyQuer y[] getVix StudyQuery FromSite(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  1001           St udyQuery[]  studyQuer ies = null ;
  1002  
  1003           tr y {
  1004                VistaDat a port = g etVistaDat aPort();
  1005                StudyQue ry studyQu ery = port .getVixStu dyQueryFro mSite(quer yBean);
  1006  
  1007                List<Stu dyQuery> l ist = new  ArrayList< StudyQuery >();
  1008                list.add (studyQuer y);
  1009  
  1010                studyQue ries = lis t.toArray( new StudyQ uery[list. size()]);
  1011           }
  1012           ca tch (Excep tion e) {
  1013                logError (e);
  1014                throw ne w JMeadows Exception( e);
  1015           }
  1016  
  1017           re turn study Queries;
  1018       }
  1019  
  1020       public  StudyQuer y getVixSt udyQueryWi thDetails( QueryBean  queryBean)  throws JM eadowsExce ption {
  1021           St udyQuery s tudyQuery;
  1022  
  1023           tr y {
  1024                VistaDat a port = g etVistaDat aPort();
  1025                studyQue ry = port. getVixStud yQueryWith Details(qu eryBean);
  1026           }
  1027           ca tch (Excep tion e) {
  1028                logError (e);
  1029                throw ne w JMeadows Exception( e);
  1030           }
  1031  
  1032           re turn study Query;
  1033       }
  1034  
  1035       public  StudyQuer y getVixSt udyQueryWi thoutDetai ls(QueryBe an queryBe an) throws  JMeadowsE xception
  1036       {
  1037           St udyQuery s tudyQuery;
  1038  
  1039           tr y {
  1040                VistaDat a port = g etVistaDat aPort();
  1041                studyQue ry = port. getVixStud yQueryWith outDetails (queryBean );
  1042           }
  1043           ca tch (Excep tion e) {
  1044                logError (e);
  1045                throw ne w JMeadows Exception( e);
  1046           }
  1047  
  1048           re turn study Query;
  1049       }
  1050  
  1051       public  StudyDeta il getVixS tudyDetail (QueryBean  queryBean ) throws J MeadowsExc eption
  1052       {
  1053           St udyDetail  studyDetai l;
  1054  
  1055           tr y {
  1056                VistaDat a port = g etVistaDat aPort();
  1057                studyDet ail = port .getVixStu dyDetail(q ueryBean);
  1058           }
  1059           ca tch (Excep tion e) {
  1060                logError (e);
  1061                throw ne w JMeadows Exception( e);
  1062           }
  1063  
  1064           re turn study Detail;
  1065       }
  1066  
  1067       public  String ge tVixStudyV iewerUrl(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  1068           St ring viewe rUrl;
  1069  
  1070           tr y {
  1071                VistaDat a port = g etVistaDat aPort();
  1072                viewerUr l = port.g etVixStudy ViewerUrl( queryBean) ;
  1073           }
  1074           ca tch (Excep tion e) {
  1075                logError (e);
  1076                throw ne w JMeadows Exception( e);
  1077           }
  1078  
  1079           re turn viewe rUrl;
  1080       }
  1081  
  1082       public  byte[] ge tVixThumbn ail(QueryB ean queryB ean) throw s JMeadows Exception  {
  1083           tr y {
  1084                VistaDat a port = g etVistaDat aPort();
  1085                return p ort.getVix Thumbnail( queryBean) ;
  1086           }  catch (Exc eption e)  {
  1087                logError (e);
  1088                throw ne w JMeadows Exception( e);
  1089           }
  1090       }
  1091  
  1092       public  ViStudy g etViStudyB yCprsId(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  1093           tr y {
  1094                VistaDat a port = g etVistaDat aPort();
  1095                return p ort.getViS tudyByCprs Id(queryBe an);
  1096           }  catch (Exc eption e)  {
  1097                logError (e);
  1098                throw ne w JMeadows Exception( e);
  1099           }
  1100       }
  1101  
  1102       public  ViImageRe sponse get ViImage(Qu eryBean qu eryBean, S tring imag eUrn, Stri ng imageQu ality) thr ows JMeado wsExceptio n {
  1103           tr y {
  1104                VistaDat a port = g etVistaDat aPort();
  1105                return p ort.getViI mage(query Bean, imag eUrn, imag eQuality);
  1106           }  catch (Exc eption e)  {
  1107                logError (e);
  1108                throw ne w JMeadows Exception( e);
  1109           }
  1110       }
  1111  
  1112       public  HealthSum maryTypeLi st[] getPa tientHealt hSummaryTy pesList(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  1113           Li st<HealthS ummaryType List> list List = nul l;
  1114  
  1115           tr y {
  1116                VistaDat a port = g etVistaDat aPort();
  1117                listList  = port.ge tPatientHe althSummar yTypes(que ryBean);
  1118  
  1119           }  catch (Exc eption e)  {
  1120                logError (e);
  1121                throw ne w JMeadows Exception( e);
  1122           }
  1123  
  1124           re turn listL ist.toArra y(new Heal thSummaryT ypeList[li stList.siz e()]);
  1125       }
  1126  
  1127       public  FreeTextR eport getP atientHeal thSummary( QueryBean  queryBean)  throws JM eadowsExce ption {
  1128           Fr eeTextRepo rt returnV al = null;
  1129  
  1130           tr y {
  1131                VistaDat a port = g etVistaDat aPort();
  1132                returnVa l = port.g etPatientH ealthSumma ry(queryBe an);
  1133           }  catch (Exc eption e)  {
  1134                logError (e);
  1135                throw ne w JMeadows Exception( e);
  1136           }
  1137  
  1138  
  1139           re turn retur nVal;
  1140  
  1141       }
  1142  
  1143       public  FreeTextR eport[] ge tPatientHe althSummar ies(QueryB ean queryB ean) throw s JMeadows Exception  {
  1144           Li st<FreeTex tReport> l istList =  null;
  1145  
  1146           tr y {
  1147                VistaDat a port = g etVistaDat aPort();
  1148                listList  = port.ge tPatientHe althSummar ies(queryB ean);
  1149  
  1150           }  catch (Exc eption e)  {
  1151                logError (e);
  1152                throw ne w JMeadows Exception( e);
  1153           }
  1154  
  1155           re turn listL ist.toArra y(new Free TextReport [listList. size()]);
  1156       }
  1157  
  1158       public  List<Pce>  getPcesFo rNote(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  1159           Li st<Pce> pc es = null;
  1160  
  1161           tr y {
  1162                VistaDat a port = g etVistaDat aPort();
  1163                pces = p ort.getPce sForNote(q ueryBean);
  1164           }
  1165           ca tch (Excep tion e) {
  1166                logError (e);
  1167                throw ne w JMeadows Exception( e);
  1168           }
  1169  
  1170           re turn pces;
  1171       }
  1172  
  1173       privat e void log Error(Exce ption e){
  1174           LO GGER.error ("VistaDat aService E RROR: " +  e.getMessa ge(), e);
  1175       }
  1176   }