001package org.hl7.fhir.r5.model.codesystems; 002 003/* 004 * #%L 005 * org.hl7.fhir.r5 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 Copyright (c) 2011+, HL7, Inc. 025 All rights reserved. 026 027 Redistribution and use in source and binary forms, with or without modification, 028 are permitted provided that the following conditions are met: 029 030 * Redistributions of source code must retain the above copyright notice, this 031 list of conditions and the following disclaimer. 032 * Redistributions in binary form must reproduce the above copyright notice, 033 this list of conditions and the following disclaimer in the documentation 034 and/or other materials provided with the distribution. 035 * Neither the name of HL7 nor the names of its contributors may be used to 036 endorse or promote products derived from this software without specific 037 prior written permission. 038 039 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 040 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 041 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 042 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 043 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 044 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 045 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 046 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 047 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 048 POSSIBILITY OF SUCH DAMAGE. 049 050*/ 051 052// Generated on Thu, Oct 17, 2019 09:42+1100 for FHIR v4.1.0 053 054 055import org.hl7.fhir.exceptions.FHIRException; 056 057public enum StatisticType { 058 059 /** 060 * Computed by forming the difference between two medians. 061 */ 062 ABSOLUTEMEDIANDIFF, 063 /** 064 * The number or amount of something. 065 */ 066 C25463, 067 /** 068 * The strength of correlation between a set (2 or more) of random variables. The covariance is obtained by forming: cov(x,y)=e([x-e(x)][y-e(y)] where e(x), e(y) is the expected value (mean) of variable x and y respectively. Covariance is symmetric so cov(x,y)=cov(y,x). The covariance is usefull when looking at the variance of the sum of the 2 random variables since: var(x+y) = var(x) +var(y) +2cov(x,y) the covariance cov(x,y) is used to obtain the coefficient of correlation cor(x,y) by normalizing (dividing) cov(x,y) but the product of the standard deviations of x and y. 069 */ 070 _0000301, 071 /** 072 * A special use case where the proportion is derived from a formula rather than derived from summary evidence. 073 */ 074 PREDICTEDRISK, 075 /** 076 * Descriptive measure reported as narrative. 077 */ 078 DESCRIPTIVE, 079 /** 080 * A measure of how often a particular event happens in one group compared to how often it happens in another group, over time. In cancer research, hazard ratios are often used in clinical trials to measure survival at any point in time in a group of patients who have been given a specific treatment compared to a control group given another treatment or a placebo. A hazard ratio of one means that there is no difference in survival between the two groups. A hazard ratio of greater than one or less than one means that survival was better in one of the groups. 081 */ 082 C93150, 083 /** 084 * The relative frequency of occurrence of something. 085 */ 086 C16726, 087 /** 088 * A type of relative effect estimate that compares rates over time (eg events per person-years). 089 */ 090 RATERATIO, 091 /** 092 * The largest possible quantity or degree. 093 */ 094 C25564, 095 /** 096 * The sum of a set of values divided by the number of values in the set. 097 */ 098 C53319, 099 /** 100 * The mean difference, or difference in means, measures the absolute difference between the mean value in two different groups. 101 */ 102 _0000457, 103 /** 104 * The value which has an equal number of values greater and less than it. 105 */ 106 C28007, 107 /** 108 * The smallest possible quantity. 109 */ 110 C25570, 111 /** 112 * The ratio of the odds of an event occurring in one group to the odds of it occurring in another group, or to a sample-based estimate of that ratio. 113 */ 114 C16932, 115 /** 116 * A measure of the correlation of two variables X and Y measured on the same object or organism, that is, a measure of the tendency of the variables to increase or decrease together. It is defined as the sum of the products of the standard scores of the two measures divided by the degrees of freedom. 117 */ 118 C65172, 119 /** 120 * The ratio (for a given time period) of the number of occurrences of a disease or event to the number of units at risk in the population. 121 */ 122 C17010, 123 /** 124 * Quotient of quantities of the same kind for different components within the same system. [Use for univariate outcomes within an individual.]. 125 */ 126 C44256, 127 /** 128 * Generated by a type of data transformation called a regression, which aims to model a response variable by expression the predictor variables as part of a function where variable terms are modified by a number. A regression coefficient is one such number. 129 */ 130 _0000565, 131 /** 132 * A measure of the risk of a certain event happening in one group compared to the risk of the same event happening in another group. In cancer research, risk ratios are used in prospective (forward looking) studies, such as cohort studies and clinical trials. A risk ratio of one means there is no difference between two groups in terms of their risk of cancer, based on whether or not they were exposed to a certain substance or factor, or how they responded to two treatments being compared. A risk ratio of greater than one or of less than one usually means that being exposed to a certain substance or factor either increases (risk ratio greater than one) or decreases (risk ratio less than one) the risk of cancer, or that the treatments being compared do not have the same effects. 133 */ 134 C93152, 135 /** 136 * Difference between the observed risks (proportions of individuals with the outcome of interest) in the two groups. The risk difference is straightforward to interpret: it describes the actual difference in the observed risk of events between experimental and control interventions. 137 */ 138 _0000424, 139 /** 140 * A distribution-free analog of correlation analysis. Like regression, it can be applied to compare two independent random variables, each at several levels (which may be discrete or continuous). Unlike regression, Spearman's rank correlation works on ranked (relative) data, rather than directly on the data itself. 141 */ 142 C65171, 143 /** 144 * Computed by forming the difference between two means, divided by an estimate of the within-group standard deviation. It is used to provide an estimatation of the effect size between two treatments when the predictor (independent variable) is categorical and the response(dependent) variable is continuous. 145 */ 146 _0000100, 147 /** 148 * added to help the parsers 149 */ 150 NULL; 151 public static StatisticType fromCode(String codeString) throws FHIRException { 152 if (codeString == null || "".equals(codeString)) 153 return null; 154 if ("absolute-MedianDiff".equals(codeString)) 155 return ABSOLUTEMEDIANDIFF; 156 if ("C25463".equals(codeString)) 157 return C25463; 158 if ("0000301".equals(codeString)) 159 return _0000301; 160 if ("predictedRisk".equals(codeString)) 161 return PREDICTEDRISK; 162 if ("descriptive".equals(codeString)) 163 return DESCRIPTIVE; 164 if ("C93150".equals(codeString)) 165 return C93150; 166 if ("C16726".equals(codeString)) 167 return C16726; 168 if ("rate-ratio".equals(codeString)) 169 return RATERATIO; 170 if ("C25564".equals(codeString)) 171 return C25564; 172 if ("C53319".equals(codeString)) 173 return C53319; 174 if ("0000457".equals(codeString)) 175 return _0000457; 176 if ("C28007".equals(codeString)) 177 return C28007; 178 if ("C25570".equals(codeString)) 179 return C25570; 180 if ("C16932".equals(codeString)) 181 return C16932; 182 if ("C65172".equals(codeString)) 183 return C65172; 184 if ("C17010".equals(codeString)) 185 return C17010; 186 if ("C44256".equals(codeString)) 187 return C44256; 188 if ("0000565".equals(codeString)) 189 return _0000565; 190 if ("C93152".equals(codeString)) 191 return C93152; 192 if ("0000424".equals(codeString)) 193 return _0000424; 194 if ("C65171".equals(codeString)) 195 return C65171; 196 if ("0000100".equals(codeString)) 197 return _0000100; 198 throw new FHIRException("Unknown StatisticType code '"+codeString+"'"); 199 } 200 public String toCode() { 201 switch (this) { 202 case ABSOLUTEMEDIANDIFF: return "absolute-MedianDiff"; 203 case C25463: return "C25463"; 204 case _0000301: return "0000301"; 205 case PREDICTEDRISK: return "predictedRisk"; 206 case DESCRIPTIVE: return "descriptive"; 207 case C93150: return "C93150"; 208 case C16726: return "C16726"; 209 case RATERATIO: return "rate-ratio"; 210 case C25564: return "C25564"; 211 case C53319: return "C53319"; 212 case _0000457: return "0000457"; 213 case C28007: return "C28007"; 214 case C25570: return "C25570"; 215 case C16932: return "C16932"; 216 case C65172: return "C65172"; 217 case C17010: return "C17010"; 218 case C44256: return "C44256"; 219 case _0000565: return "0000565"; 220 case C93152: return "C93152"; 221 case _0000424: return "0000424"; 222 case C65171: return "C65171"; 223 case _0000100: return "0000100"; 224 default: return "?"; 225 } 226 } 227 public String getSystem() { 228 return "http://terminology.hl7.org/CodeSystem/statistic-type"; 229 } 230 public String getDefinition() { 231 switch (this) { 232 case ABSOLUTEMEDIANDIFF: return "Computed by forming the difference between two medians."; 233 case C25463: return "The number or amount of something."; 234 case _0000301: return "The strength of correlation between a set (2 or more) of random variables. The covariance is obtained by forming: cov(x,y)=e([x-e(x)][y-e(y)] where e(x), e(y) is the expected value (mean) of variable x and y respectively. Covariance is symmetric so cov(x,y)=cov(y,x). The covariance is usefull when looking at the variance of the sum of the 2 random variables since: var(x+y) = var(x) +var(y) +2cov(x,y) the covariance cov(x,y) is used to obtain the coefficient of correlation cor(x,y) by normalizing (dividing) cov(x,y) but the product of the standard deviations of x and y."; 235 case PREDICTEDRISK: return "A special use case where the proportion is derived from a formula rather than derived from summary evidence."; 236 case DESCRIPTIVE: return "Descriptive measure reported as narrative."; 237 case C93150: return "A measure of how often a particular event happens in one group compared to how often it happens in another group, over time. In cancer research, hazard ratios are often used in clinical trials to measure survival at any point in time in a group of patients who have been given a specific treatment compared to a control group given another treatment or a placebo. A hazard ratio of one means that there is no difference in survival between the two groups. A hazard ratio of greater than one or less than one means that survival was better in one of the groups."; 238 case C16726: return "The relative frequency of occurrence of something."; 239 case RATERATIO: return "A type of relative effect estimate that compares rates over time (eg events per person-years)."; 240 case C25564: return "The largest possible quantity or degree."; 241 case C53319: return "The sum of a set of values divided by the number of values in the set."; 242 case _0000457: return "The mean difference, or difference in means, measures the absolute difference between the mean value in two different groups."; 243 case C28007: return "The value which has an equal number of values greater and less than it."; 244 case C25570: return "The smallest possible quantity."; 245 case C16932: return "The ratio of the odds of an event occurring in one group to the odds of it occurring in another group, or to a sample-based estimate of that ratio."; 246 case C65172: return "A measure of the correlation of two variables X and Y measured on the same object or organism, that is, a measure of the tendency of the variables to increase or decrease together. It is defined as the sum of the products of the standard scores of the two measures divided by the degrees of freedom."; 247 case C17010: return "The ratio (for a given time period) of the number of occurrences of a disease or event to the number of units at risk in the population."; 248 case C44256: return "Quotient of quantities of the same kind for different components within the same system. [Use for univariate outcomes within an individual.]."; 249 case _0000565: return "Generated by a type of data transformation called a regression, which aims to model a response variable by expression the predictor variables as part of a function where variable terms are modified by a number. A regression coefficient is one such number."; 250 case C93152: return "A measure of the risk of a certain event happening in one group compared to the risk of the same event happening in another group. In cancer research, risk ratios are used in prospective (forward looking) studies, such as cohort studies and clinical trials. A risk ratio of one means there is no difference between two groups in terms of their risk of cancer, based on whether or not they were exposed to a certain substance or factor, or how they responded to two treatments being compared. A risk ratio of greater than one or of less than one usually means that being exposed to a certain substance or factor either increases (risk ratio greater than one) or decreases (risk ratio less than one) the risk of cancer, or that the treatments being compared do not have the same effects."; 251 case _0000424: return "Difference between the observed risks (proportions of individuals with the outcome of interest) in the two groups. The risk difference is straightforward to interpret: it describes the actual difference in the observed risk of events between experimental and control interventions."; 252 case C65171: return "A distribution-free analog of correlation analysis. Like regression, it can be applied to compare two independent random variables, each at several levels (which may be discrete or continuous). Unlike regression, Spearman's rank correlation works on ranked (relative) data, rather than directly on the data itself."; 253 case _0000100: return "Computed by forming the difference between two means, divided by an estimate of the within-group standard deviation. It is used to provide an estimatation of the effect size between two treatments when the predictor (independent variable) is categorical and the response(dependent) variable is continuous."; 254 default: return "?"; 255 } 256 } 257 public String getDisplay() { 258 switch (this) { 259 case ABSOLUTEMEDIANDIFF: return "Absolute Median Difference"; 260 case C25463: return "Count"; 261 case _0000301: return "Covariance"; 262 case PREDICTEDRISK: return "Predicted Risk"; 263 case DESCRIPTIVE: return "Descriptive"; 264 case C93150: return "Hazard Ratio"; 265 case C16726: return "Incidence"; 266 case RATERATIO: return "Incidence Rate Ratio"; 267 case C25564: return "Maximum"; 268 case C53319: return "Mean"; 269 case _0000457: return "Mean Difference"; 270 case C28007: return "Median"; 271 case C25570: return "Minimum"; 272 case C16932: return "Odds Ratio"; 273 case C65172: return "Pearson Correlation Coefficient"; 274 case C17010: return "Prevalence"; 275 case C44256: return "Proportion"; 276 case _0000565: return "Regression Coefficient"; 277 case C93152: return "Relative Risk"; 278 case _0000424: return "Risk Difference"; 279 case C65171: return "Spearman Rank-Order Correlation "; 280 case _0000100: return "Standardized Mean Difference"; 281 default: return "?"; 282 } 283 } 284 285 286} 287