All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hl7.fhir.r4.model.codesystems.V3GTSAbbreviation Maven / Gradle / Ivy

Go to download

Builds the hapi fhir r4. Requires hapi-fhir-base and hapi-fhir-utilities be built first and be excluded from any other poms requiring it.

The newest version!
package org.hl7.fhir.r4.model.codesystems;

/*
  Copyright (c) 2011+, HL7, Inc.
  All rights reserved.
  
  Redistribution and use in source and binary forms, with or without modification, 
  are permitted provided that the following conditions are met:
  
   * Redistributions of source code must retain the above copyright notice, this 
     list of conditions and the following disclaimer.
   * Redistributions in binary form must reproduce the above copyright notice, 
     this list of conditions and the following disclaimer in the documentation 
     and/or other materials provided with the distribution.
   * Neither the name of HL7 nor the names of its contributors may be used to 
     endorse or promote products derived from this software without specific 
     prior written permission.
  
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
  POSSIBILITY OF SUCH DAMAGE.
  
*/

// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0

import org.hl7.fhir.exceptions.FHIRException;

public enum V3GTSAbbreviation {

  /**
   * Every morning at institution specified times.
   */
  AM,
  /**
   * At bedtime (institution specified time).
   */
  BED,
  /**
   * Two times a day at institution specified time
   */
  BID,
  /**
   * Regular business days (Monday to Friday excluding holidays)
   */
  JB,
  /**
   * Regular weekends (Saturday and Sunday excluding holidays)
   */
  JE,
  /**
   * Holidays
   */
  JH,
  /**
   * Christian Holidays (Roman/Gregorian [Western] Tradition.)
   */
  _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN,
  /**
   * 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.
   */
  JHCHREAS,
  /**
   * Good Friday, is the Friday right before Easter Sunday.
   */
  JHCHRGFR,
  /**
   * New Year's Day (January 1)
   */
  JHCHRNEW,
  /**
   * Pentecost Sunday, is seven weeks after Easter (the 50th day of Easter).
   */
  JHCHRPEN,
  /**
   * Christmas Eve (December 24)
   */
  JHCHRXME,
  /**
   * Christmas Day (December 25)
   */
  JHCHRXMS,
  /**
   * Description:The Netherlands National Holidays.
   */
  JHNNL,
  /**
   * Description:Liberation day (May 5 every five years)
   */
  JHNNLLD,
  /**
   * Description:Queen's day (April 30)
   */
  JHNNLQD,
  /**
   * Description:Sinterklaas (December 5)
   */
  JHNNLSK,
  /**
   * United States National Holidays (public holidays for federal employees
   * established by U.S. Federal law 5 U.S.C. 6103).
   */
  JHNUS,
  /**
   * Columbus Day, the second Monday in October.
   */
  JHNUSCLM,
  /**
   * Independence Day (4th of July)
   */
  JHNUSIND,
  /**
   * Alternative Monday after 4th of July Weekend [5 U.S.C. 6103(b)].
   */
  JHNUSIND1,
  /**
   * Alternative Friday before 4th of July Weekend [5 U.S.C. 6103(b)].
   */
  JHNUSIND5,
  /**
   * Labor Day, the first Monday in September.
   */
  JHNUSLBR,
  /**
   * Memorial Day, the last Monday in May.
   */
  JHNUSMEM,
  /**
   * Friday before Memorial Day Weekend
   */
  JHNUSMEM5,
  /**
   * Saturday of Memorial Day Weekend
   */
  JHNUSMEM6,
  /**
   * Dr. Martin Luther King, Jr. Day, the third Monday in January.
   */
  JHNUSMLK,
  /**
   * Washington's Birthday (Presidential Day) the third Monday in February.
   */
  JHNUSPRE,
  /**
   * Thanksgiving Day, the fourth Thursday in November.
   */
  JHNUSTKS,
  /**
   * Friday after Thanksgiving.
   */
  JHNUSTKS5,
  /**
   * Veteran's Day, November 11.
   */
  JHNUSVET,
  /**
   * Monthly at institution specified time.
   */
  MO,
  /**
   * Every afternoon at institution specified times.
   */
  PM,
  /**
   * Every hour at institution specified times.
   */
  Q1H,
  /**
   * Every 2 hours at institution specified times.
   */
  Q2H,
  /**
   * Every 3 hours at institution specified times.
   */
  Q3H,
  /**
   * Every 4 hours at institution specified time
   */
  Q4H,
  /**
   * Every 6 hours at institution specified time
   */
  Q6H,
  /**
   * Every 8 hours at institution specified times.
   */
  Q8H,
  /**
   * Every day at institution specified times.
   */
  QD,
  /**
   * Four times a day at institution specified time
   */
  QID,
  /**
   * Every other day at institution specified times.
   */
  QOD,
  /**
   * Three times a day at institution specified time
   */
  TID,
  /**
   * Weekly at institution specified time.
   */
  WK,
  /**
   * added to help the parsers
   */
  NULL;

