44490. EPMO Open Source Coordination Office Redaction File Detail Report

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

44490.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\test\integration\java\gov\va\med\jmeadows\dao\patient AllergyDaoTest.java Mon Jul 8 19:18:44 2019 UTC
2 JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\jMeadows\src\test\integration\java\gov\va\med\jmeadows\dao\patient AllergyDaoTest.java Wed Jul 31 18:41:37 2019 UTC

44490.2 Comparison summary

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

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

44490.4 Active regular expressions

No regular expressions were active.

44490.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.patient;
  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 .beans.JMe dResultCol lection;
  17   import gov .va.med.vd s.webservi ce.Allergy ;
  18   import gov .va.med.vd s.webservi ce.Allergy Detail;
  19   import org .apache.ax is.utils.S tringUtils ;
  20   import org .junit.Tes t;
  21  
  22   import jav a.util.Lis t;
  23  
  24   import sta tic org.ju nit.Assert .*;
  25  
  26   /**
  27    *
  28    * @author   DNS
  29    */
  30   public cla ss Allergy DaoTest ex tends DaoB aseTest
  31   {
  32       privat e AllergyD ao allergy Dao;
  33  
  34       public  AllergyDa oTest() th rows JMead owsExcepti on
  35       {
  36           al lergyDao =  new Aller gyDao();
  37       }
  38  
  39       @Test
  40       public  void test GetPatient Allergies( )
  41       {
  42           tr y {
  43                JMeadows Query qb =  setupQuer y(user, pa tient, sta rtDate, en dDate);
  44   //             qb.set IncludeDAS VLER(true) ;
  45                JMedResu ltCollecti on resultC ollection  = allergyD ao.getPati entAllergi es(qb);
  46                List<All ergy> alle rgies = re sultCollec tion.getAl lergies();
  47                assertTr ue(allergi es.size()  > 0);
  48                testForB eanMeta(al lergies);
  49           }  catch (JMe adowsExcep tion ex) {
  50                fail(ex. getMessage ());
  51           }
  52       }
  53  
  54       @Test
  55       public  void test GetDODVLER PatientAll ergies()
  56       {
  57           tr y {
  58                JMeadows Query qb =  setupQuer y(user, pa tient, sta rtDate, en dDate);
  59                List<All ergy> alle rgies = al lergyDao.g etDODVLERP atientAlle rgies(qb);
  60                assertTr ue(allergi es.size()  > 0);
  61                testForB eanMeta(al lergies);
  62           }  catch (JMe adowsExcep tion ex) {
  63                fail(ex. getMessage ());
  64           }
  65       }
  66  
  67       @Test
  68       public  void test GetAllergy Detail()
  69       {
  70           tr y {
  71                JMeadows Query qb =  setupQuer y(user, pa tient, sta rtDate, en dDate);
  72                List<All ergy> alle rgies = al lergyDao.g etPatientA llergies(q b).getAlle rgies();
  73                assertTr ue(allergi es.size()  > 0);
  74  
  75                Allergy  allergy =  null;
  76                for(Alle rgy alg :  allergies)
  77                {
  78                    if ( "VA".equal sIgnoreCas e(alg.getS ite().getA gency()))
  79                    {
  80                         allergy =  alg;
  81                         break;
  82                    }
  83                }
  84  
  85                assertNo tNull(alle rgy);
  86  
  87                JMeadows Query qb2  = new JMea dowsQuery( );
  88                qb2.setU ser(user);
  89                qb2.setP atient(pat ient);
  90                if (alle rgy != nul l)
  91                {
  92                    qb2. setItemId( allergy.ge tAllergyId ());
  93                    qb2. setRecordS iteCode(al lergy.getS ite().getS iteCode()) ;
  94                }
  95  
  96                AllergyD etail alle rgyDetail  = allergyD ao.getAlle rgyDetail( qb2);
  97  
  98                assertNo tNull(alle rgyDetail) ;
  99  
  100                assertFa lse(String Utils.isEm pty(allerg yDetail.ge tReportTex t()));
  101  
  102           }  catch (JMe adowsExcep tion ex) {
  103                fail(ex. getMessage ());
  104           }
  105       }
  106   }