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