Produced by Araxis Merge on 6/9/2017 3:51:25 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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Fri Jun 9 19:51:25 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-web\src\main\java\gov\va\nvap\web\consent\audit | AuditedConsent.java | Fri Apr 21 20:03:30 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 290 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 1 | package go v.va.nvap. web.consen t.audit; | |||||
| 2 | ||||||
| 3 | import jav a.io.Seria lizable; | |||||
| 4 | import jav a.util.Dat e; | |||||
| 5 | ||||||
| 6 | import jav ax.persist ence.Basic ; | |||||
| 7 | import jav ax.persist ence.Colum n; | |||||
| 8 | import jav ax.persist ence.Entit y; | |||||
| 9 | import jav ax.persist ence.Gener atedValue; | |||||
| 10 | import jav ax.persist ence.Gener ationType; | |||||
| 11 | import jav ax.persist ence.Id; | |||||
| 12 | import jav ax.persist ence.Named Queries; | |||||
| 13 | import jav ax.persist ence.Named Query; | |||||
| 14 | import jav ax.persist ence.Seque nceGenerat or; | |||||
| 15 | import jav ax.persist ence.Table ; | |||||
| 16 | import jav ax.persist ence.Tempo ral; | |||||
| 17 | import jav ax.persist ence.Tempo ralType; | |||||
| 18 | ||||||
| 19 | /** | |||||
| 20 | * This is a separat e entity c lass for t he CONSENT _AUDIT to use the pa ginations | |||||
| 21 | * and the NON-XA dr iver. | |||||
| 22 | * | |||||
| 23 | * @author Asha Amri traj | |||||
| 24 | */ | |||||
| 25 | @Entity | |||||
| 26 | @Table(nam e = "CONSE NT_AUDIT") | |||||
| 27 | @NamedQuer ies({ | |||||
| 28 | ||||||
| 29 | @Nam edQuery(na me = "Cons entAudit.f indByPatie ntIdAndDat e", query = "SELECT a FROM Aud itedConsen t a WHERE a.patientI d = :patie ntId AND a .timeOfEve nt BETWEEN :startDat e AND :end Date order by a.crea tedDate de sc"), | |||||
| 30 | @Nam edQuery(na me = "Cons entAudit.f indByDate" , query = "SELECT a FROM Audit edConsent a WHERE a. timeOfEven t BETWEEN :startDate AND :endD ate order by a.creat edDate des c"), | |||||
| 31 | @Nam edQuery(na me = "Cons entAudit.f indAll", q uery = "SE LECT a FRO M AuditedC onsent a o rder by a. createdDat e desc"), | |||||
| 32 | @Nam edQuery(na me = "Cons entAudit.f indByPatie ntId", que ry = "SELE CT a FROM AuditedCon sent a WHE RE a.patie ntId = :pa tientId or der by a.c reatedDate desc") }) | |||||
| 33 | public cla ss Audited Consent im plements S erializabl e { | |||||
| 34 | ||||||
| 35 | /* * | |||||
| 36 | * Serial UI D. | |||||
| 37 | * / | |||||
| 38 | pr ivate stat ic final l ong serial VersionUID = -358209 9211173270 999L; | |||||
| 39 | @C olumn(name = "ACTION _TYPE") | |||||
| 40 | pr ivate Stri ng actionT ype; | |||||
| 41 | @I d | |||||
| 42 | @B asic(optio nal = fals e) | |||||
| 43 | @C olumn(name = "CONSEN T_AUDIT_ID ") | |||||
| 44 | @S equenceGen erator(nam e = "conse ntAuditSeq uence", se quenceName = "CONSEN T_AUDIT_SE Q") | |||||
| 45 | @G eneratedVa lue(strate gy = Gener ationType. SEQUENCE, generator = "consent AuditSeque nce") | |||||
| 46 | pr ivate Long consentAu ditId; | |||||
| 47 | @C olumn(name = "CONSEN T_TYPE") | |||||
| 48 | pr ivate Stri ng consent Type; | |||||
| 49 | @C olumn(name = "CREATE D_DATE") | |||||
| 50 | @T emporal(Te mporalType .TIMESTAMP ) | |||||
| 51 | pr ivate Date createdDa te; | |||||
| 52 | @C olumn(name = "FACILI TY") | |||||
| 53 | pr ivate Stri ng facilit y; | |||||
| 54 | @C olumn(name = "FACILI TY_NAME") | |||||
| 55 | pr ivate Stri ng facilit yName; | |||||
| 56 | @C olumn(name = "OPTOUT _REASON", length = 4 000) | |||||
| 57 | pr ivate Stri ng optoutR eason; | |||||
| 58 | @C olumn(name = "POU_VA LUE") | |||||
| 59 | pr ivate Stri ng pouValu e; | |||||
| 60 | @C olumn(name = "PATIEN T_GIVEN_NA ME") | |||||
| 61 | pr ivate Stri ng patient GivenName; | |||||
| 62 | @C olumn(name = "PATIEN T_ID") | |||||
| 63 | pr ivate Stri ng patient Id; | |||||
| 64 | @C olumn(name = "PATIEN T_LAST_NAM E") | |||||
| 65 | pr ivate Stri ng patient LastName; | |||||
| 66 | @C olumn(name = "PATIEN T_SSN") | |||||
| 67 | pr ivate Stri ng patient Ssn; | |||||
| 68 | // @Column(n ame = "PAT IENT_FACIL ITY") | |||||
| 69 | // private S tring pati entFacilit y; | |||||
| 70 | @C olumn(name = "TIME_O F_EVENT") | |||||
| 71 | @T emporal(Te mporalType .TIMESTAMP ) | |||||
| 72 | pr ivate Date timeOfEve nt; | |||||
| 73 | @C olumn(name = "USER_I D") | |||||
| 74 | pr ivate Stri ng userId; | |||||
| 75 | @C olumn(name = "PATIEN T_MIDDLE_N AME") | |||||
| 76 | pr ivate Stri ng patient MiddleName ; | |||||
| 77 | ||||||
| 78 | pu blic Audit edConsent( ) { | |||||
| 79 | } | |||||
| 80 | ||||||
| 81 | /* * | |||||
| 82 | * @return t he actionT ype | |||||
| 83 | * / | |||||
| 84 | pu blic Strin g getActio nType() { | |||||
| 85 | retu rn this.ac tionType; | |||||
| 86 | } | |||||
| 87 | ||||||
| 88 | /* * | |||||
| 89 | * @return t he consent AuditId | |||||
| 90 | * / | |||||
| 91 | pu blic Long getConsent AuditId() { | |||||
| 92 | retu rn this.co nsentAudit Id; | |||||
| 93 | } | |||||
| 94 | ||||||
| 95 | pu blic Strin g getConse ntType() { | |||||
| 96 | retu rn this.co nsentType; | |||||
| 97 | } | |||||
| 98 | ||||||
| 99 | /* * | |||||
| 100 | * @return t he created Date | |||||
| 101 | * / | |||||
| 102 | pu blic Date getCreated Date() { | |||||
| 103 | retu rn this.cr eatedDate; | |||||
| 104 | } | |||||
| 105 | ||||||
| 106 | /* * | |||||
| 107 | * @return t he facilit y | |||||
| 108 | * / | |||||
| 109 | pu blic Strin g getFacil ity() { | |||||
| 110 | retu rn this.fa cility; | |||||
| 111 | } | |||||
| 112 | ||||||
| 113 | /* * | |||||
| 114 | * @return t he facilit y name | |||||
| 115 | * / | |||||
| 116 | pu blic Strin g getFacil ityName() { | |||||
| 117 | retu rn this.fa cilityName ; | |||||
| 118 | } | |||||
| 119 | ||||||
| 120 | /* * | |||||
| 121 | * @return t he patient Facility | |||||
| 122 | * | |||||
| 123 | * p ublic Stri ng getPati entFacilit y() { retu rn this.pa tientFacil ity; | |||||
| 124 | * } | |||||
| 125 | * / | |||||
| 126 | ||||||
| 127 | /* * | |||||
| 128 | * @return t he optoutR eason | |||||
| 129 | * / | |||||
| 130 | pu blic Strin g getOptou tReason() { | |||||
| 131 | retu rn this.op toutReason ; | |||||
| 132 | } | |||||
| 133 | ||||||
| 134 | pu blic Strin g getPatie ntGivenNam e() { | |||||
| 135 | retu rn this.pa tientGiven Name; | |||||
| 136 | } | |||||
| 137 | ||||||
| 138 | /* * | |||||
| 139 | * @return t he patient Id | |||||
| 140 | * / | |||||
| 141 | pu blic Strin g getPatie ntId() { | |||||
| 142 | retu rn this.pa tientId; | |||||
| 143 | } | |||||
| 144 | ||||||
| 145 | pu blic Strin g getPatie ntLastName () { | |||||
| 146 | retu rn this.pa tientLastN ame; | |||||
| 147 | } | |||||
| 148 | ||||||
| 149 | pu blic Strin g getPatie ntSsn() { | |||||
| 150 | retu rn this.pa tientSsn; | |||||
| 151 | } | |||||
| 152 | ||||||
| 153 | /* * | |||||
| 154 | * @return t he timeOfE vent | |||||
| 155 | * / | |||||
| 156 | pu blic Date getTimeOfE vent() { | |||||
| 157 | retu rn this.ti meOfEvent; | |||||
| 158 | } | |||||
| 159 | ||||||
| 160 | /* * | |||||
| 161 | * @return t he userId | |||||
| 162 | * / | |||||
| 163 | pu blic Strin g getUserI d() { | |||||
| 164 | retu rn this.us erId; | |||||
| 165 | } | |||||
| 166 | ||||||
| 167 | /* * | |||||
| 168 | * @param ac tionType | |||||
| 169 | * the acti onType to set | |||||
| 170 | * / | |||||
| 171 | pu blic void setActionT ype(final String act ionType) { | |||||
| 172 | this .actionTyp e = action Type; | |||||
| 173 | } | |||||
| 174 | ||||||
| 175 | /* * | |||||
| 176 | * @param co nsentAudit Id | |||||
| 177 | * the cons entAuditId to set | |||||
| 178 | * / | |||||
| 179 | pu blic void setConsent AuditId(fi nal Long c onsentAudi tId) { | |||||
| 180 | this .consentAu ditId = co nsentAudit Id; | |||||
| 181 | } | |||||
| 182 | ||||||
| 183 | /* * | |||||
| 184 | * | |||||
| 185 | * @param co nsentType | |||||
| 186 | * the cons entType to set | |||||
| 187 | * / | |||||
| 188 | pu blic void setConsent Type(final String co nsentType) { | |||||
| 189 | this .consentTy pe = conse ntType; | |||||
| 190 | } | |||||
| 191 | ||||||
| 192 | /* * | |||||
| 193 | * @param pa tientFacil ity | |||||
| 194 | * the pati entFacilit y to set | |||||
| 195 | * | |||||
| 196 | * public v oid setPat ientFacili ty(final S tring pati entFacilit y) { | |||||
| 197 | * this.pat ientFacili ty = patie ntFacility ; } | |||||
| 198 | * / | |||||
| 199 | ||||||
| 200 | /* * | |||||
| 201 | * @param cr eatedDate | |||||
| 202 | * the crea tedDate to set | |||||
| 203 | * / | |||||
| 204 | pu blic void setCreated Date(final Date crea tedDate) { | |||||
| 205 | this .createdDa te = creat edDate; | |||||
| 206 | } | |||||
| 207 | ||||||
| 208 | /* * | |||||
| 209 | * @param fa cility | |||||
| 210 | * the faci lity to se t | |||||
| 211 | * / | |||||
| 212 | pu blic void setFacilit y(final St ring facil ity) { | |||||
| 213 | this .facility = facility ; | |||||
| 214 | } | |||||
| 215 | ||||||
| 216 | /* * | |||||
| 217 | * @param fa cility | |||||
| 218 | * the faci lity name to set | |||||
| 219 | * / | |||||
| 220 | pu blic void setFacilit yName(fina l String f acilityNam e) { | |||||
| 221 | this .facilityN ame = faci lityName; | |||||
| 222 | } | |||||
| 223 | ||||||
| 224 | /* * | |||||
| 225 | * @param op toutReason | |||||
| 226 | * the opto utReason t o set | |||||
| 227 | * / | |||||
| 228 | pu blic void setOptoutR eason(fina l String o ptoutReaso n) { | |||||
| 229 | this .optoutRea son = opto utReason; | |||||
| 230 | } | |||||
| 231 | ||||||
| 232 | pu blic void setPatient GivenName( final Stri ng patient GivenName) { | |||||
| 233 | this .patientGi venName = patientGiv enName; | |||||
| 234 | } | |||||
| 235 | ||||||
| 236 | /* * | |||||
| 237 | * @param pa tientId | |||||
| 238 | * the pati entId to s et | |||||
| 239 | * / | |||||
| 240 | pu blic void setPatient Id(final S tring pati entId) { | |||||
| 241 | this .patientId = patient Id; | |||||
| 242 | } | |||||
| 243 | ||||||
| 244 | pu blic void setPatient LastName(f inal Strin g patientL astName) { | |||||
| 245 | this .patientLa stName = p atientLast Name; | |||||
| 246 | } | |||||
| 247 | ||||||
| 248 | pu blic void setPatient Ssn(final String pat ientSsn) { | |||||
| 249 | this .patientSs n = patien tSsn; | |||||
| 250 | } | |||||
| 251 | ||||||
| 252 | /* * | |||||
| 253 | * @param ti meOfEvent | |||||
| 254 | * the time OfEvent to set | |||||
| 255 | * / | |||||
| 256 | pu blic void setTimeOfE vent(final Date time OfEvent) { | |||||
| 257 | this .timeOfEve nt = timeO fEvent; | |||||
| 258 | } | |||||
| 259 | ||||||
| 260 | /* * | |||||
| 261 | * @param us erId | |||||
| 262 | * the user Id to set | |||||
| 263 | * / | |||||
| 264 | pu blic void setUserId( final Stri ng userId) { | |||||
| 265 | this .userId = userId; | |||||
| 266 | } | |||||
| 267 | ||||||
| 268 | pu blic void setPouValu e(String p ouValue) { | |||||
| 269 | this .pouValue = pouValue ; | |||||
| 270 | } | |||||
| 271 | ||||||
| 272 | pu blic Strin g getPouVa lue() { | |||||
| 273 | retu rn pouValu e; | |||||
| 274 | } | |||||
| 275 | ||||||
| 276 | /* * | |||||
| 277 | * @return t he patient MiddleName | |||||
| 278 | * / | |||||
| 279 | pu blic Strin g getPatie ntMiddleNa me() { | |||||
| 280 | retu rn patient MiddleName ; | |||||
| 281 | } | |||||
| 282 | ||||||
| 283 | /* * | |||||
| 284 | * @param pa tientMiddl eName the patientMid dleName to set | |||||
| 285 | * / | |||||
| 286 | pu blic void setPatient MiddleName (String pa tientMiddl eName) { | |||||
| 287 | this .patientMi ddleName = patientMi ddleName; | |||||
| 288 | } | |||||
| 289 | ||||||
| 290 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.