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 ServiceUscls {
058
059        /**
060         * Exam, comp, primary
061         */
062        _1101, 
063        /**
064         * Exam, comp, mixed
065         */
066        _1102, 
067        /**
068         * Exam, comp, permanent
069         */
070        _1103, 
071        /**
072         * Exam, recall
073         */
074        _1201, 
075        /**
076         * Exam, emergency
077         */
078        _1205, 
079        /**
080         * Radiograph, series (12)
081         */
082        _2101, 
083        /**
084         * Radiograph, series (16)
085         */
086        _2102, 
087        /**
088         * Radiograph, bitewing
089         */
090        _2141, 
091        /**
092         * Radiograph, panoramic
093         */
094        _2601, 
095        /**
096         * Polishing, 1 unit
097         */
098        _11101, 
099        /**
100         * Polishing, 2 unit
101         */
102        _11102, 
103        /**
104         * Polishing, 3 unit
105         */
106        _11103, 
107        /**
108         * Polishing, 4 unit
109         */
110        _11104, 
111        /**
112         * Amalgam, 1 surface
113         */
114        _21211, 
115        /**
116         * Amalgam, 2 surface
117         */
118        _21212, 
119        /**
120         * Crown, PFM
121         */
122        _27211, 
123        /**
124         * Maryland Bridge
125         */
126        _67211, 
127        /**
128         * Lab, commercial
129         */
130        _99111, 
131        /**
132         * Lab, in office
133         */
134        _99333, 
135        /**
136         * Expense
137         */
138        _99555, 
139        /**
140         * added to help the parsers
141         */
142        NULL;
143        public static ServiceUscls fromCode(String codeString) throws FHIRException {
144            if (codeString == null || "".equals(codeString))
145                return null;
146        if ("1101".equals(codeString))
147          return _1101;
148        if ("1102".equals(codeString))
149          return _1102;
150        if ("1103".equals(codeString))
151          return _1103;
152        if ("1201".equals(codeString))
153          return _1201;
154        if ("1205".equals(codeString))
155          return _1205;
156        if ("2101".equals(codeString))
157          return _2101;
158        if ("2102".equals(codeString))
159          return _2102;
160        if ("2141".equals(codeString))
161          return _2141;
162        if ("2601".equals(codeString))
163          return _2601;
164        if ("11101".equals(codeString))
165          return _11101;
166        if ("11102".equals(codeString))
167          return _11102;
168        if ("11103".equals(codeString))
169          return _11103;
170        if ("11104".equals(codeString))
171          return _11104;
172        if ("21211".equals(codeString))
173          return _21211;
174        if ("21212".equals(codeString))
175          return _21212;
176        if ("27211".equals(codeString))
177          return _27211;
178        if ("67211".equals(codeString))
179          return _67211;
180        if ("99111".equals(codeString))
181          return _99111;
182        if ("99333".equals(codeString))
183          return _99333;
184        if ("99555".equals(codeString))
185          return _99555;
186        throw new FHIRException("Unknown ServiceUscls code '"+codeString+"'");
187        }
188        public String toCode() {
189          switch (this) {
190            case _1101: return "1101";
191            case _1102: return "1102";
192            case _1103: return "1103";
193            case _1201: return "1201";
194            case _1205: return "1205";
195            case _2101: return "2101";
196            case _2102: return "2102";
197            case _2141: return "2141";
198            case _2601: return "2601";
199            case _11101: return "11101";
200            case _11102: return "11102";
201            case _11103: return "11103";
202            case _11104: return "11104";
203            case _21211: return "21211";
204            case _21212: return "21212";
205            case _27211: return "27211";
206            case _67211: return "67211";
207            case _99111: return "99111";
208            case _99333: return "99333";
209            case _99555: return "99555";
210            default: return "?";
211          }
212        }
213        public String getSystem() {
214          return "http://terminology.hl7.org/CodeSystem/ex-USCLS";
215        }
216        public String getDefinition() {
217          switch (this) {
218            case _1101: return "Exam, comp, primary";
219            case _1102: return "Exam, comp, mixed";
220            case _1103: return "Exam, comp, permanent";
221            case _1201: return "Exam, recall";
222            case _1205: return "Exam, emergency";
223            case _2101: return "Radiograph, series (12)";
224            case _2102: return "Radiograph, series (16)";
225            case _2141: return "Radiograph, bitewing";
226            case _2601: return "Radiograph, panoramic";
227            case _11101: return "Polishing, 1 unit";
228            case _11102: return "Polishing, 2 unit";
229            case _11103: return "Polishing, 3 unit";
230            case _11104: return "Polishing, 4 unit";
231            case _21211: return "Amalgam, 1 surface";
232            case _21212: return "Amalgam, 2 surface";
233            case _27211: return "Crown, PFM";
234            case _67211: return "Maryland Bridge";
235            case _99111: return "Lab, commercial";
236            case _99333: return "Lab, in office";
237            case _99555: return "Expense";
238            default: return "?";
239          }
240        }
241        public String getDisplay() {
242          switch (this) {
243            case _1101: return "Exam, comp, primary";
244            case _1102: return "Exam, comp, mixed";
245            case _1103: return "Exam, comp, permanent";
246            case _1201: return "Exam, recall";
247            case _1205: return "Exam, emergency";
248            case _2101: return "Radiograph, series (12)";
249            case _2102: return "Radiograph, series (16)";
250            case _2141: return "Radiograph, bitewing";
251            case _2601: return "Radiograph, panoramic";
252            case _11101: return "Polishing, 1 unit";
253            case _11102: return "Polishing, 2 unit";
254            case _11103: return "Polishing, 3 unit";
255            case _11104: return "Polishing, 4 unit";
256            case _21211: return "Amalgam, 1 surface";
257            case _21212: return "Amalgam, 2 surface";
258            case _27211: return "Crown, PFM";
259            case _67211: return "Maryland Bridge";
260            case _99111: return "Lab, commercial";
261            case _99333: return "Lab, in office";
262            case _99555: return "Expense";
263            default: return "?";
264          }
265    }
266
267
268}
269