001package org.hl7.fhir.r5.model.codesystems; 002 003/* 004 * #%L 005 * org.hl7.fhir.r5 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 Copyright (c) 2011+, HL7, Inc. 025 All rights reserved. 026 027 Redistribution and use in source and binary forms, with or without modification, 028 are permitted provided that the following conditions are met: 029 030 * Redistributions of source code must retain the above copyright notice, this 031 list of conditions and the following disclaimer. 032 * Redistributions in binary form must reproduce the above copyright notice, 033 this list of conditions and the following disclaimer in the documentation 034 and/or other materials provided with the distribution. 035 * Neither the name of HL7 nor the names of its contributors may be used to 036 endorse or promote products derived from this software without specific 037 prior written permission. 038 039 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 040 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 041 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 042 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 043 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 044 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 045 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 046 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 047 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 048 POSSIBILITY OF SUCH DAMAGE. 049 050*/ 051 052// Generated on Thu, Oct 17, 2019 09:42+1100 for FHIR v4.1.0 053 054 055import org.hl7.fhir.exceptions.FHIRException; 056 057public enum ServiceCategory { 058 059 /** 060 * Adoption 061 */ 062 _1, 063 /** 064 * Aged Care 065 */ 066 _2, 067 /** 068 * Allied Health 069 */ 070 _34, 071 /** 072 * Alternative & Complementary Therapies 073 */ 074 _3, 075 /** 076 * Child Care and/or Kindergarten 077 */ 078 _4, 079 /** 080 * Child Development 081 */ 082 _5, 083 /** 084 * Child Protection & Family Services 085 */ 086 _6, 087 /** 088 * Community Health Care 089 */ 090 _7, 091 /** 092 * Counselling 093 */ 094 _8, 095 /** 096 * Crisis Line (GPAH use only) 097 */ 098 _36, 099 /** 100 * Death Services 101 */ 102 _9, 103 /** 104 * Dental 105 */ 106 _10, 107 /** 108 * Disability Support 109 */ 110 _11, 111 /** 112 * Drug/Alcohol 113 */ 114 _12, 115 /** 116 * Education & Learning 117 */ 118 _13, 119 /** 120 * Emergency Department 121 */ 122 _14, 123 /** 124 * Employment 125 */ 126 _15, 127 /** 128 * Financial & Material aid 129 */ 130 _16, 131 /** 132 * General Practice/GP (doctor) 133 */ 134 _17, 135 /** 136 * Hospital 137 */ 138 _35, 139 /** 140 * Housing/Homelessness 141 */ 142 _18, 143 /** 144 * Interpreting 145 */ 146 _19, 147 /** 148 * Justice 149 */ 150 _20, 151 /** 152 * Legal 153 */ 154 _21, 155 /** 156 * Mental Health 157 */ 158 _22, 159 /** 160 * NDIA 161 */ 162 _38, 163 /** 164 * Physical Activity & Recreation 165 */ 166 _23, 167 /** 168 * Regulation 169 */ 170 _24, 171 /** 172 * Respite/Carer Support 173 */ 174 _25, 175 /** 176 * Specialist Clinical Pathology - requires referral 177 */ 178 _26, 179 /** 180 * Specialist Medical - requires referral 181 */ 182 _27, 183 /** 184 * Specialist Obstetrics & Gynecology - requires referral 185 */ 186 _28, 187 /** 188 * Specialist Paediatric - requires referral 189 */ 190 _29, 191 /** 192 * Specialist Radiology/Imaging - requires referral 193 */ 194 _30, 195 /** 196 * Specialist Surgical - requires referral 197 */ 198 _31, 199 /** 200 * Support group/s 201 */ 202 _32, 203 /** 204 * Test Message (HSD admin use only) 205 */ 206 _37, 207 /** 208 * Transport 209 */ 210 _33, 211 /** 212 * added to help the parsers 213 */ 214 NULL; 215 public static ServiceCategory fromCode(String codeString) throws FHIRException { 216 if (codeString == null || "".equals(codeString)) 217 return null; 218 if ("1".equals(codeString)) 219 return _1; 220 if ("2".equals(codeString)) 221 return _2; 222 if ("34".equals(codeString)) 223 return _34; 224 if ("3".equals(codeString)) 225 return _3; 226 if ("4".equals(codeString)) 227 return _4; 228 if ("5".equals(codeString)) 229 return _5; 230 if ("6".equals(codeString)) 231 return _6; 232 if ("7".equals(codeString)) 233 return _7; 234 if ("8".equals(codeString)) 235 return _8; 236 if ("36".equals(codeString)) 237 return _36; 238 if ("9".equals(codeString)) 239 return _9; 240 if ("10".equals(codeString)) 241 return _10; 242 if ("11".equals(codeString)) 243 return _11; 244 if ("12".equals(codeString)) 245 return _12; 246 if ("13".equals(codeString)) 247 return _13; 248 if ("14".equals(codeString)) 249 return _14; 250 if ("15".equals(codeString)) 251 return _15; 252 if ("16".equals(codeString)) 253 return _16; 254 if ("17".equals(codeString)) 255 return _17; 256 if ("35".equals(codeString)) 257 return _35; 258 if ("18".equals(codeString)) 259 return _18; 260 if ("19".equals(codeString)) 261 return _19; 262 if ("20".equals(codeString)) 263 return _20; 264 if ("21".equals(codeString)) 265 return _21; 266 if ("22".equals(codeString)) 267 return _22; 268 if ("38".equals(codeString)) 269 return _38; 270 if ("23".equals(codeString)) 271 return _23; 272 if ("24".equals(codeString)) 273 return _24; 274 if ("25".equals(codeString)) 275 return _25; 276 if ("26".equals(codeString)) 277 return _26; 278 if ("27".equals(codeString)) 279 return _27; 280 if ("28".equals(codeString)) 281 return _28; 282 if ("29".equals(codeString)) 283 return _29; 284 if ("30".equals(codeString)) 285 return _30; 286 if ("31".equals(codeString)) 287 return _31; 288 if ("32".equals(codeString)) 289 return _32; 290 if ("37".equals(codeString)) 291 return _37; 292 if ("33".equals(codeString)) 293 return _33; 294 throw new FHIRException("Unknown ServiceCategory code '"+codeString+"'"); 295 } 296 public String toCode() { 297 switch (this) { 298 case _1: return "1"; 299 case _2: return "2"; 300 case _34: return "34"; 301 case _3: return "3"; 302 case _4: return "4"; 303 case _5: return "5"; 304 case _6: return "6"; 305 case _7: return "7"; 306 case _8: return "8"; 307 case _36: return "36"; 308 case _9: return "9"; 309 case _10: return "10"; 310 case _11: return "11"; 311 case _12: return "12"; 312 case _13: return "13"; 313 case _14: return "14"; 314 case _15: return "15"; 315 case _16: return "16"; 316 case _17: return "17"; 317 case _35: return "35"; 318 case _18: return "18"; 319 case _19: return "19"; 320 case _20: return "20"; 321 case _21: return "21"; 322 case _22: return "22"; 323 case _38: return "38"; 324 case _23: return "23"; 325 case _24: return "24"; 326 case _25: return "25"; 327 case _26: return "26"; 328 case _27: return "27"; 329 case _28: return "28"; 330 case _29: return "29"; 331 case _30: return "30"; 332 case _31: return "31"; 333 case _32: return "32"; 334 case _37: return "37"; 335 case _33: return "33"; 336 default: return "?"; 337 } 338 } 339 public String getSystem() { 340 return "http://terminology.hl7.org/CodeSystem/service-category"; 341 } 342 public String getDefinition() { 343 switch (this) { 344 case _1: return "Adoption"; 345 case _2: return "Aged Care"; 346 case _34: return "Allied Health"; 347 case _3: return "Alternative & Complementary Therapies"; 348 case _4: return "Child Care and/or Kindergarten"; 349 case _5: return "Child Development"; 350 case _6: return "Child Protection & Family Services"; 351 case _7: return "Community Health Care"; 352 case _8: return "Counselling"; 353 case _36: return "Crisis Line (GPAH use only)"; 354 case _9: return "Death Services"; 355 case _10: return "Dental"; 356 case _11: return "Disability Support"; 357 case _12: return "Drug/Alcohol"; 358 case _13: return "Education & Learning"; 359 case _14: return "Emergency Department"; 360 case _15: return "Employment"; 361 case _16: return "Financial & Material aid"; 362 case _17: return "General Practice/GP (doctor)"; 363 case _35: return "Hospital"; 364 case _18: return "Housing/Homelessness"; 365 case _19: return "Interpreting"; 366 case _20: return "Justice"; 367 case _21: return "Legal"; 368 case _22: return "Mental Health"; 369 case _38: return "NDIA"; 370 case _23: return "Physical Activity & Recreation"; 371 case _24: return "Regulation"; 372 case _25: return "Respite/Carer Support"; 373 case _26: return "Specialist Clinical Pathology - requires referral"; 374 case _27: return "Specialist Medical - requires referral"; 375 case _28: return "Specialist Obstetrics & Gynecology - requires referral"; 376 case _29: return "Specialist Paediatric - requires referral"; 377 case _30: return "Specialist Radiology/Imaging - requires referral"; 378 case _31: return "Specialist Surgical - requires referral"; 379 case _32: return "Support group/s"; 380 case _37: return "Test Message (HSD admin use only)"; 381 case _33: return "Transport"; 382 default: return "?"; 383 } 384 } 385 public String getDisplay() { 386 switch (this) { 387 case _1: return "Adoption"; 388 case _2: return "Aged Care"; 389 case _34: return "Allied Health"; 390 case _3: return "Alternative/Complementary Therapies"; 391 case _4: return "Child Care /Kindergarten"; 392 case _5: return "Child Development"; 393 case _6: return "Child Protection & Family Services"; 394 case _7: return "Community Health Care"; 395 case _8: return "Counselling"; 396 case _36: return "Crisis Line (GPAH use only)"; 397 case _9: return "Death Services"; 398 case _10: return "Dental"; 399 case _11: return "Disability Support"; 400 case _12: return "Drug/Alcohol"; 401 case _13: return "Education & Learning"; 402 case _14: return "Emergency Department"; 403 case _15: return "Employment"; 404 case _16: return "Financial & Material Aid"; 405 case _17: return "General Practice"; 406 case _35: return "Hospital"; 407 case _18: return "Housing/Homelessness"; 408 case _19: return "Interpreting"; 409 case _20: return "Justice"; 410 case _21: return "Legal"; 411 case _22: return "Mental Health"; 412 case _38: return "NDIA"; 413 case _23: return "Physical Activity & Recreation"; 414 case _24: return "Regulation"; 415 case _25: return "Respite/Carer Support"; 416 case _26: return "Specialist Clinical Pathology"; 417 case _27: return "Specialist Medical"; 418 case _28: return "Specialist Obstetrics & Gynecology"; 419 case _29: return "Specialist Paediatric"; 420 case _30: return "Specialist Radiology/Imaging"; 421 case _31: return "Specialist Surgical"; 422 case _32: return "Support Group/s"; 423 case _37: return "Test Message (HSD admin)"; 424 case _33: return "Transport"; 425 default: return "?"; 426 } 427 } 428 429 430} 431