001package org.hl7.fhir.instance.model.valuesets;
002
003/*
004  Copyright (c) 2011+, HL7, Inc.
005  All rights reserved.
006  
007  Redistribution and use in source and binary forms, with or without modification, 
008  are permitted provided that the following conditions are met:
009  
010   * Redistributions of source code must retain the above copyright notice, this 
011     list of conditions and the following disclaimer.
012   * Redistributions in binary form must reproduce the above copyright notice, 
013     this list of conditions and the following disclaimer in the documentation 
014     and/or other materials provided with the distribution.
015   * Neither the name of HL7 nor the names of its contributors may be used to 
016     endorse or promote products derived from this software without specific 
017     prior written permission.
018  
019  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
020  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
021  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
022  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
023  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
024  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
025  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
026  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
027  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
028  POSSIBILITY OF SUCH DAMAGE.
029  
030*/
031
032// Generated on Wed, Nov 11, 2015 10:54-0500 for FHIR v1.0.2
033
034
035public enum V3EducationLevel {
036
037        /**
038         * Associate's or technical degree complete
039         */
040        ASSOC, 
041        /**
042         * College or baccalaureate degree complete
043         */
044        BD, 
045        /**
046         * Elementary School
047         */
048        ELEM, 
049        /**
050         * Graduate or professional Degree complete
051         */
052        GD, 
053        /**
054         * High School or secondary school degree complete
055         */
056        HS, 
057        /**
058         * Some post-baccalaureate education
059         */
060        PB, 
061        /**
062         * Doctoral or post graduate education
063         */
064        POSTG, 
065        /**
066         * Some College education
067         */
068        SCOL, 
069        /**
070         * Some secondary or high school education
071         */
072        SEC, 
073        /**
074         * added to help the parsers
075         */
076        NULL;
077        public static V3EducationLevel fromCode(String codeString) throws Exception {
078            if (codeString == null || "".equals(codeString))
079                return null;
080        if ("ASSOC".equals(codeString))
081          return ASSOC;
082        if ("BD".equals(codeString))
083          return BD;
084        if ("ELEM".equals(codeString))
085          return ELEM;
086        if ("GD".equals(codeString))
087          return GD;
088        if ("HS".equals(codeString))
089          return HS;
090        if ("PB".equals(codeString))
091          return PB;
092        if ("POSTG".equals(codeString))
093          return POSTG;
094        if ("SCOL".equals(codeString))
095          return SCOL;
096        if ("SEC".equals(codeString))
097          return SEC;
098        throw new Exception("Unknown V3EducationLevel code '"+codeString+"'");
099        }
100        public String toCode() {
101          switch (this) {
102            case ASSOC: return "ASSOC";
103            case BD: return "BD";
104            case ELEM: return "ELEM";
105            case GD: return "GD";
106            case HS: return "HS";
107            case PB: return "PB";
108            case POSTG: return "POSTG";
109            case SCOL: return "SCOL";
110            case SEC: return "SEC";
111            default: return "?";
112          }
113        }
114        public String getSystem() {
115          return "http://hl7.org/fhir/v3/EducationLevel";
116        }
117        public String getDefinition() {
118          switch (this) {
119            case ASSOC: return "Associate's or technical degree complete";
120            case BD: return "College or baccalaureate degree complete";
121            case ELEM: return "Elementary School";
122            case GD: return "Graduate or professional Degree complete";
123            case HS: return "High School or secondary school degree complete";
124            case PB: return "Some post-baccalaureate education";
125            case POSTG: return "Doctoral or post graduate education";
126            case SCOL: return "Some College education";
127            case SEC: return "Some secondary or high school education";
128            default: return "?";
129          }
130        }
131        public String getDisplay() {
132          switch (this) {
133            case ASSOC: return "Associate's or technical degree complete";
134            case BD: return "College or baccalaureate degree complete";
135            case ELEM: return "Elementary School";
136            case GD: return "Graduate or professional Degree complete";
137            case HS: return "High School or secondary school degree complete";
138            case PB: return "Some post-baccalaureate education";
139            case POSTG: return "Doctoral or post graduate education";
140            case SCOL: return "Some College education";
141            case SEC: return "Some secondary or high school education";
142            default: return "?";
143          }
144    }
145
146
147}
148