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