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 V3TriggerEventID {
041
042        /**
043         * Description:
044         */
045        POLBTE004000UV, 
046        /**
047         * Description:
048         */
049        POLBTE004001UV, 
050        /**
051         * Description:
052         */
053        POLBTE004002UV, 
054        /**
055         * Description:
056         */
057        POLBTE004007UV, 
058        /**
059         * Description:
060         */
061        POLBTE004100UV, 
062        /**
063         * Description:
064         */
065        POLBTE004102UV, 
066        /**
067         * Description:
068         */
069        POLBTE004200UV, 
070        /**
071         * Description:
072         */
073        POLBTE004201UV, 
074        /**
075         * Description:
076         */
077        POLBTE004202UV, 
078        /**
079         * Description:
080         */
081        POLBTE004301UV, 
082        /**
083         * Description:
084         */
085        POLBTE004500UV, 
086        /**
087         * added to help the parsers
088         */
089        NULL;
090        public static V3TriggerEventID fromCode(String codeString) throws FHIRException {
091            if (codeString == null || "".equals(codeString))
092                return null;
093        if ("POLB_TE004000UV".equals(codeString))
094          return POLBTE004000UV;
095        if ("POLB_TE004001UV".equals(codeString))
096          return POLBTE004001UV;
097        if ("POLB_TE004002UV".equals(codeString))
098          return POLBTE004002UV;
099        if ("POLB_TE004007UV".equals(codeString))
100          return POLBTE004007UV;
101        if ("POLB_TE004100UV".equals(codeString))
102          return POLBTE004100UV;
103        if ("POLB_TE004102UV".equals(codeString))
104          return POLBTE004102UV;
105        if ("POLB_TE004200UV".equals(codeString))
106          return POLBTE004200UV;
107        if ("POLB_TE004201UV".equals(codeString))
108          return POLBTE004201UV;
109        if ("POLB_TE004202UV".equals(codeString))
110          return POLBTE004202UV;
111        if ("POLB_TE004301UV".equals(codeString))
112          return POLBTE004301UV;
113        if ("POLB_TE004500UV".equals(codeString))
114          return POLBTE004500UV;
115        throw new FHIRException("Unknown V3TriggerEventID code '"+codeString+"'");
116        }
117        public String toCode() {
118          switch (this) {
119            case POLBTE004000UV: return "POLB_TE004000UV";
120            case POLBTE004001UV: return "POLB_TE004001UV";
121            case POLBTE004002UV: return "POLB_TE004002UV";
122            case POLBTE004007UV: return "POLB_TE004007UV";
123            case POLBTE004100UV: return "POLB_TE004100UV";
124            case POLBTE004102UV: return "POLB_TE004102UV";
125            case POLBTE004200UV: return "POLB_TE004200UV";
126            case POLBTE004201UV: return "POLB_TE004201UV";
127            case POLBTE004202UV: return "POLB_TE004202UV";
128            case POLBTE004301UV: return "POLB_TE004301UV";
129            case POLBTE004500UV: return "POLB_TE004500UV";
130            default: return "?";
131          }
132        }
133        public String getSystem() {
134          return "http://terminology.hl7.org/CodeSystem/v3-triggerEventID";
135        }
136        public String getDefinition() {
137          switch (this) {
138            case POLBTE004000UV: return "Description:";
139            case POLBTE004001UV: return "Description:";
140            case POLBTE004002UV: return "Description:";
141            case POLBTE004007UV: return "Description:";
142            case POLBTE004100UV: return "Description:";
143            case POLBTE004102UV: return "Description:";
144            case POLBTE004200UV: return "Description:";
145            case POLBTE004201UV: return "Description:";
146            case POLBTE004202UV: return "Description:";
147            case POLBTE004301UV: return "Description:";
148            case POLBTE004500UV: return "Description:";
149            default: return "?";
150          }
151        }
152        public String getDisplay() {
153          switch (this) {
154            case POLBTE004000UV: return "Result Status";
155            case POLBTE004001UV: return "Result Confirm";
156            case POLBTE004002UV: return "Result Reject";
157            case POLBTE004007UV: return "Result Tracking";
158            case POLBTE004100UV: return "Result in Progress";
159            case POLBTE004102UV: return "Result Activate";
160            case POLBTE004200UV: return "Result Complete with Fulfillment";
161            case POLBTE004201UV: return "Result Corrected";
162            case POLBTE004202UV: return "Result Complete";
163            case POLBTE004301UV: return "Result Abort";
164            case POLBTE004500UV: return "Result Nullify";
165            default: return "?";
166          }
167    }
168
169
170}