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