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