001package org.hl7.fhir.r4.model.codesystems;
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, Sep 13, 2018 09:04-0400 for FHIR v3.5.0
033
034
035import org.hl7.fhir.exceptions.FHIRException;
036
037public enum V3Hl7VoteResolution {
038
039        /**
040         * Description: An abstract concept grouping resolutions that can be applied to affirmative ballot comments.
041         */
042        AFFIRMATIVERESOLUTION, 
043        /**
044         * Description: The recommended change has been deferred to consideration for a future release.
045         */
046        AFFDEF, 
047        /**
048         * Description: The recommended change has been incorporated or identified issue has been answered.
049         */
050        AFFI, 
051        /**
052         * Description: The recommended change has been refused and is not expected to be incorporated.
053         */
054        AFFR, 
055        /**
056         * Description: An abstract concept grouping resolutions that can be applied to negative ballot comments.
057         */
058        NEGATIVERESOLUTION, 
059        /**
060         * 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.)
061         */
062        NONSUBP, 
063        /**
064         * Description: Ballot group has voted and declared the negative vote non-substantive.
065         */
066        NONSUBV, 
067        /**
068         * 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).
069         */
070        NOTRELP, 
071        /**
072         * Description: Ballot group has voted and declared the negative vote non-related.
073         */
074        NOTRELV, 
075        /**
076         * 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.)
077         */
078        PREVCONS, 
079        /**
080         * Description: Voter has formally withdrawn their vote or comment as having been in error.  (Perhaps after further reading or explanation).
081         */
082        RETRACT, 
083        /**
084         * Description: Vote has not yet gone through resolution.
085         */
086        UNRESOLVED, 
087        /**
088         * Description: Voter has formally withdrawn their vote or comment on the basis of agreed changes or proposed future changes.
089         */
090        WITHDRAW, 
091        /**
092         * added to help the parsers
093         */
094        NULL;
095        public static V3Hl7VoteResolution fromCode(String codeString) throws FHIRException {
096            if (codeString == null || "".equals(codeString))
097                return null;
098        if ("affirmativeResolution".equals(codeString))
099          return AFFIRMATIVERESOLUTION;
100        if ("affdef".equals(codeString))
101          return AFFDEF;
102        if ("affi".equals(codeString))
103          return AFFI;
104        if ("affr".equals(codeString))
105          return AFFR;
106        if ("negativeResolution".equals(codeString))
107          return NEGATIVERESOLUTION;
108        if ("nonsubp".equals(codeString))
109          return NONSUBP;
110        if ("nonsubv".equals(codeString))
111          return NONSUBV;
112        if ("notrelp".equals(codeString))
113          return NOTRELP;
114        if ("notrelv".equals(codeString))
115          return NOTRELV;
116        if ("prevcons".equals(codeString))
117          return PREVCONS;
118        if ("retract".equals(codeString))
119          return RETRACT;
120        if ("unresolved".equals(codeString))
121          return UNRESOLVED;
122        if ("withdraw".equals(codeString))
123          return WITHDRAW;
124        throw new FHIRException("Unknown V3Hl7VoteResolution code '"+codeString+"'");
125        }
126        public String toCode() {
127          switch (this) {
128            case AFFIRMATIVERESOLUTION: return "affirmativeResolution";
129            case AFFDEF: return "affdef";
130            case AFFI: return "affi";
131            case AFFR: return "affr";
132            case NEGATIVERESOLUTION: return "negativeResolution";
133            case NONSUBP: return "nonsubp";
134            case NONSUBV: return "nonsubv";
135            case NOTRELP: return "notrelp";
136            case NOTRELV: return "notrelv";
137            case PREVCONS: return "prevcons";
138            case RETRACT: return "retract";
139            case UNRESOLVED: return "unresolved";
140            case WITHDRAW: return "withdraw";
141            default: return "?";
142          }
143        }
144        public String getSystem() {
145          return "http://terminology.hl7.org/CodeSystem/v3-hl7VoteResolution";
146        }
147        public String getDefinition() {
148          switch (this) {
149            case AFFIRMATIVERESOLUTION: return "Description: An abstract concept grouping resolutions that can be applied to affirmative ballot comments.";
150            case AFFDEF: return "Description: The recommended change has been deferred to consideration for a future release.";
151            case AFFI: return "Description: The recommended change has been incorporated or identified issue has been answered.";
152            case AFFR: return "Description: The recommended change has been refused and is not expected to be incorporated.";
153            case NEGATIVERESOLUTION: return "Description: An abstract concept grouping resolutions that can be applied to negative ballot comments.";
154            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.)";
155            case NONSUBV: return "Description: Ballot group has voted and declared the negative vote non-substantive.";
156            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).";
157            case NOTRELV: return "Description: Ballot group has voted and declared the negative vote non-related.";
158            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.)";
159            case RETRACT: return "Description: Voter has formally withdrawn their vote or comment as having been in error.  (Perhaps after further reading or explanation).";
160            case UNRESOLVED: return "Description: Vote has not yet gone through resolution.";
161            case WITHDRAW: return "Description: Voter has formally withdrawn their vote or comment on the basis of agreed changes or proposed future changes.";
162            default: return "?";
163          }
164        }
165        public String getDisplay() {
166          switch (this) {
167            case AFFIRMATIVERESOLUTION: return "affirmative resolution";
168            case AFFDEF: return "affirmative-deferred";
169            case AFFI: return "affirmative-incorporated";
170            case AFFR: return "affirmative-rejected";
171            case NEGATIVERESOLUTION: return "negative resolution";
172            case NONSUBP: return "non-substantive proposed";
173            case NONSUBV: return "non-substantive voted";
174            case NOTRELP: return "not related proposed";
175            case NOTRELV: return "not related voted";
176            case PREVCONS: return "previously considered";
177            case RETRACT: return "retracted";
178            case UNRESOLVED: return "unresolved";
179            case WITHDRAW: return "withdrawn";
180            default: return "?";
181          }
182    }
183
184
185}
186