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 V3SubstanceAdminSubstitution { 038 039 /** 040 * Description: Substitution occurred or is permitted with another product that may potentially have different ingredients, but having the same biological and therapeutic effects. 041 */ 042 _ACTSUBSTANCEADMINSUBSTITUTIONCODE, 043 /** 044 * Description: Substitution occurred or is permitted with another bioequivalent and therapeutically equivalent product. 045 */ 046 E, 047 /** 048 * Description: 049 050 051 Substitution occurred or is permitted with another product that is a: 052 053 054 pharmaceutical alternative containing the same active ingredient but is formulated with different salt, ester 055 pharmaceutical equivalent that has the same active ingredient, strength, dosage form and route of administration 056 057 058 Examples: 059 060 061 062 063 Pharmaceutical alternative: Erythromycin Ethylsuccinate for Erythromycin Stearate 064 065 Pharmaceutical equivalent: Lisonpril for Zestril 066 */ 067 EC, 068 /** 069 * Description: 070 071 072 Substitution occurred or is permitted between equivalent Brands but not Generics 073 074 075 Examples: 076 077 078 079 Zestril for Prinivil 080 Coumadin for Jantoven 081 */ 082 BC, 083 /** 084 * Description: Substitution occurred or is permitted between equivalent Generics but not Brands 085 086 087 Examples: 088 089 090 091 Lisnopril (Lupin Corp) for Lisnopril (Wockhardt Corp) 092 */ 093 G, 094 /** 095 * Description: Substitution occurred or is permitted with another product having the same therapeutic objective and safety profile. 096 097 098 Examples: 099 100 101 102 ranitidine for Tagamet 103 */ 104 TE, 105 /** 106 * Description: Substitution occurred or is permitted between therapeutically equivalent Brands but not Generics 107> 108 Examples: 109 110 111 112 Zantac for Tagamet 113 */ 114 TB, 115 /** 116 * Description: Substitution occurred or is permitted between therapeutically equivalent Generics but not Brands 117> 118 Examples: 119 120 121 122 Ranitidine for cimetidine 123 */ 124 TG, 125 /** 126 * Description: This substitution was performed or is permitted based on formulary guidelines. 127 */ 128 F, 129 /** 130 * No substitution occurred or is permitted. 131 */ 132 N, 133 /** 134 * added to help the parsers 135 */ 136 NULL; 137 public static V3SubstanceAdminSubstitution fromCode(String codeString) throws FHIRException { 138 if (codeString == null || "".equals(codeString)) 139 return null; 140 if ("_ActSubstanceAdminSubstitutionCode".equals(codeString)) 141 return _ACTSUBSTANCEADMINSUBSTITUTIONCODE; 142 if ("E".equals(codeString)) 143 return E; 144 if ("EC".equals(codeString)) 145 return EC; 146 if ("BC".equals(codeString)) 147 return BC; 148 if ("G".equals(codeString)) 149 return G; 150 if ("TE".equals(codeString)) 151 return TE; 152 if ("TB".equals(codeString)) 153 return TB; 154 if ("TG".equals(codeString)) 155 return TG; 156 if ("F".equals(codeString)) 157 return F; 158 if ("N".equals(codeString)) 159 return N; 160 throw new FHIRException("Unknown V3SubstanceAdminSubstitution code '"+codeString+"'"); 161 } 162 public String toCode() { 163 switch (this) { 164 case _ACTSUBSTANCEADMINSUBSTITUTIONCODE: return "_ActSubstanceAdminSubstitutionCode"; 165 case E: return "E"; 166 case EC: return "EC"; 167 case BC: return "BC"; 168 case G: return "G"; 169 case TE: return "TE"; 170 case TB: return "TB"; 171 case TG: return "TG"; 172 case F: return "F"; 173 case N: return "N"; 174 default: return "?"; 175 } 176 } 177 public String getSystem() { 178 return "http://terminology.hl7.org/CodeSystem/v3-substanceAdminSubstitution"; 179 } 180 public String getDefinition() { 181 switch (this) { 182 case _ACTSUBSTANCEADMINSUBSTITUTIONCODE: return "Description: Substitution occurred or is permitted with another product that may potentially have different ingredients, but having the same biological and therapeutic effects."; 183 case E: return "Description: Substitution occurred or is permitted with another bioequivalent and therapeutically equivalent product."; 184 case EC: return "Description: \n \r\n\n Substitution occurred or is permitted with another product that is a:\r\n\n \n pharmaceutical alternative containing the same active ingredient but is formulated with different salt, ester\n pharmaceutical equivalent that has the same active ingredient, strength, dosage form and route of administration\n \n \n Examples: \n \r\n\n \n \n Pharmaceutical alternative: Erythromycin Ethylsuccinate for Erythromycin Stearate\n \n Pharmaceutical equivalent: Lisonpril for Zestril"; 185 case BC: return "Description: \n \r\n\n Substitution occurred or is permitted between equivalent Brands but not Generics\r\n\n \n Examples: \n \r\n\n \n Zestril for Prinivil\n Coumadin for Jantoven"; 186 case G: return "Description: Substitution occurred or is permitted between equivalent Generics but not Brands\r\n\n \n Examples: \n \r\n\n \n Lisnopril (Lupin Corp) for Lisnopril (Wockhardt Corp)"; 187 case TE: return "Description: Substitution occurred or is permitted with another product having the same therapeutic objective and safety profile.\r\n\n \n Examples: \n \r\n\n \n ranitidine for Tagamet"; 188 case TB: return "Description: Substitution occurred or is permitted between therapeutically equivalent Brands but not Generics\r\n>\n Examples: \n \r\n\n \n Zantac for Tagamet"; 189 case TG: return "Description: Substitution occurred or is permitted between therapeutically equivalent Generics but not Brands\r\n>\n Examples: \n \r\n\n \n Ranitidine for cimetidine"; 190 case F: return "Description: This substitution was performed or is permitted based on formulary guidelines."; 191 case N: return "No substitution occurred or is permitted."; 192 default: return "?"; 193 } 194 } 195 public String getDisplay() { 196 switch (this) { 197 case _ACTSUBSTANCEADMINSUBSTITUTIONCODE: return "ActSubstanceAdminSubstitutionCode"; 198 case E: return "equivalent"; 199 case EC: return "equivalent composition"; 200 case BC: return "brand composition"; 201 case G: return "generic composition"; 202 case TE: return "therapeutic alternative"; 203 case TB: return "therapeutic brand"; 204 case TG: return "therapeutic generic"; 205 case F: return "formulary"; 206 case N: return "none"; 207 default: return "?"; 208 } 209 } 210 211 212} 213