204. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 9/15/2018 10:48:58 PM Eastern 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.

204.1 Files compared

# Location File Last Modified
1 MHV_2018.4.0.0.zip\2018.4.0.0\national portal\mhv_source\mhv_user\mhv-usermgmt-portal-main\src\main\java\gov\va\med\mhv\usermgmt\main\service\impl SynchronousMviTreatmentFacilityUpdator.java Thu Aug 23 20:55:36 2018 UTC
2 MHV_2018.4.0.0.zip\2018.4.0.0\national portal\mhv_source\mhv_user\mhv-usermgmt-portal-main\src\main\java\gov\va\med\mhv\usermgmt\main\service\impl SynchronousMviTreatmentFacilityUpdator.java Sat Sep 15 22:56:37 2018 UTC

204.2 Comparison summary

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

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

204.4 Active regular expressions

No regular expressions were active.

204.5 Comparison detail

  1   /**
  2    * 
  3    */
  4   package go v.va.med.m hv.usermgm t.main.ser vice.impl;
  5  
  6   import org .apache.co mmons.logg ing.Log;
  7   import org .apache.co mmons.logg ing.LogFac tory;
  8   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
  9  
  10   import gov .va.med.mh v.common.a pi.dto.Pat ientDTO;
  11   import gov .va.med.mh v.common.a pi.excepti on.MHVExce ption;
  12   import gov .va.med.mh v.common.a pi.util.Lo gSanitizer ;
  13   import gov .va.med.mh v.common.a pi.util.Re sponseUtil ;
  14   import gov .va.med.mh v.common.d ata.conver ter.Patien tConverter ;
  15   import gov .va.med.mh v.common.d ata.model. Patient;
  16   import gov .va.med.mh v.usermgmt .service.M viIntegrat ionService ;
  17   import gov .va.med.mh v.usermgmt .service.M viTreatmen tFacilityU pdator;
  18  
  19   /**
  20    * @author   DNS
  21    *
  22    */
  23   public cla ss Synchro nousMviTre atmentFaci lityUpdato r implemen ts MviTrea tmentFacil ityUpdator  {
  24           
  25           pr ivate stat ic final L og LOGGER  = LogFacto ry.getLog( Synchronou sMviTreatm entFacilit yUpdator.c lass);
  26           
  27           @A utowired
  28           pr ivate Pati entConvert er patient Converter;
  29           
  30           @A utowired
  31           pr ivate MviI ntegration Service mv iIntegrati onService;
  32  
  33           /*  (non-Java doc)
  34            *  @see gov. va.med.mhv .usermgmt. service.Mv iTreatment FacilityUp dator#upda teTreatmen tFacilitie sForExisti ngPatients (gov.va.me d.mhv.comm on.api.dto .PatientDT O)
  35            * /
  36           @O verride
  37           pu blic void  updateTrea tmentFacil itiesForEx istingPati ents(Patie ntDTO pati ent) throw s MHVExcep tion {
  38                    try  {
  39                             Respon seUtil<Pat ient> resp onse = new  ResponseU til<Patien t>();
  40                             this.m viIntegrat ionService .updateTre atmentFaci litiesForE xistingPat ients(pati entConvert er.convert DTOProfile (patient),  response) ;
  41                             
  42                             if(res ponse.isFa ilure()) {
  43                                      throw ne w MHVExcep tion(respo nse.getInf oMessages( ), respons e.getValid ationError s(), respo nse.getFai lureMessag e());
  44                             }
  45                    } ca tch(MHVExc eption ex)  {
  46                             String  msg = Str ing.format ("An error  occurred  while perf orming tre atment fac ility upda te for use r: %s", ge tNullSafeU sername(pa tient));
  47                             LOGGER .error(Log Sanitizer. cleanText( msg), ex);
  48                             throw  ex;
  49                    } ca tch(Except ion ex) {
  50                             String  msg = Str ing.format ("An error  occurred  while perf orming tre atment fac ility upda te for use r: %s", ge tNullSafeU sername(pa tient));
  51                             LOGGER .error(Log Sanitizer. cleanText( msg), ex);
  52                             throw  new MHVExc eption(msg , ex);
  53                    }
  54           }
  55           
  56           pr ivate Stri ng getNull SafeUserna me(Patient DTO p) {
  57                    if(p  != null & & p.getUse rProfile()  != null)  {
  58                             return  p.getUser Profile(). getUserNam e();
  59                    }
  60                    
  61                    retu rn "nullPa tientOrUse r";
  62           }
  63  
  64   }