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