2130. EPMO Open Source Coordination Office Redaction File Detail Report

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

2130.1 Files compared

# Location File Last Modified
1 JLV_CV_CV_2_9_1_0.zip\CV-CCP\src\java\gov\va\med\jmeadows JMeadowsServiceHandlerImpl.java Wed Mar 20 21:45:40 2019 UTC
2 JLV_CV_CV_2_9_1_0.zip\CV-CCP\src\java\gov\va\med\jmeadows JMeadowsServiceHandlerImpl.java Tue Mar 26 18:45:20 2019 UTC

2130.2 Comparison summary

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

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

2130.4 Active regular expressions

No regular expressions were active.

2130.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.gu ibeans.CGU INetwork;
  27   import gov .va.med.gu ibeans.CGU INotificat ion;
  28   import gov .va.med.jm eadows.web service.*;
  29   import gov .va.med.vh ahon.commo n.Utils;
  30   import org .apache.lo g4j.Logger ;
  31   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
  32  
  33   import jav ax.xml.nam espace.QNa me;
  34   import jav ax.xml.soa p.SOAPExce ption;
  35   import jav ax.xml.ws. BindingPro vider;
  36   import jav ax.xml.ws. handler.Ha ndler;
  37   import jav ax.xml.ws. soap.MTOMF eature;
  38   import jav a.nio.char set.Charse t;
  39   import jav a.util.Arr ayList;
  40   import jav a.util.Lis t;
  41  
  42   public cla ss JMeadow sServiceHa ndlerImpl  implements  JMeadowsS erviceHand ler {
  43  
  44       privat e static f inal Logge r logger =  Logger.ge tLogger(JM eadowsServ iceHandler Impl.class .getName() );
  45       @Autow ired
  46       protec ted AppCon fig appCon fig;
  47       privat e String s erviceURL;
  48       privat e String m _ServiceNa me;
  49       privat e String m _namespace ;
  50       privat e QName m_ QserviceNa me;
  51  
  52       privat e String a ppName;
  53  
  54       privat e String u sername;
  55       privat e String p assword;
  56  
  57       privat e int conn ectionTime outMS;
  58       privat e int requ estTimeout MS;
  59  
  60       privat e JMeadows DataServic e m_jmeado wsDataServ ice;
  61  
  62       public  final voi d init() {
  63           m_ ServiceNam e = "JMead owsDataSer vice";
  64             m_namespac e = "http: // DNS . URL         /";
  65           m_ QserviceNa me = new Q Name(m_nam espace, m_ ServiceNam e);
  66  
  67           co nnectionTi meoutMS =  30000;
  68           re questTimeo utMS = 300 00;
  69  
  70       }
  71  
  72       public  JMeadowsS erviceHand lerImpl(St ring url)  {
  73           se rviceURL =  url;
  74           in it();
  75       }
  76  
  77       public  JMeadowsS erviceHand lerImpl()  {
  78           in it();
  79       }
  80  
  81       public  int getCo nnectionTi meoutMS()  {
  82           re turn conne ctionTimeo utMS;
  83       }
  84  
  85       public  void setC onnectionT imeoutMS(i nt connect ionTimeout MS) {
  86           th is.connect ionTimeout MS = conne ctionTimeo utMS;
  87       }
  88  
  89       public  int getRe questTimeo utMS() {
  90           re turn reque stTimeoutM S;
  91       }
  92  
  93       public  void setR equestTime outMS(int  requestTim eoutMS) {
  94           th is.request TimeoutMS  = requestT imeoutMS;
  95       }
  96  
  97       public  String ge tServiceUR L() {
  98           re turn servi ceURL;
  99       }
  100  
  101       public  void setS erviceURL( String ser viceURL) {
  102           th is.service URL = serv iceURL;
  103       }
  104  
  105       privat e JMeadows Data getJM eadowsData Port() {
  106           re turn getJM eadowsData Port(false );
  107       }
  108  
  109       public  String ge tUsername( ) {
  110           re turn usern ame;
  111       }
  112  
  113       public  void setU sername(St ring usern ame) {
  114           th is.usernam e = userna me;
  115       }
  116  
  117       public  String ge tPassword( ) {
  118           re turn passw ord;
  119       }
  120  
  121       public  void setP assword(St ring passw ord) {
  122           th is.passwor d = passwo rd;
  123       }
  124  
  125       privat e JMeadows Data getJM eadowsData Port(boole an include MTOMFeatur e) {
  126           if  (m_jmeado wsDataServ ice == nul l) {
  127                createSe rvice();
  128                if (appC onfig.getE nableWSSec urityHeade r()) {
  129                    m_jm eadowsData Service.se tHandlerRe solver(new  HeaderHan dlerResolv er());
  130                }
  131           }
  132  
  133           JM eadowsData  port = nu ll;
  134           if  (includeM TOMFeature ) {
  135                port = m _jmeadowsD ataService .getJMeado wsDataPort (new MTOMF eature());
  136           }  else port  = m_jmeado wsDataServ ice.getJMe adowsDataP ort();
  137  
  138           // set connec tion timeo ut
  139           Bi ndingProvi der bp = ( BindingPro vider) por t;
  140           bp .getReques tContext() .put(Bindi ngProvider .ENDPOINT_ ADDRESS_PR OPERTY, se rviceURL);
  141           bp .getReques tContext() .put("com. sun.xml.in ternal.ws. connect.ti meout", co nnectionTi meoutMS);
  142           bp .getReques tContext() .put("com. sun.xml.in ternal.ws. request.ti meout", re questTimeo utMS);
  143           bp .getReques tContext() .put("com. sun.xml.ws .connect.t imeout", c onnectionT imeoutMS);
  144           bp .getReques tContext() .put("com. sun.xml.ws .request.t imeout", r equestTime outMS);
  145  
  146           // UNCOMMENT  FOR LOG DE BUGGING AN D PAYLOAD  RETRIEVAL
  147   //         bp.getBind ing().getH andlerChai n().add(ne w gov.va.m ed.jmeadow s.dataserv icehandler .SOAPLoggi ngHandler( ));
  148   //         List<Handl er> handle rList = bp .getBindin g().getHan dlerChain( );
  149   //         handlerLis t.add(new  gov.va.med .jmeadows. dataservic ehandler.S OAPLogging Handler()) ;
  150   //         bp.getBind ing().setH andlerChai n(handlerL ist);
  151  
  152           re turn port;
  153       }
  154  
  155       privat e synchron ized void  createServ ice() {
  156           if  (m_jmeado wsDataServ ice == nul l) {
  157                try {
  158                    m_jm eadowsData Service =  new JMeado wsDataServ ice();
  159                } catch  (Exception  e) {
  160                    thro w new Runt imeExcepti on(e);
  161                }
  162  
  163           }
  164       }
  165  
  166       privat e void log (String me thodName)  {
  167           lo g(methodNa me, null);
  168       }
  169  
  170       privat e void log (String me thodName,  JMeadowsQu ery queryB ean) {
  171           if  (logger.i sDebugEnab led()) {
  172                logger.d ebug("Invo king metho d: " + met hodName);
  173                if (quer yBean != n ull) {
  174                    logQ ueryBeanPa rams(metho dName, que ryBean);
  175                }
  176           }
  177       }
  178  
  179       privat e void log QueryBeanP arams(Stri ng methodN ame, JMead owsQuery q ueryBean)  {
  180           if  (!logger. isDebugEna bled()) re turn;
  181  
  182           St ring userI d;
  183           Si te hostSit e;
  184           St ring patVA Icn;
  185           St ring patDo DEdipi;
  186           Li st<Site> v istaSites  = new Arra yList<Site >();
  187           St ring itemI d;
  188           St ring recor dSiteCode;
  189           St ring statu s;
  190           In teger acti ve;
  191           St ring start Date;
  192           St ring endDa te;
  193  
  194           St ringBuilde r sb = new  StringBui lder();
  195           sb .append(me thodName);
  196           sb .append("  query bean  params: " );
  197  
  198           if  (queryBea n != null)  {
  199                User use r = queryB ean.getUse r();
  200                Patient  patient =  queryBean. getPatient ();
  201  
  202                if (user  != null)  {
  203                    user Id = user. getUserId( );
  204                    host Site = use r.getHostS ite();
  205  
  206                    sb.a ppend("Use r - userId : ");
  207                    sb.a ppend(user Id);
  208                    sb.a ppend(" ,  hostSite:  ");
  209                    if ( hostSite ! = null) sb .append(ho stSite.get SiteCode() );
  210                } else {
  211                    sb.a ppend("Use r - null") ;
  212                }
  213  
  214                if (pati ent != nul l) {
  215  
  216                    patV AIcn = pat ient.getIC N();
  217                    patD oDEdipi =  patient.ge tEDIPI();
  218  
  219                    sb.a ppend("; P atient - " );
  220                    sb.a ppend(", I CN: ");
  221                    sb.a ppend(patV AIcn);
  222                    sb.a ppend(", E DIPI: ");
  223                    sb.a ppend(patD oDEdipi);
  224  
  225                    sb.a ppend(", v istaSites:  ");
  226  
  227                    if ( vistaSites .size() <  1) sb.appe nd("none") ;
  228  
  229                    for  (Site site  : vistaSi tes) {
  230                         String sit eCode = si te.getSite Code();
  231                         sb.append( siteCode);
  232                         sb.append( ", ");
  233                    }
  234                } else {
  235                    sb.a ppend("; P atient - n ull");
  236                }
  237  
  238                itemId =  queryBean .getItemId ();
  239                active =  queryBean .getActive ();
  240                recordSi teCode = q ueryBean.g etRecordSi teCode();
  241                startDat e = Utils. formatDisp layDate(qu eryBean.ge tStartDate ());
  242                endDate  = Utils.fo rmatDispla yDate(quer yBean.getE ndDate());
  243                status =  queryBean .getStatus ();
  244  
  245                sb.appen d("; start Date: ");
  246                sb.appen d(startDat e);
  247                sb.appen d(", endDa te: ");
  248                sb.appen d(endDate) ;
  249                sb.appen d(", itemI d: ");
  250                sb.appen d(itemId);
  251                sb.appen d(", recor dSiteCode:  ");
  252                sb.appen d(recordSi teCode);
  253                sb.appen d(", statu s: ");
  254                sb.appen d(status);
  255                sb.appen d(", activ e: ");
  256                sb.appen d(active);
  257  
  258           }
  259  
  260           lo gger.debug (sb.toStri ng());
  261       }
  262  
  263       @Overr ide
  264       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  {
  265  
  266           lo g("loginEn terprise") ;
  267  
  268           Us er result  = null;
  269  
  270           tr y {
  271  
  272                JMeadows Data port  = getJMead owsDataPor t();
  273                result =  port.logi nEnterpris e(cardID,  siteCode,  accessCode , verifyCo de, appNam e, ipAddre ss, subjec tDN, email Address);
  274  
  275           }  catch (Exc eption e)  {
  276                throw ne w SOAPExce ption(e);
  277           }
  278  
  279           re turn resul t;
  280       }
  281  
  282   //    @Ove rride
  283   //    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  {
  284   //
  285   //         log("login Enterprise ");
  286   //
  287   //         User resul t = null;
  288   //
  289   //         try {
  290   //
  291   //             JMeado wsData por t = getJMe adowsDataP ort();
  292   //             result  = port.lo ginEnterpr ise(cardID , siteCode , accessCo de, verify Code, appN ame, ipAdd ress, subj ectDN, "") ;
  293   //
  294   //         } catch (E xception e ) {
  295   //             throw  new SOAPEx ception(e) ;
  296   //         }
  297   //
  298   //         return res ult;
  299   //
  300   //         //code to  mock DoD u ser
  301   ////         siteCode  = "200";
  302   ////
  303   ////         User use r = new Us er();
  304   ////         user.set EncryptedF ederatedUi d(EncryptU til.encryp t("1234567 89"));
  305   ////         user.set Name("Mock User,DoD") ;
  306   ////         user.set UserIen("1 234");
  307   ////         user.set ProviderIe n("4321");
  308   ////         user.set Agency("DO D");
  309   ////
  310   ////         JMeadows Data port  = getJMead owsDataPor t();
  311   ////         List<Sit e> sites =  port.getS ites();
  312   ////         java.uti l.Iterator <Site> it  = sites.it erator();
  313   ////         while(it .hasNext() )
  314   ////         {
  315   ////             Site  site = it .next();
  316   ////             if(s iteCode.eq ualsIgnore Case(site. getSiteCod e()))
  317   ////             {
  318   ////                  user.setHo stSite(sit e);
  319   ////                  break;
  320   ////             }
  321   ////         }
  322   ////         return u ser;
  323   //
  324   //    }
  325  
  326       @Overr ide
  327       public  Admission Detail get AdmissionD etails(JMe adowsQuery  queryBean ) throws S OAPExcepti on {
  328  
  329           lo g("getAdmi ssionDetai ls", query Bean);
  330  
  331           Ad missionDet ail return Val = null ;
  332  
  333           tr y {
  334  
  335                JMeadows Data port  = getJMead owsDataPor t();
  336                returnVa l = port.g etAdmissio nDetails(q ueryBean);
  337           }  catch (Exc eption e)  {
  338                throw ne w SOAPExce ption(e);
  339           }
  340  
  341  
  342           re turn retur nVal;
  343       }
  344  
  345       @Overr ide
  346       public  Diagnosis [] getAdmi ssionDiagn osis(JMead owsQuery q ueryBean)  throws SOA PException  {
  347  
  348           lo g("getAdmi ssionDiagn osis", que ryBean);
  349  
  350           Di agnosis[]  returnVal  = null;
  351  
  352           tr y {
  353  
  354                JMeadows Data port  = getJMead owsDataPor t();
  355                returnVa l = port.g etAdmissio nDiagnosis (queryBean ).toArray( new Diagno sis[0]);
  356           }  catch (Exc eption e)  {
  357                throw ne w SOAPExce ption(e);
  358           }
  359  
  360           re turn retur nVal;
  361  
  362       }
  363  
  364  
  365       @Overr ide
  366       public  Procedure [] getAdmi ssionProce dures(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  367  
  368           lo g("getAdmi ssionProce dures", qu eryBean);
  369  
  370           Pr ocedure[]  returnVal  = null;
  371  
  372           tr y {
  373  
  374                JMeadows Data port  = getJMead owsDataPor t();
  375                returnVa l = port.g etAdmissio nProcedure s(queryBea n).toArray (new Proce dure[0]);
  376           }  catch (Exc eption e)  {
  377                throw ne w SOAPExce ption(e);
  378           }
  379  
  380           re turn retur nVal;
  381       }
  382  
  383       @Overr ide
  384       public  FreeTextR eport getC linicalRem inderDetai l(JMeadows Query quer yBean) thr ows SOAPEx ception {
  385  
  386           lo g("getClin icalRemind erDetail",  queryBean );
  387  
  388           Fr eeTextRepo rt returnV al = null;
  389  
  390           tr y {
  391  
  392                JMeadows Data port  = getJMead owsDataPor t();
  393                returnVa l = port.g etClinical ReminderDe tail(query Bean);
  394           }  catch (Exc eption e)  {
  395                throw ne w SOAPExce ption(e);
  396           }
  397  
  398           re turn retur nVal;
  399  
  400       }
  401  
  402       @Overr ide
  403       public  FreeTextR eport[] ge tConsultRe port(JMead owsQuery q ueryBean)  throws SOA PException  {
  404  
  405           lo g("getCons ultReport" , queryBea n);
  406  
  407           Fr eeTextRepo rt[] retur nVal = nul l;
  408  
  409           tr y {
  410  
  411                JMeadows Data port  = getJMead owsDataPor t();
  412                returnVa l = port.g etConsultR eport(quer yBean).toA rray(new F reeTextRep ort[0]);
  413           }  catch (Exc eption e)  {
  414                throw ne w SOAPExce ption(e);
  415           }
  416  
  417           re turn retur nVal;
  418       }
  419  
  420       @Overr ide
  421       public  FreeTextR eport getM edicationD etails(JMe adowsQuery  queryBean ) throws S OAPExcepti on {
  422  
  423           lo g("getMedi cationDeta ils", quer yBean);
  424  
  425           Fr eeTextRepo rt returnV al = null;
  426  
  427           tr y {
  428  
  429                JMeadows Data port  = getJMead owsDataPor t();
  430                returnVa l = port.g etMedicati onDetail(q ueryBean);
  431           }  catch (Exc eption e)  {
  432                throw ne w SOAPExce ption(e);
  433           }
  434  
  435           re turn retur nVal;
  436       }
  437  
  438       @Overr ide
  439       public  LabResult [] getLabO rderResult (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  440           lo g("getLabO rderResult ", queryBe an);
  441  
  442           La bResult[]  returnVal  = null;
  443  
  444           tr y {
  445  
  446                JMeadows Data port  = getJMead owsDataPor t();
  447                returnVa l = port.g etLabOrder Result(que ryBean).to Array(new  LabResult[ 0]);
  448           }  catch (Exc eption e)  {
  449                throw ne w SOAPExce ption(e);
  450           }
  451  
  452           re turn retur nVal;
  453       }
  454  
  455       @Overr ide
  456       public  FreeTextR eport getO rderDetail (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  457  
  458           lo g("getOrde rDetail",  queryBean) ;
  459  
  460           Fr eeTextRepo rt returnV al = null;
  461  
  462           tr y {
  463  
  464                JMeadows Data port  = getJMead owsDataPor t();
  465                returnVa l = port.g etOrderDet ail(queryB ean);
  466           }  catch (Exc eption e)  {
  467                throw ne w SOAPExce ption(e);
  468           }
  469  
  470           re turn retur nVal;
  471       }
  472  
  473       @Overr ide
  474       public  PatientAd mission[]  getPatient Admissions (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  475  
  476           lo g("getPati entAdmissi ons", quer yBean);
  477  
  478           Pa tientAdmis sion[] ret urnVal = n ull;
  479  
  480           tr y {
  481  
  482                JMeadows Data port  = getJMead owsDataPor t();
  483                returnVa l = port.g etPatientA dmissions( queryBean) .toArray(n ew Patient Admission[ 0]);
  484           }  catch (Exc eption e)  {
  485                throw ne w SOAPExce ption(e);
  486           }
  487  
  488           re turn retur nVal;
  489       }
  490  
  491       @Overr ide
  492       public  Allergy[]  getPatien tAllergies (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  493           lo g("getPati entAllergi es", query Bean);
  494  
  495           Al lergy[] re turnVal =  null;
  496  
  497           tr y {
  498  
  499                JMeadows Data port  = getJMead owsDataPor t();
  500                returnVa l = port.g etPatientA llergies(q ueryBean). toArray(ne w Allergy[ 0]);
  501           }  catch (Exc eption e)  {
  502                throw ne w SOAPExce ption(e);
  503           }
  504  
  505           re turn retur nVal;
  506       }
  507  
  508       @Overr ide
  509       public  AllergyDe tail getAl lergyDetai l(JMeadows Query quer yBean) thr ows SOAPEx ception {
  510           lo g("getAlle rgyDetail" , queryBea n);
  511  
  512           Al lergyDetai l returnVa l = null;
  513  
  514           tr y {
  515  
  516                JMeadows Data port  = getJMead owsDataPor t();
  517                returnVa l = port.g etAllergyD etail(quer yBean);
  518           }  catch (Exc eption e)  {
  519                throw ne w SOAPExce ption(e);
  520           }
  521  
  522           re turn retur nVal;
  523       }
  524  
  525       @Overr ide
  526       public  PatientAp pointments [] getPati entAppoint ments(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  527           lo g("getPati entAppoint ments", qu eryBean);
  528  
  529           Pa tientAppoi ntments[]  returnVal  = null;
  530  
  531           tr y {
  532  
  533                JMeadows Data port  = getJMead owsDataPor t();
  534                returnVa l = port.g etPatientA ppointment s(queryBea n).toArray (new Patie ntAppointm ents[0]);
  535           }  catch (Exc eption e)  {
  536                throw ne w SOAPExce ption(e);
  537           }
  538  
  539           re turn retur nVal;
  540       }
  541  
  542       @Overr ide
  543       public  Encounter [] getPati entEncount ers(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  544           lo g("getPati entEncount er", query Bean);
  545  
  546           En counter[]  returnVal  = null;
  547  
  548           tr y {
  549  
  550                JMeadows Data port  = getJMead owsDataPor t();
  551                returnVa l = port.g etPatientE ncounters( queryBean) .toArray(n ew Encount er[0]);
  552           }  catch (Exc eption e)  {
  553                throw ne w SOAPExce ption(e);
  554           }
  555  
  556           re turn retur nVal;
  557       }
  558  
  559       @Overr ide
  560       public  ClinicalR eminder[]  getPatient ClinicalRe minders(JM eadowsQuer y queryBea n) throws  SOAPExcept ion {
  561           lo g("getPati entClinica lReminders ", queryBe an);
  562  
  563           Cl inicalRemi nder[] ret urnVal = n ull;
  564  
  565           tr y {
  566  
  567                JMeadows Data port  = getJMead owsDataPor t();
  568                returnVa l = port.g etPatientC linicalRem inders(que ryBean).to Array(new  ClinicalRe minder[0]) ;
  569           }  catch (Exc eption e)  {
  570                throw ne w SOAPExce ption(e);
  571           }
  572  
  573           re turn retur nVal;
  574       }
  575  
  576       @Overr ide
  577       public  Consult[]  getPatien tConsultRe quests(JMe adowsQuery  queryBean ) throws S OAPExcepti on {
  578           lo g("getPati entConsult Requests",  queryBean );
  579  
  580           Co nsult[] re turnVal =  null;
  581  
  582           tr y {
  583  
  584                JMeadows Data port  = getJMead owsDataPor t();
  585                returnVa l = port.g etPatientC onsultRequ ests(query Bean).toAr ray(new Co nsult[0]);
  586           }  catch (Exc eption e)  {
  587                throw ne w SOAPExce ption(e);
  588           }
  589  
  590           re turn retur nVal;
  591       }
  592  
  593       @Overr ide
  594       public  Vitals[]  getPatient CurrentVit als(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  595           lo g("getPati entCurrent Vitals", q ueryBean);
  596  
  597           Vi tals[] ret urnVal = n ull;
  598  
  599           tr y {
  600  
  601                JMeadows Data port  = getJMead owsDataPor t();
  602                returnVa l = port.g etPatientC urrentVita ls(queryBe an).toArra y(new Vita ls[0]);
  603           }  catch (Exc eption e)  {
  604                throw ne w SOAPExce ption(e);
  605           }
  606  
  607           re turn retur nVal;
  608  
  609       }
  610  
  611       @Overr ide
  612       public  List<Pati entDemogra phicsDetai l> getAllP atientDemo graphicDet ails(JMead owsQuery q ueryBean)  throws SOA PException  {
  613           lo g("getAllP atientDemo graphicDet ails", que ryBean);
  614  
  615           Li st<Patient Demographi csDetail>  returnVal  = null;
  616           tr y {
  617  
  618                JMeadows Data port  = getJMead owsDataPor t();
  619                returnVa l = port.g etPatientD emographic sDetail(qu eryBean);
  620           }  catch (Exc eption e)  {
  621                throw ne w SOAPExce ption(e);
  622           }
  623           re turn retur nVal;
  624       }
  625  
  626       @Overr ide
  627       public  List<Pati entDemogra phics> get PatientDem ographics( JMeadowsQu ery queryB ean) throw s SOAPExce ption {
  628           lo g("getPati entDemogra phics", qu eryBean);
  629  
  630           Li st<Patient Demographi cs> return Val = null ;
  631           tr y {
  632  
  633                JMeadows Data port  = getJMead owsDataPor t();
  634                returnVa l = port.g etPatientD emographic s(queryBea n);
  635           }  catch (Exc eption e)  {
  636                throw ne w SOAPExce ption(e);
  637           }
  638           re turn retur nVal;
  639       }
  640  
  641       @Overr ide
  642       public  Procedure [] getPati entProcedu res(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  643           lo g("getPati entProcedu res", quer yBean);
  644  
  645           Pr ocedure[]  returnVal  = null;
  646  
  647           tr y {
  648  
  649                JMeadows Data port  = getJMead owsDataPor t();
  650                returnVa l = port.g etOutpatie ntProcedur es(queryBe an).toArra y(new Proc edure[0]);
  651           }  catch (Exc eption e)  {
  652                logError (e);
  653                throw ne w SOAPExce ption(e);
  654           }
  655  
  656           re turn retur nVal;
  657       }
  658  
  659  
  660   //    @Ove rride
  661   //    publ ic Questio nnaireBean [] getPati entQuestio nnaires(JM eadowsQuer y queryBea n) throws  SOAPExcept ion {
  662   //         log("getPa tientQuest ionnaires" , queryBea n);
  663   //
  664   //         Questionna ireBean[]  returnVal  = null;
  665   //
  666   //         try {
  667   //
  668   //             JMeado wsData por t = getJMe adowsDataP ort();
  669   //             return Val = port .getPatien tQuestionn aires(quer yBean).toA rray(new Q uestionnai reBean[0]) ;
  670   //         } catch (E xception e ) {
  671   //             throw  new SOAPEx ception(e) ;
  672   //         }
  673   //
  674   //         return ret urnVal;
  675   //    }
  676  
  677       @Overr ide
  678       public  Form[] ge tPatientFo rms(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  679           lo g("getPati entForms",  queryBean );
  680  
  681           Fo rm[] retur nVal = nul l;
  682  
  683           tr y {
  684  
  685                JMeadows Data port  = getJMead owsDataPor t();
  686                returnVa l = port.g etPatientF orms(query Bean).toAr ray(new Fo rm[0]);
  687           }  catch (Exc eption e)  {
  688                throw ne w SOAPExce ption(e);
  689           }
  690  
  691           re turn retur nVal;
  692       }
  693  
  694       @Overr ide
  695       public  ProgressN ote[] getP atientDisc hargeSumma ries(JMead owsQuery q ueryBean)  throws SOA PException  {
  696           lo g("getPati entDischar geSummarie s", queryB ean);
  697  
  698           Pr ogressNote [] returnV al = null;
  699  
  700           tr y {
  701  
  702                JMeadows Data port  = getJMead owsDataPor t();
  703                returnVa l = port.g etPatientD ischargeSu mmaries(qu eryBean).t oArray(new  ProgressN ote[0]);
  704           }  catch (Exc eption e)  {
  705                throw ne w SOAPExce ption(e);
  706           }
  707  
  708           re turn retur nVal;
  709       }
  710  
  711       @Overr ide
  712       public  Immunizat ion[] getP atientImmu nizations( JMeadowsQu ery queryB ean) throw s SOAPExce ption {
  713           lo g("getPati entImmuniz ations", q ueryBean);
  714  
  715           Im munization [] returnV al = null;
  716           tr y {
  717  
  718                JMeadows Data port  = getJMead owsDataPor t();
  719                returnVa l = port.g etPatientI mmunizatio ns(queryBe an).toArra y(new Immu nization[0 ]);
  720           }  catch (Exc eption e)  {
  721                throw ne w SOAPExce ption(e);
  722           }
  723           re turn retur nVal;
  724       }
  725  
  726       @Overr ide
  727       public  Insurance Bean[] get PatientIns urances(JM eadowsQuer y queryBea n) throws  SOAPExcept ion {
  728           lo g("getPati entInsuran ces", quer yBean);
  729  
  730           In suranceBea n[] return Val = null ;
  731  
  732           tr y {
  733                JMeadows Data port  = getJMead owsDataPor t();
  734                returnVa l = port.g etPatientI nsurances( queryBean) .toArray(n ew Insuran ceBean[0]) ;
  735  
  736           }  catch (Exc eption e)  {
  737                throw ne w SOAPExce ption(e);
  738           }
  739  
  740           re turn retur nVal;
  741       }
  742  
  743  
  744       @Overr ide
  745       public  LabOrder[ ] getPatie ntLabs(JMe adowsQuery  queryBean ) throws S OAPExcepti on {
  746           lo g("getPati entLabs",  queryBean) ;
  747  
  748           La bOrder[] r eturnVal =  null;
  749           tr y {
  750  
  751                JMeadows Data port  = getJMead owsDataPor t();
  752                returnVa l = port.g etPatientL abs(queryB ean).toArr ay(new Lab Order[0]);
  753           }  catch (Exc eption e)  {
  754                throw ne w SOAPExce ption(e);
  755           }
  756  
  757           re turn retur nVal;
  758       }
  759  
  760       @Overr ide
  761       public  FreeTextR eport getP atientLabR eport(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  762           lo g("getPati entLabRepo rt", query Bean);
  763  
  764           Fr eeTextRepo rt returnV al = null;
  765           tr y {
  766  
  767                JMeadows Data port  = getJMead owsDataPor t();
  768                returnVa l = port.g etPatientL abReport(q ueryBean);
  769           }  catch (Exc eption e)  {
  770                throw ne w SOAPExce ption(e);
  771           }
  772  
  773           re turn retur nVal;
  774       }
  775  
  776       @Overr ide
  777       public  LabResult [] getPati entLabTest Results(JM eadowsQuer y queryBea n) throws  SOAPExcept ion {
  778           lo g("getPati entLabTest Results",  queryBean) ;
  779  
  780           La bResult[]  returnVal  = null;
  781           tr y {
  782  
  783                JMeadows Data port  = getJMead owsDataPor t();
  784                returnVa l = port.g etPatientL abTestResu lts(queryB ean).toArr ay(new Lab Result[0]) ;
  785           }  catch (Exc eption e)  {
  786                throw ne w SOAPExce ption(e);
  787           }
  788  
  789           re turn retur nVal;
  790       }
  791  
  792       @Overr ide
  793       public  LabResult [] getPati entLabResu lts(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  794           lo g("getPati entLabResu lts", quer yBean);
  795  
  796           La bResult[]  returnVal  = null;
  797           tr y {
  798  
  799                JMeadows Data port  = getJMead owsDataPor t();
  800                returnVa l = port.g etPatientL abResults( queryBean) .toArray(n ew LabResu lt[0]);
  801           }  catch (Exc eption e)  {
  802                throw ne w SOAPExce ption(e);
  803           }
  804  
  805           re turn retur nVal;
  806       }
  807  
  808       @Overr ide
  809       public  Medicatio n[] getPat ientMedica tions(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  810           lo g("getPati entMedicat ions", que ryBean);
  811  
  812           Me dication[]  returnVal  = null;
  813           tr y {
  814  
  815                JMeadows Data port  = getJMead owsDataPor t();
  816                returnVa l = port.g etPatientM edications (queryBean ).toArray( new Medica tion[0]);
  817           }  catch (Exc eption e)  {
  818                throw ne w SOAPExce ption(e);
  819           }
  820  
  821           re turn retur nVal;
  822       }
  823  
  824   //    publ ic Medicat ion[] getP atientMedi cationsNVA (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  825   //         log("getPa tientMedic ationsNVA" , queryBea n);
  826   //
  827   //         Medication [] returnV al = null;
  828   //         try {
  829   //
  830   //             JMeado wsData por t = getJMe adowsDataP ort();
  831   //             return Val = port .getPatien tMedicatio nsNVA(quer yBean).toA rray(new M edication[ 0]);
  832   //         } catch (E xception e ) {
  833   //             throw  new SOAPEx ception(e) ;
  834   //         }
  835   //         return ret urnVal;
  836   //
  837   //    }
  838  
  839       @Overr ide
  840       public  Order[] g etPatientO rders(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  841           lo g("getPati entOrders" , queryBea n);
  842  
  843           Or der[] retu rnVal = nu ll;
  844  
  845           tr y {
  846  
  847                JMeadows Data port  = getJMead owsDataPor t();
  848                returnVa l = port.g etPatientO rders(quer yBean).toA rray(new O rder[0]);
  849           }  catch (Exc eption e)  {
  850                throw ne w SOAPExce ption(e);
  851           }
  852  
  853           re turn retur nVal;
  854       }
  855  
  856       @Overr ide
  857       public  Problem[]  getPatien tProblemLi st(JMeadow sQuery que ryBean) th rows SOAPE xception {
  858           lo g("getPati entProblem List", que ryBean);
  859  
  860           Pr oblem[] re turnVal =  null;
  861  
  862           tr y {
  863  
  864                JMeadows Data port  = getJMead owsDataPor t();
  865                returnVa l = port.g etPatientP roblemList (queryBean ).toArray( new Proble m[0]);
  866           }  catch (Exc eption e)  {
  867                throw ne w SOAPExce ption(e);
  868           }
  869  
  870           re turn retur nVal;
  871       }
  872  
  873   //      pu blic Proce dure[] get PatientPro cedures(JM eadowsQuer y queryBea n) throws  SOAPExcept ion
  874   //      {
  875   //               Proc edure[] re turnVal =  null;
  876   //
  877   //         try {
  878   //
  879   //                      JMeadows Data port  = getJMead owsDataPor t();
  880   //                      returnVa l = port.g etPatientP rocedures( queryBean) .toArray(n ew Procedu re[0]);
  881   //             }
  882   //             catch  (Exception  e)
  883   //             {
  884   //                      throw ne w SOAPExce ption(e);
  885   //             }
  886   //
  887   //         return ret urnVal;
  888   //
  889   //      }
  890  
  891       @Overr ide
  892       public  ProgressN ote[] getP atientProg ressNotes( JMeadowsQu ery queryB ean) throw s SOAPExce ption {
  893           lo g("getPati entProgres sNotes", q ueryBean);
  894  
  895           Pr ogressNote [] returnV al = null;
  896  
  897           tr y {
  898  
  899                JMeadows Data port  = getJMead owsDataPor t();
  900                returnVa l = port.g etPatientP rogressNot es(queryBe an).toArra y(new Prog ressNote[0 ]);
  901           }  catch (Exc eption e)  {
  902                throw ne w SOAPExce ption(e);
  903           }
  904  
  905           re turn retur nVal;
  906       }
  907  
  908       @Overr ide
  909       public  ProgressN ote[] getP atientPain ProgressNo tes(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  910           lo g("getPati entPainPro gressNotes ", queryBe an);
  911  
  912           Pr ogressNote [] returnV al = null;
  913  
  914           tr y {
  915  
  916                JMeadows Data port  = getJMead owsDataPor t();
  917                returnVa l = port.g etPatientP ainProgres sNotes(que ryBean).to Array(new  ProgressNo te[0]);
  918           }  catch (Exc eption e)  {
  919                throw ne w SOAPExce ption(e);
  920           }
  921  
  922           re turn retur nVal;
  923       }
  924  
  925       /**
  926        * Fet ches a BHI E note ima ge.
  927        *
  928        * @pa ram queryB ean requir ed params:  provider,  itemid (c ontaining  bhie note  event id)
  929        * @re turn Note  image
  930        * @th rows javax .xml.soap. SOAPExcept ion if an  error occu rs.
  931        */
  932       @Overr ide
  933       public  NoteImage  getBHIENo teImage(JM eadowsQuer y queryBea n) throws  SOAPExcept ion {
  934           lo g("getBHIE NoteImage" , queryBea n);
  935  
  936           tr y {
  937                return g etJMeadows DataPort(t rue).getBH IENoteImag e(queryBea n);
  938  
  939           }  catch (Exc eption e)  {
  940                throw ne w SOAPExce ption(e);
  941           }
  942  
  943       }
  944  
  945       @Overr ide
  946       public  Radiology Report[] g etPatientR ads(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  947           lo g("getPati entRads",  queryBean) ;
  948  
  949           Ra diologyRep ort[] retu rnVal = nu ll;
  950  
  951           tr y {
  952  
  953                JMeadows Data port  = getJMead owsDataPor t();
  954                returnVa l = port.g etPatientR ads(queryB ean).toArr ay(new Rad iologyRepo rt[0]);
  955           }  catch (Exc eption e)  {
  956                throw ne w SOAPExce ption(e);
  957           }
  958  
  959           re turn retur nVal;
  960       }
  961  
  962       @Overr ide
  963       public  Vitals[]  getPatient Vitals(JMe adowsQuery  queryBean ) throws S OAPExcepti on {
  964           lo g("getPati entVitals" , queryBea n);
  965  
  966           Vi tals[] ret urnVal = n ull;
  967  
  968           tr y {
  969  
  970                JMeadows Data port  = getJMead owsDataPor t();
  971                returnVa l = port.g etPatientV itals(quer yBean).toA rray(new V itals[0]);
  972           }  catch (Exc eption e)  {
  973                throw ne w SOAPExce ption(e);
  974           }
  975  
  976           re turn retur nVal;
  977       }
  978  
  979       //     public Pre scription  getPrescri ptionFills (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  980   //         log("getPr escription Fills", qu eryBean);
  981   //
  982   //         Prescripti on returnV al = null;
  983   //
  984   //         try {
  985   //
  986   //             JMeado wsData por t = getJMe adowsDataP ort();
  987   //             return Val = port .getPrescr iptionFill s(queryBea n);
  988   //         } catch (E xception e ) {
  989   //             throw  new SOAPEx ception(e) ;
  990   //         }
  991   //
  992   //         return ret urnVal;
  993   //
  994   //    }
  995       @Overr ide
  996       public  PatientHi story[] ge tPatientHi stories(JM eadowsQuer y queryBea n) throws  SOAPExcept ion {
  997           lo g("getPati entHistori es", query Bean);
  998  
  999           Pa tientHisto ry[] retur nVal = nul l;
  1000  
  1001           tr y {
  1002  
  1003                JMeadows Data port  = getJMead owsDataPor t();
  1004                returnVa l = port.g etPatientH istory(que ryBean).to Array(new  PatientHis tory[0]);
  1005           }  catch (Exc eption e)  {
  1006                throw ne w SOAPExce ption(e);
  1007           }
  1008  
  1009           re turn retur nVal;
  1010       }
  1011  
  1012       @Overr ide
  1013       public  VlerDocum ent[] getV LERDocumen tList(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  1014           lo g("getVLER DocumentLi st", query Bean);
  1015  
  1016           Vl erDocument [] returnV al = null;
  1017  
  1018           tr y {
  1019  
  1020                JMeadows Data port  = getJMead owsDataPor t();
  1021                returnVa l = port.g etVLERDocu mentList(q ueryBean). toArray(ne w VlerDocu ment[0]);
  1022           }  catch (Exc eption e)  {
  1023                throw ne w SOAPExce ption(e);
  1024           }
  1025  
  1026           re turn retur nVal;
  1027       }
  1028  
  1029       @Overr ide
  1030       public  VlerDocum ent getVLE RDocument( JMeadowsQu ery queryB ean, VlerD ocument vD oc) throws  SOAPExcep tion {
  1031           lo g("getVLER Document",  queryBean );
  1032  
  1033           Vl erDocument  returnVal  = null;
  1034  
  1035           tr y {
  1036  
  1037                JMeadows Data port  = getJMead owsDataPor t();
  1038                returnVa l = port.g etVLERDocu ment(vDoc,  queryBean );
  1039           }  catch (Exc eption e)  {
  1040                throw ne w SOAPExce ption(e);
  1041           }
  1042  
  1043           re turn retur nVal;
  1044       }
  1045  
  1046       @Overr ide
  1047       public  Vlerccda[ ] getDODVL ERPatientC CDA(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  1048           lo g("getDODV LERPatient CCDA", que ryBean);
  1049  
  1050           Vl erccda[] r eturnVal =  null;
  1051  
  1052           tr y {
  1053  
  1054                JMeadows Data port  = getJMead owsDataPor t();
  1055                returnVa l = port.g etDODVLERP atientCCDA (queryBean ).toArray( new Vlercc da[0]);
  1056           }  catch (Exc eption e)  {
  1057                throw ne w SOAPExce ption(e);
  1058           }
  1059  
  1060           re turn retur nVal;
  1061       }
  1062  
  1063       @Overr ide
  1064       public  String re trievePati entIcnFrom Ien(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  1065           St ring icn =  "";
  1066  
  1067           tr y {
  1068                JMeadows Data port  = getJMead owsDataPor t();
  1069                icn = po rt.retriev ePatientIc nFromIen(q ueryBean);
  1070           }  catch (Exc eption e)  {
  1071                throw ne w SOAPExce ption(e);
  1072           }
  1073  
  1074           re turn icn;
  1075       }
  1076  
  1077  
  1078       /*---- - PROVIDER  -----*/
  1079  
  1080       @Overr ide
  1081       public  boolean c reateProvi der(JMeado wsQuery qb , CProvide r p) throw s SOAPExce ption {
  1082           bo olean bRet  = false;
  1083           tr y {
  1084                JMeadows Data port  = getJMead owsDataPor t();
  1085                bRet = p ort.create Provider(q b, p);
  1086           }  catch (Exc eption e)  {
  1087                throw ne w SOAPExce ption(e);
  1088           }
  1089           re turn bRet;
  1090       }
  1091  
  1092       @Overr ide
  1093       public  boolean u pdateProvi der(JMeado wsQuery qb , CProvide r p) throw s SOAPExce ption {
  1094           bo olean bRet  = false;
  1095           tr y {
  1096                JMeadows Data port  = getJMead owsDataPor t();
  1097                bRet = p ort.update Provider(q b, p);
  1098           }  catch (Exc eption e)  {
  1099                throw ne w SOAPExce ption(e);
  1100           }
  1101           re turn bRet;
  1102       }
  1103  
  1104       @Overr ide
  1105       public  boolean d eleteProvi der(JMeado wsQuery qb , String i d) throws  SOAPExcept ion {
  1106           bo olean bRet  = false;
  1107           tr y {
  1108                JMeadows Data port  = getJMead owsDataPor t();
  1109                bRet = p ort.delete Provider(q b, id);
  1110           }  catch (Exc eption e)  {
  1111                throw ne w SOAPExce ption(e);
  1112           }
  1113           re turn bRet;
  1114       }
  1115  
  1116       @Overr ide
  1117       public  CProvider  retrieveP rovider(JM eadowsQuer y qb, Stri ng usernam e) throws  SOAPExcept ion {
  1118  
  1119           CP rovider re turnVal =  null;
  1120  
  1121           tr y {
  1122                JMeadows Data port  = getJMead owsDataPor t();
  1123                returnVa l = port.r etrievePro vider(qb,  username);
  1124           }  catch (Exc eption e)  {
  1125                throw ne w SOAPExce ption(e);
  1126           }
  1127  
  1128           re turn retur nVal;
  1129       }
  1130  
  1131       @Overr ide
  1132       public  boolean i sPatientsA ssigned(JM eadowsQuer y qb, Stri ng provId)  throws SO APExceptio n {
  1133  
  1134           bo olean retu rnVal = fa lse;
  1135  
  1136           tr y {
  1137                JMeadows Data port  = getJMead owsDataPor t();
  1138                returnVa l = port.i sPatientsA ssigned(qb , provId);
  1139           }  catch (Exc eption e)  {
  1140                throw ne w SOAPExce ption(e);
  1141           }
  1142  
  1143           re turn retur nVal;
  1144       }
  1145  
  1146       @Overr ide
  1147       public  List<CPro vider> ret rieveProvi derList(JM eadowsQuer y qb, Stri ng name, S tring faci lityList)  throws SOA PException  {
  1148  
  1149           Li st<CProvid er> return Val = null ;
  1150  
  1151           tr y {
  1152  
  1153                JMeadows Data port  = getJMead owsDataPor t();
  1154                returnVa l = port.r etrievePro viderList( qb, name,  facilityLi st);
  1155           }  catch (Exc eption e)  {
  1156                throw ne w SOAPExce ption(e);
  1157           }
  1158           re turn retur nVal;
  1159       }
  1160  
  1161       @Overr ide
  1162       public  List<CPro vider> ret rieveUnass ignedProvi ders(JMead owsQuery q b, String  name) thro ws SOAPExc eption {
  1163  
  1164           Li st<CProvid er> return Val = null ;
  1165  
  1166           tr y {
  1167  
  1168                JMeadows Data port  = getJMead owsDataPor t();
  1169                returnVa l = port.r etrieveUna ssignedPro viders(qb,  name);
  1170           }  catch (Exc eption e)  {
  1171                throw ne w SOAPExce ption(e);
  1172           }
  1173           re turn retur nVal;
  1174       }
  1175  
  1176       @Overr ide
  1177       public  CProvider  loginProv ider(JMead owsQuery q b, String  username,  String pas sword) thr ows SOAPEx ception {
  1178  
  1179           CP rovider re turnVal =  null;
  1180  
  1181           tr y {
  1182  
  1183                JMeadows Data port  = getJMead owsDataPor t();
  1184                returnVa l = port.l oginProvid er(qb, use rname, pas sword);
  1185           }  catch (Exc eption e)  {
  1186                throw ne w SOAPExce ption(e);
  1187           }
  1188  
  1189           re turn retur nVal;
  1190       }
  1191  
  1192       @Overr ide
  1193       public  List<CPro vider> ret rieveOrgan izationPro viderList( JMeadowsQu ery qb, St ring organ izationId)  throws SO APExceptio n {
  1194  
  1195           Li st<CProvid er> return Val = null ;
  1196  
  1197           tr y {
  1198  
  1199                JMeadows Data port  = getJMead owsDataPor t();
  1200                returnVa l = port.r etrieveOrg anizationP roviderLis t(qb, orga nizationId );
  1201           }  catch (Exc eption e)  {
  1202                throw ne w SOAPExce ption(e);
  1203           }
  1204  
  1205           re turn retur nVal;
  1206  
  1207       }
  1208  
  1209       @Overr ide
  1210       public  boolean u nassignPro viderOrg(J MeadowsQue ry qb, CPr ovider p)  throws SOA PException  {
  1211           bo olean bRet  = false;
  1212           tr y {
  1213                JMeadows Data port  = getJMead owsDataPor t();
  1214                bRet = p ort.unassi gnProvider Org(qb, p) ;
  1215           }  catch (Exc eption e)  {
  1216                throw ne w SOAPExce ption(e);
  1217           }
  1218           re turn bRet;
  1219       }
  1220  
  1221       /*---- - ORGANIZA TION ----- */
  1222  
  1223       @Overr ide
  1224       public  boolean c reateOrgan ization(JM eadowsQuer y qb, COrg anization  org) throw s SOAPExce ption {
  1225  
  1226           bo olean bRet  = false;
  1227           tr y {
  1228                JMeadows Data port  = getJMead owsDataPor t();
  1229                bRet = p ort.create Organizati on(qb, org );
  1230           }  catch (Exc eption e)  {
  1231                throw ne w SOAPExce ption(e);
  1232           }
  1233  
  1234           re turn bRet;
  1235       }
  1236  
  1237       @Overr ide
  1238       public  boolean u pdateOrgan ization(JM eadowsQuer y qb, COrg anization  org) throw s SOAPExce ption {
  1239           bo olean bRet  = false;
  1240  
  1241           tr y {
  1242                JMeadows Data port  = getJMead owsDataPor t();
  1243                bRet = p ort.update Organizati on(qb, org );
  1244           }  catch (Exc eption e)  {
  1245                throw ne w SOAPExce ption(e);
  1246           }
  1247  
  1248           re turn bRet;
  1249       }
  1250  
  1251       @Overr ide
  1252       public  boolean d eleteOrgan ization(JM eadowsQuer y qb, Stri ng id) thr ows SOAPEx ception {
  1253           bo olean bRet  = false;
  1254  
  1255           tr y {
  1256                JMeadows Data port  = getJMead owsDataPor t();
  1257                bRet = p ort.delete Organizati on(qb, id) ;
  1258           }  catch (Exc eption e)  {
  1259                throw ne w SOAPExce ption(e);
  1260           }
  1261  
  1262           re turn bRet;
  1263       }
  1264  
  1265       @Overr ide
  1266       public  boolean i sOrganizat ionExists( JMeadowsQu ery qb, St ring name,  String ad dress) thr ows SOAPEx ception {
  1267  
  1268           bo olean retu rnVal = fa lse;
  1269  
  1270           tr y {
  1271                JMeadows Data port  = getJMead owsDataPor t();
  1272                returnVa l = port.i sOrganizat ionExists( qb, name,  address);
  1273           }  catch (Exc eption e)  {
  1274                throw ne w SOAPExce ption(e);
  1275           }
  1276  
  1277           re turn retur nVal;
  1278       }
  1279  
  1280       @Overr ide
  1281       public  COrganiza tion retri eveOrganiz ation(JMea dowsQuery  qb, String  orgName)  throws SOA PException  {
  1282  
  1283           CO rganizatio n returnVa l = null;
  1284  
  1285           tr y {
  1286                JMeadows Data port  = getJMead owsDataPor t();
  1287                returnVa l = port.r etrieveOrg anization( qb, orgNam e);
  1288           }  catch (Exc eption e)  {
  1289                throw ne w SOAPExce ption(e);
  1290           }
  1291  
  1292           re turn retur nVal;
  1293       }
  1294  
  1295       @Overr ide
  1296       public  int retri eveOrgList Count(JMea dowsQuery  qb, String  name, Str ing facili tyList, St ring state , String c ity, Strin g zip) thr ows SOAPEx ception {
  1297  
  1298           in t returnVa l = 0;
  1299  
  1300           tr y {
  1301  
  1302                JMeadows Data port  = getJMead owsDataPor t();
  1303                returnVa l = port.r etrieveOrg ListCount( qb, name,  facilityLi st, state,  city, zip );
  1304           }  catch (Exc eption e)  {
  1305                throw ne w SOAPExce ption(e);
  1306           }
  1307           re turn retur nVal;
  1308       }
  1309  
  1310       @Overr ide
  1311       public  List<COrg anization>  retrieveO rganizatio nList(JMea dowsQuery  qb, String  name, Str ing facili tyList, St ring state , String c ity, Strin g zip) thr ows SOAPEx ception {
  1312  
  1313           Li st<COrgani zation> re turnVal =  null;
  1314  
  1315           tr y {
  1316  
  1317                JMeadows Data port  = getJMead owsDataPor t();
  1318                returnVa l = port.r etrieveOrg anizationL ist(qb, na me, facili tyList, st ate, city,  zip);
  1319           }  catch (Exc eption e)  {
  1320                throw ne w SOAPExce ption(e);
  1321           }
  1322           re turn retur nVal;
  1323       }
  1324  
  1325  
  1326       /*---- - PATIENT  USAGE ---- -*/
  1327  
  1328       @Overr ide
  1329       public  boolean c reatePatie ntUsage(JM eadowsQuer y qb, Stri ng provide rId, Strin g patientI d) throws  SOAPExcept ion {
  1330           bo olean bRet  = false;
  1331  
  1332           tr y {
  1333                JMeadows Data port  = getJMead owsDataPor t();
  1334                bRet = p ort.create PatientUsa ge(qb, pro viderId, p atientId);
  1335           }  catch (Exc eption e)  {
  1336                throw ne w SOAPExce ption(e);
  1337           }
  1338  
  1339           re turn bRet;
  1340       }
  1341  
  1342       /*---- - AUDIT RE CORDS ---- -*/
  1343       @Overr ide
  1344       public  CAudits r etrieveAud itReport(J MeadowsQue ry qb, Str ing auditR eport, Str ing auditD ateStart,
  1345                                             S tring audi tDateEnd,  String pat ientIdenti fier, Stri ng searchA ction,
  1346                                             S tring sear chVisn, St ring facil ities) thr ows SOAPEx ception {
  1347  
  1348           tr y {
  1349                JMeadows Data port  = getJMead owsDataPor t();
  1350                CAudits  auditResul ts = port. retrieveAu ditReport( qb, auditR eport, aud itDateStar t, auditDa teEnd, pat ientIdenti fier, sear chAction,  searchVisn , faciliti es);
  1351                return a uditResult s;
  1352           }  catch (Exc eption e)  {
  1353                throw ne w SOAPExce ption(e);
  1354           }
  1355       }
  1356  
  1357       /*---- - SECURITY  AGREEMENT  -----*/
  1358       @Overr ide
  1359       public  boolean c reateSecur ityAgreeme ntRecord(J MeadowsQue ry qb, Str ing provUs ername,
  1360                                                        S tring isaD ownload, S tring ehrR obDownload , String c ertIsa,
  1361                                                        S tring cert EhrRob, St ring certH ipaa, Stri ng securit yAgreement ) throws S OAPExcepti on {
  1362           bo olean bRet  = false;
  1363           tr y {
  1364                JMeadows Data port  = getJMead owsDataPor t();
  1365                bRet = p ort.create SecurityAg reementRec ord(qb, pr ovUsername , isaDownl oad, ehrRo bDownload,  certIsa,  certEhrRob ,
  1366                         certHipaa,  securityA greement);
  1367           }  catch (Exc eption e)  {
  1368                throw ne w SOAPExce ption(e);
  1369           }
  1370           re turn bRet;
  1371       }
  1372  
  1373       @Overr ide
  1374       public  boolean i sSecurityA greementVa lid(String  provUsern ame) throw s SOAPExce ption {
  1375           bo olean bRet  = false;
  1376           tr y {
  1377                JMeadows Data port  = getJMead owsDataPor t();
  1378                bRet = p ort.isSecu rityAgreem entValid(p rovUsernam e);
  1379           }  catch (Exc eption e)  {
  1380                throw ne w SOAPExce ption(e);
  1381           }
  1382           re turn bRet;
  1383       }
  1384  
  1385       @Overr ide
  1386       public  String re trieveSecu rityExpira tion(JMead owsQuery q b, String  provUserna me) throws  SOAPExcep tion {
  1387           St ring bRet  = "";
  1388           tr y {
  1389                JMeadows Data port  = getJMead owsDataPor t();
  1390                bRet = p ort.retrie veSecurity Expiration (qb, provU sername);
  1391           }  catch (Exc eption e)  {
  1392                throw ne w SOAPExce ption(e);
  1393           }
  1394           re turn bRet;
  1395       }
  1396  
  1397  
  1398       /*---- - PATIENT  -----*/
  1399  
  1400       @Overr ide
  1401       public  boolean c reatePatie nt(JMeadow sQuery qb,  CPatient  pat) throw s SOAPExce ption {
  1402           bo olean bRet  = false;
  1403  
  1404           tr y {
  1405                JMeadows Data port  = getJMead owsDataPor t();
  1406                bRet = p ort.create Patient(qb , pat);
  1407           }  catch (Exc eption e)  {
  1408                throw ne w SOAPExce ption(e);
  1409           }
  1410  
  1411           re turn bRet;
  1412       }
  1413  
  1414       @Overr ide
  1415       public  boolean d eletePatie nt(JMeadow sQuery qb,  String id ) throws S OAPExcepti on {
  1416           bo olean bRet  = false;
  1417  
  1418           tr y {
  1419                JMeadows Data port  = getJMead owsDataPor t();
  1420                bRet = p ort.delete Patient(qb , id);
  1421           }  catch (Exc eption e)  {
  1422                throw ne w SOAPExce ption(e);
  1423           }
  1424  
  1425           re turn bRet;
  1426       }
  1427  
  1428       @Overr ide
  1429       public  CPatient  retrievePa tient(JMea dowsQuery  qb, String  siteId, S tring ien,  String co nsultNumbe r) throws  SOAPExcept ion {
  1430  
  1431           CP atient ret urnVal = n ull;
  1432  
  1433           tr y {
  1434  
  1435                JMeadows Data port  = getJMead owsDataPor t();
  1436                returnVa l = port.r etrievePat ient(qb, s iteId, ien , consultN umber);
  1437  
  1438           }  catch (Exc eption e)  {
  1439                throw ne w SOAPExce ption(e);
  1440           }
  1441           re turn retur nVal;
  1442       }
  1443  
  1444       @Overr ide
  1445       public  List<CPat ient> retr ieveProvid erPatientL ist(JMeado wsQuery qb , String p roviderId)  throws SO APExceptio n {
  1446  
  1447           Li st<CPatien t> returnV al = null;
  1448  
  1449           tr y {
  1450                JMeadows Data port  = getJMead owsDataPor t();
  1451                returnVa l = port.r etrievePro viderPatie ntList(qb,  providerI d);
  1452           }  catch (Exc eption e)  {
  1453                throw ne w SOAPExce ption(e);
  1454           }
  1455  
  1456           re turn retur nVal;
  1457  
  1458       }
  1459  
  1460       @Overr ide
  1461       public  List<CPat ient> retr ieveOrgani zationPati entList(JM eadowsQuer y qb, Stri ng provide rId) throw s SOAPExce ption {
  1462  
  1463           Li st<CPatien t> returnV al = null;
  1464  
  1465           tr y {
  1466                JMeadows Data port  = getJMead owsDataPor t();
  1467                returnVa l = port.r etrieveOrg anizationP atientList (qb, provi derId);
  1468           }  catch (Exc eption e)  {
  1469                throw ne w SOAPExce ption(e);
  1470           }
  1471  
  1472           re turn retur nVal;
  1473  
  1474       }
  1475  
  1476       @Overr ide
  1477       public  List<CPat ient> retr ievePatien tAssignmen tList(JMea dowsQuery  qb, String  ien, Stri ng siteCod e, String  icn) throw s SOAPExce ption {
  1478  
  1479           Li st<CPatien t> returnV al = null;
  1480  
  1481           tr y {
  1482                JMeadows Data port  = getJMead owsDataPor t();
  1483                returnVa l = port.r etrievePat ientAssign mentList(q b, ien, si teCode, ic n);
  1484           }  catch (Exc eption e)  {
  1485                throw ne w SOAPExce ption(e);
  1486           }
  1487  
  1488           re turn retur nVal;
  1489  
  1490       }
  1491  
  1492       @Overr ide
  1493       public  boolean u pdatePatie ntAssignme nts(JMeado wsQuery qb , CPatient  pat) thro ws SOAPExc eption {
  1494           bo olean bRet  = false;
  1495           tr y {
  1496                JMeadows Data port  = getJMead owsDataPor t();
  1497                bRet = p ort.update PatientAss ignments(q b, pat);
  1498           }  catch (Exc eption e)  {
  1499                throw ne w SOAPExce ption(e);
  1500           }
  1501           re turn bRet;
  1502       }
  1503  
  1504       @Overr ide
  1505       public  boolean u pdatePatie ntConsultS tatus(JMea dowsQuery  qb, CPatie nt pat) th rows SOAPE xception {
  1506           bo olean bRet  = false;
  1507  
  1508           tr y {
  1509                JMeadows Data port  = getJMead owsDataPor t();
  1510                bRet = p ort.update PatientCon sultStatus (qb, pat);
  1511           }  catch (Exc eption e)  {
  1512                throw ne w SOAPExce ption(e);
  1513           }
  1514  
  1515           re turn bRet;
  1516       }
  1517  
  1518       @Overr ide
  1519       public  List<Cons ult> getPa tientActiv eConsultRe quest(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  1520           Li st<Consult > returnVa l = null;
  1521  
  1522           tr y {
  1523                JMeadows Data port  = getJMead owsDataPor t();
  1524                returnVa l = port.g etPatientA ctiveConsu ltRequests (queryBean );
  1525           }  catch (Exc eption e)  {
  1526                throw ne w SOAPExce ption(e);
  1527           }
  1528  
  1529           re turn retur nVal;
  1530       }
  1531  
  1532       @Overr ide
  1533       public  ProblemDe tail getPr oblemDetai l(JMeadows Query quer yBean) thr ows SOAPEx ception {
  1534           lo g("getProb lemDetail" , queryBea n);
  1535  
  1536           Pr oblemDetai l returnVa l = null;
  1537  
  1538           tr y {
  1539  
  1540                JMeadows Data port  = getJMead owsDataPor t();
  1541                returnVa l = port.g etProblemD etail(quer yBean);
  1542           }  catch (Exc eption e)  {
  1543                throw ne w SOAPExce ption(e);
  1544           }
  1545  
  1546           re turn retur nVal;
  1547       }
  1548  
  1549       @Overr ide
  1550       public  FreeTextR eport getP rogressNot e(JMeadows Query quer yBean) thr ows SOAPEx ception {
  1551           lo g("getProg ressNote",  queryBean );
  1552  
  1553           Fr eeTextRepo rt returnV al = null;
  1554  
  1555           tr y {
  1556  
  1557                JMeadows Data port  = getJMead owsDataPor t();
  1558                returnVa l = port.g etProgress Note(query Bean);
  1559           }  catch (Exc eption e)  {
  1560                throw ne w SOAPExce ption(e);
  1561           }
  1562  
  1563           re turn retur nVal;
  1564       }
  1565  
  1566  
  1567       @Overr ide
  1568       public  User getP roviderPro file(JMead owsQuery q ueryBean)  throws SOA PException  {
  1569           lo g("getProv iderProfil e", queryB ean);
  1570  
  1571           Us er returnV al = null;
  1572           tr y {
  1573  
  1574                JMeadows Data port  = getJMead owsDataPor t();
  1575                returnVa l = port.g etProvider Profile(qu eryBean);
  1576  
  1577           }  catch (Exc eption e)  {
  1578                throw ne w SOAPExce ption(e);
  1579           }
  1580           re turn retur nVal;
  1581       }
  1582  
  1583       @Overr ide
  1584       public  Radiology Report get RadiologyR eport(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  1585           lo g("getRadi ologyRepor t", queryB ean);
  1586  
  1587           Ra diologyRep ort return Val = null ;
  1588  
  1589           tr y {
  1590  
  1591                JMeadows Data port  = getJMead owsDataPor t();
  1592                returnVa l = port.g etRadiolog yReport(qu eryBean);
  1593           }  catch (Exc eption e)  {
  1594                throw ne w SOAPExce ption(e);
  1595           }
  1596  
  1597           re turn retur nVal;
  1598  
  1599       }
  1600  
  1601       @Overr ide
  1602       public  Alert[] g etUserAler ts(JMeadow sQuery que ryBean) th rows SOAPE xception {
  1603           lo g("getUser Alerts", q ueryBean);
  1604  
  1605           Al ert[] retu rnVal = nu ll;
  1606  
  1607           tr y {
  1608  
  1609                JMeadows Data port  = getJMead owsDataPor t();
  1610                returnVa l = port.g etUserAler ts(queryBe an).toArra y(new Aler t[0]);
  1611           }  catch (Exc eption e)  {
  1612                throw ne w SOAPExce ption(e);
  1613           }
  1614           re turn retur nVal;
  1615  
  1616       }
  1617  
  1618       @Overr ide
  1619       public  FreeTextR eport getV isitNotes( JMeadowsQu ery queryB ean) throw s SOAPExce ption {
  1620           lo g("getVisi tNotes", q ueryBean);
  1621  
  1622           Fr eeTextRepo rt returnV al = null;
  1623  
  1624           tr y {
  1625  
  1626                JMeadows Data port  = getJMead owsDataPor t();
  1627                returnVa l = port.g etVisitNot es(queryBe an);
  1628           }  catch (Exc eption e)  {
  1629                throw ne w SOAPExce ption(e);
  1630           }
  1631           re turn retur nVal;
  1632       }
  1633  
  1634       @Overr ide
  1635       public  FreeTextR eport getP atientEnco untersRepo rt(JMeadow sQuery que ryBean) th rows SOAPE xception {
  1636           lo g("getPati entEncount ersReport" , queryBea n);
  1637  
  1638           Fr eeTextRepo rt returnV al = null;
  1639  
  1640           tr y {
  1641  
  1642                JMeadows Data port  = getJMead owsDataPor t();
  1643                returnVa l = port.g etPatientE ncountersR eport(quer yBean);
  1644           }  catch (Exc eption e)  {
  1645                throw ne w SOAPExce ption(e);
  1646           }
  1647           re turn retur nVal;
  1648       }
  1649  
  1650       @Overr ide
  1651       public  Patient[]  lookupPat ient(JMead owsQuery q ueryBean)  throws SOA PException  {
  1652           lo g("lookupP atient", q ueryBean);
  1653  
  1654           Pa tient[] re turnVal =  null;
  1655  
  1656           tr y {
  1657  
  1658                JMeadows Data port  = getJMead owsDataPor t();
  1659                returnVa l = port.l ookupPatie nt(queryBe an).toArra y(new Pati ent[0]);
  1660           }  catch (Exc eption e)  {
  1661                throw ne w SOAPExce ption(e);
  1662           }
  1663  
  1664           re turn retur nVal;
  1665  
  1666       }
  1667  
  1668       @Overr ide
  1669       public  ResponseP atientQuer y lookupPa tientPDWS( PdwsQueryB ean queryB ean) throw s SOAPExce ption {
  1670           lo g("lookupP atientPDWS ");
  1671  
  1672           Re sponsePati entQuery r eturnVal =  null;
  1673  
  1674           tr y {
  1675                JMeadows Data port  = getJMead owsDataPor t();
  1676                returnVa l = port.l ookupPatie ntPDWS(que ryBean);
  1677           }  catch (Exc eption e)  {
  1678                throw ne w SOAPExce ption(e);
  1679           }
  1680  
  1681           re turn retur nVal;
  1682       }
  1683  
  1684       @Overr ide
  1685       public  ResponseP atientQuer y lookupPa tientMVI(P dwsQueryBe an queryBe an) throws  SOAPExcep tion {
  1686           lo g("lookupP atientMVI" );
  1687  
  1688           Re sponsePati entQuery r eturnVal =  null;
  1689  
  1690           tr y {
  1691                JMeadows Data port  = getJMead owsDataPor t();
  1692                returnVa l = port.l ookupPatie ntMVI(quer yBean);
  1693           }  catch (Exc eption e)  {
  1694                throw ne w SOAPExce ption(e);
  1695           }
  1696  
  1697           re turn retur nVal;
  1698       }
  1699  
  1700       @Overr ide
  1701       public  Patient s electPatie nt(JMeadow sQuery que ryBean) th rows SOAPE xception {
  1702           lo g("selectP atient", q ueryBean);
  1703  
  1704           Pa tient retu rnVal = nu ll;
  1705  
  1706           tr y {
  1707  
  1708                JMeadows Data port  = getJMead owsDataPor t();
  1709                returnVa l = port.s electPatie nt(queryBe an);
  1710           }  catch (Exc eption e)  {
  1711                throw ne w SOAPExce ption(e);
  1712           }
  1713  
  1714           re turn retur nVal;
  1715  
  1716       }
  1717  
  1718       @Overr ide
  1719       public  ResponseP atientSele ct selectP atientMVI( JMeadowsQu ery queryB ean) throw s SOAPExce ption {
  1720           lo g("selectP atientMVI" );
  1721  
  1722           Re sponsePati entSelect  returnVal  = null;
  1723  
  1724           tr y {
  1725                JMeadows Data port  = getJMead owsDataPor t();
  1726                returnVa l = port.s electPatie ntMVI(quer yBean);
  1727           }  catch (Exc eption e)  {
  1728                throw ne w SOAPExce ption(e);
  1729           }
  1730  
  1731           re turn retur nVal;
  1732       }
  1733  
  1734       @Overr ide
  1735       public  void sele ctPatientF orVASensit ive(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  1736           lo g("selectP atientForV ASensitive ");
  1737  
  1738           tr y {
  1739                JMeadows Data port  = getJMead owsDataPor t();
  1740                port.sel ectPatient ForVASensi tive(query Bean);
  1741           }  catch (Exc eption e)  {
  1742                throw ne w SOAPExce ption(e);
  1743           }
  1744       }
  1745  
  1746       @Overr ide
  1747       public  Alert[] g etVASensit ivePatient Alerts(JMe adowsQuery  queryBean ) throws S OAPExcepti on{
  1748           lo g("getVASe nsitivePat ientAlerts ");
  1749  
  1750           Al ert[] retu rnVal = nu ll;
  1751  
  1752           tr y {
  1753                JMeadows Data port  = getJMead owsDataPor t();
  1754                returnVa l = port.g etVASensit ivePatient Alerts(que ryBean).to Array(new  Alert[0]);
  1755           }  catch (Exc eption e)  {
  1756                logError (e);
  1757                throw ne w SOAPExce ption(e);
  1758           }
  1759           re turn retur nVal;
  1760  
  1761       }
  1762  
  1763       @Overr ide
  1764       public  void audi tVARestric tedAccess( JMeadowsQu ery queryB ean) throw s SOAPExce ption {
  1765           lo g("auditVA Restricted Access");
  1766  
  1767           tr y {
  1768                JMeadows Data port  = getJMead owsDataPor t();
  1769                port.aud itVARestri ctedAccess (queryBean );
  1770           }  catch (Exc eption e)  {
  1771                throw ne w SOAPExce ption(e);
  1772           }
  1773       }
  1774  
  1775       @Overr ide
  1776       public  void audi tSensitive RecordAcce ss(JMeadow sQuery que ryBean) th rows SOAPE xception {
  1777           lo g("auditSe nsitiveRec ordAccess" );
  1778  
  1779           tr y {
  1780                JMeadows Data port  = getJMead owsDataPor t();
  1781                port.aud itSensitiv eRecordAcc ess(queryB ean);
  1782           }  catch (Exc eption e)  {
  1783                throw ne w SOAPExce ption(e);
  1784           }
  1785       }
  1786  
  1787       @Overr ide
  1788       public  void logA udit(Strin g siteId,  String sit eMoniker,  String sit eAgency, S tring reco rdID, Stri ng userId,  String pr oviderIen,  String us erNPI,
  1789                              Strin g userName , String p atId, Stri ng categor y, String  requesting App,
  1790                              Strin g startDat e, String  endDate, S tring info , String c ardId, Str ing emailA ddress, St ring compl exTransact ion) throw s SOAPExce ption {
  1791  
  1792  
  1793           lo g("logAudi t");
  1794  
  1795           tr y {
  1796                JMeadows Data port  = getJMead owsDataPor t();
  1797                port.log Audit(site Id, siteMo niker, sit eAgency, r ecordID, u serId, pro viderIen,  userNPI, u serName, p atId,
  1798                         category,  appName, s tartDate,  endDate, i nfo, cardI d, emailAd dress, com plexTransa ction);
  1799           }  catch (Exc eption e)  {
  1800                logError (e);
  1801                throw ne w SOAPExce ption(e);
  1802           }
  1803  
  1804       }
  1805  
  1806   //    @Ove rride
  1807   //    publ ic void lo gAudit(Str ing siteId , String u serId, Str ing provid erId, Stri ng userNPI ,
  1808   //                           Str ing userNa me, String  patId, St ring categ ory,
  1809   //                           Str ing startD ate, Strin g endDate)  throws SO APExceptio n {
  1810   //
  1811   //         log("logAu dit");
  1812   //
  1813   //         try {
  1814   //             JMeado wsData por t = getJMe adowsDataP ort();
  1815   //             port.l ogAudit(si teId, user Id, provid erId, user NPI, userN ame, patId , category , appName,  startDate , endDate) ;
  1816   //         } catch (E xception e ) {
  1817   //             throw  new SOAPEx ception(e) ;
  1818   //         }
  1819   //
  1820   //    }
  1821  
  1822       @Overr ide
  1823       public  PatientAd mission[]  getProvide rAdmission s(JMeadows Query quer yBean) thr ows SOAPEx ception {
  1824  
  1825           lo g("getProv iderAdmiss ions", que ryBean);
  1826  
  1827           Pa tientAdmis sion[] ret urnVal = n ull;
  1828           tr y {
  1829                JMeadows Data port  = getJMead owsDataPor t();
  1830                returnVa l = port.g etProvider Admissions (queryBean ).toArray( new Patien tAdmission [0]);
  1831           }  catch (Exc eption e)  {
  1832                throw ne w SOAPExce ption(e);
  1833           }
  1834           re turn retur nVal;
  1835       }
  1836  
  1837       @Overr ide
  1838       public  PatientAp pointments [] getProv iderAppoin tments(JMe adowsQuery  queryBean ) throws S OAPExcepti on {
  1839           lo g("getProv iderAppoin tments", q ueryBean);
  1840  
  1841           Pa tientAppoi ntments[]  returnVal  = null;
  1842           tr y {
  1843                JMeadows Data port  = getJMead owsDataPor t();
  1844                returnVa l = port.g etProvider Appointmen ts(queryBe an).toArra y(new Pati entAppoint ments[0]);
  1845           }  catch (Exc eption e)  {
  1846                throw ne w SOAPExce ption(e);
  1847           }
  1848           re turn retur nVal;
  1849       }
  1850  
  1851       @Overr ide
  1852       public  Consult[]  getProvid erConsults Received(J MeadowsQue ry queryBe an) throws  SOAPExcep tion {
  1853           lo g("getProv iderConsul tsReceived ", queryBe an);
  1854  
  1855           Co nsult[] re turnVal =  null;
  1856           tr y {
  1857                JMeadows Data port  = getJMead owsDataPor t();
  1858                returnVa l = port.g etProvider ConsultsRe ceived(que ryBean).to Array(new  Consult[0] );
  1859           }  catch (Exc eption e)  {
  1860                throw ne w SOAPExce ption(e);
  1861           }
  1862           re turn retur nVal;
  1863       }
  1864  
  1865       @Overr ide
  1866       public  Consult[]  getProvid erConsults Requested( JMeadowsQu ery queryB ean) throw s SOAPExce ption {
  1867           lo g("getProv iderConsul tsRequeste d", queryB ean);
  1868  
  1869           Co nsult[] re turnVal =  null;
  1870           tr y {
  1871                JMeadows Data port  = getJMead owsDataPor t();
  1872                returnVa l = port.g etProvider ConsultsRe quested(qu eryBean).t oArray(new  Consult[0 ]);
  1873           }  catch (Exc eption e)  {
  1874                throw ne w SOAPExce ption(e);
  1875           }
  1876           re turn retur nVal;
  1877       }
  1878  
  1879       @Overr ide
  1880       public  LabResult [] getProv iderLabAbn ormalResul ts(JMeadow sQuery que ryBean) th rows SOAPE xception {
  1881           lo g("getProv iderLabAbn ormalResul ts", query Bean);
  1882  
  1883           La bResult[]  returnVal  = null;
  1884           tr y {
  1885                JMeadows Data port  = getJMead owsDataPor t();
  1886                returnVa l = port.g etProvider LabAbnorma lResults(q ueryBean). toArray(ne w LabResul t[0]);
  1887           }  catch (Exc eption e)  {
  1888                throw ne w SOAPExce ption(e);
  1889           }
  1890           re turn retur nVal;
  1891       }
  1892  
  1893       @Overr ide
  1894       public  Order[] g etProvider OrdersPend ing(JMeado wsQuery qu eryBean) t hrows SOAP Exception  {
  1895           lo g("getProv iderOrders Pending",  queryBean) ;
  1896  
  1897           Or der[] retu rnVal = nu ll;
  1898           tr y {
  1899                JMeadows Data port  = getJMead owsDataPor t();
  1900                returnVa l = port.g etProvider OrdersPend ing(queryB ean).toArr ay(new Ord er[0]);
  1901           }  catch (Exc eption e)  {
  1902                throw ne w SOAPExce ption(e);
  1903           }
  1904           re turn retur nVal;
  1905       }
  1906  
  1907       @Overr ide
  1908       public  Order[] g etProvider OrdersResu lted(JMead owsQuery q ueryBean)  throws SOA PException  {
  1909           lo g("getProv iderOrders Resulted",  queryBean );
  1910  
  1911           Or der[] retu rnVal = nu ll;
  1912           tr y {
  1913                JMeadows Data port  = getJMead owsDataPor t();
  1914                returnVa l = port.g etProvider OrdersResu lted(query Bean).toAr ray(new Or der[0]);
  1915           }  catch (Exc eption e)  {
  1916                throw ne w SOAPExce ption(e);
  1917           }
  1918           re turn retur nVal;
  1919       }
  1920  
  1921       @Overr ide
  1922       public  ProgressN ote[] getP roviderUns ignedNotes (JMeadowsQ uery query Bean) thro ws SOAPExc eption {
  1923           lo g("getProv iderUnsign edNotes",  queryBean) ;
  1924  
  1925           Pr ogressNote [] returnV al = null;
  1926           tr y {
  1927                JMeadows Data port  = getJMead owsDataPor t();
  1928                returnVa l = port.g etProvider UnsignedNo tes(queryB ean).toArr ay(new Pro gressNote[ 0]);
  1929           }  catch (Exc eption e)  {
  1930                logger.e rror(e.get Message(),  e);
  1931                throw ne w SOAPExce ption(e);
  1932           }
  1933           re turn retur nVal;
  1934       }
  1935  
  1936       @Overr ide
  1937       public  boolean s etJanusGUI Config(JMe adowsQuery  queryBean , String c fg) throws  SOAPExcep tion {
  1938           lo g("setJanu sGUIConfig ", queryBe an);
  1939  
  1940           bo olean bRet  = false;
  1941           tr y {
  1942                JMeadows Data port  = getJMead owsDataPor t();
  1943                bRet = p ort.setJan usGUIConfi g(queryBea n, cfg);
  1944           }  catch (Exc eption e)  {
  1945                logger.e rror(e.get Message(),  e);
  1946                throw ne w SOAPExce ption(e);
  1947           }
  1948           re turn bRet;
  1949       }
  1950  
  1951       @Overr ide
  1952       public  String ge tJanusGUIC onfig(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  1953           lo g("getJanu sGUIConfig ", queryBe an);
  1954  
  1955           St ring retVa l = "";
  1956           tr y {
  1957                JMeadows Data port  = getJMead owsDataPor t();
  1958                retVal =  port.getJ anusGUICon fig(queryB ean);
  1959           }  catch (Exc eption e)  {
  1960                logger.e rror(e.get Message(),  e);
  1961                throw ne w SOAPExce ption(e);
  1962           }
  1963           re turn retVa l;
  1964       }
  1965  
  1966       @Overr ide
  1967       public  boolean s etProvider Flags(JMea dowsQuery  queryBean,  String fl ags) throw s SOAPExce ption {
  1968           lo g("setProv iderFlags" , queryBea n);
  1969  
  1970           bo olean bRet  = false;
  1971           tr y {
  1972                JMeadows Data port  = getJMead owsDataPor t();
  1973                bRet = p ort.setPro viderFlags (queryBean , flags);
  1974           }  catch (Exc eption e)  {
  1975                logger.e rror(e.get Message(),  e);
  1976                throw ne w SOAPExce ption(e);
  1977           }
  1978           re turn bRet;
  1979       }
  1980  
  1981       @Overr ide
  1982       public  String ge tProviderF lags(JMead owsQuery q ueryBean)  throws SOA PException  {
  1983           lo g("getProv iderFlags" , queryBea n);
  1984  
  1985           St ring retVa l = "";
  1986           tr y {
  1987                JMeadows Data port  = getJMead owsDataPor t();
  1988                retVal =  port.getP roviderFla gs(queryBe an);
  1989           }  catch (Exc eption e)  {
  1990                logger.e rror(e.get Message(),  e);
  1991                throw ne w SOAPExce ption(e);
  1992           }
  1993           re turn retVa l;
  1994       }
  1995  
  1996   //    @Ove rride
  1997   //    publ ic IehrUse rProfile g etIehrUser Profile(St ring smart CardID, St ring smart CardAgency ) throws S OAPExcepti on {
  1998   //         return get IehrUserPr ofile(smar tCardID, s martCardAg ency, "");
  1999   //    }
  2000  
  2001       @Overr ide
  2002       public  IehrUserP rofile get IehrUserPr ofile(Stri ng smartCa rdID, Stri ng smartCa rdAgency,  String ema ilAddress)  throws SO APExceptio n {
  2003           Ie hrUserProf ile retVal  = null;
  2004           tr y {
  2005                JMeadows Data port  = getJMead owsDataPor t();
  2006                retVal =  port.getI ehrUserPro file(smart CardID, sm artCardAge ncy, email Address);
  2007           }  catch (Exc eption e)  {
  2008                logger.e rror(e.get Message(),  e);
  2009                throw ne w SOAPExce ption(e);
  2010           }
  2011           re turn retVa l;
  2012       }
  2013  
  2014       @Overr ide
  2015       public  boolean s etIehrUser Profile(Ie hrUserProf ile userPr ofile) thr ows SOAPEx ception {
  2016           bo olean bRet  = false;
  2017           tr y {
  2018                JMeadows Data port  = getJMead owsDataPor t();
  2019                bRet = p ort.setIeh rUserProfi le(userPro file);
  2020           }  catch (Exc eption e)  {
  2021                logger.e rror(e.get Message(),  e);
  2022                throw ne w SOAPExce ption(e);
  2023           }
  2024           re turn bRet;
  2025       }
  2026  
  2027       @Overr ide
  2028       public  String ge tAppName()  {
  2029           re turn appNa me;
  2030       }
  2031  
  2032       @Overr ide
  2033       public  void setA ppName(Str ing appNam e) {
  2034           th is.appName  = appName ;
  2035       }
  2036  
  2037       @Overr ide
  2038       public  List<Site > getSites () throws  SOAPExcept ion {
  2039           Li st<Site> r etVal = nu ll;
  2040           tr y {
  2041                JMeadows Data port  = getJMead owsDataPor t();
  2042                retVal =  port.getS ites();
  2043           }  catch (Exc eption e)  {
  2044                logger.e rror(e.get Message(),  e);
  2045                throw ne w SOAPExce ption(e);
  2046           }
  2047           re turn retVa l;
  2048       }
  2049  
  2050       @Overr ide
  2051       public  CNetworks  getCNetwo rks() thro ws SOAPExc eption {
  2052           CN etworks re tVal = nul l;
  2053           tr y {
  2054                JMeadows Data port  = getJMead owsDataPor t();
  2055                retVal =  port.getC Networks() ;
  2056           }  catch (Exc eption e)  {
  2057                logger.e rror(e.get Message(),  e);
  2058                throw ne w SOAPExce ption(e);
  2059           }
  2060           re turn retVa l;
  2061       }
  2062  
  2063       @Overr ide
  2064       public  List<Audi tEntry> ge tLoginInfo (String ca rdID, Stri ng emailAd dress) thr ows SOAPEx ception {
  2065           Li st<AuditEn try> retVa l = null;
  2066           tr y {
  2067                JMeadows Data port  = getJMead owsDataPor t();
  2068                retVal =  port.getL oginInfo(c ardID, ema ilAddress) ;
  2069           }  catch (Exc eption e)  {
  2070                logger.e rror(e.get Message(),  e);
  2071                throw ne w SOAPExce ption(e);
  2072           }
  2073           re turn retVa l;
  2074       }
  2075  
  2076       @Overr ide
  2077       public  String ge tServiceEr rors() thr ows SOAPEx ception {
  2078           St ring retVa l = null;
  2079           tr y {
  2080                JMeadows Data port  = getJMead owsDataPor t();
  2081                retVal =  port.getS erviceErro rs();
  2082           }  catch (Exc eption e)  {
  2083                logger.e rror(e.get Message(),  e);
  2084                throw ne w SOAPExce ption(e);
  2085           }
  2086           re turn retVa l;
  2087       }
  2088  
  2089       @Overr ide
  2090       public  AuthUserI nfo getAut hUser(Auth UserInfo a uthUserInf oQuery) th rows SOAPE xception {
  2091           Au thUserInfo  retVal =  null;
  2092  
  2093           tr y {
  2094                JMeadows Data port  = getJMead owsDataPor t();
  2095                retVal =  port.getA uthUser(au thUserInfo Query);
  2096           }  catch (Exc eption e)  {
  2097                logger.e rror(e.get Message(),  e);
  2098                throw ne w SOAPExce ption(e);
  2099           }
  2100  
  2101           re turn retVa l;
  2102       }
  2103  
  2104       @Overr ide
  2105       public  List<Auth UserInfo>  retrieveAu thUserList (JMeadowsQ uery qb, S tring name ) throws S OAPExcepti on {
  2106           Li st<AuthUse rInfo> ret urnVal = n ull;
  2107  
  2108           tr y {
  2109  
  2110                JMeadows Data port  = getJMead owsDataPor t();
  2111                returnVa l = port.r etrieveAut hUserList( qb, name);
  2112           }  catch (Exc eption e)  {
  2113                throw ne w SOAPExce ption(e);
  2114           }
  2115           re turn retur nVal;
  2116       }
  2117  
  2118       @Overr ide
  2119       public  void crea teAuthUser (JMeadowsQ uery qb, A uthUserInf o authUser Info) thro ws SOAPExc eption {
  2120           tr y {
  2121                JMeadows Data port  = getJMead owsDataPor t();
  2122                port.cre ateAuthUse r(qb, auth UserInfo);
  2123           }  catch (Exc eption e)  {
  2124                throw ne w SOAPExce ption(e);
  2125           }
  2126       }
  2127  
  2128       @Overr ide
  2129       public  void upda teAuthUser (JMeadowsQ uery qb, A uthUserInf o authUser Info) thro ws SOAPExc eption {
  2130           tr y {
  2131                JMeadows Data port  = getJMead owsDataPor t();
  2132                port.upd ateAuthUse r(qb, auth UserInfo);
  2133           }  catch (Exc eption e)  {
  2134                throw ne w SOAPExce ption(e);
  2135           }
  2136       }
  2137  
  2138       @Overr ide
  2139       public  void dele teAuthUser (JMeadowsQ uery qb, A uthUserInf o authUser Info) thro ws SOAPExc eption {
  2140           tr y {
  2141                JMeadows Data port  = getJMead owsDataPor t();
  2142                port.del eteAuthUse r(qb, auth UserInfo);
  2143           }  catch (Exc eption e)  {
  2144                throw ne w SOAPExce ption(e);
  2145           }
  2146       }
  2147  
  2148       @Overr ide
  2149       public  boolean i sAuthUserD uplicate(J MeadowsQue ry qb, Aut hUserInfo  authUserIn fo) throws  SOAPExcep tion {
  2150           bo olean retu rnVal = fa lse;
  2151           tr y {
  2152                JMeadows Data port  = getJMead owsDataPor t();
  2153                returnVa l = port.i sAuthUserD uplicate(q b, authUse rInfo);
  2154           }  catch (Exc eption e)  {
  2155                throw ne w SOAPExce ption(e);
  2156           }
  2157           re turn retur nVal;
  2158       }
  2159  
  2160       @Overr ide
  2161       public  List<Pati ent> getRe centlyView edPatients (String us erId) thro ws SOAPExc eption {
  2162           Li st<Patient > patients  = null;
  2163  
  2164           tr y {
  2165                JMeadows Data port  = getJMead owsDataPor t();
  2166                patients  = port.ge tRecentlyV iewedPatie nts(userId );
  2167           }
  2168           ca tch (Excep tion e) {
  2169                logger.e rror(e.get Message(),  e);
  2170                throw ne w SOAPExce ption(e);
  2171           }
  2172  
  2173           re turn patie nts;
  2174       }
  2175  
  2176       @Overr ide
  2177       public  boolean e mailResetP assword(St ring email Addr) thro ws SOAPExc eption {
  2178  
  2179           tr y {
  2180                JMeadows Data port  = getJMead owsDataPor t();
  2181                JMeadows Query qb =  new JMead owsQuery() ;
  2182                qb.setIt emId(email Addr);
  2183                return p ort.genera tePassword ResetReque st(qb);
  2184           }  catch (Exc eption e)  {
  2185                logger.e rror(e.get Message(),  e);
  2186                throw ne w SOAPExce ption(e);
  2187           }
  2188  
  2189       }
  2190  
  2191       @Overr ide
  2192       public  void emai lConsultAs signedNoti fication(S tring from , String t o, String  cc, String  subject,  String bod y) throws  SOAPExcept ion {
  2193  
  2194           tr y {
  2195                JMeadows Data port  = getJMead owsDataPor t();
  2196                port.ema ilConsultA ssignedNot ification( from, to,  cc, subjec t, body);
  2197           }  catch (Exc eption e)  {
  2198                logger.e rror(e.get Message(),  e);
  2199                throw ne w SOAPExce ption(e);
  2200           }
  2201       }
  2202  
  2203       /*---- - PASSWORD  RESET --- --*/
  2204  
  2205       @Overr ide
  2206       public  boolean v alidatePas swordReset SecurityTo ken(String  securityT oken) thro ws SOAPExc eption {
  2207           tr y {
  2208                JMeadows Data port  = getJMead owsDataPor t();
  2209                return p ort.valida tePassword ResetSecur ityToken(s ecurityTok en.getByte s(Charset. forName("U TF-8")));
  2210           }  catch (Exc eption e)  {
  2211                logger.e rror(e.get Message(),  e);
  2212                throw ne w SOAPExce ption(e);
  2213           }
  2214       }
  2215  
  2216       @Overr ide
  2217       public  String re trieveEmai lFromSecur ityToken(S tring secu rityToken)  throws SO APExceptio n {
  2218           tr y {
  2219                JMeadows Data port  = getJMead owsDataPor t();
  2220                return p ort.retrie veEmailFro mSecurityT oken(secur ityToken.g etBytes(Ch arset.forN ame("UTF-8 ")));
  2221           }  catch (Exc eption e)  {
  2222                logger.e rror(e.get Message(),  e);
  2223                throw ne w SOAPExce ption(e);
  2224           }
  2225       }
  2226  
  2227       @Overr ide
  2228       public  boolean u pdatePassw ordResetPr oviderPass word(Strin g security Token, Str ing hashed Password,  String pwd UniqueChar s) throws  SOAPExcept ion {
  2229           tr y {
  2230                JMeadows Data port  = getJMead owsDataPor t();
  2231                return p ort.update PasswordRe setProvide rPassword( securityTo ken.getByt es(Charset .forName(" UTF-8")),  hashedPass word, pwdU niqueChars );
  2232           }  catch (Exc eption e)  {
  2233                logger.e rror(e.get Message(),  e);
  2234                throw ne w SOAPExce ption(e);
  2235           }
  2236       }
  2237  
  2238       @Overr ide
  2239       public  String re trievePwdC har(String  srcOfReq,  String ke y) throws  SOAPExcept ion {
  2240           tr y {
  2241                JMeadows Data port  = getJMead owsDataPor t();
  2242                return p ort.retrie vePwdCharP ackage(src OfReq, key .getBytes( Charset.fo rName("UTF -8")));
  2243           }  catch (Exc eption e)  {
  2244                logger.e rror(e.get Message(),  e);
  2245                throw ne w SOAPExce ption(e);
  2246           }
  2247       }
  2248  
  2249       @Overr ide
  2250       public  boolean h asPwdBeenU sedBefore( String pro vEmail, St ring newPw d) throws  SOAPExcept ion {
  2251  
  2252           bo olean isUs edBefore =  true;
  2253  
  2254           tr y {
  2255                JMeadows Data port  = getJMead owsDataPor t();
  2256                isUsedBe fore = por t.hasPwdBe enUsedBefo re(provEma il, newPwd );
  2257           }  catch (Exc eption e)  {
  2258                throw ne w SOAPExce ption(e);
  2259           }
  2260  
  2261           re turn isUse dBefore;
  2262       }
  2263  
  2264       @Overr ide
  2265       public  String ge tRadiology VixStudyVi ewerUrl(JM eadowsQuer y queryBea n, Radiolo gyReport r adiologyRe port) thro ws SOAPExc eption {
  2266           tr y {
  2267                JMeadows Data port  = getJMead owsDataPor t();
  2268                return p ort.getRad iologyVixS tudyViewer Url(queryB ean, radio logyReport );
  2269           }  catch (Exc eption e)  {
  2270                logger.e rror(e.get Message(),  e);
  2271                throw ne w SOAPExce ption(e);
  2272           }
  2273       }
  2274  
  2275       @Overr ide
  2276       public  String ge tPatientDo cumentVixS tudyViewer Url(JMeado wsQuery qu eryBean, P atientDocu ment docum ent) throw s SOAPExce ption {
  2277           tr y {
  2278                JMeadows Data port  = getJMead owsDataPor t();
  2279                return p ort.getPat ientDocume ntVixStudy ViewerUrl( queryBean,  document) ;
  2280           }  catch (Exc eption e)  {
  2281                logger.e rror(e.get Message(),  e);
  2282                throw ne w SOAPExce ption(e);
  2283           }
  2284       }
  2285  
  2286       @Overr ide
  2287       public  String ge tEncounter DocumentVi xStudyView erUrl(JMea dowsQuery  queryBean,  String do cumentId,  String doc umentSiteI d) throws  SOAPExcept ion {
  2288           tr y {
  2289                JMeadows Data port  = getJMead owsDataPor t();
  2290                return p ort.getEnc ounterDocu mentVixStu dyViewerUr l(queryBea n, documen tId, docum entSiteId) ;
  2291           }  catch (Exc eption e)  {
  2292                logger.e rror(e.get Message(),  e);
  2293                throw ne w SOAPExce ption(e);
  2294           }
  2295       }
  2296  
  2297       @Overr ide
  2298       public  ViStudy g etEncounte rDocumentV iStudy(JMe adowsQuery  queryBean , Encounte rDocument  encounterD ocument) t hrows SOAP Exception  {
  2299           tr y {
  2300                JMeadows Data port  = getJMead owsDataPor t();
  2301                return p ort.getEnc ounterDocu mentViStud y(queryBea n, encount erDocument );
  2302           }  catch (Exc eption e)  {
  2303                logger.e rror(e.get Message(),  e);
  2304                throw ne w SOAPExce ption(e);
  2305           }
  2306       }
  2307  
  2308       @Overr ide
  2309       public  ViStudy g etProgress NotesViStu dy(JMeadow sQuery que ryBean, Pr ogressNote  progressN ote) throw s SOAPExce ption {
  2310           tr y {
  2311                JMeadows Data port  = getJMead owsDataPor t();
  2312                return p ort.getPro gressNoteV iStudy(que ryBean, pr ogressNote );
  2313           }  catch (Exc eption e)  {
  2314                logger.e rror(e.get Message(),  e);
  2315                throw ne w SOAPExce ption(e);
  2316           }
  2317       }
  2318  
  2319       @Overr ide
  2320       public  ViStudy g etRadiolog yViStudy(J MeadowsQue ry queryBe an, Radiol ogyReport  radiologyR eport) thr ows SOAPEx ception {
  2321           tr y {
  2322                JMeadows Data port  = getJMead owsDataPor t();
  2323                return p ort.getRad iologyRepo rtViStudy( queryBean,  radiology Report);
  2324           }  catch (Exc eption e)  {
  2325                logger.e rror(e.get Message(),  e);
  2326                throw ne w SOAPExce ption(e);
  2327           }
  2328       }
  2329  
  2330       @Overr ide
  2331       public  byte[] ge tVixThumbn ail(JMeado wsQuery qu eryBean, S tring thum bnailUrl)  throws SOA PException  {
  2332           tr y {
  2333                JMeadows Data port  = getJMead owsDataPor t();
  2334                return p ort.getVix Thumbnail( queryBean,  thumbnail Url);
  2335           }  catch (Exc eption e)  {
  2336                logger.e rror(e.get Message(),  e);
  2337                throw ne w SOAPExce ption(e);
  2338           }
  2339       }
  2340  
  2341       @Overr ide
  2342       public  ViImageRe sponse get ViImage(JM eadowsQuer y queryBea n, String  imageUrn,  String ima geQuality)  throws SO APExceptio n {
  2343           tr y {
  2344                JMeadows Data port  = getJMead owsDataPor t();
  2345                return p ort.getViI mage(query Bean, imag eUrn, imag eQuality);
  2346           }  catch (Exc eption e)  {
  2347                logger.e rror(e.get Message(),  e);
  2348                throw ne w SOAPExce ption(e);
  2349           }
  2350       }
  2351  
  2352       @Overr ide
  2353       public  PatientDo cument[] g etPatientD ocuments(J MeadowsQue ry queryBe an) throws  SOAPExcep tion {
  2354           lo g("getPati entDocumen ts", query Bean);
  2355  
  2356           Pa tientDocum ent[] retu rnVal = nu ll;
  2357  
  2358           tr y {
  2359  
  2360                JMeadows Data port  = getJMead owsDataPor t();
  2361                returnVa l = port.g etPatientD ocuments(q ueryBean). toArray(ne w PatientD ocument[0] );
  2362           }  catch (Exc eption e)  {
  2363                logger.e rror(e.get Message(),  e);
  2364                throw ne w SOAPExce ption(e);
  2365           }
  2366  
  2367           re turn retur nVal;
  2368       }
  2369  
  2370       @Overr ide
  2371       public  List<Pce>  getPcesFo rNote(JMea dowsQuery  queryBean)  throws SO APExceptio n {
  2372           tr y {
  2373                JMeadows Data port  = getJMead owsDataPor t();
  2374                return p ort.getPce sForNote(q ueryBean);
  2375           }  catch (Exc eption e)  {
  2376                logger.e rror(e.get Message(),  e);
  2377                throw ne w SOAPExce ption(e);
  2378           }
  2379       }
  2380  
  2381       @Overr ide
  2382       public  List<CNot ification>  retrieveN otificatio nsCCPM() t hrows SOAP Exception  {
  2383           Li st<CNotifi cation> re turnVal =  null;
  2384  
  2385           tr y {
  2386  
  2387                JMeadows Data port  = getJMead owsDataPor t();
  2388                returnVa l = port.r etrieveNot ifications CCPM();
  2389           }  catch (Exc eption e)  {
  2390                throw ne w SOAPExce ption(e);
  2391           }
  2392           re turn retur nVal;
  2393       }
  2394  
  2395       @Overr ide
  2396       public  List<CNot ification>  retrieveN otificatio nsCCP() th rows SOAPE xception {
  2397           Li st<CNotifi cation> re turnVal =  null;
  2398  
  2399           tr y {
  2400  
  2401                JMeadows Data port  = getJMead owsDataPor t();
  2402                returnVa l = port.r etrieveNot ifications CCP();
  2403           }  catch (Exc eption e)  {
  2404                throw ne w SOAPExce ption(e);
  2405           }
  2406           re turn retur nVal;
  2407       }
  2408  
  2409       privat e void log Error(Exce ption e){
  2410           lo gger.error ("CV ERROR : " + e.ge tMessage() , e);
  2411       }
  2412   }