222. EPMO Open Source Coordination Office Redaction File Detail Report

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

222.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ImagingBaseWebFacade\main\src\java\gov\va\med\imaging\exchange\business\taglib\image StudyImageListTag.java Mon Dec 4 21:35:30 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\ImagingBaseWebFacade\main\src\java\gov\va\med\imaging\exchange\business\taglib\image StudyImageListTag.java Mon Dec 4 22:01:17 2017 UTC

222.2 Comparison summary

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

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

222.4 Active regular expressions

No regular expressions were active.

222.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  31, 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.image;
  25  
  26   import gov .va.med.St udyURNFact ory;
  27   import gov .va.med.im aging.Imag ingBaseWeb FacadeRout er;
  28   import gov .va.med.im aging.Stud yURN;
  29   import gov .va.med.im aging.core .FacadeRou terUtility ;
  30   import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on;
  31   import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception;
  32   import gov .va.med.im aging.exce ptions.URN FormatExce ption;
  33   import gov .va.med.im aging.exch ange.busin ess.Image;
  34   import gov .va.med.im aging.exch ange.busin ess.Series ;
  35   import gov .va.med.im aging.exch ange.busin ess.Study;
  36  
  37   import jav a.util.Arr ayList;
  38   import jav a.util.Col lection;
  39  
  40   import jav ax.servlet .jsp.JspEx ception;
  41   import jav ax.servlet .jsp.tagex t.Tag;
  42  
  43   import org .apache.lo gging.log4 j.LogManag er;
  44   import org .apache.lo gging.log4 j.Logger;
  45   import org .springfra mework.web .context.W ebApplicat ionContext ;
  46   import org .springfra mework.web .servlet.s upport.Jsp AwareReque stContext;
  47   import org .springfra mework.web .servlet.s upport.Req uestContex t;
  48  
  49   /**
  50    * @author         
BECKEC
  51    *
  52    */
  53   public cla ss StudyIm ageListTag  
  54   extends Ab stractImag eCollectio nTag
  55   {
  56           pr ivate stat ic final l ong serial VersionUID  = 1L;
  57  
  58           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";
  59           
  60           pr ivate Stri ng siteNum ber;
  61           pr ivate Stri ng studyId ;
  62           pr ivate Stri ng patient Icn;
  63           
  64           pr ivate Logg er logger  = LogManag er.getLogg er(this.ge tClass());
  65           pr ivate Coll ection<Ima ge> images ;
  66           
  67           pr ivate Requ estContext  requestCo ntext;
  68           
  69           pu blic Strin g getSiteN umber()
  70       {
  71           re turn siteN umber;
  72       }
  73           pu blic void  setSiteNum ber(String  siteNumbe r)
  74       {
  75           th is.siteNum ber = site Number;
  76       }
  77  
  78           pu blic Strin g getStudy Id()
  79       {
  80           re turn study Id;
  81       }
  82           pu blic void  setStudyId (String st udyId)
  83       {
  84           th is.studyId  = studyId ;
  85       }
  86  
  87           pu blic Strin g getPatie ntIcn()
  88       {
  89           re turn patie ntIcn;
  90       }
  91           pu blic void  setPatient Icn(String  patientIc n)
  92       {
  93           th is.patient Icn = pati entIcn;
  94       }
  95  
  96           /* *
  97            *  Return th e current  RequestCon text.
  98            * /
  99           pr otected sy nchronized  final Req uestContex t getReque stContext( )
  100           {
  101                    if(t his.reques tContext = = null)
  102                    {
  103                             this.r equestCont ext = (Req uestContex t) this.pa geContext. getAttribu te(REQUEST _CONTEXT_P AGE_ATTRIB UTE);
  104                             if (th is.request Context ==  null)
  105                             {
  106                                      this.req uestContex t = new Js pAwareRequ estContext (this.page Context);
  107                                      this.pag eContext.s etAttribut e(REQUEST_ CONTEXT_PA GE_ATTRIBU TE, this.r equestCont ext);
  108                             }
  109                    }
  110                    
  111                    retu rn this.re questConte xt;
  112           }
  113  
  114           //  ========= ========== ========== ========== ========== ========== ========== =========
  115           //  JSP Tag L ifecycle E vents
  116           //  ========= ========== ========== ========== ========== ========== ========== =========
  117  
  118           /* *
  119            *  Create an d expose t he current  RequestCo ntext. Del egates to
  120            *  {@link #d oStartTagI nternal()}  for actua l work.
  121            *  
  122            *  @see #REQ UEST_CONTE XT_PAGE_AT TRIBUTE
  123            *  @see org. springfram ework.web. servlet.su pport.JspA wareReques tContext
  124            * /
  125           pu blic final  int doSta rtTag() 
  126           th rows JspEx ception
  127           {
  128                    this .requestCo ntext = ge tRequestCo ntext();
  129                    
  130           We bApplicati onContext  webApplica tionContex t = 
  131                    getR equestCont ext().getW ebApplicat ionContext ();
  132           
  133           Im agingBaseW ebFacadeRo uter route r;
  134                    try
  135                    {
  136                             router  = FacadeR outerUtili ty.getFaca deRouter(I magingBase WebFacadeR outer.clas s);
  137                    } 
  138                    catc h (Excepti on x)
  139                    {
  140                             logger .error("Ex ception ge tting the  facade rou ter implem entation." , x);
  141                             throw  new JspExc eption(x);
  142                    }
  143           
  144           St udyURN stu dyUrn = nu ll;
  145           tr y
  146           {
  147                try
  148                {
  149                         studyUrn =  StudyURNF actory.cre ate(getSit eNumber(),  getStudyI d(), getPa tientIcn() , StudyURN .class);
  150                } 
  151                    catc h (URNForm atExceptio n iufX)
  152                {
  153                             String  msg = 
  154                                      "Error b uilding St udyURN  ["  + getSite Number() +  "," + get StudyId()  + "," + ge tPatientIc n() + "]";
  155                             logger .error(msg );
  156                             throw  new JspExc eption(iuf X);
  157                }
  158  
  159                    Stud y study =  router.get PatientStu dy(studyUr n);
  160                    imag es = new A rrayList<I mage>();
  161                    for( Series ser ies : stud y.getSerie s())
  162                    {
  163                             for(Im age image  : series)
  164                             {
  165                                      images.a dd(image);
  166                             }
  167                    }
  168   //               imag es = vixCo re.getStud yImageList (studyUrn) ;
  169                    
  170                         return ima ges == nul l ? Tag.SK IP_BODY :  super.doSt artTag();
  171           } 
  172           ca tch (Metho dException  mX)
  173           {
  174                    Stri ng msg = 
  175                             "Error  when gett ing images  for study  URN [" +  studyUrn +  "]";
  176                    logg er.error(m sg);
  177                    thro w new JspE xception(m X);
  178           } 
  179           ca tch (Conne ctionExcep tion mX)
  180           {
  181                    Stri ng msg = 
  182                             "Error  when gett ing images  for study  URN [" +  studyUrn +  "]";
  183                    logg er.error(m sg);
  184                    thro w new JspE xception(m X);
  185           } 
  186           }
  187  
  188           /* *
  189            *  @see gov. va.med.ima ging.excha nge.busine ss.taglib. image.Abst ractImageC ollectionT ag#getImag eCollectio n()
  190            * /
  191           @O verride
  192           pr otected Co llection<I mage> getI mageCollec tion() 
  193           th rows JspEx ception
  194           {
  195                    retu rn images;
  196           }
  197  
  198   }