22470. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 4/2/2019 9:49:00 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.

22470.1 Files compared

# Location File Last Modified
1 JLV_JLV 2_7_2_0_0.zip\JLV_Src\jMeadows\src\main\java\gov\va\med\jmeadows\dataservicehandler VistaDataServiceHandler.java Wed Mar 20 21:43:46 2019 UTC
2 JLV_JLV 2_7_2_0_0.zip\JLV_Src\jMeadows\src\main\java\gov\va\med\jmeadows\dataservicehandler VistaDataServiceHandler.java Tue Apr 2 13:30:30 2019 UTC

22470.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 2384
Changed 2 4
Inserted 0 0
Removed 0 0

22470.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

22470.4 Active regular expressions

No regular expressions were active.

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