Produced by Araxis Merge on 4/5/2017 4:21:44 PM Central 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 | C:\working_scrub\Unredacted\eHX Code Base\eHX_Bld2_Source Code_CIF_2017-02-14\NHIN_adapter\AdapterCommonEJB\src\main\java\gov\va\med\nhin\adapter\audit | AuditsReport.java | Fri Feb 10 15:41:44 2017 UTC |
| 2 | eHX-CIF.zip\eHX-CIF\eHX Code Base\eHX_Bld2_Source Code_CIF_2017-02-14\NHIN_adapter\AdapterCommonEJB\src\main\java\gov\va\med\nhin\adapter\audit | AuditsReport.java | Mon Apr 3 14:22:23 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 992 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| 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.med.n hin.adapte r.audit; | |
| 2 | ||
| 3 | import jav a.io.Seria lizable; | |
| 4 | import jav a.math.Big Integer; | |
| 5 | import jav a.util.Dat e; | |
| 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.Id; | |
| 10 | import jav ax.persist ence.JoinC olumn; | |
| 11 | import jav ax.persist ence.ManyT oOne; | |
| 12 | import jav ax.persist ence.Named Queries; | |
| 13 | import jav ax.persist ence.Named Query; | |
| 14 | import jav ax.persist ence.Table ; | |
| 15 | import jav ax.persist ence.Tempo ral; | |
| 16 | import jav ax.persist ence.Tempo ralType; | |
| 17 | ||
| 18 | /** | |
| 19 | * | |
| 20 | * @author DN S VAZQUD | |
| 21 | */ | |
| 22 | @Entity | |
| 23 | @Table(nam e = "AUDIT S_REPORT") | |
| 24 | @NamedQuer ies({ | |
| 25 | @Named Query(name = "Audits Report.fin dAll", que ry = "SELE CT a FROM AuditsRepo rt a")}) | |
| 26 | public cla ss AuditsR eport impl ements Ser ializable | |
| 27 | { | |
| 28 | privat e static f inal long serialVers ionUID = 1 L; | |
| 29 | @Id | |
| 30 | @Basic (optional = false) | |
| 31 | @Colum n(name = " AUDIT_ID") | |
| 32 | privat e BigInteg er auditId ; | |
| 33 | @Basic (optional = false) | |
| 34 | @Colum n(name = " ACTION_NAM E") | |
| 35 | privat e String a ctionName; | |
| 36 | @Colum n(name = " USER_ID") | |
| 37 | privat e String u serId; | |
| 38 | @Colum n(name = " ORGANIZATI ON_ID") | |
| 39 | privat e String o rganizatio nId; | |
| 40 | @Colum n(name = " PATIENT_ID ") | |
| 41 | privat e String p atientId; | |
| 42 | @Colum n(name = " PURPOSE_FO R_USE") | |
| 43 | privat e String p urposeForU se; | |
| 44 | @Colum n(name = " DOCUMENT_I D") | |
| 45 | privat e String d ocumentId; | |
| 46 | @Basic (optional = false) | |
| 47 | @Colum n(name = " AUDIT_TIME ") | |
| 48 | @Tempo ral(Tempor alType.TIM ESTAMP) | |
| 49 | privat e Date aud itTime; | |
| 50 | @Colum n(name = " OPTOUT_REA SON_ID") | |
| 51 | privat e BigInteg er optoutR easonId; | |
| 52 | @Colum n(name = " REMOTE_ORG ANIZATION_ ID") | |
| 53 | privat e String r emoteOrgan izationId; | |
| 54 | @Colum n(name = " REMOTE_DOC _REPOSITOR Y_ID") | |
| 55 | privat e String r emoteDocRe positoryId ; | |
| 56 | @Colum n(name = " REMOTE_DOC _ID") | |
| 57 | privat e String r emoteDocId ; | |
| 58 | @Colum n(name = " DETAILS") | |
| 59 | privat e String d etails; | |
| 60 | @Colum n(name = " PATIENT_LA ST_NAME") | |
| 61 | privat e String p atientLast Name; | |
| 62 | @Colum n(name = " PATIENT_GI VEN_NAME") | |
| 63 | privat e String p atientGive nName; | |
| 64 | @Colum n(name = " USER_NAME" ) | |
| 65 | privat e String u serName; | |
| 66 | @Colum n(name = " PATIENT_FA CILITY_NUM BER") | |
| 67 | privat e String p atientFaci lityNumber ; | |
| 68 | @Colum n(name = " PATIENT_SS N") | |
| 69 | privat e String p atientSSN; | |
| 70 | @Colum n(name = " PATIENT_FA CILITY_NAM E") | |
| 71 | privat e String p atientFaci lityName; | |
| 72 | @Colum n(name = " USER_FACIL ITY_NUMBER ") | |
| 73 | privat e String u serFacilit yNumber; | |
| 74 | @Colum n(name = " USER_FACIL ITY_NAME") | |
| 75 | privat e String u serFacilit yName; | |
| 76 | @Colum n(name = " USER_ROLE" ) | |
| 77 | privat e String u serRole; | |
| 78 | @ManyT oOne(optio nal = true ) | |
| 79 | @JoinC olumn(name = "USER_R OLE", refe rencedColu mnName = " USER_ROLE" , insertab le = false , updatabl e = false) | |
| 80 | privat e Occupati on occupat ion; | |
| 81 | @Colum n(name = " ORGANIZATI ON_NAME") | |
| 82 | privat e String o rganizatio nName; | |
| 83 | @Colum n(name = " REMOTE_ORG ANIZATION_ NAME") | |
| 84 | privat e String r emoteOrgan izationNam e; | |
| 85 | @Colum n(name = " OPTOUT_REA SON_TEXT") | |
| 86 | privat e String o ptOutReaso nText; | |
| 87 | @Colum n(name = " DOCUMENT_T ITLE") | |
| 88 | privat e String d ocumentTit le; | |
| 89 | @Colum n(name = " DOCUMENT_S OURCE_PATI ENT_ID") | |
| 90 | privat e String d ocumentSou rcePatient Id; | |
| 91 | @Colum n(name = " PATIENT_MI DDLE_NAME" ) | |
| 92 | privat e String p atientMidd leName; | |
| 93 | @Colum n(name = " DOC_SPEC_T YPE") | |
| 94 | privat e String d ocSpecType ; | |
| 95 | @Colum n(name = " PATIENT_SS N_EX") | |
| 96 | privat e String p atientSsnE x; | |
| 97 | @Colum n(name = " MATCH_FOUN D") | |
| 98 | privat e String m atchFound; | |
| 99 | @Colum n(name = " MATCH_FAIL ED") | |
| 100 | privat e String m atchFailed ; | |
| 101 | @Colum n(name = " IS_TEST_PA TIENT") | |
| 102 | privat e String i sTestPatie nt; | |
| 103 | @Colum n(name = " HIE_TRANSA CTION_ID") | |
| 104 | privat e String h ieTransact ionId; | |
| 105 | ||
| 106 | ||
| 107 | public String ge tDocSpecTy pe() { | |
| 108 | retu rn docSpec Type; | |
| 109 | } | |
| 110 | ||
| 111 | pu blic void setDocSpec Type(Strin g docSpecT ype) { | |
| 112 | this .docSpecTy pe = docSp ecType; | |
| 113 | } | |
| 114 | ||
| 115 | pu blic Audit sReport() | |
| 116 | { | |
| 117 | } | |
| 118 | ||
| 119 | public AuditsRep ort(BigInt eger optou tReasonId) | |
| 120 | { | |
| 121 | th is.optoutR easonId = optoutReas onId; | |
| 122 | } | |
| 123 | ||
| 124 | public AuditsRep ort(BigInt eger optou tReasonId, String ac tionName, Date audit Time) | |
| 125 | { | |
| 126 | th is.optoutR easonId = optoutReas onId; | |
| 127 | th is.actionN ame = acti onName; | |
| 128 | th is.auditTi me = audit Time; | |
| 129 | } | |
| 130 | ||
| 131 | public BigIntege r getAudit Id() | |
| 132 | { | |
| 133 | re turn audit Id; | |
| 134 | } | |
| 135 | ||
| 136 | public void setA uditId(Big Integer au ditId) | |
| 137 | { | |
| 138 | th is.auditId = auditId ; | |
| 139 | } | |
| 140 | ||
| 141 | public String ge tActionNam e() | |
| 142 | { | |
| 143 | re turn actio nName; | |
| 144 | } | |
| 145 | ||
| 146 | public void setA ctionName( String act ionName) | |
| 147 | { | |
| 148 | th is.actionN ame = acti onName; | |
| 149 | } | |
| 150 | ||
| 151 | public String ge tUserId() | |
| 152 | { | |
| 153 | re turn userI d; | |
| 154 | } | |
| 155 | ||
| 156 | public void setU serId(Stri ng userId) | |
| 157 | { | |
| 158 | th is.userId = userId; | |
| 159 | } | |
| 160 | ||
| 161 | public String ge tOrganizat ionId() | |
| 162 | { | |
| 163 | re turn organ izationId; | |
| 164 | } | |
| 165 | ||
| 166 | public void setO rganizatio nId(String organizat ionId) | |
| 167 | { | |
| 168 | th is.organiz ationId = organizati onId; | |
| 169 | } | |
| 170 | ||
| 171 | public String ge tPatientId () | |
| 172 | { | |
| 173 | re turn patie ntId; | |
| 174 | } | |
| 175 | ||
| 176 | public void setP atientId(S tring pati entId) | |
| 177 | { | |
| 178 | th is.patient Id = patie ntId; | |
| 179 | } | |
| 180 | ||
| 181 | public String ge tPurposeFo rUse() | |
| 182 | { | |
| 183 | re turn purpo seForUse; | |
| 184 | } | |
| 185 | ||
| 186 | public void setP urposeForU se(String purposeFor Use) | |
| 187 | { | |
| 188 | th is.purpose ForUse = p urposeForU se; | |
| 189 | } | |
| 190 | ||
| 191 | public String ge tDocumentI d() | |
| 192 | { | |
| 193 | re turn docum entId; | |
| 194 | } | |
| 195 | ||
| 196 | public void setD ocumentId( String doc umentId) | |
| 197 | { | |
| 198 | th is.documen tId = docu mentId; | |
| 199 | } | |
| 200 | ||
| 201 | public Date getA uditTime() | |
| 202 | { | |
| 203 | re turn audit Time; | |
| 204 | } | |
| 205 | ||
| 206 | public void setA uditTime(D ate auditT ime) | |
| 207 | { | |
| 208 | th is.auditTi me = audit Time; | |
| 209 | } | |
| 210 | ||
| 211 | public BigIntege r getOptou tReasonId( ) | |
| 212 | { | |
| 213 | re turn optou tReasonId; | |
| 214 | } | |
| 215 | ||
| 216 | public void setO ptoutReaso nId(BigInt eger optou tReasonId) | |
| 217 | { | |
| 218 | th is.optoutR easonId = optoutReas onId; | |
| 219 | } | |
| 220 | ||
| 221 | public String ge tRemoteOrg anizationI d() | |
| 222 | { | |
| 223 | re turn remot eOrganizat ionId; | |
| 224 | } | |
| 225 | ||
| 226 | public void setR emoteOrgan izationId( String rem oteOrganiz ationId) | |
| 227 | { | |
| 228 | th is.remoteO rganizatio nId = remo teOrganiza tionId; | |
| 229 | } | |
| 230 | ||
| 231 | public String ge tRemoteDoc Repository Id() | |
| 232 | { | |
| 233 | re turn remot eDocReposi toryId; | |
| 234 | } | |
| 235 | ||
| 236 | public void setR emoteDocRe positoryId (String re moteDocRep ositoryId) | |
| 237 | { | |
| 238 | th is.remoteD ocReposito ryId = rem oteDocRepo sitoryId; | |
| 239 | } | |
| 240 | ||
| 241 | public String ge tRemoteDoc Id() | |
| 242 | { | |
| 243 | re turn remot eDocId; | |
| 244 | } | |
| 245 | ||
| 246 | public void setR emoteDocId (String re moteDocId) | |
| 247 | { | |
| 248 | th is.remoteD ocId = rem oteDocId; | |
| 249 | } | |
| 250 | ||
| 251 | public String ge tDetails() | |
| 252 | { | |
| 253 | re turn detai ls; | |
| 254 | } | |
| 255 | ||
| 256 | public void setD etails(Str ing detail s) | |
| 257 | { | |
| 258 | th is.details = details ; | |
| 259 | } | |
| 260 | ||
| 261 | public String ge tPatientLa stName() | |
| 262 | { | |
| 263 | re turn patie ntLastName ; | |
| 264 | } | |
| 265 | ||
| 266 | public void setP atientLast Name(Strin g patientL astName) | |
| 267 | { | |
| 268 | th is.patient LastName = patientLa stName; | |
| 269 | } | |
| 270 | ||
| 271 | public String ge tPatientGi venName() | |
| 272 | { | |
| 273 | re turn patie ntGivenNam e; | |
| 274 | } | |
| 275 | ||
| 276 | public void setP atientGive nName(Stri ng patient GivenName) | |
| 277 | { | |
| 278 | th is.patient GivenName = patientG ivenName; | |
| 279 | } | |
| 280 | ||
| 281 | public String ge tPatientMi ddleName() | |
| 282 | { | |
| 283 | re turn patie ntMiddleNa me; | |
| 284 | } | |
| 285 | ||
| 286 | public void setP atientMidd leName(Str ing patien tMiddleNam e) | |
| 287 | { | |
| 288 | th is.patient MiddleName = patient MiddleName ; | |
| 289 | } | |
| 290 | ||
| 291 | public String ge tUserName( ) | |
| 292 | { | |
| 293 | re turn userN ame; | |
| 294 | } | |
| 295 | ||
| 296 | public void setU serName(St ring userN ame) | |
| 297 | { | |
| 298 | th is.userNam e = userNa me; | |
| 299 | } | |
| 300 | ||
| 301 | public String ge tPatientFa cilityNumb er() | |
| 302 | { | |
| 303 | re turn patie ntFacility Number; | |
| 304 | } | |
| 305 | ||
| 306 | public void setP atientFaci lityNumber (String pa tientFacil ityNumber) | |
| 307 | { | |
| 308 | th is.patient FacilityNu mber = pat ientFacili tyNumber; | |
| 309 | } | |
| 310 | ||
| 311 | public String ge tPatientSS N() | |
| 312 | { | |
| 313 | re turn patie ntSSN; | |
| 314 | } | |
| 315 | ||
| 316 | public void setP atientSSN( String pat ientSSN) | |
| 317 | { | |
| 318 | th is.patient SSN = pati entSSN; | |
| 319 | } | |
| 320 | ||
| 321 | public String ge tPatientFa cilityName () | |
| 322 | { | |
| 323 | re turn patie ntFacility Name; | |
| 324 | } | |
| 325 | ||
| 326 | public void setP atientFaci lityName(S tring pati entFacilit yName) | |
| 327 | { | |
| 328 | th is.patient FacilityNa me = patie ntFacility Name; | |
| 329 | } | |
| 330 | ||
| 331 | public String ge tUserFacil ityNumber( ) | |
| 332 | { | |
| 333 | re turn userF acilityNum ber; | |
| 334 | } | |
| 335 | ||
| 336 | public void setU serFacilit yNumber(St ring userF acilityNum ber) | |
| 337 | { | |
| 338 | th is.userFac ilityNumbe r = userFa cilityNumb er; | |
| 339 | } | |
| 340 | ||
| 341 | public String ge tUserFacil ityName() | |
| 342 | { | |
| 343 | re turn userF acilityNam e; | |
| 344 | } | |
| 345 | ||
| 346 | public void setU serFacilit yName(Stri ng userFac ilityName) | |
| 347 | { | |
| 348 | th is.userFac ilityName = userFaci lityName; | |
| 349 | } | |
| 350 | ||
| 351 | public String ge tUserRole( ) | |
| 352 | { | |
| 353 | re turn userR ole; | |
| 354 | } | |
| 355 | ||
| 356 | public void setU serRole(St ring userR ole) | |
| 357 | { | |
| 358 | th is.userRol e = userRo le; | |
| 359 | } | |
| 360 | ||
| 361 | public Occupatio n getOccup ation() { | |
| 362 | re turn occup ation; | |
| 363 | } | |
| 364 | ||
| 365 | public void setO ccupation( Occupation occupatio n) { | |
| 366 | th is.occupat ion = occu pation; | |
| 367 | } | |
| 368 | ||
| 369 | public String ge tOrganizat ionName() | |
| 370 | { | |
| 371 | re turn organ izationNam e; | |
| 372 | } | |
| 373 | ||
| 374 | public void setO rganizatio nName(Stri ng organiz ationName) | |
| 375 | { | |
| 376 | th is.organiz ationName = organiza tionName; | |
| 377 | } | |
| 378 | ||
| 379 | public String ge tRemoteOrg anizationN ame() | |
| 380 | { | |
| 381 | re turn remot eOrganizat ionName; | |
| 382 | } | |
| 383 | ||
| 384 | public void setR emoteOrgan izationNam e(String r emoteOrgan izationNam e) | |
| 385 | { | |
| 386 | th is.remoteO rganizatio nName = re moteOrgani zationName ; | |
| 387 | } | |
| 388 | ||
| 389 | public String ge tOptOutRea sonText() | |
| 390 | { | |
| 391 | re turn optOu tReasonTex t; | |
| 392 | } | |
| 393 | ||
| 394 | public void setO ptOutReaso nText(Stri ng text) | |
| 395 | { | |
| 396 | th is.optOutR easonText = text; | |
| 397 | } | |
| 398 | ||
| 399 | public String ge tDocumentT itle() | |
| 400 | { | |
| 401 | re turn docum entTitle; | |
| 402 | } | |
| 403 | ||
| 404 | public void setD ocumentTit le(String title) | |
| 405 | { | |
| 406 | th is.documen tTitle = t itle; | |
| 407 | } | |
| 408 | ||
| 409 | public String ge tDocumentS ourcePatie ntId() | |
| 410 | { | |
| 411 | re turn docum entSourceP atientId; | |
| 412 | } | |
| 413 | ||
| 414 | public void setD ocumentSou rcePatient Id(String sourcePati entId) | |
| 415 | { | |
| 416 | th is.documen tSourcePat ientId = s ourcePatie ntId; | |
| 417 | } | |
| 418 | ||
| 419 | public String ge tPatientSs nEx() | |
| 420 | { | |
| 421 | re turn patie ntSsnEx; | |
| 422 | } | |
| 423 | ||
| 424 | public void setP atientSsnE x(String p atientSsnE x) | |
| 425 | { | |
| 426 | th is.patient SsnEx = pa tientSsnEx ; | |
| 427 | } | |
| 428 | ||
| 429 | public String ge tMatchFoun d() | |
| 430 | { | |
| 431 | re turn match Found; | |
| 432 | } | |
| 433 | ||
| 434 | public void setM atchFound( String mat chFound) | |
| 435 | { | |
| 436 | th is.matchFo und = matc hFound; | |
| 437 | } | |
| 438 | ||
| 439 | public String ge tMatchFail ed() | |
| 440 | { | |
| 441 | re turn match Failed; | |
| 442 | } | |
| 443 | ||
| 444 | public void setM atchFailed (String ma tchFailed) | |
| 445 | { | |
| 446 | th is.matchFa iled = mat chFailed; | |
| 447 | } | |
| 448 | ||
| 449 | public String ge tIsTestPat ient() | |
| 450 | { | |
| 451 | re turn isTes tPatient; | |
| 452 | } | |
| 453 | ||
| 454 | public void setI sTestPatie nt(String isTestPati ent) | |
| 455 | { | |
| 456 | th is.isTestP atient = i sTestPatie nt; | |
| 457 | } | |
| 458 | ||
| 459 | public String ge tHieTransa ctionId() | |
| 460 | { | |
| 461 | re turn hieTr ansactionI d; | |
| 462 | } | |
| 463 | ||
| 464 | public void setH ieTransati onId(Strin g hieTrans actionId) | |
| 465 | { | |
| 466 | th is.hieTran sactionId = hieTrans actionId; | |
| 467 | } | |
| 468 | ||
| 469 | @Overr ide | |
| 470 | public int hashC ode() | |
| 471 | { | |
| 472 | in t hash = 0 ; | |
| 473 | ha sh += (opt outReasonI d != null ? optoutRe asonId.has hCode() : 0); | |
| 474 | re turn hash; | |
| 475 | } | |
| 476 | ||
| 477 | @Overr ide | |
| 478 | public boolean e quals(Obje ct object) | |
| 479 | { | |
| 480 | // TODO: War ning - thi s method w on't work in the cas e the id f ields are not set | |
| 481 | if (!(object instanceo f AuditsRe port)) { | |
| 482 | return f alse; | |
| 483 | } | |
| 484 | Au ditsReport other = ( AuditsRepo rt)object; | |
| 485 | if ((this.op toutReason Id == null && other. optoutReas onId != nu ll) || (th is.optoutR easonId != null && ! this.optou tReasonId. equals(oth er.optoutR easonId))) { | |
| 486 | return f alse; | |
| 487 | } | |
| 488 | re turn true; | |
| 489 | } | |
| 490 | ||
| 491 | @Overr ide | |
| 492 | public String to String() | |
| 493 | { | |
| 494 | re turn "gov. va.med.nhi n.adapter. audit.Audi tsReport[ optoutReas onId=" + o ptoutReaso nId + " ]" ; | |
| 495 | } | |
| 496 | ||
| 497 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.