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