29. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 8/31/2017 11:16:52 AM Central 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.

29.1 Files compared

# Location File Last Modified
1 JLV_2.6.zip\JLV_2.6\JLV_2.6\Joint Legacy Viewer\JLVQoS\src\main\java\gov\va\med\jmeadows\dataservicehandler VistaDataServiceHandler.java Thu Aug 31 12:13:58 2017 UTC
2 JLV_2.6.zip\JLV_2.6\JLV_2.6\Joint Legacy Viewer\JLVQoS\src\main\java\gov\va\med\jmeadows\dataservicehandler VistaDataServiceHandler.java Thu Aug 31 13:26:09 2017 UTC

29.2 Comparison summary

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

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

29.4 Active regular expressions

No regular expressions were active.

29.5 Comparison detail

  1   /**
  2    * Janus 4 .0 (c)
  3    * Copyrig ht (c) 201 1 Hawaii R esource Gr oup LLC. A ll Rights  Reserved.
  4    * Develop ed for the  Pacific T elehealth  & Technolo gy Hui and  the Pacif ic Joint I nformation  Technolog y Center
  5    * Contrib utors:
  6    *     Hon orable Sen ator Danie l K. Inouy e
  7    *     VA  Pacific Is lands Heal th Care Sy stem
  8    *     Tri pler Army  Medical Ce nter
  9    */
  10  
  11  
  12   package go v.va.med.j meadows.da taserviceh andler;
  13  
  14   import gov .va.med.jm eadows.com mon.JMeado wsExceptio n;
  15   import gov .va.med.vd s.webservi ce.*;
  16  
  17   import jav ax.xml.nam espace.QNa me;
  18   import jav ax.xml.ws. BindingPro vider;
  19   import jav a.util.Lis t;
  20  
  21  
  22   /**
  23    * @author  vhahonbru nos
  24    */
  25   public cla ss VistaDa taServiceH andler ext ends DataS erviceHand ler
  26   {
  27       privat e VistaDat aService m _VistaData Service;
  28  
  29       public  VistaData ServiceHan dler(Strin g url)
  30       {
  31           su per();
  32  
  33           se rviceURL =  url;
  34           se rviceName  = "VistaDa taService" ;
  35             serviceNam espace = " http://web service.vd s. URL         /";
  36           qS erviceName  = new QNa me(service Namespace,  serviceNa me);
  37  
  38           m_ VistaDataS ervice = n ew VistaDa taService( );
  39       }
  40  
  41       privat e VistaDat a getVista DataPort()
  42       {
  43  
  44           Vi staData po rt = m_Vis taDataServ ice.getVis taDataPort ();
  45  
  46           // set port e ndpoint ad dress
  47           Bi ndingProvi der bp = ( BindingPro vider) por t;
  48           bp .getReques tContext() .put(Bindi ngProvider .ENDPOINT_ ADDRESS_PR OPERTY, se rviceURL);
  49           bp .getReques tContext() .put("com. sun.xml.in ternal.ws. connect.ti meout", se rviceConne ctionTimeo utMS);
  50           bp .getReques tContext() .put("com. sun.xml.in ternal.ws. request.ti meout", se rviceReque stTimeoutM S);
  51           bp .getReques tContext() .put("com. sun.xml.ws .connect.t imeout", s erviceConn ectionTime outMS);
  52           bp .getReques tContext() .put("com. sun.xml.ws .request.t imeout", s erviceRequ estTimeout MS);
  53  
  54           re turn port;
  55       }
  56  
  57       public  User logi n(Site sit e, String  accessCode , String v erifyCode)  throws JM eadowsExce ption
  58       {
  59           Us er user =  null;
  60  
  61           tr y
  62           {
  63                VistaDat a port = g etVistaDat aPort();
  64                user = p ort.login( site, acce ssCode, ve rifyCode);
  65           }
  66           ca tch (Excep tion e)
  67           {
  68                throw ne w JMeadows Exception( e);
  69           }
  70  
  71           re turn user;
  72       }
  73  
  74       public  Admission Detail get AdmissionD etails(Que ryBean que ryBean) th rows JMead owsExcepti on
  75       {
  76           Ad missionDet ail return Val = null ;
  77  
  78           tr y
  79           {
  80                VistaDat a port = g etVistaDat aPort();
  81                returnVa l = port.g etAdmissio nDetails(q ueryBean);
  82  
  83           }
  84           ca tch (Excep tion e)
  85           {
  86                throw ne w JMeadows Exception( e);
  87           }
  88  
  89  
  90           re turn retur nVal;
  91       }
  92  
  93       public  Diagnosis [] getAdmi ssionDiagn osis(Query Bean query Bean) thro ws JMeadow sException
  94       {
  95           Di agnosis[]  diagnosis  = null;
  96  
  97           tr y
  98           {
  99  
  100                VistaDat a port = g etVistaDat aPort();
  101                diagnosi s = port.g etAdmissio nDiagnosis (queryBean ).toArray( new Diagno sis[0]);
  102           }
  103           ca tch (Excep tion e)
  104           {
  105                throw ne w JMeadows Exception( e);
  106           }
  107           re turn diagn osis;
  108  
  109       }
  110  
  111       public  Procedure [] getAdmi ssionProce dures(Quer yBean quer yBean) thr ows JMeado wsExceptio n
  112       {
  113           Pr ocedure[]  admissionP rocedures  = null;
  114  
  115           tr y
  116           {
  117                VistaDat a port = g etVistaDat aPort();
  118                admissio nProcedure s = port.g etAdmissio nProcedure s(queryBea n).toArray (new Proce dure[0]);
  119           }
  120           ca tch (Excep tion e)
  121           {
  122                throw ne w JMeadows Exception( e);
  123           }
  124  
  125           re turn admis sionProced ures;
  126       }
  127  
  128       public  FreeTextR eport getC linicalRem inderDetai l(QueryBea n queryBea n) throws  JMeadowsEx ception
  129       {
  130           Fr eeTextRepo rt returnV al = null;
  131  
  132           tr y
  133           {
  134                VistaDat a port = g etVistaDat aPort();
  135                returnVa l = port.g etClinical ReminderDe tail(query Bean);
  136           }
  137           ca tch (Excep tion e)
  138           {
  139                throw ne w JMeadows Exception( e);
  140           }
  141  
  142  
  143           re turn retur nVal;
  144  
  145       }
  146  
  147       public  List<Free TextReport > getConsu ltReport(Q ueryBean q ueryBean)  throws JMe adowsExcep tion
  148       {
  149           tr y
  150           {
  151                VistaDat a port = g etVistaDat aPort();
  152                return p ort.getCon sultReport (queryBean );
  153           }
  154           ca tch (Excep tion e)
  155           {
  156                throw ne w JMeadows Exception( e);
  157           }
  158       }
  159  
  160       public  FreeTextR eport getM edicationD etail(Quer yBean quer yBean) thr ows JMeado wsExceptio n
  161       {
  162           Fr eeTextRepo rt returnV al = null;
  163  
  164           tr y
  165           {
  166                VistaDat a port = g etVistaDat aPort();
  167                returnVa l = port.g etMedicati onDetail(q ueryBean);
  168           }
  169           ca tch (Excep tion e)
  170           {
  171                throw ne w JMeadows Exception( e);
  172           }
  173  
  174           re turn retur nVal;
  175       }
  176  
  177       public  LabResult [] getLabO rderResult (QueryBean  queryBean ) throws J MeadowsExc eption
  178       {
  179           La bResult[]  orderResul t = null;
  180  
  181           tr y
  182           {
  183                VistaDat a port = g etVistaDat aPort();
  184                orderRes ult = port .getLabOrd erResult(q ueryBean). toArray(ne w LabResul t[0]);
  185           }
  186           ca tch (Excep tion e)
  187           {
  188                throw ne w JMeadows Exception( e);
  189           }
  190  
  191           re turn order Result;
  192       }
  193  
  194       public  FreeTextR eport getO rderDetail (QueryBean  queryBean ) throws J MeadowsExc eption
  195       {
  196           Fr eeTextRepo rt returnV al = null;
  197  
  198           tr y
  199           {
  200                VistaDat a port = g etVistaDat aPort();
  201                returnVa l = port.g etOrderDet ail(queryB ean);
  202           }
  203           ca tch (Excep tion e)
  204           {
  205                throw ne w JMeadows Exception( e);
  206           }
  207  
  208           re turn retur nVal;
  209       }
  210  
  211       public  PatientAd mission[]  getPatient Admissions (QueryBean  queryBean ) throws J MeadowsExc eption
  212       {
  213           Pa tientAdmis sion[] pat Admission  = null;
  214  
  215           tr y
  216           {
  217                VistaDat a port = g etVistaDat aPort();
  218                patAdmis sion = por t.getPatie ntAdmissio ns(queryBe an).toArra y(new Pati entAdmissi on[0]);
  219           }
  220           ca tch (Excep tion e)
  221           {
  222                throw ne w JMeadows Exception( e);
  223           }
  224  
  225           re turn patAd mission;
  226       }
  227  
  228       /**
  229        * Ret rieves lis t of patie nt allergi es.
  230        *
  231        * @pa ram queryB ean Query  parameters .
  232        *                    Requir ed params:  User, Pat ient
  233        * @re turn A lis t of patie nt allergi es.
  234        * @th rows JMead owsExcepti on if ther e was an e rror..
  235        */
  236       public  Allergy[]  getPatien tAllergies (QueryBean  queryBean ) throws J MeadowsExc eption
  237       {
  238           Al lergy[] al lergy = nu ll;
  239  
  240           tr y
  241           {
  242                VistaDat a port = g etVistaDat aPort();
  243                allergy  = port.get PatientAll ergies(que ryBean).to Array(new  Allergy[0] );
  244           }
  245           ca tch (Excep tion e)
  246           {
  247                throw ne w JMeadows Exception( e);
  248           }
  249  
  250           re turn aller gy;
  251       }
  252  
  253       /**
  254        * Ret rieves det ails of an  allergy.
  255        *
  256        * @pa ram queryB ean Query  parameters .
  257        *                    Requir ed params:  User, Pat ient, item Id, record Site
  258        * @re turn Aller gyDetail c ontaining  allergy re port text.
  259        * @th rows JMead owsExcepti on if ther e was an e rror..
  260        */
  261       public  AllergyDe tail getAl lergyDetai l(QueryBea n queryBea n) throws  JMeadowsEx ception
  262       {
  263           Al lergyDetai l allergyD etail = nu ll;
  264  
  265           tr y
  266           {
  267                VistaDat a port = g etVistaDat aPort();
  268                allergyD etail = po rt.getAlle rgyDetail( queryBean) ;
  269           }
  270           ca tch (Excep tion e)
  271           {
  272                throw ne w JMeadows Exception( e);
  273           }
  274  
  275           re turn aller gyDetail;
  276       }
  277  
  278       public  PatientAp pointments [] getPati entAppoint ments(Quer yBean quer yBean) thr ows JMeado wsExceptio n
  279       {
  280           Pa tientAppoi ntments[]  appointmen ts = null;
  281  
  282           tr y
  283           {
  284                VistaDat a port = g etVistaDat aPort();
  285                appointm ents = por t.getPatie ntAppointm ents(query Bean).toAr ray(new Pa tientAppoi ntments[0] );
  286           }
  287           ca tch (Excep tion e)
  288           {
  289                throw ne w JMeadows Exception( e);
  290           }
  291  
  292           re turn appoi ntments;
  293       }
  294  
  295       public  FreeTextR eport getE ncountersR eport(Quer yBean quer yBean) thr ows JMeado wsExceptio n
  296       {
  297           Fr eeTextRepo rt returnV al = null;
  298  
  299           tr y
  300           {
  301                VistaDat a port = g etVistaDat aPort();
  302                returnVa l = port.g etEncounte rsReport(q ueryBean);
  303           }
  304           ca tch (Excep tion e)
  305           {
  306                throw ne w JMeadows Exception( e);
  307           }
  308  
  309           re turn retur nVal;
  310       }
  311  
  312       public  ClinicalR eminder[]  getPatient ClinicalRe minders(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion
  313       {
  314           Cl inicalRemi nder[] rem inders = n ull;
  315  
  316           tr y
  317           {
  318                VistaDat a port = g etVistaDat aPort();
  319                reminder s = port.g etPatientC linicalRem inders(que ryBean).to Array(new  ClinicalRe minder[0]) ;
  320           }
  321           ca tch (Excep tion e)
  322           {
  323                throw ne w JMeadows Exception( e);
  324           }
  325  
  326           re turn remin ders;
  327       }
  328  
  329   //    publ ic Service Type getPa tientCodeG reen(Query Bean query Bean) thro ws JMeadow sException  {
  330   //         ServiceTyp e returnVa l = null;
  331   //
  332   //         try {
  333   //             VistaD ata port =  getVistaD ataPort();
  334   //             return Val = port .getPatien tCodeGreen (queryBean );
  335   //         } catch (E xception e ) {
  336   //             throw  new JMeado wsExceptio n(e);
  337   //         }
  338   //
  339   //         return ret urnVal;
  340   //    }
  341  
  342       public  Consult[]  getPatien tConsultRe quests(Que ryBean que ryBean) th rows JMead owsExcepti on
  343       {
  344           Co nsult[] co nsults = n ull;
  345  
  346           tr y
  347           {
  348                VistaDat a port = g etVistaDat aPort();
  349                consults  = port.ge tPatientCo nsultReque sts(queryB ean).toArr ay(new Con sult[0]);
  350           }
  351           ca tch (Excep tion e)
  352           {
  353                throw ne w JMeadows Exception( e);
  354           }
  355  
  356           re turn consu lts;
  357       }
  358  
  359       public  Vitals[]  getPatient CurrentVit als(QueryB ean queryB ean) throw s JMeadows Exception
  360       {
  361           Vi tals[] vit als = null ;
  362  
  363           tr y
  364           {
  365                VistaDat a port = g etVistaDat aPort();
  366                vitals =  port.getP atientCurr entVitals( queryBean) .toArray(n ew Vitals[ 0]);
  367           }
  368           ca tch (Excep tion e)
  369           {
  370                throw ne w JMeadows Exception( e);
  371           }
  372  
  373           re turn vital s;
  374  
  375       }
  376  
  377       public  PatientDe mographics [] getPati entDemogra phics(Quer yBean quer yBean) thr ows JMeado wsExceptio n
  378       {
  379           Pa tientDemog raphics[]  returnVal  = null;
  380           tr y
  381           {
  382                VistaDat a port = g etVistaDat aPort();
  383                returnVa l = port.g etPatientD emographic s(queryBea n).toArray (new Patie ntDemograp hics[0]);
  384           }
  385           ca tch (Excep tion e)
  386           {
  387                throw ne w JMeadows Exception( e);
  388           }
  389  
  390           re turn retur nVal;
  391       }
  392  
  393       public  ProgressN ote[] getP atientDisc hargeSumma ries(Query Bean query Bean) thro ws JMeadow sException
  394       {
  395           Pr ogressNote [] notes =  null;
  396  
  397           tr y
  398           {
  399                VistaDat a port = g etVistaDat aPort();
  400                notes =  port.getPa tientDisch argeSummar ies(queryB ean).toArr ay(new Pro gressNote[ 0]);
  401           }
  402           ca tch (Excep tion e)
  403           {
  404                throw ne w JMeadows Exception( e);
  405           }
  406  
  407           re turn notes ;
  408       }
  409  
  410   //    publ ic Boolean  isSensiti vePatient( QueryBean  queryBean)  throws JM eadowsExce ption
  411   //    {
  412   //         try
  413   //         {
  414   //             VistaD ata port =  getVistaD ataPort();
  415   //             return  port.isSe nsitivePat ient(query Bean);
  416   //         }
  417   //         catch (Exc eption e)
  418   //         {
  419   //             throw  new JMeado wsExceptio n(e);
  420   //         }
  421   //    }
  422  
  423       public  PatientDe mographics Detail[] g etPatientD emographic sDetail(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion
  424       {
  425           Pa tientDemog raphicsDet ail[] retu rnVal = nu ll;
  426  
  427           tr y
  428           {
  429                VistaDat a port = g etVistaDat aPort();
  430                returnVa l = port.g etPatientD emographic sDetail(qu eryBean).t oArray(new  PatientDe mographics Detail[0]) ;
  431           }
  432           ca tch (Excep tion e)
  433           {
  434                throw ne w JMeadows Exception( e);
  435           }
  436  
  437           re turn retur nVal;
  438       }
  439  
  440       public  Immunizat ion[] getP atientImmu nizations( QueryBean  queryBean)  throws JM eadowsExce ption
  441       {
  442           Im munization [] immuniz ation = nu ll;
  443           tr y
  444           {
  445                VistaDat a port = g etVistaDat aPort();
  446                immuniza tion = por t.getPatie ntImmuniza tions(quer yBean).toA rray(new I mmunizatio n[0]);
  447           }
  448           ca tch (Excep tion e)
  449           {
  450                throw ne w JMeadows Exception( e);
  451           }
  452  
  453           re turn immun ization;
  454       }
  455  
  456       public  LabOrder[ ] getPatie ntLabs(Que ryBean que ryBean) th rows JMead owsExcepti on
  457       {
  458           La bOrder[] o rders = nu ll;
  459           tr y
  460           {
  461                VistaDat a port = g etVistaDat aPort();
  462                orders =  port.getP atientLabs (queryBean ).toArray( new LabOrd er[0]);
  463           }
  464           ca tch (Excep tion e)
  465           {
  466                throw ne w JMeadows Exception( e);
  467           }
  468  
  469           re turn order s;
  470       }
  471  
  472       public  LabResult [] getPati entLabTest Results(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion
  473       {
  474           La bResult[]  results =  null;
  475           tr y
  476           {
  477                VistaDat a port = g etVistaDat aPort();
  478                results  = port.get PatientLab TestResult s(queryBea n).toArray (new LabRe sult[0]);
  479           }
  480           ca tch (Excep tion e)
  481           {
  482                throw ne w JMeadows Exception( e);
  483           }
  484  
  485           re turn resul ts;
  486       }
  487  
  488       public  Medicatio n[] getPat ientMedica tions(Quer yBean quer yBean) thr ows JMeado wsExceptio n
  489       {
  490           Me dication[]  medicatio n = null;
  491           tr y
  492           {
  493                VistaDat a port = g etVistaDat aPort();
  494                medicati on = port. getPatient Medication s(queryBea n).toArray (new Medic ation[0]);
  495           }
  496           ca tch (Excep tion e)
  497           {
  498                throw ne w JMeadows Exception( e);
  499           }
  500  
  501           re turn medic ation;
  502       }
  503  
  504   //    publ ic Medicat ion[] getP atientMedi cationsNVA (QueryBean  queryBean ) throws J MeadowsExc eption {
  505   //         Medication [] medicat ion = null ;
  506   //         try {
  507   //             VistaD ata port =  getVistaD ataPort();
  508   //             medica tion = por t.getPatie ntMedicati onsNVA(que ryBean).to Array(new  Medication [0]);
  509   //
  510   //         } catch (E xception e ) {
  511   //             throw  new JMeado wsExceptio n(e);
  512   //         }
  513   //
  514   //         return med ication;
  515   //
  516   //    }
  517  
  518       public  Order[] g etPatientO rders(Quer yBean quer yBean) thr ows JMeado wsExceptio n
  519       {
  520           Or der[] orde rs = null;
  521  
  522           tr y
  523           {
  524                VistaDat a port = g etVistaDat aPort();
  525                orders =  port.getP atientOrde rs(queryBe an).toArra y(new Orde r[0]);
  526           }
  527           ca tch (Excep tion e)
  528           {
  529                throw ne w JMeadows Exception( e);
  530           }
  531  
  532           re turn order s;
  533       }
  534  
  535       public  Problem[]  getPatien tProblemLi st(QueryBe an queryBe an) throws  JMeadowsE xception
  536       {
  537           Pr oblem[] pr oblems = n ull;
  538  
  539           tr y
  540           {
  541                VistaDat a port = g etVistaDat aPort();
  542                problems  = port.ge tPatientPr oblemList( queryBean) .toArray(n ew Problem [0]);
  543           }
  544           ca tch (Excep tion e)
  545           {
  546                throw ne w JMeadows Exception( e);
  547           }
  548  
  549           re turn probl ems;
  550       }
  551  
  552       public  Procedure [] getPati entProcedu res(QueryB ean queryB ean) throw s JMeadows Exception
  553       {
  554           Pr ocedure[]  procedure  = null;
  555  
  556           tr y
  557           {
  558                VistaDat a port = g etVistaDat aPort();
  559                procedur e = port.g etPatientP rocedures( queryBean) .toArray(n ew Procedu re[0]);
  560           }
  561           ca tch (Excep tion e)
  562           {
  563                throw ne w JMeadows Exception( e);
  564           }
  565  
  566           re turn proce dure;
  567  
  568       }
  569  
  570       public  ProgressN ote[] getP atientProg ressNotes( QueryBean  queryBean)  throws JM eadowsExce ption
  571       {
  572           Pr ogressNote [] notes =  null;
  573  
  574           tr y
  575           {
  576                VistaDat a port = g etVistaDat aPort();
  577                notes =  port.getPa tientProgr essNotes(q ueryBean). toArray(ne w Progress Note[0]);
  578           }
  579           ca tch (Excep tion e)
  580           {
  581                throw ne w JMeadows Exception( e);
  582           }
  583  
  584           re turn notes ;
  585       }
  586  
  587       public  Radiology Report[] g etPatientR ads(QueryB ean queryB ean) throw s JMeadows Exception
  588       {
  589           Ra diologyRep ort[] exam s = null;
  590  
  591           tr y
  592           {
  593                VistaDat a port = g etVistaDat aPort();
  594                exams =  port.getPa tientRads( queryBean) .toArray(n ew Radiolo gyReport[0 ]);
  595           }
  596           ca tch (Excep tion e)
  597           {
  598                throw ne w JMeadows Exception( e);
  599           }
  600  
  601           re turn exams ;
  602       }
  603  
  604       public  Vitals[]  getPatient Vitals(Que ryBean que ryBean) th rows JMead owsExcepti on
  605       {
  606           Vi tals[] vit als = null ;
  607  
  608           tr y
  609           {
  610                VistaDat a port = g etVistaDat aPort();
  611                vitals =  port.getP atientVita ls(queryBe an).toArra y(new Vita ls[0]);
  612           }
  613           ca tch (Excep tion e)
  614           {
  615                throw ne w JMeadows Exception( e);
  616           }
  617  
  618           re turn vital s;
  619       }
  620  
  621   //    publ ic Prescri ption getP rescriptio nFills(Que ryBean que ryBean) th rows JMead owsExcepti on {
  622   //         Prescripti on returnV al = null;
  623   //
  624   //         try {
  625   //             VistaD ata port =  getVistaD ataPort();
  626   //             return Val = port .getPrescr iptionFill s(queryBea n);
  627   //         } catch (E xception e ) {
  628   //             throw  new JMeado wsExceptio n(e);
  629   //         }
  630   //
  631   //         return ret urnVal;
  632   //
  633   //    }
  634  
  635       public  ProblemDe tail getPr oblemDetai l(QueryBea n queryBea n) throws  JMeadowsEx ception
  636       {
  637           Pr oblemDetai l returnVa l = null;
  638  
  639           tr y
  640           {
  641                VistaDat a port = g etVistaDat aPort();
  642                returnVa l = port.g etProblemD etail(quer yBean);
  643           }
  644           ca tch (Excep tion e)
  645           {
  646                throw ne w JMeadows Exception( e);
  647           }
  648  
  649           re turn retur nVal;
  650       }
  651  
  652       public  FreeTextR eport getP rogressNot e(QueryBea n queryBea n) throws  JMeadowsEx ception
  653       {
  654           Fr eeTextRepo rt returnV al = null;
  655  
  656           tr y
  657           {
  658                VistaDat a port = g etVistaDat aPort();
  659                returnVa l = port.g etProgress Note(query Bean);
  660           }
  661           ca tch (Excep tion e)
  662           {
  663                throw ne w JMeadows Exception( e);
  664           }
  665  
  666           re turn retur nVal;
  667       }
  668  
  669       public  User getP roviderPro file(Site  site, Stri ng userIen , String p roviderNPI ) throws J MeadowsExc eption
  670       {
  671           Us er returnV al = null;
  672           tr y
  673           {
  674                VistaDat a port = g etVistaDat aPort();
  675                returnVa l = port.g etProvider Profile(si te, userIe n, provide rNPI);
  676           }
  677           ca tch (Excep tion e)
  678           {
  679                throw ne w JMeadows Exception( e);
  680           }
  681  
  682           re turn retur nVal;
  683       }
  684  
  685       public  Radiology Report get RadiologyR eport(Quer yBean quer yBean) thr ows JMeado wsExceptio n
  686       {
  687           Ra diologyRep ort return Val = null ;
  688  
  689           tr y
  690           {
  691                VistaDat a port = g etVistaDat aPort();
  692                returnVa l = port.g etRadiolog yReport(qu eryBean);
  693           }
  694           ca tch (Excep tion e)
  695           {
  696                throw ne w JMeadows Exception( e);
  697           }
  698  
  699           re turn retur nVal;
  700  
  701       }
  702  
  703       public  List<Aler t> getUser Alerts(Que ryBean que ryBean) th rows JMead owsExcepti on
  704       {
  705  
  706           tr y
  707           {
  708                VistaDat a port = g etVistaDat aPort();
  709                return p ort.getUse rAlerts(qu eryBean);
  710           }
  711           ca tch (Excep tion e)
  712           {
  713                throw ne w JMeadows Exception( e);
  714           }
  715       }
  716  
  717       public  Diagnosis [] getVisi tDiagnosis (QueryBean  queryBean ) throws J MeadowsExc eption
  718       {
  719           Di agnosis[]  returnVal  = null;
  720           tr y
  721           {
  722                VistaDat a port = g etVistaDat aPort();
  723                returnVa l = port.g etVisitDia gnosis(que ryBean).to Array(new  Diagnosis[ 0]);
  724           }
  725           ca tch (Excep tion e)
  726           {
  727                throw ne w JMeadows Exception( e);
  728           }
  729  
  730           re turn retur nVal;
  731       }
  732  
  733       public  FreeTextR eport getV isitNotes( QueryBean  queryBean)  throws JM eadowsExce ption
  734       {
  735           Fr eeTextRepo rt returnV al = null;
  736  
  737           tr y
  738           {
  739                VistaDat a port = g etVistaDat aPort();
  740                returnVa l = port.g etVisitNot es(queryBe an);
  741           }
  742           ca tch (Excep tion e)
  743           {
  744                throw ne w JMeadows Exception( e);
  745           }
  746  
  747           re turn retur nVal;
  748       }
  749  
  750       public  Procedure [] getVisi tProcedure s(QueryBea n queryBea n) throws  JMeadowsEx ception
  751       {
  752           Pr ocedure[]  returnVal  = null;
  753  
  754           tr y
  755           {
  756                VistaDat a port = g etVistaDat aPort();
  757                returnVa l = port.g etVisitPro cedures(qu eryBean).t oArray(new  Procedure [0]);
  758           }
  759           ca tch (Excep tion e)
  760           {
  761                throw ne w JMeadows Exception( e);
  762           }
  763  
  764  
  765           re turn retur nVal;
  766       }
  767  
  768       public  List<Pati ent> looku pPatient(Q ueryBean q ueryBean)  throws JMe adowsExcep tion
  769       {
  770  
  771           tr y
  772           {
  773                VistaDat a port = g etVistaDat aPort();
  774                //return  a max of  100 patien ts
  775                queryBea n.setMax(1 00);
  776                return p ort.lookup Patient(qu eryBean);
  777           }
  778           ca tch (Excep tion e)
  779           {
  780                throw ne w JMeadows Exception( e);
  781           }
  782       }
  783  
  784       public  boolean s electPatie nt(QueryBe an queryBe an) throws  JMeadowsE xception
  785       {
  786           bo olean retu rnVal = fa lse;
  787  
  788           tr y
  789           {
  790                VistaDat a port = g etVistaDat aPort();
  791                //return  a max of  100 patien ts
  792                queryBea n.setMax(1 00);
  793                returnVa l = port.s electPatie nt(queryBe an);
  794           }
  795           ca tch (Excep tion e)
  796           {
  797                throw ne w JMeadows Exception( e);
  798           }
  799  
  800           re turn retur nVal;
  801  
  802       }
  803  
  804       public  ReferralB ean[] getD RReferrals (QueryBean  queryBean ) throws J MeadowsExc eption
  805       {
  806           Re ferralBean [] returnV al = null;
  807  
  808           tr y
  809           {
  810                VistaDat a port = g etVistaDat aPort();
  811                returnVa l = port.g etDRReferr als(queryB ean).toArr ay(new Ref erralBean[ 0]);
  812           }
  813           ca tch (Excep tion e)
  814           {
  815                throw ne w JMeadows Exception( e);
  816           }
  817  
  818           re turn retur nVal;
  819       }
  820  
  821       public  PatientAd mission[]  getProvide rAdmission s(QueryBea n queryBea n)
  822                throws J MeadowsExc eption
  823       {
  824           tr y
  825           {
  826                List<Pat ientAdmiss ion> admis sions = nu ll;
  827                VistaDat a port = g etVistaDat aPort();
  828                admissio ns = port. getProvide rAdmission s(queryBea n);
  829                return a dmissions. toArray(ne w PatientA dmission[0 ]);
  830           }
  831           ca tch (Excep tion e)
  832           {
  833                throw ne w JMeadows Exception( e);
  834           }
  835       }
  836  
  837       public  PatientAd mission[]  getWardAdm issions(Qu eryBean qu eryBean)
  838                throws J MeadowsExc eption
  839       {
  840           tr y
  841           {
  842                List<Pat ientAdmiss ion> admis sions = nu ll;
  843                VistaDat a port = g etVistaDat aPort();
  844                admissio ns = port. getWardAdm issions(qu eryBean);
  845                return a dmissions. toArray(ne w PatientA dmission[0 ]);
  846           }
  847           ca tch (Excep tion e)
  848           {
  849                throw ne w JMeadows Exception( e);
  850           }
  851       }
  852  
  853       public  PatientAp pointments [] getProv iderAppoin tments(Que ryBean que ryBean)
  854                throws J MeadowsExc eption
  855       {
  856           tr y
  857           {
  858                List<Pat ientAppoin tments> ap pointments  = null;
  859                VistaDat a port = g etVistaDat aPort();
  860                appointm ents = por t.getProvi derAppoint ments(quer yBean);
  861                return a ppointment s.toArray( new Patien tAppointme nts[0]);
  862           }
  863           ca tch (Excep tion e)
  864           {
  865                throw ne w JMeadows Exception( e);
  866           }
  867       }
  868  
  869       public  ProgressN ote[] getP roviderUns ignedNotes (QueryBean  queryBean )
  870                throws J MeadowsExc eption
  871       {
  872           tr y
  873           {
  874                List<Pro gressNote>  unsignedN otes = nul l;
  875                VistaDat a port = g etVistaDat aPort();
  876                unsigned Notes = po rt.getProv iderUnsign edNotes(qu eryBean);
  877                return u nsignedNot es.toArray (new Progr essNote[0] );
  878           }
  879           ca tch (Excep tion e)
  880           {
  881                throw ne w JMeadows Exception( e);
  882           }
  883       }
  884  
  885       public  Consult[]  getProvid erConsults Requested( QueryBean  queryBean)
  886                throws J MeadowsExc eption
  887       {
  888           tr y
  889           {
  890                List<Con sult> cons ultsReques ted = null ;
  891                VistaDat a port = g etVistaDat aPort();
  892                consults Requested  = port.get ProviderCo nsultsRequ ested(quer yBean);
  893                return c onsultsReq uested.toA rray(new C onsult[0]) ;
  894           }
  895           ca tch (Excep tion e)
  896           {
  897                throw ne w JMeadows Exception( e);
  898           }
  899       }
  900  
  901       public  Consult[]  getProvid erConsults Received(Q ueryBean q ueryBean)
  902                throws J MeadowsExc eption
  903       {
  904           tr y
  905           {
  906                List<Con sult> cons ultsReceiv ed = null;
  907                VistaDat a port = g etVistaDat aPort();
  908                consults Received =  port.getP roviderCon sultsRecei ved(queryB ean);
  909                return c onsultsRec eived.toAr ray(new Co nsult[0]);
  910           }
  911           ca tch (Excep tion e)
  912           {
  913                throw ne w JMeadows Exception( e);
  914           }
  915       }
  916  
  917       public  Order[] g etProvider OrdersPend ing(QueryB ean queryB ean)
  918                throws J MeadowsExc eption
  919       {
  920           tr y
  921           {
  922                List<Ord er> orders  = null;
  923                VistaDat a port = g etVistaDat aPort();
  924                orders =  port.getP roviderOrd ersPending (queryBean );
  925                return o rders.toAr ray(new Or der[0]);
  926           }
  927           ca tch (Excep tion e)
  928           {
  929                throw ne w JMeadows Exception( e);
  930           }
  931       }
  932  
  933       public  Order[] g etProvider OrdersResu lted(Query Bean query Bean)
  934                throws J MeadowsExc eption
  935       {
  936           tr y
  937           {
  938                List<Ord er> orders  = null;
  939                VistaDat a port = g etVistaDat aPort();
  940                orders =  port.getP roviderOrd ersResulte d(queryBea n);
  941                return o rders.toAr ray(new Or der[0]);
  942           }
  943           ca tch (Excep tion e)
  944           {
  945                throw ne w JMeadows Exception( e);
  946           }
  947       }
  948  
  949       public  LabResult [] getProv iderLabAbn ormalResul ts(QueryBe an queryBe an)
  950                throws J MeadowsExc eption
  951       {
  952           tr y
  953           {
  954                List<Lab Result> la bResults =  null;
  955                VistaDat a port = g etVistaDat aPort();
  956                labResul ts = port. getProvide rLabAbnorm alResults( queryBean) ;
  957                return l abResults. toArray(ne w LabResul t[0]);
  958           }
  959           ca tch (Excep tion e)
  960           {
  961                throw ne w JMeadows Exception( e);
  962           }
  963       }
  964  
  965       public  String ge tVersion()  throws JM eadowsExce ption
  966       {
  967           tr y
  968           {
  969                VistaDat a port = g etVistaDat aPort();
  970                return p ort.getVer sion();
  971           }
  972           ca tch (Excep tion e)
  973           {
  974                throw ne w JMeadows Exception( e);
  975           }
  976       }
  977  
  978       public  List<Vist aStatus> g etVistaSta tusList(Li st<Site> s iteList) t hrows JMea dowsExcept ion {
  979           tr y
  980           {
  981                VistaDat a port = g etVistaDat aPort();
  982                return p ort.getVis taStatusLi st(siteLis t);
  983           }
  984           ca tch (Excep tion e)
  985           {
  986                throw ne w JMeadows Exception( e);
  987           }
  988       }
  989   }