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