30. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 5/1/2018 12:02:02 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.

30.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 BHIERelayServiceHandler.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 BHIERelayServiceHandler.java Tue May 1 13:46:42 2018 UTC

30.2 Comparison summary

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

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

30.4 Active regular expressions

No regular expressions were active.

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