001package org.hl7.fhir.r5.model.codesystems; 002 003/* 004 * #%L 005 * org.hl7.fhir.r5 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 Copyright (c) 2011+, HL7, Inc. 025 All rights reserved. 026 027 Redistribution and use in source and binary forms, with or without modification, 028 are permitted provided that the following conditions are met: 029 030 * Redistributions of source code must retain the above copyright notice, this 031 list of conditions and the following disclaimer. 032 * Redistributions in binary form must reproduce the above copyright notice, 033 this list of conditions and the following disclaimer in the documentation 034 and/or other materials provided with the distribution. 035 * Neither the name of HL7 nor the names of its contributors may be used to 036 endorse or promote products derived from this software without specific 037 prior written permission. 038 039 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 040 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 041 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 042 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 043 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 044 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 045 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 046 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 047 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 048 POSSIBILITY OF SUCH DAMAGE. 049 050*/ 051 052// Generated on Thu, Oct 17, 2019 09:42+1100 for FHIR v4.1.0 053 054 055import org.hl7.fhir.exceptions.FHIRException; 056 057public enum V3Hl7ApprovalStatus { 058 059 /** 060 * Description: Content that is being presented to an international affiliate for consideration as a realm-specific draft standard for trial use. 061 */ 062 AFFD, 063 /** 064 * Description: Content that is being presented to an international affiliate for consideration as a realm-specific informative standard. 065 */ 066 AFFI, 067 /** 068 * Description: Content that is being presented to an international affiliate for consideration as a realm-specific normative standard. 069 */ 070 AFFN, 071 /** 072 * Description: Content that has passed ballot as a realm-specific draft standard for trial use. 073 */ 074 APPAD, 075 /** 076 * Description: Content that has passed ballot as a realm-specific informative standard. 077 */ 078 APPAI, 079 /** 080 * Description: Content that has passed ballot as a realm-specific normative standard 081 */ 082 APPAN, 083 /** 084 * Description: Content that has passed ballot as a draft standard for trial use. 085 */ 086 APPD, 087 /** 088 * Description: Content that has passed ballot as a normative standard. 089 */ 090 APPI, 091 /** 092 * Description: Content that has passed ballot as a normative standard. 093 */ 094 APPN, 095 /** 096 * Description: Content prepared by a committee and submitted for internal consideration as an informative standard. 097 098 099 100 Deprecation Comment 101 No longer supported as ballot statuses within the HL7 Governance and Operations Manual. Use normative or informative variants instead. 102 */ 103 COMI, 104 /** 105 * Description: Content prepared by a committee and submitted for internal consideration as an informative standard. 106 107 108 109 Deprecation Comment 110 No longer supported as ballot statuses within the HL7 Governance and Operations Manual. Use normative or informative variants instead. 111 */ 112 COMN, 113 /** 114 * Description: Content that is under development and is not intended to be used. 115 */ 116 DRAFT, 117 /** 118 * Description: Content that represents an adaption of a implementable balloted material to represent the needs or capabilities of a particular installation. 119 */ 120 LOC, 121 /** 122 * Description: Content prepared by a committee and submitted for membership consideration as a draft standard for trial use. 123 */ 124 MEMD, 125 /** 126 * Description: Content prepared by a committee and submitted for membership consideration as an informative standard. 127 */ 128 MEMI, 129 /** 130 * Description: Content prepared by a committee and submitted for membership consideration as a normative standard. 131 */ 132 MEMN, 133 /** 134 * 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. 135 */ 136 NS, 137 /** 138 * Description: Content submitted to a committee for consideration for future inclusion in the standard. 139 */ 140 PROP, 141 /** 142 * Description: Content intended to support other content that is subject to approval, but which is not itself subject to formal approval. 143 */ 144 REF, 145 /** 146 * Description: Content that represents an item that was at one point a normative or informative standard, but was subsequently withdrawn. 147 */ 148 WD, 149 /** 150 * added to help the parsers 151 */ 152 NULL; 153 public static V3Hl7ApprovalStatus fromCode(String codeString) throws FHIRException { 154 if (codeString == null || "".equals(codeString)) 155 return null; 156 if ("affd".equals(codeString)) 157 return AFFD; 158 if ("affi".equals(codeString)) 159 return AFFI; 160 if ("affn".equals(codeString)) 161 return AFFN; 162 if ("appad".equals(codeString)) 163 return APPAD; 164 if ("appai".equals(codeString)) 165 return APPAI; 166 if ("appan".equals(codeString)) 167 return APPAN; 168 if ("appd".equals(codeString)) 169 return APPD; 170 if ("appi".equals(codeString)) 171 return APPI; 172 if ("appn".equals(codeString)) 173 return APPN; 174 if ("comi".equals(codeString)) 175 return COMI; 176 if ("comn".equals(codeString)) 177 return COMN; 178 if ("draft".equals(codeString)) 179 return DRAFT; 180 if ("loc".equals(codeString)) 181 return LOC; 182 if ("memd".equals(codeString)) 183 return MEMD; 184 if ("memi".equals(codeString)) 185 return MEMI; 186 if ("memn".equals(codeString)) 187 return MEMN; 188 if ("ns".equals(codeString)) 189 return NS; 190 if ("prop".equals(codeString)) 191 return PROP; 192 if ("ref".equals(codeString)) 193 return REF; 194 if ("wd".equals(codeString)) 195 return WD; 196 throw new FHIRException("Unknown V3Hl7ApprovalStatus code '"+codeString+"'"); 197 } 198 public String toCode() { 199 switch (this) { 200 case AFFD: return "affd"; 201 case AFFI: return "affi"; 202 case AFFN: return "affn"; 203 case APPAD: return "appad"; 204 case APPAI: return "appai"; 205 case APPAN: return "appan"; 206 case APPD: return "appd"; 207 case APPI: return "appi"; 208 case APPN: return "appn"; 209 case COMI: return "comi"; 210 case COMN: return "comn"; 211 case DRAFT: return "draft"; 212 case LOC: return "loc"; 213 case MEMD: return "memd"; 214 case MEMI: return "memi"; 215 case MEMN: return "memn"; 216 case NS: return "ns"; 217 case PROP: return "prop"; 218 case REF: return "ref"; 219 case WD: return "wd"; 220 default: return "?"; 221 } 222 } 223 public String getSystem() { 224 return "http://terminology.hl7.org/CodeSystem/v3-hl7ApprovalStatus"; 225 } 226 public String getDefinition() { 227 switch (this) { 228 case AFFD: return "Description: Content that is being presented to an international affiliate for consideration as a realm-specific draft standard for trial use."; 229 case AFFI: return "Description: Content that is being presented to an international affiliate for consideration as a realm-specific informative standard."; 230 case AFFN: return "Description: Content that is being presented to an international affiliate for consideration as a realm-specific normative standard."; 231 case APPAD: return "Description: Content that has passed ballot as a realm-specific draft standard for trial use."; 232 case APPAI: return "Description: Content that has passed ballot as a realm-specific informative standard."; 233 case APPAN: return "Description: Content that has passed ballot as a realm-specific normative standard"; 234 case APPD: return "Description: Content that has passed ballot as a draft standard for trial use."; 235 case APPI: return "Description: Content that has passed ballot as a normative standard."; 236 case APPN: return "Description: Content that has passed ballot as a normative standard."; 237 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."; 238 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."; 239 case DRAFT: return "Description: Content that is under development and is not intended to be used."; 240 case LOC: return "Description: Content that represents an adaption of a implementable balloted material to represent the needs or capabilities of a particular installation."; 241 case MEMD: return "Description: Content prepared by a committee and submitted for membership consideration as a draft standard for trial use."; 242 case MEMI: return "Description: Content prepared by a committee and submitted for membership consideration as an informative standard."; 243 case MEMN: return "Description: Content prepared by a committee and submitted for membership consideration as a normative standard."; 244 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."; 245 case PROP: return "Description: Content submitted to a committee for consideration for future inclusion in the standard."; 246 case REF: return "Description: Content intended to support other content that is subject to approval, but which is not itself subject to formal approval."; 247 case WD: return "Description: Content that represents an item that was at one point a normative or informative standard, but was subsequently withdrawn."; 248 default: return "?"; 249 } 250 } 251 public String getDisplay() { 252 switch (this) { 253 case AFFD: return "affiliate ballot - DSTU"; 254 case AFFI: return "affiliate ballot - informative"; 255 case AFFN: return "affiliate ballot - normative"; 256 case APPAD: return "approved affiliate DSTU"; 257 case APPAI: return "approved affiliate informative"; 258 case APPAN: return "approved affiliate normative"; 259 case APPD: return "approved DSTU"; 260 case APPI: return "approved informative"; 261 case APPN: return "approved normative"; 262 case COMI: return "committee ballot - informative"; 263 case COMN: return "committee ballot - normative"; 264 case DRAFT: return "draft"; 265 case LOC: return "localized adaptation"; 266 case MEMD: return "membership ballot - DSTU"; 267 case MEMI: return "membership ballot - informative"; 268 case MEMN: return "membership ballot - normative"; 269 case NS: return "non-standard - available for use"; 270 case PROP: return "proposal"; 271 case REF: return "reference"; 272 case WD: return "withdrawn"; 273 default: return "?"; 274 } 275 } 276 277 278} 279