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 MeasurePopulation { 058 059 /** 060 * The initial population refers to all patients or events to be evaluated by a quality measure involving patients who share a common set of specified characterstics. All patients or events counted (for example, as numerator, as denominator) are drawn from the initial population. 061 */ 062 INITIALPOPULATION, 063 /** 064 * The upper portion of a fraction used to calculate a rate, proportion, or ratio. Also called the measure focus, it is the target process, condition, event, or outcome. Numerator criteria are the processes or outcomes expected for each patient, or event defined in the denominator. A numerator statement describes the clinical action that satisfies the conditions of the measure. 065 */ 066 NUMERATOR, 067 /** 068 * Numerator exclusion criteria define patients or events to be removed from the numerator. Numerator exclusions are used in proportion and ratio measures to help narrow the numerator (for inverted measures). 069 */ 070 NUMERATOREXCLUSION, 071 /** 072 * The lower portion of a fraction used to calculate a rate, proportion, or ratio. The denominator can be the same as the initial population, or a subset of the initial population to further constrain the population for the purpose of the measure. 073 */ 074 DENOMINATOR, 075 /** 076 * Denominator exclusion criteria define patients or events that should be removed from the denominator before determining if numerator criteria are met. Denominator exclusions are used in proportion and ratio measures to help narrow the denominator. For example, patients with bilateral lower extremity amputations would be listed as a denominator exclusion for a measure requiring foot exams. 077 */ 078 DENOMINATOREXCLUSION, 079 /** 080 * Denominator exceptions are conditions that should remove a patient or event from the denominator of a measure only if the numerator criteria are not met. Denominator exception allows for adjustment of the calculated score for those providers with higher risk populations. Denominator exception criteria are only used in proportion measures. 081 */ 082 DENOMINATOREXCEPTION, 083 /** 084 * Measure population criteria define the patients or events for which the individual observation for the measure should be taken. Measure populations are used for continuous variable measures rather than numerator and denominator criteria. 085 */ 086 MEASUREPOPULATION, 087 /** 088 * Measure population criteria define the patients or events that should be removed from the measure population before determining the outcome of one or more continuous variables defined for the measure observation. Measure population exclusion criteria are used within continuous variable measures to help narrow the measure population. 089 */ 090 MEASUREPOPULATIONEXCLUSION, 091 /** 092 * Defines the individual observation to be performed for each patient or event in the measure population. Measure observations for each case in the population are aggregated to determine the overall measure score for the population. 093 */ 094 MEASUREOBSERVATION, 095 /** 096 * added to help the parsers 097 */ 098 NULL; 099 public static MeasurePopulation fromCode(String codeString) throws FHIRException { 100 if (codeString == null || "".equals(codeString)) 101 return null; 102 if ("initial-population".equals(codeString)) 103 return INITIALPOPULATION; 104 if ("numerator".equals(codeString)) 105 return NUMERATOR; 106 if ("numerator-exclusion".equals(codeString)) 107 return NUMERATOREXCLUSION; 108 if ("denominator".equals(codeString)) 109 return DENOMINATOR; 110 if ("denominator-exclusion".equals(codeString)) 111 return DENOMINATOREXCLUSION; 112 if ("denominator-exception".equals(codeString)) 113 return DENOMINATOREXCEPTION; 114 if ("measure-population".equals(codeString)) 115 return MEASUREPOPULATION; 116 if ("measure-population-exclusion".equals(codeString)) 117 return MEASUREPOPULATIONEXCLUSION; 118 if ("measure-observation".equals(codeString)) 119 return MEASUREOBSERVATION; 120 throw new FHIRException("Unknown MeasurePopulation code '"+codeString+"'"); 121 } 122 public String toCode() { 123 switch (this) { 124 case INITIALPOPULATION: return "initial-population"; 125 case NUMERATOR: return "numerator"; 126 case NUMERATOREXCLUSION: return "numerator-exclusion"; 127 case DENOMINATOR: return "denominator"; 128 case DENOMINATOREXCLUSION: return "denominator-exclusion"; 129 case DENOMINATOREXCEPTION: return "denominator-exception"; 130 case MEASUREPOPULATION: return "measure-population"; 131 case MEASUREPOPULATIONEXCLUSION: return "measure-population-exclusion"; 132 case MEASUREOBSERVATION: return "measure-observation"; 133 default: return "?"; 134 } 135 } 136 public String getSystem() { 137 return "http://terminology.hl7.org/CodeSystem/measure-population"; 138 } 139 public String getDefinition() { 140 switch (this) { 141 case INITIALPOPULATION: return "The initial population refers to all patients or events to be evaluated by a quality measure involving patients who share a common set of specified characterstics. All patients or events counted (for example, as numerator, as denominator) are drawn from the initial population."; 142 case NUMERATOR: return "The upper portion of a fraction used to calculate a rate, proportion, or ratio. Also called the measure focus, it is the target process, condition, event, or outcome. Numerator criteria are the processes or outcomes expected for each patient, or event defined in the denominator. A numerator statement describes the clinical action that satisfies the conditions of the measure."; 143 case NUMERATOREXCLUSION: return "Numerator exclusion criteria define patients or events to be removed from the numerator. Numerator exclusions are used in proportion and ratio measures to help narrow the numerator (for inverted measures)."; 144 case DENOMINATOR: return "The lower portion of a fraction used to calculate a rate, proportion, or ratio. The denominator can be the same as the initial population, or a subset of the initial population to further constrain the population for the purpose of the measure."; 145 case DENOMINATOREXCLUSION: return "Denominator exclusion criteria define patients or events that should be removed from the denominator before determining if numerator criteria are met. Denominator exclusions are used in proportion and ratio measures to help narrow the denominator. For example, patients with bilateral lower extremity amputations would be listed as a denominator exclusion for a measure requiring foot exams."; 146 case DENOMINATOREXCEPTION: return "Denominator exceptions are conditions that should remove a patient or event from the denominator of a measure only if the numerator criteria are not met. Denominator exception allows for adjustment of the calculated score for those providers with higher risk populations. Denominator exception criteria are only used in proportion measures."; 147 case MEASUREPOPULATION: return "Measure population criteria define the patients or events for which the individual observation for the measure should be taken. Measure populations are used for continuous variable measures rather than numerator and denominator criteria."; 148 case MEASUREPOPULATIONEXCLUSION: return "Measure population criteria define the patients or events that should be removed from the measure population before determining the outcome of one or more continuous variables defined for the measure observation. Measure population exclusion criteria are used within continuous variable measures to help narrow the measure population."; 149 case MEASUREOBSERVATION: return "Defines the individual observation to be performed for each patient or event in the measure population. Measure observations for each case in the population are aggregated to determine the overall measure score for the population."; 150 default: return "?"; 151 } 152 } 153 public String getDisplay() { 154 switch (this) { 155 case INITIALPOPULATION: return "Initial Population"; 156 case NUMERATOR: return "Numerator"; 157 case NUMERATOREXCLUSION: return "Numerator Exclusion"; 158 case DENOMINATOR: return "Denominator"; 159 case DENOMINATOREXCLUSION: return "Denominator Exclusion"; 160 case DENOMINATOREXCEPTION: return "Denominator Exception"; 161 case MEASUREPOPULATION: return "Measure Population"; 162 case MEASUREPOPULATIONEXCLUSION: return "Measure Population Exclusion"; 163 case MEASUREOBSERVATION: return "Measure Observation"; 164 default: return "?"; 165 } 166 } 167 168 169} 170