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