001package org.hl7.fhir.dstu3.model.codesystems;
002
003/*-
004 * #%L
005 * org.hl7.fhir.dstu3
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/*
025  Copyright (c) 2011+, HL7, Inc.
026  All rights reserved.
027  
028  Redistribution and use in source and binary forms, with or without modification, 
029  are permitted provided that the following conditions are met:
030  
031   * Redistributions of source code must retain the above copyright notice, this 
032     list of conditions and the following disclaimer.
033   * Redistributions in binary form must reproduce the above copyright notice, 
034     this list of conditions and the following disclaimer in the documentation 
035     and/or other materials provided with the distribution.
036   * Neither the name of HL7 nor the names of its contributors may be used to 
037     endorse or promote products derived from this software without specific 
038     prior written permission.
039  
040  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
041  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
042  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
043  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
044  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
045  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
046  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
047  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
048  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
049  POSSIBILITY OF SUCH DAMAGE.
050  
051*/
052
053// Generated on Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0
054
055
056import org.hl7.fhir.exceptions.FHIRException;
057
058public enum V3GTSAbbreviation {
059
060        /**
061         * Every morning at institution specified times.
062         */
063        AM, 
064        /**
065         * Two times a day at institution specified time
066         */
067        BID, 
068        /**
069         * Regular business days (Monday to Friday excluding holidays)
070         */
071        JB, 
072        /**
073         * Regular weekends (Saturday and Sunday excluding holidays)
074         */
075        JE, 
076        /**
077         * Holidays
078         */
079        JH, 
080        /**
081         * Christian Holidays (Roman/Gregorian [Western] Tradition.)
082         */
083        _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN, 
084        /**
085         * 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.
086         */
087        JHCHREAS, 
088        /**
089         * Good Friday, is the Friday right before Easter Sunday.
090         */
091        JHCHRGFR, 
092        /**
093         * New Year's Day (January 1)
094         */
095        JHCHRNEW, 
096        /**
097         * Pentecost Sunday, is seven weeks after Easter (the 50th day of Easter).
098         */
099        JHCHRPEN, 
100        /**
101         * Christmas Eve (December 24)
102         */
103        JHCHRXME, 
104        /**
105         * Christmas Day (December 25)
106         */
107        JHCHRXMS, 
108        /**
109         * Description:The Netherlands National Holidays.
110         */
111        JHNNL, 
112        /**
113         * Description:Liberation day  (May 5 every five years)
114         */
115        JHNNLLD, 
116        /**
117         * Description:Queen's day (April 30)
118         */
119        JHNNLQD, 
120        /**
121         * Description:Sinterklaas (December 5)
122         */
123        JHNNLSK, 
124        /**
125         * United States National Holidays (public holidays for federal employees established by U.S. Federal law 5 U.S.C. 6103).
126         */
127        JHNUS, 
128        /**
129         * Columbus Day, the second Monday in October.
130         */
131        JHNUSCLM, 
132        /**
133         * Independence Day (4th of July)
134         */
135        JHNUSIND, 
136        /**
137         * Alternative Monday after 4th of July Weekend [5 U.S.C. 6103(b)].
138         */
139        JHNUSIND1, 
140        /**
141         * Alternative Friday before 4th of July Weekend [5 U.S.C. 6103(b)].
142         */
143        JHNUSIND5, 
144        /**
145         * Labor Day, the first Monday in September.
146         */
147        JHNUSLBR, 
148        /**
149         * Memorial Day, the last Monday in May.
150         */
151        JHNUSMEM, 
152        /**
153         * Friday before Memorial Day Weekend
154         */
155        JHNUSMEM5, 
156        /**
157         * Saturday of Memorial Day Weekend
158         */
159        JHNUSMEM6, 
160        /**
161         * Dr. Martin Luther King, Jr. Day, the third Monday in January.
162         */
163        JHNUSMLK, 
164        /**
165         * Washington's Birthday (Presidential Day) the third Monday in February.
166         */
167        JHNUSPRE, 
168        /**
169         * Thanksgiving Day, the fourth Thursday in November.
170         */
171        JHNUSTKS, 
172        /**
173         * Friday after Thanksgiving.
174         */
175        JHNUSTKS5, 
176        /**
177         * Veteran's Day, November 11.
178         */
179        JHNUSVET, 
180        /**
181         * Every afternoon at institution specified times.
182         */
183        PM, 
184        /**
185         * Every 4 hours at institution specified time
186         */
187        Q4H, 
188        /**
189         * Every 6 hours at institution specified time
190         */
191        Q6H, 
192        /**
193         * Every day at institution specified times.
194         */
195        QD, 
196        /**
197         * Four times a day at institution specified time
198         */
199        QID, 
200        /**
201         * Every other day at institution specified times.
202         */
203        QOD, 
204        /**
205         * Three times a day at institution specified time
206         */
207        TID, 
208        /**
209         * added to help the parsers
210         */
211        NULL;
212        public static V3GTSAbbreviation fromCode(String codeString) throws FHIRException {
213            if (codeString == null || "".equals(codeString))
214                return null;
215        if ("AM".equals(codeString))
216          return AM;
217        if ("BID".equals(codeString))
218          return BID;
219        if ("JB".equals(codeString))
220          return JB;
221        if ("JE".equals(codeString))
222          return JE;
223        if ("JH".equals(codeString))
224          return JH;
225        if ("_GTSAbbreviationHolidaysChristianRoman".equals(codeString))
226          return _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN;
227        if ("JHCHREAS".equals(codeString))
228          return JHCHREAS;
229        if ("JHCHRGFR".equals(codeString))
230          return JHCHRGFR;
231        if ("JHCHRNEW".equals(codeString))
232          return JHCHRNEW;
233        if ("JHCHRPEN".equals(codeString))
234          return JHCHRPEN;
235        if ("JHCHRXME".equals(codeString))
236          return JHCHRXME;
237        if ("JHCHRXMS".equals(codeString))
238          return JHCHRXMS;
239        if ("JHNNL".equals(codeString))
240          return JHNNL;
241        if ("JHNNLLD".equals(codeString))
242          return JHNNLLD;
243        if ("JHNNLQD".equals(codeString))
244          return JHNNLQD;
245        if ("JHNNLSK".equals(codeString))
246          return JHNNLSK;
247        if ("JHNUS".equals(codeString))
248          return JHNUS;
249        if ("JHNUSCLM".equals(codeString))
250          return JHNUSCLM;
251        if ("JHNUSIND".equals(codeString))
252          return JHNUSIND;
253        if ("JHNUSIND1".equals(codeString))
254          return JHNUSIND1;
255        if ("JHNUSIND5".equals(codeString))
256          return JHNUSIND5;
257        if ("JHNUSLBR".equals(codeString))
258          return JHNUSLBR;
259        if ("JHNUSMEM".equals(codeString))
260          return JHNUSMEM;
261        if ("JHNUSMEM5".equals(codeString))
262          return JHNUSMEM5;
263        if ("JHNUSMEM6".equals(codeString))
264          return JHNUSMEM6;
265        if ("JHNUSMLK".equals(codeString))
266          return JHNUSMLK;
267        if ("JHNUSPRE".equals(codeString))
268          return JHNUSPRE;
269        if ("JHNUSTKS".equals(codeString))
270          return JHNUSTKS;
271        if ("JHNUSTKS5".equals(codeString))
272          return JHNUSTKS5;
273        if ("JHNUSVET".equals(codeString))
274          return JHNUSVET;
275        if ("PM".equals(codeString))
276          return PM;
277        if ("Q4H".equals(codeString))
278          return Q4H;
279        if ("Q6H".equals(codeString))
280          return Q6H;
281        if ("QD".equals(codeString))
282          return QD;
283        if ("QID".equals(codeString))
284          return QID;
285        if ("QOD".equals(codeString))
286          return QOD;
287        if ("TID".equals(codeString))
288          return TID;
289        throw new FHIRException("Unknown V3GTSAbbreviation code '"+codeString+"'");
290        }
291        public String toCode() {
292          switch (this) {
293            case AM: return "AM";
294            case BID: return "BID";
295            case JB: return "JB";
296            case JE: return "JE";
297            case JH: return "JH";
298            case _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN: return "_GTSAbbreviationHolidaysChristianRoman";
299            case JHCHREAS: return "JHCHREAS";
300            case JHCHRGFR: return "JHCHRGFR";
301            case JHCHRNEW: return "JHCHRNEW";
302            case JHCHRPEN: return "JHCHRPEN";
303            case JHCHRXME: return "JHCHRXME";
304            case JHCHRXMS: return "JHCHRXMS";
305            case JHNNL: return "JHNNL";
306            case JHNNLLD: return "JHNNLLD";
307            case JHNNLQD: return "JHNNLQD";
308            case JHNNLSK: return "JHNNLSK";
309            case JHNUS: return "JHNUS";
310            case JHNUSCLM: return "JHNUSCLM";
311            case JHNUSIND: return "JHNUSIND";
312            case JHNUSIND1: return "JHNUSIND1";
313            case JHNUSIND5: return "JHNUSIND5";
314            case JHNUSLBR: return "JHNUSLBR";
315            case JHNUSMEM: return "JHNUSMEM";
316            case JHNUSMEM5: return "JHNUSMEM5";
317            case JHNUSMEM6: return "JHNUSMEM6";
318            case JHNUSMLK: return "JHNUSMLK";
319            case JHNUSPRE: return "JHNUSPRE";
320            case JHNUSTKS: return "JHNUSTKS";
321            case JHNUSTKS5: return "JHNUSTKS5";
322            case JHNUSVET: return "JHNUSVET";
323            case PM: return "PM";
324            case Q4H: return "Q4H";
325            case Q6H: return "Q6H";
326            case QD: return "QD";
327            case QID: return "QID";
328            case QOD: return "QOD";
329            case TID: return "TID";
330            default: return "?";
331          }
332        }
333        public String getSystem() {
334          return "http://hl7.org/fhir/v3/GTSAbbreviation";
335        }
336        public String getDefinition() {
337          switch (this) {
338            case AM: return "Every morning at institution specified times.";
339            case BID: return "Two times a day at institution specified time";
340            case JB: return "Regular business days (Monday to Friday excluding holidays)";
341            case JE: return "Regular weekends (Saturday and Sunday excluding holidays)";
342            case JH: return "Holidays";
343            case _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN: return "Christian Holidays (Roman/Gregorian [Western] Tradition.)";
344            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.";
345            case JHCHRGFR: return "Good Friday, is the Friday right before Easter Sunday.";
346            case JHCHRNEW: return "New Year's Day (January 1)";
347            case JHCHRPEN: return "Pentecost Sunday, is seven weeks after Easter (the 50th day of Easter).";
348            case JHCHRXME: return "Christmas Eve (December 24)";
349            case JHCHRXMS: return "Christmas Day (December 25)";
350            case JHNNL: return "Description:The Netherlands National Holidays.";
351            case JHNNLLD: return "Description:Liberation day  (May 5 every five years)";
352            case JHNNLQD: return "Description:Queen's day (April 30)";
353            case JHNNLSK: return "Description:Sinterklaas (December 5)";
354            case JHNUS: return "United States National Holidays (public holidays for federal employees established by U.S. Federal law 5 U.S.C. 6103).";
355            case JHNUSCLM: return "Columbus Day, the second Monday in October.";
356            case JHNUSIND: return "Independence Day (4th of July)";
357            case JHNUSIND1: return "Alternative Monday after 4th of July Weekend [5 U.S.C. 6103(b)].";
358            case JHNUSIND5: return "Alternative Friday before 4th of July Weekend [5 U.S.C. 6103(b)].";
359            case JHNUSLBR: return "Labor Day, the first Monday in September.";
360            case JHNUSMEM: return "Memorial Day, the last Monday in May.";
361            case JHNUSMEM5: return "Friday before Memorial Day Weekend";
362            case JHNUSMEM6: return "Saturday of Memorial Day Weekend";
363            case JHNUSMLK: return "Dr. Martin Luther King, Jr. Day, the third Monday in January.";
364            case JHNUSPRE: return "Washington's Birthday (Presidential Day) the third Monday in February.";
365            case JHNUSTKS: return "Thanksgiving Day, the fourth Thursday in November.";
366            case JHNUSTKS5: return "Friday after Thanksgiving.";
367            case JHNUSVET: return "Veteran's Day, November 11.";
368            case PM: return "Every afternoon at institution specified times.";
369            case Q4H: return "Every 4 hours at institution specified time";
370            case Q6H: return "Every 6 hours at institution specified time";
371            case QD: return "Every day at institution specified times.";
372            case QID: return "Four times a day at institution specified time";
373            case QOD: return "Every other day at institution specified times.";
374            case TID: return "Three times a day at institution specified time";
375            default: return "?";
376          }
377        }
378        public String getDisplay() {
379          switch (this) {
380            case AM: return "AM";
381            case BID: return "BID";
382            case JB: return "JB";
383            case JE: return "JE";
384            case JH: return "GTSAbbreviationHolidays";
385            case _GTSABBREVIATIONHOLIDAYSCHRISTIANROMAN: return "GTSAbbreviationHolidaysChristianRoman";
386            case JHCHREAS: return "JHCHREAS";
387            case JHCHRGFR: return "JHCHRGFR";
388            case JHCHRNEW: return "JHCHRNEW";
389            case JHCHRPEN: return "JHCHRPEN";
390            case JHCHRXME: return "JHCHRXME";
391            case JHCHRXMS: return "JHCHRXMS";
392            case JHNNL: return "The Netherlands National Holidays";
393            case JHNNLLD: return "Liberation day (May 5 every five years)";
394            case JHNNLQD: return "Queen's day (April 30)";
395            case JHNNLSK: return "Sinterklaas (December 5)";
396            case JHNUS: return "GTSAbbreviationHolidaysUSNational";
397            case JHNUSCLM: return "JHNUSCLM";
398            case JHNUSIND: return "JHNUSIND";
399            case JHNUSIND1: return "JHNUSIND1";
400            case JHNUSIND5: return "JHNUSIND5";
401            case JHNUSLBR: return "JHNUSLBR";
402            case JHNUSMEM: return "JHNUSMEM";
403            case JHNUSMEM5: return "JHNUSMEM5";
404            case JHNUSMEM6: return "JHNUSMEM6";
405            case JHNUSMLK: return "JHNUSMLK";
406            case JHNUSPRE: return "JHNUSPRE";
407            case JHNUSTKS: return "JHNUSTKS";
408            case JHNUSTKS5: return "JHNUSTKS5";
409            case JHNUSVET: return "JHNUSVET";
410            case PM: return "PM";
411            case Q4H: return "Q4H";
412            case Q6H: return "Q6H";
413            case QD: return "QD";
414            case QID: return "QID";
415            case QOD: return "QOD";
416            case TID: return "TID";
417            default: return "?";
418          }
419    }
420
421
422}
423