44471. EPMO Open Source Coordination Office Redaction File Detail Report

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

44471.1 Files compared

# Location File Last Modified
1 JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\jMeadows\src\main\java\gov\va\med\jmeadows\dao\provider ProviderLabsDao.java Mon Jul 8 19:18:48 2019 UTC
2 JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\jMeadows\src\main\java\gov\va\med\jmeadows\dao\provider ProviderLabsDao.java Wed Jul 31 18:41:36 2019 UTC

44471.2 Comparison summary

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

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

44471.4 Active regular expressions

No regular expressions were active.

44471.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 o.provider ;
  13  
  14   import gov .va.med.jm eadows.com mon.JMeado wsExceptio n;
  15   import gov .va.med.jm eadows.dao .beans.JMe adowsQuery ;
  16   import gov .va.med.jm eadows.dao .patient.D aoBase;
  17   import gov .va.med.jm eadows.dao .util.*;
  18   import gov .va.med.jm eadows.sma rtbeans.pr ovider.Sma rtLabResul t;
  19   import gov .va.med.vd s.webservi ce.LabResu lt;
  20   import gov .va.med.vh ahon.commo n.Utils;
  21  
  22   import jav a.util.Arr ayList;
  23   import jav a.util.Arr ays;
  24   import jav a.util.Lis t;
  25  
  26   /**
  27    *
  28    * @author   DNS
  29    */
  30   public cla ss Provide rLabsDao e xtends Dao Base {
  31  
  32       /**
  33        * Get s a list o f abnormal  lab resul ts which w ere ordere d by the u ser
  34        * pas sed in the  queryBean .
  35        * @pa ram queryB ean requir es user, s tartDate a nd endDate . Start an d end
  36        * dat es tell th e underlyi ng process ing routin es when to  start and  stop
  37        * sea rching. Th e wider th e date ran ge the lon ger it tak es to proc ess.
  38        * @re turn a lis t of abnor mal lab re sults for  given user  and date
  39        * ran ge. For ea ch abnorma l lab resu lt, the ab normal res ult is inc luded.
  40        * @th rows gov.v a.med.jmea dows.commo n.JMeadows Exception  when an er ror occurs  in the re trieval pr ocess
  41        * @th rows Illeg alArgument Exception  if require d paramete rs are mis sing or in valid
  42        */
  43       public  List<LabR esult> get ProviderAb normalLabR esults(JMe adowsQuery  queryBean ) throws J MeadowsExc eption
  44       {
  45           Li st<LabResu lt> rtc =  null;
  46           va lidateQuer yBean(quer yBean, Que ryBeanPara ms.USER);
  47  
  48           au ditQuery(" ProviderAb normalLabR esults", q ueryBean);
  49  
  50           if  (queryBea n.getStart Date() ==  null || qu eryBean.ge tEndDate()  == null)
  51           {
  52                queryBea n.setStart Date(Utils .getCalend ar(Utils.p ushDateToS tartOfDay( Utils.getD ate(Utils. getRelativ eDate(0, - 1, 0)))));  //(years, months,day s)
  53                queryBea n.setEndDa te(Utils.g etCalendar (Utils.pus hDateToEnd OfDay(new  java.util. Date())));
  54           }
  55  
  56           Li st<MultiLo cationQuer yConfig> c onfigs = n ew ArrayLi st<MultiLo cationQuer yConfig>() ;
  57  
  58           Li st<UserLoc ation> loc ations;
  59  
  60           lo cations =  LocationHe lper.getUs erLocation s(queryBea n.getUser( ));
  61  
  62           fo r (UserLoc ation loca tion : loc ations) {
  63                String s ystemType  = location .getSystem Type();
  64                String m ethod = "g etProvider LabAbnorma lResults";
  65                if (SYST EM_TYPE_CH CS.equalsI gnoreCase( systemType )) {
  66                    rtc  = Arrays.a sList((Lab Result[])
  67                             new Sm artLabResu lt().gener ateConnect ionUnavail ableBean(l ocation, P ROVIDER_QU ERY_NOT_SU PPORTED_DO D));
  68                    brea k;
  69                } else i f (SYSTEM_ TYPE_VISTA .equalsIgn oreCase(sy stemType))  {
  70                    conf igs.add(
  71                         new Provid erMultiLoc QueryCfgBu ilder()
  72                                 .d ataService Handler(sm _vistaHand ler)
  73                                 .d ataService Method(met hod)
  74                                 .d ataService MethodArgs (VistaBean Factory.cr eate(query Bean))
  75                                 .l ocation(lo cation)
  76                                 .b uild()
  77                    );
  78                }
  79           }
  80           if  (rtc == n ull) {
  81                Object[]  labResult Objs = Mul tiLocation Query.exec ute(
  82                         configs, n ew SmartLa bResult(),  queryBean );
  83       
  84                List<Lab Result> la bResults =  null;
  85       
  86                if (labR esultObjs  != null) {
  87                    labR esults = A rrays.asLi st((LabRes ult []) la bResultObj s);
  88                }
  89       
  90                rtc = la bResults;
  91           }
  92           re turn rtc;
  93       }
  94   }