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