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 Thu, Sep 13, 2018 09:04-0400 for FHIR v3.5.0
033
034
035import org.hl7.fhir.exceptions.FHIRException;
036
037public enum MeasurePopulation {
038
039        /**
040         * 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.
041         */
042        INITIALPOPULATION, 
043        /**
044         * 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.
045         */
046        NUMERATOR, 
047        /**
048         * 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).
049         */
050        NUMERATOREXCLUSION, 
051        /**
052         * 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.
053         */
054        DENOMINATOR, 
055        /**
056         * 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.
057         */
058        DENOMINATOREXCLUSION, 
059        /**
060         * 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.
061         */
062        DENOMINATOREXCEPTION, 
063        /**
064         * 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.
065         */
066        MEASUREPOPULATION, 
067        /**
068         * 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.
069         */
070        MEASUREPOPULATIONEXCLUSION, 
071        /**
072         * 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.
073         */
074        MEASUREOBSERVATION, 
075        /**
076         * added to help the parsers
077         */
078        NULL;
079        public static MeasurePopulation fromCode(String codeString) throws FHIRException {
080            if (codeString == null || "".equals(codeString))
081                return null;
082        if ("initial-population".equals(codeString))
083          return INITIALPOPULATION;
084        if ("numerator".equals(codeString))
085          return NUMERATOR;
086        if ("numerator-exclusion".equals(codeString))
087          return NUMERATOREXCLUSION;
088        if ("denominator".equals(codeString))
089          return DENOMINATOR;
090        if ("denominator-exclusion".equals(codeString))
091          return DENOMINATOREXCLUSION;
092        if ("denominator-exception".equals(codeString))
093          return DENOMINATOREXCEPTION;
094        if ("measure-population".equals(codeString))
095          return MEASUREPOPULATION;
096        if ("measure-population-exclusion".equals(codeString))
097          return MEASUREPOPULATIONEXCLUSION;
098        if ("measure-observation".equals(codeString))
099          return MEASUREOBSERVATION;
100        throw new FHIRException("Unknown MeasurePopulation code '"+codeString+"'");
101        }
102        public String toCode() {
103          switch (this) {
104            case INITIALPOPULATION: return "initial-population";
105            case NUMERATOR: return "numerator";
106            case NUMERATOREXCLUSION: return "numerator-exclusion";
107            case DENOMINATOR: return "denominator";
108            case DENOMINATOREXCLUSION: return "denominator-exclusion";
109            case DENOMINATOREXCEPTION: return "denominator-exception";
110            case MEASUREPOPULATION: return "measure-population";
111            case MEASUREPOPULATIONEXCLUSION: return "measure-population-exclusion";
112            case MEASUREOBSERVATION: return "measure-observation";
113            default: return "?";
114          }
115        }
116        public String getSystem() {
117          return "http://terminology.hl7.org/CodeSystem/measure-population";
118        }
119        public String getDefinition() {
120          switch (this) {
121            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.";
122            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.";
123            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).";
124            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.";
125            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.";
126            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.";
127            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.";
128            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.";
129            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.";
130            default: return "?";
131          }
132        }
133        public String getDisplay() {
134          switch (this) {
135            case INITIALPOPULATION: return "Initial Population";
136            case NUMERATOR: return "Numerator";
137            case NUMERATOREXCLUSION: return "Numerator Exclusion";
138            case DENOMINATOR: return "Denominator";
139            case DENOMINATOREXCLUSION: return "Denominator Exclusion";
140            case DENOMINATOREXCEPTION: return "Denominator Exception";
141            case MEASUREPOPULATION: return "Measure Population";
142            case MEASUREPOPULATIONEXCLUSION: return "Measure Population Exclusion";
143            case MEASUREOBSERVATION: return "Measure Observation";
144            default: return "?";
145          }
146    }
147
148
149}
150