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