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 ResearchStudyPrimPurpType { 038 039 /** 040 * One or more interventions are being evaluated for treating a disease, syndrome, or condition. 041 */ 042 TREATMENT, 043 /** 044 * One or more interventions are being assessed for preventing the development of a specific disease or health condition. 045 */ 046 PREVENTION, 047 /** 048 * One or more interventions are being evaluated for identifying a disease or health condition. 049 */ 050 DIAGNOSTIC, 051 /** 052 * One or more interventions are evaluated for maximizing comfort, minimizing side effects, or mitigating against a decline in the participant's health or function. 053 */ 054 SUPPORTIVECARE, 055 /** 056 * One or more interventions are assessed or examined for identifying a condition, or risk factors for a condition, in people who are not yet known to have the condition or risk factor. 057 */ 058 SCREENING, 059 /** 060 * One or more interventions for evaluating the delivery, processes, management, organization, or financing of healthcare. 061 */ 062 HEALTHSERVICESRESEARCH, 063 /** 064 * One or more interventions for examining the basic mechanism of action (for example, physiology or biomechanics of an intervention). 065 */ 066 BASICSCIENCE, 067 /** 068 * An intervention of a device product is being evaluated to determine the feasibility of the product or to test a prototype device and not health outcomes. Such studies are conducted to confirm the design and operating specifications of a device before beginning a full clinical trial. 069 */ 070 DEVICEFEASIBILITY, 071 /** 072 * added to help the parsers 073 */ 074 NULL; 075 public static ResearchStudyPrimPurpType fromCode(String codeString) throws FHIRException { 076 if (codeString == null || "".equals(codeString)) 077 return null; 078 if ("treatment".equals(codeString)) 079 return TREATMENT; 080 if ("prevention".equals(codeString)) 081 return PREVENTION; 082 if ("diagnostic".equals(codeString)) 083 return DIAGNOSTIC; 084 if ("supportive-care".equals(codeString)) 085 return SUPPORTIVECARE; 086 if ("screening".equals(codeString)) 087 return SCREENING; 088 if ("health-services-research".equals(codeString)) 089 return HEALTHSERVICESRESEARCH; 090 if ("basic-science".equals(codeString)) 091 return BASICSCIENCE; 092 if ("device-feasibility".equals(codeString)) 093 return DEVICEFEASIBILITY; 094 throw new FHIRException("Unknown ResearchStudyPrimPurpType code '"+codeString+"'"); 095 } 096 public String toCode() { 097 switch (this) { 098 case TREATMENT: return "treatment"; 099 case PREVENTION: return "prevention"; 100 case DIAGNOSTIC: return "diagnostic"; 101 case SUPPORTIVECARE: return "supportive-care"; 102 case SCREENING: return "screening"; 103 case HEALTHSERVICESRESEARCH: return "health-services-research"; 104 case BASICSCIENCE: return "basic-science"; 105 case DEVICEFEASIBILITY: return "device-feasibility"; 106 default: return "?"; 107 } 108 } 109 public String getSystem() { 110 return "http://terminology.hl7.org/CodeSystem/research-study-prim-purp-type"; 111 } 112 public String getDefinition() { 113 switch (this) { 114 case TREATMENT: return "One or more interventions are being evaluated for treating a disease, syndrome, or condition."; 115 case PREVENTION: return "One or more interventions are being assessed for preventing the development of a specific disease or health condition."; 116 case DIAGNOSTIC: return "One or more interventions are being evaluated for identifying a disease or health condition."; 117 case SUPPORTIVECARE: return "One or more interventions are evaluated for maximizing comfort, minimizing side effects, or mitigating against a decline in the participant's health or function."; 118 case SCREENING: return "One or more interventions are assessed or examined for identifying a condition, or risk factors for a condition, in people who are not yet known to have the condition or risk factor."; 119 case HEALTHSERVICESRESEARCH: return "One or more interventions for evaluating the delivery, processes, management, organization, or financing of healthcare."; 120 case BASICSCIENCE: return "One or more interventions for examining the basic mechanism of action (for example, physiology or biomechanics of an intervention)."; 121 case DEVICEFEASIBILITY: return "An intervention of a device product is being evaluated to determine the feasibility of the product or to test a prototype device and not health outcomes. Such studies are conducted to confirm the design and operating specifications of a device before beginning a full clinical trial."; 122 default: return "?"; 123 } 124 } 125 public String getDisplay() { 126 switch (this) { 127 case TREATMENT: return "Treatment"; 128 case PREVENTION: return "Prevention"; 129 case DIAGNOSTIC: return "Diagnostic"; 130 case SUPPORTIVECARE: return "Supportive Care"; 131 case SCREENING: return "Screening"; 132 case HEALTHSERVICESRESEARCH: return "Health Services Research"; 133 case BASICSCIENCE: return "Basic Science"; 134 case DEVICEFEASIBILITY: return "Device Feasibility"; 135 default: return "?"; 136 } 137 } 138 139 140} 141