@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

# - resource -------------------------------------------------------------------

[] a fhir:CodeSystem ;
  fhir:id [ fhir:v "statistic-type"] ;
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2024-04-24T00:00:00+00:00" ]
  ] ;
  fhir:text [
     fhir:status [ fhir:v "generated" ]
  ] ;
  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ] ;
     fhir:value [ fhir:v "fhir" ]
  ] [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ] ;
     fhir:value [ fhir:v "5" ]
  ] ) ;
  fhir:url [ fhir:v "http://terminology.hl7.org/CodeSystem/statistic-type"], [ fhir:v "http://terminology.hl7.org/CodeSystem/statistic-type"] ;
  fhir:identifier ( [
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.1.1411" ]
  ] [
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.1.1411" ]
  ] ) ;
  fhir:version [ fhir:v "1.0.1"], [ fhir:v "1.0.1"] ;
  fhir:name [ fhir:v "StatisticStatisticType"], [ fhir:v "StatisticStatisticType"] ;
  fhir:title [ fhir:v "StatisticStatisticType"], [ fhir:v "StatisticStatisticType"] ;
  fhir:status [ fhir:v "active"], [ fhir:v "active"] ;
  fhir:experimental [ fhir:v "false"], [ fhir:v "false"] ;
  fhir:date [ fhir:v "2024-04-24T00:00:00+00:00"], [ fhir:v "2024-04-24T00:00:00+00:00"] ;
  fhir:publisher [ fhir:v "Health Level Seven International"], [ fhir:v "Health Level Seven International"] ;
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "hq@HL7.org" ]
     ] )
  ] [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "hq@HL7.org" ]
     ] )
  ] ) ;
  fhir:description [ fhir:v "The type of a specific statistic."], [ fhir:v "The type of a specific statistic."] ;
  fhir:copyright [ fhir:v "This material derives from the HL7 Terminology (THO). THO is copyright ©1989+ Health Level Seven International and is made available under the CC0 designation. For more licensing information see: https://terminology.hl7.org/license"], [ fhir:v "This material derives from the HL7 Terminology (THO). THO is copyright ©1989+ Health Level Seven International and is made available under the CC0 designation. For more licensing information see: https://terminology.hl7.org/license"] ;
  fhir:caseSensitive [ fhir:v "true"] ;
  fhir:valueSet [ fhir:v "http://terminology.hl7.org/ValueSet/statistic-type"] ;
  fhir:content [ fhir:v "complete"] ;
  fhir:concept ( [
     fhir:code [ fhir:v "absolute-MedianDiff" ] ;
     fhir:display [ fhir:v "Absolute Median Difference" ] ;
     fhir:definition [ fhir:v "Computed by forming the difference between two medians." ]
  ] [
     fhir:code [ fhir:v "C25463" ] ;
     fhir:display [ fhir:v "Count" ] ;
     fhir:definition [ fhir:v "The number or amount of something." ]
  ] [
     fhir:code [ fhir:v "0000301" ] ;
     fhir:display [ fhir:v "Covariance" ] ;
     fhir:definition [ fhir:v "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." ]
  ] [
     fhir:code [ fhir:v "predictedRisk" ] ;
     fhir:display [ fhir:v "Predicted Risk" ] ;
     fhir:definition [ fhir:v "A special use case where the proportion is derived from a formula rather than derived from summary evidence." ]
  ] [
     fhir:code [ fhir:v "descriptive" ] ;
     fhir:display [ fhir:v "Descriptive" ] ;
     fhir:definition [ fhir:v "Descriptive measure reported as narrative." ]
  ] [
     fhir:code [ fhir:v "C93150" ] ;
     fhir:display [ fhir:v "Hazard Ratio" ] ;
     fhir:definition [ fhir:v "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." ]
  ] [
     fhir:code [ fhir:v "C16726" ] ;
     fhir:display [ fhir:v "Incidence" ] ;
     fhir:definition [ fhir:v "The relative frequency of occurrence of something." ]
  ] [
     fhir:code [ fhir:v "rate-ratio" ] ;
     fhir:display [ fhir:v "Incidence Rate Ratio" ] ;
     fhir:definition [ fhir:v "A type of relative effect estimate that compares rates over time (eg events per person-years)." ]
  ] [
     fhir:code [ fhir:v "C25564" ] ;
     fhir:display [ fhir:v "Maximum" ] ;
     fhir:definition [ fhir:v "The largest possible quantity or degree." ]
  ] [
     fhir:code [ fhir:v "C53319" ] ;
     fhir:display [ fhir:v "Mean" ] ;
     fhir:definition [ fhir:v "The sum of a set of values divided by the number of values in the set." ]
  ] [
     fhir:code [ fhir:v "0000457" ] ;
     fhir:display [ fhir:v "Mean Difference" ] ;
     fhir:definition [ fhir:v "The mean difference, or difference in means, measures the absolute difference between the mean value in two different groups." ]
  ] [
     fhir:code [ fhir:v "C28007" ] ;
     fhir:display [ fhir:v "Median" ] ;
     fhir:definition [ fhir:v "The value which has an equal number of values greater and less than it." ]
  ] [
     fhir:code [ fhir:v "C25570" ] ;
     fhir:display [ fhir:v "Minimum" ] ;
     fhir:definition [ fhir:v "The smallest possible quantity." ]
  ] [
     fhir:code [ fhir:v "C16932" ] ;
     fhir:display [ fhir:v "Odds Ratio" ] ;
     fhir:definition [ fhir:v "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." ]
  ] [
     fhir:code [ fhir:v "C65172" ] ;
     fhir:display [ fhir:v "Pearson Correlation Coefficient" ] ;
     fhir:definition [ fhir:v "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." ]
  ] [
     fhir:code [ fhir:v "C17010" ] ;
     fhir:display [ fhir:v "Prevalence" ] ;
     fhir:definition [ fhir:v "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." ]
  ] [
     fhir:code [ fhir:v "C44256" ] ;
     fhir:display [ fhir:v "Proportion" ] ;
     fhir:definition [ fhir:v "Quotient of quantities of the same kind for different components within the same system. [Use for univariate outcomes within an individual.]." ]
  ] [
     fhir:code [ fhir:v "0000565" ] ;
     fhir:display [ fhir:v "Regression Coefficient" ] ;
     fhir:definition [ fhir:v "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." ]
  ] [
     fhir:code [ fhir:v "C93152" ] ;
     fhir:display [ fhir:v "Relative Risk" ] ;
     fhir:definition [ fhir:v "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." ]
  ] [
     fhir:code [ fhir:v "0000424" ] ;
     fhir:display [ fhir:v "Risk Difference" ] ;
     fhir:definition [ fhir:v "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." ]
  ] [
     fhir:code [ fhir:v "C65171" ] ;
     fhir:display [ fhir:v "Spearman Rank-Order Correlation" ] ;
     fhir:definition [ fhir:v "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." ]
  ] [
     fhir:code [ fhir:v "0000100" ] ;
     fhir:display [ fhir:v "Standardized Mean Difference" ] ;
     fhir:definition [ fhir:v "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." ]
  ] ) .

# -------------------------------------------------------------------------------------

