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 V3Hl7ApprovalStatus {
041
042        /**
043         * Description: Content that is being presented to an international affiliate for consideration as a realm-specific draft standard for trial use.
044         */
045        AFFD, 
046        /**
047         * Description: Content that is being presented to an international affiliate for consideration as a realm-specific informative standard.
048         */
049        AFFI, 
050        /**
051         * Description: Content that is being presented to an international affiliate for consideration as a realm-specific normative standard.
052         */
053        AFFN, 
054        /**
055         * Description: Content that has passed ballot as a realm-specific draft standard for trial use.
056         */
057        APPAD, 
058        /**
059         * Description: Content that has passed ballot as a realm-specific informative standard.
060         */
061        APPAI, 
062        /**
063         * Description: Content that has passed ballot as a realm-specific normative standard
064         */
065        APPAN, 
066        /**
067         * Description: Content that has passed ballot as a draft standard for trial use.
068         */
069        APPD, 
070        /**
071         * Description: Content that has passed ballot as a normative standard.
072         */
073        APPI, 
074        /**
075         * Description: Content that has passed ballot as a normative standard.
076         */
077        APPN, 
078        /**
079         * Description: Content prepared by a committee and submitted for internal consideration as an informative standard.
080
081                        
082                           
083                              Deprecation Comment
084                            No longer supported as ballot statuses within the HL7 Governance and Operations Manual.  Use normative or informative variants instead.
085         */
086        COMI, 
087        /**
088         * Description: Content prepared by a committee and submitted for internal consideration as an informative standard.
089
090                        
091                           
092                              Deprecation Comment
093                            No longer supported as ballot statuses within the HL7 Governance and Operations Manual.  Use normative or informative variants instead.
094         */
095        COMN, 
096        /**
097         * Description: Content that is under development and is not intended to be used.
098         */
099        DRAFT, 
100        /**
101         * Description: Content that represents an adaption of a implementable balloted material to represent the needs or capabilities of a particular installation.
102         */
103        LOC, 
104        /**
105         * Description: Content prepared by a committee and submitted for membership consideration as a draft standard for trial use.
106         */
107        MEMD, 
108        /**
109         * Description: Content prepared by a committee and submitted for membership consideration as an informative standard.
110         */
111        MEMI, 
112        /**
113         * Description: Content prepared by a committee and submitted for membership consideration as a normative standard.
114         */
115        MEMN, 
116        /**
117         * Description: Content developed independently by an organization or individual that is declared to be 'usable' but for which there is no present intention to submit through the standards submission and review process.
118         */
119        NS, 
120        /**
121         * Description: Content submitted to a committee for consideration for future inclusion in the standard.
122         */
123        PROP, 
124        /**
125         * Description: Content intended to support other content that is subject to approval, but which is not itself subject to formal approval.
126         */
127        REF, 
128        /**
129         * Description: Content that represents an item that was at one point a normative or informative standard, but was subsequently withdrawn.
130         */
131        WD, 
132        /**
133         * added to help the parsers
134         */
135        NULL;
136        public static V3Hl7ApprovalStatus fromCode(String codeString) throws FHIRException {
137            if (codeString == null || "".equals(codeString))
138                return null;
139        if ("affd".equals(codeString))
140          return AFFD;
141        if ("affi".equals(codeString))
142          return AFFI;
143        if ("affn".equals(codeString))
144          return AFFN;
145        if ("appad".equals(codeString))
146          return APPAD;
147        if ("appai".equals(codeString))
148          return APPAI;
149        if ("appan".equals(codeString))
150          return APPAN;
151        if ("appd".equals(codeString))
152          return APPD;
153        if ("appi".equals(codeString))
154          return APPI;
155        if ("appn".equals(codeString))
156          return APPN;
157        if ("comi".equals(codeString))
158          return COMI;
159        if ("comn".equals(codeString))
160          return COMN;
161        if ("draft".equals(codeString))
162          return DRAFT;
163        if ("loc".equals(codeString))
164          return LOC;
165        if ("memd".equals(codeString))
166          return MEMD;
167        if ("memi".equals(codeString))
168          return MEMI;
169        if ("memn".equals(codeString))
170          return MEMN;
171        if ("ns".equals(codeString))
172          return NS;
173        if ("prop".equals(codeString))
174          return PROP;
175        if ("ref".equals(codeString))
176          return REF;
177        if ("wd".equals(codeString))
178          return WD;
179        throw new FHIRException("Unknown V3Hl7ApprovalStatus code '"+codeString+"'");
180        }
181        public String toCode() {
182          switch (this) {
183            case AFFD: return "affd";
184            case AFFI: return "affi";
185            case AFFN: return "affn";
186            case APPAD: return "appad";
187            case APPAI: return "appai";
188            case APPAN: return "appan";
189            case APPD: return "appd";
190            case APPI: return "appi";
191            case APPN: return "appn";
192            case COMI: return "comi";
193            case COMN: return "comn";
194            case DRAFT: return "draft";
195            case LOC: return "loc";
196            case MEMD: return "memd";
197            case MEMI: return "memi";
198            case MEMN: return "memn";
199            case NS: return "ns";
200            case PROP: return "prop";
201            case REF: return "ref";
202            case WD: return "wd";
203            default: return "?";
204          }
205        }
206        public String getSystem() {
207          return "http://terminology.hl7.org/CodeSystem/v3-hl7ApprovalStatus";
208        }
209        public String getDefinition() {
210          switch (this) {
211            case AFFD: return "Description: Content that is being presented to an international affiliate for consideration as a realm-specific draft standard for trial use.";
212            case AFFI: return "Description: Content that is being presented to an international affiliate for consideration as a realm-specific informative standard.";
213            case AFFN: return "Description: Content that is being presented to an international affiliate for consideration as a realm-specific normative standard.";
214            case APPAD: return "Description: Content that has passed ballot as a realm-specific draft standard for trial use.";
215            case APPAI: return "Description: Content that has passed ballot as a realm-specific informative standard.";
216            case APPAN: return "Description: Content that has passed ballot as a realm-specific normative standard";
217            case APPD: return "Description: Content that has passed ballot as a draft standard for trial use.";
218            case APPI: return "Description: Content that has passed ballot as a normative standard.";
219            case APPN: return "Description: Content that has passed ballot as a normative standard.";
220            case COMI: return "Description: Content prepared by a committee and submitted for internal consideration as an informative standard.\r\n\n                        \n                           \n                              Deprecation Comment\n                            No longer supported as ballot statuses within the HL7 Governance and Operations Manual.  Use normative or informative variants instead.";
221            case COMN: return "Description: Content prepared by a committee and submitted for internal consideration as an informative standard.\r\n\n                        \n                           \n                              Deprecation Comment\n                            No longer supported as ballot statuses within the HL7 Governance and Operations Manual.  Use normative or informative variants instead.";
222            case DRAFT: return "Description: Content that is under development and is not intended to be used.";
223            case LOC: return "Description: Content that represents an adaption of a implementable balloted material to represent the needs or capabilities of a particular installation.";
224            case MEMD: return "Description: Content prepared by a committee and submitted for membership consideration as a draft standard for trial use.";
225            case MEMI: return "Description: Content prepared by a committee and submitted for membership consideration as an informative standard.";
226            case MEMN: return "Description: Content prepared by a committee and submitted for membership consideration as a normative standard.";
227            case NS: return "Description: Content developed independently by an organization or individual that is declared to be 'usable' but for which there is no present intention to submit through the standards submission and review process.";
228            case PROP: return "Description: Content submitted to a committee for consideration for future inclusion in the standard.";
229            case REF: return "Description: Content intended to support other content that is subject to approval, but which is not itself subject to formal approval.";
230            case WD: return "Description: Content that represents an item that was at one point a normative or informative standard, but was subsequently withdrawn.";
231            default: return "?";
232          }
233        }
234        public String getDisplay() {
235          switch (this) {
236            case AFFD: return "affiliate ballot - DSTU";
237            case AFFI: return "affiliate ballot - informative";
238            case AFFN: return "affiliate ballot - normative";
239            case APPAD: return "approved affiliate DSTU";
240            case APPAI: return "approved affiliate informative";
241            case APPAN: return "approved affiliate normative";
242            case APPD: return "approved DSTU";
243            case APPI: return "approved informative";
244            case APPN: return "approved normative";
245            case COMI: return "committee ballot - informative";
246            case COMN: return "committee ballot - normative";
247            case DRAFT: return "draft";
248            case LOC: return "localized adaptation";
249            case MEMD: return "membership ballot - DSTU";
250            case MEMI: return "membership ballot - informative";
251            case MEMN: return "membership ballot - normative";
252            case NS: return "non-standard - available for use";
253            case PROP: return "proposal";
254            case REF: return "reference";
255            case WD: return "withdrawn";
256            default: return "?";
257          }
258    }
259
260
261}