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