001package org.hl7.fhir.instance.model.valuesets; 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 Wed, Nov 11, 2015 10:54-0500 for FHIR v1.0.2 033 034 035public enum V3AcknowledgementDetailCode { 036 037 /** 038 * Refelects rejections because elements of the communication are not supported in the current context. 039 */ 040 _ACKNOWLEDGEMENTDETAILNOTSUPPORTEDCODE, 041 /** 042 * The interaction (or: this version of the interaction) is not supported. 043 */ 044 NS200, 045 /** 046 * The Processing ID is not supported. 047 */ 048 NS202, 049 /** 050 * The Version ID is not supported. 051 */ 052 NS203, 053 /** 054 * The processing mode is not supported. 055 */ 056 NS250, 057 /** 058 * The Device.id of the sender is unknown. 059 */ 060 NS260, 061 /** 062 * The receiver requires information in the attentionLine classes for routing purposes. 063 */ 064 NS261, 065 /** 066 * An internal software component (database, application, queue mechanism, etc.) has failed, leading to inability to process the message. 067 */ 068 INTERR, 069 /** 070 * Rejection: The message can't be stored by the receiver due to an unspecified internal application issue. The message was neither processed nor stored by the receiving application. 071 */ 072 NOSTORE, 073 /** 074 * Error: The destination of this message is known to the receiving application. Messages have been successfully routed to that destination in the past. The link to the destination application or an intermediate application is unavailable. 075 */ 076 RTEDEST, 077 /** 078 * The destination of this message is unknown to the receiving application. The receiving application in the message does not match the application which received the message. The message was neither routed, processed nor stored by the receiving application. 079 */ 080 RTUDEST, 081 /** 082 * Warning: The destination of this message is known to the receiving application. Messages have been successfully routed to that destination in the past. The link to the destination application or an intermediate application is (temporarily) unavailable. The receiving application will forward the message as soon as the destination can be reached again. 083 */ 084 RTWDEST, 085 /** 086 * Reflects errors in the syntax or structure of the communication. 087 */ 088 SYN, 089 /** 090 * The attribute contained data of the wrong data type, e.g. a numeric attribute contained "FOO". 091 */ 092 SYN102, 093 /** 094 * Description: Required association or attribute missing in message; or the sequence of the classes is different than required by the standard or one of the conformance profiles identified in the message. 095 */ 096 SYN105, 097 /** 098 * Required association missing in message; or the sequence of the classes is different than required by the standard or one of the conformance profiles identified in the message. 099 */ 100 SYN100, 101 /** 102 * A required attribute is missing in a class. 103 */ 104 SYN101, 105 /** 106 * Description: The number of repetitions of a group of association or attributes is less than the required minimum for the standard or of one of the conformance profiles or templates identified in the message. 107 */ 108 SYN114, 109 /** 110 * Description: A coded attribute or datatype property violates one of the terminology constraints specified in the standard or one of the conformance profiles or templates declared by the instance. 111 */ 112 SYN106, 113 /** 114 * An attribute value was compared against the corresponding code system, and no match was found. 115 */ 116 SYN103, 117 /** 118 * An attribute value referenced a code system that is not valid for an attribute constrained to CNE. 119 */ 120 SYN104, 121 /** 122 * Description: A coded attribute is referencing a code that has been deprecated by the owning code system. 123 */ 124 SYN107, 125 /** 126 * Description: The number of repetitions of a (group of) association(s) or attribute(s) exceeds the limits of the standard or of one of the conformance profiles or templates identified in the message. 127 */ 128 SYN108, 129 /** 130 * The number of repetitions of a (group of) association(s) exceeds the limits of the standard or of one of the conformance profiles identified in the message. 131 */ 132 SYN110, 133 /** 134 * The number of repetitions of an attribute exceeds the limits of the standard or of one of the conformance profiles identified in the message. 135 */ 136 SYN112, 137 /** 138 * Description: An attribute or association identified as mandatory in a specification or declared conformance profile or template has been specified with a null flavor. 139 */ 140 SYN109, 141 /** 142 * Description: The value of an attribute or property differs from the fixed value asserted in the standard or one of the conformance profiles or templates declared in the message. 143 */ 144 SYN111, 145 /** 146 * Description: A formal constraint asserted in the standard or one of the conformance profiles or templates declared in the message has been violated. 147 */ 148 SYN113, 149 /** 150 * added to help the parsers 151 */ 152 NULL; 153 public static V3AcknowledgementDetailCode fromCode(String codeString) throws Exception { 154 if (codeString == null || "".equals(codeString)) 155 return null; 156 if ("_AcknowledgementDetailNotSupportedCode".equals(codeString)) 157 return _ACKNOWLEDGEMENTDETAILNOTSUPPORTEDCODE; 158 if ("NS200".equals(codeString)) 159 return NS200; 160 if ("NS202".equals(codeString)) 161 return NS202; 162 if ("NS203".equals(codeString)) 163 return NS203; 164 if ("NS250".equals(codeString)) 165 return NS250; 166 if ("NS260".equals(codeString)) 167 return NS260; 168 if ("NS261".equals(codeString)) 169 return NS261; 170 if ("INTERR".equals(codeString)) 171 return INTERR; 172 if ("NOSTORE".equals(codeString)) 173 return NOSTORE; 174 if ("RTEDEST".equals(codeString)) 175 return RTEDEST; 176 if ("RTUDEST".equals(codeString)) 177 return RTUDEST; 178 if ("RTWDEST".equals(codeString)) 179 return RTWDEST; 180 if ("SYN".equals(codeString)) 181 return SYN; 182 if ("SYN102".equals(codeString)) 183 return SYN102; 184 if ("SYN105".equals(codeString)) 185 return SYN105; 186 if ("SYN100".equals(codeString)) 187 return SYN100; 188 if ("SYN101".equals(codeString)) 189 return SYN101; 190 if ("SYN114".equals(codeString)) 191 return SYN114; 192 if ("SYN106".equals(codeString)) 193 return SYN106; 194 if ("SYN103".equals(codeString)) 195 return SYN103; 196 if ("SYN104".equals(codeString)) 197 return SYN104; 198 if ("SYN107".equals(codeString)) 199 return SYN107; 200 if ("SYN108".equals(codeString)) 201 return SYN108; 202 if ("SYN110".equals(codeString)) 203 return SYN110; 204 if ("SYN112".equals(codeString)) 205 return SYN112; 206 if ("SYN109".equals(codeString)) 207 return SYN109; 208 if ("SYN111".equals(codeString)) 209 return SYN111; 210 if ("SYN113".equals(codeString)) 211 return SYN113; 212 throw new Exception("Unknown V3AcknowledgementDetailCode code '"+codeString+"'"); 213 } 214 public String toCode() { 215 switch (this) { 216 case _ACKNOWLEDGEMENTDETAILNOTSUPPORTEDCODE: return "_AcknowledgementDetailNotSupportedCode"; 217 case NS200: return "NS200"; 218 case NS202: return "NS202"; 219 case NS203: return "NS203"; 220 case NS250: return "NS250"; 221 case NS260: return "NS260"; 222 case NS261: return "NS261"; 223 case INTERR: return "INTERR"; 224 case NOSTORE: return "NOSTORE"; 225 case RTEDEST: return "RTEDEST"; 226 case RTUDEST: return "RTUDEST"; 227 case RTWDEST: return "RTWDEST"; 228 case SYN: return "SYN"; 229 case SYN102: return "SYN102"; 230 case SYN105: return "SYN105"; 231 case SYN100: return "SYN100"; 232 case SYN101: return "SYN101"; 233 case SYN114: return "SYN114"; 234 case SYN106: return "SYN106"; 235 case SYN103: return "SYN103"; 236 case SYN104: return "SYN104"; 237 case SYN107: return "SYN107"; 238 case SYN108: return "SYN108"; 239 case SYN110: return "SYN110"; 240 case SYN112: return "SYN112"; 241 case SYN109: return "SYN109"; 242 case SYN111: return "SYN111"; 243 case SYN113: return "SYN113"; 244 default: return "?"; 245 } 246 } 247 public String getSystem() { 248 return "http://hl7.org/fhir/v3/AcknowledgementDetailCode"; 249 } 250 public String getDefinition() { 251 switch (this) { 252 case _ACKNOWLEDGEMENTDETAILNOTSUPPORTEDCODE: return "Refelects rejections because elements of the communication are not supported in the current context."; 253 case NS200: return "The interaction (or: this version of the interaction) is not supported."; 254 case NS202: return "The Processing ID is not supported."; 255 case NS203: return "The Version ID is not supported."; 256 case NS250: return "The processing mode is not supported."; 257 case NS260: return "The Device.id of the sender is unknown."; 258 case NS261: return "The receiver requires information in the attentionLine classes for routing purposes."; 259 case INTERR: return "An internal software component (database, application, queue mechanism, etc.) has failed, leading to inability to process the message."; 260 case NOSTORE: return "Rejection: The message can't be stored by the receiver due to an unspecified internal application issue. The message was neither processed nor stored by the receiving application."; 261 case RTEDEST: return "Error: The destination of this message is known to the receiving application. Messages have been successfully routed to that destination in the past. The link to the destination application or an intermediate application is unavailable."; 262 case RTUDEST: return "The destination of this message is unknown to the receiving application. The receiving application in the message does not match the application which received the message. The message was neither routed, processed nor stored by the receiving application."; 263 case RTWDEST: return "Warning: The destination of this message is known to the receiving application. Messages have been successfully routed to that destination in the past. The link to the destination application or an intermediate application is (temporarily) unavailable. The receiving application will forward the message as soon as the destination can be reached again."; 264 case SYN: return "Reflects errors in the syntax or structure of the communication."; 265 case SYN102: return "The attribute contained data of the wrong data type, e.g. a numeric attribute contained \"FOO\"."; 266 case SYN105: return "Description: Required association or attribute missing in message; or the sequence of the classes is different than required by the standard or one of the conformance profiles identified in the message."; 267 case SYN100: return "Required association missing in message; or the sequence of the classes is different than required by the standard or one of the conformance profiles identified in the message."; 268 case SYN101: return "A required attribute is missing in a class."; 269 case SYN114: return "Description: The number of repetitions of a group of association or attributes is less than the required minimum for the standard or of one of the conformance profiles or templates identified in the message."; 270 case SYN106: return "Description: A coded attribute or datatype property violates one of the terminology constraints specified in the standard or one of the conformance profiles or templates declared by the instance."; 271 case SYN103: return "An attribute value was compared against the corresponding code system, and no match was found."; 272 case SYN104: return "An attribute value referenced a code system that is not valid for an attribute constrained to CNE."; 273 case SYN107: return "Description: A coded attribute is referencing a code that has been deprecated by the owning code system."; 274 case SYN108: return "Description: The number of repetitions of a (group of) association(s) or attribute(s) exceeds the limits of the standard or of one of the conformance profiles or templates identified in the message."; 275 case SYN110: return "The number of repetitions of a (group of) association(s) exceeds the limits of the standard or of one of the conformance profiles identified in the message."; 276 case SYN112: return "The number of repetitions of an attribute exceeds the limits of the standard or of one of the conformance profiles identified in the message."; 277 case SYN109: return "Description: An attribute or association identified as mandatory in a specification or declared conformance profile or template has been specified with a null flavor."; 278 case SYN111: return "Description: The value of an attribute or property differs from the fixed value asserted in the standard or one of the conformance profiles or templates declared in the message."; 279 case SYN113: return "Description: A formal constraint asserted in the standard or one of the conformance profiles or templates declared in the message has been violated."; 280 default: return "?"; 281 } 282 } 283 public String getDisplay() { 284 switch (this) { 285 case _ACKNOWLEDGEMENTDETAILNOTSUPPORTEDCODE: return "AcknowledgementDetailNotSupportedCode"; 286 case NS200: return "Unsupported interaction"; 287 case NS202: return "Unsupported processing id"; 288 case NS203: return "Unsupported version id"; 289 case NS250: return "Unsupported processing Mode"; 290 case NS260: return "Unknown sender"; 291 case NS261: return "Unrecognized attentionline"; 292 case INTERR: return "Internal system error"; 293 case NOSTORE: return "No storage space for message."; 294 case RTEDEST: return "Message routing error, destination unreachable."; 295 case RTUDEST: return "Error: Message routing error, unknown destination."; 296 case RTWDEST: return "Message routing warning, destination unreachable."; 297 case SYN: return "Syntax error"; 298 case SYN102: return "Data type error"; 299 case SYN105: return "Required element missing"; 300 case SYN100: return "Required association missing"; 301 case SYN101: return "Required attribute missing"; 302 case SYN114: return "Insufficient repetitions"; 303 case SYN106: return "Terminology error"; 304 case SYN103: return "Value not found in code system"; 305 case SYN104: return "Invalid code system in CNE"; 306 case SYN107: return "Deprecated code"; 307 case SYN108: return "Number of repetitions exceeds limit"; 308 case SYN110: return "Number of association repetitions exceeds limit"; 309 case SYN112: return "Number of attribute repetitions exceeds limit"; 310 case SYN109: return "Mandatory element with null value"; 311 case SYN111: return "Value does not match fixed value"; 312 case SYN113: return "Formal constraint violation"; 313 default: return "?"; 314 } 315 } 316 317 318} 319