001package org.hl7.fhir.r4.model.codesystems;
002
003/*-
004 * #%L
005 * org.hl7.fhir.r4
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/*
025  Copyright (c) 2011+, HL7, Inc.
026  All rights reserved.
027  
028  Redistribution and use in source and binary forms, with or without modification, 
029  are permitted provided that the following conditions are met:
030  
031   * Redistributions of source code must retain the above copyright notice, this 
032     list of conditions and the following disclaimer.
033   * Redistributions in binary form must reproduce the above copyright notice, 
034     this list of conditions and the following disclaimer in the documentation 
035     and/or other materials provided with the distribution.
036   * Neither the name of HL7 nor the names of its contributors may be used to 
037     endorse or promote products derived from this software without specific 
038     prior written permission.
039  
040  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
041  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
042  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
043  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
044  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
045  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
046  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
047  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
048  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
049  POSSIBILITY OF SUCH DAMAGE.
050  
051*/
052
053// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0
054
055
056import org.hl7.fhir.exceptions.FHIRException;
057
058public enum V3Hl7VoteResolution {
059
060        /**
061         * Description: An abstract concept grouping resolutions that can be applied to affirmative ballot comments.
062         */
063        AFFIRMATIVERESOLUTION, 
064        /**
065         * Description: The recommended change has been deferred to consideration for a future release.
066         */
067        AFFDEF, 
068        /**
069         * Description: The recommended change has been incorporated or identified issue has been answered.
070         */
071        AFFI, 
072        /**
073         * Description: The recommended change has been refused and is not expected to be incorporated.
074         */
075        AFFR, 
076        /**
077         * Description: An abstract concept grouping resolutions that can be applied to negative ballot comments.
078         */
079        NEGATIVERESOLUTION, 
080        /**
081         * 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.)
082         */
083        NONSUBP, 
084        /**
085         * Description: Ballot group has voted and declared the negative vote non-substantive.
086         */
087        NONSUBV, 
088        /**
089         * 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).
090         */
091        NOTRELP, 
092        /**
093         * Description: Ballot group has voted and declared the negative vote non-related.
094         */
095        NOTRELV, 
096        /**
097         * 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.)
098         */
099        PREVCONS, 
100        /**
101         * Description: Voter has formally withdrawn their vote or comment as having been in error.  (Perhaps after further reading or explanation).
102         */
103        RETRACT, 
104        /**
105         * Description: Vote has not yet gone through resolution.
106         */
107        UNRESOLVED, 
108        /**
109         * Description: Voter has formally withdrawn their vote or comment on the basis of agreed changes or proposed future changes.
110         */
111        WITHDRAW, 
112        /**
113         * added to help the parsers
114         */
115        NULL;
116        public static V3Hl7VoteResolution fromCode(String codeString) throws FHIRException {
117            if (codeString == null || "".equals(codeString))
118                return null;
119        if ("affirmativeResolution".equals(codeString))
120          return AFFIRMATIVERESOLUTION;
121        if ("affdef".equals(codeString))
122          return AFFDEF;
123        if ("affi".equals(codeString))
124          return AFFI;
125        if ("affr".equals(codeString))
126          return AFFR;
127        if ("negativeResolution".equals(codeString))
128          return NEGATIVERESOLUTION;
129        if ("nonsubp".equals(codeString))
130          return NONSUBP;
131        if ("nonsubv".equals(codeString))
132          return NONSUBV;
133        if ("notrelp".equals(codeString))
134          return NOTRELP;
135        if ("notrelv".equals(codeString))
136          return NOTRELV;
137        if ("prevcons".equals(codeString))
138          return PREVCONS;
139        if ("retract".equals(codeString))
140          return RETRACT;
141        if ("unresolved".equals(codeString))
142          return UNRESOLVED;
143        if ("withdraw".equals(codeString))
144          return WITHDRAW;
145        throw new FHIRException("Unknown V3Hl7VoteResolution code '"+codeString+"'");
146        }
147        public String toCode() {
148          switch (this) {
149            case AFFIRMATIVERESOLUTION: return "affirmativeResolution";
150            case AFFDEF: return "affdef";
151            case AFFI: return "affi";
152            case AFFR: return "affr";
153            case NEGATIVERESOLUTION: return "negativeResolution";
154            case NONSUBP: return "nonsubp";
155            case NONSUBV: return "nonsubv";
156            case NOTRELP: return "notrelp";
157            case NOTRELV: return "notrelv";
158            case PREVCONS: return "prevcons";
159            case RETRACT: return "retract";
160            case UNRESOLVED: return "unresolved";
161            case WITHDRAW: return "withdraw";
162            default: return "?";
163          }
164        }
165        public String getSystem() {
166          return "http://terminology.hl7.org/CodeSystem/v3-hl7VoteResolution";
167        }
168        public String getDefinition() {
169          switch (this) {
170            case AFFIRMATIVERESOLUTION: return "Description: An abstract concept grouping resolutions that can be applied to affirmative ballot comments.";
171            case AFFDEF: return "Description: The recommended change has been deferred to consideration for a future release.";
172            case AFFI: return "Description: The recommended change has been incorporated or identified issue has been answered.";
173            case AFFR: return "Description: The recommended change has been refused and is not expected to be incorporated.";
174            case NEGATIVERESOLUTION: return "Description: An abstract concept grouping resolutions that can be applied to negative ballot comments.";
175            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.)";
176            case NONSUBV: return "Description: Ballot group has voted and declared the negative vote non-substantive.";
177            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).";
178            case NOTRELV: return "Description: Ballot group has voted and declared the negative vote non-related.";
179            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.)";
180            case RETRACT: return "Description: Voter has formally withdrawn their vote or comment as having been in error.  (Perhaps after further reading or explanation).";
181            case UNRESOLVED: return "Description: Vote has not yet gone through resolution.";
182            case WITHDRAW: return "Description: Voter has formally withdrawn their vote or comment on the basis of agreed changes or proposed future changes.";
183            default: return "?";
184          }
185        }
186        public String getDisplay() {
187          switch (this) {
188            case AFFIRMATIVERESOLUTION: return "affirmative resolution";
189            case AFFDEF: return "affirmative-deferred";
190            case AFFI: return "affirmative-incorporated";
191            case AFFR: return "affirmative-rejected";
192            case NEGATIVERESOLUTION: return "negative resolution";
193            case NONSUBP: return "non-substantive proposed";
194            case NONSUBV: return "non-substantive voted";
195            case NOTRELP: return "not related proposed";
196            case NOTRELV: return "not related voted";
197            case PREVCONS: return "previously considered";
198            case RETRACT: return "retracted";
199            case UNRESOLVED: return "unresolved";
200            case WITHDRAW: return "withdrawn";
201            default: return "?";
202          }
203    }
204
205
206}
207