4151. EPMO Open Source Coordination Office Redaction File Detail Report

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

4151.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:51:18 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 DelayedConsentRpt.java Fri Apr 21 20:03:30 2017 UTC

4151.2 Comparison summary

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

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

4151.4 Active regular expressions

No regular expressions were active.

4151.5 Comparison detail

        1   package go v.va.nvap. svc.consen tmgmt.stub .data;
        2  
        3   import gov .va.nvap.c ommon.vali dation.Nul lChecker;
        4   import jav a.io.Seria lizable;
        5   import jav a.util.Col lection;
        6   import jav a.util.Dat e;
        7   import jav ax.persist ence.Basic ;
        8   import jav ax.persist ence.Colum n;
        9   import jav ax.persist ence.Entit y;
        10   import jav ax.persist ence.Id;
        11   import jav ax.persist ence.JoinC olumn;
        12   import jav ax.persist ence.JoinT able;
        13   import jav ax.persist ence.ManyT oMany;
        14   import jav ax.persist ence.ManyT oOne;
        15   import jav ax.persist ence.Named Queries;
        16   import jav ax.persist ence.Named Query;
        17   import jav ax.persist ence.OneTo Many;
        18   import jav ax.persist ence.Table ;
        19   import jav ax.persist ence.Tempo ral;
        20   import jav ax.persist ence.Tempo ralType;
        21   import jav ax.persist ence.Trans ient;
        22   import org .hibernate .annotatio ns.LazyCol lection;
        23   import org .hibernate .annotatio ns.LazyCol lectionOpt ion;
        24  
        25   /**
        26    *
        27    * @author  Johann So nnenberg
        28    */
        29   @Entity
        30   @Table(nam e = "DELAY ED_CONSENT _VIEW")
        31   @NamedQuer ies({
        32       @Named Query(name  = "Delaye dConsentRp t.findAll" , query =  "SELECT d  FROM Delay edConsentR pt d"),
        33       @Named Query(name  = "Delaye dConsentRp t.findByDe layedConse ntId", que ry = "SELE CT d FROM  DelayedCon sentRpt d  WHERE d.de layedConse ntId = :de layedConse ntId"),
        34       @Named Query(name  = "Delaye dConsentRp t.findByPa tientIen",  query = " SELECT d F ROM Delaye dConsentRp t d WHERE  d.patientI en = :pati entIen"),
        35       @Named Query(name  = "Delaye dConsentRp t.findByPa tientSsn",  query = " SELECT d F ROM Delaye dConsentRp t d WHERE  d.patientS sn = :pati entSsn"),
        36       @Named Query(name  = "Delaye dConsentRp t.findByPa tientLastN ame", quer y = "SELEC T d FROM D elayedCons entRpt d W HERE d.pat ientLastNa me = :pati entLastNam e"),
        37       @Named Query(name  = "Delaye dConsentRp t.findByPa tientFirst Name", que ry = "SELE CT d FROM  DelayedCon sentRpt d  WHERE d.pa tientFirst Name = :pa tientFirst Name"),
        38       @Named Query(name  = "Delaye dConsentRp t.findByPa tientMiddl eName", qu ery = "SEL ECT d FROM  DelayedCo nsentRpt d  WHERE d.p atientMidd leName = : patientMid dleName"),
        39       @Named Query(name  = "Delaye dConsentRp t.findByDa teAdded",  query = "S ELECT d FR OM Delayed ConsentRpt  d WHERE d .dateAdded  = :dateAd ded"),
        40       @Named Query(name  = "Delaye dConsentRp t.findByUs erId", que ry = "SELE CT d FROM  DelayedCon sentRpt d  WHERE d.us erId = :us erId")})
        41   public cla ss Delayed ConsentRpt  implement s Serializ able {
        42       privat e static f inal long  serialVers ionUID = 1 L;
        43       
        44       @Id
        45       @Basic (optional  = false)
        46       @Colum n(name = " DELAYED_CO NSENT_ID")
        47       privat e Long del ayedConsen tId;
        48       
        49       @Basic (optional  = false)
        50       @Colum n(name = " PATIENT_IE N")
        51       privat e String p atientIen;
        52       
        53       @Colum n(name = " PATIENT_SS N")
        54       privat e String p atientSsn;
        55       
        56       @Basic (optional  = false)
        57       @Colum n(name = " PATIENT_LA ST_NAME")
        58       privat e String p atientLast Name;
        59       
        60       @Basic (optional  = false)
        61       @Colum n(name = " PATIENT_FI RST_NAME")
        62       privat e String p atientFirs tName;
        63       
        64       @Colum n(name = " PATIENT_MI DDLE_NAME" )
        65       privat e String p atientMidd leName;
        66       
        67       @Basic (optional  = false)
        68       @Colum n(name = " DATE_ADDED ")
        69       @Tempo ral(Tempor alType.TIM ESTAMP)
        70       privat e Date dat eAdded;
        71       
        72       @Basic (optional  = false)
        73       @Colum n(name = " USER_ID")
        74       privat e String u serId;
        75       
        76       @JoinC olumn(name  = "CONSEN T_TYPE_ID" , referenc edColumnNa me = "CONS ENT_TYPE_I D")
        77       @ManyT oOne(optio nal = fals e)
        78       privat e ConsentT ype consen tTypeId;
        79       
        80       @Colum n(name = " PARENT_STA TION_NUMBE R")
        81       privat e String p arentStati onNumber;
        82       
        83       @Colum n(name = " STATION_NU MBER")
        84       privat e String s tationNumb er;
        85       
        86       @Basic (optional  = false)
        87       @Colum n(name = " FACILITY_N AME")
        88       privat e String f acilityNam e;
        89       
        90       @Colum n (name =  "STATUS")
        91       privat e String s tatus;
        92       
        93       @Colum n (name =  "RESOLUTIO N_DATE")
        94       @Tempo ral(Tempor alType.TIM ESTAMP)
        95       privat e Date res olutionDat e;    
        96       
        97       @Colum n (name =  "IS_TEST_P ATIENT")
        98       privat e int isTe stPatient;
        99       
        100       @Basic (optional  = false)
        101       @Colum n(name = " PARENT_FAC ILITY_NAME ")
        102       privat e String p arentFacil ityName;
        103       
        104       @Basic (optional  = false)
        105       @Colum n(name = " VISN_NUMBE R")
        106       privat e Long vis nNumber;
        107  
        108       @JoinT able(name  = "DELAYED _CONSENT_R EASON", jo inColumns  = {
        109           @J oinColumn( name = "DE LAYED_CONS ENT_ID", r eferencedC olumnName  = "DELAYED _CONSENT_I D")}, inve rseJoinCol umns = {
        110           @J oinColumn( name = "DE LAY_REASON _ID", refe rencedColu mnName = " DELAY_REAS ON_ID")})
        111       @ManyT oMany()
        112       @LazyC ollection( LazyCollec tionOption .FALSE)
        113       privat e Collecti on<DelayRe ason> dela yReasonCol lection;
        114       
        115       @OneTo Many(mappe dBy = "del ayedConsen tId")
        116       privat e Collecti on<MailNot ification>  mailNotif icationCol lection;
        117       
        118       @Trans ient 
        119       privat e Long tot al;
        120       
        121       @Trans ient 
        122       privat e String c onsentType Name;
        123       
        124       public  DelayedCo nsentRpt()  {
        125       }
        126  
        127       public  DelayedCo nsentRpt(L ong delaye dConsentId ) {
        128           th is.delayed ConsentId  = delayedC onsentId;
        129       }
        130  
        131       public  DelayedCo nsentRpt(L ong delaye dConsentId , String p atientIen,  String pa tientLastN ame, Strin g patientF irstName,  Date dateA dded, Stri ng userId)  {
        132           th is.delayed ConsentId  = delayedC onsentId;
        133           th is.patient Ien = pati entIen;
        134           th is.patient LastName =  patientLa stName;
        135           th is.patient FirstName  = patientF irstName;
        136           th is.dateAdd ed = dateA dded;
        137           th is.userId  = userId;
        138       }
        139  
        140       public  Long getD elayedCons entId() {
        141           re turn delay edConsentI d;
        142       }
        143  
        144       public  void setD elayedCons entId(Long  delayedCo nsentId) {
        145           th is.delayed ConsentId  = delayedC onsentId;
        146       }
        147  
        148       public  String ge tPatientIe n() {
        149           re turn patie ntIen;
        150       }
        151  
        152       public  void setP atientIen( String pat ientIen) {
        153           th is.patient Ien = pati entIen;
        154       }
        155  
        156       public  String ge tPatientSs n() {
        157           re turn patie ntSsn;
        158       }
        159  
        160       public  void setP atientSsn( String pat ientSsn) {
        161           th is.patient Ssn = pati entSsn;
        162       }
        163  
        164       public  String ge tPatientLa stName() {
        165           re turn patie ntLastName ;
        166       }
        167  
        168       public  void setP atientLast Name(Strin g patientL astName) {
        169           th is.patient LastName =  patientLa stName;
        170       }
        171  
        172       public  String ge tPatientFi rstName()  {
        173           re turn patie ntFirstNam e;
        174       }
        175  
        176       public  void setP atientFirs tName(Stri ng patient FirstName)  {
        177           th is.patient FirstName  = patientF irstName;
        178       }
        179  
        180       public  String ge tPatientMi ddleName()  {
        181           re turn patie ntMiddleNa me;
        182       }
        183  
        184       public  void setP atientMidd leName(Str ing patien tMiddleNam e) {
        185           th is.patient MiddleName  = patient MiddleName ;
        186       }
        187  
        188       public  Date getD ateAdded()  {
        189           re turn dateA dded;
        190       }
        191  
        192       public  void setD ateAdded(D ate dateAd ded) {
        193           th is.dateAdd ed = dateA dded;
        194       }
        195  
        196       public  String ge tUserId()  {
        197           re turn userI d;
        198       }
        199  
        200       public  void setU serId(Stri ng userId)  {
        201           th is.userId  = userId;
        202       }
        203  
        204       public  ConsentTy pe getCons entTypeId( ) {
        205           re turn conse ntTypeId;
        206       }
        207  
        208       public  void setC onsentType Id(Consent Type conse ntTypeId)  {
        209           th is.consent TypeId = c onsentType Id;
        210       }
        211  
        212       public  String ge tParentSta tionNumber () {
        213           re turn paren tStationNu mber;
        214       }
        215  
        216       public  void setP arentStati onNumber(S tring pare ntStationN umber) {
        217           th is.parentS tationNumb er = paren tStationNu mber;
        218       }
        219       
        220       public  String ge tStationNu mber() {
        221           re turn stati onNumber;
        222       }
        223  
        224       public  void setS tationNumb er(String  stationNum ber) {
        225           th is.station Number = s tationNumb er;
        226       }
        227       
        228       public  String ge tFacilityN ame() {
        229           re turn facil ityName;
        230       }
        231  
        232       public  void setF acilityNam e(String f acilityNam e) {
        233           th is.facilit yName = fa cilityName ;
        234       }
        235  
        236       public  String ge tStatus()  {
        237           re turn statu s;
        238       }
        239       
        240       public  void setS tatus(Stri ng status)  {
        241           th is.status  = status;
        242       }
        243       
        244       public  Date getR esolutionD ate() {
        245           re turn resol utionDate;
        246       }
        247       
        248       public  void setR esolutionD ate(Date r esolutionD ate) {
        249           th is.resolut ionDate =  resolution Date;
        250       }
        251       
        252       public  Collectio n<DelayRea son> getDe layReasonC ollection( ) {
        253           if (NullCheck er.isNullO rEmpty(del ayReasonCo llection))
        254           {
        255                return n ull;
        256           }  else {
        257                return d elayReason Collection ;
        258           }
        259       }
        260  
        261       public  void setD elayReason Collection (Collectio n<DelayRea son> delay ReasonColl ection) {
        262           th is.delayRe asonCollec tion = del ayReasonCo llection;
        263       }
        264  
        265       public  Collectio n<MailNoti fication>  getMailNot ificationC ollection( ) {
        266           re turn mailN otificatio nCollectio n;
        267       }
        268  
        269       public  void setM ailNotific ationColle ction(Coll ection<Mai lNotificat ion> mailN otificatio nCollectio n) {
        270           th is.mailNot ificationC ollection  = mailNoti ficationCo llection;
        271       }
        272       
        273       @Overr ide
        274       public  int hashC ode() {
        275           in t hash = 0 ;
        276           ha sh += (del ayedConsen tId != nul l ? delaye dConsentId .hashCode( ) : 0);
        277           re turn hash;
        278       }
        279  
        280       @Overr ide
        281       public  boolean e quals(Obje ct object)  {
        282           //  TODO: War ning - thi s method w on't work  in the cas e the id f ields are  not set
        283           if  (!(object  instanceo f DelayedC onsentRpt) ) {
        284                return f alse;
        285           }
        286           De layedConse ntRpt othe r = (Delay edConsentR pt) object ;
        287           if  ((this.de layedConse ntId == nu ll && othe r.delayedC onsentId ! = null) ||  (this.del ayedConsen tId != nul l && !this .delayedCo nsentId.eq uals(other .delayedCo nsentId)))  {
        288                return f alse;
        289           }
        290           re turn true;
        291       }
        292  
        293       @Overr ide
        294       public  String to String() {
        295           re turn "gov. va.nvap.sv c.consentm gmt.stub.d ata.Delaye dConsentRe port[ dela yedConsent Id=" + del ayedConsen tId + " ]" ;
        296       }
        297       
        298       public  Long getT otal() {
        299           re turn total ;
        300       }
        301  
        302       public  void setT otal(Long  total) {
        303           th is.total =  total;
        304       }
        305       
        306       public  String ge tConsentTy peName() {
        307           re turn conse ntTypeName ;
        308       }
        309  
        310       public  void setC onsentType Name(Strin g consentT ypeName) {
        311           th is.consent TypeName =  consentTy peName;
        312       }
        313       
        314       public  int getIs TestPatien t() {
        315           re turn isTes tPatient;
        316       }
        317  
        318       public  void setI sTestPatie nt(int isT estPatient ) {
        319           th is.isTestP atient = i sTestPatie nt;
        320       }
        321       
        322       public  String ge tParentFac ilityName( ) {
        323           re turn paren tFacilityN ame;
        324       }
        325       
        326       public  void setP arentFacil ityName(St ring paren tFacilityN ame) {
        327           th is.parentF acilityNam e = parent FacilityNa me;
        328       }
        329       
        330       public  Long getV isnNumber( ) {
        331           re turn visnN umber;
        332       }
        333       
        334       public  void setV isnNumber( Long visnN umber) {
        335           th is.visnNum ber = visn Number;
        336       }
        337       
        338   }