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 V3EntityClass { 036 037 /** 038 * Corresponds to the Entity class 039 */ 040 ENT, 041 /** 042 * A health chart included to serve as a document receiving entity in the management of medical records. 043 */ 044 HCE, 045 /** 046 * Anything that essentially has the property of life, independent of current state (a dead human corpse is still essentially a living subject). 047 */ 048 LIV, 049 /** 050 * A subtype of living subject that includes all living things except the species Homo Sapiens. 051 */ 052 NLIV, 053 /** 054 * A living subject from the animal kingdom. 055 */ 056 ANM, 057 /** 058 * All single celled living organisms including protozoa, bacteria, yeast, viruses, etc. 059 */ 060 MIC, 061 /** 062 * A living subject from the order of plants. 063 */ 064 PLNT, 065 /** 066 * A living subject of the species homo sapiens. 067 */ 068 PSN, 069 /** 070 * Any thing that has extension in space and mass, may be of living or non-living origin. 071 */ 072 MAT, 073 /** 074 * A substance that is fully defined by an organic or inorganic chemical formula, includes mixtures of other chemical substances. Refine using, e.g. IUPAC codes. 075 */ 076 CHEM, 077 /** 078 * Naturally occurring, processed or manufactured entities that are primarily used as food for humans and animals. 079 */ 080 FOOD, 081 /** 082 * Corresponds to the ManufacturedMaterial class 083 */ 084 MMAT, 085 /** 086 * A container of other entities. 087 */ 088 CONT, 089 /** 090 * A type of container that can hold other containers or other holders. 091 */ 092 HOLD, 093 /** 094 * A subtype of ManufacturedMaterial used in an activity, without being substantially changed through that activity. The kind of device is identified by the code attribute inherited from Entity. 095 096 097 Usage: This includes durable (reusable) medical equipment as well as disposable equipment. 098 */ 099 DEV, 100 /** 101 * A physical artifact that stores information about the granting of authorization. 102 */ 103 CER, 104 /** 105 * Class to contain unique attributes of diagnostic imaging equipment. 106 */ 107 MODDV, 108 /** 109 * A social or legal structure formed by human beings. 110 */ 111 ORG, 112 /** 113 * An agency of the people of a state often assuming some authority over a certain matter. Includes government, governmental agencies, associations. 114 */ 115 PUB, 116 /** 117 * A politically organized body of people bonded by territory, culture, or ethnicity, having sovereignty (to a certain extent) granted by other states (enclosing or neighboring states). This includes countries (nations), provinces (e.g. one of the United States of America or a French departement), counties or municipalities. Refine using, e.g. ISO country codes, FIPS-PUB state codes, etc. 118 */ 119 STATE, 120 /** 121 * A politically organized body of people bonded by territory and known as a nation. 122 */ 123 NAT, 124 /** 125 * A physical place or site with its containing structure. May be natural or man-made. The geographic position of a place may or may not be constant. 126 */ 127 PLC, 128 /** 129 * The territory of a city, town or other municipality. 130 */ 131 CITY, 132 /** 133 * The territory of a sovereign nation. 134 */ 135 COUNTRY, 136 /** 137 * The territory of a county, parish or other division of a state or province. 138 */ 139 COUNTY, 140 /** 141 * The territory of a state, province, department or other division of a sovereign country. 142 */ 143 PROVINCE, 144 /** 145 * A grouping of resources (personnel, material, or places) to be used for scheduling purposes. May be a pool of like-type resources, a team, or combination of personnel, material and places. 146 */ 147 RGRP, 148 /** 149 * added to help the parsers 150 */ 151 NULL; 152 public static V3EntityClass fromCode(String codeString) throws Exception { 153 if (codeString == null || "".equals(codeString)) 154 return null; 155 if ("ENT".equals(codeString)) 156 return ENT; 157 if ("HCE".equals(codeString)) 158 return HCE; 159 if ("LIV".equals(codeString)) 160 return LIV; 161 if ("NLIV".equals(codeString)) 162 return NLIV; 163 if ("ANM".equals(codeString)) 164 return ANM; 165 if ("MIC".equals(codeString)) 166 return MIC; 167 if ("PLNT".equals(codeString)) 168 return PLNT; 169 if ("PSN".equals(codeString)) 170 return PSN; 171 if ("MAT".equals(codeString)) 172 return MAT; 173 if ("CHEM".equals(codeString)) 174 return CHEM; 175 if ("FOOD".equals(codeString)) 176 return FOOD; 177 if ("MMAT".equals(codeString)) 178 return MMAT; 179 if ("CONT".equals(codeString)) 180 return CONT; 181 if ("HOLD".equals(codeString)) 182 return HOLD; 183 if ("DEV".equals(codeString)) 184 return DEV; 185 if ("CER".equals(codeString)) 186 return CER; 187 if ("MODDV".equals(codeString)) 188 return MODDV; 189 if ("ORG".equals(codeString)) 190 return ORG; 191 if ("PUB".equals(codeString)) 192 return PUB; 193 if ("STATE".equals(codeString)) 194 return STATE; 195 if ("NAT".equals(codeString)) 196 return NAT; 197 if ("PLC".equals(codeString)) 198 return PLC; 199 if ("CITY".equals(codeString)) 200 return CITY; 201 if ("COUNTRY".equals(codeString)) 202 return COUNTRY; 203 if ("COUNTY".equals(codeString)) 204 return COUNTY; 205 if ("PROVINCE".equals(codeString)) 206 return PROVINCE; 207 if ("RGRP".equals(codeString)) 208 return RGRP; 209 throw new Exception("Unknown V3EntityClass code '"+codeString+"'"); 210 } 211 public String toCode() { 212 switch (this) { 213 case ENT: return "ENT"; 214 case HCE: return "HCE"; 215 case LIV: return "LIV"; 216 case NLIV: return "NLIV"; 217 case ANM: return "ANM"; 218 case MIC: return "MIC"; 219 case PLNT: return "PLNT"; 220 case PSN: return "PSN"; 221 case MAT: return "MAT"; 222 case CHEM: return "CHEM"; 223 case FOOD: return "FOOD"; 224 case MMAT: return "MMAT"; 225 case CONT: return "CONT"; 226 case HOLD: return "HOLD"; 227 case DEV: return "DEV"; 228 case CER: return "CER"; 229 case MODDV: return "MODDV"; 230 case ORG: return "ORG"; 231 case PUB: return "PUB"; 232 case STATE: return "STATE"; 233 case NAT: return "NAT"; 234 case PLC: return "PLC"; 235 case CITY: return "CITY"; 236 case COUNTRY: return "COUNTRY"; 237 case COUNTY: return "COUNTY"; 238 case PROVINCE: return "PROVINCE"; 239 case RGRP: return "RGRP"; 240 default: return "?"; 241 } 242 } 243 public String getSystem() { 244 return "http://hl7.org/fhir/v3/EntityClass"; 245 } 246 public String getDefinition() { 247 switch (this) { 248 case ENT: return "Corresponds to the Entity class"; 249 case HCE: return "A health chart included to serve as a document receiving entity in the management of medical records."; 250 case LIV: return "Anything that essentially has the property of life, independent of current state (a dead human corpse is still essentially a living subject)."; 251 case NLIV: return "A subtype of living subject that includes all living things except the species Homo Sapiens."; 252 case ANM: return "A living subject from the animal kingdom."; 253 case MIC: return "All single celled living organisms including protozoa, bacteria, yeast, viruses, etc."; 254 case PLNT: return "A living subject from the order of plants."; 255 case PSN: return "A living subject of the species homo sapiens."; 256 case MAT: return "Any thing that has extension in space and mass, may be of living or non-living origin."; 257 case CHEM: return "A substance that is fully defined by an organic or inorganic chemical formula, includes mixtures of other chemical substances. Refine using, e.g. IUPAC codes."; 258 case FOOD: return "Naturally occurring, processed or manufactured entities that are primarily used as food for humans and animals."; 259 case MMAT: return "Corresponds to the ManufacturedMaterial class"; 260 case CONT: return "A container of other entities."; 261 case HOLD: return "A type of container that can hold other containers or other holders."; 262 case DEV: return "A subtype of ManufacturedMaterial used in an activity, without being substantially changed through that activity. The kind of device is identified by the code attribute inherited from Entity.\r\n\n \n Usage: This includes durable (reusable) medical equipment as well as disposable equipment."; 263 case CER: return "A physical artifact that stores information about the granting of authorization."; 264 case MODDV: return "Class to contain unique attributes of diagnostic imaging equipment."; 265 case ORG: return "A social or legal structure formed by human beings."; 266 case PUB: return "An agency of the people of a state often assuming some authority over a certain matter. Includes government, governmental agencies, associations."; 267 case STATE: return "A politically organized body of people bonded by territory, culture, or ethnicity, having sovereignty (to a certain extent) granted by other states (enclosing or neighboring states). This includes countries (nations), provinces (e.g. one of the United States of America or a French departement), counties or municipalities. Refine using, e.g. ISO country codes, FIPS-PUB state codes, etc."; 268 case NAT: return "A politically organized body of people bonded by territory and known as a nation."; 269 case PLC: return "A physical place or site with its containing structure. May be natural or man-made. The geographic position of a place may or may not be constant."; 270 case CITY: return "The territory of a city, town or other municipality."; 271 case COUNTRY: return "The territory of a sovereign nation."; 272 case COUNTY: return "The territory of a county, parish or other division of a state or province."; 273 case PROVINCE: return "The territory of a state, province, department or other division of a sovereign country."; 274 case RGRP: return "A grouping of resources (personnel, material, or places) to be used for scheduling purposes. May be a pool of like-type resources, a team, or combination of personnel, material and places."; 275 default: return "?"; 276 } 277 } 278 public String getDisplay() { 279 switch (this) { 280 case ENT: return "entity"; 281 case HCE: return "health chart entity"; 282 case LIV: return "living subject"; 283 case NLIV: return "non-person living subject"; 284 case ANM: return "animal"; 285 case MIC: return "microorganism"; 286 case PLNT: return "plant"; 287 case PSN: return "person"; 288 case MAT: return "material"; 289 case CHEM: return "chemical substance"; 290 case FOOD: return "food"; 291 case MMAT: return "manufactured material"; 292 case CONT: return "container"; 293 case HOLD: return "holder"; 294 case DEV: return "device"; 295 case CER: return "certificate representation"; 296 case MODDV: return "imaging modality"; 297 case ORG: return "organization"; 298 case PUB: return "public institution"; 299 case STATE: return "state"; 300 case NAT: return "Nation"; 301 case PLC: return "place"; 302 case CITY: return "city or town"; 303 case COUNTRY: return "country"; 304 case COUNTY: return "county or parish"; 305 case PROVINCE: return "state or province"; 306 case RGRP: return "group"; 307 default: return "?"; 308 } 309 } 310 311 312} 313