6. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/5/2018 10:24:06 AM Central 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.

6.1 Files compared

# Location File Last Modified
1 patch_205_build_9.zip\Java\AwivClientWebApp\main\src\java\gov\va\med\imaging\awiv\client\ui\widgets StudyTab.java Wed May 30 14:35:28 2018 UTC
2 patch_205_build_9.zip\Java\AwivClientWebApp\main\src\java\gov\va\med\imaging\awiv\client\ui\widgets StudyTab.java Thu May 31 20:07:31 2018 UTC

6.2 Comparison summary

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

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

6.4 Active regular expressions

No regular expressions were active.

6.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  27, 2012
  6     Site Nam e:  Washin gton OI Fi eld Office , Silver S pring, MD
  7       Developer:     PI I
  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 jav a.util.log ging.Logge r;
  29  
  30   import gov .va.med.im aging.awiv .business. AwivImage;
  31   import gov .va.med.im aging.awiv .business. AwivStudyD etails;
  32   import gov .va.med.im aging.awiv .business. AwivUserIn formation;
  33   import gov .va.med.im aging.awiv .business. Patient;
  34   import gov .va.med.im aging.awiv .business. UUID;
  35   import gov .va.med.im aging.awiv .client.Aw ivHelper;
  36   import gov .va.med.im aging.awiv .client.da o.PatientS tudyServic eDao;
  37   import gov .va.med.im aging.awiv .client.ui .data.Imag eRecord;
  38   import gov .va.med.im aging.awiv .client.ui .data.Stud yRecord;
  39   import gov .va.med.im aging.awiv .client.ui .widgets.d ialogs.Wai tDialog;
  40  
  41   import com .google.gw t.user.cli ent.Window .Location;
  42   import com .google.gw t.user.cli ent.rpc.As yncCallbac k;
  43   import com .smartgwt. client.wid gets.layou t.VLayout;
  44   import com .smartgwt. client.wid gets.tab.T ab;
  45   import com .smartgwt. client.wid gets.tile. TileGrid;
  46   import com .smartgwt. client.wid gets.viewe r.DetailVi ewerField;
  47  
  48   /**
  49    * This ta b is exper imental an d not part  of patch  124. This  tab was su pposed to  show the i mages in a  group of  images
  50    * 
  51    * @author   PI I
  52    *
  53    */
  54   public cla ss StudyTa b
  55   extends Ta b
  56   implements  AwivTab
  57   {
  58           pr ivate Pati ent patien t;
  59           pr ivate Stud yRecord st udyRecord;
  60           pr ivate Awiv UserInform ation awiv UserInform ation;
  61           pr ivate Tile Grid image sGrid = ne w TileGrid ();  
  62           pr ivate stat ic Logger  logger = L ogger.getL ogger("");
  63           
  64           pu blic Study Tab()
  65           {
  66                    supe r();
  67                    VLay out layout  = new VLa yout();
  68                    layo ut.setWidt h100();
  69                    layo ut.setHeig ht100();
  70                    
  71                    
  72                    imag esGrid.set TileWidth( 194);  
  73                    imag esGrid.set TileHeight (165);
  74                    imag esGrid.set Width100() ;
  75                    imag esGrid.set Height100( );
  76                    imag esGrid.set CanReorder Tiles(fals e);
  77                    imag esGrid.set ShowAllRec ords(false );
  78                    
  79                    Deta ilViewerFi eld thumbn ailField =  new Detai lViewerFie ld("imageI dentifier" );
  80                    thum bnailField .setType(" image");  
  81                    
  82                    Stri ng imageUr lPrefix =  Location.g etProtocol () + "//"  + Location .getHost()  + "/Awiv/ thumbnail/ ";
  83                    logg er.info("I mageURLPre fix: " + i mageUrlPre fix);
  84                    thum bnailField .setImageU RLPrefix(i mageUrlPre fix);
  85                     //thumbnai lField.set ImageURLPr efix("http ://localho st: PORT /Awiv/thum bnail/");
  86                    thum bnailField .setImageW idth(186);   
  87                    thum bnailField .setImageH eight(120) ;  
  88                    
  89                    //De tailViewer Field proc edureField  = new Det ailViewerF ield("proc edure");  
  90                    Deta ilViewerFi eld proced ureField =  new Detai lViewerFie ld("imageI dentifier" );
  91           // DetailView erField pr ocedureDat eField = n ew DetailV iewerField ("procedur eDate");  
  92                    
  93           im agesGrid.s etFields(t humbnailFi eld, proce dureField) ;//, proce dureDateFi eld);
  94           // imagesGrid .setFields (procedure Field);//,  procedure DateField) ;
  95           
  96                    this .setCanClo se(true);
  97                    layo ut.addMemb er(imagesG rid);
  98                    this .setPane(l ayout);
  99           }
  100  
  101           /*  (non-Java doc)
  102            *  @see gov. va.med.ima ging.awiv. client.ui. widgets.Aw ivTab#getC reationInd ex()
  103            * /
  104           @O verride
  105           pu blic int g etCreation Index()
  106           {
  107                    retu rn 2;
  108           }
  109           
  110           /* *
  111            *  @return t he patient
  112            * /
  113           pu blic Patie nt getPati ent()
  114           {
  115                    retu rn patient ;
  116           }
  117  
  118           /* *
  119            *  @param pa tient the  patient to  set
  120            * /
  121           pu blic void  setPatient (Patient p atient)
  122           {
  123                    this .patient =  patient;
  124           }
  125  
  126           /* *
  127            *  @return t he studyRe cord
  128            * /
  129           pu blic Study Record get StudyRecor d()
  130           {
  131                    retu rn studyRe cord;
  132           }
  133  
  134           /* *
  135            *  @param st udyRecord  the studyR ecord to s et
  136            * /
  137           pu blic void  setStudyRe cord(Study Record stu dyRecord)
  138           {
  139                    this .studyReco rd = study Record;
  140           }
  141  
  142           /* *
  143            *  @return t he awivUse rInformati on
  144            * /
  145           pu blic AwivU serInforma tion getAw ivUserInfo rmation()
  146           {
  147                    retu rn awivUse rInformati on;
  148           }
  149  
  150           /* *
  151            *  @param aw ivUserInfo rmation th e awivUser Informatio n to set
  152            * /
  153           pu blic void  setAwivUse rInformati on(AwivUse rInformati on awivUse rInformati on)
  154           {
  155                    this .awivUserI nformation  = awivUse rInformati on;
  156           }
  157  
  158           pu blic void  displayStu dy(AwivUse rInformati on awivUse rInformati on,
  159                             Patien t patient,  StudyReco rd studyRe cord)
  160           {
  161                    this .patient =  patient;
  162                    this .studyReco rd = study Record;
  163                    this .awivUserI nformation  = awivUse rInformati on;
  164                    this .setTitle( this.study Record.get ShortDescr iption());
  165                    
  166                    Stri ng transac tionId = U UID.uuid() ;
  167                    logg er.info("R etrieving  images for  study '"  + studyRec ord.getStu dyIdentifi er() + "'  with trans action Id  '" + trans actionId +  "'.");
  168                    Wait Dialog.dis playWaitDi alog("Load ing Study  Images", " Loading im ages for s tudy");
  169                    Pati entStudySe rviceDao.p atientStud yServiceDa o.getStudy Details(tr ansactionI d, 
  170                                      studyRec ord.getStu dyIdentifi er(), new  AsyncCallb ack<AwivSt udyDetails >()
  171                    {
  172                             
  173                             @Overr ide
  174                             public  void onSu ccess(Awiv StudyDetai ls awivStu dyDetails)
  175                             {
  176                                      WaitDial og.hideWai tDialog();
  177                                      
  178                                      AwivImag e [] awivI mages = aw ivStudyDet ails.getAw ivImages() ;
  179                                      ImageRec ord [] ima geRecords  = new Imag eRecord[aw ivImages.l ength];
  180                                      for(int  i = 0; i <  awivImage s.length;  i++)
  181                                      {
  182                                               imageRecor ds[i] = ne w ImageRec ord(awivIm ages[i]);
  183                                               //logger.i nfo("Image Record[" +  i + "] id entifier="  + imageRe cords[i].g etImageIde ntifier()) ;
  184                                      }
  185                                      
  186                                      imagesGr id.setData (imageReco rds);
  187                             }
  188                             
  189                             @Overr ide
  190                             public  void onFa ilure(Thro wable arg0 )
  191                             {
  192                                      WaitDial og.hideWai tDialog();
  193                                      logger.s evere("Err or loading  study ima ges, " + a rg0.getMes sage());
  194                                      if(!Awiv ExceptionH andler.han dleService Exception( arg0))
  195                                      {
  196                                               AwivHelper .displayEr rorMessage ("Error lo ading stud y images",  arg0);
  197                                      }
  198                             }
  199                    });               
  200           }
  201   }