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