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 FeedingDevice {
058
059        /**
060         * Standard nipple definition:
061         */
062        STANDARDNIPPLE, 
063        /**
064         * Preemie nipple definition:
065         */
066        PREEMIENIPPLE, 
067        /**
068         * Orthodontic nipple definition:
069         */
070        ORTHONIPPLE, 
071        /**
072         * Slow flow nipple definition:
073         */
074        SLOFLONIPPLE, 
075        /**
076         * Middle flow nipple definition:
077         */
078        MIDFLONIPPLE, 
079        /**
080         * Enlarged, cross-cut nipple definition:
081         */
082        BIGCUTNIPPLE, 
083        /**
084         * Haberman bottle definition:
085         */
086        HABERMANBOTTLE, 
087        /**
088         * Sippy cup with valve definition:
089         */
090        SIPPYVALVE, 
091        /**
092         * Sippy cup without valve definition:
093         */
094        SIPPYNOVALVE, 
095        /**
096         * Provale Cup definition:
097         */
098        PROVALECUP, 
099        /**
100         * Glass with lid/sippy cup definition:
101         */
102        GLASSLID, 
103        /**
104         * Double handhold on glass/cup definition:
105         */
106        HANDHOLDCUP, 
107        /**
108         * Rubber matting under tray definition:
109         */
110        RUBBERMAT, 
111        /**
112         * Straw definition:
113         */
114        STRAW, 
115        /**
116         * Nose cup definition:
117         */
118        NOSECUP, 
119        /**
120         * Scoop plate definition:
121         */
122        SCOOPPLATE, 
123        /**
124         * Hand wrap utensil holder definition:
125         */
126        UTENSILHOLDER, 
127        /**
128         * Foam handle utensils definition:
129         */
130        FOAMHANDLE, 
131        /**
132         * Angled utensils definition:
133         */
134        ANGLEDUTENSIL, 
135        /**
136         * Spout cup definition:
137         */
138        SPOUTCUP, 
139        /**
140         * Automated feeding devices definition:
141         */
142        AUTOFEEDINGDEVICE, 
143        /**
144         * Rocker knife definition:
145         */
146        ROCKERKNIFE, 
147        /**
148         * added to help the parsers
149         */
150        NULL;
151        public static FeedingDevice fromCode(String codeString) throws FHIRException {
152            if (codeString == null || "".equals(codeString))
153                return null;
154        if ("standard-nipple".equals(codeString))
155          return STANDARDNIPPLE;
156        if ("preemie-nipple".equals(codeString))
157          return PREEMIENIPPLE;
158        if ("ortho-nipple".equals(codeString))
159          return ORTHONIPPLE;
160        if ("sloflo-nipple".equals(codeString))
161          return SLOFLONIPPLE;
162        if ("midflo-nipple".equals(codeString))
163          return MIDFLONIPPLE;
164        if ("bigcut-nipple".equals(codeString))
165          return BIGCUTNIPPLE;
166        if ("haberman-bottle".equals(codeString))
167          return HABERMANBOTTLE;
168        if ("sippy-valve".equals(codeString))
169          return SIPPYVALVE;
170        if ("sippy-no-valve".equals(codeString))
171          return SIPPYNOVALVE;
172        if ("provale-cup".equals(codeString))
173          return PROVALECUP;
174        if ("glass-lid".equals(codeString))
175          return GLASSLID;
176        if ("handhold-cup".equals(codeString))
177          return HANDHOLDCUP;
178        if ("rubber-mat".equals(codeString))
179          return RUBBERMAT;
180        if ("straw".equals(codeString))
181          return STRAW;
182        if ("nose-cup".equals(codeString))
183          return NOSECUP;
184        if ("scoop-plate".equals(codeString))
185          return SCOOPPLATE;
186        if ("utensil-holder".equals(codeString))
187          return UTENSILHOLDER;
188        if ("foam-handle".equals(codeString))
189          return FOAMHANDLE;
190        if ("angled-utensil".equals(codeString))
191          return ANGLEDUTENSIL;
192        if ("spout-cup".equals(codeString))
193          return SPOUTCUP;
194        if ("autofeeding-device".equals(codeString))
195          return AUTOFEEDINGDEVICE;
196        if ("rocker-knife".equals(codeString))
197          return ROCKERKNIFE;
198        throw new FHIRException("Unknown FeedingDevice code '"+codeString+"'");
199        }
200        public String toCode() {
201          switch (this) {
202            case STANDARDNIPPLE: return "standard-nipple";
203            case PREEMIENIPPLE: return "preemie-nipple";
204            case ORTHONIPPLE: return "ortho-nipple";
205            case SLOFLONIPPLE: return "sloflo-nipple";
206            case MIDFLONIPPLE: return "midflo-nipple";
207            case BIGCUTNIPPLE: return "bigcut-nipple";
208            case HABERMANBOTTLE: return "haberman-bottle";
209            case SIPPYVALVE: return "sippy-valve";
210            case SIPPYNOVALVE: return "sippy-no-valve";
211            case PROVALECUP: return "provale-cup";
212            case GLASSLID: return "glass-lid";
213            case HANDHOLDCUP: return "handhold-cup";
214            case RUBBERMAT: return "rubber-mat";
215            case STRAW: return "straw";
216            case NOSECUP: return "nose-cup";
217            case SCOOPPLATE: return "scoop-plate";
218            case UTENSILHOLDER: return "utensil-holder";
219            case FOAMHANDLE: return "foam-handle";
220            case ANGLEDUTENSIL: return "angled-utensil";
221            case SPOUTCUP: return "spout-cup";
222            case AUTOFEEDINGDEVICE: return "autofeeding-device";
223            case ROCKERKNIFE: return "rocker-knife";
224            default: return "?";
225          }
226        }
227        public String getSystem() {
228          return "http://hl7.org/fhir/feeding-device";
229        }
230        public String getDefinition() {
231          switch (this) {
232            case STANDARDNIPPLE: return "Standard nipple definition:";
233            case PREEMIENIPPLE: return "Preemie nipple definition:";
234            case ORTHONIPPLE: return "Orthodontic nipple definition:";
235            case SLOFLONIPPLE: return "Slow flow nipple definition:";
236            case MIDFLONIPPLE: return "Middle flow nipple definition:";
237            case BIGCUTNIPPLE: return "Enlarged, cross-cut nipple definition:";
238            case HABERMANBOTTLE: return "Haberman bottle definition:";
239            case SIPPYVALVE: return "Sippy cup with valve definition:";
240            case SIPPYNOVALVE: return "Sippy cup without valve definition:";
241            case PROVALECUP: return "Provale Cup definition:";
242            case GLASSLID: return "Glass with lid/sippy cup definition:";
243            case HANDHOLDCUP: return "Double handhold on glass/cup definition:";
244            case RUBBERMAT: return "Rubber matting under tray definition:";
245            case STRAW: return "Straw definition:";
246            case NOSECUP: return "Nose cup definition:";
247            case SCOOPPLATE: return "Scoop plate definition:";
248            case UTENSILHOLDER: return "Hand wrap utensil holder definition:";
249            case FOAMHANDLE: return "Foam handle utensils definition:";
250            case ANGLEDUTENSIL: return "Angled utensils definition:";
251            case SPOUTCUP: return "Spout cup definition:";
252            case AUTOFEEDINGDEVICE: return "Automated feeding devices definition:";
253            case ROCKERKNIFE: return "Rocker knife definition:";
254            default: return "?";
255          }
256        }
257        public String getDisplay() {
258          switch (this) {
259            case STANDARDNIPPLE: return "Standard nipple";
260            case PREEMIENIPPLE: return "Preemie nipple";
261            case ORTHONIPPLE: return "Orthodontic nipple";
262            case SLOFLONIPPLE: return "Slow flow nipple";
263            case MIDFLONIPPLE: return "Middle flow nipple";
264            case BIGCUTNIPPLE: return "Enlarged, cross-cut nipple";
265            case HABERMANBOTTLE: return "Haberman bottle";
266            case SIPPYVALVE: return "Sippy cup with valve";
267            case SIPPYNOVALVE: return "Sippy cup without valve";
268            case PROVALECUP: return "Provale Cup";
269            case GLASSLID: return "Glass with lid/sippy cup";
270            case HANDHOLDCUP: return "Double handhold on glass/cup";
271            case RUBBERMAT: return "Rubber matting under tray";
272            case STRAW: return "Straw";
273            case NOSECUP: return "Nose cup";
274            case SCOOPPLATE: return "Scoop plate";
275            case UTENSILHOLDER: return "Hand wrap utensil holder";
276            case FOAMHANDLE: return "Foam handle utensils";
277            case ANGLEDUTENSIL: return "Angled utensils";
278            case SPOUTCUP: return "Spout cup";
279            case AUTOFEEDINGDEVICE: return "Automated feeding devices";
280            case ROCKERKNIFE: return "Rocker knife";
281            default: return "?";
282          }
283    }
284
285
286}
287