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