001package org.hl7.fhir.r4.model.codesystems; 002 003 004 005 006/* 007 Copyright (c) 2011+, HL7, Inc. 008 All rights reserved. 009 010 Redistribution and use in source and binary forms, with or without modification, 011 are permitted provided that the following conditions are met: 012 013 * Redistributions of source code must retain the above copyright notice, this 014 list of conditions and the following disclaimer. 015 * Redistributions in binary form must reproduce the above copyright notice, 016 this list of conditions and the following disclaimer in the documentation 017 and/or other materials provided with the distribution. 018 * Neither the name of HL7 nor the names of its contributors may be used to 019 endorse or promote products derived from this software without specific 020 prior written permission. 021 022 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 023 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 024 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 025 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 026 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 027 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 028 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 029 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 030 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 031 POSSIBILITY OF SUCH DAMAGE. 032 033*/ 034 035// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0 036 037 038import org.hl7.fhir.exceptions.FHIRException; 039 040public enum V3EntityClass { 041 042 /** 043 * Corresponds to the Entity class 044 */ 045 ENT, 046 /** 047 * A health chart included to serve as a document receiving entity in the management of medical records. 048 */ 049 HCE, 050 /** 051 * Anything that essentially has the property of life, independent of current state (a dead human corpse is still essentially a living subject). 052 */ 053 LIV, 054 /** 055 * A subtype of living subject that includes all living things except the species Homo Sapiens. 056 */ 057 NLIV, 058 /** 059 * A living subject from the animal kingdom. 060 */ 061 ANM, 062 /** 063 * All single celled living organisms including protozoa, bacteria, yeast, viruses, etc. 064 */ 065 MIC, 066 /** 067 * A living subject from the order of plants. 068 */ 069 PLNT, 070 /** 071 * A living subject of the species homo sapiens. 072 */ 073 PSN, 074 /** 075 * Any thing that has extension in space and mass, may be of living or non-living origin. 076 */ 077 MAT, 078 /** 079 * 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. 080 */ 081 CHEM, 082 /** 083 * Naturally occurring, processed or manufactured entities that are primarily used as food for humans and animals. 084 */ 085 FOOD, 086 /** 087 * Corresponds to the ManufacturedMaterial class 088 */ 089 MMAT, 090 /** 091 * A container of other entities. 092 */ 093 CONT, 094 /** 095 * A type of container that can hold other containers or other holders. 096 */ 097 HOLD, 098 /** 099 * 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. 100 101 102 Usage: This includes durable (reusable) medical equipment as well as disposable equipment. 103 */ 104 DEV, 105 /** 106 * A physical artifact that stores information about the granting of authorization. 107 */ 108 CER, 109 /** 110 * Class to contain unique attributes of diagnostic imaging equipment. 111 */ 112 MODDV, 113 /** 114 * A social or legal structure formed by human beings. 115 */ 116 ORG, 117 /** 118 * An agency of the people of a state often assuming some authority over a certain matter. Includes government, governmental agencies, associations. 119 */ 120 PUB, 121 /** 122 * 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. 123 */ 124 STATE, 125 /** 126 * A politically organized body of people bonded by territory and known as a nation. 127 */ 128 NAT, 129 /** 130 * 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. 131 */ 132 PLC, 133 /** 134 * The territory of a city, town or other municipality. 135 */ 136 CITY, 137 /** 138 * The territory of a sovereign nation. 139 */ 140 COUNTRY, 141 /** 142 * The territory of a county, parish or other division of a state or province. 143 */ 144 COUNTY, 145 /** 146 * The territory of a state, province, department or other division of a sovereign country. 147 */ 148 PROVINCE, 149 /** 150 * 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. 151 */ 152 RGRP, 153 /** 154 * added to help the parsers 155 */ 156 NULL; 157 public static V3EntityClass fromCode(String codeString) throws FHIRException { 158 if (codeString == null || "".equals(codeString)) 159 return null; 160 if ("ENT".equals(codeString)) 161 return ENT; 162 if ("HCE".equals(codeString)) 163 return HCE; 164 if ("LIV".equals(codeString)) 165 return LIV; 166 if ("NLIV".equals(codeString)) 167 return NLIV; 168 if ("ANM".equals(codeString)) 169 return ANM; 170 if ("MIC".equals(codeString)) 171 return MIC; 172 if ("PLNT".equals(codeString)) 173 return PLNT; 174 if ("PSN".equals(codeString)) 175 return PSN; 176 if ("MAT".equals(codeString)) 177 return MAT; 178 if ("CHEM".equals(codeString)) 179 return CHEM; 180 if ("FOOD".equals(codeString)) 181 return FOOD; 182 if ("MMAT".equals(codeString)) 183 return MMAT; 184 if ("CONT".equals(codeString)) 185 return CONT; 186 if ("HOLD".equals(codeString)) 187 return HOLD; 188 if ("DEV".equals(codeString)) 189 return DEV; 190 if ("CER".equals(codeString)) 191 return CER; 192 if ("MODDV".equals(codeString)) 193 return MODDV; 194 if ("ORG".equals(codeString)) 195 return ORG; 196 if ("PUB".equals(codeString)) 197 return PUB; 198 if ("STATE".equals(codeString)) 199 return STATE; 200 if ("NAT".equals(codeString)) 201 return NAT; 202 if ("PLC".equals(codeString)) 203 return PLC; 204 if ("CITY".equals(codeString)) 205 return CITY; 206 if ("COUNTRY".equals(codeString)) 207 return COUNTRY; 208 if ("COUNTY".equals(codeString)) 209 return COUNTY; 210 if ("PROVINCE".equals(codeString)) 211 return PROVINCE; 212 if ("RGRP".equals(codeString)) 213 return RGRP; 214 throw new FHIRException("Unknown V3EntityClass code '"+codeString+"'"); 215 } 216 public String toCode() { 217 switch (this) { 218 case ENT: return "ENT"; 219 case HCE: return "HCE"; 220 case LIV: return "LIV"; 221 case NLIV: return "NLIV"; 222 case ANM: return "ANM"; 223 case MIC: return "MIC"; 224 case PLNT: return "PLNT"; 225 case PSN: return "PSN"; 226 case MAT: return "MAT"; 227 case CHEM: return "CHEM"; 228 case FOOD: return "FOOD"; 229 case MMAT: return "MMAT"; 230 case CONT: return "CONT"; 231 case HOLD: return "HOLD"; 232 case DEV: return "DEV"; 233 case CER: return "CER"; 234 case MODDV: return "MODDV"; 235 case ORG: return "ORG"; 236 case PUB: return "PUB"; 237 case STATE: return "STATE"; 238 case NAT: return "NAT"; 239 case PLC: return "PLC"; 240 case CITY: return "CITY"; 241 case COUNTRY: return "COUNTRY"; 242 case COUNTY: return "COUNTY"; 243 case PROVINCE: return "PROVINCE"; 244 case RGRP: return "RGRP"; 245 default: return "?"; 246 } 247 } 248 public String getSystem() { 249 return "http://terminology.hl7.org/CodeSystem/v3-EntityClass"; 250 } 251 public String getDefinition() { 252 switch (this) { 253 case ENT: return "Corresponds to the Entity class"; 254 case HCE: return "A health chart included to serve as a document receiving entity in the management of medical records."; 255 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)."; 256 case NLIV: return "A subtype of living subject that includes all living things except the species Homo Sapiens."; 257 case ANM: return "A living subject from the animal kingdom."; 258 case MIC: return "All single celled living organisms including protozoa, bacteria, yeast, viruses, etc."; 259 case PLNT: return "A living subject from the order of plants."; 260 case PSN: return "A living subject of the species homo sapiens."; 261 case MAT: return "Any thing that has extension in space and mass, may be of living or non-living origin."; 262 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."; 263 case FOOD: return "Naturally occurring, processed or manufactured entities that are primarily used as food for humans and animals."; 264 case MMAT: return "Corresponds to the ManufacturedMaterial class"; 265 case CONT: return "A container of other entities."; 266 case HOLD: return "A type of container that can hold other containers or other holders."; 267 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."; 268 case CER: return "A physical artifact that stores information about the granting of authorization."; 269 case MODDV: return "Class to contain unique attributes of diagnostic imaging equipment."; 270 case ORG: return "A social or legal structure formed by human beings."; 271 case PUB: return "An agency of the people of a state often assuming some authority over a certain matter. Includes government, governmental agencies, associations."; 272 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."; 273 case NAT: return "A politically organized body of people bonded by territory and known as a nation."; 274 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."; 275 case CITY: return "The territory of a city, town or other municipality."; 276 case COUNTRY: return "The territory of a sovereign nation."; 277 case COUNTY: return "The territory of a county, parish or other division of a state or province."; 278 case PROVINCE: return "The territory of a state, province, department or other division of a sovereign country."; 279 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."; 280 default: return "?"; 281 } 282 } 283 public String getDisplay() { 284 switch (this) { 285 case ENT: return "entity"; 286 case HCE: return "health chart entity"; 287 case LIV: return "living subject"; 288 case NLIV: return "non-person living subject"; 289 case ANM: return "animal"; 290 case MIC: return "microorganism"; 291 case PLNT: return "plant"; 292 case PSN: return "person"; 293 case MAT: return "material"; 294 case CHEM: return "chemical substance"; 295 case FOOD: return "food"; 296 case MMAT: return "manufactured material"; 297 case CONT: return "container"; 298 case HOLD: return "holder"; 299 case DEV: return "device"; 300 case CER: return "certificate representation"; 301 case MODDV: return "imaging modality"; 302 case ORG: return "organization"; 303 case PUB: return "public institution"; 304 case STATE: return "state"; 305 case NAT: return "Nation"; 306 case PLC: return "place"; 307 case CITY: return "city or town"; 308 case COUNTRY: return "country"; 309 case COUNTY: return "county or parish"; 310 case PROVINCE: return "state or province"; 311 case RGRP: return "group"; 312 default: return "?"; 313 } 314 } 315 316 317}