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

44469.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 ProviderAppointmentsDao.java Mon Jul 8 19:18:54 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 ProviderAppointmentsDao.java Wed Jul 31 18:41:36 2019 UTC

44469.2 Comparison summary

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

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

44469.4 Active regular expressions

No regular expressions were active.

44469.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 rtAppointm ent;
  19   import gov .va.med.vd s.webservi ce.Patient Appointmen ts;
  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 rAppointme ntsDao ext ends DaoBa se {
  31  
  32        /**
  33        * Get s a list o f past and /or future  appointme nts which  are assign ed to the
  34        * use r passed i n the quer yBean.
  35        * @pa ram queryB ean requir es a user,  startDate  and endDa te. Start  and
  36        * end  dates tel l the unde rlying pro cessing ro utines whe n 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 past  and/or fut ure patien t appointm ents
  39        * @th rows gov.v a.med.jmea dows.commo n.JMeadows Exception  when an er ror occurs  in the re trieval pr ocess
  40        * @th rows Illeg alArgument Exception  if require d paramete rs are mis sing or in valid
  41        */
  42       public  List<Pati entAppoint ments> get ProviderAp pointments (JMeadowsQ uery query Bean) thro ws JMeadow sException
  43       {
  44           Li st<Patient Appointmen ts> rtc =  null;
  45           
  46           va lidateQuer yBean(quer yBean, Que ryBeanPara ms.USER);
  47  
  48           au ditQuery(" ProviderAp pointments ", queryBe an);
  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(Util s.getDate( Utils.getR elativeDat e(0, 1, 0) ))));
  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 Appointmen ts";
  65  
  66                if (SYST EM_TYPE_CH CS.equalsI gnoreCase( systemType )) {
  67                    rtc  = Arrays.a sList((Pat ientAppoin tments[])
  68                             new Sm artAppoint ment().gen erateConne ctionUnava ilableBean (location,  PROVIDER_ QUERY_NOT_ SUPPORTED_ DOD));
  69                    brea k;
  70                } else i f (SYSTEM_ TYPE_VISTA .equalsIgn oreCase(sy stemType))  {
  71                    conf igs.add(
  72                         new Provid erMultiLoc QueryCfgBu ilder()
  73                                 .d ataService Handler(sm _vistaHand ler)
  74                                 .d ataService Method(met hod)
  75                                 .d ataService MethodArgs (VistaBean Factory.cr eate(query Bean))
  76                                 .l ocation(lo cation)
  77                                 .b uild()
  78                    );
  79                }
  80           }
  81  
  82           if  (rtc == n ull) {
  83                Object[]  aptObjs =  MultiLoca tionQuery. execute(
  84                         configs, n ew SmartAp pointment( ), queryBe an);
  85       
  86                List<Pat ientAppoin tments> ap pointments List = nul l;
  87       
  88                if (aptO bjs != nul l) {
  89                    appo intmentsLi st = Array s.asList(( PatientApp ointments  []) aptObj s);
  90                }
  91       
  92                rtc = ap pointments List;
  93           }
  94           re turn rtc;
  95       }
  96   }