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 Hl7WorkGroup { 058 059 /** 060 * Community Based Collaborative Care (http://www.hl7.org/Special/committees/cbcc/index.cfm). 061 */ 062 CBCC, 063 /** 064 * Clinical Decision Support (http://www.hl7.org/Special/committees/dss/index.cfm). 065 */ 066 CDS, 067 /** 068 * Clinical Quality Information (http://www.hl7.org/Special/committees/cqi/index.cfm). 069 */ 070 CQI, 071 /** 072 * Clinical Genomics (http://www.hl7.org/Special/committees/clingenomics/index.cfm). 073 */ 074 CG, 075 /** 076 * Health Care Devices (http://www.hl7.org/Special/committees/healthcaredevices/index.cfm). 077 */ 078 DEV, 079 /** 080 * Electronic Health Records (http://www.hl7.org/special/committees/ehr/index.cfm). 081 */ 082 EHR, 083 /** 084 * FHIR Infrastructure (http://www.hl7.org/Special/committees/fiwg/index.cfm). 085 */ 086 FHIR, 087 /** 088 * Financial Management (http://www.hl7.org/Special/committees/fm/index.cfm). 089 */ 090 FM, 091 /** 092 * Health Standards Integration (http://www.hl7.org/Special/committees/hsi/index.cfm). 093 */ 094 HSI, 095 /** 096 * Imaging Integration (http://www.hl7.org/Special/committees/imagemgt/index.cfm). 097 */ 098 II, 099 /** 100 * Infrastructure And Messaging (http://www.hl7.org/special/committees/inm/index.cfm). 101 */ 102 INM, 103 /** 104 * Implementable Technology Specifications (http://www.hl7.org/special/committees/xml/index.cfm). 105 */ 106 ITS, 107 /** 108 * Modeling and Methodology (http://www.hl7.org/Special/committees/mnm/index.cfm). 109 */ 110 MNM, 111 /** 112 * Orders and Observations (http://www.hl7.org/Special/committees/orders/index.cfm). 113 */ 114 OO, 115 /** 116 * Patient Administration (http://www.hl7.org/Special/committees/pafm/index.cfm). 117 */ 118 PA, 119 /** 120 * Patient Care (http://www.hl7.org/Special/committees/patientcare/index.cfm). 121 */ 122 PC, 123 /** 124 * Public Health and Emergency Response (http://www.hl7.org/Special/committees/pher/index.cfm). 125 */ 126 PHER, 127 /** 128 * Pharmacy (http://www.hl7.org/Special/committees/medication/index.cfm). 129 */ 130 PHX, 131 /** 132 * Biomedical Research and Regulation (http://www.hl7.org/Special/committees/rcrim/index.cfm). 133 */ 134 BRR, 135 /** 136 * Structured Documents (http://www.hl7.org/Special/committees/structure/index.cfm). 137 */ 138 SD, 139 /** 140 * Security (http://www.hl7.org/Special/committees/secure/index.cfm). 141 */ 142 SEC, 143 /** 144 * US Realm Taskforce (http://www.hl7.org/Special/committees/usrealm/index.cfm). 145 */ 146 US, 147 /** 148 * Vocabulary (http://www.hl7.org/Special/committees/Vocab/index.cfm). 149 */ 150 VOCAB, 151 /** 152 * Application Implementation and Design (http://www.hl7.org/Special/committees/java/index.cfm). 153 */ 154 AID, 155 /** 156 * added to help the parsers 157 */ 158 NULL; 159 public static Hl7WorkGroup fromCode(String codeString) throws FHIRException { 160 if (codeString == null || "".equals(codeString)) 161 return null; 162 if ("cbcc".equals(codeString)) 163 return CBCC; 164 if ("cds".equals(codeString)) 165 return CDS; 166 if ("cqi".equals(codeString)) 167 return CQI; 168 if ("cg".equals(codeString)) 169 return CG; 170 if ("dev".equals(codeString)) 171 return DEV; 172 if ("ehr".equals(codeString)) 173 return EHR; 174 if ("fhir".equals(codeString)) 175 return FHIR; 176 if ("fm".equals(codeString)) 177 return FM; 178 if ("hsi".equals(codeString)) 179 return HSI; 180 if ("ii".equals(codeString)) 181 return II; 182 if ("inm".equals(codeString)) 183 return INM; 184 if ("its".equals(codeString)) 185 return ITS; 186 if ("mnm".equals(codeString)) 187 return MNM; 188 if ("oo".equals(codeString)) 189 return OO; 190 if ("pa".equals(codeString)) 191 return PA; 192 if ("pc".equals(codeString)) 193 return PC; 194 if ("pher".equals(codeString)) 195 return PHER; 196 if ("phx".equals(codeString)) 197 return PHX; 198 if ("brr".equals(codeString)) 199 return BRR; 200 if ("sd".equals(codeString)) 201 return SD; 202 if ("sec".equals(codeString)) 203 return SEC; 204 if ("us".equals(codeString)) 205 return US; 206 if ("vocab".equals(codeString)) 207 return VOCAB; 208 if ("aid".equals(codeString)) 209 return AID; 210 throw new FHIRException("Unknown Hl7WorkGroup code '"+codeString+"'"); 211 } 212 public String toCode() { 213 switch (this) { 214 case CBCC: return "cbcc"; 215 case CDS: return "cds"; 216 case CQI: return "cqi"; 217 case CG: return "cg"; 218 case DEV: return "dev"; 219 case EHR: return "ehr"; 220 case FHIR: return "fhir"; 221 case FM: return "fm"; 222 case HSI: return "hsi"; 223 case II: return "ii"; 224 case INM: return "inm"; 225 case ITS: return "its"; 226 case MNM: return "mnm"; 227 case OO: return "oo"; 228 case PA: return "pa"; 229 case PC: return "pc"; 230 case PHER: return "pher"; 231 case PHX: return "phx"; 232 case BRR: return "brr"; 233 case SD: return "sd"; 234 case SEC: return "sec"; 235 case US: return "us"; 236 case VOCAB: return "vocab"; 237 case AID: return "aid"; 238 default: return "?"; 239 } 240 } 241 public String getSystem() { 242 return "http://terminology.hl7.org/CodeSystem/hl7-work-group"; 243 } 244 public String getDefinition() { 245 switch (this) { 246 case CBCC: return "Community Based Collaborative Care (http://www.hl7.org/Special/committees/cbcc/index.cfm)."; 247 case CDS: return "Clinical Decision Support (http://www.hl7.org/Special/committees/dss/index.cfm)."; 248 case CQI: return "Clinical Quality Information (http://www.hl7.org/Special/committees/cqi/index.cfm)."; 249 case CG: return "Clinical Genomics (http://www.hl7.org/Special/committees/clingenomics/index.cfm)."; 250 case DEV: return "Health Care Devices (http://www.hl7.org/Special/committees/healthcaredevices/index.cfm)."; 251 case EHR: return "Electronic Health Records (http://www.hl7.org/special/committees/ehr/index.cfm)."; 252 case FHIR: return "FHIR Infrastructure (http://www.hl7.org/Special/committees/fiwg/index.cfm)."; 253 case FM: return "Financial Management (http://www.hl7.org/Special/committees/fm/index.cfm)."; 254 case HSI: return "Health Standards Integration (http://www.hl7.org/Special/committees/hsi/index.cfm)."; 255 case II: return "Imaging Integration (http://www.hl7.org/Special/committees/imagemgt/index.cfm)."; 256 case INM: return "Infrastructure And Messaging (http://www.hl7.org/special/committees/inm/index.cfm)."; 257 case ITS: return "Implementable Technology Specifications (http://www.hl7.org/special/committees/xml/index.cfm)."; 258 case MNM: return "Modeling and Methodology (http://www.hl7.org/Special/committees/mnm/index.cfm)."; 259 case OO: return "Orders and Observations (http://www.hl7.org/Special/committees/orders/index.cfm)."; 260 case PA: return "Patient Administration (http://www.hl7.org/Special/committees/pafm/index.cfm)."; 261 case PC: return "Patient Care (http://www.hl7.org/Special/committees/patientcare/index.cfm)."; 262 case PHER: return "Public Health and Emergency Response (http://www.hl7.org/Special/committees/pher/index.cfm)."; 263 case PHX: return "Pharmacy (http://www.hl7.org/Special/committees/medication/index.cfm)."; 264 case BRR: return "Biomedical Research and Regulation (http://www.hl7.org/Special/committees/rcrim/index.cfm)."; 265 case SD: return "Structured Documents (http://www.hl7.org/Special/committees/structure/index.cfm)."; 266 case SEC: return "Security (http://www.hl7.org/Special/committees/secure/index.cfm)."; 267 case US: return "US Realm Taskforce (http://www.hl7.org/Special/committees/usrealm/index.cfm)."; 268 case VOCAB: return "Vocabulary (http://www.hl7.org/Special/committees/Vocab/index.cfm)."; 269 case AID: return "Application Implementation and Design (http://www.hl7.org/Special/committees/java/index.cfm)."; 270 default: return "?"; 271 } 272 } 273 public String getDisplay() { 274 switch (this) { 275 case CBCC: return "Community Based Collaborative Care"; 276 case CDS: return "Clinical Decision Support"; 277 case CQI: return "Clinical Quality Information"; 278 case CG: return "Clinical Genomics"; 279 case DEV: return "Health Care Devices"; 280 case EHR: return "Electronic Health Records"; 281 case FHIR: return "FHIR Infrastructure"; 282 case FM: return "Financial Management"; 283 case HSI: return "Health Standards Integration"; 284 case II: return "Imaging Integration"; 285 case INM: return "Infrastructure And Messaging"; 286 case ITS: return "Implementable Technology Specifications"; 287 case MNM: return "Modeling and Methodology"; 288 case OO: return "Orders and Observations"; 289 case PA: return "Patient Administration"; 290 case PC: return "Patient Care"; 291 case PHER: return "Public Health and Emergency Response"; 292 case PHX: return "Pharmacy"; 293 case BRR: return "Biomedical Research and Regulation"; 294 case SD: return "Structured Documents"; 295 case SEC: return "Security"; 296 case US: return "US Realm Taskforce"; 297 case VOCAB: return "Vocabulary"; 298 case AID: return "Application Implementation and Design"; 299 default: return "?"; 300 } 301 } 302 303 304} 305