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