001package org.hl7.fhir.r4.model.codesystems;
002
003
004
005
006/*
007  Copyright (c) 2011+, HL7, Inc.
008  All rights reserved.
009  
010  Redistribution and use in source and binary forms, with or without modification, 
011  are permitted provided that the following conditions are met:
012  
013   * Redistributions of source code must retain the above copyright notice, this 
014     list of conditions and the following disclaimer.
015   * Redistributions in binary form must reproduce the above copyright notice, 
016     this list of conditions and the following disclaimer in the documentation 
017     and/or other materials provided with the distribution.
018   * Neither the name of HL7 nor the names of its contributors may be used to 
019     endorse or promote products derived from this software without specific 
020     prior written permission.
021  
022  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
023  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
024  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
025  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
026  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
027  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
028  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
029  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
030  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
031  POSSIBILITY OF SUCH DAMAGE.
032  
033*/
034
035// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0
036
037
038import org.hl7.fhir.exceptions.FHIRException;
039
040public enum Program {
041
042        /**
043         * null
044         */
045        _1, 
046        /**
047         * null
048         */
049        _2, 
050        /**
051         * null
052         */
053        _3, 
054        /**
055         * null
056         */
057        _4, 
058        /**
059         * null
060         */
061        _5, 
062        /**
063         * null
064         */
065        _6, 
066        /**
067         * null
068         */
069        _7, 
070        /**
071         * null
072         */
073        _8, 
074        /**
075         * null
076         */
077        _9, 
078        /**
079         * null
080         */
081        _10, 
082        /**
083         * null
084         */
085        _11, 
086        /**
087         * null
088         */
089        _12, 
090        /**
091         * null
092         */
093        _13, 
094        /**
095         * null
096         */
097        _14, 
098        /**
099         * null
100         */
101        _15, 
102        /**
103         * null
104         */
105        _16, 
106        /**
107         * null
108         */
109        _17, 
110        /**
111         * null
112         */
113        _18, 
114        /**
115         * null
116         */
117        _19, 
118        /**
119         * null
120         */
121        _20, 
122        /**
123         * null
124         */
125        _21, 
126        /**
127         * null
128         */
129        _22, 
130        /**
131         * null
132         */
133        _23, 
134        /**
135         * null
136         */
137        _24, 
138        /**
139         * null
140         */
141        _25, 
142        /**
143         * null
144         */
145        _26, 
146        /**
147         * null
148         */
149        _27, 
150        /**
151         * null
152         */
153        _28, 
154        /**
155         * null
156         */
157        _29, 
158        /**
159         * null
160         */
161        _30, 
162        /**
163         * null
164         */
165        _31, 
166        /**
167         * null
168         */
169        _32, 
170        /**
171         * null
172         */
173        _33, 
174        /**
175         * null
176         */
177        _34, 
178        /**
179         * null
180         */
181        _35, 
182        /**
183         * null
184         */
185        _36, 
186        /**
187         * null
188         */
189        _37, 
190        /**
191         * null
192         */
193        _38, 
194        /**
195         * null
196         */
197        _39, 
198        /**
199         * null
200         */
201        _40, 
202        /**
203         * null
204         */
205        _41, 
206        /**
207         * null
208         */
209        _42, 
210        /**
211         * null
212         */
213        _43, 
214        /**
215         * null
216         */
217        _44, 
218        /**
219         * null
220         */
221        _45, 
222        /**
223         * added to help the parsers
224         */
225        NULL;
226        public static Program fromCode(String codeString) throws FHIRException {
227            if (codeString == null || "".equals(codeString))
228                return null;
229        if ("1".equals(codeString))
230          return _1;
231        if ("2".equals(codeString))
232          return _2;
233        if ("3".equals(codeString))
234          return _3;
235        if ("4".equals(codeString))
236          return _4;
237        if ("5".equals(codeString))
238          return _5;
239        if ("6".equals(codeString))
240          return _6;
241        if ("7".equals(codeString))
242          return _7;
243        if ("8".equals(codeString))
244          return _8;
245        if ("9".equals(codeString))
246          return _9;
247        if ("10".equals(codeString))
248          return _10;
249        if ("11".equals(codeString))
250          return _11;
251        if ("12".equals(codeString))
252          return _12;
253        if ("13".equals(codeString))
254          return _13;
255        if ("14".equals(codeString))
256          return _14;
257        if ("15".equals(codeString))
258          return _15;
259        if ("16".equals(codeString))
260          return _16;
261        if ("17".equals(codeString))
262          return _17;
263        if ("18".equals(codeString))
264          return _18;
265        if ("19".equals(codeString))
266          return _19;
267        if ("20".equals(codeString))
268          return _20;
269        if ("21".equals(codeString))
270          return _21;
271        if ("22".equals(codeString))
272          return _22;
273        if ("23".equals(codeString))
274          return _23;
275        if ("24".equals(codeString))
276          return _24;
277        if ("25".equals(codeString))
278          return _25;
279        if ("26".equals(codeString))
280          return _26;
281        if ("27".equals(codeString))
282          return _27;
283        if ("28".equals(codeString))
284          return _28;
285        if ("29".equals(codeString))
286          return _29;
287        if ("30".equals(codeString))
288          return _30;
289        if ("31".equals(codeString))
290          return _31;
291        if ("32".equals(codeString))
292          return _32;
293        if ("33".equals(codeString))
294          return _33;
295        if ("34".equals(codeString))
296          return _34;
297        if ("35".equals(codeString))
298          return _35;
299        if ("36".equals(codeString))
300          return _36;
301        if ("37".equals(codeString))
302          return _37;
303        if ("38".equals(codeString))
304          return _38;
305        if ("39".equals(codeString))
306          return _39;
307        if ("40".equals(codeString))
308          return _40;
309        if ("41".equals(codeString))
310          return _41;
311        if ("42".equals(codeString))
312          return _42;
313        if ("43".equals(codeString))
314          return _43;
315        if ("44".equals(codeString))
316          return _44;
317        if ("45".equals(codeString))
318          return _45;
319        throw new FHIRException("Unknown Program code '"+codeString+"'");
320        }
321        public String toCode() {
322          switch (this) {
323            case _1: return "1";
324            case _2: return "2";
325            case _3: return "3";
326            case _4: return "4";
327            case _5: return "5";
328            case _6: return "6";
329            case _7: return "7";
330            case _8: return "8";
331            case _9: return "9";
332            case _10: return "10";
333            case _11: return "11";
334            case _12: return "12";
335            case _13: return "13";
336            case _14: return "14";
337            case _15: return "15";
338            case _16: return "16";
339            case _17: return "17";
340            case _18: return "18";
341            case _19: return "19";
342            case _20: return "20";
343            case _21: return "21";
344            case _22: return "22";
345            case _23: return "23";
346            case _24: return "24";
347            case _25: return "25";
348            case _26: return "26";
349            case _27: return "27";
350            case _28: return "28";
351            case _29: return "29";
352            case _30: return "30";
353            case _31: return "31";
354            case _32: return "32";
355            case _33: return "33";
356            case _34: return "34";
357            case _35: return "35";
358            case _36: return "36";
359            case _37: return "37";
360            case _38: return "38";
361            case _39: return "39";
362            case _40: return "40";
363            case _41: return "41";
364            case _42: return "42";
365            case _43: return "43";
366            case _44: return "44";
367            case _45: return "45";
368            default: return "?";
369          }
370        }
371        public String getSystem() {
372          return "http://terminology.hl7.org/CodeSystem/program";
373        }
374        public String getDefinition() {
375          switch (this) {
376            case _1: return "";
377            case _2: return "";
378            case _3: return "";
379            case _4: return "";
380            case _5: return "";
381            case _6: return "";
382            case _7: return "";
383            case _8: return "";
384            case _9: return "";
385            case _10: return "";
386            case _11: return "";
387            case _12: return "";
388            case _13: return "";
389            case _14: return "";
390            case _15: return "";
391            case _16: return "";
392            case _17: return "";
393            case _18: return "";
394            case _19: return "";
395            case _20: return "";
396            case _21: return "";
397            case _22: return "";
398            case _23: return "";
399            case _24: return "";
400            case _25: return "";
401            case _26: return "";
402            case _27: return "";
403            case _28: return "";
404            case _29: return "";
405            case _30: return "";
406            case _31: return "";
407            case _32: return "";
408            case _33: return "";
409            case _34: return "";
410            case _35: return "";
411            case _36: return "";
412            case _37: return "";
413            case _38: return "";
414            case _39: return "";
415            case _40: return "";
416            case _41: return "";
417            case _42: return "";
418            case _43: return "";
419            case _44: return "";
420            case _45: return "";
421            default: return "?";
422          }
423        }
424        public String getDisplay() {
425          switch (this) {
426            case _1: return "Acquired Brain Injury (ABI) ProgramĀ ";
427            case _2: return "ABI Slow To Recover (ABI STR) Program";
428            case _3: return "Access Programs";
429            case _4: return "Adult and Further Education (ACFE) Program";
430            case _5: return "Adult Day Activity and Support Services (ADASS) Program";
431            case _6: return "Adult Day Care Program";
432            case _7: return "ATSS (Adult Training Support Service)";
433            case _8: return "Community Aged Care Packages (CACP)";
434            case _9: return "Care Coordination & Supplementary Services (CCSS)";
435            case _10: return "Cognitive Dementia Memory Service (CDAMS)";
436            case _11: return "ChildFIRST";
437            case _12: return "Children's Contact Services";
438            case _13: return "Community Visitors Scheme";
439            case _14: return "CPP (Community Partners Program)";
440            case _15: return "Closing the Gap (CTG)";
441            case _16: return "Coordinated Veterans' Care (CVC) Program";
442            case _17: return "Day Program";
443            case _18: return "Drop In Program";
444            case _19: return "Early Years Program";
445            case _20: return "Employee Assistance Program";
446            case _21: return "Home And Community Care (HACC)";
447            case _22: return "Hospital Admission Risk Program (HARP)";
448            case _23: return "Hospital in the Home (HITH) Program";
449            case _24: return "ICTP (Intensive Community Treatment Program)";
450            case _25: return "IFSS (Intensive Family Support Program)";
451            case _26: return "JPET (Job Placement, Education and Training)";
452            case _27: return "Koori Juvenile Justice Program";
453            case _28: return "Language Literacy and Numeracy Program";
454            case _29: return "Life Skills Program";
455            case _30: return "LMP (Lifestyle Modification Program)";
456            case _31: return "MedsCheck Program";
457            case _32: return "Methadone/Buprenorphine Program";
458            case _33: return "National Disabilities Insurance Scheme (NDIS)";
459            case _34: return "National Diabetes Services Scheme (NDSS)";
460            case _35: return "Needle/Syringe Program";
461            case _36: return "nPEP Program";
462            case _37: return "Personal Support Program";
463            case _38: return "Partners in Recovery (PIR) Program";
464            case _39: return "Pre-employment Program";
465            case _40: return "Reconnect Program";
466            case _41: return "Sexual Abuse Counselling and Prevention Program (SACPP)";
467            case _42: return "Social Support Programs";
468            case _43: return "Supported Residential Service (SRS)";
469            case _44: return "Tasmanian Aboriginal Centre (TAC)";
470            case _45: return "Victim's Assistance Program";
471            default: return "?";
472          }
473    }
474
475
476}