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 V3EntityHandling { 036 037 /** 038 * Keep at ambient temperature, 22 +/- 2C 039 */ 040 AMB, 041 /** 042 * Critical to keep at body temperature 36-38C 043 */ 044 C37, 045 /** 046 * Critical ambient - must not be refrigerated or frozen. 047 */ 048 CAMB, 049 /** 050 * Critical. Do not expose to atmosphere. Do not uncap. 051 */ 052 CATM, 053 /** 054 * Critical frozen. Specimen must not be allowed to thaw until immediately prior to testing. 055 */ 056 CFRZ, 057 /** 058 * Critical refrigerated - must not be allowed to freeze or warm until imediately prior to testing. 059 */ 060 CREF, 061 /** 062 * Deep Frozen -16 to -20C. 063 */ 064 DFRZ, 065 /** 066 * Keep in a dry environment 067 */ 068 DRY, 069 /** 070 * Keep frozen below 0 ?C 071 */ 072 FRZ, 073 /** 074 * Container is free of heavy metals, including lead. 075 */ 076 MTLF, 077 /** 078 * Keep in liquid nitrogen 079 */ 080 NTR, 081 /** 082 * Protect from light (eg. Wrap in aluminum foil). 083 */ 084 PRTL, 085 /** 086 * Do not shake 087 */ 088 PSA, 089 /** 090 * Protect against shock 091 */ 092 PSO, 093 /** 094 * Keep at refrigerated temperature:4-8C Accidental warming or freezing is of little consequence. 095 */ 096 REF, 097 /** 098 * Shake thoroughly before using 099 */ 100 SBU, 101 /** 102 * Ultra cold frozen -75 to -85C. Ultra cold freezer is typically at temperature of dry ice. 103 */ 104 UFRZ, 105 /** 106 * Keep upright, do not turn upside down 107 */ 108 UPR, 109 /** 110 * added to help the parsers 111 */ 112 NULL; 113 public static V3EntityHandling fromCode(String codeString) throws Exception { 114 if (codeString == null || "".equals(codeString)) 115 return null; 116 if ("AMB".equals(codeString)) 117 return AMB; 118 if ("C37".equals(codeString)) 119 return C37; 120 if ("CAMB".equals(codeString)) 121 return CAMB; 122 if ("CATM".equals(codeString)) 123 return CATM; 124 if ("CFRZ".equals(codeString)) 125 return CFRZ; 126 if ("CREF".equals(codeString)) 127 return CREF; 128 if ("DFRZ".equals(codeString)) 129 return DFRZ; 130 if ("DRY".equals(codeString)) 131 return DRY; 132 if ("FRZ".equals(codeString)) 133 return FRZ; 134 if ("MTLF".equals(codeString)) 135 return MTLF; 136 if ("NTR".equals(codeString)) 137 return NTR; 138 if ("PRTL".equals(codeString)) 139 return PRTL; 140 if ("PSA".equals(codeString)) 141 return PSA; 142 if ("PSO".equals(codeString)) 143 return PSO; 144 if ("REF".equals(codeString)) 145 return REF; 146 if ("SBU".equals(codeString)) 147 return SBU; 148 if ("UFRZ".equals(codeString)) 149 return UFRZ; 150 if ("UPR".equals(codeString)) 151 return UPR; 152 throw new Exception("Unknown V3EntityHandling code '"+codeString+"'"); 153 } 154 public String toCode() { 155 switch (this) { 156 case AMB: return "AMB"; 157 case C37: return "C37"; 158 case CAMB: return "CAMB"; 159 case CATM: return "CATM"; 160 case CFRZ: return "CFRZ"; 161 case CREF: return "CREF"; 162 case DFRZ: return "DFRZ"; 163 case DRY: return "DRY"; 164 case FRZ: return "FRZ"; 165 case MTLF: return "MTLF"; 166 case NTR: return "NTR"; 167 case PRTL: return "PRTL"; 168 case PSA: return "PSA"; 169 case PSO: return "PSO"; 170 case REF: return "REF"; 171 case SBU: return "SBU"; 172 case UFRZ: return "UFRZ"; 173 case UPR: return "UPR"; 174 default: return "?"; 175 } 176 } 177 public String getSystem() { 178 return "http://hl7.org/fhir/v3/EntityHandling"; 179 } 180 public String getDefinition() { 181 switch (this) { 182 case AMB: return "Keep at ambient temperature, 22 +/- 2C"; 183 case C37: return "Critical to keep at body temperature 36-38C"; 184 case CAMB: return "Critical ambient - must not be refrigerated or frozen."; 185 case CATM: return "Critical. Do not expose to atmosphere. Do not uncap."; 186 case CFRZ: return "Critical frozen. Specimen must not be allowed to thaw until immediately prior to testing."; 187 case CREF: return "Critical refrigerated - must not be allowed to freeze or warm until imediately prior to testing."; 188 case DFRZ: return "Deep Frozen -16 to -20C."; 189 case DRY: return "Keep in a dry environment"; 190 case FRZ: return "Keep frozen below 0 ?C"; 191 case MTLF: return "Container is free of heavy metals, including lead."; 192 case NTR: return "Keep in liquid nitrogen"; 193 case PRTL: return "Protect from light (eg. Wrap in aluminum foil)."; 194 case PSA: return "Do not shake"; 195 case PSO: return "Protect against shock"; 196 case REF: return "Keep at refrigerated temperature:4-8C Accidental warming or freezing is of little consequence."; 197 case SBU: return "Shake thoroughly before using"; 198 case UFRZ: return "Ultra cold frozen -75 to -85C. Ultra cold freezer is typically at temperature of dry ice."; 199 case UPR: return "Keep upright, do not turn upside down"; 200 default: return "?"; 201 } 202 } 203 public String getDisplay() { 204 switch (this) { 205 case AMB: return "Ambient Temperature"; 206 case C37: return "Body Temperature"; 207 case CAMB: return "Critical Ambient temperature"; 208 case CATM: return "Protect from Air"; 209 case CFRZ: return "Critical frozen"; 210 case CREF: return "Critical refrigerated temperature"; 211 case DFRZ: return "Deep Frozen"; 212 case DRY: return "dry"; 213 case FRZ: return "frozen"; 214 case MTLF: return "Metal Free"; 215 case NTR: return "nitrogen"; 216 case PRTL: return "Protect from Light"; 217 case PSA: return "do not shake"; 218 case PSO: return "no shock"; 219 case REF: return "Refrigerated temperature"; 220 case SBU: return "Shake before use"; 221 case UFRZ: return "Ultra frozen"; 222 case UPR: return "upright"; 223 default: return "?"; 224 } 225 } 226 227 228} 229