44500. EPMO Open Source Coordination Office Redaction File Detail Report

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

44500.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 NotesDaoTest.java Mon Jul 8 19:18:50 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 NotesDaoTest.java Wed Jul 31 18:41:37 2019 UTC

44500.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 242
Changed 2 4
Inserted 0 0
Removed 0 0

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

44500.4 Active regular expressions

No regular expressions were active.

44500.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.bh ie.NoteIma ge;
  15   import gov .va.med.jm eadows.com mon.JMeado wsExceptio n;
  16   import gov .va.med.jm eadows.dao .beans.JMe adowsQuery ;
  17   import gov .va.med.jm eadows.dao .beans.JMe dResultCol lection;
  18   import gov .va.med.vd s.webservi ce.*;
  19   import org .junit.Tes t;
  20  
  21   import jav a.util.Cal endar;
  22   import jav a.util.Lis t;
  23  
  24   import sta tic org.ju nit.Assert .assertTru e;
  25   import sta tic org.ju nit.Assert .fail;
  26  
  27   /**
  28    *
  29    * @author   DNS
  30    */
  31   public cla ss NotesDa oTest exte nds DaoBas eTest
  32   {
  33       privat e NotesDao  notesDao;
  34  
  35       public  NotesDaoT est() thro ws JMeadow sException
  36       {
  37           no tesDao = n ew NotesDa o();
  38       }
  39  
  40       @Test
  41       public  void test GetPatient ProgressNo tes()
  42       {
  43           tr y {
  44                JMeadows Query qb =  setupQuer y(user, pa tient, sta rtDate, en dDate);
  45  
  46                JMedResu ltCollecti on resultC ollection  = notesDao .getPatien tProgressN otes(qb);
  47                List<Pro gressNote>  notes = r esultColle ction.getP rogressNot es();
  48                assertTr ue(notes.s ize() > 0) ;
  49                testForB eanMeta(no tes);
  50           }  catch (JMe adowsExcep tion ex) {
  51                fail(ex. getMessage ());
  52           }
  53       }
  54  
  55  
  56       @Test
  57       public  void test GetPatient DischargeS ummaries()
  58       {
  59           tr y {
  60               JMeadowsQ uery qb =  setupQuery (user, pat ient, star tDate, end Date);
  61  
  62                JMedResu ltCollecti on resultC ollection  = notesDao .getPatien tDischarge Summaries( qb);
  63                List<Pro gressNote>  notes = r esultColle ction.getP rogressNot es();
  64                assertTr ue(notes.s ize() > 0) ;
  65                testForB eanMeta(no tes);
  66           }  catch (JMe adowsExcep tion ex) {
  67                fail(ex. getMessage ());
  68           }
  69       }
  70  
  71       @Test
  72       public  void test GetPatient Consults()
  73       {
  74           tr y {
  75                JMeadows Query qb =  setupQuer y(user, pa tient, sta rtDate, en dDate);
  76  
  77                JMedResu ltCollecti on resultC ollection  = notesDao .getPatien tConsultRe quests(qb) ;
  78                List<Con sult> cons ults = res ultCollect ion.getCon sults();
  79                assertTr ue(consult s.size() >  0);
  80                testForB eanMeta(co nsults);
  81           }  catch (JMe adowsExcep tion ex) {
  82                fail(ex. getMessage ());
  83           }
  84       }
  85  
  86       @Test
  87       public  void test GetPcesFor Note()
  88       {
  89           tr y {
  90                startDat e.set(2015 , Calendar .AUGUST, 1 4);
  91                endDate. set(2015,  Calendar.A UGUST, 15) ;
  92                JMeadows Query qb =  setupQuer y(user, pa tient, sta rtDate, en dDate);
  93                Appointm entsDao ap pointments Dao = new  Appointmen tsDao();
  94                
  95                List<Enc ounter> en countersLi st = appoi ntmentsDao .getPatien tEncounter s(qb).getE ncounters( );
  96                assertTr ue(encount ersList.si ze() > 0);
  97                List<Enc ounterDocu ment> enco unterDocum ents = enc ountersLis t.get(0).g etDocument s();
  98                assertTr ue(encount erDocument s.size() >  0);
  99                qb.setIt emId(encou nterDocume nts.get(0) .getId());
  100                qb.setRe cordSiteCo de(encount erDocument s.get(0).g etSite().g etSiteCode ());
  101                List<Pce > pceList  = notesDao .getPcesFo rNote(qb);
  102                assertTr ue(pceList .size() >  0);
  103                
  104                testForB eanMeta(pc eList);
  105                
  106           }  catch (JMe adowsExcep tion ex) {
  107                fail(ex. getMessage ());
  108           }
  109       }
  110  
  111       @Test
  112       public  void test GetNoteAtt achmentFro mUrl()
  113       {
  114           tr y {
  115                JMeadows Query qb =  setupQuer y(user, pa tient, sta rtDate, en dDate);
  116                  qb.setComp lexTransac tion("http :// IP            /MockDoDAd aptor/asyn c/complex/ note/99999 15");
  117                NoteImag e noteImag e = notesD ao.getBHIE NoteAttach ment(qb);
  118                assertTr ue(noteIma ge.getCont entType()  != "");
  119           }  catch (JMe adowsExcep tion ex) {
  120                fail(ex. getMessage ());
  121           }
  122       }
  123   }