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