5. EPMO Open Source Coordination Office Redaction File Detail Report

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

5.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\AwivClientWebApp\main\src\java\gov\va\med\imaging\awiv\client\ui\widgets ImageInformationWindow.java Mon Dec 4 21:35:32 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\AwivClientWebApp\main\src\java\gov\va\med\imaging\awiv\client\ui\widgets ImageInformationWindow.java Mon Dec 4 21:56:49 2017 UTC

5.2 Comparison summary

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

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

5.4 Active regular expressions

No regular expressions were active.

5.5 Comparison detail

  1   /**
  2    * 
  3     Package:  MAG - Vis tA Imaging
  4     WARNING:  Per VHA D irective 2 004-038, t his routin e should n ot be modi fied.
  5     Date Cre ated: Jan  6, 2012
  6     Site Nam e:  Washin gton OI Fi eld Office , Silver S pring, MD
  7       Developer:          
WERFEJ
  8     Descript ion: 
  9  
  10           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  11           ;;  Property  of the US  Government .
  12           ;;  No permis sion to co py or redi stribute t his softwa re is give n.
  13           ;;  Use of un released v ersions of  this soft ware requi res the us er
  14           ;;   to execu te a writt en test ag reement wi th the Vis tA Imaging
  15           ;;   Developm ent Office  of the De partment o f Veterans  Affairs,
  16           ;;   telephon e (301) 73 4-0100.
  17           ;;
  18           ;;  The Food  and Drug A dministrat ion classi fies this  software a s
  19           ;;  a Class I I medical  device.  A s such, it  may not b e changed
  20           ;;  in any wa y.  Modifi cations to  this soft ware may r esult in a n
  21           ;;  adulterat ed medical  device un der 21CFR8 20, the us e of which
  22           ;;  is consid ered to be  a violati on of US F ederal Sta tutes.
  23           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  24  
  25    */
  26   package go v.va.med.i maging.awi v.client.u i.widgets;
  27  
  28   import org .apache.lo gging.log4 j.LogManag er;
  29   import org .apache.lo gging.log4 j.Logger;
  30  
  31   import gov .va.med.im aging.awiv .business. Patient;
  32   import gov .va.med.im aging.awiv .business. UUID;
  33   import gov .va.med.im aging.awiv .client.Aw ivHelper;
  34   import gov .va.med.im aging.awiv .client.da o.PatientS tudyServic eDao;
  35   import gov .va.med.im aging.awiv .client.ui .data.Stud yRecord;
  36   import gov .va.med.im aging.awiv .client.ui .widgets.d ialogs.Wai tDialog;
  37  
  38   import com .google.gw t.dom.clie nt.Element ;
  39   import com .google.gw t.event.do m.client.E rrorEvent;
  40   import com .google.gw t.event.do m.client.E rrorHandle r;
  41   import com .google.gw t.event.do m.client.L oadEvent;
  42   import com .google.gw t.event.do m.client.L oadHandler ;
  43   import com .google.gw t.user.cli ent.rpc.As yncCallbac k;
  44   import com .google.gw t.user.cli ent.ui.Ima ge;
  45   import com .smartgwt. client.typ es.Alignme nt;
  46   import com .smartgwt. client.typ es.Vertica lAlignment ;
  47   import com .smartgwt. client.uti l.BooleanC allback;
  48   import com .smartgwt. client.uti l.SC;
  49   import com .smartgwt. client.wid gets.Label ;
  50   import com .smartgwt. client.wid gets.Windo w;
  51  
  52   /**
  53    * @author         
WERFEJ
  54    *
  55    */
  56   public cla ss ImageIn formationW indow
  57   extends Wi ndow
  58   {
  59           pr ivate fina l int MAX_ IMAGE_HEIG HT = 150;
  60           pr ivate fina l int MAX_ IMAGE_WIDT H = 150;
  61           
  62           pr ivate stat ic Logger  logger = L ogManager. getLogger( "");
  63  
  64           pu blic Image Informatio nWindow(Pa tient pati ent, Study Record stu dyRecord)
  65           {
  66                    supe r();
  67                    
  68                    this .setWidth( 360);  
  69                    this .setHeight (215);
  70                    
  71                    this .setTitle( "Image Inf ormation -  " + study Record.get StudyIdent ifier());   
  72                    this .setShowMi nimizeButt on(false);
  73                    this .setShowCl oseButton( true);
  74                    this .setIsModa l(true);  
  75                    this .setShowMo dalMask(tr ue);  
  76                    this .centerInP age();  
  77                    this .setAlign( Alignment. CENTER);
  78           
  79           La bel label  = new Labe l(patient. getName()) ;  
  80           la bel.setHei ght100();   
  81           la bel.setPad ding(5);  
  82           la bel.setVal ign(Vertic alAlignmen t.TOP);
  83           
  84           fi nal Image  image = ne w Image();
  85           im age.addLoa dHandler(n ew LoadHan dler()
  86                    {
  87                             
  88                             @Overr ide
  89                             public  void onLo ad(LoadEve nt event)
  90                             {
  91                                       Element  element =  event.get RelativeEl ement();
  92                                 if  (element  == image.g etElement( )) {
  93                                      int orig inalHeight  = image.g etOffsetHe ight();
  94                                      int orig inalWidth  = image.ge tOffsetWid th();
  95                                      if (orig inalHeight  > origina lWidth) {
  96                                          imag e.setHeigh t(MAX_IMAG E_HEIGHT +  "px");
  97                                      } else {
  98                                          imag e.setWidth (MAX_IMAGE _WIDTH + " px");
  99                                      }
  100                                 }
  101                             }
  102                    });
  103           im age.addErr orHandler( new ErrorH andler()
  104                    {
  105                             
  106                             @Overr ide
  107                             public  void onEr ror(ErrorE vent arg0)
  108                             {
  109                                      image.se tAltText(" Error load ing image" );
  110                             }
  111                    });
  112           lo gger.info( "Retrievin g thumbnai l image '"  + studyRe cord.getFi rstImageId entifier()  + "'.");
  113           im age.setUrl ("/Awiv/th umbnail/"  + studyRec ord.getFir stImageIde ntifier()) ;
  114           
  115           
  116           th is.addItem (label);           
  117           th is.addItem (image);
  118           }
  119  
  120           pu blic stati c void dis playImageI nformation Window(Pat ient patie nt, final  StudyRecor d studyRec ord)
  121           {
  122                    if(s tudyRecord .getAwivSt udy().isDo dArtifact( ))
  123                    {
  124                             displa yImageInfo rmationMes sage(study Record, "I mage infor mation not  available  for DoD a rtifacts") ;
  125                             return ;
  126                    }
  127                    Wait Dialog.dis playWaitDi alog("Load ing Inform ation", "P lease wait  while loa ding study  informati on");
  128                    Stri ng transac tionId = U UID.uuid() ;
  129                    logg er.info("L oading stu dy informa tion for s tudy '" +  studyRecor d.getStudy Identifier () + "' wi th transac tion Id '"  + transac tionId + " '");
  130                    Pati entStudySe rviceDao.p atientStud yServiceDa o.getStudy Informatio n(transact ionId, stu dyRecord.g etStudyIde ntifier(),  
  131                                      new Asyn cCallback< String>()
  132                    {
  133                             
  134                             @Overr ide
  135                             public  void onSu ccess(Stri ng studyIn formation)
  136                             {
  137                                      WaitDial og.hideWai tDialog();
  138                                      studyInf ormation =  "URN: " +  studyReco rd.getStud yIdentifie r() + "<br >" + study Informatio n;
  139                                      displayI mageInform ationMessa ge(studyRe cord, stud yInformati on);
  140                             }
  141                             
  142                             @Overr ide
  143                             public  void onFa ilure(Thro wable arg0 )
  144                             {
  145                                      WaitDial og.hideWai tDialog();
  146                                      if(!Awiv ExceptionH andler.han dleService Exception( arg0))
  147                                      {
  148                                               AwivHelper .displayEr rorMessage ("Error lo ading stud y informat ion", arg0 );
  149                                      }
  150                             }
  151                    });               
  152           }
  153           
  154           pr ivate stat ic void di splayImage Informatio nMessage(S tudyRecord  studyReco rd, String  studyInfo rmation)
  155           {
  156                    SC.s ay("Image  Informatio n - " + st udyRecord. getStudyId entifier()
  157                                      studyInf ormation,  new Boolea nCallback( )
  158                    {                         
  159                             @Overr ide
  160                             public  void exec ute(Boolea n value)
  161                             {
  162                                      // do no thing                              
  163                             }
  164                    });      
  165           }        
  166           
  167           pu blic stati c void dis playAdvanc edImageInf ormationWi ndow(Patie nt patient , StudyRec ord studyR ecord)
  168           {
  169                    Stri ngBuilder  imageInfo  = new Stri ngBuilder( );
  170                    imag eInfo.appe nd("URN         : " +  studyReco rd.getStud yIdentifie r());
  171                    imag eInfo.appe nd("<br>") ;
  172                    imag eInfo.appe nd("Short  Desc : " +  studyReco rd.getShor tDescripti on());
  173                    imag eInfo.appe nd("<br>") ;
  174                    imag eInfo.appe nd("Image  Type : " +  studyReco rd.getAwiv Study().ge tFirstImag e().getIma geType());
  175                    imag eInfo.appe nd("<br>") ;
  176                    imag eInfo.appe nd("Patien t    : " +  patient.g etName());
  177                    imag eInfo.appe nd("<br>") ;
  178                    imag eInfo.appe nd("Proc D ate  : " +  studyReco rd.getProc edureDate( ));
  179                    imag eInfo.appe nd("<br>") ;
  180                    imag eInfo.appe nd("Proced ure  : " +  studyReco rd.getProc edure());
  181                    imag eInfo.appe nd("<br>") ;
  182                    imag eInfo.appe nd("Abs Lo cation: "  + studyRec ord.getAwi vStudy().g etFirstIma ge().getAb sLocation( ));
  183                    imag eInfo.appe nd("<br>") ;
  184                    imag eInfo.appe nd("Full I mage Acces sable/Offl ine : " +  studyRecor d.getAwivS tudy().get FirstImage ().getFull Location() );
  185                    imag eInfo.appe nd("<br>") ;
  186                    imag eInfo.appe nd("Sensit ive   : "  + studyRec ord.getAwi vStudy().i sSensitive ());
  187                    imag eInfo.appe nd("<br>") ;
  188                    imag eInfo.appe nd("Study  View Statu s : " + st udyRecord. getAwivStu dy().getSt udyViewSta tus().getS tudyStatus ());
  189                    imag eInfo.appe nd("<br>") ;
  190                    imag eInfo.appe nd("Has An notations  : " + stud yRecord.ge tAwivStudy ().isHasAn notations( ));
  191                    disp layImageIn formationM essage(stu dyRecord,  imageInfo. toString() );
  192           }
  193   }
  194