22835. EPMO Open Source Coordination Office Redaction File Detail Report

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

22835.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\JLV\src\java\gov\va\med\jmeadows JMeadowsServiceHandlerImpl.java Mon Jul 8 19:18:48 2019 UTC
2 JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\JLV\src\java\gov\va\med\jmeadows JMeadowsServiceHandlerImpl.java Thu Aug 1 00:36:23 2019 UTC

22835.2 Comparison summary

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

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

22835.4 Active regular expressions

No regular expressions were active.

22835.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    *              Honor able Senat or Daniel  K. Inouye
  7    *              VA Pa cific Isla nds Health  Care Syst em
  8    *              Tripl er Army Me dical Cent er
  9    *
  10    * License d under th e Apache L icense, Ve rsion 2.0  (the "Lice nse"); you  may not u se this fi le except  in complia nce with t he License .
  11    *
  12    * You may  obtain a  copy of th e License  at:
  13    *
  14    *             http:/ /www.apach e.org/lice nses/LICEN SE-2.0.txt
  15    *
  16    * Unless  required b y applicab le law or  agreed to  in writing , software
  17    * distrib uted under  the Licen se is dist ributed on  an "AS IS " BASIS,
  18    * WITHOUT  WARRANTIE S OR CONDI TIONS OF A NY KIND, e ither expr ess or imp lied.
  19    * See the  License f or the spe cific lang uage gover ning permi ssions and  limitatio ns under t he License .
  20    */
  21  
  22  
  23   package go v.va.med.j meadows;
  24  
  25   import gov .va.med.co mmon.AppCo nfig;
  26   import gov .va.med.jm eadows.web service.*;
  27   import gov .va.med.vh ahon.commo n.Utils;
  28   import org .apache.lo g4j.Logger ;
  29   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
  30   import org .springfra mework.ste reotype.Co mponent;
  31  
  32   import jav ax.xml.nam espace.QNa me;
  33   import jav ax.xml.soa p.SOAPExce ption;
  34   import jav ax.xml.ws. BindingPro vider;
  35   import jav ax.xml.ws. soap.MTOMF eature;
  36   import jav a.util.Arr ayList;
  37   import jav a.util.Lis t;
  38  
  39   @Component
  40   public cla ss JMeadow sServiceHa ndlerImpl  implements  JMeadowsS erviceHand ler {
  41  
  42       privat e static f inal Logge r logger =  Logger.ge tLogger(JM eadowsServ iceHandler Impl.class .getName() );
  43       @Autow ired
  44       protec ted AppCon fig appCon fig;
  45       privat e String s erviceURL;
  46       privat e String m _ServiceNa me = "JMea dowsDataSe rvice";
  47         private St ring m_nam espace = " http:// DNS . URL         /";
  48       privat e QName m_ QserviceNa me = new Q Name(m_nam espace, m_ ServiceNam e);
  49  
  50       privat e String a ppName;
  51  
  52       privat e String u sername;
  53       privat e String p assword;
  54  
  55       privat e int conn ectionTime outMS = 30 000;
  56       privat e int requ estTimeout MS = 30000 ;
  57  
  58       privat e JMeadows DataServic e m_jmeado wsDataServ ice;
  59  
  60       public  JMeadowsS erviceHand lerImpl(St ring url)  {
  61           se rviceURL =  url;
  62       }
  63  
  64       public  JMeadowsS erviceHand lerImpl()  {
  65       }
  66  
  67  
  68       public  int getCo nnectionTi meoutMS()  {
  69           re turn conne ctionTimeo utMS;
  70       }
  71  
  72       public  void setC onnectionT imeoutMS(i nt connect ionTimeout MS) {
  73           th is.connect ionTimeout MS = conne ctionTimeo utMS;
  74       }
  75  
  76       public  int getRe questTimeo utMS() {
  77           re turn reque stTimeoutM S;
  78       }
  79  
  80       public  void setR equestTime outMS(int  requestTim eoutMS) {
  81           th is.request TimeoutMS  = requestT imeoutMS;
  82       }
  83  
  84       public  String ge tServiceUR L() {
  85           re turn servi ceURL;
  86       }
  87  
  88       public  void setS erviceURL( String ser viceURL) {
  89           th is.service URL = serv iceURL;
  90       }
  91  
  92       privat e JMeadows Data getJM eadowsData Port() {
  93           re turn getJM eadowsData Port(false );
  94       }
  95  
  96       public  String ge tUsername( ) {
  97           re turn usern ame;
  98       }
  99  
  100       public  void setU sername(St ring usern ame) {
  101           th is.usernam e = userna me;
  102       }
  103  
  104       public  String ge tPassword( ) {
  105           re turn passw ord;
  106       }
  107  
  108       public  void setP assword(St ring passw ord) {
  109           th is.passwor d = passwo rd;
  110       }
  111  
  112       privat e JMeadows Data getJM eadowsData Port(boole an include MTOMFeatur e) {
  113           if  (m_jmeado wsDataServ ice == nul l) {
  114                createSe rvice();
  115                if (appC onfig.getE nableWSSec urityHeade r()) {
  116                    m_jm eadowsData Service.se tHandlerRe solver(new  HeaderHan dlerResolv er());
  117                }
  118           }
  119  
  120           JM eadowsData  port = nu ll;
  121           if  (includeM TOMFeature ) {
  122                port = m _jmeadowsD ataService .getJMeado wsDataPort (new MTOMF eature());
  123           }  else port  = m_jmeado wsDataServ ice.getJMe adowsDataP ort();
  124  
  125           // set connec tion timeo ut
  126           Bi ndingProvi der bp = ( BindingPro vider) por t;
  127           bp .getReques tContext() .put(Bindi ngProvider .ENDPOINT_ ADDRESS_PR OPERTY, se rviceURL);
  128           bp .getReques tContext() .put("com. sun.xml.in ternal.ws. connect.ti meout", co nnectionTi meoutMS);
  129           bp .getReques tContext() .put("com. sun.xml.in ternal.ws. request.ti meout", re questTimeo utMS);
  130           bp .getReques tContext() .put("com. sun.xml.ws .connect.t imeout", c onnectionT imeoutMS);
  131           bp .getReques tContext() .put("com. sun.xml.ws .request.t imeout", r equestTime outMS);
  132  
  133           re turn port;
  134       }
  135  
  136       privat e synchron ized void  createServ ice() {
  137           if  (m_jmeado wsDataServ ice == nul l) {
  138                try {
  139                    m_jm eadowsData Service =  new JMeado wsDataServ ice();
  140                } catch  (Exception  e) {
  141                    thro w new Runt imeExcepti on(e);
  142                }
  143  
  144           }
  145       }
  146  
  147       privat e void log (String me thodName)  {
  148           lo g(methodNa me, null);
  149       }
  150  
  151       privat e void log (String me thodName,  JMeadowsQu ery queryB ean) {
  152           if  (logger.i sDebugEnab led()) {
  153                logger.d ebug("Invo king metho d: " + met hodName);
  154                if (quer yBean != n ull) {
  155                    logQ ueryBeanPa rams(metho dName, que ryBean);
  156                }
  157           }
  158       }
  159  
  160       privat e void log QueryBeanP arams(Stri ng methodN ame, JMead owsQuery q ueryBean)  {
  161           if  (!logger. isDebugEna bled()) re turn;
  162  
  163           St ring userI d;
  164           Si te hostSit e;
  165           St ring patVA Icn;
  166           St ring patDo DEdipi;
  167           Li st<Site> v istaSites  = new Arra yList<Site >();
  168           St ring itemI d;
  169           St ring recor dSiteCode;
  170           St ring statu s;
  171           In teger acti ve;
  172           St ring start Date;
  173           St ring endDa te;
  174  
  175           St ringBuilde r sb = new  StringBui lder();
  176           sb .append(me thodName);
  177           sb .append("  query bean  params: " );
  178  
  179           if  (queryBea n != null)  {
  180                User use r = queryB ean.getUse r();
  181                Patient  patient =  queryBean. getPatient ();
  182  
  183                if (user  != null)  {
  184                    user Id = user. getUserId( );
  185                    host Site = use r.getHostS ite();
  186  
  187                    sb.a ppend("Use r - userId : ");
  188                    sb.a ppend(user Id);
  189                    sb.a ppend(" ,  hostSite:  ");
  190                    if ( hostSite ! = null) sb .append(ho stSite.get SiteCode() );
  191                } else {
  192                    sb.a ppend("Use r - null") ;
  193                }
  194  
  195                if (pati ent != nul l) {
  196  
  197                    patV AIcn = pat ient.getIC N();
  198                    patD oDEdipi =  patient.ge tEDIPI();
  199  
  200                    sb.a ppend("; P atient - " );
  201                    sb.a ppend(", I CN: ");
  202                    sb.a ppend(patV AIcn);
  203                    sb.a ppend(", E DIPI: ");
  204                    sb.a ppend(patD oDEdipi);
  205  
  206                    sb.a ppend(", v istaSites:  ");
  207  
  208                    if ( vistaSites .size() <  1) sb.appe nd("none") ;
  209  
  210                    for  (Site site  : vistaSi tes) {
  211                         String sit eCode = si te.getSite Code();
  212                         sb.append( siteCode);
  213                         sb.append( ", ");
  214                    }
  215                } else {
  216                    sb.a ppend("; P atient - n ull");
  217                }
  218  
  219                itemId =  queryBean .getItemId ();
  220                active =  queryBean .getActive ();
  221                recordSi teCode = q ueryBean.g etRecordSi teCode();
  222                startDat e = Utils. formatDisp layDate(qu eryBean.ge tStartDate ());
  223                endDate  = Utils.fo rmatDispla yDate(quer yBean.getE ndDate());
  224                status =  queryBean .getStatus ();
  225  
  226                sb.appen d("; start Date: ");
  227                sb.appen d(startDat e);
  228                sb.appen d(", endDa te: ");
  229                sb.appen d(endDate) ;
  230                sb.appen d(", itemI d: ");
  231                sb.appen d(itemId);
  232                sb.appen d(", recor dSiteCode:  ");
  233                sb.appen d(recordSi teCode);
  234                sb.appen d(", statu s: ");
  235                sb.appen d(status);
  236                sb.appen d(", activ e: ");
  237                sb.appen d(active);
  238  
  239           }
  240  
  241           lo gger.debug (sb.toStri ng());
  242       }
  243  
  244       @Overr ide
  245       public  User logi nEnterpris e(String c ardID, Str ing siteCo de, String  accessCod e, String  verifyCode , String i pAddress,  String sub jectDN, St ring email Address) t hrows SOAP Exception  {
  246  
  247           lo g("loginEn terprise") ;
  248  
  249           Us er result  = null;
  250  
  251           tr y {
  252  
  253                JMeadows Data port  = getJMead owsDataPor t();
  254                result =  port.logi nEnterpris e(cardID,  siteCode,  accessCode , verifyCo de, appNam e, ipAddre ss, subjec tDN, email Address);
  255  
  256           }  catch (Exc eption e)  {
  257                logError (e);
  258                throw ne w SOAPExce ption(e);
  259           }
  260  
  261           re turn resul t;
  262       }
  263  
  264       @Overr ide
  265       public  User logi nSaml(Stri ng siteCod e, String  samlToken,  String ip Address, S tring emai lAddress)  throws SOA PException  {
  266  
  267           lo g("loginSa ml");
  268  
  269           Us er result  = null;
  270  
  271           tr y {
  272  
  273                JMeadows Data port  = getJMead owsDataPor t();
  274                result =  port.logi nSaml(site Code, saml Token, app Name, ipAd dress, ema ilAddress) ;
  275  
  276           }  catch (Exc eption e)  {
  277                logError (e);
  278                throw ne w SOAPExce ption(e);
  279           }
  280  
  281           re turn resul t;
  282       }
  283  
  284   //    @Ove rride
  285   //    publ ic User lo ginEnterpr ise(String  cardID, S tring site Code, Stri ng accessC ode, Strin g verifyCo de, String  ipAddress , String s ubjectDN)  throws SOA PException  {
  286   //
  287   //         log("login Enterprise ");
  288   //
  289   //         User resul t = null;
  290   //
  291   //         try {
  292   //
  293   //             JMeado wsData por t = getJMe adowsDataP ort();
  294   //             result  = port.lo ginEnterpr ise(cardID , siteCode , accessCo de, verify Code, appN ame, ipAdd ress, subj ectDN, "") ;
  295   //
  296   //         } catch (E xception e ) {
  297   //             throw  new SOAPEx ception(e) ;
  298   //         }
  299   //
  300   //         return res ult;
  301   //
  302   //         //code to  mock DoD u ser
  303   ////         siteCode  = "200";
  304   ////
  305   ////         User use r = new Us er();
  306   ////         user.set EncryptedF ederatedUi d(EncryptU til.encryp t("1234567 89"));
  307   ////         user.set Name("Mock User,DoD") ;
  308   ////         user.set UserIen("1 234");
  309   ////         user.set ProviderIe n("4321");
  310   ////         user.set Agency("DO D");
  311   ////
  312   ////         JMeadows Data port  = getJMead owsDataPor t();
  313   ////         List<Sit e> sites =  port.getS ites();
  314   ////         java.uti l.Iterator <Site> it  = sites.it erator();
  315   ////         while(it .hasNext() )
  316   ////         {
  317   ////             Site  site = it .next();
  318   ////             if(s iteCode.eq ualsIgnore Case(site. getSiteCod e()))
  319   ////             {
  320   ////                  user.setHo stSite(sit e);
  321   ////                  break;
  322   ////             }
  323   ////         }
  324   ////         return u ser;
  325   //
  326   //    }
  327  
  328       @Overr ide
  329       public  Admission Detail get AdmissionD etails(JMe adowsQuery  queryBean ) throws S OAPExcepti on {
  330  
  331           lo g("getAdmi ssionDetai ls", query Bean);
  332  
  333           Ad missionDet ail return Val = null ;
  334  
  335           tr y {
  336  
  337                JMeadows Data port  = getJMead owsDataPor t();
  338                returnVa l = port.g etAdmissio nDetails(q ueryBean);
  339           }  catch (Exc eption e)  {
  340                logError (e);
  341                throw ne w SOAPExce ption(e);
  342           }
  343  
  344  
  345           re turn retur nVal;
  346       }
  347  
  348       @Overr ide
  349       public  Diagnosis [] getAdmi ssionDiagn osis(JMead owsQuery q ueryBean)  throws SOA PException  {
  350  
  351           lo g("getAdmi ssionDiagn osis", que ryBean);
  352  
  353           Di agnosis[]  returnVal  = null;
  354  
  355           tr y {
  356  
  357                JMeadows Data port  = getJMead owsDataPor t();
  358                returnVa l = port.g etAdmissio nDiagnosis (queryBean ).toArray( new Diagno sis[0]);
  359           }  catch (Exc eption e)  {
  360                logError (e);
  361                throw ne w SOAPExce ption(e);
  362           }
  363  
  364           re turn retur nVal;
  365  
  366       }
  367  
  368  
  369       @Overr ide
  370       public  Procedure [] getAdmi ssionProce dures(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  371  
  372           lo g("getAdmi ssionProce dures", qu eryBean);
  373  
  374           Pr ocedure[]  returnVal  = null;
  375  
  376           tr y {
  377  
  378                JMeadows Data port  = getJMead owsDataPor t();
  379                returnVa l = port.g etAdmissio nProcedure s(queryBea n).toArray (new Proce dure[0]);
  380           }  catch (Exc eption e)  {
  381                logError (e);
  382                throw ne w SOAPExce ption(e);
  383           }
  384  
  385           re turn retur nVal;
  386       }
  387  
  388       @Overr ide
  389       public  FreeTextR eport getC linicalRem inderDetai l(JMeadows Query quer yBean) thr ows SOAPEx ception {
  390  
  391           lo g("getClin icalRemind erDetail",  queryBean );
  392  
  393           Fr eeTextRepo rt returnV al = null;
  394  
  395           tr y {
  396  
  397                JMeadows Data port  = getJMead owsDataPor t();
  398                returnVa l = port.g etClinical ReminderDe tail(query Bean);
  399           }  catch (Exc eption e)  {
  400                logError (e);
  401                throw ne w SOAPExce ption(e);
  402           }
  403  
  404           re turn retur nVal;
  405  
  406       }
  407  
  408       @Overr ide
  409       public  FreeTextR eport getC linicalRem inderDetai lUseHS(JMe adowsQuery  queryBean ) throws S OAPExcepti on {
  410  
  411           lo g("getClin icalRemind erDetailUs eHS", quer yBean);
  412  
  413           Fr eeTextRepo rt returnV al = null;
  414  
  415           tr y {
  416  
  417                JMeadows Data port  = getJMead owsDataPor t();
  418                returnVa l = port.g etClinical ReminderDe tailUseHS( queryBean) ;
  419           }  catch (Exc eption e)  {
  420                logError (e);
  421                throw ne w SOAPExce ption(e);
  422           }
  423  
  424           re turn retur nVal;
  425  
  426       }
  427  
  428       @Overr ide
  429       public  FreeTextR eport[] ge tConsultRe port(JMead owsQuery q ueryBean)  throws SOA PException  {
  430  
  431           lo g("getCons ultReport" , queryBea n);
  432  
  433           Fr eeTextRepo rt[] retur nVal = nul l;
  434  
  435           tr y {
  436  
  437                JMeadows Data port  = getJMead owsDataPor t();
  438                returnVa l = port.g etConsultR eport(quer yBean).toA rray(new F reeTextRep ort[0]);
  439           }  catch (Exc eption e)  {
  440                logError (e);
  441                throw ne w SOAPExce ption(e);
  442           }
  443  
  444           re turn retur nVal;
  445       }
  446  
  447       @Overr ide
  448       public  FreeTextR eport getM edicationD etails(JMe adowsQuery  queryBean ) throws S OAPExcepti on {
  449  
  450           lo g("getMedi cationDeta ils", quer yBean);
  451  
  452           Fr eeTextRepo rt returnV al = null;
  453  
  454           tr y {
  455  
  456                JMeadows Data port  = getJMead owsDataPor t();
  457                returnVa l = port.g etMedicati onDetail(q ueryBean);
  458           }  catch (Exc eption e)  {
  459                logError (e);
  460                throw ne w SOAPExce ption(e);
  461           }
  462  
  463           re turn retur nVal;
  464       }
  465  
  466       @Overr ide
  467       public  FreeTextR eport getM edicationA dministrat ionHistory (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  468  
  469           lo g("getMedi cationAdmi nistration History",  queryBean) ;
  470  
  471           Fr eeTextRepo rt returnV al = null;
  472  
  473           tr y {
  474  
  475                JMeadows Data port  = getJMead owsDataPor t();
  476                returnVa l = port.g etMedicati onAdminist rationHist ory(queryB ean);
  477           }  catch (Exc eption e)  {
  478                logError (e);
  479                throw ne w SOAPExce ption(e);
  480           }
  481  
  482           re turn retur nVal;
  483       }
  484  
  485       @Overr ide
  486       public  FreeTextR eport getM edicationA dministrat ionLog(JMe adowsQuery  queryBean ) throws S OAPExcepti on {
  487  
  488           lo g("getMedi cationAdmi nistration Log", quer yBean);
  489  
  490           Fr eeTextRepo rt returnV al = null;
  491  
  492           tr y {
  493  
  494                JMeadows Data port  = getJMead owsDataPor t();
  495                returnVa l = port.g etMedicati onAdminist rationLog( queryBean) ;
  496           }  catch (Exc eption e)  {
  497                logError (e);
  498                throw ne w SOAPExce ption(e);
  499           }
  500  
  501           re turn retur nVal;
  502       }
  503  
  504       @Overr ide
  505       public  LabResult [] getLabO rderResult (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  506           lo g("getLabO rderResult ", queryBe an);
  507  
  508           La bResult[]  returnVal  = null;
  509  
  510           tr y {
  511  
  512                JMeadows Data port  = getJMead owsDataPor t();
  513                returnVa l = port.g etLabOrder Result(que ryBean).to Array(new  LabResult[ 0]);
  514           }  catch (Exc eption e)  {
  515                logError (e);
  516                throw ne w SOAPExce ption(e);
  517           }
  518  
  519           re turn retur nVal;
  520       }
  521  
  522       @Overr ide
  523       public  FreeTextR eport getO rderDetail (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  524  
  525           lo g("getOrde rDetail",  queryBean) ;
  526  
  527           Fr eeTextRepo rt returnV al = null;
  528  
  529           tr y {
  530  
  531                JMeadows Data port  = getJMead owsDataPor t();
  532                returnVa l = port.g etOrderDet ail(queryB ean);
  533           }  catch (Exc eption e)  {
  534                logError (e);
  535                throw ne w SOAPExce ption(e);
  536           }
  537  
  538           re turn retur nVal;
  539       }
  540  
  541       @Overr ide
  542       public  JMedResul tCollectio n getPatie ntAdmissio ns(JMeadow sQuery que ryBean) th rows SOAPE xception {
  543  
  544           lo g("getPati entAdmissi ons", quer yBean);
  545  
  546           JM edResultCo llection r eturnVal =  null;
  547  
  548           tr y {
  549  
  550                JMeadows Data port  = getJMead owsDataPor t();
  551                returnVa l = port.g etPatientA dmissions( queryBean) ;
  552           }  catch (Exc eption e)  {
  553                logError (e);
  554                throw ne w SOAPExce ption(e);
  555           }
  556  
  557           re turn retur nVal;
  558       }
  559  
  560       @Overr ide
  561       public  JMedResul tCollectio n getPatie ntAllergie s(JMeadows Query quer yBean) thr ows SOAPEx ception {
  562           lo g("getPati entAllergi es", query Bean);
  563  
  564           JM edResultCo llection r eturnVal =  null;
  565  
  566           tr y {
  567  
  568                JMeadows Data port  = getJMead owsDataPor t();
  569                returnVa l = port.g etPatientA llergies(q ueryBean);
  570           }  catch (Exc eption e)  {
  571                logError (e);
  572                throw ne w SOAPExce ption(e);
  573           }
  574  
  575           re turn retur nVal;
  576       }
  577  
  578       @Overr ide
  579       public  AllergyDe tail getAl lergyDetai l(JMeadows Query quer yBean) thr ows SOAPEx ception {
  580           lo g("getAlle rgyDetail" , queryBea n);
  581  
  582           Al lergyDetai l returnVa l = null;
  583  
  584           tr y {
  585  
  586                JMeadows Data port  = getJMead owsDataPor t();
  587                returnVa l = port.g etAllergyD etail(quer yBean);
  588           }  catch (Exc eption e)  {
  589                logError (e);
  590                throw ne w SOAPExce ption(e);
  591           }
  592  
  593           re turn retur nVal;
  594       }
  595  
  596       @Overr ide
  597       public  JMedResul tCollectio n getPatie ntAppointm ents(JMead owsQuery q ueryBean)  throws SOA PException  {
  598           lo g("getPati entAppoint ments", qu eryBean);
  599  
  600           JM edResultCo llection r eturnVal =  null;
  601  
  602           tr y {
  603  
  604                JMeadows Data port  = getJMead owsDataPor t();
  605                returnVa l = port.g etPatientA ppointment s(queryBea n);
  606           }  catch (Exc eption e)  {
  607                logError (e);
  608                throw ne w SOAPExce ption(e);
  609           }
  610  
  611           re turn retur nVal;
  612       }
  613  
  614       @Overr ide
  615       public  JMedResul tCollectio n getPatie ntDocument s(JMeadows Query quer yBean) thr ows SOAPEx ception {
  616           lo g("getPati entDocumen ts", query Bean);
  617  
  618           JM edResultCo llection r eturnVal =  null;
  619  
  620           tr y {
  621  
  622                JMeadows Data port  = getJMead owsDataPor t();
  623                returnVa l = port.g etPatientD ocuments(q ueryBean);
  624           }  catch (Exc eption e)  {
  625                logError (e);
  626                throw ne w SOAPExce ption(e);
  627           }
  628  
  629           re turn retur nVal;
  630       }
  631  
  632       @Overr ide
  633       public  JMedResul tCollectio n getPatie ntDentalDo cuments(JM eadowsQuer y queryBea n) throws  SOAPExcept ion {
  634           lo g("getPati entDentalD ocuments",  queryBean );
  635  
  636           JM edResultCo llection r eturnVal =  null;
  637  
  638           tr y {
  639  
  640                JMeadows Data port  = getJMead owsDataPor t();
  641                returnVa l = port.g etPatientD entalDocum ents(query Bean);
  642           }  catch (Exc eption e)  {
  643                logError (e);
  644                throw ne w SOAPExce ption(e);
  645           }
  646  
  647           re turn retur nVal;
  648       }
  649  
  650       @Overr ide
  651       public  JMedResul tCollectio n getPatie ntEncounte rs(JMeadow sQuery que ryBean) th rows SOAPE xception {
  652           lo g("getPati entEncount er", query Bean);
  653  
  654           JM edResultCo llection r eturnVal =  null;
  655  
  656           tr y {
  657  
  658                JMeadows Data port  = getJMead owsDataPor t();
  659                returnVa l = port.g etPatientE ncounters( queryBean) ;
  660           }  catch (Exc eption e)  {
  661                logError (e);
  662                throw ne w SOAPExce ption(e);
  663           }
  664  
  665           re turn retur nVal;
  666       }
  667  
  668       @Overr ide
  669       public  JMedResul tCollectio n getPatie ntClinical Reminders( JMeadowsQu ery queryB ean) throw s SOAPExce ption {
  670           lo g("getPati entClinica lReminders ", queryBe an);
  671  
  672           JM edResultCo llection r eturnVal =  null;
  673  
  674           tr y {
  675  
  676                JMeadows Data port  = getJMead owsDataPor t();
  677                returnVa l = port.g etPatientC linicalRem inders(que ryBean);
  678           }  catch (Exc eption e)  {
  679                logError (e);
  680                throw ne w SOAPExce ption(e);
  681           }
  682  
  683           re turn retur nVal;
  684       }
  685  
  686       @Overr ide
  687       public  JMedResul tCollectio n getPatie ntClinical RemindersU seHS(JMead owsQuery q ueryBean)  throws SOA PException  {
  688           lo g("getPati entClinica lReminders UseHS", qu eryBean);
  689  
  690           JM edResultCo llection r eturnVal =  null;
  691  
  692           tr y {
  693  
  694                JMeadows Data port  = getJMead owsDataPor t();
  695                returnVa l = port.g etPatientC linicalRem indersUseH S(queryBea n);
  696           }  catch (Exc eption e)  {
  697                logError (e);
  698                throw ne w SOAPExce ption(e);
  699           }
  700  
  701           re turn retur nVal;
  702       }
  703  
  704       @Overr ide
  705       public  JMedResul tCollectio n getPatie ntConsultR equests(JM eadowsQuer y queryBea n) throws  SOAPExcept ion {
  706           lo g("getPati entConsult Requests",  queryBean );
  707  
  708           JM edResultCo llection r eturnVal =  null;
  709  
  710           tr y {
  711  
  712                JMeadows Data port  = getJMead owsDataPor t();
  713                returnVa l = port.g etPatientC onsultRequ ests(query Bean);
  714           }  catch (Exc eption e)  {
  715                logError (e);
  716                throw ne w SOAPExce ption(e);
  717           }
  718  
  719           re turn retur nVal;
  720       }
  721  
  722   //    @Ove rride
  723   //    publ ic JMedRes ultCollect ion getPat ientCurren tVitals(JM eadowsQuer y queryBea n) throws  SOAPExcept ion {
  724   //         log("getPa tientCurre ntVitals",  queryBean );
  725   //
  726   //         JMedResult Collection  returnVal  = null;
  727   //
  728   //         try {
  729   //
  730   //             JMeado wsData por t = getJMe adowsDataP ort();
  731   //             return Val = port .getPatien tCurrentVi tals(query Bean);
  732   //         } catch (E xception e ) {
  733   //             logErr or(e);
  734   //             throw  new SOAPEx ception(e) ;
  735   //         }
  736   //
  737   //         return ret urnVal;
  738   //
  739   //    }
  740  
  741       @Overr ide
  742       public  List<Pati entDemogra phicsDetai l> getAllP atientDemo graphicDet ails(JMead owsQuery q ueryBean)  throws SOA PException  {
  743           lo g("getAllP atientDemo graphicDet ails", que ryBean);
  744  
  745           Li st<Patient Demographi csDetail>  returnVal  = null;
  746           tr y {
  747  
  748                JMeadows Data port  = getJMead owsDataPor t();
  749                returnVa l = port.g etPatientD emographic sDetail(qu eryBean);
  750           }  catch (Exc eption e)  {
  751                logError (e);
  752                throw ne w SOAPExce ption(e);
  753           }
  754           re turn retur nVal;
  755       }
  756  
  757       @Overr ide
  758       public  JMedResul tCollectio n getPatie ntDemograp hics(JMead owsQuery q ueryBean)  throws SOA PException  {
  759           lo g("getPati entDemogra phics", qu eryBean);
  760  
  761           JM edResultCo llection r eturnVal =  null;
  762           tr y {
  763  
  764                JMeadows Data port  = getJMead owsDataPor t();
  765                returnVa l = port.g etPatientD emographic s(queryBea n);
  766           }  catch (Exc eption e)  {
  767                logError (e);
  768                throw ne w SOAPExce ption(e);
  769           }
  770           re turn retur nVal;
  771       }
  772  
  773       @Overr ide
  774       public  JMedResul tCollectio n getPatie ntProcedur es(JMeadow sQuery que ryBean) th rows SOAPE xception {
  775           lo g("getPati entProcedu res", quer yBean);
  776  
  777           JM edResultCo llection r eturnVal =  null;
  778  
  779           tr y {
  780  
  781                JMeadows Data port  = getJMead owsDataPor t();
  782                returnVa l = port.g etOutpatie ntProcedur es(queryBe an);
  783           }  catch (Exc eption e)  {
  784                logError (e);
  785                throw ne w SOAPExce ption(e);
  786           }
  787  
  788           re turn retur nVal;
  789       }
  790  
  791  
  792   //    @Ove rride
  793   //    publ ic Questio nnaireBean [] getPati entQuestio nnaires(JM eadowsQuer y queryBea n) throws  SOAPExcept ion {
  794   //         log("getPa tientQuest ionnaires" , queryBea n);
  795   //
  796   //         Questionna ireBean[]  returnVal  = null;
  797   //
  798   //         try {
  799   //
  800   //             JMeado wsData por t = getJMe adowsDataP ort();
  801   //             return Val = port .getPatien tQuestionn aires(quer yBean).toA rray(new Q uestionnai reBean[0]) ;
  802   //         } catch (E xception e ) {
  803   //             throw  new SOAPEx ception(e) ;
  804   //         }
  805   //
  806   //         return ret urnVal;
  807   //    }
  808  
  809       @Overr ide
  810       public  JMedResul tCollectio n getPatie ntForms(JM eadowsQuer y queryBea n) throws  SOAPExcept ion {
  811           lo g("getPati entForms",  queryBean );
  812  
  813           JM edResultCo llection r eturnVal =  null;
  814  
  815           tr y {
  816  
  817                JMeadows Data port  = getJMead owsDataPor t();
  818                returnVa l = port.g etPatientF orms(query Bean);
  819           }  catch (Exc eption e)  {
  820                logError (e);
  821                throw ne w SOAPExce ption(e);
  822           }
  823  
  824           re turn retur nVal;
  825       }
  826  
  827       @Overr ide
  828       public  JMedResul tCollectio n getPatie ntDischarg eSummaries (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  829           lo g("getPati entDischar geSummarie s", queryB ean);
  830  
  831           JM edResultCo llection r eturnVal =  null;
  832  
  833           tr y {
  834  
  835                JMeadows Data port  = getJMead owsDataPor t();
  836                returnVa l = port.g etPatientD ischargeSu mmaries(qu eryBean);
  837           }  catch (Exc eption e)  {
  838                logError (e);
  839                throw ne w SOAPExce ption(e);
  840           }
  841  
  842           re turn retur nVal;
  843       }
  844  
  845       @Overr ide
  846       public  JMedResul tCollectio n getPatie ntAdvanceD irectives( JMeadowsQu ery queryB ean) throw s SOAPExce ption {
  847           lo g("getPati entAdvance Directives ", queryBe an);
  848  
  849           JM edResultCo llection r eturnVal =  null;
  850  
  851           tr y {
  852  
  853                JMeadows Data port  = getJMead owsDataPor t();
  854                returnVa l = port.g etPatientA dvanceDire ctives(que ryBean);
  855           }  catch (Exc eption e)  {
  856                logError (e);
  857                throw ne w SOAPExce ption(e);
  858           }
  859  
  860           re turn retur nVal;
  861       }
  862  
  863  
  864       @Overr ide
  865       public  JMedResul tCollectio n getPatie ntImmuniza tions(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  866           lo g("getPati entImmuniz ations", q ueryBean);
  867  
  868           JM edResultCo llection r eturnVal =  null;
  869           tr y {
  870  
  871                JMeadows Data port  = getJMead owsDataPor t();
  872                returnVa l = port.g etPatientI mmunizatio ns(queryBe an);
  873           }  catch (Exc eption e)  {
  874                logError (e);
  875                throw ne w SOAPExce ption(e);
  876           }
  877           re turn retur nVal;
  878       }
  879  
  880       @Overr ide
  881       public  JMedResul tCollectio n getPatie ntInsuranc es(JMeadow sQuery que ryBean) th rows SOAPE xception {
  882           lo g("getPati entInsuran ces", quer yBean);
  883  
  884           JM edResultCo llection r eturnVal =  null;
  885  
  886           tr y {
  887                JMeadows Data port  = getJMead owsDataPor t();
  888                returnVa l = port.g etPatientI nsurances( queryBean) ;
  889  
  890           }  catch (Exc eption e)  {
  891                logError (e);
  892                throw ne w SOAPExce ption(e);
  893           }
  894  
  895           re turn retur nVal;
  896       }
  897  
  898  
  899       @Overr ide
  900       public  JMedResul tCollectio n getPatie ntLabs(JMe adowsQuery  queryBean ) throws S OAPExcepti on {
  901           lo g("getPati entLabs",  queryBean) ;
  902  
  903           JM edResultCo llection r eturnVal =  null;
  904           tr y {
  905  
  906                JMeadows Data port  = getJMead owsDataPor t();
  907                returnVa l = port.g etPatientL abs(queryB ean);
  908           }  catch (Exc eption e)  {
  909                logError (e);
  910                throw ne w SOAPExce ption(e);
  911           }
  912  
  913           re turn retur nVal;
  914       }
  915  
  916       @Overr ide
  917       public  FreeTextR eport getP atientLabR eport(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  918           lo g("getPati entLabRepo rt", query Bean);
  919  
  920           Fr eeTextRepo rt returnV al = null;
  921           tr y {
  922  
  923                JMeadows Data port  = getJMead owsDataPor t();
  924                returnVa l = port.g etPatientL abReport(q ueryBean);
  925           }  catch (Exc eption e)  {
  926                logError (e);
  927                throw ne w SOAPExce ption(e);
  928           }
  929  
  930           re turn retur nVal;
  931       }
  932  
  933       @Overr ide
  934       public  LabResult [] getPati entLabTest Results(JM eadowsQuer y queryBea n) throws  SOAPExcept ion {
  935           lo g("getPati entLabTest Results",  queryBean) ;
  936  
  937           La bResult[]  returnVal  = null;
  938           tr y {
  939  
  940                JMeadows Data port  = getJMead owsDataPor t();
  941                returnVa l = port.g etPatientL abTestResu lts(queryB ean).toArr ay(new Lab Result[0]) ;
  942           }  catch (Exc eption e)  {
  943                logError (e);
  944                throw ne w SOAPExce ption(e);
  945           }
  946  
  947           re turn retur nVal;
  948       }
  949  
  950       @Overr ide
  951       public  JMedResul tCollectio n getPatie ntLabResul ts(JMeadow sQuery que ryBean) th rows SOAPE xception {
  952           lo g("getPati entLabResu lts", quer yBean);
  953  
  954           JM edResultCo llection r eturnVal =  null;
  955           tr y {
  956  
  957                JMeadows Data port  = getJMead owsDataPor t();
  958                returnVa l = port.g etPatientL abResults( queryBean) ;
  959           }  catch (Exc eption e)  {
  960                logError (e);
  961                throw ne w SOAPExce ption(e);
  962           }
  963  
  964           re turn retur nVal;
  965       }
  966  
  967       @Overr ide
  968       public  JMedResul tCollectio n getPatie ntBloodBan kReports(J MeadowsQue ry queryBe an) throws  SOAPExcep tion {
  969           lo g("getPati entBloodBa nkReports" , queryBea n);
  970  
  971           JM edResultCo llection r eturnVal =  null;
  972           tr y {
  973  
  974                JMeadows Data port  = getJMead owsDataPor t();
  975                returnVa l = port.g etPatientB loodBankRe ports(quer yBean);
  976           }  catch (Exc eption e)  {
  977                logError (e);
  978                throw ne w SOAPExce ption(e);
  979           }
  980  
  981           re turn retur nVal;
  982       }
  983  
  984  
  985       @Overr ide
  986       public  JMedResul tCollectio n getPatie ntMedicati ons(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  987           lo g("getPati entMedicat ions", que ryBean);
  988  
  989           JM edResultCo llection r eturnVal =  null;
  990           tr y {
  991  
  992                JMeadows Data port  = getJMead owsDataPor t();
  993                returnVa l = port.g etPatientM edications (queryBean );
  994           }  catch (Exc eption e)  {
  995                logError (e);
  996                throw ne w SOAPExce ption(e);
  997           }
  998  
  999           re turn retur nVal;
  1000       }
  1001  
  1002   //    publ ic Medicat ion[] getP atientMedi cationsNVA (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  1003   //         log("getPa tientMedic ationsNVA" , queryBea n);
  1004   //
  1005   //         Medication [] returnV al = null;
  1006   //         try {
  1007   //
  1008   //             JMeado wsData por t = getJMe adowsDataP ort();
  1009   //             return Val = port .getPatien tMedicatio nsNVA(quer yBean).toA rray(new M edication[ 0]);
  1010   //         } catch (E xception e ) {
  1011   //             throw  new SOAPEx ception(e) ;
  1012   //         }
  1013   //         return ret urnVal;
  1014   //
  1015   //    }
  1016  
  1017       @Overr ide
  1018       public  JMedResul tCollectio n getPatie ntOrders(J MeadowsQue ry queryBe an) throws  SOAPExcep tion {
  1019           lo g("getPati entOrders" , queryBea n);
  1020  
  1021           JM edResultCo llection r eturnVal =  null;
  1022  
  1023           tr y {
  1024  
  1025                JMeadows Data port  = getJMead owsDataPor t();
  1026                returnVa l = port.g etPatientO rders(quer yBean);
  1027           }  catch (Exc eption e)  {
  1028                logError (e);
  1029                throw ne w SOAPExce ption(e);
  1030           }
  1031  
  1032           re turn retur nVal;
  1033       }
  1034  
  1035       @Overr ide
  1036       public  JMedResul tCollectio n getPatie ntProblemL ist(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  1037           lo g("getPati entProblem List", que ryBean);
  1038  
  1039           JM edResultCo llection r eturnVal =  null;
  1040  
  1041           tr y {
  1042  
  1043                JMeadows Data port  = getJMead owsDataPor t();
  1044                returnVa l = port.g etPatientP roblemList (queryBean );
  1045           }  catch (Exc eption e)  {
  1046                logError (e);
  1047                throw ne w SOAPExce ption(e);
  1048           }
  1049  
  1050           re turn retur nVal;
  1051       }
  1052  
  1053   //      pu blic Proce dure[] get PatientPro cedures(JM eadowsQuer y queryBea n) throws  SOAPExcept ion
  1054   //      {
  1055   //               Proc edure[] re turnVal =  null;
  1056   //
  1057   //         try {
  1058   //
  1059   //                      JMeadows Data port  = getJMead owsDataPor t();
  1060   //                      returnVa l = port.g etPatientP rocedures( queryBean) .toArray(n ew Procedu re[0]);
  1061   //             }
  1062   //             catch  (Exception  e)
  1063   //             {
  1064   //                      throw ne w SOAPExce ption(e);
  1065   //             }
  1066   //
  1067   //         return ret urnVal;
  1068   //
  1069   //      }
  1070  
  1071       @Overr ide
  1072       public  JMedResul tCollectio n getPatie ntProgress Notes(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  1073           lo g("getPati entProgres sNotes", q ueryBean);
  1074  
  1075           JM edResultCo llection r eturnVal =  null;
  1076  
  1077           tr y {
  1078  
  1079                JMeadows Data port  = getJMead owsDataPor t();
  1080                returnVa l = port.g etPatientP rogressNot es(queryBe an);
  1081           }  catch (Exc eption e)  {
  1082                logError (e);
  1083                throw ne w SOAPExce ption(e);
  1084           }
  1085  
  1086           re turn retur nVal;
  1087       }
  1088  
  1089       /**
  1090        * Fet ches a BHI E note ima ge.
  1091        *
  1092        * @pa ram queryB ean requir ed params:  provider,  itemid (c ontaining  bhie note  event id)
  1093        * @re turn Note  image
  1094        * @th rows javax .xml.soap. SOAPExcept ion if an  error occu rs.
  1095        */
  1096       @Overr ide
  1097       public  NoteImage  getBHIENo teImage(JM eadowsQuer y queryBea n) throws  SOAPExcept ion {
  1098           lo g("getBHIE NoteImage" , queryBea n);
  1099  
  1100           tr y {
  1101                return g etJMeadows DataPort(t rue).getBH IENoteImag e(queryBea n);
  1102  
  1103           }  catch (Exc eption e)  {
  1104                logError (e);
  1105                throw ne w SOAPExce ption(e);
  1106           }
  1107  
  1108       }
  1109  
  1110       /**
  1111        * Fet ches a BHI E note ima ge.
  1112        *
  1113        * @pa ram queryB ean requir ed params:  provider,  itemid (c ontaining  bhie note  event id)
  1114        * @re turn Note  image
  1115        * @th rows javax .xml.soap. SOAPExcept ion if an  error occu rs.
  1116        */
  1117       @Overr ide
  1118       public  NoteImage  getBHIENo teAttachme nt(JMeadow sQuery que ryBean) th rows SOAPE xception {
  1119           lo g("getBHIE NoteImage" , queryBea n);
  1120  
  1121           tr y {
  1122                return g etJMeadows DataPort(t rue).getBH IENoteAtta chment(que ryBean);
  1123  
  1124           }  catch (Exc eption e)  {
  1125                logError (e);
  1126                throw ne w SOAPExce ption(e);
  1127           }
  1128  
  1129       }
  1130  
  1131       @Overr ide
  1132       public  JMedResul tCollectio n getPatie ntRads(JMe adowsQuery  queryBean ) throws S OAPExcepti on {
  1133           lo g("getPati entRads",  queryBean) ;
  1134  
  1135           JM edResultCo llection r eturnVal =  null;
  1136  
  1137           tr y {
  1138  
  1139                JMeadows Data port  = getJMead owsDataPor t();
  1140                returnVa l = port.g etPatientR ads(queryB ean);
  1141           }  catch (Exc eption e)  {
  1142                logError (e);
  1143                throw ne w SOAPExce ption(e);
  1144           }
  1145  
  1146           re turn retur nVal;
  1147       }
  1148  
  1149       @Overr ide
  1150       public  JMedResul tCollectio n getPatie ntVitals(J MeadowsQue ry queryBe an) throws  SOAPExcep tion {
  1151           lo g("getPati entVitals" , queryBea n);
  1152  
  1153           JM edResultCo llection r eturnVal =  null;
  1154  
  1155           tr y {
  1156  
  1157                JMeadows Data port  = getJMead owsDataPor t();
  1158                returnVa l = port.g etPatientV itals(quer yBean);
  1159           }  catch (Exc eption e)  {
  1160                logError (e);
  1161                throw ne w SOAPExce ption(e);
  1162           }
  1163  
  1164           re turn retur nVal;
  1165       }
  1166  
  1167       //     public Pre scription  getPrescri ptionFills (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  1168   //         log("getPr escription Fills", qu eryBean);
  1169   //
  1170   //         Prescripti on returnV al = null;
  1171   //
  1172   //         try {
  1173   //
  1174   //             JMeado wsData por t = getJMe adowsDataP ort();
  1175   //             return Val = port .getPrescr iptionFill s(queryBea n);
  1176   //         } catch (E xception e ) {
  1177   //             throw  new SOAPEx ception(e) ;
  1178   //         }
  1179   //
  1180   //         return ret urnVal;
  1181   //
  1182   //    }
  1183       @Overr ide
  1184       public  JMedResul tCollectio n getPatie ntHistorie s(JMeadows Query quer yBean) thr ows SOAPEx ception {
  1185           lo g("getPati entHistori es", query Bean);
  1186  
  1187           JM edResultCo llection r eturnVal =  null;
  1188  
  1189           tr y {
  1190  
  1191                JMeadows Data port  = getJMead owsDataPor t();
  1192                returnVa l = port.g etPatientH istory(que ryBean);
  1193           }  catch (Exc eption e)  {
  1194                logError (e);
  1195                throw ne w SOAPExce ption(e);
  1196           }
  1197  
  1198           re turn retur nVal;
  1199       }
  1200  
  1201       @Overr ide
  1202       public  JMedResul tCollectio n getVLERD ocumentLis t(JMeadows Query quer yBean) thr ows SOAPEx ception {
  1203           lo g("getVLER DocumentLi st", query Bean);
  1204  
  1205           JM edResultCo llection r eturnVal =  null;
  1206  
  1207           tr y {
  1208  
  1209                JMeadows Data port  = getJMead owsDataPor t();
  1210                returnVa l = port.g etVLERDocu mentList(q ueryBean);
  1211           }  catch (Exc eption e)  {
  1212                logError (e);
  1213                throw ne w SOAPExce ption(e);
  1214           }
  1215  
  1216           re turn retur nVal;
  1217       }
  1218  
  1219       @Overr ide
  1220       public  JMedResul tCollectio n getDODVL ERDocument List(JMead owsQuery q ueryBean)  throws SOA PException  {
  1221           lo g("getDODV LERDocumen tList", qu eryBean);
  1222  
  1223           JM edResultCo llection r eturnVal =  null;
  1224  
  1225           tr y {
  1226  
  1227                JMeadows Data port  = getJMead owsDataPor t();
  1228                returnVa l = port.g etDODVLERD ocumentLis t(queryBea n);
  1229           }  catch (Exc eption e)  {
  1230                logError (e);
  1231                throw ne w SOAPExce ption(e);
  1232           }
  1233  
  1234           re turn retur nVal;
  1235       }
  1236  
  1237       @Overr ide
  1238       public  VlerDocum ent getVLE RDocument( JMeadowsQu ery queryB ean, VlerD ocument vD oc) throws  SOAPExcep tion {
  1239           lo g("getVLER Document",  queryBean );
  1240  
  1241           Vl erDocument  returnVal  = null;
  1242  
  1243           tr y {
  1244  
  1245                JMeadows Data port  = getJMead owsDataPor t();
  1246                returnVa l = port.g etVLERDocu ment(vDoc,  queryBean );
  1247           }  catch (Exc eption e)  {
  1248                logError (e);
  1249                throw ne w SOAPExce ption(e);
  1250           }
  1251  
  1252           re turn retur nVal;
  1253       }
  1254  
  1255       @Overr ide
  1256       public  JMedResul tCollectio n getDODVL ERPatientC CDA(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  1257           lo g("getDODV LERPatient CCDA", que ryBean);
  1258  
  1259           JM edResultCo llection r eturnVal =  null;
  1260  
  1261           tr y {
  1262  
  1263                JMeadows Data port  = getJMead owsDataPor t();
  1264                returnVa l = port.g etDODVLERP atientCCDA (queryBean );
  1265           }  catch (Exc eption e)  {
  1266                logError (e);
  1267                throw ne w SOAPExce ption(e);
  1268           }
  1269  
  1270           re turn retur nVal;
  1271       }
  1272  
  1273       @Overr ide
  1274       public  Vlerccda[ ] getDASVL ERPatientC CDA(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  1275           lo g("getDASV LERPatient CCDA", que ryBean);
  1276  
  1277           Vl erccda[] r eturnVal =  null;
  1278  
  1279           tr y {
  1280  
  1281                JMeadows Data port  = getJMead owsDataPor t();
  1282                returnVa l = port.g etDASPatie ntData(que ryBean).to Array(new  Vlerccda[0 ]);
  1283           }  catch (Exc eption e)  {
  1284                logError (e);
  1285                throw ne w SOAPExce ption(e);
  1286           }
  1287  
  1288           re turn retur nVal;
  1289       }
  1290  
  1291  
  1292       @Overr ide
  1293       public  ProblemDe tail getPr oblemDetai l(JMeadows Query quer yBean) thr ows SOAPEx ception {
  1294           lo g("getProb lemDetail" , queryBea n);
  1295  
  1296           Pr oblemDetai l returnVa l = null;
  1297  
  1298           tr y {
  1299  
  1300                JMeadows Data port  = getJMead owsDataPor t();
  1301                returnVa l = port.g etProblemD etail(quer yBean);
  1302           }  catch (Exc eption e)  {
  1303                logError (e);
  1304                throw ne w SOAPExce ption(e);
  1305           }
  1306  
  1307           re turn retur nVal;
  1308       }
  1309  
  1310       @Overr ide
  1311       public  FreeTextR eport getP rogressNot e(JMeadows Query quer yBean) thr ows SOAPEx ception {
  1312           lo g("getProg ressNote",  queryBean );
  1313  
  1314           Fr eeTextRepo rt returnV al = null;
  1315  
  1316           tr y {
  1317  
  1318                JMeadows Data port  = getJMead owsDataPor t();
  1319                returnVa l = port.g etProgress Note(query Bean);
  1320           }  catch (Exc eption e)  {
  1321                logError (e);
  1322                throw ne w SOAPExce ption(e);
  1323           }
  1324  
  1325           re turn retur nVal;
  1326       }
  1327  
  1328       @Overr ide
  1329       public  JMedResul tCollectio n getMhsGe nesisDocum ents(JMead owsQuery q ueryBean)  throws SOA PException  {
  1330           lo g("getMhsG enesisDocu ments", qu eryBean);
  1331  
  1332           JM edResultCo llection r eturnVal =  null;
  1333  
  1334           tr y {
  1335                JMeadows Data port  = getJMead owsDataPor t();
  1336                returnVa l = port.g etMhsGenes isDocument s(queryBea n);
  1337           }  catch (Exc eption e)  {
  1338                logError (e);
  1339                throw ne w SOAPExce ption(e);
  1340           }
  1341  
  1342           re turn retur nVal;
  1343       }
  1344  
  1345       @Overr ide
  1346       public  User getP roviderPro file(JMead owsQuery q ueryBean)  throws SOA PException  {
  1347           lo g("getProv iderProfil e", queryB ean);
  1348  
  1349           Us er returnV al = null;
  1350           tr y {
  1351  
  1352                JMeadows Data port  = getJMead owsDataPor t();
  1353                returnVa l = port.g etProvider Profile(qu eryBean);
  1354  
  1355           }  catch (Exc eption e)  {
  1356                logError (e);
  1357                throw ne w SOAPExce ption(e);
  1358           }
  1359           re turn retur nVal;
  1360       }
  1361  
  1362       @Overr ide
  1363       public  Radiology Report get RadiologyR eport(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  1364           lo g("getRadi ologyRepor t", queryB ean);
  1365  
  1366           Ra diologyRep ort return Val = null ;
  1367  
  1368           tr y {
  1369  
  1370                JMeadows Data port  = getJMead owsDataPor t();
  1371                returnVa l = port.g etRadiolog yReport(qu eryBean);
  1372           }  catch (Exc eption e)  {
  1373                logError (e);
  1374                throw ne w SOAPExce ption(e);
  1375           }
  1376  
  1377           re turn retur nVal;
  1378  
  1379       }
  1380  
  1381       @Overr ide
  1382       public  Alert[] g etUserAler ts(JMeadow sQuery que ryBean) th rows SOAPE xception {
  1383           lo g("getUser Alerts", q ueryBean);
  1384  
  1385           Al ert[] retu rnVal = nu ll;
  1386  
  1387           tr y {
  1388  
  1389                JMeadows Data port  = getJMead owsDataPor t();
  1390                returnVa l = port.g etUserAler ts(queryBe an).toArra y(new Aler t[0]);
  1391           }  catch (Exc eption e)  {
  1392                logError (e);
  1393                throw ne w SOAPExce ption(e);
  1394           }
  1395           re turn retur nVal;
  1396  
  1397       }
  1398  
  1399       @Overr ide
  1400       public  FreeTextR eport getV isitNotes( JMeadowsQu ery queryB ean) throw s SOAPExce ption {
  1401           lo g("getVisi tNotes", q ueryBean);
  1402  
  1403           Fr eeTextRepo rt returnV al = null;
  1404  
  1405           tr y {
  1406  
  1407                JMeadows Data port  = getJMead owsDataPor t();
  1408                returnVa l = port.g etVisitNot es(queryBe an);
  1409           }  catch (Exc eption e)  {
  1410                logError (e);
  1411                throw ne w SOAPExce ption(e);
  1412           }
  1413           re turn retur nVal;
  1414       }
  1415  
  1416       @Overr ide
  1417       public  FreeTextR eport getP atientEnco untersRepo rt(JMeadow sQuery que ryBean) th rows SOAPE xception {
  1418           lo g("getPati entEncount ersReport" , queryBea n);
  1419  
  1420           Fr eeTextRepo rt returnV al = null;
  1421  
  1422           tr y {
  1423  
  1424                JMeadows Data port  = getJMead owsDataPor t();
  1425                returnVa l = port.g etPatientE ncountersR eport(quer yBean);
  1426           }  catch (Exc eption e)  {
  1427                logError (e);
  1428                throw ne w SOAPExce ption(e);
  1429           }
  1430           re turn retur nVal;
  1431       }
  1432  
  1433       @Overr ide
  1434       public  Patient[]  lookupPat ient(JMead owsQuery q ueryBean)  throws SOA PException  {
  1435           lo g("lookupP atient", q ueryBean);
  1436  
  1437           Pa tient[] re turnVal =  null;
  1438  
  1439           tr y {
  1440  
  1441                JMeadows Data port  = getJMead owsDataPor t();
  1442                returnVa l = port.l ookupPatie nt(queryBe an).toArra y(new Pati ent[0]);
  1443           }  catch (Exc eption e)  {
  1444                logError (e);
  1445                throw ne w SOAPExce ption(e);
  1446           }
  1447  
  1448           re turn retur nVal;
  1449  
  1450       }
  1451  
  1452       @Overr ide
  1453       public  ResponseP atientQuer y lookupPa tientPDWS( PdwsQueryB ean queryB ean) throw s SOAPExce ption {
  1454           lo g("lookupP atientPDWS ");
  1455  
  1456           Re sponsePati entQuery r eturnVal =  null;
  1457  
  1458           tr y {
  1459                JMeadows Data port  = getJMead owsDataPor t();
  1460                returnVa l = port.l ookupPatie ntPDWS(que ryBean);
  1461           }  catch (Exc eption e)  {
  1462                logError (e);
  1463                throw ne w SOAPExce ption(e);
  1464           }
  1465  
  1466           re turn retur nVal;
  1467       }
  1468  
  1469       @Overr ide
  1470       public  ResponseP atientQuer y lookupPa tientMVI(P dwsQueryBe an queryBe an) throws  SOAPExcep tion {
  1471           lo g("lookupP atientMVI" );
  1472  
  1473           Re sponsePati entQuery r eturnVal =  null;
  1474  
  1475           tr y {
  1476                JMeadows Data port  = getJMead owsDataPor t();
  1477                returnVa l = port.l ookupPatie ntMVI(quer yBean);
  1478           }  catch (Exc eption e)  {
  1479                logError (e);
  1480                throw ne w SOAPExce ption(e);
  1481           }
  1482  
  1483           re turn retur nVal;
  1484       }
  1485  
  1486       @Overr ide
  1487       public  Patient s electPatie nt(JMeadow sQuery que ryBean) th rows SOAPE xception {
  1488           lo g("selectP atient", q ueryBean);
  1489  
  1490           Pa tient retu rnVal = nu ll;
  1491  
  1492           tr y {
  1493  
  1494                JMeadows Data port  = getJMead owsDataPor t();
  1495                returnVa l = port.s electPatie nt(queryBe an);
  1496           }  catch (Exc eption e)  {
  1497                logError (e);
  1498                throw ne w SOAPExce ption(e);
  1499           }
  1500  
  1501           re turn retur nVal;
  1502  
  1503       }
  1504  
  1505       @Overr ide
  1506       public  ResponseP atientSele ct selectP atientMVI( JMeadowsQu ery queryB ean) throw s SOAPExce ption {
  1507           lo g("selectP atientMVI" );
  1508  
  1509           Re sponsePati entSelect  returnVal  = null;
  1510  
  1511           tr y {
  1512                JMeadows Data port  = getJMead owsDataPor t();
  1513                returnVa l = port.s electPatie ntMVI(quer yBean);
  1514           }  catch (Exc eption e)  {
  1515                logError (e);
  1516                throw ne w SOAPExce ption(e);
  1517           }
  1518  
  1519           re turn retur nVal;
  1520       }
  1521  
  1522       @Overr ide
  1523       public  void sele ctPatientF orVASensit ive(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  1524           lo g("selectP atientForV ASensitive ");
  1525  
  1526           tr y {
  1527                JMeadows Data port  = getJMead owsDataPor t();
  1528                port.sel ectPatient ForVASensi tive(query Bean);
  1529           }  catch (Exc eption e)  {
  1530                logError (e);
  1531                throw ne w SOAPExce ption(e);
  1532           }
  1533       }
  1534  
  1535       @Overr ide
  1536       public  Alert[] g etVASensit ivePatient Alerts(JMe adowsQuery  queryBean ) throws S OAPExcepti on{
  1537           lo g("getVASe nsitivePat ientAlerts ");
  1538  
  1539           Al ert[] retu rnVal = nu ll;
  1540  
  1541           tr y {
  1542                JMeadows Data port  = getJMead owsDataPor t();
  1543                returnVa l = port.g etVASensit ivePatient Alerts(que ryBean).to Array(new  Alert[0]);
  1544           }  catch (Exc eption e)  {
  1545                logError (e);
  1546                throw ne w SOAPExce ption(e);
  1547           }
  1548           re turn retur nVal;
  1549  
  1550       }
  1551  
  1552  
  1553       @Overr ide
  1554       public  void audi tVARestric tedAccess( JMeadowsQu ery queryB ean) throw s SOAPExce ption {
  1555           lo g("auditVA Restricted Access");
  1556  
  1557           tr y {
  1558                JMeadows Data port  = getJMead owsDataPor t();
  1559                port.aud itVARestri ctedAccess (queryBean );
  1560           }  catch (Exc eption e)  {
  1561                logError (e);
  1562                throw ne w SOAPExce ption(e);
  1563           }
  1564       }
  1565  
  1566       @Overr ide
  1567       public  void audi tSensitive RecordAcce ss(JMeadow sQuery que ryBean) th rows SOAPE xception {
  1568           lo g("auditSe nsitiveRec ordAccess" );
  1569  
  1570           tr y {
  1571                JMeadows Data port  = getJMead owsDataPor t();
  1572                port.aud itSensitiv eRecordAcc ess(queryB ean);
  1573           }  catch (Exc eption e)  {
  1574                logError (e);
  1575                throw ne w SOAPExce ption(e);
  1576           }
  1577       }
  1578  
  1579       @Overr ide
  1580       public  void logA udit(Strin g siteId,  String sit eMoniker,  String sit eAgency, S tring reco rdID, Stri ng userId,  String pr oviderId,  String use rNPI,
  1581                              Strin g userName , String p atId, Stri ng categor y, String  requesting App,
  1582                              Strin g startDat e, String  endDate, S tring info , String c ardId, Str ing emailA ddress,
  1583                              Strin g complexT ransaction ) throws S OAPExcepti on {
  1584  
  1585           lo g("logAudi t");
  1586  
  1587           tr y {
  1588                JMeadows Data port  = getJMead owsDataPor t();
  1589                port.log Audit(site Id, siteMo niker, sit eAgency, r ecordID, u serId, pro viderId, u serNPI, us erName, pa tId,
  1590                         category,  appName, s tartDate,  endDate, i nfo, cardI d, emailAd dress, com plexTransa ction);
  1591           }  catch (Exc eption e)  {
  1592                logError (e);
  1593                throw ne w SOAPExce ption(e);
  1594           }
  1595  
  1596       }
  1597  
  1598   //    @Ove rride
  1599   //    publ ic void lo gAudit(Str ing siteId , String u serId, Str ing provid erId, Stri ng userNPI ,
  1600   //                           Str ing userNa me, String  patId, St ring categ ory,
  1601   //                           Str ing startD ate, Strin g endDate)  throws SO APExceptio n {
  1602   //
  1603   //         log("logAu dit");
  1604   //
  1605   //         try {
  1606   //             JMeado wsData por t = getJMe adowsDataP ort();
  1607   //             port.l ogAudit(si teId, user Id, provid erId, user NPI, userN ame, patId , category , appName,  startDate , endDate) ;
  1608   //         } catch (E xception e ) {
  1609   //             throw  new SOAPEx ception(e) ;
  1610   //         }
  1611   //
  1612   //    }
  1613  
  1614       @Overr ide
  1615       public  PatientAd mission[]  getProvide rAdmission s(JMeadows Query quer yBean) thr ows SOAPEx ception {
  1616  
  1617           lo g("getProv iderAdmiss ions", que ryBean);
  1618  
  1619           Pa tientAdmis sion[] ret urnVal = n ull;
  1620           tr y {
  1621                JMeadows Data port  = getJMead owsDataPor t();
  1622                returnVa l = port.g etProvider Admissions (queryBean ).toArray( new Patien tAdmission [0]);
  1623           }  catch (Exc eption e)  {
  1624                logError (e);
  1625                throw ne w SOAPExce ption(e);
  1626           }
  1627           re turn retur nVal;
  1628       }
  1629  
  1630       @Overr ide
  1631       public  PatientAp pointments [] getProv iderAppoin tments(JMe adowsQuery  queryBean ) throws S OAPExcepti on {
  1632           lo g("getProv iderAppoin tments", q ueryBean);
  1633  
  1634           Pa tientAppoi ntments[]  returnVal  = null;
  1635           tr y {
  1636                JMeadows Data port  = getJMead owsDataPor t();
  1637                returnVa l = port.g etProvider Appointmen ts(queryBe an).toArra y(new Pati entAppoint ments[0]);
  1638           }  catch (Exc eption e)  {
  1639                logError (e);
  1640                throw ne w SOAPExce ption(e);
  1641           }
  1642           re turn retur nVal;
  1643       }
  1644  
  1645       @Overr ide
  1646       public  Consult[]  getProvid erConsults Received(J MeadowsQue ry queryBe an) throws  SOAPExcep tion {
  1647           lo g("getProv iderConsul tsReceived ", queryBe an);
  1648  
  1649           Co nsult[] re turnVal =  null;
  1650           tr y {
  1651                JMeadows Data port  = getJMead owsDataPor t();
  1652                returnVa l = port.g etProvider ConsultsRe ceived(que ryBean).to Array(new  Consult[0] );
  1653           }  catch (Exc eption e)  {
  1654                logError (e);
  1655                throw ne w SOAPExce ption(e);
  1656           }
  1657           re turn retur nVal;
  1658       }
  1659  
  1660       @Overr ide
  1661       public  Consult[]  getProvid erConsults Requested( JMeadowsQu ery queryB ean) throw s SOAPExce ption {
  1662           lo g("getProv iderConsul tsRequeste d", queryB ean);
  1663  
  1664           Co nsult[] re turnVal =  null;
  1665           tr y {
  1666                JMeadows Data port  = getJMead owsDataPor t();
  1667                returnVa l = port.g etProvider ConsultsRe quested(qu eryBean).t oArray(new  Consult[0 ]);
  1668           }  catch (Exc eption e)  {
  1669                logError (e);
  1670                throw ne w SOAPExce ption(e);
  1671           }
  1672           re turn retur nVal;
  1673       }
  1674  
  1675       @Overr ide
  1676       public  LabResult [] getProv iderLabAbn ormalResul ts(JMeadow sQuery que ryBean) th rows SOAPE xception {
  1677           lo g("getProv iderLabAbn ormalResul ts", query Bean);
  1678  
  1679           La bResult[]  returnVal  = null;
  1680           tr y {
  1681                JMeadows Data port  = getJMead owsDataPor t();
  1682                returnVa l = port.g etProvider LabAbnorma lResults(q ueryBean). toArray(ne w LabResul t[0]);
  1683           }  catch (Exc eption e)  {
  1684                logError (e);
  1685                throw ne w SOAPExce ption(e);
  1686           }
  1687           re turn retur nVal;
  1688       }
  1689  
  1690       @Overr ide
  1691       public  Order[] g etProvider OrdersPend ing(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  1692           lo g("getProv iderOrders Pending",  queryBean) ;
  1693  
  1694           Or der[] retu rnVal = nu ll;
  1695           tr y {
  1696                JMeadows Data port  = getJMead owsDataPor t();
  1697                returnVa l = port.g etProvider OrdersPend ing(queryB ean).toArr ay(new Ord er[0]);
  1698           }  catch (Exc eption e)  {
  1699                logError (e);
  1700                throw ne w SOAPExce ption(e);
  1701           }
  1702           re turn retur nVal;
  1703       }
  1704  
  1705       @Overr ide
  1706       public  Order[] g etProvider OrdersResu lted(JMead owsQuery q ueryBean)  throws SOA PException  {
  1707           lo g("getProv iderOrders Resulted",  queryBean );
  1708  
  1709           Or der[] retu rnVal = nu ll;
  1710           tr y {
  1711                JMeadows Data port  = getJMead owsDataPor t();
  1712                returnVa l = port.g etProvider OrdersResu lted(query Bean).toAr ray(new Or der[0]);
  1713           }  catch (Exc eption e)  {
  1714                logError (e);
  1715                throw ne w SOAPExce ption(e);
  1716           }
  1717           re turn retur nVal;
  1718       }
  1719  
  1720       @Overr ide
  1721       public  ProgressN ote[] getP roviderUns ignedNotes (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  1722           lo g("getProv iderUnsign edNotes",  queryBean) ;
  1723  
  1724           Pr ogressNote [] returnV al = null;
  1725           tr y {
  1726                JMeadows Data port  = getJMead owsDataPor t();
  1727                returnVa l = port.g etProvider UnsignedNo tes(queryB ean).toArr ay(new Pro gressNote[ 0]);
  1728           }  catch (Exc eption e)  {
  1729                logError (e);
  1730                throw ne w SOAPExce ption(e);
  1731           }
  1732           re turn retur nVal;
  1733       }
  1734  
  1735       @Overr ide
  1736       public  boolean s etJanusGUI Config(JMe adowsQuery  queryBean , String c fg) throws  SOAPExcep tion {
  1737           lo g("setJanu sGUIConfig ", queryBe an);
  1738  
  1739           bo olean bRet  = false;
  1740           tr y {
  1741                JMeadows Data port  = getJMead owsDataPor t();
  1742                bRet = p ort.setJan usGUIConfi g(queryBea n, cfg);
  1743           }  catch (Exc eption e)  {
  1744                logError (e);
  1745                throw ne w SOAPExce ption(e);
  1746           }
  1747           re turn bRet;
  1748       }
  1749  
  1750       @Overr ide
  1751       public  String ge tJanusGUIC onfig(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  1752           lo g("getJanu sGUIConfig ", queryBe an);
  1753  
  1754           St ring retVa l = "";
  1755           tr y {
  1756                JMeadows Data port  = getJMead owsDataPor t();
  1757                retVal =  port.getJ anusGUICon fig(queryB ean);
  1758           }  catch (Exc eption e)  {
  1759                logError (e);
  1760                throw ne w SOAPExce ption(e);
  1761           }
  1762           re turn retVa l;
  1763       }
  1764  
  1765       @Overr ide
  1766       public  boolean s etProvider Flags(JMea dowsQuery  queryBean,  String fl ags) throw s SOAPExce ption {
  1767           lo g("setProv iderFlags" , queryBea n);
  1768  
  1769           bo olean bRet  = false;
  1770           tr y {
  1771                JMeadows Data port  = getJMead owsDataPor t();
  1772                bRet = p ort.setPro viderFlags (queryBean , flags);
  1773           }  catch (Exc eption e)  {
  1774                logError (e);
  1775                throw ne w SOAPExce ption(e);
  1776           }
  1777           re turn bRet;
  1778       }
  1779  
  1780       @Overr ide
  1781       public  String ge tProviderF lags(JMead owsQuery q ueryBean)  throws SOA PException  {
  1782           lo g("getProv iderFlags" , queryBea n);
  1783  
  1784           St ring retVa l = "";
  1785           tr y {
  1786                JMeadows Data port  = getJMead owsDataPor t();
  1787                retVal =  port.getP roviderFla gs(queryBe an);
  1788           }  catch (Exc eption e)  {
  1789                logError (e);
  1790                throw ne w SOAPExce ption(e);
  1791           }
  1792           re turn retVa l;
  1793       }
  1794  
  1795   //    @Ove rride
  1796   //    publ ic IehrUse rProfile g etIehrUser Profile(St ring smart CardID, St ring smart CardAgency ) throws S OAPExcepti on {
  1797   //         return get IehrUserPr ofile(smar tCardID, s martCardAg ency, "");
  1798   //    }
  1799  
  1800       @Overr ide
  1801       public  IehrUserP rofile get IehrUserPr ofile(Stri ng smartCa rdID, Stri ng smartCa rdAgency,  String ema ilAddress)  throws SO APExceptio n {
  1802           Ie hrUserProf ile retVal  = null;
  1803           tr y {
  1804                JMeadows Data port  = getJMead owsDataPor t();
  1805                retVal =  port.getI ehrUserPro file(smart CardID, sm artCardAge ncy, email Address);
  1806           }  catch (Exc eption e)  {
  1807                logError (e);
  1808                throw ne w SOAPExce ption(e);
  1809           }
  1810           re turn retVa l;
  1811       }
  1812  
  1813       @Overr ide
  1814       public  boolean s etIehrUser Profile(Ie hrUserProf ile userPr ofile) thr ows SOAPEx ception {
  1815           bo olean bRet  = false;
  1816           tr y {
  1817                JMeadows Data port  = getJMead owsDataPor t();
  1818                bRet = p ort.setIeh rUserProfi le(userPro file);
  1819           }  catch (Exc eption e)  {
  1820                logError (e);
  1821                throw ne w SOAPExce ption(e);
  1822           }
  1823           re turn bRet;
  1824       }
  1825  
  1826       @Overr ide
  1827       public  String ge tAppName()  {
  1828           re turn appNa me;
  1829       }
  1830  
  1831       @Overr ide
  1832       public  void setA ppName(Str ing appNam e) {
  1833           th is.appName  = appName ;
  1834       }
  1835  
  1836       @Overr ide
  1837       public  List<Site > getSites () throws  SOAPExcept ion {
  1838           Li st<Site> r etVal = nu ll;
  1839           tr y {
  1840                JMeadows Data port  = getJMead owsDataPor t();
  1841                retVal =  port.getS ites();
  1842           }  catch (Exc eption e)  {
  1843                logError (e);
  1844                throw ne w SOAPExce ption(e);
  1845           }
  1846           re turn retVa l;
  1847       }
  1848  
  1849       @Overr ide
  1850       public  List<Audi tEntry> ge tLoginInfo (String ca rdID, Stri ng emailAd dress) thr ows SOAPEx ception {
  1851           Li st<AuditEn try> retVa l = null;
  1852           tr y {
  1853                JMeadows Data port  = getJMead owsDataPor t();
  1854                retVal =  port.getL oginInfo(c ardID, ema ilAddress) ;
  1855           }  catch (Exc eption e)  {
  1856                logError (e);
  1857                throw ne w SOAPExce ption(e);
  1858           }
  1859           re turn retVa l;
  1860       }
  1861  
  1862   //    @Ove rride
  1863   //    publ ic String  getService Errors() t hrows SOAP Exception  {
  1864   //         String ret Val = null ;
  1865   //         try {
  1866   //             JMeado wsData por t = getJMe adowsDataP ort();
  1867   //             retVal  = port.ge tServiceEr rors();
  1868   //         } catch (E xception e ) {
  1869   //             logErr or(e);
  1870   //             throw  new SOAPEx ception(e) ;
  1871   //         }
  1872   //         return ret Val;
  1873   //    }
  1874  
  1875       @Overr ide
  1876       public  AuthUserI nfo getAut hUser(Auth UserInfo a uthUserInf oQuery) th rows SOAPE xception {
  1877           Au thUserInfo  retVal =  null;
  1878  
  1879           tr y {
  1880                JMeadows Data port  = getJMead owsDataPor t();
  1881                retVal =  port.getA uthUser(au thUserInfo Query);
  1882           }  catch (Exc eption e)  {
  1883                logError (e);
  1884                throw ne w SOAPExce ption(e);
  1885           }
  1886  
  1887           re turn retVa l;
  1888       }
  1889  
  1890       @Overr ide
  1891       public  List<Pati ent> getRe centlyView edPatients (String us erId) thro ws SOAPExc eption {
  1892           Li st<Patient > patients  = null;
  1893  
  1894           tr y {
  1895                JMeadows Data port  = getJMead owsDataPor t();
  1896                patients  = port.ge tRecentlyV iewedPatie nts(userId );
  1897           }
  1898           ca tch (Excep tion e) {
  1899                logError (e);
  1900                throw ne w SOAPExce ption(e);
  1901           }
  1902  
  1903           re turn patie nts;
  1904       }
  1905  
  1906       @Overr ide
  1907       public  void dele teRecently ViewedPati ents(Strin g userId)  throws SOA PException  {
  1908           tr y {
  1909                JMeadows Data port  = getJMead owsDataPor t();
  1910                port.del eteRecentl yViewedPat ients(user Id);
  1911           }
  1912           ca tch (Excep tion e) {
  1913                logError (e);
  1914                throw ne w SOAPExce ption(e);
  1915           }
  1916       }
  1917  
  1918       @Overr ide
  1919       public  String ge tPatientDo cumentVixS tudyViewer Url(JMeado wsQuery qu eryBean, P atientDocu ment docum ent) throw s SOAPExce ption {
  1920           tr y {
  1921                JMeadows Data port  = getJMead owsDataPor t();
  1922                return p ort.getPat ientDocume ntVixStudy ViewerUrl( queryBean,  document) ;
  1923           }  catch (Exc eption e)  {
  1924                logError (e);
  1925                throw ne w SOAPExce ption(e);
  1926           }
  1927       }
  1928  
  1929       @Overr ide
  1930       public  String ge tEncounter DocumentVi xStudyView erUrl(JMea dowsQuery  queryBean,  String do cumentId,  String doc umentSiteI d) throws  SOAPExcept ion {
  1931           tr y {
  1932                JMeadows Data port  = getJMead owsDataPor t();
  1933                return p ort.getEnc ounterDocu mentVixStu dyViewerUr l(queryBea n, documen tId, docum entSiteId) ;
  1934           }  catch (Exc eption e)  {
  1935                logError (e);
  1936                throw ne w SOAPExce ption(e);
  1937           }
  1938       }
  1939  
  1940       @Overr ide
  1941       public  String ge tRadiology VixStudyVi ewerUrl(JM eadowsQuer y queryBea n, Radiolo gyReport r adiologyRe port) thro ws SOAPExc eption {
  1942           tr y {
  1943                JMeadows Data port  = getJMead owsDataPor t();
  1944                return p ort.getRad iologyVixS tudyViewer Url(queryB ean, radio logyReport );
  1945           }  catch (Exc eption e)  {
  1946                logError (e);
  1947                throw ne w SOAPExce ption(e);
  1948           }
  1949       }
  1950  
  1951       @Overr ide
  1952       public  List<Stud yQueryStud y> getPati entCardiol ogyStudies (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  1953           tr y {
  1954                JMeadows Data port  = getJMead owsDataPor t();
  1955                return p ort.getPat ientCardio logyStudie s(queryBea n);
  1956           }  catch (Exc eption e)  {
  1957                logError (e);
  1958                throw ne w SOAPExce ption(e);
  1959           }
  1960       }
  1961  
  1962       @Overr ide
  1963       public  FreeTextR eport getP atientHeal thSummary( JMeadowsQu ery queryB ean) throw s SOAPExce ption {
  1964           tr y {
  1965                JMeadows Data port  = getJMead owsDataPor t();
  1966                return p ort.getPat ientHealth Summary(qu eryBean);
  1967           }  catch (Exc eption e)  {
  1968                logError (e);
  1969                throw ne w SOAPExce ption(e);
  1970           }
  1971       }
  1972  
  1973       @Overr ide
  1974       public  JMedResul tCollectio n getPatie ntHealthSu mmaryTypes (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  1975           tr y {
  1976                JMeadows Data port  = getJMead owsDataPor t();
  1977                return p ort.getPat ientHealth SummaryTyp es(queryBe an);
  1978           }  catch (Exc eption e)  {
  1979                logError (e);
  1980                throw ne w SOAPExce ption(e);
  1981           }
  1982       }
  1983  
  1984       @Overr ide
  1985       public  List<Free TextReport > getPatie ntHealthSu mmaries(JM eadowsQuer y queryBea n) throws  SOAPExcept ion {
  1986           tr y {
  1987                JMeadows Data port  = getJMead owsDataPor t();
  1988                return p ort.getPat ientHealth Summaries( queryBean) ;
  1989           }  catch (Exc eption e)  {
  1990                logError (e);
  1991                throw ne w SOAPExce ption(e);
  1992           }
  1993       }
  1994       
  1995       @Overr ide
  1996       public  List<Pce>  getPcesFo rNote(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  1997           tr y {
  1998                JMeadows Data port  = getJMead owsDataPor t();
  1999                return p ort.getPce sForNote(q ueryBean);
  2000           }  catch (Exc eption e)  {
  2001                logError (e);
  2002                throw ne w SOAPExce ption(e);
  2003           }
  2004       }
  2005  
  2006       @Overr ide
  2007       public  JMedResul tCollectio n getPatie ntSurgerie s(JMeadows Query quer yBean) thr ows SOAPEx ception {
  2008           tr y {
  2009                JMeadows Data port  = getJMead owsDataPor t();
  2010                return p ort.getPat ientSurger ies(queryB ean);
  2011           }  catch (Exc eption e)  {
  2012                logError (e);
  2013                throw ne w SOAPExce ption(e);
  2014           }
  2015       }
  2016  
  2017       @Overr ide
  2018       public  FreeTextR eport getS urgeryDeta il(JMeadow sQuery que ryBean) th rows SOAPE xception {
  2019           tr y {
  2020                JMeadows Data port  = getJMead owsDataPor t();
  2021                return p ort.getSur geryDetail (queryBean );
  2022           }  catch (Exc eption e)  {
  2023                logError (e);
  2024                throw ne w SOAPExce ption(e);
  2025           }
  2026       }
  2027  
  2028       @Overr ide
  2029       public  boolean s etLinkedDa ta(String  userId, St ring probl emId, Link DataDetail s linkData )
  2030                throws S OAPExcepti on {
  2031  
  2032           bo olean ret;
  2033  
  2034           tr y {
  2035                JMeadows Data port  = getJMead owsDataPor t();
  2036                ret = po rt.setLink edData(use rId, probl emId, link Data);
  2037           }
  2038           ca tch (Excep tion e) {
  2039                logError (e);
  2040                throw ne w SOAPExce ption(e);
  2041           }
  2042           re turn ret;
  2043       }
  2044  
  2045       @Overr ide
  2046       public  boolean r emoveLinke dData(Stri ng userId,  String pr oblemId, S tring link edDataId)  throws SOA PException  {
  2047  
  2048           bo olean ret;
  2049           tr y {
  2050                JMeadows Data port  = getJMead owsDataPor t();
  2051                ret = po rt.removeL inkedData( userId, pr oblemId, l inkedDataI d);
  2052           }
  2053           ca tch (Excep tion e) {
  2054                logError (e);
  2055                throw ne w SOAPExce ption(e);
  2056           }
  2057           re turn ret;
  2058       }
  2059  
  2060       @Overr ide
  2061       public  boolean s etLinkedDa taAuthor(L inkDataAut hor author , String p roblemId,  String lin kedDataId)  throws SO APExceptio n {
  2062  
  2063           bo olean ret;
  2064  
  2065           tr y {
  2066                JMeadows Data port  = getJMead owsDataPor t();
  2067                ret = po rt.setLink edDataAuth or(author,  problemId , linkedDa taId);
  2068           }
  2069           ca tch (Excep tion e) {
  2070                logError (e);
  2071                throw ne w SOAPExce ption(e);
  2072           }
  2073           re turn ret;
  2074       }
  2075       @Overr ide
  2076       public  boolean r emoveLinke dDataAutho r(String u serId, Str ing proble mId, Strin g linkedDa taId) thro ws SOAPExc eption {
  2077  
  2078           bo olean ret;
  2079  
  2080           tr y {
  2081                JMeadows Data port  = getJMead owsDataPor t();
  2082                ret = po rt.removeL inkedDataA uthor(user Id, proble mId, linke dDataId);
  2083           }
  2084           ca tch (Excep tion e) {
  2085                logError (e);
  2086                throw ne w SOAPExce ption(e);
  2087           }
  2088           re turn ret;
  2089       }
  2090  
  2091       privat e void log Error(Exce ption e){
  2092           lo gger.error ("JLV ERRO R: " + e.g etMessage( ), e);
  2093       }
  2094   }