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 V3ActRelationshipSubset { 058 059 /** 060 * Used to indicate that the participation is a filtered subset of the total participations of the same type owned by the Act. 061 062 Used when there is a need to limit the participations to the first, the last, the next or some other filtered subset. 063 */ 064 _PARTICIPATIONSUBSET, 065 /** 066 * 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. 067 */ 068 FUTURE, 069 /** 070 * 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. 071 */ 072 FUTSUM, 073 /** 074 * Restricted to the latest known occurrence that is scheduled to occur. The Act with the highest known effective time. 075 */ 076 LAST, 077 /** 078 * 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.) 079 */ 080 NEXT, 081 /** 082 * 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.) 083 */ 084 PAST, 085 /** 086 * 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.) 087 */ 088 FIRST, 089 /** 090 * 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.) 091 */ 092 PREVSUM, 093 /** 094 * 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.) 095 */ 096 RECENT, 097 /** 098 * 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. 099 */ 100 SUM, 101 /** 102 * ActRelationshipExpectedSubset 103 */ 104 ACTRELATIONSHIPEXPECTEDSUBSET, 105 /** 106 * ActRelationshipPastSubset 107 */ 108 ACTRELATIONSHIPPASTSUBSET, 109 /** 110 * The occurrence whose value attribute is greater than all other occurrences at the time the instance is created. 111 */ 112 MAX, 113 /** 114 * The occurrence whose value attribute is less than all other occurrences at the time the instance is created. 115 */ 116 MIN, 117 /** 118 * added to help the parsers 119 */ 120 NULL; 121 public static V3ActRelationshipSubset fromCode(String codeString) throws FHIRException { 122 if (codeString == null || "".equals(codeString)) 123 return null; 124 if ("_ParticipationSubset".equals(codeString)) 125 return _PARTICIPATIONSUBSET; 126 if ("FUTURE".equals(codeString)) 127 return FUTURE; 128 if ("FUTSUM".equals(codeString)) 129 return FUTSUM; 130 if ("LAST".equals(codeString)) 131 return LAST; 132 if ("NEXT".equals(codeString)) 133 return NEXT; 134 if ("PAST".equals(codeString)) 135 return PAST; 136 if ("FIRST".equals(codeString)) 137 return FIRST; 138 if ("PREVSUM".equals(codeString)) 139 return PREVSUM; 140 if ("RECENT".equals(codeString)) 141 return RECENT; 142 if ("SUM".equals(codeString)) 143 return SUM; 144 if ("ActRelationshipExpectedSubset".equals(codeString)) 145 return ACTRELATIONSHIPEXPECTEDSUBSET; 146 if ("ActRelationshipPastSubset".equals(codeString)) 147 return ACTRELATIONSHIPPASTSUBSET; 148 if ("MAX".equals(codeString)) 149 return MAX; 150 if ("MIN".equals(codeString)) 151 return MIN; 152 throw new FHIRException("Unknown V3ActRelationshipSubset code '"+codeString+"'"); 153 } 154 public String toCode() { 155 switch (this) { 156 case _PARTICIPATIONSUBSET: return "_ParticipationSubset"; 157 case FUTURE: return "FUTURE"; 158 case FUTSUM: return "FUTSUM"; 159 case LAST: return "LAST"; 160 case NEXT: return "NEXT"; 161 case PAST: return "PAST"; 162 case FIRST: return "FIRST"; 163 case PREVSUM: return "PREVSUM"; 164 case RECENT: return "RECENT"; 165 case SUM: return "SUM"; 166 case ACTRELATIONSHIPEXPECTEDSUBSET: return "ActRelationshipExpectedSubset"; 167 case ACTRELATIONSHIPPASTSUBSET: return "ActRelationshipPastSubset"; 168 case MAX: return "MAX"; 169 case MIN: return "MIN"; 170 default: return "?"; 171 } 172 } 173 public String getSystem() { 174 return "http://terminology.hl7.org/CodeSystem/v3-ActRelationshipSubset"; 175 } 176 public String getDefinition() { 177 switch (this) { 178 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."; 179 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."; 180 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."; 181 case LAST: return "Restricted to the latest known occurrence that is scheduled to occur. The Act with the highest known effective time."; 182 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.)"; 183 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.)"; 184 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.)"; 185 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.)"; 186 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.)"; 187 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."; 188 case ACTRELATIONSHIPEXPECTEDSUBSET: return "ActRelationshipExpectedSubset"; 189 case ACTRELATIONSHIPPASTSUBSET: return "ActRelationshipPastSubset"; 190 case MAX: return "The occurrence whose value attribute is greater than all other occurrences at the time the instance is created."; 191 case MIN: return "The occurrence whose value attribute is less than all other occurrences at the time the instance is created."; 192 default: return "?"; 193 } 194 } 195 public String getDisplay() { 196 switch (this) { 197 case _PARTICIPATIONSUBSET: return "ParticipationSubset"; 198 case FUTURE: return "expected future"; 199 case FUTSUM: return "future summary"; 200 case LAST: return "expected last"; 201 case NEXT: return "expected next"; 202 case PAST: return "previous"; 203 case FIRST: return "first known"; 204 case PREVSUM: return "previous summary"; 205 case RECENT: return "most recent"; 206 case SUM: return "summary"; 207 case ACTRELATIONSHIPEXPECTEDSUBSET: return "ActRelationshipExpectedSubset"; 208 case ACTRELATIONSHIPPASTSUBSET: return "ActRelationshipPastSubset"; 209 case MAX: return "maximum"; 210 case MIN: return "minimum"; 211 default: return "?"; 212 } 213 } 214 215 216} 217