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 BenefitSubcategory {
038
039        /**
040         * Medical Care.
041         */
042        _1, 
043        /**
044         * Surgical.
045         */
046        _2, 
047        /**
048         * Consultation.
049         */
050        _3, 
051        /**
052         * Diagnostic XRay.
053         */
054        _4, 
055        /**
056         * Diagnostic Lab.
057         */
058        _5, 
059        /**
060         * Renal Supplies excluding Dialysis.
061         */
062        _14, 
063        /**
064         * Diagnostic Dental.
065         */
066        _23, 
067        /**
068         * Periodontics.
069         */
070        _24, 
071        /**
072         * Restorative.
073         */
074        _25, 
075        /**
076         * Endodontics.
077         */
078        _26, 
079        /**
080         * Maxillofacial Prosthetics.
081         */
082        _27, 
083        /**
084         * Adjunctive Dental Services.
085         */
086        _28, 
087        /**
088         * Health Benefit Plan Coverage.
089         */
090        _30, 
091        /**
092         * Dental Care.
093         */
094        _35, 
095        /**
096         * Dental Crowns.
097         */
098        _36, 
099        /**
100         * Dental Accident.
101         */
102        _37, 
103        /**
104         * Hospital Room and Board.
105         */
106        _49, 
107        /**
108         * Major Medical.
109         */
110        _55, 
111        /**
112         * Medically Related Transportation.
113         */
114        _56, 
115        /**
116         * In-vitro Fertilization.
117         */
118        _61, 
119        /**
120         * MRI Scan.
121         */
122        _62, 
123        /**
124         * Donor Procedures such as organ harvest.
125         */
126        _63, 
127        /**
128         * Maternity.
129         */
130        _69, 
131        /**
132         * Renal dialysis.
133         */
134        _76, 
135        /**
136         * Medical Coverage.
137         */
138        F1, 
139        /**
140         * Dental Coverage.
141         */
142        F3, 
143        /**
144         * Hearing Coverage.
145         */
146        F4, 
147        /**
148         * Vision Coverage.
149         */
150        F6, 
151        /**
152         * added to help the parsers
153         */
154        NULL;
155        public static BenefitSubcategory fromCode(String codeString) throws FHIRException {
156            if (codeString == null || "".equals(codeString))
157                return null;
158        if ("1".equals(codeString))
159          return _1;
160        if ("2".equals(codeString))
161          return _2;
162        if ("3".equals(codeString))
163          return _3;
164        if ("4".equals(codeString))
165          return _4;
166        if ("5".equals(codeString))
167          return _5;
168        if ("14".equals(codeString))
169          return _14;
170        if ("23".equals(codeString))
171          return _23;
172        if ("24".equals(codeString))
173          return _24;
174        if ("25".equals(codeString))
175          return _25;
176        if ("26".equals(codeString))
177          return _26;
178        if ("27".equals(codeString))
179          return _27;
180        if ("28".equals(codeString))
181          return _28;
182        if ("30".equals(codeString))
183          return _30;
184        if ("35".equals(codeString))
185          return _35;
186        if ("36".equals(codeString))
187          return _36;
188        if ("37".equals(codeString))
189          return _37;
190        if ("49".equals(codeString))
191          return _49;
192        if ("55".equals(codeString))
193          return _55;
194        if ("56".equals(codeString))
195          return _56;
196        if ("61".equals(codeString))
197          return _61;
198        if ("62".equals(codeString))
199          return _62;
200        if ("63".equals(codeString))
201          return _63;
202        if ("69".equals(codeString))
203          return _69;
204        if ("76".equals(codeString))
205          return _76;
206        if ("F1".equals(codeString))
207          return F1;
208        if ("F3".equals(codeString))
209          return F3;
210        if ("F4".equals(codeString))
211          return F4;
212        if ("F6".equals(codeString))
213          return F6;
214        throw new FHIRException("Unknown BenefitSubcategory code '"+codeString+"'");
215        }
216        public String toCode() {
217          switch (this) {
218            case _1: return "1";
219            case _2: return "2";
220            case _3: return "3";
221            case _4: return "4";
222            case _5: return "5";
223            case _14: return "14";
224            case _23: return "23";
225            case _24: return "24";
226            case _25: return "25";
227            case _26: return "26";
228            case _27: return "27";
229            case _28: return "28";
230            case _30: return "30";
231            case _35: return "35";
232            case _36: return "36";
233            case _37: return "37";
234            case _49: return "49";
235            case _55: return "55";
236            case _56: return "56";
237            case _61: return "61";
238            case _62: return "62";
239            case _63: return "63";
240            case _69: return "69";
241            case _76: return "76";
242            case F1: return "F1";
243            case F3: return "F3";
244            case F4: return "F4";
245            case F6: return "F6";
246            default: return "?";
247          }
248        }
249        public String getSystem() {
250          return "http://hl7.org/fhir/benefit-subcategory";
251        }
252        public String getDefinition() {
253          switch (this) {
254            case _1: return "Medical Care.";
255            case _2: return "Surgical.";
256            case _3: return "Consultation.";
257            case _4: return "Diagnostic XRay.";
258            case _5: return "Diagnostic Lab.";
259            case _14: return "Renal Supplies excluding Dialysis.";
260            case _23: return "Diagnostic Dental.";
261            case _24: return "Periodontics.";
262            case _25: return "Restorative.";
263            case _26: return "Endodontics.";
264            case _27: return "Maxillofacial Prosthetics.";
265            case _28: return "Adjunctive Dental Services.";
266            case _30: return "Health Benefit Plan Coverage.";
267            case _35: return "Dental Care.";
268            case _36: return "Dental Crowns.";
269            case _37: return "Dental Accident.";
270            case _49: return "Hospital Room and Board.";
271            case _55: return "Major Medical.";
272            case _56: return "Medically Related Transportation.";
273            case _61: return "In-vitro Fertilization.";
274            case _62: return "MRI Scan.";
275            case _63: return "Donor Procedures such as organ harvest.";
276            case _69: return "Maternity.";
277            case _76: return "Renal dialysis.";
278            case F1: return "Medical Coverage.";
279            case F3: return "Dental Coverage.";
280            case F4: return "Hearing Coverage.";
281            case F6: return "Vision Coverage.";
282            default: return "?";
283          }
284        }
285        public String getDisplay() {
286          switch (this) {
287            case _1: return "Medical Care";
288            case _2: return "Surgical";
289            case _3: return "Consultation";
290            case _4: return "Diagnostic XRay";
291            case _5: return "Diagnostic Lab";
292            case _14: return "Renal Supplies";
293            case _23: return "Diagnostic Dental";
294            case _24: return "Periodontics";
295            case _25: return "Restorative";
296            case _26: return "Endodontics";
297            case _27: return "Maxillofacial Prosthetics";
298            case _28: return "Adjunctive Dental Services";
299            case _30: return "Health Benefit Plan Coverage";
300            case _35: return "Dental Care";
301            case _36: return "Dental Crowns";
302            case _37: return "Dental Accident";
303            case _49: return "Hospital Room and Board";
304            case _55: return "Major Medical";
305            case _56: return "Medically Related Transportation";
306            case _61: return "In-vitro Fertilization";
307            case _62: return "MRI Scan";
308            case _63: return "Donor Procedures";
309            case _69: return "Maternity";
310            case _76: return "Renal Dialysis";
311            case F1: return "Medical Coverage";
312            case F3: return "Dental Coverage";
313            case F4: return "Hearing Coverage";
314            case F6: return "Vision Coverage";
315            default: return "?";
316          }
317    }
318
319
320}
321