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

3117.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 PatientForm.java Fri Apr 21 20:03:26 2017 UTC

3117.2 Comparison summary

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

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

3117.4 Active regular expressions

No regular expressions were active.

3117.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   import com .octetstri ng.vde.uti l.Base64;
        8   import jav a.io.Seria lizable;
        9   import jav a.util.Dat e;
        10   import jav ax.jws.Web Result;
        11   import jav ax.persist ence.Basic ;
        12   import jav ax.persist ence.Colum n;
        13   import jav ax.persist ence.Entit y;
        14   import jav ax.persist ence.Gener atedValue;
        15   import jav ax.persist ence.Gener ationType;
        16   import jav ax.persist ence.Id;
        17   import jav ax.persist ence.Lob;
        18   import jav ax.persist ence.Named Queries;
        19   import jav ax.persist ence.Named Query;
        20   import jav ax.persist ence.Seque nceGenerat or;
        21   import jav ax.persist ence.Table ;
        22   import jav ax.persist ence.Tempo ral;
        23   import jav ax.persist ence.Tempo ralType;
        24  
        25   /**
        26    *
        27    * @author  Elan
        28    */
        29   @Entity
        30   @Table(nam e = "PATIE NT_FORM")
        31   @NamedQuer ies({
        32  
        33                    @Nam edQuery(na me = "Pati entForm.fi ndDocument ByID", que ry = "SELE CT c FROM  PatientFor m c WHERE  c.docID =  :id"),
        34                    @Nam edQuery(na me = "Pati entForm.fi ndLatestDo cumentByPa tientID",  query = "S ELECT c FR OM Patient Form c WHE RE c.patie ntID = :pi d and c.do cumentType  = :type O rder by c. dateAdded  desc"),
        35                    @Nam edQuery(na me = "Pati entForm.fi ndDocument sByPatient ID", query  = "SELECT  c.docID F ROM Patien tForm c WH ERE c.pati entID = :p id and c.d ocumentTyp e = :type" )})
        36  
        37   public cla ss Patient Form  impl ements Ser ializable  {
        38       @Id
        39       @Seque nceGenerat or(name =  "patientFo rmSequence ", sequenc eName = "P ATIENT_FOR M_SEQ", al locationSi ze = 1)
        40       @Gener atedValue( strategy =  Generatio nType.SEQU ENCE, gene rator = "p atientForm Sequence")
        41       @Basic (optional  = false)
        42       @Colum n(name = " DOC_ID")
        43       privat e Long doc ID;
        44       @Basic (optional  = false)
        45       @Colum n(name = " PATIENT_ID ")
        46       privat e String p atientID;
        47       @Basic (optional  = false)
        48       @Colum n(name = " DOCUMENT")
        49       @Lob
        50       privat e byte[] d ocument;
        51       @Basic (optional  = false)
        52       @Colum n(name = " DOCUMENT_T YPE")
        53       privat e String d ocumentTyp e;
        54       @Basic (optional  = false)
        55       @Colum n(name = " DATE_ADDED ")
        56       @Tempo ral(Tempor alType.TIM ESTAMP)
        57       privat e Date dat eAdded;
        58       
        59       @WebRe sult(name= "docID")
        60       public  Long getD ocID() {
        61           re turn docID ;
        62       }
        63  
        64       public  void setD ocID(Long  docID) {
        65           th is.docID =  docID;
        66       }
        67       
        68       @WebRe sult(name= "patientID ")
        69       public  String ge tPatientID () {
        70           re turn patie ntID;
        71       }
        72  
        73       public  void setP atientID(S tring pati entID) {
        74           th is.patient ID = patie ntID;
        75       }
        76       
        77       @WebRe sult(name= "document" )
        78       public  String ge tDocument( ) {
        79           re turn  Base 64.encode( document);
        80       }
        81  
        82       public  void setD ocument(St ring docum ent) {
        83           th is.documen t = Base64 .decode(do cument);
        84       }
        85       
        86       @WebRe sult(name= "documentT ype")
        87       public  String ge tDocumentT ype() {
        88           re turn docum entType;
        89       }
        90       
        91       public  void setD ocumentTyp e(String t ype) {
        92           th is.documen tType = ty pe;
        93       }
        94  
        95       @WebRe sult(name= "addedDate ")
        96       public  Date getD ateAdded()  {
        97           re turn dateA dded;
        98       }
        99  
        100       public  void setD ateAdded(D ate dateAd ded) {
        101           th is.dateAdd ed = dateA dded;
        102       }
        103           
        104   }