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 Sun, May 6, 2018 17:51-0400 for FHIR v3.4.0 033 034 035import org.hl7.fhir.exceptions.FHIRException; 036 037public enum V3EntityRisk { 038 039 /** 040 * A danger that can be associated with certain living subjects, including humans. 041 */ 042 AGG, 043 /** 044 * The dangers associated with normal biological materials. I.e. potential risk of unknown infections. Routine biological materials from living subjects. 045 */ 046 BIO, 047 /** 048 * Material is corrosive and may cause severe injury to skin, mucous membranes and eyes. Avoid any unprotected contact. 049 */ 050 COR, 051 /** 052 * The entity is at risk for escaping from containment or control. 053 */ 054 ESC, 055 /** 056 * Material is highly inflammable and in certain mixtures (with air) may lead to explosions. Keep away from fire, sparks and excessive heat. 057 */ 058 IFL, 059 /** 060 * Material is an explosive mixture. Keep away from fire, sparks, and heat. 061 */ 062 EXP, 063 /** 064 * Material known to be infectious with human pathogenic microorganisms. Those who handle this material must take precautions for their protection. 065 */ 066 INF, 067 /** 068 * Material contains microorganisms that is an environmental hazard. Must be handled with special care. 069 */ 070 BHZ, 071 /** 072 * Material is solid and sharp (e.g., cannulas). Dispose in hard container. 073 */ 074 INJ, 075 /** 076 * Material is poisonous to humans and/or animals. Special care must be taken to avoid incorporation, even of small amounts. 077 */ 078 POI, 079 /** 080 * Material is a source for ionizing radiation and must be handled with special care to avoid injury of those who handle it and to avoid environmental hazards. 081 */ 082 RAD, 083 /** 084 * added to help the parsers 085 */ 086 NULL; 087 public static V3EntityRisk fromCode(String codeString) throws FHIRException { 088 if (codeString == null || "".equals(codeString)) 089 return null; 090 if ("AGG".equals(codeString)) 091 return AGG; 092 if ("BIO".equals(codeString)) 093 return BIO; 094 if ("COR".equals(codeString)) 095 return COR; 096 if ("ESC".equals(codeString)) 097 return ESC; 098 if ("IFL".equals(codeString)) 099 return IFL; 100 if ("EXP".equals(codeString)) 101 return EXP; 102 if ("INF".equals(codeString)) 103 return INF; 104 if ("BHZ".equals(codeString)) 105 return BHZ; 106 if ("INJ".equals(codeString)) 107 return INJ; 108 if ("POI".equals(codeString)) 109 return POI; 110 if ("RAD".equals(codeString)) 111 return RAD; 112 throw new FHIRException("Unknown V3EntityRisk code '"+codeString+"'"); 113 } 114 public String toCode() { 115 switch (this) { 116 case AGG: return "AGG"; 117 case BIO: return "BIO"; 118 case COR: return "COR"; 119 case ESC: return "ESC"; 120 case IFL: return "IFL"; 121 case EXP: return "EXP"; 122 case INF: return "INF"; 123 case BHZ: return "BHZ"; 124 case INJ: return "INJ"; 125 case POI: return "POI"; 126 case RAD: return "RAD"; 127 default: return "?"; 128 } 129 } 130 public String getSystem() { 131 return "http://hl7.org/fhir/v3/EntityRisk"; 132 } 133 public String getDefinition() { 134 switch (this) { 135 case AGG: return "A danger that can be associated with certain living subjects, including humans."; 136 case BIO: return "The dangers associated with normal biological materials. I.e. potential risk of unknown infections. Routine biological materials from living subjects."; 137 case COR: return "Material is corrosive and may cause severe injury to skin, mucous membranes and eyes. Avoid any unprotected contact."; 138 case ESC: return "The entity is at risk for escaping from containment or control."; 139 case IFL: return "Material is highly inflammable and in certain mixtures (with air) may lead to explosions. Keep away from fire, sparks and excessive heat."; 140 case EXP: return "Material is an explosive mixture. Keep away from fire, sparks, and heat."; 141 case INF: return "Material known to be infectious with human pathogenic microorganisms. Those who handle this material must take precautions for their protection."; 142 case BHZ: return "Material contains microorganisms that is an environmental hazard. Must be handled with special care."; 143 case INJ: return "Material is solid and sharp (e.g., cannulas). Dispose in hard container."; 144 case POI: return "Material is poisonous to humans and/or animals. Special care must be taken to avoid incorporation, even of small amounts."; 145 case RAD: return "Material is a source for ionizing radiation and must be handled with special care to avoid injury of those who handle it and to avoid environmental hazards."; 146 default: return "?"; 147 } 148 } 149 public String getDisplay() { 150 switch (this) { 151 case AGG: return "aggressive"; 152 case BIO: return "Biological"; 153 case COR: return "Corrosive"; 154 case ESC: return "Escape Risk"; 155 case IFL: return "inflammable"; 156 case EXP: return "explosive"; 157 case INF: return "infectious"; 158 case BHZ: return "biohazard"; 159 case INJ: return "injury hazard"; 160 case POI: return "poison"; 161 case RAD: return "radioactive"; 162 default: return "?"; 163 } 164 } 165 166 167} 168