Produced by Araxis Merge on 12/13/2018 10:35:26 AM Eastern Standard 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 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\hl7\segment | PID.java | Fri Dec 7 17:36:40 2018 UTC |
| 2 | v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\hl7\segment | PID.java | Wed Dec 12 19:46:45 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 1082 |
| 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 | /********* ********** ********** ********** ********** ********** ********* | |
| 2 | * Copyrii ght 2004 V HA. All ri ghts reser ved | |
| 3 | ********* ********** ********** ********** ********** ********** *********/ | |
| 4 | ||
| 5 | package go v.va.med.f w.hl7.segm ent; | |
| 6 | ||
| 7 | // Java cl asses | |
| 8 | import jav a.util.Lis t; | |
| 9 | ||
| 10 | import gov .va.med.fw .hl7.Inval idSegmentE xception; | |
| 11 | import gov .va.med.fw .hl7.Segme nt; | |
| 12 | import gov .va.med.fw .hl7.const ants.Segme ntConstant s; | |
| 13 | ||
| 14 | /** | |
| 15 | * A PID s egment con taining in formation about a pa tient iden tification | |
| 16 | * | |
| 17 | * @author DN S
|
|
| 18 | * @versio n 1.0 | |
| 19 | */ | |
| 20 | ||
| 21 | public cla ss PID ext ends Segme nt { | |
| 22 | ||
| 23 | /* * | |
| 24 | * An instan ce of seri alVersionU ID | |
| 25 | * / | |
| 26 | pr ivate stat ic final l ong serial VersionUID = 3304197 6121818449 37L; | |
| 27 | ||
| 28 | /* * | |
| 29 | * Construct s an empty segment. This const ructor is ususally u sd by deri ved | |
| 30 | * segment c lasses to populate i ts own seg ment data. | |
| 31 | * / | |
| 32 | pu blic PID() { | |
| 33 | supe r(); | |
| 34 | setN ame(Segmen tConstants .PID); | |
| 35 | } | |
| 36 | ||
| 37 | /* * | |
| 38 | * Construct s a segmen t of eleme nts from a raw data string. Th is constru ctor | |
| 39 | * is usuall y used to construct an inbound message f rom a raw message's | |
| 40 | * segment d ata. | |
| 41 | * | |
| 42 | * @param da ta | |
| 43 | * A raw da ta string | |
| 44 | * @throws I nvalidSegm entExcepti on | |
| 45 | * Thrown if failed to constru ct a segme nt due to missing | |
| 46 | * paramet ers or inv alid segme nt data to parse. | |
| 47 | * / | |
| 48 | pu blic PID(S tring data ) throws I nvalidSegm entExcepti on { | |
| 49 | supe r(data); | |
| 50 | } | |
| 51 | ||
| 52 | /* * | |
| 53 | * Construct s a segmen t of eleme nts from a raw data string, an array of | |
| 54 | * valid enc oding char acter stri ngs, and a element d elimiter s tring. Thi s | |
| 55 | * construct or is usua lly used t o construc t an inbou nd message from a ra w | |
| 56 | * message's segment d ata, a spe cific enco ding chara cters, and a field | |
| 57 | * delimiter . | |
| 58 | * | |
| 59 | * @param en codingChar s | |
| 60 | * An array of encodi ng charact ers | |
| 61 | * @param el ementDelim iter | |
| 62 | * A field delimiter | |
| 63 | * @param se gmentData | |
| 64 | * A raw da ta string | |
| 65 | * @throws I nvalidSegm entExcepti on | |
| 66 | * Thrown if failed to constru ct a segme nt due to missing | |
| 67 | * paramet ers or inv alid segme nt data to parse. | |
| 68 | * / | |
| 69 | pu blic PID(S tring[] en codingChar s, String elementDel imiter, St ring segme ntData) | |
| 70 | throws InvalidSe gmentExcep tion { | |
| 71 | supe r(encoding Chars, ele mentDelimi ter, segme ntData); | |
| 72 | } | |
| 73 | ||
| 74 | /* * | |
| 75 | * Construct s a segmen t from a s egment nam e and a li st of elem ents. This | |
| 76 | * construct or is usua lly used t o construc t an outbo und messag e from a l ist | |
| 77 | * of specif ic segment elements, and a seg ment name. | |
| 78 | * | |
| 79 | * @param na me | |
| 80 | * A segmen t name | |
| 81 | * @param el ements | |
| 82 | * A list o f segment elements | |
| 83 | * @throws I nvalidSegm entExcepti on | |
| 84 | * Thrown if failed to constru ct a segme nt due to missing | |
| 85 | * paramet ers or inv alid segme nt data to parse. | |
| 86 | * / | |
| 87 | pu blic PID(S tring name , List ele ments) thr ows Invali dSegmentEx ception { | |
| 88 | supe r(name, el ements); | |
| 89 | } | |
| 90 | ||
| 91 | /* * | |
| 92 | * Construct s a segmen t from an array of e ncoding ch aracters, a field | |
| 93 | * delimiter , a segmen t name, an d a list o f field da ta. This c onstructor is | |
| 94 | * usually u sed to con struct an outbound m essage fro m a list o f specific | |
| 95 | * segment e lements, e lement del imiter, an d encoding character s. | |
| 96 | * | |
| 97 | * @param en codingChar s | |
| 98 | * An array of encodi ng charact ers | |
| 99 | * @param el ementDelim iter | |
| 100 | * A field delimiter | |
| 101 | * @param se gmentName | |
| 102 | * A segmen t name | |
| 103 | * @param se gmentEleme nts | |
| 104 | * A list o f field da ta | |
| 105 | * @throws I nvalidSegm entExcepti on | |
| 106 | * Thrown if failed to constru ct a segme nt due to missing | |
| 107 | * paramet ers or inv alid segme nt data to parse. | |
| 108 | * / | |
| 109 | pu blic PID(S tring[] en codingChar s, String elementDel imiter, St ring segme ntName, | |
| 110 | List s egmentElem ents) thro ws Invalid SegmentExc eption { | |
| 111 | supe r(encoding Chars, ele mentDelimi ter, segme ntName, se gmentEleme nts); | |
| 112 | } | |
| 113 | ||
| 114 | /* * | |
| 115 | * | |
| 116 | * SEQUENTIA L NUMBER | |
| 117 | * | |
| 118 | * @param in put | |
| 119 | * A value of SetID | |
| 120 | * / | |
| 121 | pu blic void setSetID(S tring inpu t) { | |
| 122 | setE lement(inp ut, 0); | |
| 123 | } | |
| 124 | ||
| 125 | /* * | |
| 126 | * | |
| 127 | * SEQUENTIA L NUMBER | |
| 128 | * | |
| 129 | * @return S tring A va lue of Set ID | |
| 130 | * / | |
| 131 | pu blic Strin g getSetID () { | |
| 132 | retu rn getElem ent(0); | |
| 133 | } | |
| 134 | ||
| 135 | /* * | |
| 136 | * | |
| 137 | * INTEGERAT ED CONTROL # (ICN) ( 991.01) an d CHECKSUM (991.02) - ICN and �V� | |
| 138 | * and Check sum | |
| 139 | * | |
| 140 | * @param in put | |
| 141 | * A value of Primary ID | |
| 142 | * / | |
| 143 | pu blic void setPrimary ID(String input) { | |
| 144 | setE lement(inp ut, 1); | |
| 145 | } | |
| 146 | ||
| 147 | /* * | |
| 148 | * | |
| 149 | * INTEGERAT ED CONTROL # (ICN) ( 991.01) an d CHECKSUM (991.02) - ICN and �V� | |
| 150 | * and Check sum | |
| 151 | * | |
| 152 | * @return S tring A va lue of Pri maryID | |
| 153 | * / | |
| 154 | pu blic Strin g getPrima ryID() { | |
| 155 | retu rn getElem ent(1); | |
| 156 | } | |
| 157 | ||
| 158 | /* * | |
| 159 | * | |
| 160 | * Will be i n the form at Nationa l ICN^SSN^ ALIASSSN^ DFN^CLAIM# ^Local ICN ^ | |
| 161 | * Deprecate d local IC N^Deprecat ed Nationa l ICN's an d the form at of each | |
| 162 | * piece is Identifier ~Assigning Authority ~ Identifi er type~As signing | |
| 163 | * Location~ Expiration Date. | |
| 164 | * | |
| 165 | * @param in put | |
| 166 | * A value of Interna lPatientID | |
| 167 | * / | |
| 168 | pu blic void setPatient Identifier List(Strin g input) { | |
| 169 | setE lement(inp ut, 2); | |
| 170 | } | |
| 171 | ||
| 172 | /* * | |
| 173 | * | |
| 174 | * Will be i n the form at Nationa l ICN^SSN^ ALIASSSN^ DFN^CLAIM# ^Local ICN ^ | |
| 175 | * Deprecate d local IC N^Deprecat ed Nationa l ICN's an d the form at of each | |
| 176 | * piece is Identifier ~Assigning Authority ~ Identifi er type~As signing | |
| 177 | * Location~ Expiration Date. | |
| 178 | * | |
| 179 | * @return S tring A va lue of Int ernalPatie ntID | |
| 180 | * / | |
| 181 | pu blic Strin g getPatie ntIdentifi erList() { | |
| 182 | retu rn getElem ent(2); | |
| 183 | } | |
| 184 | ||
| 185 | /* * | |
| 186 | * | |
| 187 | * PRIMARY S HORT ID (. 364) OR VA (�PID) | |
| 188 | * | |
| 189 | * @param in put | |
| 190 | * A value of Alterna tePatientI D | |
| 191 | * / | |
| 192 | pu blic void setAlterna tePatientI D(String i nput) { | |
| 193 | setE lement(inp ut, 3); | |
| 194 | } | |
| 195 | ||
| 196 | /* * | |
| 197 | * | |
| 198 | * PRIMARY S HORT ID (. 364) OR VA (�PID) | |
| 199 | * | |
| 200 | * @return S tring A va lue of Alt ernatePati entID | |
| 201 | * / | |
| 202 | pu blic Strin g getAlter natePatien tID() { | |
| 203 | retu rn getElem ent(3); | |
| 204 | } | |
| 205 | ||
| 206 | /* * | |
| 207 | * | |
| 208 | * PATIENT N AME | |
| 209 | * | |
| 210 | * @param in put | |
| 211 | * A value of Patient Name | |
| 212 | * / | |
| 213 | pu blic void setPatient Name(Strin g input) { | |
| 214 | setE lement(inp ut, 4); | |
| 215 | } | |
| 216 | ||
| 217 | /* * | |
| 218 | * | |
| 219 | * PATIENT N AME | |
| 220 | * | |
| 221 | * @return S tring A va lue of Pat ientName | |
| 222 | * / | |
| 223 | pu blic Strin g getPatie ntName() { | |
| 224 | retu rn getElem ent(4); | |
| 225 | } | |
| 226 | ||
| 227 | /* * | |
| 228 | * | |
| 229 | * MOTHER� S MAIDEN N AME | |
| 230 | * | |
| 231 | * @param in put | |
| 232 | * A value of MotherM aidenName | |
| 233 | * / | |
| 234 | pu blic void setMotherM aidenName( String inp ut) { | |
| 235 | setE lement(inp ut, 5); | |
| 236 | } | |
| 237 | ||
| 238 | /* * | |
| 239 | * | |
| 240 | * MOTHER� S MAIDEN N AME | |
| 241 | * | |
| 242 | * @return S tring A va lue of Mot herMaidenN ame | |
| 243 | * / | |
| 244 | pu blic Strin g getMothe rMaidenNam e() { | |
| 245 | retu rn getElem ent(5); | |
| 246 | } | |
| 247 | ||
| 248 | /* * | |
| 249 | * | |
| 250 | * DATE OF B IRTH (.03) (Imprecis e) | |
| 251 | * | |
| 252 | * @param in put | |
| 253 | * A value of DOB | |
| 254 | * / | |
| 255 | pu blic void setDOB(Str ing input) { | |
| 256 | setE lement(inp ut, 6); | |
| 257 | } | |
| 258 | ||
| 259 | /* * | |
| 260 | * | |
| 261 | * DATE OF B IRTH (.03) (Imprecis e) | |
| 262 | * | |
| 263 | * @return S tring A va lue of DOB | |
| 264 | * / | |
| 265 | pu blic Strin g getDOB() { | |
| 266 | retu rn getElem ent(6); | |
| 267 | } | |
| 268 | ||
| 269 | /* * | |
| 270 | * | |
| 271 | * SEX (.02) | |
| 272 | * | |
| 273 | * @param in put | |
| 274 | * A value of Sex | |
| 275 | * / | |
| 276 | pu blic void setSex(Str ing input) { | |
| 277 | setE lement(inp ut, 7); | |
| 278 | } | |
| 279 | ||
| 280 | /* * | |
| 281 | * | |
| 282 | * SEX (.02) | |
| 283 | * | |
| 284 | * @return S tring A va lue of Sex | |
| 285 | * / | |
| 286 | pu blic Strin g getSex() { | |
| 287 | retu rn getElem ent(7); | |
| 288 | } | |
| 289 | ||
| 290 | /* * | |
| 291 | * | |
| 292 | * ALIAS (MU LTIPLE 1, FIELD .01) | |
| 293 | * | |
| 294 | * @param in put | |
| 295 | * A value of Patient Alias | |
| 296 | * / | |
| 297 | pu blic void setPatient Alias(Stri ng input) { | |
| 298 | setE lement(inp ut, 8); | |
| 299 | } | |
| 300 | ||
| 301 | /* * | |
| 302 | * | |
| 303 | * ALIAS (MU LTIPLE 1, FIELD .01) | |
| 304 | * | |
| 305 | * @return S tring A va lue of Pat ientAlias | |
| 306 | * / | |
| 307 | pu blic Strin g getPatie ntAlias() { | |
| 308 | retu rn getElem ent(8); | |
| 309 | } | |
| 310 | ||
| 311 | /* * | |
| 312 | * | |
| 313 | * RACE | |
| 314 | * | |
| 315 | * @param in put | |
| 316 | * A value of Race | |
| 317 | * / | |
| 318 | pu blic void setRace(St ring input ) { | |
| 319 | setE lement(inp ut, 9); | |
| 320 | } | |
| 321 | ||
| 322 | /* * | |
| 323 | * | |
| 324 | * RACE | |
| 325 | * | |
| 326 | * @return S tring A va lue of Rac e | |
| 327 | * / | |
| 328 | pu blic Strin g getRace( ) { | |
| 329 | retu rn getElem ent(9); | |
| 330 | } | |
| 331 | ||
| 332 | /* * | |
| 333 | * | |
| 334 | * ADDRESS ( .111-.116) | |
| 335 | * | |
| 336 | * @param in put | |
| 337 | * A value of Patient Address | |
| 338 | * / | |
| 339 | pu blic void setPatient Address(St ring input ) { | |
| 340 | setE lement(inp ut, 10); | |
| 341 | } | |
| 342 | ||
| 343 | /* * | |
| 344 | * | |
| 345 | * ADDRESS ( .111-.116) | |
| 346 | * | |
| 347 | * @return S tring A va lue of Pat ientAddres s | |
| 348 | * / | |
| 349 | pu blic Strin g getPatie ntAddress( ) { | |
| 350 | retu rn getElem ent(10); | |
| 351 | } | |
| 352 | ||
| 353 | /* * | |
| 354 | * | |
| 355 | * VA COUNTY CODE (.11 7) | |
| 356 | * | |
| 357 | * @param in put | |
| 358 | * A value of CountyC ode | |
| 359 | * / | |
| 360 | pu blic void setCountyC ode(String input) { | |
| 361 | setE lement(inp ut, 11); | |
| 362 | } | |
| 363 | ||
| 364 | /* * | |
| 365 | * | |
| 366 | * VA COUNTY CODE (.11 7) | |
| 367 | * | |
| 368 | * @return S tring A va lue of Cou ntyCode | |
| 369 | * / | |
| 370 | pu blic Strin g getCount yCode() { | |
| 371 | retu rn getElem ent(11); | |
| 372 | } | |
| 373 | ||
| 374 | /* * | |
| 375 | * | |
| 376 | * PHONE NUM BER (RESID ENCE) (.13 1) | |
| 377 | * | |
| 378 | * @param in put | |
| 379 | * A value of HomePho neNumber | |
| 380 | * / | |
| 381 | pu blic void setHomePho neNumber(S tring inpu t) { | |
| 382 | setE lement(inp ut, 12); | |
| 383 | } | |
| 384 | ||
| 385 | /* * | |
| 386 | * | |
| 387 | * PHONE NUM BER (RESID ENCE) (.13 1) | |
| 388 | * | |
| 389 | * @return S tring A va lue of Hom ePhoneNumb er | |
| 390 | * / | |
| 391 | pu blic Strin g getHomeP honeNumber () { | |
| 392 | retu rn getElem ent(12); | |
| 393 | } | |
| 394 | ||
| 395 | /* * | |
| 396 | * | |
| 397 | * PHONE NUM BER (WORK) (.132) | |
| 398 | * | |
| 399 | * @param in put | |
| 400 | * A value of Busines sPhoneNumb er | |
| 401 | * / | |
| 402 | pu blic void setBusines sPhoneNumb er(String input) { | |
| 403 | setE lement(inp ut, 13); | |
| 404 | } | |
| 405 | ||
| 406 | /* * | |
| 407 | * | |
| 408 | * PHONE NUM BER (WORK) (.132) | |
| 409 | * | |
| 410 | * @return S tring A va lue of Bus inessPhone Number | |
| 411 | * / | |
| 412 | pu blic Strin g getBusin essPhoneNu mber() { | |
| 413 | retu rn getElem ent(13); | |
| 414 | } | |
| 415 | ||
| 416 | /* * | |
| 417 | * | |
| 418 | * NOT USED | |
| 419 | * | |
| 420 | * @param in put | |
| 421 | * A value of Primary Language | |
| 422 | * / | |
| 423 | pu blic void setPrimary Language(S tring inpu t) { | |
| 424 | setE lement(inp ut, 14); | |
| 425 | } | |
| 426 | ||
| 427 | /* * | |
| 428 | * | |
| 429 | * NOT USED | |
| 430 | * | |
| 431 | * @return S tring A va lue of Pri maryLangua ge | |
| 432 | * / | |
| 433 | pu blic Strin g getPrima ryLanguage () { | |
| 434 | retu rn getElem ent(14); | |
| 435 | } | |
| 436 | ||
| 437 | /* * | |
| 438 | * | |
| 439 | * MARITAL S TATUS (.05 ) | |
| 440 | * | |
| 441 | * @param in put | |
| 442 | * A value of Marital Status | |
| 443 | * / | |
| 444 | pu blic void setMarital Status(Str ing input) { | |
| 445 | setE lement(inp ut, 15); | |
| 446 | } | |
| 447 | ||
| 448 | /* * | |
| 449 | * | |
| 450 | * MARITAL S TATUS (.05 ) | |
| 451 | * | |
| 452 | * @return S tring A va lue of Mar italStatus | |
| 453 | * / | |
| 454 | pu blic Strin g getMarit alStatus() { | |
| 455 | retu rn getElem ent(15); | |
| 456 | } | |
| 457 | ||
| 458 | /* * | |
| 459 | * | |
| 460 | * RELIGION | |
| 461 | * | |
| 462 | * @param in put | |
| 463 | * A value of Religio n | |
| 464 | * / | |
| 465 | pu blic void setReligio n(String i nput) { | |
| 466 | setE lement(inp ut, 16); | |
| 467 | } | |
| 468 | ||
| 469 | /* * | |
| 470 | * | |
| 471 | * RELIGION | |
| 472 | * | |
| 473 | * @return S tring A va lue of Rel igion | |
| 474 | * / | |
| 475 | pu blic Strin g getRelig ion() { | |
| 476 | retu rn getElem ent(16); | |
| 477 | } | |
| 478 | ||
| 479 | /* * | |
| 480 | * | |
| 481 | * NOT USED | |
| 482 | * | |
| 483 | * @param in put | |
| 484 | * A value of Patient Account | |
| 485 | * / | |
| 486 | pu blic void setPatient Account(St ring input ) { | |
| 487 | setE lement(inp ut, 17); | |
| 488 | } | |
| 489 | ||
| 490 | /* * | |
| 491 | * | |
| 492 | * NOT USED | |
| 493 | * | |
| 494 | * @return S tring A va lue of Pat ientAccoun t | |
| 495 | * / | |
| 496 | pu blic Strin g getPatie ntAccount( ) { | |
| 497 | retu rn getElem ent(17); | |
| 498 | } | |
| 499 | ||
| 500 | /* * | |
| 501 | * | |
| 502 | * SOCIAL SE CURITY NUM BER (.09) | |
| 503 | * | |
| 504 | * @param in put | |
| 505 | * A value of SSN | |
| 506 | * / | |
| 507 | pu blic void setSSN(Str ing input) { | |
| 508 | setE lement(inp ut, 18); | |
| 509 | } | |
| 510 | ||
| 511 | /* * | |
| 512 | * | |
| 513 | * SOCIAL SE CURITY NUM BER (.09) | |
| 514 | * | |
| 515 | * @return S tring A va lue of SSN | |
| 516 | * / | |
| 517 | pu blic Strin g getSSN() { | |
| 518 | retu rn getElem ent(18); | |
| 519 | } | |
| 520 | ||
| 521 | /* * | |
| 522 | * | |
| 523 | * NOT USED | |
| 524 | * | |
| 525 | * @param in put | |
| 526 | * A value of DriverL icenseNumb er | |
| 527 | * / | |
| 528 | pu blic void setDriverL icenseNumb er(String input) { | |
| 529 | setE lement(inp ut, 19); | |
| 530 | } | |
| 531 | ||
| 532 | /* * | |
| 533 | * | |
| 534 | * NOT USED | |
| 535 | * | |
| 536 | * @return S tring A va lue of Dri verLicense Number | |
| 537 | * / | |
| 538 | pu blic Strin g getDrive rLicenseNu mber() { | |
| 539 | retu rn getElem ent(19); | |
| 540 | } | |
| 541 | ||
| 542 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.