3118. EPMO Open Source Coordination Office Redaction File Detail Report

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

3118.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:49:48 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-client\src\main\java\gov\va\nvap\service\forms PatientFormDAO.java Fri Apr 21 20:03:26 2017 UTC

3118.2 Comparison summary

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

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

3118.4 Active regular expressions

No regular expressions were active.

3118.5 Comparison detail

        1   /*
        2    * To chan ge this te mplate, ch oose Tools  | Templat es
        3    * and ope n the temp late in th e editor.
        4    */
        5   package go v.va.nvap. service.fo rms;
        6  
        7  
        8   import jav a.util.Arr ayList;
        9   import jav a.util.Lis t;
        10   import jav ax.persist ence.Entit yManager;
        11   import jav ax.persist ence.NoRes ultExcepti on;
        12   import jav ax.persist ence.Persi stenceCont ext;
        13   import jav ax.persist ence.Query ;
        14  
        15   /**
        16    *
        17    * @author  Elan
        18    */
        19   public cla ss Patient FormDAO {
        20  
        21       @Persi stenceCont ext(name =  "VapEntit yManager")
        22       privat e EntityMa nager em;
        23  
        24       public  void setE ntityManag er(EntityM anager ent ityManager ) {
        25           th is.em = en tityManage r;
        26       }
        27  
        28       public  Long crea te(final P atientForm  pf)
        29                throws E xception {
        30           tr y {
        31                this.em. persist(pf );
        32           }  catch (fin al Excepti on ex) {
        33                throw ex ;
        34           }
        35           re turn pf.ge tDocID();
        36       }
        37  
        38       public  PatientFo rm findPat ientForm(f inal Long  id) {
        39           re turn this. em.find(Pa tientForm. class, id) ;
        40       }
        41  
        42       public  List<Long > findPati entFormIDs (final Str ing pid, f inal Strin g type) {
        43           tr y {
        44                final Qu ery q = th is.em
        45                         .createNam edQuery("P atientForm .findDocum entsByPati entID");
        46                q.setPar ameter("pi d", pid);
        47                q.setPar ameter("ty pe", type) ;
        48                return ( List<Long> ) q.getRes ultList();
        49           }  catch (fin al NoResul tException  nre) {
        50                return n ew ArrayLi st<Long>() ;
        51           }
        52       }
        53       public  PatientFo rm findLas testPatien tForm(fina l String p id, final  String typ e) {
        54           tr y {
        55                final Qu ery q = th is.em
        56                         .createNam edQuery("P atientForm .findLates tDocumentB yPatientID ");
        57                q.setPar ameter("pi d", pid);
        58                q.setPar ameter("ty pe", type) ;
        59                q.setMax Results(1) ;
        60                List<Pat ientForm>  results= ( List<Patie ntForm>) q .getResult List();
        61                if(resul ts.isEmpty ()){
        62                    retu rn null;
        63                }
        64                return r esults.get (0);
        65           }  catch (fin al NoResul tException  nre) {
        66                return n ull;
        67           }
        68       }
        69   }