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