001package org.hl7.fhir.dstu3.model.codesystems;
002
003/*-
004 * #%L
005 * org.hl7.fhir.dstu3
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 Sat, Mar 25, 2017 21:03-0400 for FHIR v3.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         * Orders and Observations (http://www.hl7.org/Special/committees/orders/index.cfm)
110         */
111        OO, 
112        /**
113         * Patient Administration (http://www.hl7.org/Special/committees/pafm/index.cfm)
114         */
115        PA, 
116        /**
117         * Patient Care (http://www.hl7.org/Special/committees/patientcare/index.cfm)
118         */
119        PC, 
120        /**
121         * Public Health and Emergency Response (http://www.hl7.org/Special/committees/pher/index.cfm)
122         */
123        PHER, 
124        /**
125         * Pharmacy (http://www.hl7.org/Special/committees/medication/index.cfm)
126         */
127        PHX, 
128        /**
129         * Regulated Clinical Research Information Management (http://www.hl7.org/Special/committees/rcrim/index.cfm)
130         */
131        RCRIM, 
132        /**
133         * Structured Documents (http://www.hl7.org/Special/committees/structure/index.cfm)
134         */
135        SD, 
136        /**
137         * Security (http://www.hl7.org/Special/committees/secure/index.cfm)
138         */
139        SEC, 
140        /**
141         * US Realm Taskforce (http://wiki.hl7.org/index.php?title=US_Realm_Task_Force)
142         */
143        US, 
144        /**
145         * Vocabulary (http://www.hl7.org/Special/committees/Vocab/index.cfm)
146         */
147        VOCAB, 
148        /**
149         * Application Implementation and Design (http://www.hl7.org/Special/committees/java/index.cfm)
150         */
151        AID, 
152        /**
153         * added to help the parsers
154         */
155        NULL;
156        public static Hl7WorkGroup fromCode(String codeString) throws FHIRException {
157            if (codeString == null || "".equals(codeString))
158                return null;
159        if ("cbcc".equals(codeString))
160          return CBCC;
161        if ("cds".equals(codeString))
162          return CDS;
163        if ("cqi".equals(codeString))
164          return CQI;
165        if ("cg".equals(codeString))
166          return CG;
167        if ("dev".equals(codeString))
168          return DEV;
169        if ("ehr".equals(codeString))
170          return EHR;
171        if ("fhir".equals(codeString))
172          return FHIR;
173        if ("fm".equals(codeString))
174          return FM;
175        if ("hsi".equals(codeString))
176          return HSI;
177        if ("ii".equals(codeString))
178          return II;
179        if ("inm".equals(codeString))
180          return INM;
181        if ("its".equals(codeString))
182          return ITS;
183        if ("oo".equals(codeString))
184          return OO;
185        if ("pa".equals(codeString))
186          return PA;
187        if ("pc".equals(codeString))
188          return PC;
189        if ("pher".equals(codeString))
190          return PHER;
191        if ("phx".equals(codeString))
192          return PHX;
193        if ("rcrim".equals(codeString))
194          return RCRIM;
195        if ("sd".equals(codeString))
196          return SD;
197        if ("sec".equals(codeString))
198          return SEC;
199        if ("us".equals(codeString))
200          return US;
201        if ("vocab".equals(codeString))
202          return VOCAB;
203        if ("aid".equals(codeString))
204          return AID;
205        throw new FHIRException("Unknown Hl7WorkGroup code '"+codeString+"'");
206        }
207        public String toCode() {
208          switch (this) {
209            case CBCC: return "cbcc";
210            case CDS: return "cds";
211            case CQI: return "cqi";
212            case CG: return "cg";
213            case DEV: return "dev";
214            case EHR: return "ehr";
215            case FHIR: return "fhir";
216            case FM: return "fm";
217            case HSI: return "hsi";
218            case II: return "ii";
219            case INM: return "inm";
220            case ITS: return "its";
221            case OO: return "oo";
222            case PA: return "pa";
223            case PC: return "pc";
224            case PHER: return "pher";
225            case PHX: return "phx";
226            case RCRIM: return "rcrim";
227            case SD: return "sd";
228            case SEC: return "sec";
229            case US: return "us";
230            case VOCAB: return "vocab";
231            case AID: return "aid";
232            default: return "?";
233          }
234        }
235        public String getSystem() {
236          return "http://hl7.org/fhir/hl7-work-group";
237        }
238        public String getDefinition() {
239          switch (this) {
240            case CBCC: return "Community Based Collaborative Care (http://www.hl7.org/Special/committees/cbcc/index.cfm)";
241            case CDS: return "Clinical Decision Support (http://www.hl7.org/Special/committees/dss/index.cfm)";
242            case CQI: return "Clinical Quality Information (http://www.hl7.org/Special/committees/cqi/index.cfm)";
243            case CG: return "Clinical Genomics (http://www.hl7.org/Special/committees/clingenomics/index.cfm)";
244            case DEV: return "Health Care Devices (http://www.hl7.org/Special/committees/healthcaredevices/index.cfm)";
245            case EHR: return "Electronic Health Records (http://www.hl7.org/special/committees/ehr/index.cfm)";
246            case FHIR: return "FHIR Infrastructure (http://www.hl7.org/Special/committees/fiwg/index.cfm)";
247            case FM: return "Financial Management (http://www.hl7.org/Special/committees/fm/index.cfm)";
248            case HSI: return "Health Standards Integration (http://www.hl7.org/Special/committees/hsi/index.cfm)";
249            case II: return "Imaging Integration (http://www.hl7.org/Special/committees/imagemgt/index.cfm)";
250            case INM: return "Infrastructure And Messaging (http://www.hl7.org/special/committees/inm/index.cfm)";
251            case ITS: return "Implementable Technology Specifications (http://www.hl7.org/special/committees/xml/index.cfm)";
252            case OO: return "Orders and Observations (http://www.hl7.org/Special/committees/orders/index.cfm)";
253            case PA: return "Patient Administration (http://www.hl7.org/Special/committees/pafm/index.cfm)";
254            case PC: return "Patient Care (http://www.hl7.org/Special/committees/patientcare/index.cfm)";
255            case PHER: return "Public Health and Emergency Response (http://www.hl7.org/Special/committees/pher/index.cfm)";
256            case PHX: return "Pharmacy (http://www.hl7.org/Special/committees/medication/index.cfm)";
257            case RCRIM: return "Regulated Clinical Research Information Management (http://www.hl7.org/Special/committees/rcrim/index.cfm)";
258            case SD: return "Structured Documents (http://www.hl7.org/Special/committees/structure/index.cfm)";
259            case SEC: return "Security (http://www.hl7.org/Special/committees/secure/index.cfm)";
260            case US: return "US Realm Taskforce (http://wiki.hl7.org/index.php?title=US_Realm_Task_Force)";
261            case VOCAB: return "Vocabulary (http://www.hl7.org/Special/committees/Vocab/index.cfm)";
262            case AID: return "Application Implementation and Design (http://www.hl7.org/Special/committees/java/index.cfm)";
263            default: return "?";
264          }
265        }
266        public String getDisplay() {
267          switch (this) {
268            case CBCC: return "Community Based Collaborative Care";
269            case CDS: return "Clinical Decision Support";
270            case CQI: return "Clinical Quality Information";
271            case CG: return "Clinical Genomics";
272            case DEV: return "Health Care Devices";
273            case EHR: return "Electronic Health Records";
274            case FHIR: return "FHIR Infrastructure";
275            case FM: return "Financial Management";
276            case HSI: return "Health Standards Integration";
277            case II: return "Imaging Integration";
278            case INM: return "Infrastructure And Messaging";
279            case ITS: return "Implementable Technology Specifications";
280            case OO: return "Orders and Observations";
281            case PA: return "Patient Administration";
282            case PC: return "Patient Care";
283            case PHER: return "Public Health and Emergency Response";
284            case PHX: return "Pharmacy";
285            case RCRIM: return "Regulated Clinical Research Information Management";
286            case SD: return "Structured Documents";
287            case SEC: return "Security";
288            case US: return "US Realm Taskforce";
289            case VOCAB: return "Vocabulary";
290            case AID: return "Application Implementation and Design";
291            default: return "?";
292          }
293    }
294
295
296}
297