001package org.hl7.fhir.r4.model.codesystems;
002
003/*-
004 * #%L
005 * org.hl7.fhir.r4
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 Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0
054
055
056import org.hl7.fhir.exceptions.FHIRException;
057
058public enum Program {
059
060        /**
061         * null
062         */
063        _1, 
064        /**
065         * null
066         */
067        _2, 
068        /**
069         * null
070         */
071        _3, 
072        /**
073         * null
074         */
075        _4, 
076        /**
077         * null
078         */
079        _5, 
080        /**
081         * null
082         */
083        _6, 
084        /**
085         * null
086         */
087        _7, 
088        /**
089         * null
090         */
091        _8, 
092        /**
093         * null
094         */
095        _9, 
096        /**
097         * null
098         */
099        _10, 
100        /**
101         * null
102         */
103        _11, 
104        /**
105         * null
106         */
107        _12, 
108        /**
109         * null
110         */
111        _13, 
112        /**
113         * null
114         */
115        _14, 
116        /**
117         * null
118         */
119        _15, 
120        /**
121         * null
122         */
123        _16, 
124        /**
125         * null
126         */
127        _17, 
128        /**
129         * null
130         */
131        _18, 
132        /**
133         * null
134         */
135        _19, 
136        /**
137         * null
138         */
139        _20, 
140        /**
141         * null
142         */
143        _21, 
144        /**
145         * null
146         */
147        _22, 
148        /**
149         * null
150         */
151        _23, 
152        /**
153         * null
154         */
155        _24, 
156        /**
157         * null
158         */
159        _25, 
160        /**
161         * null
162         */
163        _26, 
164        /**
165         * null
166         */
167        _27, 
168        /**
169         * null
170         */
171        _28, 
172        /**
173         * null
174         */
175        _29, 
176        /**
177         * null
178         */
179        _30, 
180        /**
181         * null
182         */
183        _31, 
184        /**
185         * null
186         */
187        _32, 
188        /**
189         * null
190         */
191        _33, 
192        /**
193         * null
194         */
195        _34, 
196        /**
197         * null
198         */
199        _35, 
200        /**
201         * null
202         */
203        _36, 
204        /**
205         * null
206         */
207        _37, 
208        /**
209         * null
210         */
211        _38, 
212        /**
213         * null
214         */
215        _39, 
216        /**
217         * null
218         */
219        _40, 
220        /**
221         * null
222         */
223        _41, 
224        /**
225         * null
226         */
227        _42, 
228        /**
229         * null
230         */
231        _43, 
232        /**
233         * null
234         */
235        _44, 
236        /**
237         * null
238         */
239        _45, 
240        /**
241         * added to help the parsers
242         */
243        NULL;
244        public static Program fromCode(String codeString) throws FHIRException {
245            if (codeString == null || "".equals(codeString))
246                return null;
247        if ("1".equals(codeString))
248          return _1;
249        if ("2".equals(codeString))
250          return _2;
251        if ("3".equals(codeString))
252          return _3;
253        if ("4".equals(codeString))
254          return _4;
255        if ("5".equals(codeString))
256          return _5;
257        if ("6".equals(codeString))
258          return _6;
259        if ("7".equals(codeString))
260          return _7;
261        if ("8".equals(codeString))
262          return _8;
263        if ("9".equals(codeString))
264          return _9;
265        if ("10".equals(codeString))
266          return _10;
267        if ("11".equals(codeString))
268          return _11;
269        if ("12".equals(codeString))
270          return _12;
271        if ("13".equals(codeString))
272          return _13;
273        if ("14".equals(codeString))
274          return _14;
275        if ("15".equals(codeString))
276          return _15;
277        if ("16".equals(codeString))
278          return _16;
279        if ("17".equals(codeString))
280          return _17;
281        if ("18".equals(codeString))
282          return _18;
283        if ("19".equals(codeString))
284          return _19;
285        if ("20".equals(codeString))
286          return _20;
287        if ("21".equals(codeString))
288          return _21;
289        if ("22".equals(codeString))
290          return _22;
291        if ("23".equals(codeString))
292          return _23;
293        if ("24".equals(codeString))
294          return _24;
295        if ("25".equals(codeString))
296          return _25;
297        if ("26".equals(codeString))
298          return _26;
299        if ("27".equals(codeString))
300          return _27;
301        if ("28".equals(codeString))
302          return _28;
303        if ("29".equals(codeString))
304          return _29;
305        if ("30".equals(codeString))
306          return _30;
307        if ("31".equals(codeString))
308          return _31;
309        if ("32".equals(codeString))
310          return _32;
311        if ("33".equals(codeString))
312          return _33;
313        if ("34".equals(codeString))
314          return _34;
315        if ("35".equals(codeString))
316          return _35;
317        if ("36".equals(codeString))
318          return _36;
319        if ("37".equals(codeString))
320          return _37;
321        if ("38".equals(codeString))
322          return _38;
323        if ("39".equals(codeString))
324          return _39;
325        if ("40".equals(codeString))
326          return _40;
327        if ("41".equals(codeString))
328          return _41;
329        if ("42".equals(codeString))
330          return _42;
331        if ("43".equals(codeString))
332          return _43;
333        if ("44".equals(codeString))
334          return _44;
335        if ("45".equals(codeString))
336          return _45;
337        throw new FHIRException("Unknown Program code '"+codeString+"'");
338        }
339        public String toCode() {
340          switch (this) {
341            case _1: return "1";
342            case _2: return "2";
343            case _3: return "3";
344            case _4: return "4";
345            case _5: return "5";
346            case _6: return "6";
347            case _7: return "7";
348            case _8: return "8";
349            case _9: return "9";
350            case _10: return "10";
351            case _11: return "11";
352            case _12: return "12";
353            case _13: return "13";
354            case _14: return "14";
355            case _15: return "15";
356            case _16: return "16";
357            case _17: return "17";
358            case _18: return "18";
359            case _19: return "19";
360            case _20: return "20";
361            case _21: return "21";
362            case _22: return "22";
363            case _23: return "23";
364            case _24: return "24";
365            case _25: return "25";
366            case _26: return "26";
367            case _27: return "27";
368            case _28: return "28";
369            case _29: return "29";
370            case _30: return "30";
371            case _31: return "31";
372            case _32: return "32";
373            case _33: return "33";
374            case _34: return "34";
375            case _35: return "35";
376            case _36: return "36";
377            case _37: return "37";
378            case _38: return "38";
379            case _39: return "39";
380            case _40: return "40";
381            case _41: return "41";
382            case _42: return "42";
383            case _43: return "43";
384            case _44: return "44";
385            case _45: return "45";
386            default: return "?";
387          }
388        }
389        public String getSystem() {
390          return "http://terminology.hl7.org/CodeSystem/program";
391        }
392        public String getDefinition() {
393          switch (this) {
394            case _1: return "";
395            case _2: return "";
396            case _3: return "";
397            case _4: return "";
398            case _5: return "";
399            case _6: return "";
400            case _7: return "";
401            case _8: return "";
402            case _9: return "";
403            case _10: return "";
404            case _11: return "";
405            case _12: return "";
406            case _13: return "";
407            case _14: return "";
408            case _15: return "";
409            case _16: return "";
410            case _17: return "";
411            case _18: return "";
412            case _19: return "";
413            case _20: return "";
414            case _21: return "";
415            case _22: return "";
416            case _23: return "";
417            case _24: return "";
418            case _25: return "";
419            case _26: return "";
420            case _27: return "";
421            case _28: return "";
422            case _29: return "";
423            case _30: return "";
424            case _31: return "";
425            case _32: return "";
426            case _33: return "";
427            case _34: return "";
428            case _35: return "";
429            case _36: return "";
430            case _37: return "";
431            case _38: return "";
432            case _39: return "";
433            case _40: return "";
434            case _41: return "";
435            case _42: return "";
436            case _43: return "";
437            case _44: return "";
438            case _45: return "";
439            default: return "?";
440          }
441        }
442        public String getDisplay() {
443          switch (this) {
444            case _1: return "Acquired Brain Injury (ABI) ProgramĀ ";
445            case _2: return "ABI Slow To Recover (ABI STR) Program";
446            case _3: return "Access Programs";
447            case _4: return "Adult and Further Education (ACFE) Program";
448            case _5: return "Adult Day Activity and Support Services (ADASS) Program";
449            case _6: return "Adult Day Care Program";
450            case _7: return "ATSS (Adult Training Support Service)";
451            case _8: return "Community Aged Care Packages (CACP)";
452            case _9: return "Care Coordination & Supplementary Services (CCSS)";
453            case _10: return "Cognitive Dementia Memory Service (CDAMS)";
454            case _11: return "ChildFIRST";
455            case _12: return "Children's Contact Services";
456            case _13: return "Community Visitors Scheme";
457            case _14: return "CPP (Community Partners Program)";
458            case _15: return "Closing the Gap (CTG)";
459            case _16: return "Coordinated Veterans' Care (CVC) Program";
460            case _17: return "Day Program";
461            case _18: return "Drop In Program";
462            case _19: return "Early Years Program";
463            case _20: return "Employee Assistance Program";
464            case _21: return "Home And Community Care (HACC)";
465            case _22: return "Hospital Admission Risk Program (HARP)";
466            case _23: return "Hospital in the Home (HITH) Program";
467            case _24: return "ICTP (Intensive Community Treatment Program)";
468            case _25: return "IFSS (Intensive Family Support Program)";
469            case _26: return "JPET (Job Placement, Education and Training)";
470            case _27: return "Koori Juvenile Justice Program";
471            case _28: return "Language Literacy and Numeracy Program";
472            case _29: return "Life Skills Program";
473            case _30: return "LMP (Lifestyle Modification Program)";
474            case _31: return "MedsCheck Program";
475            case _32: return "Methadone/Buprenorphine Program";
476            case _33: return "National Disabilities Insurance Scheme (NDIS)";
477            case _34: return "National Diabetes Services Scheme (NDSS)";
478            case _35: return "Needle/Syringe Program";
479            case _36: return "nPEP Program";
480            case _37: return "Personal Support Program";
481            case _38: return "Partners in Recovery (PIR) Program";
482            case _39: return "Pre-employment Program";
483            case _40: return "Reconnect Program";
484            case _41: return "Sexual Abuse Counselling and Prevention Program (SACPP)";
485            case _42: return "Social Support Programs";
486            case _43: return "Supported Residential Service (SRS)";
487            case _44: return "Tasmanian Aboriginal Centre (TAC)";
488            case _45: return "Victim's Assistance Program";
489            default: return "?";
490          }
491    }
492
493
494}
495