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