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 V3EntityDeterminer { 038 039 /** 040 * Description:A determiner that specifies that the Entity object represents a particular physical thing (as opposed to a universal, kind, or class of physical thing). 041 042 043 Discussion: It does not matter whether an INSTANCE still exists as a whole at the point in time (or process) when we mention it, for example, a drug product lot is an INSTANCE even though it has been portioned out for retail purpose. 044 */ 045 INSTANCE, 046 /** 047 * A determiner that specifies that the Entity object represents a particular collection of physical things (as opposed to a universal, kind, or class of physical thing). While the collection may resolve to having only a single individual (or even no individuals), the potential should exist for it to cover multiple individuals. 048 */ 049 GROUP, 050 /** 051 * Description:A determiner that specifies that the Entity object represents a universal, kind or class of physical thing (as opposed to a particular thing). 052 */ 053 KIND, 054 /** 055 * A determiner that specifies that the Entity object represents a universal, kind or class of collections physical things. While the collection may resolve to having only a single individual (or even no individuals), the potential should exist for it to cover multiple individuals. 056 */ 057 GROUPKIND, 058 /** 059 * The described quantified determiner indicates that the given Entity is taken as a general description of a specific amount of a thing. For example, QUANTIFIED_KIND of syringe (quantity = 3,) stands for exactly three syringes. 060 */ 061 QUANTIFIEDKIND, 062 /** 063 * added to help the parsers 064 */ 065 NULL; 066 public static V3EntityDeterminer fromCode(String codeString) throws FHIRException { 067 if (codeString == null || "".equals(codeString)) 068 return null; 069 if ("INSTANCE".equals(codeString)) 070 return INSTANCE; 071 if ("GROUP".equals(codeString)) 072 return GROUP; 073 if ("KIND".equals(codeString)) 074 return KIND; 075 if ("GROUPKIND".equals(codeString)) 076 return GROUPKIND; 077 if ("QUANTIFIED_KIND".equals(codeString)) 078 return QUANTIFIEDKIND; 079 throw new FHIRException("Unknown V3EntityDeterminer code '"+codeString+"'"); 080 } 081 public String toCode() { 082 switch (this) { 083 case INSTANCE: return "INSTANCE"; 084 case GROUP: return "GROUP"; 085 case KIND: return "KIND"; 086 case GROUPKIND: return "GROUPKIND"; 087 case QUANTIFIEDKIND: return "QUANTIFIED_KIND"; 088 default: return "?"; 089 } 090 } 091 public String getSystem() { 092 return "http://hl7.org/fhir/v3/EntityDeterminer"; 093 } 094 public String getDefinition() { 095 switch (this) { 096 case INSTANCE: return "Description:A determiner that specifies that the Entity object represents a particular physical thing (as opposed to a universal, kind, or class of physical thing).\r\n\n \n Discussion: It does not matter whether an INSTANCE still exists as a whole at the point in time (or process) when we mention it, for example, a drug product lot is an INSTANCE even though it has been portioned out for retail purpose."; 097 case GROUP: return "A determiner that specifies that the Entity object represents a particular collection of physical things (as opposed to a universal, kind, or class of physical thing). While the collection may resolve to having only a single individual (or even no individuals), the potential should exist for it to cover multiple individuals."; 098 case KIND: return "Description:A determiner that specifies that the Entity object represents a universal, kind or class of physical thing (as opposed to a particular thing)."; 099 case GROUPKIND: return "A determiner that specifies that the Entity object represents a universal, kind or class of collections physical things. While the collection may resolve to having only a single individual (or even no individuals), the potential should exist for it to cover multiple individuals."; 100 case QUANTIFIEDKIND: return "The described quantified determiner indicates that the given Entity is taken as a general description of a specific amount of a thing. For example, QUANTIFIED_KIND of syringe (quantity = 3,) stands for exactly three syringes."; 101 default: return "?"; 102 } 103 } 104 public String getDisplay() { 105 switch (this) { 106 case INSTANCE: return "specific"; 107 case GROUP: return "specific group"; 108 case KIND: return "described"; 109 case GROUPKIND: return "described group"; 110 case QUANTIFIEDKIND: return "described quantified"; 111 default: return "?"; 112 } 113 } 114 115 116} 117