001package org.hl7.fhir.instance.model.valuesets;
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, Aug 27, 2015 19:45-0400 for FHIR v0.5.0
033
034
035public enum VaccinationProtocolDoseTarget {
036
037        /**
038         * null
039         */
040        CRS, 
041        /**
042         * null
043         */
044        DIP, 
045        /**
046         * null
047         */
048        MEA, 
049        /**
050         * null
051         */
052        MUM, 
053        /**
054         * null
055         */
056        RUB, 
057        /**
058         * null
059         */
060        TET, 
061        /**
062         * null
063         */
064        HIB, 
065        /**
066         * null
067         */
068        PER, 
069        /**
070         * null
071         */
072        POL, 
073        /**
074         * added to help the parsers
075         */
076        NULL;
077        public static VaccinationProtocolDoseTarget fromCode(String codeString) throws Exception {
078            if (codeString == null || "".equals(codeString))
079                return null;
080        if ("crs".equals(codeString))
081          return CRS;
082        if ("dip".equals(codeString))
083          return DIP;
084        if ("mea".equals(codeString))
085          return MEA;
086        if ("mum".equals(codeString))
087          return MUM;
088        if ("rub".equals(codeString))
089          return RUB;
090        if ("tet".equals(codeString))
091          return TET;
092        if ("hib".equals(codeString))
093          return HIB;
094        if ("per".equals(codeString))
095          return PER;
096        if ("pol".equals(codeString))
097          return POL;
098        throw new Exception("Unknown VaccinationProtocolDoseTarget code '"+codeString+"'");
099        }
100        public String toCode() {
101          switch (this) {
102            case CRS: return "crs";
103            case DIP: return "dip";
104            case MEA: return "mea";
105            case MUM: return "mum";
106            case RUB: return "rub";
107            case TET: return "tet";
108            case HIB: return "hib";
109            case PER: return "per";
110            case POL: return "pol";
111            default: return "?";
112          }
113        }
114        public String getSystem() {
115          return "http://hl7.org/fhir/vaccination-protocol-dose-target";
116        }
117        public String getDefinition() {
118          switch (this) {
119            case CRS: return "";
120            case DIP: return "";
121            case MEA: return "";
122            case MUM: return "";
123            case RUB: return "";
124            case TET: return "";
125            case HIB: return "";
126            case PER: return "";
127            case POL: return "";
128            default: return "?";
129          }
130        }
131        public String getDisplay() {
132          switch (this) {
133            case CRS: return "Congenital Rubella Syndrome";
134            case DIP: return "Diptheria";
135            case MEA: return "Measles";
136            case MUM: return "Mumps";
137            case RUB: return "Rubella";
138            case TET: return "Tetanus";
139            case HIB: return "Haemophilus influenzae type b";
140            case PER: return "Pertussis";
141            case POL: return "Poliomyelitis";
142            default: return "?";
143          }
144    }
145
146
147}
148