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 Teeth {
036
037        /**
038         * Upper Right Tooth 1 from the central axis, permanent dentition.
039         */
040        _11, 
041        /**
042         * Upper Right Tooth 2 from the central axis, permanent dentition.
043         */
044        _12, 
045        /**
046         * Upper Right Tooth 3 from the central axis, permanent dentition.
047         */
048        _13, 
049        /**
050         * Upper Right Tooth 4 from the central axis, permanent dentition.
051         */
052        _14, 
053        /**
054         * Upper Right Tooth 5 from the central axis, permanent dentition.
055         */
056        _15, 
057        /**
058         * Upper Right Tooth 6 from the central axis, permanent dentition.
059         */
060        _16, 
061        /**
062         * Upper Right Tooth 7 from the central axis, permanent dentition.
063         */
064        _17, 
065        /**
066         * Upper Right Tooth 1 from the central axis, permanent dentition.
067         */
068        _18, 
069        /**
070         * Upper Left Tooth 1 from the central axis, permanent dentition.
071         */
072        _21, 
073        /**
074         * Upper Left Tooth 2 from the central axis, permanent dentition.
075         */
076        _22, 
077        /**
078         * Upper Left Tooth 3 from the central axis, permanent dentition.
079         */
080        _23, 
081        /**
082         * Upper Left Tooth 4 from the central axis, permanent dentition.
083         */
084        _24, 
085        /**
086         * Upper Left Tooth 5 from the central axis, permanent dentition.
087         */
088        _25, 
089        /**
090         * Upper Left Tooth 6 from the central axis, permanent dentition.
091         */
092        _26, 
093        /**
094         * Upper Left Tooth 7 from the central axis, permanent dentition.
095         */
096        _27, 
097        /**
098         * Upper Left Tooth 8 from the central axis, permanent dentition.
099         */
100        _28, 
101        /**
102         * Lower Left Tooth 1 from the central axis, permanent dentition.
103         */
104        _31, 
105        /**
106         * Lower Left Tooth 2 from the central axis, permanent dentition.
107         */
108        _32, 
109        /**
110         * Lower Left Tooth 3 from the central axis, permanent dentition.
111         */
112        _33, 
113        /**
114         * Lower Left Tooth 4 from the central axis, permanent dentition.
115         */
116        _34, 
117        /**
118         * Lower Left Tooth 5 from the central axis, permanent dentition.
119         */
120        _35, 
121        /**
122         * Lower Left Tooth 6 from the central axis, permanent dentition.
123         */
124        _36, 
125        /**
126         * Lower Left Tooth 7 from the central axis, permanent dentition.
127         */
128        _37, 
129        /**
130         * Lower Left Tooth 8 from the central axis, permanent dentition.
131         */
132        _38, 
133        /**
134         * Lower Right Tooth 1 from the central axis, permanent dentition.
135         */
136        _41, 
137        /**
138         * Lower Right Tooth 2 from the central axis, permanent dentition.
139         */
140        _42, 
141        /**
142         * Lower Right Tooth 3 from the central axis, permanent dentition.
143         */
144        _43, 
145        /**
146         * Lower Right Tooth 4 from the central axis, permanent dentition.
147         */
148        _44, 
149        /**
150         * Lower Right Tooth 5 from the central axis, permanent dentition.
151         */
152        _45, 
153        /**
154         * Lower Right Tooth 6 from the central axis, permanent dentition.
155         */
156        _46, 
157        /**
158         * Lower Right Tooth 7 from the central axis, permanent dentition.
159         */
160        _47, 
161        /**
162         * Lower Right Tooth 8 from the central axis, permanent dentition.
163         */
164        _48, 
165        /**
166         * added to help the parsers
167         */
168        NULL;
169        public static Teeth fromCode(String codeString) throws Exception {
170            if (codeString == null || "".equals(codeString))
171                return null;
172        if ("11".equals(codeString))
173          return _11;
174        if ("12".equals(codeString))
175          return _12;
176        if ("13".equals(codeString))
177          return _13;
178        if ("14".equals(codeString))
179          return _14;
180        if ("15".equals(codeString))
181          return _15;
182        if ("16".equals(codeString))
183          return _16;
184        if ("17".equals(codeString))
185          return _17;
186        if ("18".equals(codeString))
187          return _18;
188        if ("21".equals(codeString))
189          return _21;
190        if ("22".equals(codeString))
191          return _22;
192        if ("23".equals(codeString))
193          return _23;
194        if ("24".equals(codeString))
195          return _24;
196        if ("25".equals(codeString))
197          return _25;
198        if ("26".equals(codeString))
199          return _26;
200        if ("27".equals(codeString))
201          return _27;
202        if ("28".equals(codeString))
203          return _28;
204        if ("31".equals(codeString))
205          return _31;
206        if ("32".equals(codeString))
207          return _32;
208        if ("33".equals(codeString))
209          return _33;
210        if ("34".equals(codeString))
211          return _34;
212        if ("35".equals(codeString))
213          return _35;
214        if ("36".equals(codeString))
215          return _36;
216        if ("37".equals(codeString))
217          return _37;
218        if ("38".equals(codeString))
219          return _38;
220        if ("41".equals(codeString))
221          return _41;
222        if ("42".equals(codeString))
223          return _42;
224        if ("43".equals(codeString))
225          return _43;
226        if ("44".equals(codeString))
227          return _44;
228        if ("45".equals(codeString))
229          return _45;
230        if ("46".equals(codeString))
231          return _46;
232        if ("47".equals(codeString))
233          return _47;
234        if ("48".equals(codeString))
235          return _48;
236        throw new Exception("Unknown Teeth code '"+codeString+"'");
237        }
238        public String toCode() {
239          switch (this) {
240            case _11: return "11";
241            case _12: return "12";
242            case _13: return "13";
243            case _14: return "14";
244            case _15: return "15";
245            case _16: return "16";
246            case _17: return "17";
247            case _18: return "18";
248            case _21: return "21";
249            case _22: return "22";
250            case _23: return "23";
251            case _24: return "24";
252            case _25: return "25";
253            case _26: return "26";
254            case _27: return "27";
255            case _28: return "28";
256            case _31: return "31";
257            case _32: return "32";
258            case _33: return "33";
259            case _34: return "34";
260            case _35: return "35";
261            case _36: return "36";
262            case _37: return "37";
263            case _38: return "38";
264            case _41: return "41";
265            case _42: return "42";
266            case _43: return "43";
267            case _44: return "44";
268            case _45: return "45";
269            case _46: return "46";
270            case _47: return "47";
271            case _48: return "48";
272            default: return "?";
273          }
274        }
275        public String getSystem() {
276          return "http://hl7.org/fhir/ex-fdi";
277        }
278        public String getDefinition() {
279          switch (this) {
280            case _11: return "Upper Right Tooth 1 from the central axis, permanent dentition.";
281            case _12: return "Upper Right Tooth 2 from the central axis, permanent dentition.";
282            case _13: return "Upper Right Tooth 3 from the central axis, permanent dentition.";
283            case _14: return "Upper Right Tooth 4 from the central axis, permanent dentition.";
284            case _15: return "Upper Right Tooth 5 from the central axis, permanent dentition.";
285            case _16: return "Upper Right Tooth 6 from the central axis, permanent dentition.";
286            case _17: return "Upper Right Tooth 7 from the central axis, permanent dentition.";
287            case _18: return "Upper Right Tooth 1 from the central axis, permanent dentition.";
288            case _21: return "Upper Left Tooth 1 from the central axis, permanent dentition.";
289            case _22: return "Upper Left Tooth 2 from the central axis, permanent dentition.";
290            case _23: return "Upper Left Tooth 3 from the central axis, permanent dentition.";
291            case _24: return "Upper Left Tooth 4 from the central axis, permanent dentition.";
292            case _25: return "Upper Left Tooth 5 from the central axis, permanent dentition.";
293            case _26: return "Upper Left Tooth 6 from the central axis, permanent dentition.";
294            case _27: return "Upper Left Tooth 7 from the central axis, permanent dentition.";
295            case _28: return "Upper Left Tooth 8 from the central axis, permanent dentition.";
296            case _31: return "Lower Left Tooth 1 from the central axis, permanent dentition.";
297            case _32: return "Lower Left Tooth 2 from the central axis, permanent dentition.";
298            case _33: return "Lower Left Tooth 3 from the central axis, permanent dentition.";
299            case _34: return "Lower Left Tooth 4 from the central axis, permanent dentition.";
300            case _35: return "Lower Left Tooth 5 from the central axis, permanent dentition.";
301            case _36: return "Lower Left Tooth 6 from the central axis, permanent dentition.";
302            case _37: return "Lower Left Tooth 7 from the central axis, permanent dentition.";
303            case _38: return "Lower Left Tooth 8 from the central axis, permanent dentition.";
304            case _41: return "Lower Right Tooth 1 from the central axis, permanent dentition.";
305            case _42: return "Lower Right Tooth 2 from the central axis, permanent dentition.";
306            case _43: return "Lower Right Tooth 3 from the central axis, permanent dentition.";
307            case _44: return "Lower Right Tooth 4 from the central axis, permanent dentition.";
308            case _45: return "Lower Right Tooth 5 from the central axis, permanent dentition.";
309            case _46: return "Lower Right Tooth 6 from the central axis, permanent dentition.";
310            case _47: return "Lower Right Tooth 7 from the central axis, permanent dentition.";
311            case _48: return "Lower Right Tooth 8 from the central axis, permanent dentition.";
312            default: return "?";
313          }
314        }
315        public String getDisplay() {
316          switch (this) {
317            case _11: return "11";
318            case _12: return "12";
319            case _13: return "13";
320            case _14: return "14";
321            case _15: return "15";
322            case _16: return "16";
323            case _17: return "17";
324            case _18: return "18";
325            case _21: return "21";
326            case _22: return "22";
327            case _23: return "23";
328            case _24: return "24";
329            case _25: return "25";
330            case _26: return "26";
331            case _27: return "27";
332            case _28: return "28";
333            case _31: return "31";
334            case _32: return "32";
335            case _33: return "33";
336            case _34: return "34";
337            case _35: return "35";
338            case _36: return "36";
339            case _37: return "37";
340            case _38: return "38";
341            case _41: return "41";
342            case _42: return "42";
343            case _43: return "43";
344            case _44: return "44";
345            case _45: return "45";
346            case _46: return "46";
347            case _47: return "47";
348            case _48: return "48";
349            default: return "?";
350          }
351    }
352
353
354}
355