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