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 V3GTSAbbreviation { 058 059 /** 060 * Every morning at institution specified times. 061 */ 062 AM, 063 /** 064 * At bedtime (institution specified time). 065 */ 066 BED, 067 /** 068 * Two times a day at institution specified time 069 */ 070 BID, 071 /** 072 * Regular business days (Monday to Friday excluding holidays) 073 */ 074 JB, 075 /** 076 * Regular weekends (Saturday and Sunday excluding holidays) 077 */ 078 JE, 079 /** 080 * Holidays 081 */ 082 JH, 083 /** 084 * Christian Holidays (Roman/Gregorian [Western] Tradition.) 085 */ 086 _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN, 087 /** 088 * 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. 089 */ 090 JHCHREAS, 091 /** 092 * Good Friday, is the Friday right before Easter Sunday. 093 */ 094 JHCHRGFR, 095 /** 096 * New Year's Day (January 1) 097 */ 098 JHCHRNEW, 099 /** 100 * Pentecost Sunday, is seven weeks after Easter (the 50th day of Easter). 101 */ 102 JHCHRPEN, 103 /** 104 * Christmas Eve (December 24) 105 */ 106 JHCHRXME, 107 /** 108 * Christmas Day (December 25) 109 */ 110 JHCHRXMS, 111 /** 112 * Description:The Netherlands National Holidays. 113 */ 114 JHNNL, 115 /** 116 * Description:Liberation day (May 5 every five years) 117 */ 118 JHNNLLD, 119 /** 120 * Description:Queen's day (April 30) 121 */ 122 JHNNLQD, 123 /** 124 * Description:Sinterklaas (December 5) 125 */ 126 JHNNLSK, 127 /** 128 * United States National Holidays (public holidays for federal employees established by U.S. Federal law 5 U.S.C. 6103). 129 */ 130 JHNUS, 131 /** 132 * Columbus Day, the second Monday in October. 133 */ 134 JHNUSCLM, 135 /** 136 * Independence Day (4th of July) 137 */ 138 JHNUSIND, 139 /** 140 * Alternative Monday after 4th of July Weekend [5 U.S.C. 6103(b)]. 141 */ 142 JHNUSIND1, 143 /** 144 * Alternative Friday before 4th of July Weekend [5 U.S.C. 6103(b)]. 145 */ 146 JHNUSIND5, 147 /** 148 * Labor Day, the first Monday in September. 149 */ 150 JHNUSLBR, 151 /** 152 * Memorial Day, the last Monday in May. 153 */ 154 JHNUSMEM, 155 /** 156 * Friday before Memorial Day Weekend 157 */ 158 JHNUSMEM5, 159 /** 160 * Saturday of Memorial Day Weekend 161 */ 162 JHNUSMEM6, 163 /** 164 * Dr. Martin Luther King, Jr. Day, the third Monday in January. 165 */ 166 JHNUSMLK, 167 /** 168 * Washington's Birthday (Presidential Day) the third Monday in February. 169 */ 170 JHNUSPRE, 171 /** 172 * Thanksgiving Day, the fourth Thursday in November. 173 */ 174 JHNUSTKS, 175 /** 176 * Friday after Thanksgiving. 177 */ 178 JHNUSTKS5, 179 /** 180 * Veteran's Day, November 11. 181 */ 182 JHNUSVET, 183 /** 184 * Monthly at institution specified time. 185 */ 186 MO, 187 /** 188 * Every afternoon at institution specified times. 189 */ 190 PM, 191 /** 192 * Every hour at institution specified times. 193 */ 194 Q1H, 195 /** 196 * Every 2 hours at institution specified times. 197 */ 198 Q2H, 199 /** 200 * Every 3 hours at institution specified times. 201 */ 202 Q3H, 203 /** 204 * Every 4 hours at institution specified time 205 */ 206 Q4H, 207 /** 208 * Every 6 hours at institution specified time 209 */ 210 Q6H, 211 /** 212 * Every 8 hours at institution specified times. 213 */ 214 Q8H, 215 /** 216 * Every day at institution specified times. 217 */ 218 QD, 219 /** 220 * Four times a day at institution specified time 221 */ 222 QID, 223 /** 224 * Every other day at institution specified times. 225 */ 226 QOD, 227 /** 228 * Three times a day at institution specified time 229 */ 230 TID, 231 /** 232 * Weekly at institution specified time. 233 */ 234 WK, 235 /** 236 * added to help the parsers 237 */ 238 NULL; 239 public static V3GTSAbbreviation fromCode(String codeString) throws FHIRException { 240 if (codeString == null || "".equals(codeString)) 241 return null; 242 if ("AM".equals(codeString)) 243 return AM; 244 if ("BED".equals(codeString)) 245 return BED; 246 if ("BID".equals(codeString)) 247 return BID; 248 if ("JB".equals(codeString)) 249 return JB; 250 if ("JE".equals(codeString)) 251 return JE; 252 if ("JH".equals(codeString)) 253 return JH; 254 if ("_GTSAbbreviationHolidaysChristianRoman".equals(codeString)) 255 return _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN; 256 if ("JHCHREAS".equals(codeString)) 257 return JHCHREAS; 258 if ("JHCHRGFR".equals(codeString)) 259 return JHCHRGFR; 260 if ("JHCHRNEW".equals(codeString)) 261 return JHCHRNEW; 262 if ("JHCHRPEN".equals(codeString)) 263 return JHCHRPEN; 264 if ("JHCHRXME".equals(codeString)) 265 return JHCHRXME; 266 if ("JHCHRXMS".equals(codeString)) 267 return JHCHRXMS; 268 if ("JHNNL".equals(codeString)) 269 return JHNNL; 270 if ("JHNNLLD".equals(codeString)) 271 return JHNNLLD; 272 if ("JHNNLQD".equals(codeString)) 273 return JHNNLQD; 274 if ("JHNNLSK".equals(codeString)) 275 return JHNNLSK; 276 if ("JHNUS".equals(codeString)) 277 return JHNUS; 278 if ("JHNUSCLM".equals(codeString)) 279 return JHNUSCLM; 280 if ("JHNUSIND".equals(codeString)) 281 return JHNUSIND; 282 if ("JHNUSIND1".equals(codeString)) 283 return JHNUSIND1; 284 if ("JHNUSIND5".equals(codeString)) 285 return JHNUSIND5; 286 if ("JHNUSLBR".equals(codeString)) 287 return JHNUSLBR; 288 if ("JHNUSMEM".equals(codeString)) 289 return JHNUSMEM; 290 if ("JHNUSMEM5".equals(codeString)) 291 return JHNUSMEM5; 292 if ("JHNUSMEM6".equals(codeString)) 293 return JHNUSMEM6; 294 if ("JHNUSMLK".equals(codeString)) 295 return JHNUSMLK; 296 if ("JHNUSPRE".equals(codeString)) 297 return JHNUSPRE; 298 if ("JHNUSTKS".equals(codeString)) 299 return JHNUSTKS; 300 if ("JHNUSTKS5".equals(codeString)) 301 return JHNUSTKS5; 302 if ("JHNUSVET".equals(codeString)) 303 return JHNUSVET; 304 if ("MO".equals(codeString)) 305 return MO; 306 if ("PM".equals(codeString)) 307 return PM; 308 if ("Q1H".equals(codeString)) 309 return Q1H; 310 if ("Q2H".equals(codeString)) 311 return Q2H; 312 if ("Q3H".equals(codeString)) 313 return Q3H; 314 if ("Q4H".equals(codeString)) 315 return Q4H; 316 if ("Q6H".equals(codeString)) 317 return Q6H; 318 if ("Q8H".equals(codeString)) 319 return Q8H; 320 if ("QD".equals(codeString)) 321 return QD; 322 if ("QID".equals(codeString)) 323 return QID; 324 if ("QOD".equals(codeString)) 325 return QOD; 326 if ("TID".equals(codeString)) 327 return TID; 328 if ("WK".equals(codeString)) 329 return WK; 330 throw new FHIRException("Unknown V3GTSAbbreviation code '"+codeString+"'"); 331 } 332 public String toCode() { 333 switch (this) { 334 case AM: return "AM"; 335 case BED: return "BED"; 336 case BID: return "BID"; 337 case JB: return "JB"; 338 case JE: return "JE"; 339 case JH: return "JH"; 340 case _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN: return "_GTSAbbreviationHolidaysChristianRoman"; 341 case JHCHREAS: return "JHCHREAS"; 342 case JHCHRGFR: return "JHCHRGFR"; 343 case JHCHRNEW: return "JHCHRNEW"; 344 case JHCHRPEN: return "JHCHRPEN"; 345 case JHCHRXME: return "JHCHRXME"; 346 case JHCHRXMS: return "JHCHRXMS"; 347 case JHNNL: return "JHNNL"; 348 case JHNNLLD: return "JHNNLLD"; 349 case JHNNLQD: return "JHNNLQD"; 350 case JHNNLSK: return "JHNNLSK"; 351 case JHNUS: return "JHNUS"; 352 case JHNUSCLM: return "JHNUSCLM"; 353 case JHNUSIND: return "JHNUSIND"; 354 case JHNUSIND1: return "JHNUSIND1"; 355 case JHNUSIND5: return "JHNUSIND5"; 356 case JHNUSLBR: return "JHNUSLBR"; 357 case JHNUSMEM: return "JHNUSMEM"; 358 case JHNUSMEM5: return "JHNUSMEM5"; 359 case JHNUSMEM6: return "JHNUSMEM6"; 360 case JHNUSMLK: return "JHNUSMLK"; 361 case JHNUSPRE: return "JHNUSPRE"; 362 case JHNUSTKS: return "JHNUSTKS"; 363 case JHNUSTKS5: return "JHNUSTKS5"; 364 case JHNUSVET: return "JHNUSVET"; 365 case MO: return "MO"; 366 case PM: return "PM"; 367 case Q1H: return "Q1H"; 368 case Q2H: return "Q2H"; 369 case Q3H: return "Q3H"; 370 case Q4H: return "Q4H"; 371 case Q6H: return "Q6H"; 372 case Q8H: return "Q8H"; 373 case QD: return "QD"; 374 case QID: return "QID"; 375 case QOD: return "QOD"; 376 case TID: return "TID"; 377 case WK: return "WK"; 378 default: return "?"; 379 } 380 } 381 public String getSystem() { 382 return "http://terminology.hl7.org/CodeSystem/v3-GTSAbbreviation"; 383 } 384 public String getDefinition() { 385 switch (this) { 386 case AM: return "Every morning at institution specified times."; 387 case BED: return "At bedtime (institution specified time)."; 388 case BID: return "Two times a day at institution specified time"; 389 case JB: return "Regular business days (Monday to Friday excluding holidays)"; 390 case JE: return "Regular weekends (Saturday and Sunday excluding holidays)"; 391 case JH: return "Holidays"; 392 case _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN: return "Christian Holidays (Roman/Gregorian [Western] Tradition.)"; 393 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."; 394 case JHCHRGFR: return "Good Friday, is the Friday right before Easter Sunday."; 395 case JHCHRNEW: return "New Year's Day (January 1)"; 396 case JHCHRPEN: return "Pentecost Sunday, is seven weeks after Easter (the 50th day of Easter)."; 397 case JHCHRXME: return "Christmas Eve (December 24)"; 398 case JHCHRXMS: return "Christmas Day (December 25)"; 399 case JHNNL: return "Description:The Netherlands National Holidays."; 400 case JHNNLLD: return "Description:Liberation day (May 5 every five years)"; 401 case JHNNLQD: return "Description:Queen's day (April 30)"; 402 case JHNNLSK: return "Description:Sinterklaas (December 5)"; 403 case JHNUS: return "United States National Holidays (public holidays for federal employees established by U.S. Federal law 5 U.S.C. 6103)."; 404 case JHNUSCLM: return "Columbus Day, the second Monday in October."; 405 case JHNUSIND: return "Independence Day (4th of July)"; 406 case JHNUSIND1: return "Alternative Monday after 4th of July Weekend [5 U.S.C. 6103(b)]."; 407 case JHNUSIND5: return "Alternative Friday before 4th of July Weekend [5 U.S.C. 6103(b)]."; 408 case JHNUSLBR: return "Labor Day, the first Monday in September."; 409 case JHNUSMEM: return "Memorial Day, the last Monday in May."; 410 case JHNUSMEM5: return "Friday before Memorial Day Weekend"; 411 case JHNUSMEM6: return "Saturday of Memorial Day Weekend"; 412 case JHNUSMLK: return "Dr. Martin Luther King, Jr. Day, the third Monday in January."; 413 case JHNUSPRE: return "Washington's Birthday (Presidential Day) the third Monday in February."; 414 case JHNUSTKS: return "Thanksgiving Day, the fourth Thursday in November."; 415 case JHNUSTKS5: return "Friday after Thanksgiving."; 416 case JHNUSVET: return "Veteran's Day, November 11."; 417 case MO: return "Monthly at institution specified time."; 418 case PM: return "Every afternoon at institution specified times."; 419 case Q1H: return "Every hour at institution specified times."; 420 case Q2H: return "Every 2 hours at institution specified times."; 421 case Q3H: return "Every 3 hours at institution specified times."; 422 case Q4H: return "Every 4 hours at institution specified time"; 423 case Q6H: return "Every 6 hours at institution specified time"; 424 case Q8H: return "Every 8 hours at institution specified times."; 425 case QD: return "Every day at institution specified times."; 426 case QID: return "Four times a day at institution specified time"; 427 case QOD: return "Every other day at institution specified times."; 428 case TID: return "Three times a day at institution specified time"; 429 case WK: return "Weekly at institution specified time."; 430 default: return "?"; 431 } 432 } 433 public String getDisplay() { 434 switch (this) { 435 case AM: return "AM"; 436 case BED: return "at bedtime"; 437 case BID: return "BID"; 438 case JB: return "JB"; 439 case JE: return "JE"; 440 case JH: return "GTSAbbreviationHolidays"; 441 case _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN: return "GTSAbbreviationHolidaysChristianRoman"; 442 case JHCHREAS: return "JHCHREAS"; 443 case JHCHRGFR: return "JHCHRGFR"; 444 case JHCHRNEW: return "JHCHRNEW"; 445 case JHCHRPEN: return "JHCHRPEN"; 446 case JHCHRXME: return "JHCHRXME"; 447 case JHCHRXMS: return "JHCHRXMS"; 448 case JHNNL: return "The Netherlands National Holidays"; 449 case JHNNLLD: return "Liberation day (May 5 every five years)"; 450 case JHNNLQD: return "Queen's day (April 30)"; 451 case JHNNLSK: return "Sinterklaas (December 5)"; 452 case JHNUS: return "GTSAbbreviationHolidaysUSNational"; 453 case JHNUSCLM: return "JHNUSCLM"; 454 case JHNUSIND: return "JHNUSIND"; 455 case JHNUSIND1: return "JHNUSIND1"; 456 case JHNUSIND5: return "JHNUSIND5"; 457 case JHNUSLBR: return "JHNUSLBR"; 458 case JHNUSMEM: return "JHNUSMEM"; 459 case JHNUSMEM5: return "JHNUSMEM5"; 460 case JHNUSMEM6: return "JHNUSMEM6"; 461 case JHNUSMLK: return "JHNUSMLK"; 462 case JHNUSPRE: return "JHNUSPRE"; 463 case JHNUSTKS: return "JHNUSTKS"; 464 case JHNUSTKS5: return "JHNUSTKS5"; 465 case JHNUSVET: return "JHNUSVET"; 466 case MO: return "monthly"; 467 case PM: return "PM"; 468 case Q1H: return "every hour"; 469 case Q2H: return "every 2 hours"; 470 case Q3H: return "every 3 hours"; 471 case Q4H: return "Q4H"; 472 case Q6H: return "Q6H"; 473 case Q8H: return "every 8 hours"; 474 case QD: return "QD"; 475 case QID: return "QID"; 476 case QOD: return "QOD"; 477 case TID: return "TID"; 478 case WK: return "weekly"; 479 default: return "?"; 480 } 481 } 482 483 484} 485