001package org.hl7.fhir.dstu2016may.model.codesystems; 002 003 004 005 006/* 007 Copyright (c) 2011+, HL7, Inc. 008 All rights reserved. 009 010 Redistribution and use in source and binary forms, with or without modification, 011 are permitted provided that the following conditions are met: 012 013 * Redistributions of source code must retain the above copyright notice, this 014 list of conditions and the following disclaimer. 015 * Redistributions in binary form must reproduce the above copyright notice, 016 this list of conditions and the following disclaimer in the documentation 017 and/or other materials provided with the distribution. 018 * Neither the name of HL7 nor the names of its contributors may be used to 019 endorse or promote products derived from this software without specific 020 prior written permission. 021 022 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 023 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 024 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 025 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 026 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 027 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 028 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 029 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 030 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 031 POSSIBILITY OF SUCH DAMAGE. 032 033*/ 034 035// Generated on Sun, May 8, 2016 03:05+1000 for FHIR v1.4.0 036 037 038import org.hl7.fhir.exceptions.FHIRException; 039 040public enum ServiceUscls { 041 042 /** 043 * Exam, comp, primary 044 */ 045 _1101, 046 /** 047 * Exam, comp, mixed 048 */ 049 _1102, 050 /** 051 * Exam, comp, permanent 052 */ 053 _1103, 054 /** 055 * Exam, recall 056 */ 057 _1201, 058 /** 059 * Exam, emergency 060 */ 061 _1205, 062 /** 063 * Radiograph, series (12) 064 */ 065 _2101, 066 /** 067 * Radiograph, series (16) 068 */ 069 _2102, 070 /** 071 * Radiograph, bytewing 072 */ 073 _2141, 074 /** 075 * Radiograph, panoramic 076 */ 077 _2601, 078 /** 079 * Polishing, 1 unit 080 */ 081 _11101, 082 /** 083 * Polishing, 2 unit 084 */ 085 _11102, 086 /** 087 * Polishing, 3 unit 088 */ 089 _11103, 090 /** 091 * Polishing, 4 unit 092 */ 093 _11104, 094 /** 095 * Amalgam, 1 surface 096 */ 097 _21211, 098 /** 099 * Amalgam, 2 surface 100 */ 101 _21212, 102 /** 103 * Crown, PFM 104 */ 105 _27211, 106 /** 107 * Lab, commercial 108 */ 109 _99111, 110 /** 111 * Lab, in office 112 */ 113 _99333, 114 /** 115 * Expense 116 */ 117 _99555, 118 /** 119 * added to help the parsers 120 */ 121 NULL; 122 public static ServiceUscls fromCode(String codeString) throws FHIRException { 123 if (codeString == null || "".equals(codeString)) 124 return null; 125 if ("1101".equals(codeString)) 126 return _1101; 127 if ("1102".equals(codeString)) 128 return _1102; 129 if ("1103".equals(codeString)) 130 return _1103; 131 if ("1201".equals(codeString)) 132 return _1201; 133 if ("1205".equals(codeString)) 134 return _1205; 135 if ("2101".equals(codeString)) 136 return _2101; 137 if ("2102".equals(codeString)) 138 return _2102; 139 if ("2141".equals(codeString)) 140 return _2141; 141 if ("2601".equals(codeString)) 142 return _2601; 143 if ("11101".equals(codeString)) 144 return _11101; 145 if ("11102".equals(codeString)) 146 return _11102; 147 if ("11103".equals(codeString)) 148 return _11103; 149 if ("11104".equals(codeString)) 150 return _11104; 151 if ("21211".equals(codeString)) 152 return _21211; 153 if ("21212".equals(codeString)) 154 return _21212; 155 if ("27211".equals(codeString)) 156 return _27211; 157 if ("99111".equals(codeString)) 158 return _99111; 159 if ("99333".equals(codeString)) 160 return _99333; 161 if ("99555".equals(codeString)) 162 return _99555; 163 throw new FHIRException("Unknown ServiceUscls code '"+codeString+"'"); 164 } 165 public String toCode() { 166 switch (this) { 167 case _1101: return "1101"; 168 case _1102: return "1102"; 169 case _1103: return "1103"; 170 case _1201: return "1201"; 171 case _1205: return "1205"; 172 case _2101: return "2101"; 173 case _2102: return "2102"; 174 case _2141: return "2141"; 175 case _2601: return "2601"; 176 case _11101: return "11101"; 177 case _11102: return "11102"; 178 case _11103: return "11103"; 179 case _11104: return "11104"; 180 case _21211: return "21211"; 181 case _21212: return "21212"; 182 case _27211: return "27211"; 183 case _99111: return "99111"; 184 case _99333: return "99333"; 185 case _99555: return "99555"; 186 case NULL: return null; 187 default: return "?"; 188 } 189 } 190 public String getSystem() { 191 return "http://hl7.org/fhir/ex-USCLS"; 192 } 193 public String getDefinition() { 194 switch (this) { 195 case _1101: return "Exam, comp, primary"; 196 case _1102: return "Exam, comp, mixed"; 197 case _1103: return "Exam, comp, permanent"; 198 case _1201: return "Exam, recall"; 199 case _1205: return "Exam, emergency"; 200 case _2101: return "Radiograph, series (12)"; 201 case _2102: return "Radiograph, series (16)"; 202 case _2141: return "Radiograph, bytewing"; 203 case _2601: return "Radiograph, panoramic"; 204 case _11101: return "Polishing, 1 unit"; 205 case _11102: return "Polishing, 2 unit"; 206 case _11103: return "Polishing, 3 unit"; 207 case _11104: return "Polishing, 4 unit"; 208 case _21211: return "Amalgam, 1 surface"; 209 case _21212: return "Amalgam, 2 surface"; 210 case _27211: return "Crown, PFM"; 211 case _99111: return "Lab, commercial"; 212 case _99333: return "Lab, in office"; 213 case _99555: return "Expense"; 214 case NULL: return null; 215 default: return "?"; 216 } 217 } 218 public String getDisplay() { 219 switch (this) { 220 case _1101: return "Exam, comp, primary"; 221 case _1102: return "Exam, comp, mixed"; 222 case _1103: return "Exam, comp, permanent"; 223 case _1201: return "Exam, recall"; 224 case _1205: return "Exam, emergency"; 225 case _2101: return "Radiograph, series (12)"; 226 case _2102: return "Radiograph, series (16)"; 227 case _2141: return "Radiograph, bytewing"; 228 case _2601: return "Radiograph, panoramic"; 229 case _11101: return "Polishing, 1 unit"; 230 case _11102: return "Polishing, 2 unit"; 231 case _11103: return "Polishing, 3 unit"; 232 case _11104: return "Polishing, 4 unit"; 233 case _21211: return "Amalgam, 1 surface"; 234 case _21212: return "Amalgam, 2 surface"; 235 case _27211: return "Crown, PFM"; 236 case _99111: return "Lab, commercial"; 237 case _99333: return "Lab, in office"; 238 case _99555: return "Expense"; 239 case NULL: return null; 240 default: return "?"; 241 } 242 } 243 244 245}