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

7.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 PatientInformationPane.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 PatientInformationPane.java Mon Dec 4 21:56:49 2017 UTC

7.2 Comparison summary

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

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

7.4 Active regular expressions

No regular expressions were active.

7.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: Dec  9, 2011
  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 gov .va.med.im aging.awiv .business. AwivUserIn formation;
  29   import gov .va.med.im aging.awiv .business. Patient;
  30   import gov .va.med.im aging.awiv .business. UUID;
  31   import gov .va.med.im aging.awiv .client.Aw ivHelper;
  32   import gov .va.med.im aging.awiv .client.Us erSessionS ervice;
  33   import gov .va.med.im aging.awiv .client.Us erSessionS erviceAsyn c;
  34   import gov .va.med.im aging.awiv .client.da o.UserServ iceDao;
  35  
  36   import org .apache.lo gging.log4 j.LogManag er;
  37   import org .apache.lo gging.log4 j.Logger;
  38  
  39   import com .google.gw t.user.cli ent.Window ;
  40   import com .google.gw t.user.cli ent.rpc.As yncCallbac k;
  41   import com .smartgwt. client.typ es.Alignme nt;
  42   import com .smartgwt. client.typ es.Vertica lAlignment ;
  43   import com .smartgwt. client.wid gets.IButt on;
  44   import com .smartgwt. client.wid gets.Label ;
  45   import com .smartgwt. client.wid gets.event s.ClickEve nt;
  46   import com .smartgwt. client.wid gets.event s.ClickHan dler;
  47   import com .smartgwt. client.wid gets.layou t.VLayout;
  48  
  49   /**
  50    * @author         
WERFEJ
  51    * 
  52    */
  53   public cla ss Patient Informatio nPane
  54   extends VL ayout
  55   {
  56  
  57           // private st atic final  int WEST_ WIDTH = 20 0;
  58           pr ivate stat ic final i nt WEST_WI DTH = 160;
  59  
  60           pr ivate Phot oIdViewer  photoId =  null;
  61           
  62           pr ivate stat ic Logger  logger = L ogManager. getLogger( "");
  63  
  64           pu blic Patie ntInformat ionPane()
  65           {
  66                    supe r();
  67  
  68                    this .setWidth( WEST_WIDTH );
  69                    //th is.setBack groundColo r("#3F4C6B ");
  70                    //th is.setBack groundColo r("#C3D9FF ");
  71                    this .setStyleN ame("Patie ntInformat ionPane");
  72                    this .setShowRe sizeBar(tr ue);
  73                    this .setLayout Align(Vert icalAlignm ent.TOP);
  74                    this .setLayout Align(Alig nment.CENT ER);
  75                    
  76  
  77                    this .setDefaul tLayoutAli gn(Alignme nt.CENTER) ;
  78                    this .setAlign( Alignment. CENTER);
  79                    this .setMember sMargin(2) ;
  80                    
  81                    phot oId = new  PhotoIdVie wer();
  82                    phot oId.setSho wPatientIn fo(true);
  83                    phot oId.setAli gn(Alignme nt.CENTER) ;
  84                    
  85                    Labe l emptyLab el = new L abel();
  86                    empt yLabel.set Height("*" );
  87                    
  88                    bool ean debugE nabled = A wivHelper. isDebugMod e();
  89                    IBut ton invali dateSessio n = null;
  90                    IBut ton getUse rInfoButto n = null;
  91                    if(d ebugEnable d)
  92                    {
  93                             invali dateSessio n = new IB utton();
  94                             invali dateSessio n.setTitle ("Invalida te Session ");
  95                             invali dateSessio n.addClick Handler(ne w ClickHan dler()
  96                             {
  97                                      
  98                                      @Overrid e
  99                                      public v oid onClic k(ClickEve nt event)
  100                                      {
  101                                               UserSessio nServiceAs ync userSe rvice = Us erSessionS ervice.Uti l
  102                                                                .get Instance() ;
  103                                               userServic e.logout(n ew AsyncCa llback<Boo lean>()
  104                                               {
  105           
  106                                                       @O verride
  107                                                       pu blic void  onSuccess( Boolean ar g0)
  108                                                       {
  109                                                                Wind ow.alert(" User sessi on invalid ated.");
  110                                                       }
  111           
  112                                                       @O verride
  113                                                       pu blic void  onFailure( Throwable  arg0)
  114                                                       {
  115                                                                Wind ow.alert(" Exception  logging ou t, "
  116                                                                                  + arg0.g etMessage( ));
  117                                                       }
  118                                               });
  119           
  120                                      }
  121                             });
  122  
  123                             getUse rInfoButto n = new IB utton("Get  User Info rmation");
  124                             getUse rInfoButto n.addClick Handler(ne w ClickHan dler()
  125                             {
  126  
  127                                      @Overrid e
  128                                      public v oid onClic k(ClickEve nt event)
  129                                      {
  130                                               UserServic eDao.userS erviceDao. getUserInf ormation(U UID.uuid() ,
  131                                                       ne w AsyncCal lback<Awiv UserInform ation>()
  132                                                       {
  133  
  134                                                                @Ove rride
  135                                                                publ ic void on Failure(Th rowable ar g0)
  136                                                                {
  137                                                                         if (!A wivExcepti onHandler
  138                                                                                           .handleSer viceExcept ion(arg0))
  139                                                                         {
  140                                                                                  Window.a lert("Fail ed to get  user info,  "
  141                                                                                                   +  arg0.getCl ass().getN ame()
  142                                                                                                   +  "|<br>|" +  arg0.getM essage());
  143                                                                         }
  144                                                                }
  145  
  146                                                                @Ove rride
  147                                                                publ ic void on Success(Aw ivUserInfo rmation ar g0)
  148                                                                {
  149                                                                         Window .alert("go t user inf o...");
  150                                                                }
  151  
  152                                               });
  153                                      }
  154                             });
  155                    }
  156  
  157                    this .addMember (photoId);
  158                    this .addMember (emptyLabe l);
  159                    if(d ebugEnable d)
  160                    {
  161                             if(inv alidateSes sion != nu ll)
  162                                      this.add Member(inv alidateSes sion);
  163                             if(get UserInfoBu tton != nu ll)
  164                                      this.add Member(get UserInfoBu tton);
  165                    }
  166                    disp layPatient (null);
  167           }
  168           
  169           pu blic void  setAwivUse rInformati on(AwivUse rInformati on awivUse rInformati on)
  170           {
  171                    phot oId.setAwi vUserInfor mation(awi vUserInfor mation);
  172           }
  173           
  174           pu blic void  displayPat ient(Patie nt patient )
  175           {
  176                    phot oId.setPat ient(patie nt);
  177                    if(p atient ==  null)
  178                    {
  179                             // cle ar patient                           
  180                    }
  181                    else
  182                    {
  183                             logger .info("Dis playing pa tient '" +  (patient  == null ?  "<null pat ient>" : p atient.get Name()) +  "'.");
  184                    }
  185           }
  186  
  187   }