35. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 5/1/2018 12:02:03 PM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

35.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\ZIP\JLV_2.6.2.0.3_src\jMeadows\src\main\java\gov\va\med\jmeadows\dataservicehandler VistaDataVLERServiceHandler.java Thu Mar 29 22:08:33 2018 UTC
2 C:\AraxisMergeCompare\Pri_re\ZIP\JLV_2.6.2.0.3_src\jMeadows\src\main\java\gov\va\med\jmeadows\dataservicehandler VistaDataVLERServiceHandler.java Tue May 1 13:46:48 2018 UTC

35.2 Comparison summary

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

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

35.4 Active regular expressions

No regular expressions were active.

35.5 Comparison detail

  1   /**
  2    * Janus 4 .0 (c)
  3    * Copyrig ht (c) 201 1 Hawaii R esource Gr oup LLC. A ll Rights  Reserved.
  4    * Develop ed for the  Pacific T elehealth  & Technolo gy Hui and  the Pacif ic Joint I nformation  Technolog y Center
  5    * Contrib utors:
  6    *     Hon orable Sen ator Danie l K. Inouy e
  7    *     VA  Pacific Is lands Heal th Care Sy stem
  8    *     Tri pler Army  Medical Ce nter
  9    */
  10    
  11    
  12   package go v.va.med.j meadows.da taserviceh andler;
  13  
  14   import gov .va.med.jm eadows.com mon.JMeado wsExceptio n;
  15   import gov .va.med.jm eadows.dao .beans.JMe dResultCol lection;
  16   import gov .va.med.jm eadows.dao .hdd.VLERS iteCache;
  17   import gov .va.med.vd s.webservi ce.*;
  18   import org .slf4j.Log ger;
  19   import org .slf4j.Log gerFactory ;
  20  
  21   import jav ax.xml.nam espace.QNa me;
  22   import jav ax.xml.ws. BindingPro vider;
  23   import jav ax.xml.ws. handler.Ha ndler;
  24   import jav a.util.Lis t;
  25  
  26  
  27   /**
  28    *
  29    * @author  vhahongot om
  30    */
  31   public cla ss VistaDa taVLERServ iceHandler  extends D ataService Handler {
  32       privat e VistaDat aService m _VistaData VLERServic e;
  33       privat e static f inal Logge r LOGGER =  LoggerFac tory.getLo gger(Vista DataVLERSe rviceHandl er.class);
  34  
  35       public  VistaData VLERServic eHandler(S tring url)  {
  36           su per();
  37  
  38           se rviceURL =  url;
  39           se rviceName  = "VistaDa taVLERServ ice";
  40             serviceNam espace = " http://web service.vd s. URL         /";
  41           qS erviceName  = new QNa me(service Namespace,  serviceNa me);
  42  
  43           se rviceConne ctionTimeo utMS = APP _CONFIG.ge tVLERConne ctionTimeo utMS();
  44           se rviceReque stTimeoutM S = APP_CO NFIG.getVL ERRequestT imeoutMS() ;
  45  
  46       }
  47  
  48       privat e synchron ized void  createServ ice() {
  49           if  (m_VistaD ataVLERSer vice == nu ll) {
  50                try {
  51                    m_Vi staDataVLE RService =  new Vista DataServic e();
  52                } catch  (Exception  e) {
  53                    logE rror(e);
  54                    thro w new Runt imeExcepti on(e);
  55                }
  56           }
  57       }
  58       privat e VistaDat a getVista DataPort()  {
  59  
  60           if  (m_VistaD ataVLERSer vice == nu ll) {
  61                createSe rvice();
  62           }
  63  
  64           Vi staData po rt = m_Vis taDataVLER Service.ge tVistaData Port();
  65  
  66           // set port e ndpoint ad dress
  67           Bi ndingProvi der prov =  (BindingP rovider) p ort;
  68           pr ov.getRequ estContext ().put(Bin dingProvid er.ENDPOIN T_ADDRESS_ PROPERTY,  serviceURL );
  69           pr ov.getRequ estContext ().put("co m.sun.xml. internal.w s.connect. timeout",  serviceCon nectionTim eoutMS);
  70           pr ov.getRequ estContext ().put("co m.sun.xml. internal.w s.request. timeout",  serviceReq uestTimeou tMS);
  71           pr ov.getRequ estContext ().put("co m.sun.xml. ws.connect .timeout",  serviceCo nnectionTi meoutMS);
  72           pr ov.getRequ estContext ().put("co m.sun.xml. ws.request .timeout",  serviceRe questTimeo utMS);
  73  
  74           //  SOAP mess age loggin g - Enable  to show l ogging in  output win dow
  75           if  ("test".e qualsIgnor eCase(APP_ CONFIG.get AppEnviron ment()) ||  "developm ent".equal sIgnoreCas e(APP_CONF IG.getAppE nvironment ())) {
  76                prov.get Binding(). getHandler Chain().ad d(new SOAP LoggingHan dler());
  77                List<Han dler> hand lerList =  prov.getBi nding().ge tHandlerCh ain();
  78                handlerL ist.add(ne w SOAPLogg ingHandler ());
  79                prov.get Binding(). setHandler Chain(hand lerList);
  80           }
  81  
  82           re turn port;
  83       }
  84  
  85       public  JMedResul tCollectio n getVLERD ocumentLis t(QueryBea n queryBea n) throws  JMeadowsEx ception {
  86           JM edResultCo llection r etVal;
  87           tr y {
  88                VistaDat a port = g etVistaDat aPort();
  89                retVal =  new JMedR esultColle ction(port .getPatien tDocumentL ist(queryB ean));
  90                List<Vle rDocument>  vdList =  retVal.get VlerDocume nts();
  91                for (Vle rDocument  vd : vdLis t) {
  92                    if ( vd.getHome CommunityI d() != nul l) {
  93                         Author aut hor = new  Author();
  94                         author.set Institutio n(VLERSite Cache.getV LERSiteNam e(vd.getHo meCommunit yId()));
  95                         author.set Name(vd.ge tHomeCommu nityId());
  96                         vd.getAuth orList().a dd(0, auth or);
  97                    }
  98                }
  99                for (Int erfaceStat us interfa ceStatus :  retVal.ge tInterface StatusList ()) {
  100                    if ( interfaceS tatus.getN ame() != n ull) {
  101                         interfaceS tatus.setN ame(VLERSi teCache.ge tVLERSiteN ame(interf aceStatus. getName()) );
  102                    }
  103                }
  104  
  105                return r etVal;
  106           }  catch (Exc eption e)  {
  107                logError (e);
  108                throw ne w JMeadows Exception( e);
  109           }
  110       }
  111  
  112   //    publ ic String  getVLERSit eName(Stri ng hcid) {
  113   //         String out put = "";
  114   //         String hci  = "";
  115   //         if(hcid.st artsWith(" urn")) {
  116   //             hci =  hcid.subst ring(8, hc id.length( ));
  117   //         } else {
  118   //             hci =  hcid;
  119   //         }
  120   //         if (VLERSi teCache.ge tCode("",  hci, "") ! = null) {
  121   //             output  = VLERSit eCache.get Code("", h ci, "").ge tDisplay() ;
  122   //         }
  123   //         return out put;
  124   //    }
  125  
  126       public  VlerDocum ent getVLE RDocument( VlerDocume nt vDoc, Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  127           Vl erDocument  returnVal  = null;
  128           tr y {
  129                VistaDat a port = g etVistaDat aPort();
  130                returnVa l =  port. getPatient Document(v Doc, query Bean);
  131           }  catch (Exc eption e)  {
  132                logError (e);
  133                throw ne w JMeadows Exception( e);
  134           }
  135           re turn retur nVal;
  136       }
  137  
  138       public  JMedResul tCollectio n getDASVL ERAllergie s(QueryBea n queryBea n) throws  JMeadowsEx ception {
  139           JM edResultCo llection r eturnVal =  null;
  140           tr y {
  141                VistaDat a port = g etVistaDat aPort();
  142                returnVa l = new JM edResultCo llection(p ort.getVLE RPatientAl lergies(qu eryBean));
  143           }  catch (Exc eption e){
  144                logError (e);
  145                throw ne w JMeadows Exception( e);
  146           }
  147           re turn retur nVal;
  148       }
  149  
  150       public  JMedResul tCollectio n getDASVL ERProblems (QueryBean  queryBean ) throws J MeadowsExc eption {
  151           JM edResultCo llection r eturnVal =  null;
  152           tr y {
  153                VistaDat a port = g etVistaDat aPort();
  154                returnVa l = new JM edResultCo llection(p ort.getVLE RPatientPr oblems(que ryBean));
  155           }  catch (Exc eption e){
  156                logError (e);
  157                throw ne w JMeadows Exception( e);
  158           }
  159           re turn retur nVal;
  160       }
  161  
  162       public  JMedResul tCollectio n getDASVL ERVitals(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  163           JM edResultCo llection r eturnVal =  null;
  164           tr y {
  165                VistaDat a port = g etVistaDat aPort();
  166                returnVa l = new JM edResultCo llection(p ort.getVLE RPatientVi tals(query Bean));
  167           }  catch (Exc eption e){
  168                logError (e);
  169                throw ne w JMeadows Exception( e);
  170           }
  171           re turn retur nVal;
  172       }
  173  
  174       public  JMedResul tCollectio n getDASVL ERProcedur es(QueryBe an queryBe an) throws  JMeadowsE xception {
  175           JM edResultCo llection r eturnVal =  null;
  176           tr y {
  177                VistaDat a port = g etVistaDat aPort();
  178                returnVa l = new JM edResultCo llection(p ort.getVLE RPatientPr ocedures(q ueryBean)) ;
  179           }  catch (Exc eption e){
  180                logError (e);
  181                throw ne w JMeadows Exception( e);
  182           }
  183           re turn retur nVal;
  184       }
  185  
  186       public  JMedResul tCollectio n getDASVL ERImmuniza tions(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  187           JM edResultCo llection r eturnVal =  null;
  188           tr y {
  189                VistaDat a port = g etVistaDat aPort();
  190                returnVa l = new JM edResultCo llection(p ort.getVLE RPatientIm munization s(queryBea n));
  191           }  catch (Exc eption e){
  192                logError (e);
  193                throw ne w JMeadows Exception( e);
  194           }
  195           re turn retur nVal;
  196       }
  197  
  198       public  JMedResul tCollectio n getDASVL ERDemograp hics(Query Bean query Bean) thro ws JMeadow sException  {
  199           JM edResultCo llection r eturnVal =  null;
  200           tr y {
  201                VistaDat a port = g etVistaDat aPort();
  202                returnVa l = new JM edResultCo llection(p ort.getVLE RPatientDe mographics (queryBean ));
  203           }  catch (Exc eption e){
  204                logError (e);
  205                throw ne w JMeadows Exception( e);
  206           }
  207           re turn retur nVal;
  208       }
  209  
  210       privat e void log Error(Exce ption e){
  211           LO GGER.error ("VistaDat aService E RROR: " +  e.getMessa ge(), e);
  212       }
  213  
  214   }