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 V3TriggerEventID { 038 039 /** 040 * Description: 041 */ 042 POLBTE004000UV, 043 /** 044 * Description: 045 */ 046 POLBTE004001UV, 047 /** 048 * Description: 049 */ 050 POLBTE004002UV, 051 /** 052 * Description: 053 */ 054 POLBTE004007UV, 055 /** 056 * Description: 057 */ 058 POLBTE004100UV, 059 /** 060 * Description: 061 */ 062 POLBTE004102UV, 063 /** 064 * Description: 065 */ 066 POLBTE004200UV, 067 /** 068 * Description: 069 */ 070 POLBTE004201UV, 071 /** 072 * Description: 073 */ 074 POLBTE004202UV, 075 /** 076 * Description: 077 */ 078 POLBTE004301UV, 079 /** 080 * Description: 081 */ 082 POLBTE004500UV, 083 /** 084 * added to help the parsers 085 */ 086 NULL; 087 public static V3TriggerEventID fromCode(String codeString) throws FHIRException { 088 if (codeString == null || "".equals(codeString)) 089 return null; 090 if ("POLB_TE004000UV".equals(codeString)) 091 return POLBTE004000UV; 092 if ("POLB_TE004001UV".equals(codeString)) 093 return POLBTE004001UV; 094 if ("POLB_TE004002UV".equals(codeString)) 095 return POLBTE004002UV; 096 if ("POLB_TE004007UV".equals(codeString)) 097 return POLBTE004007UV; 098 if ("POLB_TE004100UV".equals(codeString)) 099 return POLBTE004100UV; 100 if ("POLB_TE004102UV".equals(codeString)) 101 return POLBTE004102UV; 102 if ("POLB_TE004200UV".equals(codeString)) 103 return POLBTE004200UV; 104 if ("POLB_TE004201UV".equals(codeString)) 105 return POLBTE004201UV; 106 if ("POLB_TE004202UV".equals(codeString)) 107 return POLBTE004202UV; 108 if ("POLB_TE004301UV".equals(codeString)) 109 return POLBTE004301UV; 110 if ("POLB_TE004500UV".equals(codeString)) 111 return POLBTE004500UV; 112 throw new FHIRException("Unknown V3TriggerEventID code '"+codeString+"'"); 113 } 114 public String toCode() { 115 switch (this) { 116 case POLBTE004000UV: return "POLB_TE004000UV"; 117 case POLBTE004001UV: return "POLB_TE004001UV"; 118 case POLBTE004002UV: return "POLB_TE004002UV"; 119 case POLBTE004007UV: return "POLB_TE004007UV"; 120 case POLBTE004100UV: return "POLB_TE004100UV"; 121 case POLBTE004102UV: return "POLB_TE004102UV"; 122 case POLBTE004200UV: return "POLB_TE004200UV"; 123 case POLBTE004201UV: return "POLB_TE004201UV"; 124 case POLBTE004202UV: return "POLB_TE004202UV"; 125 case POLBTE004301UV: return "POLB_TE004301UV"; 126 case POLBTE004500UV: return "POLB_TE004500UV"; 127 default: return "?"; 128 } 129 } 130 public String getSystem() { 131 return "http://terminology.hl7.org/CodeSystem/v3-triggerEventID"; 132 } 133 public String getDefinition() { 134 switch (this) { 135 case POLBTE004000UV: return "Description:"; 136 case POLBTE004001UV: return "Description:"; 137 case POLBTE004002UV: return "Description:"; 138 case POLBTE004007UV: return "Description:"; 139 case POLBTE004100UV: return "Description:"; 140 case POLBTE004102UV: return "Description:"; 141 case POLBTE004200UV: return "Description:"; 142 case POLBTE004201UV: return "Description:"; 143 case POLBTE004202UV: return "Description:"; 144 case POLBTE004301UV: return "Description:"; 145 case POLBTE004500UV: return "Description:"; 146 default: return "?"; 147 } 148 } 149 public String getDisplay() { 150 switch (this) { 151 case POLBTE004000UV: return "Result Status"; 152 case POLBTE004001UV: return "Result Confirm"; 153 case POLBTE004002UV: return "Result Reject"; 154 case POLBTE004007UV: return "Result Tracking"; 155 case POLBTE004100UV: return "Result in Progress"; 156 case POLBTE004102UV: return "Result Activate"; 157 case POLBTE004200UV: return "Result Complete with Fulfillment"; 158 case POLBTE004201UV: return "Result Corrected"; 159 case POLBTE004202UV: return "Result Complete"; 160 case POLBTE004301UV: return "Result Abort"; 161 case POLBTE004500UV: return "Result Nullify"; 162 default: return "?"; 163 } 164 } 165 166 167} 168