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