44482. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 8/1/2019 1:42: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.

44482.1 Files compared

# Location File Last Modified
1 JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\jMeadows\src\main\java\gov\va\med\jmeadows\dataservicehandler VistaDataServiceHandler.java Mon Jul 8 19:18:40 2019 UTC
2 JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\jMeadows\src\main\java\gov\va\med\jmeadows\dataservicehandler VistaDataServiceHandler.java Wed Jul 31 18:41:36 2019 UTC

44482.2 Comparison summary

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

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

44482.4 Active regular expressions

No regular expressions were active.

44482.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 (VDS Exception_ Exception  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  JMedResul tCollectio n getPatie ntBloodBan kReports(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  286           JM edResultCo llection r etVal = nu ll;
  287  
  288           tr y {
  289                VistaDat a port = g etVistaDat aPort();
  290                retVal =  new JMedR esultColle ction(port .getPatien tBloodBank Reports(qu eryBean));
  291           }  catch (Exc eption e)  {
  292                logError (e);
  293                throw ne w JMeadows Exception( e);
  294           }
  295  
  296           re turn retVa l;
  297       }
  298  
  299       public  FreeTextR eport getO rderDetail (QueryBean  queryBean ) throws J MeadowsExc eption
  300       {
  301           Fr eeTextRepo rt returnV al = null;
  302  
  303           tr y {
  304                VistaDat a port = g etVistaDat aPort();
  305                returnVa l = port.g etOrderDet ail(queryB ean);
  306           }  catch (Exc eption e)  {
  307                logError (e);
  308                throw ne w JMeadows Exception( e);
  309           }
  310  
  311           re turn retur nVal;
  312       }
  313  
  314       public  JMedResul tCollectio n getPatie ntAdmissio ns(QueryBe an queryBe an) throws  JMeadowsE xception {
  315           JM edResultCo llection r etVal = nu ll;
  316  
  317           tr y {
  318                VistaDat a port = g etVistaDat aPort();
  319                retVal =  new JMedR esultColle ction(port .getPatien tAdmission s(queryBea n));
  320           }  catch (Exc eption e)  {
  321                logError (e);
  322                throw ne w JMeadows Exception( e);
  323           }
  324  
  325           re turn retVa l;
  326       }
  327  
  328       /**
  329        * Ret rieves lis t of patie nt allergi es.
  330        * @pa ram queryB ean Query  parameters .
  331        *                    Requir ed params:  User, Pat ient
  332        * @re turn A lis t of patie nt allergi es.
  333        * @th rows JMead owsExcepti on if ther e was an e rror..
  334        */
  335       public  JMedResul tCollectio n getPatie ntAllergie s(QueryBea n queryBea n) throws  JMeadowsEx ception {
  336           JM edResultCo llection r etVal = nu ll;
  337  
  338           tr y {
  339                VistaDat a port = g etVistaDat aPort();
  340                retVal =  new JMedR esultColle ction(port .getPatien tAllergies (queryBean ));
  341           }  catch (Exc eption e)  {
  342                logError (e);
  343                throw ne w JMeadows Exception( e);
  344           }
  345  
  346           re turn retVa l;
  347       }
  348  
  349       /**
  350        * Ret rieves det ails of an  allergy.
  351        * @pa ram queryB ean Query  parameters .
  352        *                    Requir ed params:  User, Pat ient, item Id, record Site
  353        * @re turn Aller gyDetail c ontaining  allergy re port text.
  354        * @th rows JMead owsExcepti on if ther e was an e rror..
  355        */
  356       public  AllergyDe tail getAl lergyDetai l(QueryBea n queryBea n) throws  JMeadowsEx ception {
  357           Al lergyDetai l allergyD etail = nu ll;
  358  
  359           tr y {
  360                VistaDat a port = g etVistaDat aPort();
  361                allergyD etail = po rt.getAlle rgyDetail( queryBean) ;
  362           }  catch (Exc eption e)  {
  363                logError (e);
  364                throw ne w JMeadows Exception( e);
  365           }
  366  
  367           re turn aller gyDetail;
  368       }
  369  
  370       public  JMedResul tCollectio n getPatie ntAppointm ents(Query Bean query Bean) thro ws JMeadow sException  {
  371           JM edResultCo llection r esultColle ction = nu ll;
  372  
  373           tr y {
  374                VistaDat a port = g etVistaDat aPort();
  375                resultCo llection =  new JMedR esultColle ction(port .getPatien tAppointme nts(queryB ean));
  376   //             appoin tments = a pts.toArra y(new Pati entAppoint ments[apts .size()]);
  377           }  catch (Exc eption e)  {
  378                logError (e);
  379                throw ne w JMeadows Exception( e);
  380           }
  381  
  382           re turn resul tCollectio n;
  383       }
  384  
  385       public  JMedResul tCollectio n getPatie ntEncounte rs(QueryBe an queryBe an) throws  JMeadowsE xception {
  386           JM edResultCo llection r etVal = nu ll;
  387  
  388           tr y {
  389                VistaDat a port = g etVistaDat aPort();
  390               retVal  =  new JMedR esultColle ction(port .getPatien tEncounter s(queryBea n));
  391   //             encoun ters = enc .toArray(n ew Encount er[enc.siz e()]);
  392           }  catch (Exc eption e)  {
  393                logError (e);
  394                throw ne w JMeadows Exception( e);
  395           }
  396  
  397           re turn retVa l;
  398       }
  399  
  400       public  FreeTextR eport getE ncountersR eport(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  401           Fr eeTextRepo rt returnV al = null;
  402  
  403           tr y {
  404                VistaDat a port = g etVistaDat aPort();
  405                returnVa l = port.g etEncounte rsReport(q ueryBean);
  406           }  catch (Exc eption e)  {
  407                throw ne w JMeadows Exception( e);
  408           }
  409  
  410           re turn retur nVal;
  411       }
  412  
  413       public  JMedResul tCollectio n getPatie ntClinical Reminders( QueryBean  queryBean)  throws JM eadowsExce ption {
  414           JM edResultCo llection r esultColle ction = nu ll;
  415  
  416           tr y {
  417                VistaDat a port = g etVistaDat aPort();
  418                resultCo llection =  new JMedR esultColle ction(port .getPatien tClinicalR eminders(q ueryBean)) ;
  419           }  catch (Exc eption e)  {
  420                throw ne w JMeadows Exception( e);
  421           }
  422  
  423           re turn resul tCollectio n;
  424       }
  425  
  426       public  JMedResul tCollectio n getPatie ntClinical RemindersU seHS(Query Bean query Bean) thro ws JMeadow sException  {
  427           JM edResultCo llection r esultColle ction = nu ll;
  428  
  429           tr y {
  430                VistaDat a port = g etVistaDat aPort();
  431                resultCo llection =  new JMedR esultColle ction(port .getPatien tClinicalR emindersUs eHS(queryB ean));
  432           }  catch (Exc eption e)  {
  433                throw ne w JMeadows Exception( e);
  434           }
  435  
  436           re turn resul tCollectio n;
  437       }
  438  
  439   //    publ ic String  getPatient CodeGreen( QueryBean  queryBean)  throws JM eadowsExce ption {
  440   //         String ret urnVal = n ull;
  441   //
  442   //         try {
  443   //             VistaD ata port =  getVistaD ataPort();
  444   //             return Val = port .getPatien tCodeGreen (queryBean );
  445   //         } catch (E xception e ) {
  446   //             throw  new JMeado wsExceptio n(e);
  447   //         }
  448   //
  449   //         return ret urnVal;
  450   //    }
  451  
  452       public  JMedResul tCollectio n getPatie ntConsultR equests(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  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 tConsultRe quests(que ryBean));
  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       public  JMedResul tCollectio n getPatie ntCurrentV itals(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  467           JM edResultCo llection r etVal = nu ll;
  468  
  469           tr y {
  470                VistaDat a port = g etVistaDat aPort();
  471                retVal =  new JMedR esultColle ction(port .getPatien tCurrentVi tals(query Bean));
  472           }  catch (Exc eption e)  {
  473                logError (e);
  474                throw ne w JMeadows Exception( e);
  475           }
  476  
  477           re turn retVa l;
  478  
  479       }
  480  
  481       public  JMedResul tCollectio n getPatie ntDemograp hics(Query Bean query Bean) thro ws JMeadow sException  {
  482           JM edResultCo llection r eturnVal =  null;
  483           tr y {
  484                VistaDat a port = g etVistaDat aPort();
  485   //             List<P atientDemo graphics>  demo = por t.getPatie ntDemograp hics(query Bean).getD emographic s();
  486                returnVa l = new JM edResultCo llection(p ort.getPat ientDemogr aphics(que ryBean));
  487           }  catch (Exc eption e)  {
  488                throw ne w JMeadows Exception( e);
  489           }
  490  
  491           re turn retur nVal;
  492       }
  493  
  494       public  JMedResul tCollectio n getPatie ntDischarg eSummaries (QueryBean  queryBean ) throws J MeadowsExc eption {
  495           JM edResultCo llection r etVal = nu ll;
  496  
  497           tr y {
  498                VistaDat a port = g etVistaDat aPort();
  499                retVal =  new JMedR esultColle ction(port .getPatien tDischarge Summaries( queryBean) );
  500   //             notes  = sum.toAr ray(new Pr ogressNote [sum.size( )]);
  501           }  catch (Exc eption e)  {
  502                throw ne w JMeadows Exception( e);
  503           }
  504  
  505           re turn retVa l;
  506       }
  507  
  508       public  boolean i sSensitive Patient(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  509           tr y {
  510                VistaDat a port = g etVistaDat aPort();
  511                List<Ale rt> alerts  = port.ge tSensitive PatientAle rts(queryB ean);
  512                int oldA lertLevel  = -2;
  513                int newA lertLevel;
  514  
  515                for (Ale rt alert:  alerts) {
  516                    newA lertLevel  = Integer. parseInt(a lert.getAl ertId());
  517                    if ( newAlertLe vel > oldA lertLevel)  {
  518                         oldAlertLe vel = newA lertLevel;
  519                    }
  520                }
  521  
  522                if (oldA lertLevel  == -2) {
  523                    thro w new JMea dowsExcept ion("Unabl e to deter mine if pa tient has  sensitive  records.") ;
  524                }
  525  
  526                if (oldA lertLevel  > 0) {
  527                    retu rn true;
  528                } else {
  529                    retu rn false;
  530                }
  531  
  532           }  catch (Exc eption e)  {
  533                logError (e);
  534                throw ne w JMeadows Exception( e);
  535           }
  536       }
  537  
  538       public  List<Aler t> getSens itivePatie ntAlerts(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  539           tr y {
  540                VistaDat a port = g etVistaDat aPort();
  541                return p ort.getSen sitivePati entAlerts( queryBean) ;
  542           }  catch (Exc eption e)  {
  543                logError (e);
  544                throw ne w JMeadows Exception( e);
  545           }
  546       }
  547  
  548       public  PatientDe mographics Detail[] g etPatientD emographic sDetail(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  549           Pa tientDemog raphicsDet ail[] retu rnVal = nu ll;
  550  
  551           tr y {
  552                VistaDat a port = g etVistaDat aPort();
  553                List<Pat ientDemogr aphicsDeta il> demo =  port.getP atientDemo graphicsDe tail(query Bean);
  554                returnVa l = demo.t oArray(new  PatientDe mographics Detail[dem o.size()]) ;
  555           }  catch (Exc eption e)  {
  556                logError (e);
  557                throw ne w JMeadows Exception( e);
  558           }
  559  
  560           re turn retur nVal;
  561       }
  562  
  563       public  JMedResul tCollectio n getPatie ntImmuniza tions(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  564           JM edResultCo llection r etVal = nu ll;
  565           tr y {
  566                VistaDat a port = g etVistaDat aPort();
  567                retVal =  new JMedR esultColle ction(port .getPatien tImmunizat ions(query Bean));
  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  JMedResul tCollectio n getPatie ntLabs(Que ryBean que ryBean) th rows JMead owsExcepti on {
  577           JM edResultCo llection r etVal = nu ll;
  578           tr y {
  579                VistaDat a port = g etVistaDat aPort();
  580                retVal =  new JMedR esultColle ction(port .getPatien tLabs(quer yBean));
  581   //             orders  = ord.toA rray(new L abOrder[or d.size()]) ;
  582           }  catch (Exc eption e)  {
  583                logError (e);
  584                throw ne w JMeadows Exception( e);
  585           }
  586  
  587           re turn retVa l;
  588       }
  589  
  590       public  LabResult [] getPati entLabTest Results(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  591           La bResult[]  results =  null;
  592           tr y {
  593                VistaDat a port = g etVistaDat aPort();
  594                List<Lab Result> re s = port.g etPatientL abTestResu lts(queryB ean);
  595                results  = res.toAr ray(new La bResult[re s.size()]) ;
  596           }  catch (Exc eption e)  {
  597                logError (e);
  598                throw ne w JMeadows Exception( e);
  599           }
  600  
  601           re turn resul ts;
  602       }
  603  
  604       public  JMedResul tCollectio n getPatie ntMedicati ons(QueryB ean queryB ean) throw s JMeadows Exception  {
  605           JM edResultCo llection r etVal = nu ll;
  606           tr y {
  607                VistaDat a port = g etVistaDat aPort();
  608                retVal =  new JMedR esultColle ction(port .getPatien tMedicatio ns(queryBe an));
  609           }  catch (Exc eption e)  {
  610                logError (e);
  611                throw ne w JMeadows Exception( e);
  612           }
  613  
  614           re turn retVa l;
  615       }
  616  
  617   //    publ ic Medicat ion[] getP atientMedi cationsNVA (QueryBean  queryBean ) throws J MeadowsExc eption {
  618   //         Medication [] medicat ion = null ;
  619   //         try {
  620   //             VistaD ata port =  getVistaD ataPort();
  621   //             medica tion = por t.getPatie ntMedicati onsNVA(que ryBean).to Array(new  Medication [0]);
  622   //
  623   //         } catch (E xception e ) {
  624   //             throw  new JMeado wsExceptio n(e);
  625   //         }
  626   //
  627   //         return med ication;
  628   //
  629   //    }
  630  
  631       public  JMedResul tCollectio n getPatie ntOrders(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  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 tOrders(qu eryBean));
  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 ntProblemL ist(QueryB ean queryB ean) throw s JMeadows Exception  {
  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 tProblemLi st(queryBe an));
  651           }  catch (Exc eption e)  {
  652                logError (e);
  653                throw ne w JMeadows Exception( e);
  654           }
  655  
  656           re turn retVa l;
  657       }
  658  
  659       public  JMedResul tCollectio n getPatie ntProcedur es(QueryBe an queryBe an) throws  JMeadowsE xception {
  660           JM edResultCo llection r etVal = nu ll;
  661  
  662           tr y {
  663                VistaDat a port = g etVistaDat aPort();
  664                retVal =  new JMedR esultColle ction(port .getPatien tProcedure s(queryBea n));
  665           }  catch (Exc eption e)  {
  666                throw ne w JMeadows Exception( e);
  667           }
  668  
  669           re turn retVa l;
  670       }
  671  
  672       public  JMedResul tCollectio n getPatie ntProgress Notes(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  673           JM edResultCo llection r etVal = nu ll;
  674  
  675           tr y {
  676                VistaDat a port = g etVistaDat aPort();
  677                retVal =  new JMedR esultColle ction(port .getPatien tProgressN otes(query Bean));
  678   //             notes  = note.toA rray(new P rogressNot e[note.siz e()]);
  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 ntAdvanceD irectives( QueryBean  queryBean)  throws JM eadowsExce ption {
  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 tAdvanceDi rectives(q ueryBean)) ;
  693           }  catch (Exc eption e)  {
  694                logError (e);
  695                throw ne w JMeadows Exception( e);
  696           }
  697  
  698           re turn retVa l;
  699       }
  700  
  701       public  JMedResul tCollectio n getPatie ntRads(Que ryBean que ryBean) th rows JMead owsExcepti on {
  702           JM edResultCo llection r etVal = nu ll;
  703  
  704           tr y {
  705                VistaDat a port = g etVistaDat aPort();
  706                retVal =  new JMedR esultColle ction(port .getPatien tRads(quer yBean));
  707           }  catch (Exc eption e)  {
  708                throw ne w JMeadows Exception( e);
  709           }
  710  
  711           re turn retVa l;
  712       }
  713  
  714       public  JMedResul tCollectio n getPatie ntSurgerie s(QueryBea n queryBea n) throws  JMeadowsEx ception {
  715           JM edResultCo llection r etValue =  null;
  716  
  717           tr y {
  718                VistaDat a port = g etVistaDat aPort();
  719                retValue  = new JMe dResultCol lection(po rt.getPati entSurgeri es(queryBe an));
  720           }  catch (Exc eption e)  {
  721                logError (e);
  722                throw ne w JMeadows Exception( e);
  723           }
  724  
  725           re turn retVa lue;
  726       }
  727  
  728       public  JMedResul tCollectio n getPatie ntVitals(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  729           JM edResultCo llection r etVal = nu ll;
  730  
  731           tr y {
  732                VistaDat a port = g etVistaDat aPort();
  733                retVal =  new JMedR esultColle ction(port .getPatien tVitals(qu eryBean));
  734           }  catch (Exc eption e)  {
  735                logError (e);
  736                throw ne w JMeadows Exception( e);
  737           }
  738  
  739           re turn retVa l;
  740       }
  741  
  742   //    publ ic Prescri ption getP rescriptio nFills(Que ryBean que ryBean) th rows JMead owsExcepti on {
  743   //         Prescripti on returnV al = null;
  744   //
  745   //         try {
  746   //             VistaD ata port =  getVistaD ataPort();
  747   //             return Val = port .getPrescr iptionFill s(queryBea n);
  748   //         } catch (E xception e ) {
  749   //             throw  new JMeado wsExceptio n(e);
  750   //         }
  751   //
  752   //         return ret urnVal;
  753   //
  754   //    }
  755  
  756       public  ProblemDe tail getPr oblemDetai l(QueryBea n queryBea n) throws  JMeadowsEx ception {
  757           Pr oblemDetai l returnVa l = null;
  758  
  759           tr y {
  760                VistaDat a port = g etVistaDat aPort();
  761                returnVa l = port.g etProblemD etail(quer yBean);
  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  FreeTextR eport getP rogressNot e(QueryBea n queryBea n) throws  JMeadowsEx ception {
  771           Fr eeTextRepo rt returnV al = null;
  772  
  773           tr y {
  774                VistaDat a port = g etVistaDat aPort();
  775                returnVa l = port.g etProgress Note(query Bean);
  776           }  catch (Exc eption e)  {
  777                logError (e);
  778                throw ne w JMeadows Exception( e);
  779           }
  780  
  781           re turn retur nVal;
  782       }
  783  
  784       public  User getP roviderPro file(Site  site, Stri ng userIen , String p roviderNPI ) throws J MeadowsExc eption {
  785           Us er returnV al = null;
  786           tr y {
  787                VistaDat a port = g etVistaDat aPort();
  788                returnVa l = port.g etProvider Profile(si te, userIe n, provide rNPI);
  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       public  Radiology Report get RadiologyR eport(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  798           Ra diologyRep ort return Val = null ;
  799  
  800           tr y {
  801                VistaDat a port = g etVistaDat aPort();
  802                returnVa l = port.g etRadiolog yReport(qu eryBean);
  803           }  catch (Exc eption e)  {
  804                logError (e);
  805                throw ne w JMeadows Exception( e);
  806           }
  807  
  808           re turn retur nVal;
  809  
  810       }
  811  
  812       public  FreeTextR eport getS urgeryDeta il(QueryBe an queryBe an) throws  JMeadowsE xception {
  813           Fr eeTextRepo rt returnV alue = nul l;
  814  
  815           tr y {
  816                VistaDat a port = g etVistaDat aPort();
  817                returnVa lue = port .getSurger yDetail(qu eryBean);
  818           }  catch (Exc eption e)  {
  819                logError (e);
  820                throw ne w JMeadows Exception( e);
  821           }
  822  
  823           re turn retur nValue;
  824       }
  825  
  826       public  List<Aler t> getUser Alerts(Que ryBean que ryBean) th rows JMead owsExcepti on {
  827  
  828           tr y {
  829                VistaDat a port = g etVistaDat aPort();
  830                return p ort.getUse rAlerts(qu eryBean);
  831           }  catch (Exc eption e)  {
  832                logError (e);
  833                throw ne w JMeadows Exception( e);
  834           }
  835       }
  836  
  837       public  Diagnosis [] getVisi tDiagnosis (QueryBean  queryBean ) throws J MeadowsExc eption {
  838           Di agnosis[]  returnVal  = null;
  839           tr y {
  840                VistaDat a port = g etVistaDat aPort();
  841                List<Dia gnosis> di ag = port. getVisitDi agnosis(qu eryBean);
  842                returnVa l = diag.t oArray(new  Diagnosis [diag.size ()]);
  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  FreeTextR eport getV isitNotes( QueryBean  queryBean)  throws JM eadowsExce ption {
  852           Fr eeTextRepo rt returnV al = null;
  853  
  854           tr y {
  855                VistaDat a port = g etVistaDat aPort();
  856                returnVa l = port.g etVisitNot es(queryBe an);
  857           }  catch (Exc eption e)  {
  858                logError (e);
  859                throw ne w JMeadows Exception( e);
  860           }
  861  
  862           re turn retur nVal;
  863       }
  864  
  865       public  Procedure [] getVisi tProcedure s(QueryBea n queryBea n) throws  JMeadowsEx ception {
  866           Pr ocedure[]  returnVal  = null;
  867  
  868           tr y {
  869                VistaDat a port = g etVistaDat aPort();
  870                List<Pro cedure> pr oc = port. getVisitPr ocedures(q ueryBean);
  871                returnVa l = proc.t oArray(new  Procedure [proc.size ()]);
  872           }  catch (Exc eption e)  {
  873                logError (e);
  874                throw ne w JMeadows Exception( e);
  875           }
  876  
  877  
  878           re turn retur nVal;
  879       }
  880  
  881  
  882       public  List<Pati ent> looku pPatient(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  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                return p ort.lookup Patient(qu eryBean);
  889           }  catch (Exc eption e)  {
  890                logError (e);
  891                throw ne w JMeadows Exception( e);
  892           }
  893       }
  894  
  895       public  boolean s electPatie nt(QueryBe an queryBe an) throws  JMeadowsE xception {
  896           bo olean retu rnVal = fa lse;
  897  
  898           tr y {
  899                VistaDat a port = g etVistaDat aPort();
  900                //return  a max of  100 patien ts
  901                queryBea n.setMax(1 00);
  902                returnVa l = port.s electPatie nt(queryBe an);
  903           }  catch (Exc eption e)  {
  904                logError (e);
  905                throw ne w JMeadows Exception( e);
  906           }
  907  
  908           re turn retur nVal;
  909  
  910       }
  911  
  912       public  ReferralB ean[] getD RReferrals (QueryBean  queryBean ) throws J MeadowsExc eption {
  913           Re ferralBean [] returnV al = null;
  914  
  915           tr y {
  916                VistaDat a port = g etVistaDat aPort();
  917                List<Ref erralBean>  ref = por t.getDRRef errals(que ryBean);
  918                returnVa l = ref.to Array(new  ReferralBe an[ref.siz e()]);
  919           }  catch (Exc eption e)  {
  920                logError (e);
  921                throw ne w JMeadows Exception( e);
  922           }
  923  
  924           re turn retur nVal;
  925       }
  926  
  927       public  PatientAd mission[]  getProvide rAdmission s(QueryBea n queryBea n) throws  JMeadowsEx ception {
  928           tr y {
  929                List<Pat ientAdmiss ion> admis sions = nu ll;
  930                VistaDat a port = g etVistaDat aPort();
  931                admissio ns = port. getProvide rAdmission s(queryBea n);
  932                return a dmissions. toArray(ne w PatientA dmission[a dmissions. size()]);
  933           }  catch (Exc eption e)  {
  934                logError (e);
  935                throw ne w JMeadows Exception( e);
  936           }
  937       }
  938  
  939       public  PatientAd mission[]  getWardAdm issions(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  940           tr y {
  941                List<Pat ientAdmiss ion> admis sions = nu ll;
  942                VistaDat a port = g etVistaDat aPort();
  943                admissio ns = port. getWardAdm issions(qu eryBean);
  944                return a dmissions. toArray(ne w PatientA dmission[a dmissions. size()]);
  945           }  catch (Exc eption e)  {
  946                throw ne w JMeadows Exception( e);
  947           }
  948       }
  949  
  950       public  PatientAp pointments [] getProv iderAppoin tments(Que ryBean que ryBean) th rows JMead owsExcepti on {
  951           tr y {
  952                List<Pat ientAppoin tments> ap pointments  = null;
  953                VistaDat a port = g etVistaDat aPort();
  954                appointm ents = por t.getProvi derAppoint ments(quer yBean);
  955                return a ppointment s.toArray( new Patien tAppointme nts[appoin tments.siz e()]);
  956           }  catch (Exc eption e)  {
  957                logError (e);
  958                throw ne w JMeadows Exception( e);
  959           }
  960       }
  961  
  962       public  ProgressN ote[] getP roviderUns ignedNotes (QueryBean  queryBean ) throws J MeadowsExc eption {
  963           tr y {
  964                List<Pro gressNote>  unsignedN otes = nul l;
  965                VistaDat a port = g etVistaDat aPort();
  966                unsigned Notes = po rt.getProv iderUnsign edNotes(qu eryBean);
  967                return u nsignedNot es.toArray (new Progr essNote[un signedNote s.size()]) ;
  968           }  catch (Exc eption e)  {
  969                throw ne w JMeadows Exception( e);
  970           }
  971       }
  972  
  973       public  Consult[]  getProvid erConsults Requested( QueryBean  queryBean)  throws JM eadowsExce ption {
  974           tr y {
  975                List<Con sult> cons ultsReques ted = null ;
  976                VistaDat a port = g etVistaDat aPort();
  977                consults Requested  = port.get ProviderCo nsultsRequ ested(quer yBean);
  978                return c onsultsReq uested.toA rray(new C onsult[con sultsReque sted.size( )]);
  979           }  catch (Exc eption e)  {
  980                logError (e);
  981                throw ne w JMeadows Exception( e);
  982           }
  983       }
  984  
  985       public  Consult[]  getProvid erConsults Received(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  986           tr y {
  987                List<Con sult> cons ultsReceiv ed = null;
  988                VistaDat a port = g etVistaDat aPort();
  989                consults Received =  port.getP roviderCon sultsRecei ved(queryB ean);
  990                return c onsultsRec eived.toAr ray(new Co nsult[cons ultsReceiv ed.size()] );
  991           }  catch (Exc eption e)  {
  992                logError (e);
  993                throw ne w JMeadows Exception( e);
  994           }
  995       }
  996  
  997       public  Order[] g etProvider OrdersPend ing(QueryB ean queryB ean) throw s JMeadows Exception  {
  998           tr y {
  999                List<Ord er> orders  = null;
  1000                VistaDat a port = g etVistaDat aPort();
  1001                orders =  port.getP roviderOrd ersPending (queryBean );
  1002                return o rders.toAr ray(new Or der[orders .size()]);
  1003           }  catch (Exc eption e)  {
  1004                logError (e);
  1005                throw ne w JMeadows Exception( e);
  1006           }
  1007       }
  1008  
  1009       public  Order[] g etProvider OrdersResu lted(Query Bean query Bean) thro ws JMeadow sException  {
  1010           tr y {
  1011                List<Ord er> orders  = null;
  1012                VistaDat a port = g etVistaDat aPort();
  1013                orders =  port.getP roviderOrd ersResulte d(queryBea n);
  1014                return o rders.toAr ray(new Or der[orders .size()]);
  1015           }  catch (Exc eption e)  {
  1016                logError (e);
  1017                throw ne w JMeadows Exception( e);
  1018           }
  1019       }
  1020  
  1021       public  LabResult [] getProv iderLabAbn ormalResul ts(QueryBe an queryBe an) throws  JMeadowsE xception {
  1022           tr y {
  1023                List<Lab Result> la bResults =  null;
  1024                VistaDat a port = g etVistaDat aPort();
  1025                labResul ts = port. getProvide rLabAbnorm alResults( queryBean) ;
  1026                return l abResults. toArray(ne w LabResul t[labResul ts.size()] );
  1027           }  catch (Exc eption e)  {
  1028                logError (e);
  1029                throw ne w JMeadows Exception( e);
  1030           }
  1031       }
  1032  
  1033       public  JMedResul tCollectio n getPatie ntInsuranc es(QueryBe an queryBe an) throws  JMeadowsE xception {
  1034           JM edResultCo llection r etVal = nu ll;
  1035  
  1036           tr y {
  1037                VistaDat a port = g etVistaDat aPort();
  1038                retVal =  new JMedR esultColle ction(port .getPatien tInsurance (queryBean ));
  1039           }  catch (Exc eption e)  {
  1040                logError (e);
  1041                throw ne w JMeadows Exception( e);
  1042           }
  1043  
  1044           re turn retVa l;
  1045       }
  1046  
  1047       public  StudyQuer y[] getVix StudyQuery FromSite(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  1048           St udyQuery[]  studyQuer ies = null ;
  1049  
  1050           tr y {
  1051                VistaDat a port = g etVistaDat aPort();
  1052                StudyQue ry studyQu ery = port .getVixStu dyQueryFro mSite(quer yBean);
  1053  
  1054                List<Stu dyQuery> l ist = new  ArrayList< StudyQuery >();
  1055                list.add (studyQuer y);
  1056  
  1057                studyQue ries = lis t.toArray( new StudyQ uery[list. size()]);
  1058           }
  1059           ca tch (Excep tion e) {
  1060                logError (e);
  1061                throw ne w JMeadows Exception( e);
  1062           }
  1063  
  1064           re turn study Queries;
  1065       }
  1066  
  1067       public  StudyQuer y getVixSt udyQueryFr omSitesWit houtDetail s(QueryBea n queryBea n) throws  JMeadowsEx ception {
  1068           St udyQuery s tudyQuery  = null;
  1069  
  1070           tr y {
  1071                VistaDat a port = g etVistaDat aPort();
  1072                studyQue ry = port. getVixStud yQueryFrom SitesWitho utDetails( queryBean) ;
  1073           }
  1074           ca tch (Excep tion e) {
  1075                logError (e);
  1076                throw ne w JMeadows Exception( e);
  1077           }
  1078  
  1079           re turn study Query;
  1080       }
  1081  
  1082       public  StudyQuer y getVixSt udyQueryWi thDetails( QueryBean  queryBean)  throws JM eadowsExce ption {
  1083           St udyQuery s tudyQuery;
  1084  
  1085           tr y {
  1086                VistaDat a port = g etVistaDat aPort();
  1087                studyQue ry = port. getVixStud yQueryWith Details(qu eryBean);
  1088           }
  1089           ca tch (Excep tion e) {
  1090                logError (e);
  1091                throw ne w JMeadows Exception( e);
  1092           }
  1093  
  1094           re turn study Query;
  1095       }
  1096  
  1097       public  StudyQuer y getVixSt udyQueryWi thoutDetai ls(QueryBe an queryBe an) throws  JMeadowsE xception
  1098       {
  1099           St udyQuery s tudyQuery;
  1100  
  1101           tr y {
  1102                VistaDat a port = g etVistaDat aPort();
  1103                studyQue ry = port. getVixStud yQueryWith outDetails (queryBean );
  1104           }
  1105           ca tch (Excep tion e) {
  1106                logError (e);
  1107                throw ne w JMeadows Exception( e);
  1108           }
  1109  
  1110           re turn study Query;
  1111       }
  1112  
  1113       public  StudyDeta il getVixS tudyDetail (QueryBean  queryBean ) throws J MeadowsExc eption
  1114       {
  1115           St udyDetail  studyDetai l;
  1116  
  1117           tr y {
  1118                VistaDat a port = g etVistaDat aPort();
  1119                studyDet ail = port .getVixStu dyDetail(q ueryBean);
  1120           }
  1121           ca tch (Excep tion e) {
  1122                logError (e);
  1123                throw ne w JMeadows Exception( e);
  1124           }
  1125  
  1126           re turn study Detail;
  1127       }
  1128  
  1129       public  String ge tVixStudyV iewerUrl(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  1130           St ring viewe rUrl;
  1131  
  1132           tr y {
  1133                VistaDat a port = g etVistaDat aPort();
  1134                viewerUr l = port.g etVixStudy ViewerUrl( queryBean) ;
  1135           }
  1136           ca tch (Excep tion e) {
  1137                logError (e);
  1138                throw ne w JMeadows Exception( e);
  1139           }
  1140  
  1141           re turn viewe rUrl;
  1142       }
  1143  
  1144       public  StudyQuer y getPatie ntCardiolo gyStudies( QueryBean  queryBean)  throws JM eadowsExce ption {
  1145           St udyQuery s tudyQuery  = null;
  1146  
  1147           tr y {
  1148                VistaDat a port = g etVistaDat aPort();
  1149                studyQue ry = port. getPatient Cardiology Studies(qu eryBean);
  1150           }
  1151           ca tch (Excep tion e) {
  1152                logError (e);
  1153                throw ne w JMeadows Exception( e);
  1154           }
  1155  
  1156           re turn study Query;
  1157       }
  1158  
  1159       public  JMedResul tCollectio n getPatie ntHealthSu mmaryTypes List(Query Bean query Bean) thro ws JMeadow sException  {
  1160           JM edResultCo llection r etVal = nu ll;
  1161  
  1162           tr y {
  1163                VistaDat a port = g etVistaDat aPort();
  1164                retVal =  new JMedR esultColle ction(port .getPatien tHealthSum maryTypes( queryBean) );
  1165  
  1166           }  catch (Exc eption e)  {
  1167                logError (e);
  1168                throw ne w JMeadows Exception( e);
  1169           }
  1170  
  1171           re turn retVa l;
  1172       }
  1173  
  1174       public  FreeTextR eport getP atientHeal thSummary( QueryBean  queryBean)  throws JM eadowsExce ption {
  1175           Fr eeTextRepo rt returnV al = null;
  1176  
  1177           tr y {
  1178                VistaDat a port = g etVistaDat aPort();
  1179                returnVa l = port.g etPatientH ealthSumma ry(queryBe an);
  1180           }  catch (Exc eption e)  {
  1181                logError (e);
  1182                throw ne w JMeadows Exception( e);
  1183           }
  1184  
  1185  
  1186           re turn retur nVal;
  1187  
  1188       }
  1189  
  1190       public  FreeTextR eport[] ge tPatientHe althSummar ies(QueryB ean queryB ean) throw s JMeadows Exception  {
  1191           Li st<FreeTex tReport> l istList =  null;
  1192  
  1193           tr y {
  1194                VistaDat a port = g etVistaDat aPort();
  1195                listList  = port.ge tPatientHe althSummar ies(queryB ean);
  1196  
  1197           }  catch (Exc eption e)  {
  1198                logError (e);
  1199                throw ne w JMeadows Exception( e);
  1200           }
  1201  
  1202           re turn listL ist.toArra y(new Free TextReport [listList. size()]);
  1203       }
  1204  
  1205       public  List<Pce>  getPcesFo rNote(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  1206           Li st<Pce> pc es = null;
  1207  
  1208           tr y {
  1209                VistaDat a port = g etVistaDat aPort();
  1210                pces = p ort.getPce sForNote(q ueryBean);
  1211           }
  1212           ca tch (Excep tion e) {
  1213                    logE rror(e);
  1214                    thro w new JMea dowsExcept ion(e);
  1215           }
  1216  
  1217           re turn pces;
  1218       }
  1219  
  1220       privat e void log Error(Exce ption e){
  1221           LO GGER.error ("VistaDat aService E RROR: " +  e.getMessa ge(), e);
  1222       }
  1223   }