22. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/25/2019 8:58:01 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.

22.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\IMAG_Source\VISA\Java\FederationDataSourceProvider\main\src\java\gov\va\med\imaging\federationdatasource\v9 FederationExternalPackageDataSourceServiceV9.java Mon Mar 18 20:39:10 2019 UTC
2 C:\AraxisMergeCompare\Pri_re\IMAG_Source\VISA\Java\FederationDataSourceProvider\main\src\java\gov\va\med\imaging\federationdatasource\v9 FederationExternalPackageDataSourceServiceV9.java Tue Mar 19 12:03:36 2019 UTC

22.2 Comparison summary

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

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

22.4 Active regular expressions

No regular expressions were active.

22.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: June  8, 2018
  6     Site Nam e:  Washin gton OI Fi eld Office , Silver S pring, MD
  7       Developer:     DNS     tjahjb
  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.fed erationdat asource.v9 ;
  27  
  28   import gov .va.med.Ro utingToken ;
  29   import gov .va.med.im aging.arti factsource .ResolvedA rtifactSou rce;
  30   import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on;
  31   import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception;
  32   import gov .va.med.im aging.data source.Ext ernalPacka geDataSour ceSpi;
  33   import gov .va.med.im aging.data source.exc eptions.Un supportedS erviceMeth odExceptio n;
  34   import gov .va.med.im aging.exch ange.busin ess.WorkIt em;
  35   import gov .va.med.im aging.fede ration.pro xy.Federat ionProxyUt ilities;
  36   import gov .va.med.im aging.fede ration.pro xy.v9.Fede rationRest ExternalPa ckageProxy V9;
  37   import gov .va.med.im aging.fede rationdata source.v8. Federation ExternalPa ckageDataS ourceServi ceV8;
  38   import gov .va.med.im aging.prox y.services .ProxyServ ices;
  39   import gov .va.med.im aging.url. federation .exception s.Federati onConnecti onExceptio n;
  40   import gov .va.med.im aging.url. vftp.VftpC onnection;
  41  
  42   import jav a.io.IOExc eption;
  43   import jav a.util.Lis t;
  44  
  45   import org .apache.lo gging.log4 j.LogManag er;
  46   import org .apache.lo gging.log4 j.Logger;
  47  
  48  
  49   /**
  50    * @author   DNS     tjahjb
  51    *
  52    */
  53   public cla ss Federat ionExterna lPackageDa taSourceSe rviceV9
  54   extends Fe derationEx ternalPack ageDataSou rceService V8
  55   {       
  56           pr otected fi nal VftpCo nnection f ederationC onnection;
  57  
  58           pr ivate fina l static S tring DATA SOURCE_VER SION = "9" ;   
  59           
  60           pr ivate Fede rationRest ExternalPa ckageProxy V9 proxy =  null;
  61           pr ivate Prox yServices  federation ProxyServi ces = null ;
  62  
  63           /* *
  64            *  @param re solvedArti factSource
  65            *  @param pr otocol
  66            *  @throws U nsupported OperationE xception
  67            * /
  68           pu blic Feder ationExter nalPackage DataSource ServiceV9( ResolvedAr tifactSour ce resolve dArtifactS ource, Str ing protoc ol)
  69                    thro ws Unsuppo rtedOperat ionExcepti on
  70           {
  71                    supe r(resolved ArtifactSo urce, prot ocol);
  72                    fede rationConn ection = n ew VftpCon nection(ge tMetadataU rl());
  73           }
  74           
  75           /*  (non-Java doc)
  76            *  @see gov. va.med.ima ging.feder ationdatas ource.Abst ractFedera tionExtern alPackageD ataSourceS ervice#get DataSource Version()
  77            * /
  78           @O verride
  79           pu blic Strin g getDataS ourceVersi on() 
  80           {
  81                    retu rn DATASOU RCE_VERSIO N;
  82           }
  83  
  84           @O verride
  85           pr otected Fe derationRe stExternal PackagePro xyV9 getPr oxy()
  86           th rows Conne ctionExcep tion
  87           {
  88                    if(p roxy == nu ll)
  89                    {
  90                             ProxyS ervices pr oxyService s = getCur rentFedera tionProxyS ervices();
  91                             if(pro xyServices  == null)
  92                                      throw ne w Connecti onExceptio n("Did not  receive a ny applica ble servic es from ID S service  for site [ " + getSit e().getSit eNumber()  + "]");
  93                             
  94                             proxy  = new Fede rationRest ExternalPa ckageProxy V9(
  95                                               proxyServi ces, 
  96                                               getFederat ionConfigu ration());
  97                    }
  98                    retu rn proxy;
  99           }        
  100           
  101           /* *
  102            *  Returns t he current  version o f proxy se rvices, if  none are  available  then null  is returne d
  103            * /
  104           pr ivate Prox yServices  getCurrent Federation ProxyServi ces()
  105           {
  106                    if(f ederationP roxyServic es == null )
  107                    {
  108                             federa tionProxyS ervices = 
  109                                      Federati onProxyUti lities.get CurrentFed erationPro xyServices (
  110                                                       ge tSite(), 
  111                                                       ge tFederatio nProxyName (), 
  112                                                       ge tDataSourc eVersion() );
  113                    }
  114                    retu rn federat ionProxySe rvices;
  115           }
  116           
  117           @O verride
  118           pu blic List< WorkItem>  getRemoteW orkItemLis tFromDataS ource(
  119                             Routin gToken glo balRouting Token, 
  120                             String  idType, 
  121                             String  patientId ,
  122                             String  cptCode) 
  123           th rows Metho dException , Connecti onExceptio
  124           {
  125                    getL ogger().de bug("execu ting getWo rkItemList  method in  Federatio nWorkListD ataSourceS erviceV9") ;
  126                    try 
  127                    {
  128                             federa tionConnec tion.conne ct();                   
  129                    }
  130                    catc h(IOExcept ion ioX) 
  131                    {
  132                             getLog ger().erro r("Error g etting wor klist from  Federatio n remote s ite", ioX) ;
  133                             throw  new Federa tionConnec tionExcept ion(ioX);
  134                    }
  135  
  136                    retu rn getProx y().getWor kItemList( globalRout ingToken,  idType, pa tientId, c ptCode);
  137                    
  138           }
  139  
  140           @O verride
  141           pu blic boole an deleteR emoteWorkI temFromDat aSource(
  142                             Routin gToken glo balRouting Token,
  143                             String  id) 
  144           th rows Metho dException , Connecti onExceptio
  145           {
  146                    getL ogger().de bug("execu ting getWo rkItemList  method in  Federatio nWorkListD ataSourceS erviceV9") ;
  147                    try 
  148                    {
  149                             federa tionConnec tion.conne ct();                   
  150                    }
  151                    catc h(IOExcept ion ioX) 
  152                    {
  153                             getLog ger().erro r("Error g etting wor klist from  Federatio n remote s ite", ioX) ;
  154                             throw  new Federa tionConnec tionExcept ion(ioX);
  155                    }
  156  
  157                    retu rn getProx y().delete WorkItem(
  158                                      globalRo utingToken
  159                                      id);
  160           }
  161  
  162  
  163   }