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