001package org.hl7.fhir.r4.model.codesystems;
002
003
004
005
006/*
007  Copyright (c) 2011+, HL7, Inc.
008  All rights reserved.
009  
010  Redistribution and use in source and binary forms, with or without modification, 
011  are permitted provided that the following conditions are met:
012  
013   * Redistributions of source code must retain the above copyright notice, this 
014     list of conditions and the following disclaimer.
015   * Redistributions in binary form must reproduce the above copyright notice, 
016     this list of conditions and the following disclaimer in the documentation 
017     and/or other materials provided with the distribution.
018   * Neither the name of HL7 nor the names of its contributors may be used to 
019     endorse or promote products derived from this software without specific 
020     prior written permission.
021  
022  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
023  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
024  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
025  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
026  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
027  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
028  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
029  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
030  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
031  POSSIBILITY OF SUCH DAMAGE.
032  
033*/
034
035// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0
036
037
038import org.hl7.fhir.exceptions.FHIRException;
039
040public enum ResearchStudyPhase {
041
042        /**
043         * Trials without phases (for example, studies of devices or behavioral interventions).
044         */
045        NA, 
046        /**
047         * Designation for optional exploratory trials conducted in accordance with the United States Food and Drug Administration's (FDA) 2006 Guidance on Exploratory Investigational New Drug (IND) Studies. Formerly called Phase 0.
048         */
049        EARLYPHASE1, 
050        /**
051         * Includes initial studies to determine the metabolism and pharmacologic actions of drugs in humans, the side effects associated with increasing doses, and to gain early evidence of effectiveness; may include healthy participants and/or patients.
052         */
053        PHASE1, 
054        /**
055         * Trials that are a combination of phases 1 and 2.
056         */
057        PHASE1PHASE2, 
058        /**
059         * Includes controlled clinical studies conducted to evaluate the effectiveness of the drug for a particular indication or indications in participants with the disease or condition under study and to determine the common short-term side effects and risks.
060         */
061        PHASE2, 
062        /**
063         * Trials that are a combination of phases 2 and 3.
064         */
065        PHASE2PHASE3, 
066        /**
067         * Includes trials conducted after preliminary evidence suggesting effectiveness of the drug has been obtained, and are intended to gather additional information to evaluate the overall benefit-risk relationship of the drug.
068         */
069        PHASE3, 
070        /**
071         * Studies of FDA-approved drugs to delineate additional information including the drug's risks, benefits, and optimal use.
072         */
073        PHASE4, 
074        /**
075         * added to help the parsers
076         */
077        NULL;
078        public static ResearchStudyPhase fromCode(String codeString) throws FHIRException {
079            if (codeString == null || "".equals(codeString))
080                return null;
081        if ("n-a".equals(codeString))
082          return NA;
083        if ("early-phase-1".equals(codeString))
084          return EARLYPHASE1;
085        if ("phase-1".equals(codeString))
086          return PHASE1;
087        if ("phase-1-phase-2".equals(codeString))
088          return PHASE1PHASE2;
089        if ("phase-2".equals(codeString))
090          return PHASE2;
091        if ("phase-2-phase-3".equals(codeString))
092          return PHASE2PHASE3;
093        if ("phase-3".equals(codeString))
094          return PHASE3;
095        if ("phase-4".equals(codeString))
096          return PHASE4;
097        throw new FHIRException("Unknown ResearchStudyPhase code '"+codeString+"'");
098        }
099        public String toCode() {
100          switch (this) {
101            case NA: return "n-a";
102            case EARLYPHASE1: return "early-phase-1";
103            case PHASE1: return "phase-1";
104            case PHASE1PHASE2: return "phase-1-phase-2";
105            case PHASE2: return "phase-2";
106            case PHASE2PHASE3: return "phase-2-phase-3";
107            case PHASE3: return "phase-3";
108            case PHASE4: return "phase-4";
109            default: return "?";
110          }
111        }
112        public String getSystem() {
113          return "http://terminology.hl7.org/CodeSystem/research-study-phase";
114        }
115        public String getDefinition() {
116          switch (this) {
117            case NA: return "Trials without phases (for example, studies of devices or behavioral interventions).";
118            case EARLYPHASE1: return "Designation for optional exploratory trials conducted in accordance with the United States Food and Drug Administration's (FDA) 2006 Guidance on Exploratory Investigational New Drug (IND) Studies. Formerly called Phase 0.";
119            case PHASE1: return "Includes initial studies to determine the metabolism and pharmacologic actions of drugs in humans, the side effects associated with increasing doses, and to gain early evidence of effectiveness; may include healthy participants and/or patients.";
120            case PHASE1PHASE2: return "Trials that are a combination of phases 1 and 2.";
121            case PHASE2: return "Includes controlled clinical studies conducted to evaluate the effectiveness of the drug for a particular indication or indications in participants with the disease or condition under study and to determine the common short-term side effects and risks.";
122            case PHASE2PHASE3: return "Trials that are a combination of phases 2 and 3.";
123            case PHASE3: return "Includes trials conducted after preliminary evidence suggesting effectiveness of the drug has been obtained, and are intended to gather additional information to evaluate the overall benefit-risk relationship of the drug.";
124            case PHASE4: return "Studies of FDA-approved drugs to delineate additional information including the drug's risks, benefits, and optimal use.";
125            default: return "?";
126          }
127        }
128        public String getDisplay() {
129          switch (this) {
130            case NA: return "N/A";
131            case EARLYPHASE1: return "Early Phase 1";
132            case PHASE1: return "Phase 1";
133            case PHASE1PHASE2: return "Phase 1/Phase 2";
134            case PHASE2: return "Phase 2";
135            case PHASE2PHASE3: return "Phase 2/Phase 3";
136            case PHASE3: return "Phase 3";
137            case PHASE4: return "Phase 4";
138            default: return "?";
139          }
140    }
141
142
143}