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