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