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 V3Hl7VoteResolution {
058
059        /**
060         * Description: An abstract concept grouping resolutions that can be applied to affirmative ballot comments.
061         */
062        AFFIRMATIVERESOLUTION, 
063        /**
064         * Description: The recommended change has been deferred to consideration for a future release.
065         */
066        AFFDEF, 
067        /**
068         * Description: The recommended change has been incorporated or identified issue has been answered.
069         */
070        AFFI, 
071        /**
072         * Description: The recommended change has been refused and is not expected to be incorporated.
073         */
074        AFFR, 
075        /**
076         * Description: An abstract concept grouping resolutions that can be applied to negative ballot comments.
077         */
078        NEGATIVERESOLUTION, 
079        /**
080         * Description: Responsible group has recommended that the negative vote be considered non-substantive.  (Issue raised does not provide sufficiently convincing reason to make changes to the item under ballot, or otherwise impede its adoption.)
081         */
082        NONSUBP, 
083        /**
084         * Description: Ballot group has voted and declared the negative vote non-substantive.
085         */
086        NONSUBV, 
087        /**
088         * Description: Responsible group has recommended that the negative vote be considered not-related.  (Issue raised is not related to the current scope of the item under ballot, or does not prevent the item under ballot for being used for its defined intent.  Recommended changes may be considered as part of future versions.)  (Perhaps after further reading or explanation).
089         */
090        NOTRELP, 
091        /**
092         * Description: Ballot group has voted and declared the negative vote non-related.
093         */
094        NOTRELV, 
095        /**
096         * Description: Committee identifies that the same issue has been raised as part of a previous ballot on the same element version and was found by the ballot group to be non-substantive or not related.)
097         */
098        PREVCONS, 
099        /**
100         * Description: Voter has formally withdrawn their vote or comment as having been in error.  (Perhaps after further reading or explanation).
101         */
102        RETRACT, 
103        /**
104         * Description: Vote has not yet gone through resolution.
105         */
106        UNRESOLVED, 
107        /**
108         * Description: Voter has formally withdrawn their vote or comment on the basis of agreed changes or proposed future changes.
109         */
110        WITHDRAW, 
111        /**
112         * added to help the parsers
113         */
114        NULL;
115        public static V3Hl7VoteResolution fromCode(String codeString) throws FHIRException {
116            if (codeString == null || "".equals(codeString))
117                return null;
118        if ("affirmativeResolution".equals(codeString))
119          return AFFIRMATIVERESOLUTION;
120        if ("affdef".equals(codeString))
121          return AFFDEF;
122        if ("affi".equals(codeString))
123          return AFFI;
124        if ("affr".equals(codeString))
125          return AFFR;
126        if ("negativeResolution".equals(codeString))
127          return NEGATIVERESOLUTION;
128        if ("nonsubp".equals(codeString))
129          return NONSUBP;
130        if ("nonsubv".equals(codeString))
131          return NONSUBV;
132        if ("notrelp".equals(codeString))
133          return NOTRELP;
134        if ("notrelv".equals(codeString))
135          return NOTRELV;
136        if ("prevcons".equals(codeString))
137          return PREVCONS;
138        if ("retract".equals(codeString))
139          return RETRACT;
140        if ("unresolved".equals(codeString))
141          return UNRESOLVED;
142        if ("withdraw".equals(codeString))
143          return WITHDRAW;
144        throw new FHIRException("Unknown V3Hl7VoteResolution code '"+codeString+"'");
145        }
146        public String toCode() {
147          switch (this) {
148            case AFFIRMATIVERESOLUTION: return "affirmativeResolution";
149            case AFFDEF: return "affdef";
150            case AFFI: return "affi";
151            case AFFR: return "affr";
152            case NEGATIVERESOLUTION: return "negativeResolution";
153            case NONSUBP: return "nonsubp";
154            case NONSUBV: return "nonsubv";
155            case NOTRELP: return "notrelp";
156            case NOTRELV: return "notrelv";
157            case PREVCONS: return "prevcons";
158            case RETRACT: return "retract";
159            case UNRESOLVED: return "unresolved";
160            case WITHDRAW: return "withdraw";
161            default: return "?";
162          }
163        }
164        public String getSystem() {
165          return "http://terminology.hl7.org/CodeSystem/v3-hl7VoteResolution";
166        }
167        public String getDefinition() {
168          switch (this) {
169            case AFFIRMATIVERESOLUTION: return "Description: An abstract concept grouping resolutions that can be applied to affirmative ballot comments.";
170            case AFFDEF: return "Description: The recommended change has been deferred to consideration for a future release.";
171            case AFFI: return "Description: The recommended change has been incorporated or identified issue has been answered.";
172            case AFFR: return "Description: The recommended change has been refused and is not expected to be incorporated.";
173            case NEGATIVERESOLUTION: return "Description: An abstract concept grouping resolutions that can be applied to negative ballot comments.";
174            case NONSUBP: return "Description: Responsible group has recommended that the negative vote be considered non-substantive.  (Issue raised does not provide sufficiently convincing reason to make changes to the item under ballot, or otherwise impede its adoption.)";
175            case NONSUBV: return "Description: Ballot group has voted and declared the negative vote non-substantive.";
176            case NOTRELP: return "Description: Responsible group has recommended that the negative vote be considered not-related.  (Issue raised is not related to the current scope of the item under ballot, or does not prevent the item under ballot for being used for its defined intent.  Recommended changes may be considered as part of future versions.)  (Perhaps after further reading or explanation).";
177            case NOTRELV: return "Description: Ballot group has voted and declared the negative vote non-related.";
178            case PREVCONS: return "Description: Committee identifies that the same issue has been raised as part of a previous ballot on the same element version and was found by the ballot group to be non-substantive or not related.)";
179            case RETRACT: return "Description: Voter has formally withdrawn their vote or comment as having been in error.  (Perhaps after further reading or explanation).";
180            case UNRESOLVED: return "Description: Vote has not yet gone through resolution.";
181            case WITHDRAW: return "Description: Voter has formally withdrawn their vote or comment on the basis of agreed changes or proposed future changes.";
182            default: return "?";
183          }
184        }
185        public String getDisplay() {
186          switch (this) {
187            case AFFIRMATIVERESOLUTION: return "affirmative resolution";
188            case AFFDEF: return "affirmative-deferred";
189            case AFFI: return "affirmative-incorporated";
190            case AFFR: return "affirmative-rejected";
191            case NEGATIVERESOLUTION: return "negative resolution";
192            case NONSUBP: return "non-substantive proposed";
193            case NONSUBV: return "non-substantive voted";
194            case NOTRELP: return "not related proposed";
195            case NOTRELV: return "not related voted";
196            case PREVCONS: return "previously considered";
197            case RETRACT: return "retracted";
198            case UNRESOLVED: return "unresolved";
199            case WITHDRAW: return "withdrawn";
200            default: return "?";
201          }
202    }
203
204
205}
206