4168. EPMO Open Source Coordination Office Redaction File Detail Report

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

4168.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:19 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-svc-consent-mgmt\src\main\java\gov\va\nvap\svc\consentmgmt\stub\data PatientDocument.java Fri Apr 21 20:03:30 2017 UTC

4168.2 Comparison summary

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

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

4168.4 Active regular expressions

No regular expressions were active.

4168.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  
        6   package go v.va.nvap. svc.consen tmgmt.stub .data;
        7  
        8   import jav a.io.Seria lizable;
        9  
        10   import jav ax.persist ence.Basic ;
        11   import jav ax.persist ence.Colum n;
        12   import jav ax.persist ence.Entit y;
        13   import jav ax.persist ence.Gener atedValue;
        14   import jav ax.persist ence.Gener ationType;
        15   import jav ax.persist ence.Id;
        16   import jav ax.persist ence.JoinC olumn;
        17   import jav ax.persist ence.Lob;
        18   import jav ax.persist ence.ManyT oOne;
        19   import jav ax.persist ence.Named Queries;
        20   import jav ax.persist ence.Named Query;
        21   import jav ax.persist ence.Table ;
        22  
        23   /**
        24    * 
        25    * @author  vhaislegb erb
        26    */
        27   @Entity
        28   @Table(nam e = "PATIE NT_DOCUMEN T")
        29   @NamedQuer ies({
        30                    @Nam edQuery(na me = "Pati entDocumen t.findAll" , query =  "SELECT p  FROM Patie ntDocument  p"),
        31                    @Nam edQuery(na me = "Pati entDocumen t.findByDo cumentId",  query = " SELECT p F ROM Patien tDocument  p WHERE p. documentId  = :docume ntId"),
        32                    @Nam edQuery(na me = "Pati entDocumen t.findByCo nsentDir",  query = " SELECT p F ROM Patien tDocument  p WHERE p. consentDir ective = : consentDir ective"),
        33                    @Nam edQuery(na me = "Pati entDocumen t.findByCo nsentDirAn dType", qu ery = "SEL ECT p FROM  PatientDo cument p W HERE p.con sentDirect ive = :con sentDirect ive and p. patientDoc umentType  = :patient DocumentTy pe"),
        34           @N amedQuery( name = "Pa tientDocum ent.findBy ExternalDo cumentId",  query = " SELECT p F ROM Patien tDocument  p WHERE p. externalDo cumentId =  :external DocumentId ")})
        35   public cla ss Patient Document i mplements  Serializab le {
        36           pr ivate stat ic final l ong serial VersionUID  = 1L;
        37           @M anyToOne(o ptional =  false)
        38           @J oinColumn( name = "CO NSENT_DIR_ ID", refer encedColum nName = "C ONSENT_DIR _ID")
        39           pr ivate Cons entDirecti ve consent Directive;
        40           @B asic(optio nal = fals e)
        41           @L ob
        42           @C olumn(name  = "DOCUME NT")
        43           pr ivate Seri alizable d ocument;
        44           @I d
        45           @G eneratedVa lue(strate gy = Gener ationType. AUTO)
        46           @B asic(optio nal = fals e)
        47           @C olumn(name  = "DOCUME NT_ID")
        48           pr ivate Long  documentI d;
        49           @J oinColumn( name = "TY PE", refer encedColum nName = "D OCUMENT_TY PE_ID")
        50           @M anyToOne(o ptional =  false)
        51           pr ivate Pati entDocumen tType pati entDocumen tType;
        52       @Colum n(name = " EXTERNAL_D OCUMENT_ID ")
        53           pr ivate Stri ng externa lDocumentI d;
        54           
        55           pu blic Patie ntDocument () {
        56           }
        57  
        58           pu blic Patie ntDocument (final Lon g document Id) {
        59                    this .documentI d = docume ntId;
        60           }
        61  
        62           pu blic Patie ntDocument (final Lon g document Id, final  Serializab le pdf) {
        63                    this .documentI d = docume ntId;
        64                    this .document  = pdf;
        65           }
        66  
        67           @O verride
        68           pu blic boole an equals( final Obje ct object)  {
        69                    // T ODO: Warni ng - this  method won 't work in  the case  the id fie lds are
        70                    // n ot set
        71                    if ( !(object i nstanceof  PatientDoc ument)) {
        72                             return  false;
        73                    }
        74                    fina l PatientD ocument ot her = (Pat ientDocume nt) object ;
        75                    if ( ((this.doc umentId ==  null) &&  (other.doc umentId !=  null))
        76                                      || ((thi s.document Id != null ) && !this .documentI d
        77                                                       .e quals(othe r.document Id))) {
        78                             return  false;
        79                    }
        80                    retu rn true;
        81           }
        82  
        83           pu blic Conse ntDirectiv e getConse ntDirectiv e() {
        84                    retu rn this.co nsentDirec tive;
        85           }
        86  
        87           pu blic Seria lizable ge tDocument( ) {
        88                    retu rn this.do cument;
        89           }
        90  
        91           pu blic Long  getDocumen tId() {
        92                    retu rn this.do cumentId;
        93           }
        94  
        95           pu blic Patie ntDocument Type getPa tientDocum entType()  {
        96                    retu rn this.pa tientDocum entType;
        97           }
        98  
        99           @O verride
        100           pu blic int h ashCode()  {
        101                    int  hash = 0;
        102                    hash  += (this. documentId  != null ?  this.docu mentId.has hCode() :  0);
        103                    retu rn hash;
        104           }
        105  
        106           pu blic void  setConsent Directive( final Cons entDirecti ve consent Directive)  {
        107                    this .consentDi rective =  consentDir ective;
        108           }
        109  
        110           pu blic void  setDocumen t(final Se rializable  document)  {
        111                    this .document  = document ;
        112           }
        113  
        114           pu blic void  setDocumen tId(final  Long docum entId) {
        115                    this .documentI d = docume ntId;
        116           }
        117  
        118           pu blic void  setPatient DocumentTy pe(
        119                             final  PatientDoc umentType  patientDoc umentType)  {
        120                    this .patientDo cumentType  = patient DocumentTy pe;
        121           }
        122  
        123           @O verride
        124           pu blic Strin g toString () {
        125                    retu rn "gov.va .med.vler. nhin.vap.p ip.entitie s.PatientD ocument[do cumentId="
        126                                      + this.d ocumentId  + "]";
        127           }
        128  
        129           pu blic Strin g getExter nalDocumen tId() {
        130                    retu rn externa lDocumentI d;
        131           }
        132  
        133           pu blic void  setExterna lDocumentI d(String e xternalDoc umentId) {
        134                    this .externalD ocumentId  = external DocumentId ;
        135           }
        136  
        137   }