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 ServiceCategory { 059 060 /** 061 * Adoption 062 */ 063 _1, 064 /** 065 * Aged Care 066 */ 067 _2, 068 /** 069 * Allied Health 070 */ 071 _34, 072 /** 073 * Alternative & Complementary Therapies 074 */ 075 _3, 076 /** 077 * Child Care and/or Kindergarten 078 */ 079 _4, 080 /** 081 * Child Development 082 */ 083 _5, 084 /** 085 * Child Protection & Family Services 086 */ 087 _6, 088 /** 089 * Community Health Care 090 */ 091 _7, 092 /** 093 * Counselling 094 */ 095 _8, 096 /** 097 * Crisis Line (GPAH use only) 098 */ 099 _36, 100 /** 101 * Death Services 102 */ 103 _9, 104 /** 105 * Dental 106 */ 107 _10, 108 /** 109 * Disability Support 110 */ 111 _11, 112 /** 113 * Drug/Alcohol 114 */ 115 _12, 116 /** 117 * Education & Learning 118 */ 119 _13, 120 /** 121 * Emergency Department 122 */ 123 _14, 124 /** 125 * Employment 126 */ 127 _15, 128 /** 129 * Financial & Material aid 130 */ 131 _16, 132 /** 133 * General Practice/GP (doctor) 134 */ 135 _17, 136 /** 137 * Hospital 138 */ 139 _35, 140 /** 141 * Housing/Homelessness 142 */ 143 _18, 144 /** 145 * Interpreting 146 */ 147 _19, 148 /** 149 * Justice 150 */ 151 _20, 152 /** 153 * Legal 154 */ 155 _21, 156 /** 157 * Mental Health 158 */ 159 _22, 160 /** 161 * NDIA 162 */ 163 _38, 164 /** 165 * Physical Activity & Recreation 166 */ 167 _23, 168 /** 169 * Regulation 170 */ 171 _24, 172 /** 173 * Respite/Carer Support 174 */ 175 _25, 176 /** 177 * Specialist Clinical Pathology - requires referral 178 */ 179 _26, 180 /** 181 * Specialist Medical - requires referral 182 */ 183 _27, 184 /** 185 * Specialist Obstetrics & Gynecology - requires referral 186 */ 187 _28, 188 /** 189 * Specialist Paediatric - requires referral 190 */ 191 _29, 192 /** 193 * Specialist Radiology/Imaging - requires referral 194 */ 195 _30, 196 /** 197 * Specialist Surgical - requires referral 198 */ 199 _31, 200 /** 201 * Support group/s 202 */ 203 _32, 204 /** 205 * Test Message (HSD admin use only) 206 */ 207 _37, 208 /** 209 * Transport 210 */ 211 _33, 212 /** 213 * added to help the parsers 214 */ 215 NULL; 216 public static ServiceCategory fromCode(String codeString) throws FHIRException { 217 if (codeString == null || "".equals(codeString)) 218 return null; 219 if ("1".equals(codeString)) 220 return _1; 221 if ("2".equals(codeString)) 222 return _2; 223 if ("34".equals(codeString)) 224 return _34; 225 if ("3".equals(codeString)) 226 return _3; 227 if ("4".equals(codeString)) 228 return _4; 229 if ("5".equals(codeString)) 230 return _5; 231 if ("6".equals(codeString)) 232 return _6; 233 if ("7".equals(codeString)) 234 return _7; 235 if ("8".equals(codeString)) 236 return _8; 237 if ("36".equals(codeString)) 238 return _36; 239 if ("9".equals(codeString)) 240 return _9; 241 if ("10".equals(codeString)) 242 return _10; 243 if ("11".equals(codeString)) 244 return _11; 245 if ("12".equals(codeString)) 246 return _12; 247 if ("13".equals(codeString)) 248 return _13; 249 if ("14".equals(codeString)) 250 return _14; 251 if ("15".equals(codeString)) 252 return _15; 253 if ("16".equals(codeString)) 254 return _16; 255 if ("17".equals(codeString)) 256 return _17; 257 if ("35".equals(codeString)) 258 return _35; 259 if ("18".equals(codeString)) 260 return _18; 261 if ("19".equals(codeString)) 262 return _19; 263 if ("20".equals(codeString)) 264 return _20; 265 if ("21".equals(codeString)) 266 return _21; 267 if ("22".equals(codeString)) 268 return _22; 269 if ("38".equals(codeString)) 270 return _38; 271 if ("23".equals(codeString)) 272 return _23; 273 if ("24".equals(codeString)) 274 return _24; 275 if ("25".equals(codeString)) 276 return _25; 277 if ("26".equals(codeString)) 278 return _26; 279 if ("27".equals(codeString)) 280 return _27; 281 if ("28".equals(codeString)) 282 return _28; 283 if ("29".equals(codeString)) 284 return _29; 285 if ("30".equals(codeString)) 286 return _30; 287 if ("31".equals(codeString)) 288 return _31; 289 if ("32".equals(codeString)) 290 return _32; 291 if ("37".equals(codeString)) 292 return _37; 293 if ("33".equals(codeString)) 294 return _33; 295 throw new FHIRException("Unknown ServiceCategory code '"+codeString+"'"); 296 } 297 public String toCode() { 298 switch (this) { 299 case _1: return "1"; 300 case _2: return "2"; 301 case _34: return "34"; 302 case _3: return "3"; 303 case _4: return "4"; 304 case _5: return "5"; 305 case _6: return "6"; 306 case _7: return "7"; 307 case _8: return "8"; 308 case _36: return "36"; 309 case _9: return "9"; 310 case _10: return "10"; 311 case _11: return "11"; 312 case _12: return "12"; 313 case _13: return "13"; 314 case _14: return "14"; 315 case _15: return "15"; 316 case _16: return "16"; 317 case _17: return "17"; 318 case _35: return "35"; 319 case _18: return "18"; 320 case _19: return "19"; 321 case _20: return "20"; 322 case _21: return "21"; 323 case _22: return "22"; 324 case _38: return "38"; 325 case _23: return "23"; 326 case _24: return "24"; 327 case _25: return "25"; 328 case _26: return "26"; 329 case _27: return "27"; 330 case _28: return "28"; 331 case _29: return "29"; 332 case _30: return "30"; 333 case _31: return "31"; 334 case _32: return "32"; 335 case _37: return "37"; 336 case _33: return "33"; 337 default: return "?"; 338 } 339 } 340 public String getSystem() { 341 return "http://terminology.hl7.org/CodeSystem/service-category"; 342 } 343 public String getDefinition() { 344 switch (this) { 345 case _1: return "Adoption"; 346 case _2: return "Aged Care"; 347 case _34: return "Allied Health"; 348 case _3: return "Alternative & Complementary Therapies"; 349 case _4: return "Child Care and/or Kindergarten"; 350 case _5: return "Child Development"; 351 case _6: return "Child Protection & Family Services"; 352 case _7: return "Community Health Care"; 353 case _8: return "Counselling"; 354 case _36: return "Crisis Line (GPAH use only)"; 355 case _9: return "Death Services"; 356 case _10: return "Dental"; 357 case _11: return "Disability Support"; 358 case _12: return "Drug/Alcohol"; 359 case _13: return "Education & Learning"; 360 case _14: return "Emergency Department"; 361 case _15: return "Employment"; 362 case _16: return "Financial & Material aid"; 363 case _17: return "General Practice/GP (doctor)"; 364 case _35: return "Hospital"; 365 case _18: return "Housing/Homelessness"; 366 case _19: return "Interpreting"; 367 case _20: return "Justice"; 368 case _21: return "Legal"; 369 case _22: return "Mental Health"; 370 case _38: return "NDIA"; 371 case _23: return "Physical Activity & Recreation"; 372 case _24: return "Regulation"; 373 case _25: return "Respite/Carer Support"; 374 case _26: return "Specialist Clinical Pathology - requires referral"; 375 case _27: return "Specialist Medical - requires referral"; 376 case _28: return "Specialist Obstetrics & Gynecology - requires referral"; 377 case _29: return "Specialist Paediatric - requires referral"; 378 case _30: return "Specialist Radiology/Imaging - requires referral"; 379 case _31: return "Specialist Surgical - requires referral"; 380 case _32: return "Support group/s"; 381 case _37: return "Test Message (HSD admin use only)"; 382 case _33: return "Transport"; 383 default: return "?"; 384 } 385 } 386 public String getDisplay() { 387 switch (this) { 388 case _1: return "Adoption"; 389 case _2: return "Aged Care"; 390 case _34: return "Allied Health"; 391 case _3: return "Alternative/Complementary Therapies"; 392 case _4: return "Child Care /Kindergarten"; 393 case _5: return "Child Development"; 394 case _6: return "Child Protection & Family Services"; 395 case _7: return "Community Health Care"; 396 case _8: return "Counselling"; 397 case _36: return "Crisis Line (GPAH use only)"; 398 case _9: return "Death Services"; 399 case _10: return "Dental"; 400 case _11: return "Disability Support"; 401 case _12: return "Drug/Alcohol"; 402 case _13: return "Education & Learning"; 403 case _14: return "Emergency Department"; 404 case _15: return "Employment"; 405 case _16: return "Financial & Material Aid"; 406 case _17: return "General Practice"; 407 case _35: return "Hospital"; 408 case _18: return "Housing/Homelessness"; 409 case _19: return "Interpreting"; 410 case _20: return "Justice"; 411 case _21: return "Legal"; 412 case _22: return "Mental Health"; 413 case _38: return "NDIA"; 414 case _23: return "Physical Activity & Recreation"; 415 case _24: return "Regulation"; 416 case _25: return "Respite/Carer Support"; 417 case _26: return "Specialist Clinical Pathology"; 418 case _27: return "Specialist Medical"; 419 case _28: return "Specialist Obstetrics & Gynecology"; 420 case _29: return "Specialist Paediatric"; 421 case _30: return "Specialist Radiology/Imaging"; 422 case _31: return "Specialist Surgical"; 423 case _32: return "Support Group/s"; 424 case _37: return "Test Message (HSD admin)"; 425 case _33: return "Transport"; 426 default: return "?"; 427 } 428 } 429 430 431} 432