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