001package org.hl7.fhir.instance.model.valuesets; 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 Wed, Nov 11, 2015 10:54-0500 for FHIR v1.0.2 033 034 035public enum V3ActRelationshipSubset { 036 037 /** 038 * Used to indicate that the participation is a filtered subset of the total participations of the same type owned by the Act. 039 040 Used when there is a need to limit the participations to the first, the last, the next or some other filtered subset. 041 */ 042 _PARTICIPATIONSUBSET, 043 /** 044 * An occurrence that is scheduled to occur in the future. An Act whose effective time is greater than 'now', where 'now' is the time the instance is authored. 045 */ 046 FUTURE, 047 /** 048 * Represents a 'summary' of all acts that are scheduled to occur in the future (whose effective time is greater than 'now' where is the time the instance is authored.). The effectiveTime represents the outer boundary of all occurrences, repeatNumber represents the total number of repetitions, etc. 049 */ 050 FUTSUM, 051 /** 052 * Restricted to the latest known occurrence that is scheduled to occur. The Act with the highest known effective time. 053 */ 054 LAST, 055 /** 056 * Restricted to the nearest recent known occurrence scheduled to occur in the future. The Act with the lowest effective time, still greater than 'now'. ('now' is the time the instance is authored.) 057 */ 058 NEXT, 059 /** 060 * An occurrence that occurred or was scheduled to occur in the past. An Act whose effective time is less than 'now'. ('now' is the time the instance is authored.) 061 */ 062 PAST, 063 /** 064 * Restricted to the earliest known occurrence that occurred or was scheduled to occur in the past. The Act with the lowest effective time. ('now' is the time the instance is authored.) 065 */ 066 FIRST, 067 /** 068 * Represents a 'summary' of all acts that previously occurred or were scheduled to occur. The effectiveTime represents the outer boundary of all occurrences, repeatNumber represents the total number of repetitions, etc. ('now' is the time the instance is authored.) 069 */ 070 PREVSUM, 071 /** 072 * Restricted to the most recent known occurrence that occurred or was scheduled to occur in the past. The Act with the most recent effective time, still less than 'now'. ('now' is the time the instance is authored.) 073 */ 074 RECENT, 075 /** 076 * Represents a 'summary' of all acts that have occurred or were scheduled to occur and which are scheduled to occur in the future. The effectiveTime represents the outer boundary of all occurrences, repeatNumber represents the total number of repetitions, etc. 077 */ 078 SUM, 079 /** 080 * ActRelationshipExpectedSubset 081 */ 082 ACTRELATIONSHIPEXPECTEDSUBSET, 083 /** 084 * ActRelationshipPastSubset 085 */ 086 ACTRELATIONSHIPPASTSUBSET, 087 /** 088 * The occurrence whose value attribute is greater than all other occurrences at the time the instance is created. 089 */ 090 MAX, 091 /** 092 * The occurrence whose value attribute is less than all other occurrences at the time the instance is created. 093 */ 094 MIN, 095 /** 096 * added to help the parsers 097 */ 098 NULL; 099 public static V3ActRelationshipSubset fromCode(String codeString) throws Exception { 100 if (codeString == null || "".equals(codeString)) 101 return null; 102 if ("_ParticipationSubset".equals(codeString)) 103 return _PARTICIPATIONSUBSET; 104 if ("FUTURE".equals(codeString)) 105 return FUTURE; 106 if ("FUTSUM".equals(codeString)) 107 return FUTSUM; 108 if ("LAST".equals(codeString)) 109 return LAST; 110 if ("NEXT".equals(codeString)) 111 return NEXT; 112 if ("PAST".equals(codeString)) 113 return PAST; 114 if ("FIRST".equals(codeString)) 115 return FIRST; 116 if ("PREVSUM".equals(codeString)) 117 return PREVSUM; 118 if ("RECENT".equals(codeString)) 119 return RECENT; 120 if ("SUM".equals(codeString)) 121 return SUM; 122 if ("ActRelationshipExpectedSubset".equals(codeString)) 123 return ACTRELATIONSHIPEXPECTEDSUBSET; 124 if ("ActRelationshipPastSubset".equals(codeString)) 125 return ACTRELATIONSHIPPASTSUBSET; 126 if ("MAX".equals(codeString)) 127 return MAX; 128 if ("MIN".equals(codeString)) 129 return MIN; 130 throw new Exception("Unknown V3ActRelationshipSubset code '"+codeString+"'"); 131 } 132 public String toCode() { 133 switch (this) { 134 case _PARTICIPATIONSUBSET: return "_ParticipationSubset"; 135 case FUTURE: return "FUTURE"; 136 case FUTSUM: return "FUTSUM"; 137 case LAST: return "LAST"; 138 case NEXT: return "NEXT"; 139 case PAST: return "PAST"; 140 case FIRST: return "FIRST"; 141 case PREVSUM: return "PREVSUM"; 142 case RECENT: return "RECENT"; 143 case SUM: return "SUM"; 144 case ACTRELATIONSHIPEXPECTEDSUBSET: return "ActRelationshipExpectedSubset"; 145 case ACTRELATIONSHIPPASTSUBSET: return "ActRelationshipPastSubset"; 146 case MAX: return "MAX"; 147 case MIN: return "MIN"; 148 default: return "?"; 149 } 150 } 151 public String getSystem() { 152 return "http://hl7.org/fhir/v3/ActRelationshipSubset"; 153 } 154 public String getDefinition() { 155 switch (this) { 156 case _PARTICIPATIONSUBSET: return "Used to indicate that the participation is a filtered subset of the total participations of the same type owned by the Act. \r\n\n Used when there is a need to limit the participations to the first, the last, the next or some other filtered subset."; 157 case FUTURE: return "An occurrence that is scheduled to occur in the future. An Act whose effective time is greater than 'now', where 'now' is the time the instance is authored."; 158 case FUTSUM: return "Represents a 'summary' of all acts that are scheduled to occur in the future (whose effective time is greater than 'now' where is the time the instance is authored.). The effectiveTime represents the outer boundary of all occurrences, repeatNumber represents the total number of repetitions, etc."; 159 case LAST: return "Restricted to the latest known occurrence that is scheduled to occur. The Act with the highest known effective time."; 160 case NEXT: return "Restricted to the nearest recent known occurrence scheduled to occur in the future. The Act with the lowest effective time, still greater than 'now'. ('now' is the time the instance is authored.)"; 161 case PAST: return "An occurrence that occurred or was scheduled to occur in the past. An Act whose effective time is less than 'now'. ('now' is the time the instance is authored.)"; 162 case FIRST: return "Restricted to the earliest known occurrence that occurred or was scheduled to occur in the past. The Act with the lowest effective time. ('now' is the time the instance is authored.)"; 163 case PREVSUM: return "Represents a 'summary' of all acts that previously occurred or were scheduled to occur. The effectiveTime represents the outer boundary of all occurrences, repeatNumber represents the total number of repetitions, etc. ('now' is the time the instance is authored.)"; 164 case RECENT: return "Restricted to the most recent known occurrence that occurred or was scheduled to occur in the past. The Act with the most recent effective time, still less than 'now'. ('now' is the time the instance is authored.)"; 165 case SUM: return "Represents a 'summary' of all acts that have occurred or were scheduled to occur and which are scheduled to occur in the future. The effectiveTime represents the outer boundary of all occurrences, repeatNumber represents the total number of repetitions, etc."; 166 case ACTRELATIONSHIPEXPECTEDSUBSET: return "ActRelationshipExpectedSubset"; 167 case ACTRELATIONSHIPPASTSUBSET: return "ActRelationshipPastSubset"; 168 case MAX: return "The occurrence whose value attribute is greater than all other occurrences at the time the instance is created."; 169 case MIN: return "The occurrence whose value attribute is less than all other occurrences at the time the instance is created."; 170 default: return "?"; 171 } 172 } 173 public String getDisplay() { 174 switch (this) { 175 case _PARTICIPATIONSUBSET: return "ParticipationSubset"; 176 case FUTURE: return "expected future"; 177 case FUTSUM: return "future summary"; 178 case LAST: return "expected last"; 179 case NEXT: return "expected next"; 180 case PAST: return "previous"; 181 case FIRST: return "first known"; 182 case PREVSUM: return "previous summary"; 183 case RECENT: return "most recent"; 184 case SUM: return "summary"; 185 case ACTRELATIONSHIPEXPECTEDSUBSET: return "ActRelationshipExpectedSubset"; 186 case ACTRELATIONSHIPPASTSUBSET: return "ActRelationshipPastSubset"; 187 case MAX: return "maximum"; 188 case MIN: return "minimum"; 189 default: return "?"; 190 } 191 } 192 193 194} 195