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