001package org.hl7.fhir.r4.model.codesystems; 002 003/* 004 Copyright (c) 2011+, HL7, Inc. 005 All rights reserved. 006 007 Redistribution and use in source and binary forms, with or without modification, 008 are permitted provided that the following conditions are met: 009 010 * Redistributions of source code must retain the above copyright notice, this 011 list of conditions and the following disclaimer. 012 * Redistributions in binary form must reproduce the above copyright notice, 013 this list of conditions and the following disclaimer in the documentation 014 and/or other materials provided with the distribution. 015 * Neither the name of HL7 nor the names of its contributors may be used to 016 endorse or promote products derived from this software without specific 017 prior written permission. 018 019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 022 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 023 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 024 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 026 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 027 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 028 POSSIBILITY OF SUCH DAMAGE. 029 030*/ 031 032// Generated on Thu, Sep 13, 2018 09:04-0400 for FHIR v3.5.0 033 034 035import org.hl7.fhir.exceptions.FHIRException; 036 037public enum V3ReligiousAffiliation { 038 039 /** 040 * Adventist 041 */ 042 _1001, 043 /** 044 * African Religions 045 */ 046 _1002, 047 /** 048 * Afro-Caribbean Religions 049 */ 050 _1003, 051 /** 052 * Agnosticism 053 */ 054 _1004, 055 /** 056 * Anglican 057 */ 058 _1005, 059 /** 060 * Animism 061 */ 062 _1006, 063 /** 064 * Atheism 065 */ 066 _1007, 067 /** 068 * Babi & Baha'I faiths 069 */ 070 _1008, 071 /** 072 * Baptist 073 */ 074 _1009, 075 /** 076 * Bon 077 */ 078 _1010, 079 /** 080 * Cao Dai 081 */ 082 _1011, 083 /** 084 * Celticism 085 */ 086 _1012, 087 /** 088 * Christian (non-Catholic, non-specific) 089 */ 090 _1013, 091 /** 092 * Confucianism 093 */ 094 _1014, 095 /** 096 * Cyberculture Religions 097 */ 098 _1015, 099 /** 100 * Divination 101 */ 102 _1016, 103 /** 104 * Fourth Way 105 */ 106 _1017, 107 /** 108 * Free Daism 109 */ 110 _1018, 111 /** 112 * Gnosis 113 */ 114 _1019, 115 /** 116 * Hinduism 117 */ 118 _1020, 119 /** 120 * Humanism 121 */ 122 _1021, 123 /** 124 * Independent 125 */ 126 _1022, 127 /** 128 * Islam 129 */ 130 _1023, 131 /** 132 * Jainism 133 */ 134 _1024, 135 /** 136 * Jehovah's Witnesses 137 */ 138 _1025, 139 /** 140 * Judaism 141 */ 142 _1026, 143 /** 144 * Latter Day Saints 145 */ 146 _1027, 147 /** 148 * Lutheran 149 */ 150 _1028, 151 /** 152 * Mahayana 153 */ 154 _1029, 155 /** 156 * Meditation 157 */ 158 _1030, 159 /** 160 * Messianic Judaism 161 */ 162 _1031, 163 /** 164 * Mitraism 165 */ 166 _1032, 167 /** 168 * New Age 169 */ 170 _1033, 171 /** 172 * non-Roman Catholic 173 */ 174 _1034, 175 /** 176 * Occult 177 */ 178 _1035, 179 /** 180 * Orthodox 181 */ 182 _1036, 183 /** 184 * Paganism 185 */ 186 _1037, 187 /** 188 * Pentecostal 189 */ 190 _1038, 191 /** 192 * Process, The 193 */ 194 _1039, 195 /** 196 * Reformed/Presbyterian 197 */ 198 _1040, 199 /** 200 * Roman Catholic Church 201 */ 202 _1041, 203 /** 204 * Satanism 205 */ 206 _1042, 207 /** 208 * Scientology 209 */ 210 _1043, 211 /** 212 * Shamanism 213 */ 214 _1044, 215 /** 216 * Shiite (Islam) 217 */ 218 _1045, 219 /** 220 * Shinto 221 */ 222 _1046, 223 /** 224 * Sikism 225 */ 226 _1047, 227 /** 228 * Spiritualism 229 */ 230 _1048, 231 /** 232 * Sunni (Islam) 233 */ 234 _1049, 235 /** 236 * Taoism 237 */ 238 _1050, 239 /** 240 * Theravada 241 */ 242 _1051, 243 /** 244 * Unitarian-Universalism 245 */ 246 _1052, 247 /** 248 * Universal Life Church 249 */ 250 _1053, 251 /** 252 * Vajrayana (Tibetan) 253 */ 254 _1054, 255 /** 256 * Veda 257 */ 258 _1055, 259 /** 260 * Voodoo 261 */ 262 _1056, 263 /** 264 * Wicca 265 */ 266 _1057, 267 /** 268 * Yaohushua 269 */ 270 _1058, 271 /** 272 * Zen Buddhism 273 */ 274 _1059, 275 /** 276 * Zoroastrianism 277 */ 278 _1060, 279 /** 280 * Assembly of God 281 */ 282 _1061, 283 /** 284 * Brethren 285 */ 286 _1062, 287 /** 288 * Christian Scientist 289 */ 290 _1063, 291 /** 292 * Church of Christ 293 */ 294 _1064, 295 /** 296 * Church of God 297 */ 298 _1065, 299 /** 300 * Congregational 301 */ 302 _1066, 303 /** 304 * Disciples of Christ 305 */ 306 _1067, 307 /** 308 * Eastern Orthodox 309 */ 310 _1068, 311 /** 312 * Episcopalian 313 */ 314 _1069, 315 /** 316 * Evangelical Covenant 317 */ 318 _1070, 319 /** 320 * Friends 321 */ 322 _1071, 323 /** 324 * Full Gospel 325 */ 326 _1072, 327 /** 328 * Methodist 329 */ 330 _1073, 331 /** 332 * Native American 333 */ 334 _1074, 335 /** 336 * Nazarene 337 */ 338 _1075, 339 /** 340 * Presbyterian 341 */ 342 _1076, 343 /** 344 * Protestant 345 */ 346 _1077, 347 /** 348 * Protestant, No Denomination 349 */ 350 _1078, 351 /** 352 * Reformed 353 */ 354 _1079, 355 /** 356 * Salvation Army 357 */ 358 _1080, 359 /** 360 * Unitarian Universalist 361 */ 362 _1081, 363 /** 364 * United Church of Christ 365 */ 366 _1082, 367 /** 368 * added to help the parsers 369 */ 370 NULL; 371 public static V3ReligiousAffiliation fromCode(String codeString) throws FHIRException { 372 if (codeString == null || "".equals(codeString)) 373 return null; 374 if ("1001".equals(codeString)) 375 return _1001; 376 if ("1002".equals(codeString)) 377 return _1002; 378 if ("1003".equals(codeString)) 379 return _1003; 380 if ("1004".equals(codeString)) 381 return _1004; 382 if ("1005".equals(codeString)) 383 return _1005; 384 if ("1006".equals(codeString)) 385 return _1006; 386 if ("1007".equals(codeString)) 387 return _1007; 388 if ("1008".equals(codeString)) 389 return _1008; 390 if ("1009".equals(codeString)) 391 return _1009; 392 if ("1010".equals(codeString)) 393 return _1010; 394 if ("1011".equals(codeString)) 395 return _1011; 396 if ("1012".equals(codeString)) 397 return _1012; 398 if ("1013".equals(codeString)) 399 return _1013; 400 if ("1014".equals(codeString)) 401 return _1014; 402 if ("1015".equals(codeString)) 403 return _1015; 404 if ("1016".equals(codeString)) 405 return _1016; 406 if ("1017".equals(codeString)) 407 return _1017; 408 if ("1018".equals(codeString)) 409 return _1018; 410 if ("1019".equals(codeString)) 411 return _1019; 412 if ("1020".equals(codeString)) 413 return _1020; 414 if ("1021".equals(codeString)) 415 return _1021; 416 if ("1022".equals(codeString)) 417 return _1022; 418 if ("1023".equals(codeString)) 419 return _1023; 420 if ("1024".equals(codeString)) 421 return _1024; 422 if ("1025".equals(codeString)) 423 return _1025; 424 if ("1026".equals(codeString)) 425 return _1026; 426 if ("1027".equals(codeString)) 427 return _1027; 428 if ("1028".equals(codeString)) 429 return _1028; 430 if ("1029".equals(codeString)) 431 return _1029; 432 if ("1030".equals(codeString)) 433 return _1030; 434 if ("1031".equals(codeString)) 435 return _1031; 436 if ("1032".equals(codeString)) 437 return _1032; 438 if ("1033".equals(codeString)) 439 return _1033; 440 if ("1034".equals(codeString)) 441 return _1034; 442 if ("1035".equals(codeString)) 443 return _1035; 444 if ("1036".equals(codeString)) 445 return _1036; 446 if ("1037".equals(codeString)) 447 return _1037; 448 if ("1038".equals(codeString)) 449 return _1038; 450 if ("1039".equals(codeString)) 451 return _1039; 452 if ("1040".equals(codeString)) 453 return _1040; 454 if ("1041".equals(codeString)) 455 return _1041; 456 if ("1042".equals(codeString)) 457 return _1042; 458 if ("1043".equals(codeString)) 459 return _1043; 460 if ("1044".equals(codeString)) 461 return _1044; 462 if ("1045".equals(codeString)) 463 return _1045; 464 if ("1046".equals(codeString)) 465 return _1046; 466 if ("1047".equals(codeString)) 467 return _1047; 468 if ("1048".equals(codeString)) 469 return _1048; 470 if ("1049".equals(codeString)) 471 return _1049; 472 if ("1050".equals(codeString)) 473 return _1050; 474 if ("1051".equals(codeString)) 475 return _1051; 476 if ("1052".equals(codeString)) 477 return _1052; 478 if ("1053".equals(codeString)) 479 return _1053; 480 if ("1054".equals(codeString)) 481 return _1054; 482 if ("1055".equals(codeString)) 483 return _1055; 484 if ("1056".equals(codeString)) 485 return _1056; 486 if ("1057".equals(codeString)) 487 return _1057; 488 if ("1058".equals(codeString)) 489 return _1058; 490 if ("1059".equals(codeString)) 491 return _1059; 492 if ("1060".equals(codeString)) 493 return _1060; 494 if ("1061".equals(codeString)) 495 return _1061; 496 if ("1062".equals(codeString)) 497 return _1062; 498 if ("1063".equals(codeString)) 499 return _1063; 500 if ("1064".equals(codeString)) 501 return _1064; 502 if ("1065".equals(codeString)) 503 return _1065; 504 if ("1066".equals(codeString)) 505 return _1066; 506 if ("1067".equals(codeString)) 507 return _1067; 508 if ("1068".equals(codeString)) 509 return _1068; 510 if ("1069".equals(codeString)) 511 return _1069; 512 if ("1070".equals(codeString)) 513 return _1070; 514 if ("1071".equals(codeString)) 515 return _1071; 516 if ("1072".equals(codeString)) 517 return _1072; 518 if ("1073".equals(codeString)) 519 return _1073; 520 if ("1074".equals(codeString)) 521 return _1074; 522 if ("1075".equals(codeString)) 523 return _1075; 524 if ("1076".equals(codeString)) 525 return _1076; 526 if ("1077".equals(codeString)) 527 return _1077; 528 if ("1078".equals(codeString)) 529 return _1078; 530 if ("1079".equals(codeString)) 531 return _1079; 532 if ("1080".equals(codeString)) 533 return _1080; 534 if ("1081".equals(codeString)) 535 return _1081; 536 if ("1082".equals(codeString)) 537 return _1082; 538 throw new FHIRException("Unknown V3ReligiousAffiliation code '"+codeString+"'"); 539 } 540 public String toCode() { 541 switch (this) { 542 case _1001: return "1001"; 543 case _1002: return "1002"; 544 case _1003: return "1003"; 545 case _1004: return "1004"; 546 case _1005: return "1005"; 547 case _1006: return "1006"; 548 case _1007: return "1007"; 549 case _1008: return "1008"; 550 case _1009: return "1009"; 551 case _1010: return "1010"; 552 case _1011: return "1011"; 553 case _1012: return "1012"; 554 case _1013: return "1013"; 555 case _1014: return "1014"; 556 case _1015: return "1015"; 557 case _1016: return "1016"; 558 case _1017: return "1017"; 559 case _1018: return "1018"; 560 case _1019: return "1019"; 561 case _1020: return "1020"; 562 case _1021: return "1021"; 563 case _1022: return "1022"; 564 case _1023: return "1023"; 565 case _1024: return "1024"; 566 case _1025: return "1025"; 567 case _1026: return "1026"; 568 case _1027: return "1027"; 569 case _1028: return "1028"; 570 case _1029: return "1029"; 571 case _1030: return "1030"; 572 case _1031: return "1031"; 573 case _1032: return "1032"; 574 case _1033: return "1033"; 575 case _1034: return "1034"; 576 case _1035: return "1035"; 577 case _1036: return "1036"; 578 case _1037: return "1037"; 579 case _1038: return "1038"; 580 case _1039: return "1039"; 581 case _1040: return "1040"; 582 case _1041: return "1041"; 583 case _1042: return "1042"; 584 case _1043: return "1043"; 585 case _1044: return "1044"; 586 case _1045: return "1045"; 587 case _1046: return "1046"; 588 case _1047: return "1047"; 589 case _1048: return "1048"; 590 case _1049: return "1049"; 591 case _1050: return "1050"; 592 case _1051: return "1051"; 593 case _1052: return "1052"; 594 case _1053: return "1053"; 595 case _1054: return "1054"; 596 case _1055: return "1055"; 597 case _1056: return "1056"; 598 case _1057: return "1057"; 599 case _1058: return "1058"; 600 case _1059: return "1059"; 601 case _1060: return "1060"; 602 case _1061: return "1061"; 603 case _1062: return "1062"; 604 case _1063: return "1063"; 605 case _1064: return "1064"; 606 case _1065: return "1065"; 607 case _1066: return "1066"; 608 case _1067: return "1067"; 609 case _1068: return "1068"; 610 case _1069: return "1069"; 611 case _1070: return "1070"; 612 case _1071: return "1071"; 613 case _1072: return "1072"; 614 case _1073: return "1073"; 615 case _1074: return "1074"; 616 case _1075: return "1075"; 617 case _1076: return "1076"; 618 case _1077: return "1077"; 619 case _1078: return "1078"; 620 case _1079: return "1079"; 621 case _1080: return "1080"; 622 case _1081: return "1081"; 623 case _1082: return "1082"; 624 default: return "?"; 625 } 626 } 627 public String getSystem() { 628 return "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation"; 629 } 630 public String getDefinition() { 631 switch (this) { 632 case _1001: return "Adventist"; 633 case _1002: return "African Religions"; 634 case _1003: return "Afro-Caribbean Religions"; 635 case _1004: return "Agnosticism"; 636 case _1005: return "Anglican"; 637 case _1006: return "Animism"; 638 case _1007: return "Atheism"; 639 case _1008: return "Babi & Baha'I faiths"; 640 case _1009: return "Baptist"; 641 case _1010: return "Bon"; 642 case _1011: return "Cao Dai"; 643 case _1012: return "Celticism"; 644 case _1013: return "Christian (non-Catholic, non-specific)"; 645 case _1014: return "Confucianism"; 646 case _1015: return "Cyberculture Religions"; 647 case _1016: return "Divination"; 648 case _1017: return "Fourth Way"; 649 case _1018: return "Free Daism"; 650 case _1019: return "Gnosis"; 651 case _1020: return "Hinduism"; 652 case _1021: return "Humanism"; 653 case _1022: return "Independent"; 654 case _1023: return "Islam"; 655 case _1024: return "Jainism"; 656 case _1025: return "Jehovah's Witnesses"; 657 case _1026: return "Judaism"; 658 case _1027: return "Latter Day Saints"; 659 case _1028: return "Lutheran"; 660 case _1029: return "Mahayana"; 661 case _1030: return "Meditation"; 662 case _1031: return "Messianic Judaism"; 663 case _1032: return "Mitraism"; 664 case _1033: return "New Age"; 665 case _1034: return "non-Roman Catholic"; 666 case _1035: return "Occult"; 667 case _1036: return "Orthodox"; 668 case _1037: return "Paganism"; 669 case _1038: return "Pentecostal"; 670 case _1039: return "Process, The"; 671 case _1040: return "Reformed/Presbyterian"; 672 case _1041: return "Roman Catholic Church"; 673 case _1042: return "Satanism"; 674 case _1043: return "Scientology"; 675 case _1044: return "Shamanism"; 676 case _1045: return "Shiite (Islam)"; 677 case _1046: return "Shinto"; 678 case _1047: return "Sikism"; 679 case _1048: return "Spiritualism"; 680 case _1049: return "Sunni (Islam)"; 681 case _1050: return "Taoism"; 682 case _1051: return "Theravada"; 683 case _1052: return "Unitarian-Universalism"; 684 case _1053: return "Universal Life Church"; 685 case _1054: return "Vajrayana (Tibetan)"; 686 case _1055: return "Veda"; 687 case _1056: return "Voodoo"; 688 case _1057: return "Wicca"; 689 case _1058: return "Yaohushua"; 690 case _1059: return "Zen Buddhism"; 691 case _1060: return "Zoroastrianism"; 692 case _1061: return "Assembly of God"; 693 case _1062: return "Brethren"; 694 case _1063: return "Christian Scientist"; 695 case _1064: return "Church of Christ"; 696 case _1065: return "Church of God"; 697 case _1066: return "Congregational"; 698 case _1067: return "Disciples of Christ"; 699 case _1068: return "Eastern Orthodox"; 700 case _1069: return "Episcopalian"; 701 case _1070: return "Evangelical Covenant"; 702 case _1071: return "Friends"; 703 case _1072: return "Full Gospel"; 704 case _1073: return "Methodist"; 705 case _1074: return "Native American"; 706 case _1075: return "Nazarene"; 707 case _1076: return "Presbyterian"; 708 case _1077: return "Protestant"; 709 case _1078: return "Protestant, No Denomination"; 710 case _1079: return "Reformed"; 711 case _1080: return "Salvation Army"; 712 case _1081: return "Unitarian Universalist"; 713 case _1082: return "United Church of Christ"; 714 default: return "?"; 715 } 716 } 717 public String getDisplay() { 718 switch (this) { 719 case _1001: return "Adventist"; 720 case _1002: return "African Religions"; 721 case _1003: return "Afro-Caribbean Religions"; 722 case _1004: return "Agnosticism"; 723 case _1005: return "Anglican"; 724 case _1006: return "Animism"; 725 case _1007: return "Atheism"; 726 case _1008: return "Babi & Baha'I faiths"; 727 case _1009: return "Baptist"; 728 case _1010: return "Bon"; 729 case _1011: return "Cao Dai"; 730 case _1012: return "Celticism"; 731 case _1013: return "Christian (non-Catholic, non-specific)"; 732 case _1014: return "Confucianism"; 733 case _1015: return "Cyberculture Religions"; 734 case _1016: return "Divination"; 735 case _1017: return "Fourth Way"; 736 case _1018: return "Free Daism"; 737 case _1019: return "Gnosis"; 738 case _1020: return "Hinduism"; 739 case _1021: return "Humanism"; 740 case _1022: return "Independent"; 741 case _1023: return "Islam"; 742 case _1024: return "Jainism"; 743 case _1025: return "Jehovah's Witnesses"; 744 case _1026: return "Judaism"; 745 case _1027: return "Latter Day Saints"; 746 case _1028: return "Lutheran"; 747 case _1029: return "Mahayana"; 748 case _1030: return "Meditation"; 749 case _1031: return "Messianic Judaism"; 750 case _1032: return "Mitraism"; 751 case _1033: return "New Age"; 752 case _1034: return "non-Roman Catholic"; 753 case _1035: return "Occult"; 754 case _1036: return "Orthodox"; 755 case _1037: return "Paganism"; 756 case _1038: return "Pentecostal"; 757 case _1039: return "Process, The"; 758 case _1040: return "Reformed/Presbyterian"; 759 case _1041: return "Roman Catholic Church"; 760 case _1042: return "Satanism"; 761 case _1043: return "Scientology"; 762 case _1044: return "Shamanism"; 763 case _1045: return "Shiite (Islam)"; 764 case _1046: return "Shinto"; 765 case _1047: return "Sikism"; 766 case _1048: return "Spiritualism"; 767 case _1049: return "Sunni (Islam)"; 768 case _1050: return "Taoism"; 769 case _1051: return "Theravada"; 770 case _1052: return "Unitarian-Universalism"; 771 case _1053: return "Universal Life Church"; 772 case _1054: return "Vajrayana (Tibetan)"; 773 case _1055: return "Veda"; 774 case _1056: return "Voodoo"; 775 case _1057: return "Wicca"; 776 case _1058: return "Yaohushua"; 777 case _1059: return "Zen Buddhism"; 778 case _1060: return "Zoroastrianism"; 779 case _1061: return "Assembly of God"; 780 case _1062: return "Brethren"; 781 case _1063: return "Christian Scientist"; 782 case _1064: return "Church of Christ"; 783 case _1065: return "Church of God"; 784 case _1066: return "Congregational"; 785 case _1067: return "Disciples of Christ"; 786 case _1068: return "Eastern Orthodox"; 787 case _1069: return "Episcopalian"; 788 case _1070: return "Evangelical Covenant"; 789 case _1071: return "Friends"; 790 case _1072: return "Full Gospel"; 791 case _1073: return "Methodist"; 792 case _1074: return "Native American"; 793 case _1075: return "Nazarene"; 794 case _1076: return "Presbyterian"; 795 case _1077: return "Protestant"; 796 case _1078: return "Protestant, No Denomination"; 797 case _1079: return "Reformed"; 798 case _1080: return "Salvation Army"; 799 case _1081: return "Unitarian Universalist"; 800 case _1082: return "United Church of Christ"; 801 default: return "?"; 802 } 803 } 804 805 806} 807