001package org.hl7.fhir.r4.model.codesystems;
002
003
004
005
006/*
007  Copyright (c) 2011+, HL7, Inc.
008  All rights reserved.
009  
010  Redistribution and use in source and binary forms, with or without modification, 
011  are permitted provided that the following conditions are met:
012  
013   * Redistributions of source code must retain the above copyright notice, this 
014     list of conditions and the following disclaimer.
015   * Redistributions in binary form must reproduce the above copyright notice, 
016     this list of conditions and the following disclaimer in the documentation 
017     and/or other materials provided with the distribution.
018   * Neither the name of HL7 nor the names of its contributors may be used to 
019     endorse or promote products derived from this software without specific 
020     prior written permission.
021  
022  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
023  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
024  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
025  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
026  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
027  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
028  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
029  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
030  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
031  POSSIBILITY OF SUCH DAMAGE.
032  
033*/
034
035// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0
036
037
038import org.hl7.fhir.exceptions.FHIRException;
039
040public enum Hl7WorkGroup {
041
042        /**
043         * Community Based Collaborative Care (http://www.hl7.org/Special/committees/cbcc/index.cfm).
044         */
045        CBCC, 
046        /**
047         * Clinical Decision Support (http://www.hl7.org/Special/committees/dss/index.cfm).
048         */
049        CDS, 
050        /**
051         * Clinical Quality Information (http://www.hl7.org/Special/committees/cqi/index.cfm).
052         */
053        CQI, 
054        /**
055         * Clinical Genomics (http://www.hl7.org/Special/committees/clingenomics/index.cfm).
056         */
057        CG, 
058        /**
059         * Health Care Devices (http://www.hl7.org/Special/committees/healthcaredevices/index.cfm).
060         */
061        DEV, 
062        /**
063         * Electronic Health Records (http://www.hl7.org/special/committees/ehr/index.cfm).
064         */
065        EHR, 
066        /**
067         * FHIR Infrastructure (http://www.hl7.org/Special/committees/fiwg/index.cfm).
068         */
069        FHIR, 
070        /**
071         * Financial Management (http://www.hl7.org/Special/committees/fm/index.cfm).
072         */
073        FM, 
074        /**
075         * Health Standards Integration (http://www.hl7.org/Special/committees/hsi/index.cfm).
076         */
077        HSI, 
078        /**
079         * Imaging Integration (http://www.hl7.org/Special/committees/imagemgt/index.cfm).
080         */
081        II, 
082        /**
083         * Infrastructure And Messaging (http://www.hl7.org/special/committees/inm/index.cfm).
084         */
085        INM, 
086        /**
087         * Implementable Technology Specifications (http://www.hl7.org/special/committees/xml/index.cfm).
088         */
089        ITS, 
090        /**
091         * Modeling and Methodology (http://www.hl7.org/Special/committees/mnm/index.cfm).
092         */
093        MNM, 
094        /**
095         * Orders and Observations (http://www.hl7.org/Special/committees/orders/index.cfm).
096         */
097        OO, 
098        /**
099         * Patient Administration (http://www.hl7.org/Special/committees/pafm/index.cfm).
100         */
101        PA, 
102        /**
103         * Patient Care (http://www.hl7.org/Special/committees/patientcare/index.cfm).
104         */
105        PC, 
106        /**
107         * Public Health and Emergency Response (http://www.hl7.org/Special/committees/pher/index.cfm).
108         */
109        PHER, 
110        /**
111         * Pharmacy (http://www.hl7.org/Special/committees/medication/index.cfm).
112         */
113        PHX, 
114        /**
115         * Biomedical Research and Regulation (http://www.hl7.org/Special/committees/rcrim/index.cfm).
116         */
117        BRR, 
118        /**
119         * Structured Documents (http://www.hl7.org/Special/committees/structure/index.cfm).
120         */
121        SD, 
122        /**
123         * Security (http://www.hl7.org/Special/committees/secure/index.cfm).
124         */
125        SEC, 
126        /**
127         * US Realm Taskforce (http://www.hl7.org/Special/committees/usrealm/index.cfm).
128         */
129        US, 
130        /**
131         * Vocabulary (http://www.hl7.org/Special/committees/Vocab/index.cfm).
132         */
133        VOCAB, 
134        /**
135         * Application Implementation and Design (http://www.hl7.org/Special/committees/java/index.cfm).
136         */
137        AID, 
138        /**
139         * added to help the parsers
140         */
141        NULL;
142        public static Hl7WorkGroup fromCode(String codeString) throws FHIRException {
143            if (codeString == null || "".equals(codeString))
144                return null;
145        if ("cbcc".equals(codeString))
146          return CBCC;
147        if ("cds".equals(codeString))
148          return CDS;
149        if ("cqi".equals(codeString))
150          return CQI;
151        if ("cg".equals(codeString))
152          return CG;
153        if ("dev".equals(codeString))
154          return DEV;
155        if ("ehr".equals(codeString))
156          return EHR;
157        if ("fhir".equals(codeString))
158          return FHIR;
159        if ("fm".equals(codeString))
160          return FM;
161        if ("hsi".equals(codeString))
162          return HSI;
163        if ("ii".equals(codeString))
164          return II;
165        if ("inm".equals(codeString))
166          return INM;
167        if ("its".equals(codeString))
168          return ITS;
169        if ("mnm".equals(codeString))
170          return MNM;
171        if ("oo".equals(codeString))
172          return OO;
173        if ("pa".equals(codeString))
174          return PA;
175        if ("pc".equals(codeString))
176          return PC;
177        if ("pher".equals(codeString))
178          return PHER;
179        if ("phx".equals(codeString))
180          return PHX;
181        if ("brr".equals(codeString))
182          return BRR;
183        if ("sd".equals(codeString))
184          return SD;
185        if ("sec".equals(codeString))
186          return SEC;
187        if ("us".equals(codeString))
188          return US;
189        if ("vocab".equals(codeString))
190          return VOCAB;
191        if ("aid".equals(codeString))
192          return AID;
193        throw new FHIRException("Unknown Hl7WorkGroup code '"+codeString+"'");
194        }
195        public String toCode() {
196          switch (this) {
197            case CBCC: return "cbcc";
198            case CDS: return "cds";
199            case CQI: return "cqi";
200            case CG: return "cg";
201            case DEV: return "dev";
202            case EHR: return "ehr";
203            case FHIR: return "fhir";
204            case FM: return "fm";
205            case HSI: return "hsi";
206            case II: return "ii";
207            case INM: return "inm";
208            case ITS: return "its";
209            case MNM: return "mnm";
210            case OO: return "oo";
211            case PA: return "pa";
212            case PC: return "pc";
213            case PHER: return "pher";
214            case PHX: return "phx";
215            case BRR: return "brr";
216            case SD: return "sd";
217            case SEC: return "sec";
218            case US: return "us";
219            case VOCAB: return "vocab";
220            case AID: return "aid";
221            default: return "?";
222          }
223        }
224        public String getSystem() {
225          return "http://terminology.hl7.org/CodeSystem/hl7-work-group";
226        }
227        public String getDefinition() {
228          switch (this) {
229            case CBCC: return "Community Based Collaborative Care (http://www.hl7.org/Special/committees/cbcc/index.cfm).";
230            case CDS: return "Clinical Decision Support (http://www.hl7.org/Special/committees/dss/index.cfm).";
231            case CQI: return "Clinical Quality Information (http://www.hl7.org/Special/committees/cqi/index.cfm).";
232            case CG: return "Clinical Genomics (http://www.hl7.org/Special/committees/clingenomics/index.cfm).";
233            case DEV: return "Health Care Devices (http://www.hl7.org/Special/committees/healthcaredevices/index.cfm).";
234            case EHR: return "Electronic Health Records (http://www.hl7.org/special/committees/ehr/index.cfm).";
235            case FHIR: return "FHIR Infrastructure (http://www.hl7.org/Special/committees/fiwg/index.cfm).";
236            case FM: return "Financial Management (http://www.hl7.org/Special/committees/fm/index.cfm).";
237            case HSI: return "Health Standards Integration (http://www.hl7.org/Special/committees/hsi/index.cfm).";
238            case II: return "Imaging Integration (http://www.hl7.org/Special/committees/imagemgt/index.cfm).";
239            case INM: return "Infrastructure And Messaging (http://www.hl7.org/special/committees/inm/index.cfm).";
240            case ITS: return "Implementable Technology Specifications (http://www.hl7.org/special/committees/xml/index.cfm).";
241            case MNM: return "Modeling and Methodology (http://www.hl7.org/Special/committees/mnm/index.cfm).";
242            case OO: return "Orders and Observations (http://www.hl7.org/Special/committees/orders/index.cfm).";
243            case PA: return "Patient Administration (http://www.hl7.org/Special/committees/pafm/index.cfm).";
244            case PC: return "Patient Care (http://www.hl7.org/Special/committees/patientcare/index.cfm).";
245            case PHER: return "Public Health and Emergency Response (http://www.hl7.org/Special/committees/pher/index.cfm).";
246            case PHX: return "Pharmacy (http://www.hl7.org/Special/committees/medication/index.cfm).";
247            case BRR: return "Biomedical Research and Regulation (http://www.hl7.org/Special/committees/rcrim/index.cfm).";
248            case SD: return "Structured Documents (http://www.hl7.org/Special/committees/structure/index.cfm).";
249            case SEC: return "Security (http://www.hl7.org/Special/committees/secure/index.cfm).";
250            case US: return "US Realm Taskforce (http://www.hl7.org/Special/committees/usrealm/index.cfm).";
251            case VOCAB: return "Vocabulary (http://www.hl7.org/Special/committees/Vocab/index.cfm).";
252            case AID: return "Application Implementation and Design (http://www.hl7.org/Special/committees/java/index.cfm).";
253            default: return "?";
254          }
255        }
256        public String getDisplay() {
257          switch (this) {
258            case CBCC: return "Community Based Collaborative Care";
259            case CDS: return "Clinical Decision Support";
260            case CQI: return "Clinical Quality Information";
261            case CG: return "Clinical Genomics";
262            case DEV: return "Health Care Devices";
263            case EHR: return "Electronic Health Records";
264            case FHIR: return "FHIR Infrastructure";
265            case FM: return "Financial Management";
266            case HSI: return "Health Standards Integration";
267            case II: return "Imaging Integration";
268            case INM: return "Infrastructure And Messaging";
269            case ITS: return "Implementable Technology Specifications";
270            case MNM: return "Modeling and Methodology";
271            case OO: return "Orders and Observations";
272            case PA: return "Patient Administration";
273            case PC: return "Patient Care";
274            case PHER: return "Public Health and Emergency Response";
275            case PHX: return "Pharmacy";
276            case BRR: return "Biomedical Research and Regulation";
277            case SD: return "Structured Documents";
278            case SEC: return "Security";
279            case US: return "US Realm Taskforce";
280            case VOCAB: return "Vocabulary";
281            case AID: return "Application Implementation and Design";
282            default: return "?";
283          }
284    }
285
286
287}