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 V3AcknowledgementDetailType { 038 039 /** 040 * Definition:An issue which has prevented, or will prevent (unless a management is provided for the issue by the sender), the successful processing of an interaction. Response interactions which include an issue which is an Error are a 'rejection', indicating that the request was not successfully processed. 041 042 043 Example:Unable to find specified patient. 044 */ 045 E, 046 /** 047 * Definition: The message relates to an issue which has no bearing on the successful processing of the request. Information issues cannot be overridden by specifying a management. 048 049 050 Example: A Patient's coverage will expire in 5 days. 051 */ 052 I, 053 /** 054 * Definition: The message relates to an issue which cannot prevent the successful processing of a request, but which could result in the processing not having the ideal or intended effect. Managing a warning issue is not required for successful processing, but will suppress the warning from being raised. 055 056 057 Example: 058 059 060 Unexpected additional repetitions of phone number have been ignored. 061 */ 062 W, 063 /** 064 * null 065 */ 066 ERR, 067 /** 068 * null 069 */ 070 INFO, 071 /** 072 * null 073 */ 074 WARN, 075 /** 076 * added to help the parsers 077 */ 078 NULL; 079 public static V3AcknowledgementDetailType fromCode(String codeString) throws FHIRException { 080 if (codeString == null || "".equals(codeString)) 081 return null; 082 if ("E".equals(codeString)) 083 return E; 084 if ("I".equals(codeString)) 085 return I; 086 if ("W".equals(codeString)) 087 return W; 088 if ("ERR".equals(codeString)) 089 return ERR; 090 if ("INFO".equals(codeString)) 091 return INFO; 092 if ("WARN".equals(codeString)) 093 return WARN; 094 throw new FHIRException("Unknown V3AcknowledgementDetailType code '"+codeString+"'"); 095 } 096 public String toCode() { 097 switch (this) { 098 case E: return "E"; 099 case I: return "I"; 100 case W: return "W"; 101 case ERR: return "ERR"; 102 case INFO: return "INFO"; 103 case WARN: return "WARN"; 104 default: return "?"; 105 } 106 } 107 public String getSystem() { 108 return "http://terminology.hl7.org/CodeSystem/v3-AcknowledgementDetailType"; 109 } 110 public String getDefinition() { 111 switch (this) { 112 case E: return "Definition:An issue which has prevented, or will prevent (unless a management is provided for the issue by the sender), the successful processing of an interaction. Response interactions which include an issue which is an Error are a 'rejection', indicating that the request was not successfully processed. \r\n\n \n Example:Unable to find specified patient."; 113 case I: return "Definition: The message relates to an issue which has no bearing on the successful processing of the request. Information issues cannot be overridden by specifying a management.\r\n\n \n Example: A Patient's coverage will expire in 5 days."; 114 case W: return "Definition: The message relates to an issue which cannot prevent the successful processing of a request, but which could result in the processing not having the ideal or intended effect. Managing a warning issue is not required for successful processing, but will suppress the warning from being raised. \r\n\n \n Example:\n \r\n\n Unexpected additional repetitions of phone number have been ignored."; 115 case ERR: return ""; 116 case INFO: return ""; 117 case WARN: return ""; 118 default: return "?"; 119 } 120 } 121 public String getDisplay() { 122 switch (this) { 123 case E: return "Error"; 124 case I: return "Information"; 125 case W: return "Warning"; 126 case ERR: return "ERR"; 127 case INFO: return "INFO"; 128 case WARN: return "WARN"; 129 default: return "?"; 130 } 131 } 132 133 134} 135