  public static V3GTSAbbreviation fromCode(String codeString) throws FHIRException {
    if (codeString == null || "".equals(codeString))
      return null;
    if ("AM".equals(codeString))
      return AM;
    if ("BED".equals(codeString))
      return BED;
    if ("BID".equals(codeString))
      return BID;
    if ("JB".equals(codeString))
      return JB;
    if ("JE".equals(codeString))
      return JE;
    if ("JH".equals(codeString))
      return JH;
    if ("_GTSAbbreviationHolidaysChristianRoman".equals(codeString))
      return _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN;
    if ("JHCHREAS".equals(codeString))
      return JHCHREAS;
    if ("JHCHRGFR".equals(codeString))
      return JHCHRGFR;
    if ("JHCHRNEW".equals(codeString))
      return JHCHRNEW;
    if ("JHCHRPEN".equals(codeString))
      return JHCHRPEN;
    if ("JHCHRXME".equals(codeString))
      return JHCHRXME;
    if ("JHCHRXMS".equals(codeString))
      return JHCHRXMS;
    if ("JHNNL".equals(codeString))
      return JHNNL;
    if ("JHNNLLD".equals(codeString))
      return JHNNLLD;
    if ("JHNNLQD".equals(codeString))
      return JHNNLQD;
    if ("JHNNLSK".equals(codeString))
      return JHNNLSK;
    if ("JHNUS".equals(codeString))
      return JHNUS;
    if ("JHNUSCLM".equals(codeString))
      return JHNUSCLM;
    if ("JHNUSIND".equals(codeString))
      return JHNUSIND;
    if ("JHNUSIND1".equals(codeString))
      return JHNUSIND1;
    if ("JHNUSIND5".equals(codeString))
      return JHNUSIND5;
    if ("JHNUSLBR".equals(codeString))
      return JHNUSLBR;
    if ("JHNUSMEM".equals(codeString))
      return JHNUSMEM;
    if ("JHNUSMEM5".equals(codeString))
      return JHNUSMEM5;
    if ("JHNUSMEM6".equals(codeString))
      return JHNUSMEM6;
    if ("JHNUSMLK".equals(codeString))
      return JHNUSMLK;
    if ("JHNUSPRE".equals(codeString))
      return JHNUSPRE;
    if ("JHNUSTKS".equals(codeString))
      return JHNUSTKS;
    if ("JHNUSTKS5".equals(codeString))
      return JHNUSTKS5;
    if ("JHNUSVET".equals(codeString))
      return JHNUSVET;
    if ("MO".equals(codeString))
      return MO;
    if ("PM".equals(codeString))
      return PM;
    if ("Q1H".equals(codeString))
      return Q1H;
    if ("Q2H".equals(codeString))
      return Q2H;
    if ("Q3H".equals(codeString))
      return Q3H;
    if ("Q4H".equals(codeString))
      return Q4H;
    if ("Q6H".equals(codeString))
      return Q6H;
    if ("Q8H".equals(codeString))
      return Q8H;
    if ("QD".equals(codeString))
      return QD;
    if ("QID".equals(codeString))
      return QID;
    if ("QOD".equals(codeString))
      return QOD;
    if ("TID".equals(codeString))
      return TID;
    if ("WK".equals(codeString))
      return WK;
    throw new FHIRException("Unknown V3GTSAbbreviation code '" + codeString + "'");
  }

