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