268. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 2/4/2019 11:34:04 AM Eastern 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.

268.1 Files compared

# Location File Last Modified
1 MHPRO_v1.x.zip\mhpro-resources-master@a26412b610c.zip\ws\src\main\java\gov\va\mobile\vamf\mhpro\domain IENAndStationNumber.java Tue Nov 14 19:31:17 2017 UTC
2 MHPRO_v1.x.zip\mhpro-resources-master@a26412b610c.zip\ws\src\main\java\gov\va\mobile\vamf\mhpro\domain IENAndStationNumber.java Mon Feb 4 15:13:47 2019 UTC

268.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 220
Changed 1 2
Inserted 0 0
Removed 0 0

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

268.4 Active regular expressions

No regular expressions were active.

268.5 Comparison detail

  1   package go v.va.mobil e.vamf.mhp ro.domain;
  2  
  3   import jav a.util.Loc ale;
  4  
  5   import jav ax.validat ion.constr aints.NotN ull;
  6   import jav ax.xml.bin d.annotati on.XmlAcce ssType;
  7   import jav ax.xml.bin d.annotati on.XmlAcce ssorType;
  8   import jav ax.xml.bin d.annotati on.XmlElem ent;
  9   import jav ax.xml.bin d.annotati on.XmlRoot Element;
  10  
  11   import org .apache.co mmons.lang 3.builder. CompareToB uilder;
  12   import org .apache.co mmons.lang 3.builder. EqualsBuil der;
  13   import org .apache.co mmons.lang 3.builder. HashCodeBu ilder;
  14  
  15   import gov .va.mobile .vamf.comm on.domain. Namespace;
  16  
  17   /**
  18    * This co uld repres ent the id entifier f or any obj ect in Vis ta. The pr ovider's
  19    * IEN is  called the  DUZ; the  patient's  is called  the DFN.
  20    * 
  21    * @author   PII
  22    *
  23    */
  24   @XmlAccess orType(val ue = XmlAc cessType.N ONE)
  25   @XmlRootEl ement(name  = "ienAnd StationNum ber", name space = Na mespace.VA MF)
  26   public cla ss IENAndS tationNumb er impleme nts Compar able<IENAn dStationNu mber> {
  27       public  static fi nal String  ASSIGN_AU TH_PREFIX_ DFN = "dfn -";
  28  
  29       public  static IE NAndStatio nNumber ge tForProvid erAssignAu thAndIEN(S tring prov iderAssign Auth, Stri ng ien) {
  30           if  (provider AssignAuth  == null
  31                    || ! providerAs signAuth.t oLowerCase (Locale.RO OT).starts With(ASSIG N_AUTH_PRE FIX_DFN))
  32                return n ull;
  33  
  34           //  replaceAl l to satis fy Fortify
  35           St ring stati onNumber =  providerA ssignAuth. substring( ASSIGN_AUT H_PREFIX_D FN.length( )).replace All("\\r|\ \n", "");
  36           ie n = ien.re placeAll(" \\r|\\n",  "");
  37  
  38  
  39           re turn new I ENAndStati onNumber(i en, statio nNumber);
  40       }
  41  
  42       @XmlEl ement
  43       @NotNu ll
  44       privat e String i en;
  45  
  46       @XmlEl ement
  47       @NotNu ll
  48       privat e String s tationNumb er;
  49  
  50       public  IENAndSta tionNumber () {
  51           //  TODO Auto -generated  construct or stub
  52       }
  53  
  54       public  IENAndSta tionNumber (String ie n, String  stationNum ber) {
  55           th is.ien = i en;
  56           th is.station Number = s tationNumb er;
  57       }
  58  
  59       public  IENAndSta tionNumber (IENAndSta tionNumber  copy) {
  60           th is(copy.ie n, copy.st ationNumbe r);
  61       }
  62  
  63       @Overr ide
  64       public  int compa reTo(IENAn dStationNu mber o) {
  65           if  (equals(o ))
  66                return 0 ;
  67  
  68           re turn new C ompareToBu ilder().ap pend(stati onNumber,  o.stationN umber).app end(ien, o .ien).toCo mparison()  > 0 ? 1
  69                    : -1 ;
  70       }
  71  
  72       @Overr ide
  73       public  String to String() {
  74           re turn "IEN  " + ien +  " @ statio n " + stat ionNumber;
  75       }
  76  
  77       @Overr ide
  78       public  int hashC ode() {
  79           re turn new H ashCodeBui lder().app end(ien).a ppend(stat ionNumber) .toHashCod e();
  80       }
  81  
  82       @Overr ide
  83       public  boolean e quals(Obje ct obj) {
  84           if  (this ==  obj)
  85                return t rue;
  86           if  (obj == n ull)
  87                return f alse;
  88           if  (getClass () != obj. getClass() )
  89                return f alse;
  90           IE NAndStatio nNumber ot her = (IEN AndStation Number) ob j;
  91  
  92           re turn new E qualsBuild er().appen d(ien, oth er.ien).ap pend(stati onNumber,  other.stat ionNumber) .isEquals( );
  93       }
  94  
  95       public  String ge tIEN() {
  96           re turn ien;
  97       }
  98  
  99       public  void setI EN(String  ien) {
  100           th is.ien = i en;
  101       }
  102  
  103       public  String ge tStationNu mber() {
  104           re turn stati onNumber;
  105       }
  106  
  107       public  void setS tationNumb er(String  stationNum ber) {
  108           th is.station Number = s tationNumb er;
  109       }
  110  
  111   }