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