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