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 Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0
033
034import org.hl7.fhir.exceptions.FHIRException;
035
036public enum CertaintySubcomponentType {
037
038  /**
039   * methodologic concerns reducing internal validity.
040   */
041  RISKOFBIAS,
042  /**
043   * concerns that findings are not similar enough to support certainty.
044   */
045  INCONSISTENCY,
046  /**
047   * concerns reducing external validity.
048   */
049  INDIRECTNESS,
050  /**
051   * High quality evidence.
052   */
053  IMPRECISION,
054  /**
055   * likelihood that what is published misrepresents what is available to publish.
056   */
057  PUBLICATIONBIAS,
058  /**
059   * higher certainty due to dose response relationship.
060   */
061  DOSERESPONSEGRADIENT,
062  /**
063   * higher certainty due to risk of bias in opposite direction.
064   */
065  PLAUSIBLECONFOUNDING,
066  /**
067   * higher certainty due to large effect size.
068   */
069  LARGEEFFECT,
070  /**
071   * added to help the parsers
072   */
073  NULL;
074
075  public static CertaintySubcomponentType fromCode(String codeString) throws FHIRException {
076    if (codeString == null || "".equals(codeString))
077      return null;
078    if ("RiskOfBias".equals(codeString))
079      return RISKOFBIAS;
080    if ("Inconsistency".equals(codeString))
081      return INCONSISTENCY;
082    if ("Indirectness".equals(codeString))
083      return INDIRECTNESS;
084    if ("Imprecision".equals(codeString))
085      return IMPRECISION;
086    if ("PublicationBias".equals(codeString))
087      return PUBLICATIONBIAS;
088    if ("DoseResponseGradient".equals(codeString))
089      return DOSERESPONSEGRADIENT;
090    if ("PlausibleConfounding".equals(codeString))
091      return PLAUSIBLECONFOUNDING;
092    if ("LargeEffect".equals(codeString))
093      return LARGEEFFECT;
094    throw new FHIRException("Unknown CertaintySubcomponentType code '" + codeString + "'");
095  }
096
097  public String toCode() {
098    switch (this) {
099    case RISKOFBIAS:
100      return "RiskOfBias";
101    case INCONSISTENCY:
102      return "Inconsistency";
103    case INDIRECTNESS:
104      return "Indirectness";
105    case IMPRECISION:
106      return "Imprecision";
107    case PUBLICATIONBIAS:
108      return "PublicationBias";
109    case DOSERESPONSEGRADIENT:
110      return "DoseResponseGradient";
111    case PLAUSIBLECONFOUNDING:
112      return "PlausibleConfounding";
113    case LARGEEFFECT:
114      return "LargeEffect";
115    case NULL:
116      return null;
117    default:
118      return "?";
119    }
120  }
121
122  public String getSystem() {
123    return "http://terminology.hl7.org/CodeSystem/certainty-subcomponent-type";
124  }
125
126  public String getDefinition() {
127    switch (this) {
128    case RISKOFBIAS:
129      return "methodologic concerns reducing internal validity.";
130    case INCONSISTENCY:
131      return "concerns that findings are not similar enough to support certainty.";
132    case INDIRECTNESS:
133      return "concerns reducing external validity.";
134    case IMPRECISION:
135      return "High quality evidence.";
136    case PUBLICATIONBIAS:
137      return "likelihood that what is published misrepresents what is available to publish.";
138    case DOSERESPONSEGRADIENT:
139      return "higher certainty due to dose response relationship.";
140    case PLAUSIBLECONFOUNDING:
141      return "higher certainty due to risk of bias in opposite direction.";
142    case LARGEEFFECT:
143      return "higher certainty due to large effect size.";
144    case NULL:
145      return null;
146    default:
147      return "?";
148    }
149  }
150
151  public String getDisplay() {
152    switch (this) {
153    case RISKOFBIAS:
154      return "Risk of bias";
155    case INCONSISTENCY:
156      return "Inconsistency";
157    case INDIRECTNESS:
158      return "Indirectness";
159    case IMPRECISION:
160      return "Imprecision";
161    case PUBLICATIONBIAS:
162      return "Publication bias";
163    case DOSERESPONSEGRADIENT:
164      return "Dose response gradient";
165    case PLAUSIBLECONFOUNDING:
166      return "Plausible confounding";
167    case LARGEEFFECT:
168      return "Large effect";
169    case NULL:
170      return null;
171    default:
172      return "?";
173    }
174  }
175
176}