001package org.hl7.fhir.r5.model.codesystems;
002
003/*
004 * #%L
005 * org.hl7.fhir.r5
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  Copyright (c) 2011+, HL7, Inc.
025  All rights reserved.
026  
027  Redistribution and use in source and binary forms, with or without modification, 
028  are permitted provided that the following conditions are met:
029  
030   * Redistributions of source code must retain the above copyright notice, this 
031     list of conditions and the following disclaimer.
032   * Redistributions in binary form must reproduce the above copyright notice, 
033     this list of conditions and the following disclaimer in the documentation 
034     and/or other materials provided with the distribution.
035   * Neither the name of HL7 nor the names of its contributors may be used to 
036     endorse or promote products derived from this software without specific 
037     prior written permission.
038  
039  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
040  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
041  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
042  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
043  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
044  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
045  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
046  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
047  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
048  POSSIBILITY OF SUCH DAMAGE.
049  
050*/
051
052// Generated on Thu, Oct 17, 2019 09:42+1100 for FHIR v4.1.0
053
054
055import org.hl7.fhir.exceptions.FHIRException;
056
057public enum ExBenefitcategory {
058
059        /**
060         * Medical Care.
061         */
062        _1, 
063        /**
064         * Surgical.
065         */
066        _2, 
067        /**
068         * Consultation.
069         */
070        _3, 
071        /**
072         * Diagnostic XRay.
073         */
074        _4, 
075        /**
076         * Diagnostic Lab.
077         */
078        _5, 
079        /**
080         * Renal Supplies excluding Dialysis.
081         */
082        _14, 
083        /**
084         * Diagnostic Dental.
085         */
086        _23, 
087        /**
088         * Periodontics.
089         */
090        _24, 
091        /**
092         * Restorative.
093         */
094        _25, 
095        /**
096         * Endodontics.
097         */
098        _26, 
099        /**
100         * Maxillofacial Prosthetics.
101         */
102        _27, 
103        /**
104         * Adjunctive Dental Services.
105         */
106        _28, 
107        /**
108         * Health Benefit Plan Coverage.
109         */
110        _30, 
111        /**
112         * Dental Care.
113         */
114        _35, 
115        /**
116         * Dental Crowns.
117         */
118        _36, 
119        /**
120         * Dental Accident.
121         */
122        _37, 
123        /**
124         * Hospital Room and Board.
125         */
126        _49, 
127        /**
128         * Major Medical.
129         */
130        _55, 
131        /**
132         * Medically Related Transportation.
133         */
134        _56, 
135        /**
136         * In-vitro Fertilization.
137         */
138        _61, 
139        /**
140         * MRI Scan.
141         */
142        _62, 
143        /**
144         * Donor Procedures such as organ harvest.
145         */
146        _63, 
147        /**
148         * Maternity.
149         */
150        _69, 
151        /**
152         * Renal dialysis.
153         */
154        _76, 
155        /**
156         * Medical Coverage.
157         */
158        F1, 
159        /**
160         * Dental Coverage.
161         */
162        F3, 
163        /**
164         * Hearing Coverage.
165         */
166        F4, 
167        /**
168         * Vision Coverage.
169         */
170        F6, 
171        /**
172         * added to help the parsers
173         */
174        NULL;
175        public static ExBenefitcategory fromCode(String codeString) throws FHIRException {
176            if (codeString == null || "".equals(codeString))
177                return null;
178        if ("1".equals(codeString))
179          return _1;
180        if ("2".equals(codeString))
181          return _2;
182        if ("3".equals(codeString))
183          return _3;
184        if ("4".equals(codeString))
185          return _4;
186        if ("5".equals(codeString))
187          return _5;
188        if ("14".equals(codeString))
189          return _14;
190        if ("23".equals(codeString))
191          return _23;
192        if ("24".equals(codeString))
193          return _24;
194        if ("25".equals(codeString))
195          return _25;
196        if ("26".equals(codeString))
197          return _26;
198        if ("27".equals(codeString))
199          return _27;
200        if ("28".equals(codeString))
201          return _28;
202        if ("30".equals(codeString))
203          return _30;
204        if ("35".equals(codeString))
205          return _35;
206        if ("36".equals(codeString))
207          return _36;
208        if ("37".equals(codeString))
209          return _37;
210        if ("49".equals(codeString))
211          return _49;
212        if ("55".equals(codeString))
213          return _55;
214        if ("56".equals(codeString))
215          return _56;
216        if ("61".equals(codeString))
217          return _61;
218        if ("62".equals(codeString))
219          return _62;
220        if ("63".equals(codeString))
221          return _63;
222        if ("69".equals(codeString))
223          return _69;
224        if ("76".equals(codeString))
225          return _76;
226        if ("F1".equals(codeString))
227          return F1;
228        if ("F3".equals(codeString))
229          return F3;
230        if ("F4".equals(codeString))
231          return F4;
232        if ("F6".equals(codeString))
233          return F6;
234        throw new FHIRException("Unknown ExBenefitcategory code '"+codeString+"'");
235        }
236        public String toCode() {
237          switch (this) {
238            case _1: return "1";
239            case _2: return "2";
240            case _3: return "3";
241            case _4: return "4";
242            case _5: return "5";
243            case _14: return "14";
244            case _23: return "23";
245            case _24: return "24";
246            case _25: return "25";
247            case _26: return "26";
248            case _27: return "27";
249            case _28: return "28";
250            case _30: return "30";
251            case _35: return "35";
252            case _36: return "36";
253            case _37: return "37";
254            case _49: return "49";
255            case _55: return "55";
256            case _56: return "56";
257            case _61: return "61";
258            case _62: return "62";
259            case _63: return "63";
260            case _69: return "69";
261            case _76: return "76";
262            case F1: return "F1";
263            case F3: return "F3";
264            case F4: return "F4";
265            case F6: return "F6";
266            default: return "?";
267          }
268        }
269        public String getSystem() {
270          return "http://terminology.hl7.org/CodeSystem/ex-benefitcategory";
271        }
272        public String getDefinition() {
273          switch (this) {
274            case _1: return "Medical Care.";
275            case _2: return "Surgical.";
276            case _3: return "Consultation.";
277            case _4: return "Diagnostic XRay.";
278            case _5: return "Diagnostic Lab.";
279            case _14: return "Renal Supplies excluding Dialysis.";
280            case _23: return "Diagnostic Dental.";
281            case _24: return "Periodontics.";
282            case _25: return "Restorative.";
283            case _26: return "Endodontics.";
284            case _27: return "Maxillofacial Prosthetics.";
285            case _28: return "Adjunctive Dental Services.";
286            case _30: return "Health Benefit Plan Coverage.";
287            case _35: return "Dental Care.";
288            case _36: return "Dental Crowns.";
289            case _37: return "Dental Accident.";
290            case _49: return "Hospital Room and Board.";
291            case _55: return "Major Medical.";
292            case _56: return "Medically Related Transportation.";
293            case _61: return "In-vitro Fertilization.";
294            case _62: return "MRI Scan.";
295            case _63: return "Donor Procedures such as organ harvest.";
296            case _69: return "Maternity.";
297            case _76: return "Renal dialysis.";
298            case F1: return "Medical Coverage.";
299            case F3: return "Dental Coverage.";
300            case F4: return "Hearing Coverage.";
301            case F6: return "Vision Coverage.";
302            default: return "?";
303          }
304        }
305        public String getDisplay() {
306          switch (this) {
307            case _1: return "Medical Care";
308            case _2: return "Surgical";
309            case _3: return "Consultation";
310            case _4: return "Diagnostic XRay";
311            case _5: return "Diagnostic Lab";
312            case _14: return "Renal Supplies";
313            case _23: return "Diagnostic Dental";
314            case _24: return "Periodontics";
315            case _25: return "Restorative";
316            case _26: return "Endodontics";
317            case _27: return "Maxillofacial Prosthetics";
318            case _28: return "Adjunctive Dental Services";
319            case _30: return "Health Benefit Plan Coverage";
320            case _35: return "Dental Care";
321            case _36: return "Dental Crowns";
322            case _37: return "Dental Accident";
323            case _49: return "Hospital Room and Board";
324            case _55: return "Major Medical";
325            case _56: return "Medically Related Transportation";
326            case _61: return "In-vitro Fertilization";
327            case _62: return "MRI Scan";
328            case _63: return "Donor Procedures";
329            case _69: return "Maternity";
330            case _76: return "Renal Dialysis";
331            case F1: return "Medical Coverage";
332            case F3: return "Dental Coverage";
333            case F4: return "Hearing Coverage";
334            case F6: return "Vision Coverage";
335            default: return "?";
336          }
337    }
338
339
340}
341