001 002package ca.uhn.fhir.model.dstu2.valueset; 003 004import ca.uhn.fhir.model.api.*; 005import java.util.HashMap; 006import java.util.Map; 007 008public enum SurfaceCodesEnum { 009 010 /** 011 * Code Value: <b>0</b> 012 */ 013 _0("0", "http://hl7.org/fhir/ex-surface"), 014 015 /** 016 * Display: <b>1</b><br> 017 * Code Value: <b>1</b> 018 * 019 * Permanent teeth Maxillary right. 020 */ 021 _1("1", "http://hl7.org/fhir/ex-surface"), 022 023 /** 024 * Display: <b>2</b><br> 025 * Code Value: <b>2</b> 026 * 027 * Permanent teeth Maxillary left. 028 */ 029 _2("2", "http://hl7.org/fhir/ex-surface"), 030 031 /** 032 * Display: <b>3</b><br> 033 * Code Value: <b>3</b> 034 * 035 * Permanent teeth Mandibular right. 036 */ 037 _3("3", "http://hl7.org/fhir/ex-surface"), 038 039 /** 040 * Display: <b>4</b><br> 041 * Code Value: <b>4</b> 042 * 043 * Permanent teeth Mandibular left. 044 */ 045 _4("4", "http://hl7.org/fhir/ex-surface"), 046 047 /** 048 * Display: <b>5</b><br> 049 * Code Value: <b>5</b> 050 * 051 * Deciduous teeth Maxillary right. 052 */ 053 _5("5", "http://hl7.org/fhir/ex-surface"), 054 055 /** 056 * Display: <b>6</b><br> 057 * Code Value: <b>6</b> 058 * 059 * Deciduous teeth Maxillary left. 060 */ 061 _6("6", "http://hl7.org/fhir/ex-surface"), 062 063 /** 064 * Display: <b>7</b><br> 065 * Code Value: <b>7</b> 066 * 067 * Deciduous teeth Mandibular right. 068 */ 069 _7("7", "http://hl7.org/fhir/ex-surface"), 070 071 /** 072 * Display: <b>8</b><br> 073 * Code Value: <b>8</b> 074 * 075 * Deciduous teeth Mandibular left. 076 */ 077 _8("8", "http://hl7.org/fhir/ex-surface"), 078 079 /** 080 * Display: <b>11</b><br> 081 * Code Value: <b>11</b> 082 * 083 * Upper Right Tooth 1 from the central axis, permanent dentition. 084 */ 085 _11("11", "http://hl7.org/fhir/ex-surface"), 086 087 /** 088 * Display: <b>12</b><br> 089 * Code Value: <b>12</b> 090 * 091 * Upper Right Tooth 2 from the central axis, permanent dentition. 092 */ 093 _12("12", "http://hl7.org/fhir/ex-surface"), 094 095 /** 096 * Display: <b>13</b><br> 097 * Code Value: <b>13</b> 098 * 099 * Upper Right Tooth 3 from the central axis, permanent dentition. 100 */ 101 _13("13", "http://hl7.org/fhir/ex-surface"), 102 103 /** 104 * Display: <b>14</b><br> 105 * Code Value: <b>14</b> 106 * 107 * Upper Right Tooth 4 from the central axis, permanent dentition. 108 */ 109 _14("14", "http://hl7.org/fhir/ex-surface"), 110 111 /** 112 * Display: <b>15</b><br> 113 * Code Value: <b>15</b> 114 * 115 * Upper Right Tooth 5 from the central axis, permanent dentition. 116 */ 117 _15("15", "http://hl7.org/fhir/ex-surface"), 118 119 /** 120 * Display: <b>16</b><br> 121 * Code Value: <b>16</b> 122 * 123 * Upper Right Tooth 6 from the central axis, permanent dentition. 124 */ 125 _16("16", "http://hl7.org/fhir/ex-surface"), 126 127 /** 128 * Display: <b>17</b><br> 129 * Code Value: <b>17</b> 130 * 131 * Upper Right Tooth 7 from the central axis, permanent dentition. 132 */ 133 _17("17", "http://hl7.org/fhir/ex-surface"), 134 135 /** 136 * Display: <b>18</b><br> 137 * Code Value: <b>18</b> 138 * 139 * Upper Right Tooth 1 from the central axis, permanent dentition. 140 */ 141 _18("18", "http://hl7.org/fhir/ex-surface"), 142 143 /** 144 * Display: <b>21</b><br> 145 * Code Value: <b>21</b> 146 * 147 * Upper Left Tooth 1 from the central axis, permanent dentition. 148 */ 149 _21("21", "http://hl7.org/fhir/ex-surface"), 150 151 /** 152 * Display: <b>22</b><br> 153 * Code Value: <b>22</b> 154 * 155 * Upper Left Tooth 2 from the central axis, permanent dentition. 156 */ 157 _22("22", "http://hl7.org/fhir/ex-surface"), 158 159 /** 160 * Display: <b>23</b><br> 161 * Code Value: <b>23</b> 162 * 163 * Upper Left Tooth 3 from the central axis, permanent dentition. 164 */ 165 _23("23", "http://hl7.org/fhir/ex-surface"), 166 167 /** 168 * Display: <b>24</b><br> 169 * Code Value: <b>24</b> 170 * 171 * Upper Left Tooth 4 from the central axis, permanent dentition. 172 */ 173 _24("24", "http://hl7.org/fhir/ex-surface"), 174 175 /** 176 * Display: <b>25</b><br> 177 * Code Value: <b>25</b> 178 * 179 * Upper Left Tooth 5 from the central axis, permanent dentition. 180 */ 181 _25("25", "http://hl7.org/fhir/ex-surface"), 182 183 /** 184 * Display: <b>26</b><br> 185 * Code Value: <b>26</b> 186 * 187 * Upper Left Tooth 6 from the central axis, permanent dentition. 188 */ 189 _26("26", "http://hl7.org/fhir/ex-surface"), 190 191 /** 192 * Display: <b>27</b><br> 193 * Code Value: <b>27</b> 194 * 195 * Upper Left Tooth 7 from the central axis, permanent dentition. 196 */ 197 _27("27", "http://hl7.org/fhir/ex-surface"), 198 199 /** 200 * Display: <b>28</b><br> 201 * Code Value: <b>28</b> 202 * 203 * Upper Left Tooth 8 from the central axis, permanent dentition. 204 */ 205 _28("28", "http://hl7.org/fhir/ex-surface"), 206 207 /** 208 * Display: <b>31</b><br> 209 * Code Value: <b>31</b> 210 * 211 * Lower Left Tooth 1 from the central axis, permanent dentition. 212 */ 213 _31("31", "http://hl7.org/fhir/ex-surface"), 214 215 /** 216 * Display: <b>32</b><br> 217 * Code Value: <b>32</b> 218 * 219 * Lower Left Tooth 2 from the central axis, permanent dentition. 220 */ 221 _32("32", "http://hl7.org/fhir/ex-surface"), 222 223 /** 224 * Display: <b>33</b><br> 225 * Code Value: <b>33</b> 226 * 227 * Lower Left Tooth 3 from the central axis, permanent dentition. 228 */ 229 _33("33", "http://hl7.org/fhir/ex-surface"), 230 231 /** 232 * Display: <b>34</b><br> 233 * Code Value: <b>34</b> 234 * 235 * Lower Left Tooth 4 from the central axis, permanent dentition. 236 */ 237 _34("34", "http://hl7.org/fhir/ex-surface"), 238 239 /** 240 * Display: <b>35</b><br> 241 * Code Value: <b>35</b> 242 * 243 * Lower Left Tooth 5 from the central axis, permanent dentition. 244 */ 245 _35("35", "http://hl7.org/fhir/ex-surface"), 246 247 /** 248 * Display: <b>36</b><br> 249 * Code Value: <b>36</b> 250 * 251 * Lower Left Tooth 6 from the central axis, permanent dentition. 252 */ 253 _36("36", "http://hl7.org/fhir/ex-surface"), 254 255 /** 256 * Display: <b>37</b><br> 257 * Code Value: <b>37</b> 258 * 259 * Lower Left Tooth 7 from the central axis, permanent dentition. 260 */ 261 _37("37", "http://hl7.org/fhir/ex-surface"), 262 263 /** 264 * Display: <b>38</b><br> 265 * Code Value: <b>38</b> 266 * 267 * Lower Left Tooth 8 from the central axis, permanent dentition. 268 */ 269 _38("38", "http://hl7.org/fhir/ex-surface"), 270 271 /** 272 * Display: <b>41</b><br> 273 * Code Value: <b>41</b> 274 * 275 * Lower Right Tooth 1 from the central axis, permanent dentition. 276 */ 277 _41("41", "http://hl7.org/fhir/ex-surface"), 278 279 /** 280 * Display: <b>42</b><br> 281 * Code Value: <b>42</b> 282 * 283 * Lower Right Tooth 2 from the central axis, permanent dentition. 284 */ 285 _42("42", "http://hl7.org/fhir/ex-surface"), 286 287 /** 288 * Display: <b>43</b><br> 289 * Code Value: <b>43</b> 290 * 291 * Lower Right Tooth 3 from the central axis, permanent dentition. 292 */ 293 _43("43", "http://hl7.org/fhir/ex-surface"), 294 295 /** 296 * Display: <b>44</b><br> 297 * Code Value: <b>44</b> 298 * 299 * Lower Right Tooth 4 from the central axis, permanent dentition. 300 */ 301 _44("44", "http://hl7.org/fhir/ex-surface"), 302 303 /** 304 * Display: <b>45</b><br> 305 * Code Value: <b>45</b> 306 * 307 * Lower Right Tooth 5 from the central axis, permanent dentition. 308 */ 309 _45("45", "http://hl7.org/fhir/ex-surface"), 310 311 /** 312 * Display: <b>46</b><br> 313 * Code Value: <b>46</b> 314 * 315 * Lower Right Tooth 6 from the central axis, permanent dentition. 316 */ 317 _46("46", "http://hl7.org/fhir/ex-surface"), 318 319 /** 320 * Display: <b>47</b><br> 321 * Code Value: <b>47</b> 322 * 323 * Lower Right Tooth 7 from the central axis, permanent dentition. 324 */ 325 _47("47", "http://hl7.org/fhir/ex-surface"), 326 327 /** 328 * Display: <b>48</b><br> 329 * Code Value: <b>48</b> 330 * 331 * Lower Right Tooth 8 from the central axis, permanent dentition. 332 */ 333 _48("48", "http://hl7.org/fhir/ex-surface"), 334 335 ; 336 337 /** 338 * Identifier for this Value Set: 339 * 340 */ 341 public static final String VALUESET_IDENTIFIER = ""; 342 343 /** 344 * Name for this Value Set: 345 * Surface Codes 346 */ 347 public static final String VALUESET_NAME = "Surface Codes"; 348 349 private static Map<String, SurfaceCodesEnum> CODE_TO_ENUM = new HashMap<String, SurfaceCodesEnum>(); 350 private static Map<String, Map<String, SurfaceCodesEnum>> SYSTEM_TO_CODE_TO_ENUM = new HashMap<String, Map<String, SurfaceCodesEnum>>(); 351 352 private final String myCode; 353 private final String mySystem; 354 355 static { 356 for (SurfaceCodesEnum next : SurfaceCodesEnum.values()) { 357 CODE_TO_ENUM.put(next.getCode(), next); 358 359 if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) { 360 SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap<String, SurfaceCodesEnum>()); 361 } 362 SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next); 363 } 364 } 365 366 /** 367 * Returns the code associated with this enumerated value 368 */ 369 public String getCode() { 370 return myCode; 371 } 372 373 /** 374 * Returns the code system associated with this enumerated value 375 */ 376 public String getSystem() { 377 return mySystem; 378 } 379 380 /** 381 * Returns the enumerated value associated with this code 382 */ 383 public static SurfaceCodesEnum forCode(String theCode) { 384 SurfaceCodesEnum retVal = CODE_TO_ENUM.get(theCode); 385 return retVal; 386 } 387 388 /** 389 * Converts codes to their respective enumerated values 390 */ 391 public static final IValueSetEnumBinder<SurfaceCodesEnum> VALUESET_BINDER = new IValueSetEnumBinder<SurfaceCodesEnum>() { 392 @Override 393 public String toCodeString(SurfaceCodesEnum theEnum) { 394 return theEnum.getCode(); 395 } 396 397 @Override 398 public String toSystemString(SurfaceCodesEnum theEnum) { 399 return theEnum.getSystem(); 400 } 401 402 @Override 403 public SurfaceCodesEnum fromCodeString(String theCodeString) { 404 return CODE_TO_ENUM.get(theCodeString); 405 } 406 407 @Override 408 public SurfaceCodesEnum fromCodeString(String theCodeString, String theSystemString) { 409 Map<String, SurfaceCodesEnum> map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString); 410 if (map == null) { 411 return null; 412 } 413 return map.get(theCodeString); 414 } 415 416 }; 417 418 /** 419 * Constructor 420 */ 421 SurfaceCodesEnum(String theCode, String theSystem) { 422 myCode = theCode; 423 mySystem = theSystem; 424 } 425 426 427}