32. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 8/31/2017 11:16:53 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

32.1 Files compared

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

32.2 Comparison summary

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

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

32.4 Active regular expressions

No regular expressions were active.

32.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.bh ie.BHIERel ay;
  15   import gov .va.med.bh ie.BHIERel ayService;
  16   import gov .va.med.bh ie.NoteIma ge;
  17   import gov .va.med.bh ie.QueryBe an;
  18   import gov .va.med.bh ie.SnareUs er;
  19   import gov .va.med.bh ie.V4Resul tCollectio n;
  20   import gov .va.med.jm eadows.com mon.JMeado wsExceptio n;
  21   import org .slf4j.Log ger;
  22   import org .slf4j.Log gerFactory ;
  23  
  24   import jav a.net.Malf ormedURLEx ception;
  25  
  26   import jav ax.xml.nam espace.QNa me;
  27   import jav ax.xml.ws. BindingPro vider;
  28   import jav ax.xml.ws. soap.MTOMF eature;
  29  
  30   /**
  31    * BHIESer viceHandle r
  32    */
  33   public cla ss BHIERel ayServiceH andler ext ends DataS erviceHand ler {
  34       privat e BHIERela yService b hieRelaySe rvice;
  35       privat e static f inal Logge r LOGGER =  LoggerFac tory.getLo gger(BHIER elayServic eHandler.c lass);
  36  
  37       public  BHIERelay ServiceHan dler(Strin g url) {
  38           su per();
  39  
  40           se rviceURL =  url;
  41           se rviceName  = "BHIERel ayService" ;
  42             serviceNam espace = " http://web service.bh ie. URL         /";
  43           qS erviceName  = new QNa me(service Namespace,  serviceNa me);
  44  
  45           se rviceUsern ame = APP_ CONFIG.get BHIERelayS erviceUser name();
  46           se rvicePassw ord = APP_ CONFIG.get BHIERelayS ervicePass word();
  47  
  48  
  49       }
  50  
  51       privat e BHIERela y getBHIER elayPort()  throws Ma lformedURL Exception  {
  52           re turn getBH IERelayPor t(false);
  53       }
  54  
  55       privat e BHIERela y getBHIER elayPort(b oolean inc ludeMTOMFe ature) thr ows Malfor medURLExce ption
  56       {
  57           if  (bhieRela yService = = null) {
  58                createSe rvice();
  59           }
  60  
  61           BH IERelay po rt = null;
  62  
  63           if  (includeM TOMFeature ) {
  64                port = b hieRelaySe rvice.getB HIERelayPo rt(new MTO MFeature() );
  65           }  else {
  66                port = b hieRelaySe rvice.getB HIERelayPo rt();
  67           }
  68  
  69           // set port e ndpoint ad dress
  70           Bi ndingProvi der prov =  (BindingP rovider) p ort;
  71           pr ov.getRequ estContext ().put(Bin dingProvid er.ENDPOIN T_ADDRESS_ PROPERTY,  serviceURL );
  72           pr ov.getRequ estContext ().put(Bin dingProvid er.USERNAM E_PROPERTY , serviceU sername);
  73           pr ov.getRequ estContext ().put(Bin dingProvid er.PASSWOR D_PROPERTY , serviceP assword);
  74           pr ov.getRequ estContext ().put("co m.sun.xml. internal.w s.connect. timeout",  serviceCon nectionTim eoutMS);
  75           pr ov.getRequ estContext ().put("co m.sun.xml. internal.w s.request. timeout",  serviceReq uestTimeou tMS);
  76           pr ov.getRequ estContext ().put("co m.sun.xml. ws.connect .timeout",  serviceCo nnectionTi meoutMS);
  77           pr ov.getRequ estContext ().put("co m.sun.xml. ws.request .timeout",  serviceRe questTimeo utMS);
  78  
  79           re turn port;
  80       }
  81  
  82       privat e synchron ized void  createServ ice() {
  83           if  (bhieRela yService = = null) {
  84                try {
  85                    bhie RelayServi ce = new B HIERelaySe rvice();
  86                } catch  (Exception  e) {
  87                    logE rror(e);
  88                    thro w new Runt imeExcepti on(e);
  89                }
  90           }
  91       }
  92  
  93       public  V4ResultC ollection  getPatient Admissions (QueryBean  queryBean ) throws J MeadowsExc eption {
  94           tr y {
  95                return g etBHIERela yPort().ge tPatientAd missions(q ueryBean);
  96           }  catch (Exc eption e)  {
  97                logError (e);
  98                throw ne w JMeadows Exception( e);
  99           }
  100       }
  101  
  102       public  V4ResultC ollection  getPatient Allergies( QueryBean  queryBean)  throws JM eadowsExce ption {
  103           tr y {
  104                return g etBHIERela yPort().ge tPatientAl lergies(qu eryBean);
  105           }  catch (Exc eption e)  {
  106                logError (e);
  107                throw ne w JMeadows Exception( e);
  108           }
  109       }
  110  
  111       public  V4ResultC ollection  getPatient Immunizati ons(QueryB ean queryB ean) throw s JMeadows Exception  {
  112           tr y {
  113                return g etBHIERela yPort().ge tPatientIm munization s(queryBea n);
  114           }  catch (Exc eption e)  {
  115                logError (e);
  116                throw ne w JMeadows Exception( e);
  117           }
  118       }
  119  
  120       public  V4ResultC ollection  getPatient ProblemLis t(QueryBea n queryBea n) throws  JMeadowsEx ception {
  121           tr y {
  122                return g etBHIERela yPort().ge tPatientPr oblemList( queryBean) ;
  123           }  catch (Exc eption e)  {
  124                logError (e);
  125                throw ne w JMeadows Exception( e);
  126           }
  127       }
  128  
  129       public  V4ResultC ollection  getPatient RadiologyR eports(Que ryBean que ryBean) th rows JMead owsExcepti on {
  130           tr y {
  131                return g etBHIERela yPort().ge tPatientRa diologyRep orts(query Bean);
  132           }  catch (Exc eption e)  {
  133                logError (e);
  134                throw ne w JMeadows Exception( e);
  135           }
  136       }
  137  
  138       public  V4ResultC ollection  getPatient Vitals(Que ryBean que ryBean) th rows JMead owsExcepti on {
  139           tr y {
  140                return g etBHIERela yPort().ge tPatientVi tals(query Bean);
  141           }  catch (Exc eption e)  {
  142                logError (e);
  143                throw ne w JMeadows Exception( e);
  144           }
  145       }
  146  
  147       public  V4ResultC ollection  getPatient Appointmen ts(QueryBe an queryBe an) throws  JMeadowsE xception {
  148           tr y {
  149                return g etBHIERela yPort().ge tPatientAp pointments (queryBean );
  150           }  catch (Exc eption e)  {
  151                logError (e);
  152                throw ne w JMeadows Exception( e);
  153           }
  154       }
  155  
  156       public  V4ResultC ollection  getPatient Encounters (QueryBean  queryBean ) throws J MeadowsExc eption {
  157           tr y {
  158                return g etBHIERela yPort().ge tPatientEn counters(q ueryBean);
  159           }  catch (Exc eption e)  {
  160                logError (e);
  161                throw ne w JMeadows Exception( e);
  162           }
  163       }
  164  
  165       public  V4ResultC ollection  getEncount erNotes(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  166           tr y {
  167                return g etBHIERela yPort().ge tEncounter Notes(quer yBean);
  168           }  catch (Exc eption e)  {
  169                logError (e);
  170                throw ne w JMeadows Exception( e);
  171           }
  172       }
  173  
  174       public  V4ResultC ollection  getPatient Notes(Quer yBean quer yBean) thr ows JMeado wsExceptio n {
  175           tr y {
  176                return g etBHIERela yPort().ge tPatientNo tes(queryB ean);
  177           }  catch (Exc eption e)  {
  178                logError (e);
  179                throw ne w JMeadows Exception( e);
  180           }
  181       }
  182  
  183       public  NoteImage  getNoteIm age(String  url) thro ws JMeadow sException  {
  184           tr y {
  185                return g etBHIERela yPort(true ).getNoteI mageFromUr l(url);
  186           }  catch (Exc eption e)  {
  187                logError (e);
  188                throw ne w JMeadows Exception( e);
  189           }
  190       }
  191  
  192       public  NoteImage  getNoteAt tachment(S tring url)  throws JM eadowsExce ption {
  193           tr y {
  194                return g etBHIERela yPort(true ).getNoteA ttachmentF romUrl(url );
  195           }  catch (Exc eption e)  {
  196                logError (e);
  197                throw ne w JMeadows Exception( e);
  198           }
  199       }
  200  
  201       public  V4ResultC ollection  getPatient DischargeS ummaries(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  202           tr y {
  203                return g etBHIERela yPort().ge tPatientDi schargeSum maries(que ryBean);
  204           }  catch (Exc eption e)  {
  205                logError (e);
  206                throw ne w JMeadows Exception( e);
  207           }
  208       }
  209  
  210   //    publ ic V4Resul tCollectio n getInpat ientNotes( QueryBean  queryBean)  throws JM eadowsExce ption {
  211   //         try {
  212   //             return  getBHIERe layPort(). getInpatie ntNotes(qu eryBean);
  213   //         } catch (E xception e ) {
  214   //             throw  new JMeado wsExceptio n(e);
  215   //         }
  216   //    }
  217  
  218       public  V4ResultC ollection  getPatient Consults(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  219           tr y {
  220                return g etBHIERela yPort().ge tPatientCo nsults(que ryBean);
  221           }  catch (Exc eption e)  {
  222                logError (e);
  223                throw ne w JMeadows Exception( e);
  224           }
  225       }
  226  
  227       //getP atientAler ts
  228       public  V4ResultC ollection  getPatient Management (QueryBean  queryBean ) throws J MeadowsExc eption {
  229           tr y {
  230                return g etBHIERela yPort().ge tPatientMa nagement(q ueryBean);
  231           }  catch (Exc eption e)  {
  232                logError (e);
  233                throw ne w JMeadows Exception( e);
  234           }
  235       }
  236  
  237       public  V4ResultC ollection  getPatient Medication s(QueryBea n queryBea n) throws  JMeadowsEx ception {
  238           tr y {
  239                return g etBHIERela yPort().ge tPatientMe dications( queryBean) ;
  240           }  catch (Exc eption e)  {
  241                logError (e);
  242                throw ne w JMeadows Exception( e);
  243           }
  244       }
  245  
  246       public  V4ResultC ollection  getPatient LabChemist ries(Query Bean query Bean) thro ws JMeadow sException  {
  247           tr y {
  248                return g etBHIERela yPort().ge tPatientLa bChemistri es(queryBe an);
  249           }  catch (Exc eption e)  {
  250                logError (e);
  251                throw ne w JMeadows Exception( e);
  252           }
  253       }
  254  
  255       public  V4ResultC ollection  getPatient LabMicrobi ologies(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  256           tr y {
  257                return g etBHIERela yPort().ge tPatientLa bMicrobiol ogies(quer yBean);
  258           }  catch (Exc eption e)  {
  259                logError (e);
  260                throw ne w JMeadows Exception( e);
  261           }
  262       }
  263  
  264       public  V4ResultC ollection  getPatient LabAnatomi cPathologi es(QueryBe an queryBe an) throws  JMeadowsE xception {
  265           tr y {
  266                return g etBHIERela yPort().ge tPatientLa bAnatomicP athologies (queryBean );
  267           }  catch (Exc eption e)  {
  268                logError (e);
  269                throw ne w JMeadows Exception( e);
  270           }
  271       }
  272  
  273       public  V4ResultC ollection  getPatient Demographi cs(QueryBe an queryBe an) throws  JMeadowsE xception {
  274           tr y {
  275                return g etBHIERela yPort().ge tPatientDe mographics (queryBean );
  276           }  catch (Exc eption e)  {
  277                logError (e);
  278                throw ne w JMeadows Exception( e);
  279           }
  280       }
  281  
  282       public  V4ResultC ollection  getPatient SocialHist ory(QueryB ean queryB ean) throw s JMeadows Exception  {
  283           tr y {
  284                return g etBHIERela yPort().ge tPatientSo cialHistor y(queryBea n);
  285           }  catch (Exc eption e)  {
  286                logError (e);
  287                throw ne w JMeadows Exception( e);
  288           }
  289       }
  290  
  291       public  V4ResultC ollection  getPatient OtherHisto ry(QueryBe an queryBe an) throws  JMeadowsE xception {
  292           tr y {
  293                return g etBHIERela yPort().ge tPatientOt herHistory (queryBean );
  294           }  catch (Exc eption e)  {
  295                logError (e);
  296                throw ne w JMeadows Exception( e);
  297           }
  298       }
  299  
  300       public  V4ResultC ollection  getPatient FamilyHist ory(QueryB ean queryB ean) throw s JMeadows Exception  {
  301           tr y {
  302                return g etBHIERela yPort().ge tPatientFa milyHistor y(queryBea n);
  303           }  catch (Exc eption e)  {
  304                logError (e);
  305                throw ne w JMeadows Exception( e);
  306           }
  307       }
  308  
  309       public  V4ResultC ollection  getPatient Orders(Que ryBean que ryBean) th rows JMead owsExcepti on {
  310           tr y {
  311                return g etBHIERela yPort().ge tPatientOr ders(query Bean);
  312           }  catch (Exc eption e)  {
  313                logError (e);
  314                throw ne w JMeadows Exception( e);
  315           }
  316       }
  317  
  318       public  V4ResultC ollection  getPatient Insurances (QueryBean  queryBean ) throws J MeadowsExc eption
  319       {
  320           tr y {
  321                return g etBHIERela yPort().ge tPatientIn surances(q ueryBean);
  322           }  catch (Exc eption e)  {
  323                logError (e);
  324                throw ne w JMeadows Exception( e);
  325           }
  326       }
  327  
  328       public  V4ResultC ollection  getPatient Questionna ires(Query Bean query Bean) thro ws JMeadow sException  {
  329           tr y {
  330                return g etBHIERela yPort().ge tPatientQu estionnair es(queryBe an);
  331           }  catch (Exc eption e)  {
  332                logError (e);
  333                throw ne w JMeadows Exception( e);
  334           }
  335       }
  336  
  337       public  V4ResultC ollection  getDeploym entForms(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  338           tr y {
  339                return g etBHIERela yPort().ge tDeploymen tForms(que ryBean);
  340           }  catch (Exc eption e)  {
  341                logError (e);
  342                throw ne w JMeadows Exception( e);
  343           }
  344       }
  345  
  346       public  V4ResultC ollection  getOutpati entProcedu res(QueryB ean queryB ean) throw s JMeadows Exception  {
  347           tr y {
  348                return g etBHIERela yPort().ge tOutpatien tProcedure s(queryBea n);
  349           }  catch (Exc eption e)  {
  350                logError (e);
  351                throw ne w JMeadows Exception( e);
  352           }
  353       }
  354  
  355       public  V4ResultC ollection  getVLERPat ientAllerg ies(QueryB ean queryB ean) throw s JMeadows Exception  {
  356           tr y {
  357                return g etBHIERela yPort().ge tVLERPatie ntAllergie s(queryBea n);
  358           }  catch (Exc eption e)  {
  359                logError (e);
  360                throw ne w JMeadows Exception( e);
  361           }
  362       }
  363  
  364       public  V4ResultC ollection  getVLERPat ientImmuni zations(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  365           tr y {
  366                return g etBHIERela yPort().ge tVLERPatie ntImmuniza tions(quer yBean);
  367           }  catch (Exc eption e)  {
  368                logError (e);
  369                throw ne w JMeadows Exception( e);
  370           }
  371       }
  372  
  373       public  V4ResultC ollection  getVLERPat ientProble ms(QueryBe an queryBe an) throws  JMeadowsE xception {
  374           tr y {
  375                return g etBHIERela yPort().ge tVLERPatie ntProblemL ist(queryB ean);
  376           }  catch (Exc eption e)  {
  377                logError (e);
  378                throw ne w JMeadows Exception( e);
  379           }
  380       }
  381  
  382       public  V4ResultC ollection  getVLERPat ientProced ures(Query Bean query Bean) thro ws JMeadow sException  {
  383           tr y {
  384                return g etBHIERela yPort().ge tVLERPatie ntProcedur es(queryBe an);
  385           }  catch (Exc eption e)  {
  386                logError (e);
  387                throw ne w JMeadows Exception( e);
  388           }
  389       }
  390  
  391       public  V4ResultC ollection  getVLERPat ientInsura nces(Query Bean query Bean) thro ws JMeadow sException  {
  392           tr y {
  393                return g etBHIERela yPort().ge tVLERPatie ntInsuranc es(queryBe an);
  394           }  catch (Exc eption e)  {
  395                logError (e);
  396                throw ne w JMeadows Exception( e);
  397           }
  398       }
  399  
  400       public  V4ResultC ollection  getVLERPat ientVitals (QueryBean  queryBean ) throws J MeadowsExc eption {
  401           tr y {
  402                return g etBHIERela yPort().ge tVLERPatie ntVitals(q ueryBean);
  403           }  catch (Exc eption e)  {
  404                logError (e);
  405                throw ne w JMeadows Exception( e);
  406           }
  407       }
  408  
  409       public  V4ResultC ollection  getVLERPat ientDemogr aphics(Que ryBean que ryBean) th rows JMead owsExcepti on {
  410           tr y {
  411                return g etBHIERela yPort().ge tVLERPatie ntDemograp hics(query Bean);
  412           }  catch (Exc eption e)  {
  413                logError (e);
  414                throw ne w JMeadows Exception( e);
  415           }
  416       }
  417  
  418       public  V4ResultC ollection  getVLERPat ientCCDA(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  419           tr y {
  420                return g etBHIERela yPort().ge tVLERPatie ntCCDA(que ryBean);
  421           }  catch (Exc eption e)  {
  422                logError (e);
  423                throw ne w JMeadows Exception( e);
  424           }
  425       }
  426  
  427       public  V4ResultC ollection  getHAIMSDo cuments(Qu eryBean qu eryBean) t hrows JMea dowsExcept ion {
  428           tr y {
  429                return g etBHIERela yPort().ge tHAIMSDocu ments(quer yBean);
  430           }  catch (Exc eption e)  {
  431                logError (e);
  432                throw ne w JMeadows Exception( e);
  433           }
  434       }
  435  
  436       public  V4ResultC ollection  getMhsGene sisDocumen ts(QueryBe an queryBe an) throws  JMeadowsE xception {
  437           tr y {
  438                return g etBHIERela yPort().ge tMhsGenesi sDocuments (queryBean );
  439           }  catch (Exc eption e)  {
  440                logError (e);
  441                throw ne w JMeadows Exception( e);
  442           }
  443       }
  444  
  445       public  V4ResultC ollection  getGenesis Encounters (QueryBean  queryBean ) throws J MeadowsExc eption {
  446           tr y {
  447                return g etBHIERela yPort().ge tGenesisEn counters(q ueryBean);
  448           }  catch (Exc eption e)  {
  449                logError (e);
  450                throw ne w JMeadows Exception( e);
  451           }
  452       }
  453  
  454       public  V4ResultC ollection  getGenesis Consults(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  455           tr y {
  456                return g etBHIERela yPort().ge tGenesisCo nsults(que ryBean);
  457           }  catch (Exc eption e)  {
  458                logError (e);
  459                throw ne w JMeadows Exception( e);
  460           }
  461       }
  462  
  463       public  V4ResultC ollection  getGenesis InpatientS ummaries(Q ueryBean q ueryBean)  throws JMe adowsExcep tion {
  464           tr y {
  465                return g etBHIERela yPort().ge tGenesisIn patientSum maries(que ryBean);
  466           }  catch (Exc eption e)  {
  467                logError (e);
  468                throw ne w JMeadows Exception( e);
  469           }
  470       }
  471  
  472       public  V4ResultC ollection  getGenesis Procedures (QueryBean  queryBean ) throws J MeadowsExc eption {
  473           tr y {
  474                return g etBHIERela yPort().ge tGenesisPr ocedures(q ueryBean);
  475           }  catch (Exc eption e)  {
  476                logError (e);
  477                throw ne w JMeadows Exception( e);
  478           }
  479       }
  480  
  481       public  V4ResultC ollection  getGenesis Documents( QueryBean  queryBean)  throws JM eadowsExce ption {
  482           tr y {
  483                return g etBHIERela yPort().ge tGenesisDo cuments(qu eryBean);
  484           }  catch (Exc eption e)  {
  485                logError (e);
  486                throw ne w JMeadows Exception( e);
  487           }
  488       }
  489  
  490       public  SnareUser  getSnarew orksUser(S tring cert ificate, S tring user , String c redential)  throws JM eadowsExce ption {
  491           tr y {
  492                return g etBHIERela yPort().ge tSnarework sUser(cert ificate, u ser, crede ntial);
  493           }  catch (Exc eption e)  {
  494                logError (e);
  495                throw ne w JMeadows Exception( e);
  496           }
  497       }
  498  
  499       privat e void log Error(Exce ption e){
  500           LO GGER.error ("BHIERela yService E RROR: " +  e.getMessa ge(), e);
  501       }
  502   }