001package org.hl7.fhir.r4.model.codesystems; 002 003/*- 004 * #%L 005 * org.hl7.fhir.r4 006 * %% 007 * Copyright (C) 2014 - 2019 Health Level 7 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023 024/* 025 Copyright (c) 2011+, HL7, Inc. 026 All rights reserved. 027 028 Redistribution and use in source and binary forms, with or without modification, 029 are permitted provided that the following conditions are met: 030 031 * Redistributions of source code must retain the above copyright notice, this 032 list of conditions and the following disclaimer. 033 * Redistributions in binary form must reproduce the above copyright notice, 034 this list of conditions and the following disclaimer in the documentation 035 and/or other materials provided with the distribution. 036 * Neither the name of HL7 nor the names of its contributors may be used to 037 endorse or promote products derived from this software without specific 038 prior written permission. 039 040 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 041 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 042 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 043 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 044 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 045 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 046 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 047 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 048 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 049 POSSIBILITY OF SUCH DAMAGE. 050 051*/ 052 053// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0 054 055 056import org.hl7.fhir.exceptions.FHIRException; 057 058public enum ExBenefitcategory { 059 060 /** 061 * Medical Care. 062 */ 063 _1, 064 /** 065 * Surgical. 066 */ 067 _2, 068 /** 069 * Consultation. 070 */ 071 _3, 072 /** 073 * Diagnostic XRay. 074 */ 075 _4, 076 /** 077 * Diagnostic Lab. 078 */ 079 _5, 080 /** 081 * Renal Supplies excluding Dialysis. 082 */ 083 _14, 084 /** 085 * Diagnostic Dental. 086 */ 087 _23, 088 /** 089 * Periodontics. 090 */ 091 _24, 092 /** 093 * Restorative. 094 */ 095 _25, 096 /** 097 * Endodontics. 098 */ 099 _26, 100 /** 101 * Maxillofacial Prosthetics. 102 */ 103 _27, 104 /** 105 * Adjunctive Dental Services. 106 */ 107 _28, 108 /** 109 * Health Benefit Plan Coverage. 110 */ 111 _30, 112 /** 113 * Dental Care. 114 */ 115 _35, 116 /** 117 * Dental Crowns. 118 */ 119 _36, 120 /** 121 * Dental Accident. 122 */ 123 _37, 124 /** 125 * Hospital Room and Board. 126 */ 127 _49, 128 /** 129 * Major Medical. 130 */ 131 _55, 132 /** 133 * Medically Related Transportation. 134 */ 135 _56, 136 /** 137 * In-vitro Fertilization. 138 */ 139 _61, 140 /** 141 * MRI Scan. 142 */ 143 _62, 144 /** 145 * Donor Procedures such as organ harvest. 146 */ 147 _63, 148 /** 149 * Maternity. 150 */ 151 _69, 152 /** 153 * Renal dialysis. 154 */ 155 _76, 156 /** 157 * Medical Coverage. 158 */ 159 F1, 160 /** 161 * Dental Coverage. 162 */ 163 F3, 164 /** 165 * Hearing Coverage. 166 */ 167 F4, 168 /** 169 * Vision Coverage. 170 */ 171 F6, 172 /** 173 * added to help the parsers 174 */ 175 NULL; 176 public static ExBenefitcategory fromCode(String codeString) throws FHIRException { 177 if (codeString == null || "".equals(codeString)) 178 return null; 179 if ("1".equals(codeString)) 180 return _1; 181 if ("2".equals(codeString)) 182 return _2; 183 if ("3".equals(codeString)) 184 return _3; 185 if ("4".equals(codeString)) 186 return _4; 187 if ("5".equals(codeString)) 188 return _5; 189 if ("14".equals(codeString)) 190 return _14; 191 if ("23".equals(codeString)) 192 return _23; 193 if ("24".equals(codeString)) 194 return _24; 195 if ("25".equals(codeString)) 196 return _25; 197 if ("26".equals(codeString)) 198 return _26; 199 if ("27".equals(codeString)) 200 return _27; 201 if ("28".equals(codeString)) 202 return _28; 203 if ("30".equals(codeString)) 204 return _30; 205 if ("35".equals(codeString)) 206 return _35; 207 if ("36".equals(codeString)) 208 return _36; 209 if ("37".equals(codeString)) 210 return _37; 211 if ("49".equals(codeString)) 212 return _49; 213 if ("55".equals(codeString)) 214 return _55; 215 if ("56".equals(codeString)) 216 return _56; 217 if ("61".equals(codeString)) 218 return _61; 219 if ("62".equals(codeString)) 220 return _62; 221 if ("63".equals(codeString)) 222 return _63; 223 if ("69".equals(codeString)) 224 return _69; 225 if ("76".equals(codeString)) 226 return _76; 227 if ("F1".equals(codeString)) 228 return F1; 229 if ("F3".equals(codeString)) 230 return F3; 231 if ("F4".equals(codeString)) 232 return F4; 233 if ("F6".equals(codeString)) 234 return F6; 235 throw new FHIRException("Unknown ExBenefitcategory code '"+codeString+"'"); 236 } 237 public String toCode() { 238 switch (this) { 239 case _1: return "1"; 240 case _2: return "2"; 241 case _3: return "3"; 242 case _4: return "4"; 243 case _5: return "5"; 244 case _14: return "14"; 245 case _23: return "23"; 246 case _24: return "24"; 247 case _25: return "25"; 248 case _26: return "26"; 249 case _27: return "27"; 250 case _28: return "28"; 251 case _30: return "30"; 252 case _35: return "35"; 253 case _36: return "36"; 254 case _37: return "37"; 255 case _49: return "49"; 256 case _55: return "55"; 257 case _56: return "56"; 258 case _61: return "61"; 259 case _62: return "62"; 260 case _63: return "63"; 261 case _69: return "69"; 262 case _76: return "76"; 263 case F1: return "F1"; 264 case F3: return "F3"; 265 case F4: return "F4"; 266 case F6: return "F6"; 267 default: return "?"; 268 } 269 } 270 public String getSystem() { 271 return "http://terminology.hl7.org/CodeSystem/ex-benefitcategory"; 272 } 273 public String getDefinition() { 274 switch (this) { 275 case _1: return "Medical Care."; 276 case _2: return "Surgical."; 277 case _3: return "Consultation."; 278 case _4: return "Diagnostic XRay."; 279 case _5: return "Diagnostic Lab."; 280 case _14: return "Renal Supplies excluding Dialysis."; 281 case _23: return "Diagnostic Dental."; 282 case _24: return "Periodontics."; 283 case _25: return "Restorative."; 284 case _26: return "Endodontics."; 285 case _27: return "Maxillofacial Prosthetics."; 286 case _28: return "Adjunctive Dental Services."; 287 case _30: return "Health Benefit Plan Coverage."; 288 case _35: return "Dental Care."; 289 case _36: return "Dental Crowns."; 290 case _37: return "Dental Accident."; 291 case _49: return "Hospital Room and Board."; 292 case _55: return "Major Medical."; 293 case _56: return "Medically Related Transportation."; 294 case _61: return "In-vitro Fertilization."; 295 case _62: return "MRI Scan."; 296 case _63: return "Donor Procedures such as organ harvest."; 297 case _69: return "Maternity."; 298 case _76: return "Renal dialysis."; 299 case F1: return "Medical Coverage."; 300 case F3: return "Dental Coverage."; 301 case F4: return "Hearing Coverage."; 302 case F6: return "Vision Coverage."; 303 default: return "?"; 304 } 305 } 306 public String getDisplay() { 307 switch (this) { 308 case _1: return "Medical Care"; 309 case _2: return "Surgical"; 310 case _3: return "Consultation"; 311 case _4: return "Diagnostic XRay"; 312 case _5: return "Diagnostic Lab"; 313 case _14: return "Renal Supplies"; 314 case _23: return "Diagnostic Dental"; 315 case _24: return "Periodontics"; 316 case _25: return "Restorative"; 317 case _26: return "Endodontics"; 318 case _27: return "Maxillofacial Prosthetics"; 319 case _28: return "Adjunctive Dental Services"; 320 case _30: return "Health Benefit Plan Coverage"; 321 case _35: return "Dental Care"; 322 case _36: return "Dental Crowns"; 323 case _37: return "Dental Accident"; 324 case _49: return "Hospital Room and Board"; 325 case _55: return "Major Medical"; 326 case _56: return "Medically Related Transportation"; 327 case _61: return "In-vitro Fertilization"; 328 case _62: return "MRI Scan"; 329 case _63: return "Donor Procedures"; 330 case _69: return "Maternity"; 331 case _76: return "Renal Dialysis"; 332 case F1: return "Medical Coverage"; 333 case F3: return "Dental Coverage"; 334 case F4: return "Hearing Coverage"; 335 case F6: return "Vision Coverage"; 336 default: return "?"; 337 } 338 } 339 340 341} 342