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 ServiceUscls { 038 039 /** 040 * Exam, comp, primary 041 */ 042 _1101, 043 /** 044 * Exam, comp, mixed 045 */ 046 _1102, 047 /** 048 * Exam, comp, permanent 049 */ 050 _1103, 051 /** 052 * Exam, recall 053 */ 054 _1201, 055 /** 056 * Exam, emergency 057 */ 058 _1205, 059 /** 060 * Radiograph, series (12) 061 */ 062 _2101, 063 /** 064 * Radiograph, series (16) 065 */ 066 _2102, 067 /** 068 * Radiograph, bitewing 069 */ 070 _2141, 071 /** 072 * Radiograph, panoramic 073 */ 074 _2601, 075 /** 076 * Polishing, 1 unit 077 */ 078 _11101, 079 /** 080 * Polishing, 2 unit 081 */ 082 _11102, 083 /** 084 * Polishing, 3 unit 085 */ 086 _11103, 087 /** 088 * Polishing, 4 unit 089 */ 090 _11104, 091 /** 092 * Amalgam, 1 surface 093 */ 094 _21211, 095 /** 096 * Amalgam, 2 surface 097 */ 098 _21212, 099 /** 100 * Crown, PFM 101 */ 102 _27211, 103 /** 104 * Maryland Bridge 105 */ 106 _67211, 107 /** 108 * Lab, commercial 109 */ 110 _99111, 111 /** 112 * Lab, in office 113 */ 114 _99333, 115 /** 116 * Expense 117 */ 118 _99555, 119 /** 120 * added to help the parsers 121 */ 122 NULL; 123 public static ServiceUscls fromCode(String codeString) throws FHIRException { 124 if (codeString == null || "".equals(codeString)) 125 return null; 126 if ("1101".equals(codeString)) 127 return _1101; 128 if ("1102".equals(codeString)) 129 return _1102; 130 if ("1103".equals(codeString)) 131 return _1103; 132 if ("1201".equals(codeString)) 133 return _1201; 134 if ("1205".equals(codeString)) 135 return _1205; 136 if ("2101".equals(codeString)) 137 return _2101; 138 if ("2102".equals(codeString)) 139 return _2102; 140 if ("2141".equals(codeString)) 141 return _2141; 142 if ("2601".equals(codeString)) 143 return _2601; 144 if ("11101".equals(codeString)) 145 return _11101; 146 if ("11102".equals(codeString)) 147 return _11102; 148 if ("11103".equals(codeString)) 149 return _11103; 150 if ("11104".equals(codeString)) 151 return _11104; 152 if ("21211".equals(codeString)) 153 return _21211; 154 if ("21212".equals(codeString)) 155 return _21212; 156 if ("27211".equals(codeString)) 157 return _27211; 158 if ("67211".equals(codeString)) 159 return _67211; 160 if ("99111".equals(codeString)) 161 return _99111; 162 if ("99333".equals(codeString)) 163 return _99333; 164 if ("99555".equals(codeString)) 165 return _99555; 166 throw new FHIRException("Unknown ServiceUscls code '"+codeString+"'"); 167 } 168 public String toCode() { 169 switch (this) { 170 case _1101: return "1101"; 171 case _1102: return "1102"; 172 case _1103: return "1103"; 173 case _1201: return "1201"; 174 case _1205: return "1205"; 175 case _2101: return "2101"; 176 case _2102: return "2102"; 177 case _2141: return "2141"; 178 case _2601: return "2601"; 179 case _11101: return "11101"; 180 case _11102: return "11102"; 181 case _11103: return "11103"; 182 case _11104: return "11104"; 183 case _21211: return "21211"; 184 case _21212: return "21212"; 185 case _27211: return "27211"; 186 case _67211: return "67211"; 187 case _99111: return "99111"; 188 case _99333: return "99333"; 189 case _99555: return "99555"; 190 default: return "?"; 191 } 192 } 193 public String getSystem() { 194 return "http://terminology.hl7.org/CodeSystem/ex-USCLS"; 195 } 196 public String getDefinition() { 197 switch (this) { 198 case _1101: return "Exam, comp, primary"; 199 case _1102: return "Exam, comp, mixed"; 200 case _1103: return "Exam, comp, permanent"; 201 case _1201: return "Exam, recall"; 202 case _1205: return "Exam, emergency"; 203 case _2101: return "Radiograph, series (12)"; 204 case _2102: return "Radiograph, series (16)"; 205 case _2141: return "Radiograph, bitewing"; 206 case _2601: return "Radiograph, panoramic"; 207 case _11101: return "Polishing, 1 unit"; 208 case _11102: return "Polishing, 2 unit"; 209 case _11103: return "Polishing, 3 unit"; 210 case _11104: return "Polishing, 4 unit"; 211 case _21211: return "Amalgam, 1 surface"; 212 case _21212: return "Amalgam, 2 surface"; 213 case _27211: return "Crown, PFM"; 214 case _67211: return "Maryland Bridge"; 215 case _99111: return "Lab, commercial"; 216 case _99333: return "Lab, in office"; 217 case _99555: return "Expense"; 218 default: return "?"; 219 } 220 } 221 public String getDisplay() { 222 switch (this) { 223 case _1101: return "Exam, comp, primary"; 224 case _1102: return "Exam, comp, mixed"; 225 case _1103: return "Exam, comp, permanent"; 226 case _1201: return "Exam, recall"; 227 case _1205: return "Exam, emergency"; 228 case _2101: return "Radiograph, series (12)"; 229 case _2102: return "Radiograph, series (16)"; 230 case _2141: return "Radiograph, bitewing"; 231 case _2601: return "Radiograph, panoramic"; 232 case _11101: return "Polishing, 1 unit"; 233 case _11102: return "Polishing, 2 unit"; 234 case _11103: return "Polishing, 3 unit"; 235 case _11104: return "Polishing, 4 unit"; 236 case _21211: return "Amalgam, 1 surface"; 237 case _21212: return "Amalgam, 2 surface"; 238 case _27211: return "Crown, PFM"; 239 case _67211: return "Maryland Bridge"; 240 case _99111: return "Lab, commercial"; 241 case _99333: return "Lab, in office"; 242 case _99555: return "Expense"; 243 default: return "?"; 244 } 245 } 246 247 248} 249