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