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