001package org.hl7.fhir.instance.model.valuesets; 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 Wed, Nov 11, 2015 10:54-0500 for FHIR v1.0.2 033 034 035public enum V3GTSAbbreviation { 036 037 /** 038 * Every morning at institution specified times. 039 */ 040 AM, 041 /** 042 * Two times a day at institution specified time 043 */ 044 BID, 045 /** 046 * Regular business days (Monday to Friday excluding holidays) 047 */ 048 JB, 049 /** 050 * Regular weekends (Saturday and Sunday excluding holidays) 051 */ 052 JE, 053 /** 054 * Holidays 055 */ 056 JH, 057 /** 058 * Christian Holidays (Roman/Gregorian [Western] Tradition.) 059 */ 060 _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN, 061 /** 062 * Easter Sunday. The Easter date is a rather complex calculation based on Astronomical tables describing full moon dates. Details can be found at [http://www.assa.org.au/edm.html, and http://aa.usno.navy.mil/AA/faq/docs/easter.html]. Note that the Christian Orthodox Holidays are based on the Julian calendar. 063 */ 064 JHCHREAS, 065 /** 066 * Good Friday, is the Friday right before Easter Sunday. 067 */ 068 JHCHRGFR, 069 /** 070 * New Year's Day (January 1) 071 */ 072 JHCHRNEW, 073 /** 074 * Pentecost Sunday, is seven weeks after Easter (the 50th day of Easter). 075 */ 076 JHCHRPEN, 077 /** 078 * Christmas Eve (December 24) 079 */ 080 JHCHRXME, 081 /** 082 * Christmas Day (December 25) 083 */ 084 JHCHRXMS, 085 /** 086 * Description:The Netherlands National Holidays. 087 */ 088 JHNNL, 089 /** 090 * Description:Liberation day (May 5 every five years) 091 */ 092 JHNNLLD, 093 /** 094 * Description:Queen's day (April 30) 095 */ 096 JHNNLQD, 097 /** 098 * Description:Sinterklaas (December 5) 099 */ 100 JHNNLSK, 101 /** 102 * United States National Holidays (public holidays for federal employees established by U.S. Federal law 5 U.S.C. 6103). 103 */ 104 JHNUS, 105 /** 106 * Columbus Day, the second Monday in October. 107 */ 108 JHNUSCLM, 109 /** 110 * Independence Day (4th of July) 111 */ 112 JHNUSIND, 113 /** 114 * Alternative Monday after 4th of July Weekend [5 U.S.C. 6103(b)]. 115 */ 116 JHNUSIND1, 117 /** 118 * Alternative Friday before 4th of July Weekend [5 U.S.C. 6103(b)]. 119 */ 120 JHNUSIND5, 121 /** 122 * Labor Day, the first Monday in September. 123 */ 124 JHNUSLBR, 125 /** 126 * Memorial Day, the last Monday in May. 127 */ 128 JHNUSMEM, 129 /** 130 * Friday before Memorial Day Weekend 131 */ 132 JHNUSMEM5, 133 /** 134 * Saturday of Memorial Day Weekend 135 */ 136 JHNUSMEM6, 137 /** 138 * Dr. Martin Luther King, Jr. Day, the third Monday in January. 139 */ 140 JHNUSMLK, 141 /** 142 * Washington's Birthday (Presidential Day) the third Monday in February. 143 */ 144 JHNUSPRE, 145 /** 146 * Thanksgiving Day, the fourth Thursday in November. 147 */ 148 JHNUSTKS, 149 /** 150 * Friday after Thanksgiving. 151 */ 152 JHNUSTKS5, 153 /** 154 * Veteran's Day, November 11. 155 */ 156 JHNUSVET, 157 /** 158 * Every afternoon at institution specified times. 159 */ 160 PM, 161 /** 162 * Four times a day at institution specified time 163 */ 164 QID, 165 /** 166 * Three times a day at institution specified time 167 */ 168 TID, 169 /** 170 * added to help the parsers 171 */ 172 NULL; 173 public static V3GTSAbbreviation fromCode(String codeString) throws Exception { 174 if (codeString == null || "".equals(codeString)) 175 return null; 176 if ("AM".equals(codeString)) 177 return AM; 178 if ("BID".equals(codeString)) 179 return BID; 180 if ("JB".equals(codeString)) 181 return JB; 182 if ("JE".equals(codeString)) 183 return JE; 184 if ("JH".equals(codeString)) 185 return JH; 186 if ("_GTSAbbreviationHolidaysChristianRoman".equals(codeString)) 187 return _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN; 188 if ("JHCHREAS".equals(codeString)) 189 return JHCHREAS; 190 if ("JHCHRGFR".equals(codeString)) 191 return JHCHRGFR; 192 if ("JHCHRNEW".equals(codeString)) 193 return JHCHRNEW; 194 if ("JHCHRPEN".equals(codeString)) 195 return JHCHRPEN; 196 if ("JHCHRXME".equals(codeString)) 197 return JHCHRXME; 198 if ("JHCHRXMS".equals(codeString)) 199 return JHCHRXMS; 200 if ("JHNNL".equals(codeString)) 201 return JHNNL; 202 if ("JHNNLLD".equals(codeString)) 203 return JHNNLLD; 204 if ("JHNNLQD".equals(codeString)) 205 return JHNNLQD; 206 if ("JHNNLSK".equals(codeString)) 207 return JHNNLSK; 208 if ("JHNUS".equals(codeString)) 209 return JHNUS; 210 if ("JHNUSCLM".equals(codeString)) 211 return JHNUSCLM; 212 if ("JHNUSIND".equals(codeString)) 213 return JHNUSIND; 214 if ("JHNUSIND1".equals(codeString)) 215 return JHNUSIND1; 216 if ("JHNUSIND5".equals(codeString)) 217 return JHNUSIND5; 218 if ("JHNUSLBR".equals(codeString)) 219 return JHNUSLBR; 220 if ("JHNUSMEM".equals(codeString)) 221 return JHNUSMEM; 222 if ("JHNUSMEM5".equals(codeString)) 223 return JHNUSMEM5; 224 if ("JHNUSMEM6".equals(codeString)) 225 return JHNUSMEM6; 226 if ("JHNUSMLK".equals(codeString)) 227 return JHNUSMLK; 228 if ("JHNUSPRE".equals(codeString)) 229 return JHNUSPRE; 230 if ("JHNUSTKS".equals(codeString)) 231 return JHNUSTKS; 232 if ("JHNUSTKS5".equals(codeString)) 233 return JHNUSTKS5; 234 if ("JHNUSVET".equals(codeString)) 235 return JHNUSVET; 236 if ("PM".equals(codeString)) 237 return PM; 238 if ("QID".equals(codeString)) 239 return QID; 240 if ("TID".equals(codeString)) 241 return TID; 242 throw new Exception("Unknown V3GTSAbbreviation code '"+codeString+"'"); 243 } 244 public String toCode() { 245 switch (this) { 246 case AM: return "AM"; 247 case BID: return "BID"; 248 case JB: return "JB"; 249 case JE: return "JE"; 250 case JH: return "JH"; 251 case _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN: return "_GTSAbbreviationHolidaysChristianRoman"; 252 case JHCHREAS: return "JHCHREAS"; 253 case JHCHRGFR: return "JHCHRGFR"; 254 case JHCHRNEW: return "JHCHRNEW"; 255 case JHCHRPEN: return "JHCHRPEN"; 256 case JHCHRXME: return "JHCHRXME"; 257 case JHCHRXMS: return "JHCHRXMS"; 258 case JHNNL: return "JHNNL"; 259 case JHNNLLD: return "JHNNLLD"; 260 case JHNNLQD: return "JHNNLQD"; 261 case JHNNLSK: return "JHNNLSK"; 262 case JHNUS: return "JHNUS"; 263 case JHNUSCLM: return "JHNUSCLM"; 264 case JHNUSIND: return "JHNUSIND"; 265 case JHNUSIND1: return "JHNUSIND1"; 266 case JHNUSIND5: return "JHNUSIND5"; 267 case JHNUSLBR: return "JHNUSLBR"; 268 case JHNUSMEM: return "JHNUSMEM"; 269 case JHNUSMEM5: return "JHNUSMEM5"; 270 case JHNUSMEM6: return "JHNUSMEM6"; 271 case JHNUSMLK: return "JHNUSMLK"; 272 case JHNUSPRE: return "JHNUSPRE"; 273 case JHNUSTKS: return "JHNUSTKS"; 274 case JHNUSTKS5: return "JHNUSTKS5"; 275 case JHNUSVET: return "JHNUSVET"; 276 case PM: return "PM"; 277 case QID: return "QID"; 278 case TID: return "TID"; 279 default: return "?"; 280 } 281 } 282 public String getSystem() { 283 return "http://hl7.org/fhir/v3/GTSAbbreviation"; 284 } 285 public String getDefinition() { 286 switch (this) { 287 case AM: return "Every morning at institution specified times."; 288 case BID: return "Two times a day at institution specified time"; 289 case JB: return "Regular business days (Monday to Friday excluding holidays)"; 290 case JE: return "Regular weekends (Saturday and Sunday excluding holidays)"; 291 case JH: return "Holidays"; 292 case _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN: return "Christian Holidays (Roman/Gregorian [Western] Tradition.)"; 293 case JHCHREAS: return "Easter Sunday. The Easter date is a rather complex calculation based on Astronomical tables describing full moon dates. Details can be found at [http://www.assa.org.au/edm.html, and http://aa.usno.navy.mil/AA/faq/docs/easter.html]. Note that the Christian Orthodox Holidays are based on the Julian calendar."; 294 case JHCHRGFR: return "Good Friday, is the Friday right before Easter Sunday."; 295 case JHCHRNEW: return "New Year's Day (January 1)"; 296 case JHCHRPEN: return "Pentecost Sunday, is seven weeks after Easter (the 50th day of Easter)."; 297 case JHCHRXME: return "Christmas Eve (December 24)"; 298 case JHCHRXMS: return "Christmas Day (December 25)"; 299 case JHNNL: return "Description:The Netherlands National Holidays."; 300 case JHNNLLD: return "Description:Liberation day (May 5 every five years)"; 301 case JHNNLQD: return "Description:Queen's day (April 30)"; 302 case JHNNLSK: return "Description:Sinterklaas (December 5)"; 303 case JHNUS: return "United States National Holidays (public holidays for federal employees established by U.S. Federal law 5 U.S.C. 6103)."; 304 case JHNUSCLM: return "Columbus Day, the second Monday in October."; 305 case JHNUSIND: return "Independence Day (4th of July)"; 306 case JHNUSIND1: return "Alternative Monday after 4th of July Weekend [5 U.S.C. 6103(b)]."; 307 case JHNUSIND5: return "Alternative Friday before 4th of July Weekend [5 U.S.C. 6103(b)]."; 308 case JHNUSLBR: return "Labor Day, the first Monday in September."; 309 case JHNUSMEM: return "Memorial Day, the last Monday in May."; 310 case JHNUSMEM5: return "Friday before Memorial Day Weekend"; 311 case JHNUSMEM6: return "Saturday of Memorial Day Weekend"; 312 case JHNUSMLK: return "Dr. Martin Luther King, Jr. Day, the third Monday in January."; 313 case JHNUSPRE: return "Washington's Birthday (Presidential Day) the third Monday in February."; 314 case JHNUSTKS: return "Thanksgiving Day, the fourth Thursday in November."; 315 case JHNUSTKS5: return "Friday after Thanksgiving."; 316 case JHNUSVET: return "Veteran's Day, November 11."; 317 case PM: return "Every afternoon at institution specified times."; 318 case QID: return "Four times a day at institution specified time"; 319 case TID: return "Three times a day at institution specified time"; 320 default: return "?"; 321 } 322 } 323 public String getDisplay() { 324 switch (this) { 325 case AM: return "AM"; 326 case BID: return "BID"; 327 case JB: return "JB"; 328 case JE: return "JE"; 329 case JH: return "GTSAbbreviationHolidays"; 330 case _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN: return "GTSAbbreviationHolidaysChristianRoman"; 331 case JHCHREAS: return "JHCHREAS"; 332 case JHCHRGFR: return "JHCHRGFR"; 333 case JHCHRNEW: return "JHCHRNEW"; 334 case JHCHRPEN: return "JHCHRPEN"; 335 case JHCHRXME: return "JHCHRXME"; 336 case JHCHRXMS: return "JHCHRXMS"; 337 case JHNNL: return "The Netherlands National Holidays"; 338 case JHNNLLD: return "Liberation day (May 5 every five years)"; 339 case JHNNLQD: return "Queen's day (April 30)"; 340 case JHNNLSK: return "Sinterklaas (December 5)"; 341 case JHNUS: return "GTSAbbreviationHolidaysUSNational"; 342 case JHNUSCLM: return "JHNUSCLM"; 343 case JHNUSIND: return "JHNUSIND"; 344 case JHNUSIND1: return "JHNUSIND1"; 345 case JHNUSIND5: return "JHNUSIND5"; 346 case JHNUSLBR: return "JHNUSLBR"; 347 case JHNUSMEM: return "JHNUSMEM"; 348 case JHNUSMEM5: return "JHNUSMEM5"; 349 case JHNUSMEM6: return "JHNUSMEM6"; 350 case JHNUSMLK: return "JHNUSMLK"; 351 case JHNUSPRE: return "JHNUSPRE"; 352 case JHNUSTKS: return "JHNUSTKS"; 353 case JHNUSTKS5: return "JHNUSTKS5"; 354 case JHNUSVET: return "JHNUSVET"; 355 case PM: return "PM"; 356 case QID: return "QID"; 357 case TID: return "TID"; 358 default: return "?"; 359 } 360 } 361 362 363} 364