31. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/5/2017 12:06:34 PM Central Standard 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.

31.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\BaseWebFacade\main\src\java\gov\va\med\imaging\exchange\business\taglib\patient AbstractPatientListTag.java Mon Dec 4 21:35:32 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\BaseWebFacade\main\src\java\gov\va\med\imaging\exchange\business\taglib\patient AbstractPatientListTag.java Mon Dec 4 21:57:16 2017 UTC

31.2 Comparison summary

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

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

31.4 Active regular expressions

No regular expressions were active.

31.5 Comparison detail

  1   /**
  2    * Package : MAG - Vi stA Imagin g
  3    * WARNING : Per VHA  Directive  2004-038,  this routi ne should  not be mod ified.
  4    * Date Cr eated: Jan  22, 2008
  5    * Site Na me:  Washi ngton OI F ield Offic e, Silver  Spring, MD
  6    * @author         
BECKEC
  7    * @versio n 1.0
  8    *
  9    * ------- ---------- ---------- ---------- ---------- ---------- -------
  10    * Propert y of the U S Governme nt.
  11    * No perm ission to  copy or re distribute  this soft ware is gi ven.
  12    * Use of  unreleased  versions  of this so ftware req uires the  user
  13    * to exec ute a writ ten test a greement w ith the Vi stA Imagin g
  14    * Develop ment Offic e of the D epartment  of Veteran s Affairs,
  15    * telepho ne (301) 7 34-0100.
  16    * 
  17    * The Foo d and Drug  Administr ation clas sifies thi s software  as
  18    * a Class  II medica l device.   As such,  it may not  be change d
  19    * in any  way.  Modi fications  to this so ftware may  result in  an
  20    * adulter ated medic al device  under 21CF R820, the  use of whi ch
  21    * is cons idered to  be a viola tion of US  Federal S tatutes.
  22    * ------- ---------- ---------- ---------- ---------- ---------- -------
  23    */
  24   package go v.va.med.i maging.exc hange.busi ness.tagli b.patient;
  25  
  26   import gov .va.med.im aging.core .interface s.Router;
  27   import gov .va.med.im aging.exch ange.busin ess.Patien t;
  28  
  29   import jav a.io.IOExc eption;
  30   import jav a.util.Ite rator;
  31   import jav a.util.Lis t;
  32  
  33   import jav ax.servlet .jsp.JspEx ception;
  34   import jav ax.servlet .jsp.tagex t.BodyTagS upport;
  35   import jav ax.servlet .jsp.tagex t.Iteratio nTag;
  36   import jav ax.servlet .jsp.tagex t.Tag;
  37   import jav ax.servlet .jsp.tagex t.TryCatch Finally;
  38  
  39   import org .apache.lo gging.log4 j.Logger;
  40   import org .apache.lo gging.log4 j.LogManag er;
  41  
  42   import org .springfra mework.web .context.W ebApplicat ionContext ;
  43   import org .springfra mework.web .servlet.s upport.Jsp AwareReque stContext;
  44   import org .springfra mework.web .servlet.s upport.Req uestContex t;
  45  
  46   /**
  47    * This cl ass must b e subclass ed with so mething th at will se t the
  48    * List of  Study ins tances to  display.
  49    * 
  50    * @author         
BECKEC
  51    *
  52    */
  53   public abs tract clas s Abstract PatientLis tTag 
  54   extends Bo dyTagSuppo rt
  55   implements  TryCatchF inally
  56   {
  57           pu blic stati c final St ring REQUE ST_CONTEXT _PAGE_ATTR IBUTE = "o rg.springf ramework.w eb.servlet .tags.REQU EST_CONTEX T";
  58           /* *
  59            *  {@link ja vax.servle t.jsp.Page Context} a ttribute f or page-le vel
  60            *  {@link Re questConte xt} instan ce.
  61            * /
  62           pr ivate stat ic final l ong serial VersionUID  = 1L;
  63           pr ivate Stri ng emptyRe sultMessag e = null;
  64           
  65           pr ivate Logg er logger  = LogManag er.getLogg er(this.ge tClass());
  66           pr ivate Requ estContext  requestCo ntext;
  67       privat e Iterator <Patient>  patientIte rator;
  68       privat e Patient  currentPat ient;
  69           
  70           /* *
  71        * @re turn the s tudyList
  72        */
  73       protec ted abstra ct List<Pa tient> get PatientLis t()
  74       throws  JspExcept ion;
  75  
  76           /* *
  77            *  The messa ge to show  if the st udy list i s empty
  78            *  @return
  79            * /
  80           pu blic Strin g getEmpty ResultMess age()
  81       {
  82           re turn empty ResultMess age;
  83       }
  84  
  85           pu blic void  setEmptyRe sultMessag e(String e mptyResult Message)
  86       {
  87           th is.emptyRe sultMessag e = emptyR esultMessa ge;
  88       }
  89           
  90           /* *
  91        * @se e javax.se rvlet.jsp. tagext.Tag Support#do StartTag()
  92        */
  93       @Overr ide
  94       public  int doSta rtTag() 
  95       throws  JspExcept ion
  96       {
  97           Li st<Patient > patientL ist = getP atientList ();
  98           
  99           if (patientLi st != null  && patien tList.size () > 0)
  100           {
  101                    pati entIterato r = patien tList.iter ator();
  102                    curr entPatient  = patient Iterator.n ext();
  103                return T ag.EVAL_BO DY_INCLUDE ;
  104           }
  105           
  106           if (getEmptyR esultMessa ge() != nu ll)
  107                    try{ pageContex t.getOut() .write(get EmptyResul tMessage() );}
  108                    catc h(IOExcept ion ioX){l ogger.erro r("Unable  to write e mpty resul t set mess age.");}
  109  
  110           re turn Tag.S KIP_BODY;
  111       }
  112  
  113       Patien t getCurre ntPatient( )
  114       {
  115           re turn curre ntPatient;
  116       }
  117           
  118           @O verride
  119       public  int doAft erBody() 
  120           th rows JspEx ception
  121       {
  122                if( pati entIterato r.hasNext( ) )
  123                {
  124                    curr entPatient  = patient Iterator.n ext();
  125                    retu rn Iterati onTag.EVAL _BODY_AGAI N;
  126                }
  127                else
  128                {
  129                    curr entPatient  = null;
  130                    retu rn Iterati onTag.SKIP _BODY;
  131                }
  132       }
  133  
  134           /* *
  135        * @se e javax.se rvlet.jsp. tagext.Tag Support#do EndTag()
  136        */
  137       @Overr ide
  138       public  int doEnd Tag() 
  139       throws  JspExcept ion
  140       {
  141                return T ag.EVAL_PA GE;
  142       }
  143  
  144           //  ========= ========== ========== ========== ========== ========== ========== =========
  145           //  TryCatchF inally Eve nts
  146           //  ========= ========== ========== ========== ========== ========== ========== =========
  147  
  148           /* *
  149            *  @see java x.servlet. jsp.tagext .TryCatchF inally#doC atch(java. lang.Throw able)
  150            * /
  151           @O verride
  152       public  void doCa tch(Throwa ble t) 
  153           th rows Throw able
  154       {
  155                    logg er.error(t );
  156                    thro w new JspE xception(t );
  157       }
  158  
  159           @O verride
  160       public  void doFi nally()
  161       {
  162                
  163       }
  164       
  165   }