  public String toCode() {
    switch (this) {
    case AM:
      return "AM";
    case BED:
      return "BED";
    case BID:
      return "BID";
    case JB:
      return "JB";
    case JE:
      return "JE";
    case JH:
      return "JH";
    case _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN:
      return "_GTSAbbreviationHolidaysChristianRoman";
    case JHCHREAS:
      return "JHCHREAS";
    case JHCHRGFR:
      return "JHCHRGFR";
    case JHCHRNEW:
      return "JHCHRNEW";
    case JHCHRPEN:
      return "JHCHRPEN";
    case JHCHRXME:
      return "JHCHRXME";
    case JHCHRXMS:
      return "JHCHRXMS";
    case JHNNL:
      return "JHNNL";
    case JHNNLLD:
      return "JHNNLLD";
    case JHNNLQD:
      return "JHNNLQD";
    case JHNNLSK:
      return "JHNNLSK";
    case JHNUS:
      return "JHNUS";
    case JHNUSCLM:
      return "JHNUSCLM";
    case JHNUSIND:
      return "JHNUSIND";
    case JHNUSIND1:
      return "JHNUSIND1";
    case JHNUSIND5:
      return "JHNUSIND5";
    case JHNUSLBR:
      return "JHNUSLBR";
    case JHNUSMEM:
      return "JHNUSMEM";
    case JHNUSMEM5:
      return "JHNUSMEM5";
    case JHNUSMEM6:
      return "JHNUSMEM6";
    case JHNUSMLK:
      return "JHNUSMLK";
    case JHNUSPRE:
      return "JHNUSPRE";
    case JHNUSTKS:
      return "JHNUSTKS";
    case JHNUSTKS5:
      return "JHNUSTKS5";
    case JHNUSVET:
      return "JHNUSVET";
    case MO:
      return "MO";
    case PM:
      return "PM";
    case Q1H:
      return "Q1H";
    case Q2H:
      return "Q2H";
    case Q3H:
      return "Q3H";
    case Q4H:
      return "Q4H";
    case Q6H:
      return "Q6H";
    case Q8H:
      return "Q8H";
    case QD:
      return "QD";
    case QID:
      return "QID";
    case QOD:
      return "QOD";
    case TID:
      return "TID";
    case WK:
      return "WK";
    case NULL:
      return null;
    default:
      return "?";
    }
  }

  public String getSystem() {
    return "http://terminology.hl7.org/CodeSystem/v3-GTSAbbreviation";
  }

  public String getDefinition() {
    switch (this) {
    case AM:
      return "Every morning at institution specified times.";
    case BED:
      return "At bedtime (institution specified time).";
    case BID:
      return "Two times a day at institution specified time";
    case JB:
      return "Regular business days (Monday to Friday excluding holidays)";
    case JE:
      return "Regular weekends (Saturday and Sunday excluding holidays)";
    case JH:
      return "Holidays";
    case _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN:
      return "Christian Holidays (Roman/Gregorian [Western] Tradition.)";
    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.";
    case JHCHRGFR:
      return "Good Friday, is the Friday right before Easter Sunday.";
    case JHCHRNEW:
      return "New Year's Day (January 1)";
    case JHCHRPEN:
      return "Pentecost Sunday, is seven weeks after Easter (the 50th day of Easter).";
    case JHCHRXME:
      return "Christmas Eve (December 24)";
    case JHCHRXMS:
      return "Christmas Day (December 25)";
    case JHNNL:
      return "Description:The Netherlands National Holidays.";
    case JHNNLLD:
      return "Description:Liberation day  (May 5 every five years)";
    case JHNNLQD:
      return "Description:Queen's day (April 30)";
    case JHNNLSK:
      return "Description:Sinterklaas (December 5)";
    case JHNUS:
      return "United States National Holidays (public holidays for federal employees established by U.S. Federal law 5 U.S.C. 6103).";
    case JHNUSCLM:
      return "Columbus Day, the second Monday in October.";
    case JHNUSIND:
      return "Independence Day (4th of July)";
    case JHNUSIND1:
      return "Alternative Monday after 4th of July Weekend [5 U.S.C. 6103(b)].";
    case JHNUSIND5:
      return "Alternative Friday before 4th of July Weekend [5 U.S.C. 6103(b)].";
    case JHNUSLBR:
      return "Labor Day, the first Monday in September.";
    case JHNUSMEM:
      return "Memorial Day, the last Monday in May.";
    case JHNUSMEM5:
      return "Friday before Memorial Day Weekend";
    case JHNUSMEM6:
      return "Saturday of Memorial Day Weekend";
    case JHNUSMLK:
      return "Dr. Martin Luther King, Jr. Day, the third Monday in January.";
    case JHNUSPRE:
      return "Washington's Birthday (Presidential Day) the third Monday in February.";
    case JHNUSTKS:
      return "Thanksgiving Day, the fourth Thursday in November.";
    case JHNUSTKS5:
      return "Friday after Thanksgiving.";
    case JHNUSVET:
      return "Veteran's Day, November 11.";
    case MO:
      return "Monthly at institution specified time.";
    case PM:
      return "Every afternoon at institution specified times.";
    case Q1H:
      return "Every hour at institution specified times.";
    case Q2H:
      return "Every 2 hours at institution specified times.";
    case Q3H:
      return "Every 3 hours at institution specified times.";
    case Q4H:
      return "Every 4 hours at institution specified time";
    case Q6H:
      return "Every 6 hours at institution specified time";
    case Q8H:
      return "Every 8 hours at institution specified times.";
    case QD:
      return "Every day at institution specified times.";
    case QID:
      return "Four times a day at institution specified time";
    case QOD:
      return "Every other day at institution specified times.";
    case TID:
      return "Three times a day at institution specified time";
    case WK:
      return "Weekly at institution specified time.";
    case NULL:
      return null;
    default:
      return "?";
    }
  }

