3890. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/9/2017 3:50: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.

3890.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:50:58 2017 UTC
2 eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-server\src\main\java\gov\va\nvap\server\service\forms FormsStorage.java Fri Apr 21 20:03:28 2017 UTC

3890.2 Comparison summary

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

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

3890.4 Active regular expressions

No regular expressions were active.

3890.5 Comparison detail

        1   package go v.va.nvap. server.ser vice.forms ;
        2  
        3   import gov .va.nvap.s erver.auth .ServiceAu thenticati on;
        4   import gov .va.nvap.s ervice.aut h.ServiceA udit;
        5   import gov .va.nvap.s ervice.aut h.ServiceA uthenticat ionExcepti on;
        6   import gov .va.nvap.s ervice.for ms.FormsSt orageExcep tion;
        7   import gov .va.nvap.s ervice.for ms.Patient Form;
        8   import gov .va.nvap.s ervice.for ms.Patient FormDAO;
        9   import jav a.util.Dat e;
        10   import jav a.util.Lis t;
        11   import jav ax.annotat ion.Resour ce;
        12   import jav ax.ejb.Sta teless;
        13   import jav ax.interce ptor.Inter ceptors;
        14   import jav ax.jws.Web Service;
        15   import jav ax.xml.ws. WebService Context;
        16   import org .springfra mework.bea ns.factory .annotatio n.Autowire d;
        17   import org .springfra mework.con text.Appli cationCont ext;
        18   import org .springfra mework.ejb .intercept or.SpringB eanAutowir ingInterce ptor;
        19  
        20   /**
        21    *
        22    * @since  01/06/2016
        23    * @author  Elan
        24    */
        25   @Stateless (name = "F ormsStorag e", mapped Name = "Fo rmsStorage ")
        26   @WebServic e(endpoint Interface  = "gov.va. nvap.servi ce.forms.F ormsStorag eService")
        27   @Intercept ors(Spring BeanAutowi ringInterc eptor.clas s)
        28   public cla ss FormsSt orage {
        29  
        30       @Autow ired
        31       privat e Applicat ionContext  applicati onContext;
        32       @Resou rce
        33       privat e WebServi ceContext  context;
        34       privat e final Se rviceAuthe ntication  auth = new  ServiceAu thenticati on();
        35  
        36       public  Long addP atientForm (final Str ing ien, f inal Strin g document , String f ormType)
        37           th rows Forms StorageExc eption {
        38           Se rviceAudit  sa;
        39           In teger succ ess = 1;
        40           tr y {
        41                sa = aut h.checkAut h(context,  applicati onContext,  "addPatie ntForm");
        42           }  catch (Ser viceAuthen ticationEx ception ex ) {
        43                return n ull;
        44           }
        45  
        46           lo ng startTi me = Syste m.currentT imeMillis( );
        47  
        48           tr y {
        49                PatientF orm pf = n ew Patient Form();
        50                try {
        51                    pf.s etDocument (document) ;
        52                } catch  (Exception  e) {
        53                    thro w new Form sStorageEx ception("D ocument co uld not be  store.  R equires Ba se64 encod ing.");
        54                }
        55  
        56                pf.setPa tientID(ie n);
        57                pf.setDo cumentType (formType) ;
        58                pf.setDa teAdded(ne w Date());
        59  
        60                PatientF ormDAO dao  = applica tionContex t.getBean( PatientFor mDAO.class );
        61  
        62                return d ao.create( pf);
        63           }  catch (fin al Excepti on ex) {
        64                success  = 0;
        65                throw ne w FormsSto rageExcept ion("Error  adding fo rm to VAP" , ex);
        66           }  finally {
        67                if (sa ! = null) {
        68                    sa.s etSuccess( success);
        69                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        70                    auth .persist(a pplication Context, s a);
        71                }
        72           }
        73       }
        74  
        75       public  List<Long > getPatie ntFormIDs( final Stri ng ien, fi nal String  documentT ype)
        76           th rows Forms StorageExc eption {
        77           Se rviceAudit  sa;
        78           In teger succ ess = 1;
        79  
        80           tr y {
        81                sa = aut h.checkAut h(context,  applicati onContext,  "getPatie ntFormIDs" );
        82           }  catch (Ser viceAuthen ticationEx ception ex ) {
        83                return n ull;
        84           }
        85  
        86           lo ng startTi me = Syste m.currentT imeMillis( );
        87  
        88           tr y {
        89                PatientF ormDAO dao  = applica tionContex t.getBean( PatientFor mDAO.class );
        90  
        91                List<Lon g> ids = d ao.findPat ientFormID s(ien, doc umentType) ;
        92                return i ds;
        93           }  catch (fin al Excepti on ex) {
        94                success  = 0;
        95                throw ne w FormsSto rageExcept ion("Error  getting p atient for m IDs", ex );
        96           }  finally {
        97                if (sa ! = null) {
        98                    sa.s etSuccess( success);
        99                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        100                    auth .persist(a pplication Context, s a);
        101                }
        102           }
        103  
        104       }
        105  
        106       public  PatientFo rm getPati entForm(fi nal Long d ocID)
        107           th rows Forms StorageExc eption {
        108           Se rviceAudit  sa;
        109           In teger succ ess = 1;
        110  
        111           tr y {
        112                sa = aut h.checkAut h(context,  applicati onContext,  "getPatie ntForm");
        113           }  catch (Ser viceAuthen ticationEx ception ex ) {
        114                return n ull;
        115           }
        116  
        117           lo ng startTi me = Syste m.currentT imeMillis( );
        118  
        119           tr y {
        120                PatientF ormDAO dao  = applica tionContex t.getBean( PatientFor mDAO.class );
        121                return d ao.findPat ientForm(d ocID);
        122           }  catch (fin al Excepti on ex) {
        123                success  = 0;
        124                throw ne w FormsSto rageExcept ion("Error  getting p atient for m", ex);
        125           }  finally {
        126                if (sa ! = null) {
        127                    sa.s etSuccess( success);
        128                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        129                    auth .persist(a pplication Context, s a);
        130                }
        131           }
        132       }
        133  
        134       public  PatientFo rm getLate stPatientF orm(final  String pat ientID,
        135           fi nal String  documentT ype)
        136           th rows Forms StorageExc eption {
        137           Se rviceAudit  sa;
        138           In teger succ ess = 1;
        139  
        140           tr y {
        141                sa = aut h.checkAut h(context,  applicati onContext,  "getLates tPatientFo rm");
        142           }  catch (Ser viceAuthen ticationEx ception ex ) {
        143                return n ull;
        144           }
        145  
        146           lo ng startTi me = Syste m.currentT imeMillis( );
        147  
        148           tr y {
        149                PatientF ormDAO dao  = applica tionContex t.getBean( PatientFor mDAO.class );
        150                return d ao.findLas testPatien tForm(pati entID, doc umentType) ;
        151           }  catch (fin al Excepti on ex) {
        152                success  = 0;
        153                throw ne w FormsSto rageExcept ion("Error  getting p atient for m", ex);
        154           }  finally {
        155                if (sa ! = null) {
        156                    sa.s etSuccess( success);
        157                    sa.s etDuration ((int) (Sy stem.curre ntTimeMill is() - sta rtTime));
        158                    auth .persist(a pplication Context, s a);
        159                }
        160           }
        161       }
        162       
        163   }