104. EPMO Open Source Coordination Office Redaction File Detail Report

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

104.1 Files compared

# Location File Last Modified
1 C:\AraxisMergeCompare\Pri_un\IMAG_Source\VISA\Java\ViewerStudyWebApp\main\src\java\gov\va\med\imaging\study\web\commands PostViewerStudiesForQaReviewCommand.java Mon Mar 18 20:39:15 2019 UTC
2 C:\AraxisMergeCompare\Pri_re\IMAG_Source\VISA\Java\ViewerStudyWebApp\main\src\java\gov\va\med\imaging\study\web\commands PostViewerStudiesForQaReviewCommand.java Tue Mar 19 12:04:16 2019 UTC

104.2 Comparison summary

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

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

104.4 Active regular expressions

No regular expressions were active.

104.5 Comparison detail

  1   /**
  2    * 
  3    * Date Cr eated: May  14, 2018
  4    * Develop er: Budy T jahjo
  5    */
  6   package go v.va.med.i maging.stu dy.web.com mands;
  7  
  8   import gov .va.med.Pa tientIdent ifier;
  9   import gov .va.med.Ro utingToken ;
  10   import gov .va.med.ex ceptions.R outingToke nFormatExc eption;
  11   import gov .va.med.im aging.core .interface s.exceptio ns.Connect ionExcepti on;
  12   import gov .va.med.im aging.core .interface s.exceptio ns.MethodE xception;
  13   import gov .va.med.im aging.exch ange.Routi ngTokenHel per;
  14   import gov .va.med.im aging.exch ange.busin ess.Artifa ctResults;
  15   import gov .va.med.im aging.exch ange.busin ess.Study;
  16   import gov .va.med.im aging.exch ange.busin ess.StudyF ilter;
  17   import gov .va.med.im aging.exch ange.trans lation.exc eptions.Tr anslationE xception;
  18   import gov .va.med.im aging.stud y.web.View erStudyFac adeRouter;
  19   import gov .va.med.im aging.stud y.web.rest .translato r.ViewerSt udyWebTran slator;
  20   import gov .va.med.im aging.stud y.web.rest .types.Vie werQAStudy FilterType ;
  21   import gov .va.med.im aging.stud y.web.rest .types.Vie werStudySt udiesType;
  22   import gov .va.med.im aging.tomc at.vistare alm.String Utils;
  23   import gov .va.med.im aging.web. commands.W ebserviceI nputParame terTransac tionContex tField;
  24  
  25   import jav a.util.Arr ayList;
  26   import jav a.util.Has hMap;
  27   import jav a.util.Lis t;
  28   import jav a.util.Map ;
  29  
  30   /**
  31    * @author   DNS     tjahjb
  32    *
  33    */
  34   public cla ss PostVie werStudies ForQaRevie wCommand
  35   extends Ab stractView erStudyWeb Command<Li st<Study>,  ViewerStu dyStudiesT ype>
  36   {
  37           pr ivate fina l String s iteId;
  38           pr ivate fina l ViewerQA StudyFilte rType filt erType;
  39  
  40           /* *
  41            *  @param si teId
  42            *  @param fi lterType
  43            * /
  44           
  45           pu blic PostV iewerStudi esForQaRev iewCommand (String si teId,
  46                    View erQAStudyF ilterType  filterType )
  47           {
  48                    supe r("postVie werStudies ForQaRevie w");
  49                    this .siteId =  siteId;
  50                    this .filterTyp e = filter Type;
  51           }        
  52           
  53  
  54           /* *
  55            *  @return t he filterT ype
  56            * /
  57           pu blic Viewe rQAStudyFi lterType g etFilterTy pe()
  58           {
  59                    retu rn filterT ype;
  60           }
  61  
  62           /* *
  63            *  @return t he siteId
  64            * /
  65           pu blic Strin g getSiteI d()
  66           {
  67                    retu rn siteId;
  68           }
  69  
  70           /*  (non-Java doc)
  71            *  @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#execut eRouterCom mand()
  72            * /
  73           @O verride
  74           pr otected Li st<Study>  executeRou terCommand ()
  75                    thro ws MethodE xception,  Connection Exception
  76           {
  77                    logg er.debug(" Called via  PostViewe rStudiesFo rQaReviewC ommand.");
  78                    View erStudyFac adeRouter  router = g etRouter() ;
  79                    try
  80                    {
  81                             StudyF ilter filt er = Viewe rStudyWebT ranslator. translate( getFilterT ype());
  82                             filter .setInclud eAllObject s(true);
  83                             filter .setInclud ePatientOr ders(true) ;
  84                             filter .setInclud eEncounter Orders(tru e);
  85                             filter .setInclud eMuseOrder s(true);
  86                             
  87                             Routin gToken rou tingToken  = RoutingT okenHelper .createSit eAppropria teRoutingT oken(getSi teId());
  88                             getLog ger().debu g("call po stViewerSt udiesForQa Review com mand.");
  89                             List<S tudy> resu lt = route r.postView erStudiesF orQaReview (routingTo ken, filte r);
  90                             return  result;
  91  
  92                    }
  93                    catc h(RoutingT okenFormat Exception  rtfX)
  94                    {
  95                             throw  new Method Exception( rtfX);
  96                    }
  97           }
  98           /*  (non-Java doc)
  99            *  @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#getMet hodParamet erValuesSt ring()
  100            * /
  101           @O verride
  102           pr otected St ring getMe thodParame terValuesS tring()
  103           {
  104                    retu rn "for si te [" + ge tSiteId()  + "]";
  105           }
  106           /*  (non-Java doc)
  107            *  @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#transl ateRouterR esult(java .lang.Obje ct)
  108            * /
  109           @O verride
  110           pr otected Vi ewerStudyS tudiesType  translate RouterResu lt(List<St udy> route rResult)
  111                    thro ws Transla tionExcept ion, Metho dException
  112           {
  113                    getL ogger().de bug("hitti ng PostVie werStudies ForQaRevie wCommand.t ranslateRo uterResult  method.") ;
  114                    getL ogger().de bug("attem pting to h it ViewerS tudyWebTra nslator.tr anslateStu dies metho d.");
  115                    retu rn ViewerS tudyWebTra nslator.tr anslateStu dies(route rResult);
  116           }
  117           /*  (non-Java doc)
  118            *  @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#getRes ultClass()
  119            * /
  120           @O verride
  121           pr otected Cl ass<Viewer StudyStudi esType> ge tResultCla ss()
  122           {
  123                    retu rn ViewerS tudyStudie sType.clas s;
  124           }
  125           /*  (non-Java doc)
  126            *  @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#getTra nsactionCo ntextField s()
  127            * /
  128           @O verride
  129           pr otected Ma p<Webservi ceInputPar ameterTran sactionCon textField,  String> g etTransact ionContext Fields()
  130           {
  131                    Map< Webservice InputParam eterTransa ctionConte xtField, S tring> tra nsactionCo ntextField s = 
  132                             new Ha shMap<Webs erviceInpu tParameter Transactio nContextFi eld, Strin g>();
  133                    
  134                    tran sactionCon textFields .put(Webse rviceInput ParameterT ransaction ContextFie ld.quality , transact ionContext NaValue);
  135                    tran sactionCon textFields .put(Webse rviceInput ParameterT ransaction ContextFie ld.urn, tr ansactionC ontextNaVa lue);
  136                    tran sactionCon textFields .put(Webse rviceInput ParameterT ransaction ContextFie ld.patient Id, "");
  137                    tran sactionCon textFields .put(Webse rviceInput ParameterT ransaction ContextFie ld.queryFi lter, tran sactionCon textNaValu e);
  138           
  139                    retu rn transac tionContex tFields;
  140           }
  141           /*  (non-Java doc)
  142            *  @see gov. va.med.ima ging.web.c ommands.Ab stractWebs erviceComm and#getEnt riesReturn ed(java.la ng.Object)
  143            * /
  144           @O verride
  145           pu blic Integ er getEntr iesReturne d(ViewerSt udyStudies Type trans latedResul t)
  146           {
  147                    retu rn transla tedResult  == null ?  0 : transl atedResult .getStudy( ).length;
  148           }
  149           
  150           
  151  
  152   }