  public String getDisplay() {
    switch (this) {
    case AM:
      return "AM";
    case BED:
      return "at bedtime";
    case BID:
      return "BID";
    case JB:
      return "JB";
    case JE:
      return "JE";
    case JH:
      return "GTSAbbreviationHolidays";
    case _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN:
      return "GTSAbbreviationHolidaysChristianRoman";
    case JHCHREAS:
      return "JHCHREAS";
    case JHCHRGFR:
      return "JHCHRGFR";
    case JHCHRNEW:
      return "JHCHRNEW";
    case JHCHRPEN:
      return "JHCHRPEN";
    case JHCHRXME:
      return "JHCHRXME";
    case JHCHRXMS:
      return "JHCHRXMS";
    case JHNNL:
      return "The Netherlands National Holidays";
    case JHNNLLD:
      return "Liberation day (May 5 every five years)";
    case JHNNLQD:
      return "Queen's day (April 30)";
    case JHNNLSK:
      return "Sinterklaas (December 5)";
    case JHNUS:
      return "GTSAbbreviationHolidaysUSNational";
    case JHNUSCLM:
      return "JHNUSCLM";
    case JHNUSIND:
      return "JHNUSIND";
    case JHNUSIND1:
      return "JHNUSIND1";
    case JHNUSIND5:
      return "JHNUSIND5";
    case JHNUSLBR:
      return "JHNUSLBR";
    case JHNUSMEM:
      return "JHNUSMEM";
    case JHNUSMEM5:
      return "JHNUSMEM5";
    case JHNUSMEM6:
      return "JHNUSMEM6";
    case JHNUSMLK:
      return "JHNUSMLK";
    case JHNUSPRE:
      return "JHNUSPRE";
    case JHNUSTKS:
      return "JHNUSTKS";
    case JHNUSTKS5:
      return "JHNUSTKS5";
    case JHNUSVET:
      return "JHNUSVET";
    case MO:
      return "monthly";
    case PM:
      return "PM";
    case Q1H:
      return "every hour";
    case Q2H:
      return "every 2 hours";
    case Q3H:
      return "every 3 hours";
    case Q4H:
      return "Q4H";
    case Q6H:
      return "Q6H";
    case Q8H:
      return "every 8 hours";
    case QD:
      return "QD";
    case QID:
      return "QID";
    case QOD:
      return "QOD";
    case TID:
      return "TID";
    case WK:
      return "weekly";
    case NULL:
      return null;
    default:
      return "?";
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy