144. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/8/2018 10:11:37 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.

144.1 Files compared

# Location File Last Modified
1 PRE_PPS-N_v3.0.1.zip\PS_PPS_domain\src\main\java\gov\va\med\pharmacy\peps\domain\common\utility\converter DrugSeverityConverter.java Fri Jan 12 15:44:02 2018 UTC
2 PRE_PPS-N_v3.0.1.zip\PS_PPS_domain\src\main\java\gov\va\med\pharmacy\peps\domain\common\utility\converter DrugSeverityConverter.java Wed Mar 7 01:48:25 2018 UTC

144.2 Comparison summary

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

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

144.4 Active regular expressions

No regular expressions were active.

144.5 Comparison detail

  1   package go v.va.med.p harmacy.pe ps.domain. common.uti lity.conve rter;
  2  
  3  
  4   import gov .va.med.ph armacy.pep s.common.v o.DrugSeve rityVo;
  5   import gov .va.med.ph armacy.pep s.domain.c ommon.mode l.DataObje ct;
  6   import gov .va.med.ph armacy.pep s.domain.c ommon.mode l.EplDdiSe verityDo;
  7  
  8  
  9   /**
  10    * @author         DNS
  11    * Convert  to/from { @link Drug SeverityVo } and {@li nk EplDdiS everityDo} .
  12    */
  13   public cla ss DrugSev erityConve rter exten ds  Conver ter<DrugSe verityVo,  EplDdiSeve rityDo> {
  14  
  15  
  16       /**
  17        * Par tially cop ies data f rom the gi ven DrugSe verityVo i nto a
  18        * {@l ink DataOb ject}.
  19        * 
  20        * @pa ram data D rugSeverit yVo to con vert
  21        * @re turn fully  populated  {@link Da taObject}
  22        * 
  23        * @se e gov.va.m ed.pharmac y.peps.dom ain.common .utility.c onverter.C onverter#t oDataObjec t(
  24        *       gov.va.m ed.pharmac y.peps.com mon.vo.Val ueObject)
  25        */
  26  
  27       @Overr ide
  28       protec ted EplDdi SeverityDo  toDataObj ect(DrugSe verityVo d ata) {
  29  
  30           Ep lDdiSeveri tyDo sever ity = new  EplDdiSeve rityDo();
  31           se verity.set SeverityId ((Integer. parseInt(d ata.getSev erityId()) ));
  32           se verity.set Name(data. getValue() );
  33  
  34           re turn sever ity;
  35       }
  36  
  37  
  38  
  39  
  40  
  41       /**
  42        * Par tially Dru gSeverityV o toValueO bject
  43        *       
  44        * @pa ram data { @link Data Object} to  convert
  45        * @re turn fully  populated  DrugSever ityVo
  46        * 
  47        * @se e gov.va.m ed.pharmac y.peps.dom ain.common .utility.c onverter.C onverter#t oValueObje ct(
  48        *       gov.va.m ed.pharmac y.peps.dom ain.common .model.Dat aObject)
  49        */
  50  
  51       @Overr ide
  52       protec ted DrugSe verityVo t oValueObje ct(EplDdiS everityDo  data) {
  53  
  54           Dr ugSeverity Vo severit y = new Dr ugSeverity Vo();
  55           se verity.set SeverityId (String.va lueOf(data .getSeveri tyId()));
  56           se verity.set Id(String. valueOf(da ta.getSeve rityId())) ;
  57           se verity.set Value(data .getName() );
  58           se verity.set SeverityNa me(data.ge tName());
  59  
  60           re turn sever ity;
  61       }
  62  
  63  
  64       /**
  65        * Dru gSeverityV o toMinima lValueObje ct(EplDdiS everityDo  data
  66        * <p>
  67        * Def ault imple mentation  calls {@li nk #toValu eObject(Da taObject)} .
  68        * 
  69        * @pa ram data { @link Data Object} to  convert
  70        * @re turn minim ally popul ated Ingre dientVo
  71        */
  72       @Overr ide
  73       protec ted DrugSe verityVo t oMinimalVa lueObject( EplDdiSeve rityDo dat a) {
  74  
  75           Dr ugSeverity Vo severit y = new Dr ugSeverity Vo();
  76           se verity.set Id(String. valueOf(da ta.getSeve rityId())) ;      
  77           se verity.set Value(data .getName() );
  78           re turn sever ity;
  79       }
  80  
  81   }