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 V3HL7StandardVersionCode { 058 059 /** 060 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in January 2008. 061 */ 062 BALLOT2008JAN, 063 /** 064 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in May 2008. 065 */ 066 BALLOT2008MAY, 067 /** 068 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in September 2008. 069 */ 070 BALLOT2008SEP, 071 /** 072 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in January 2009. 073 */ 074 BALLOT2009JAN, 075 /** 076 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in May 2009. 077 */ 078 BALLOT2009MAY, 079 /** 080 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in September 2009. 081 */ 082 BALLOT2009SEP, 083 /** 084 * Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in January 2010. 085 */ 086 BALLOT2010JAN, 087 /** 088 * Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in May 2010. 089 */ 090 BALLOT2010MAY, 091 /** 092 * Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in September 2010. 093 */ 094 BALLOT2010SEP, 095 /** 096 * Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in January 2011. 097 */ 098 BALLOT2011JAN, 099 /** 100 * Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in May 2011. 101 */ 102 BALLOT2011MAY, 103 /** 104 * Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in September 2011. 105 */ 106 BALLOT2011SEP, 107 /** 108 * Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in January 2012. 109 */ 110 BALLOT2012JAN, 111 /** 112 * Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in May 2012. 113 */ 114 BALLOT2012MAY, 115 /** 116 * Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in September 2012. 117 */ 118 BALLOT2012SEP, 119 /** 120 * The consistent set of messaging artefacts as published or contained in repositories in December of 2003, based on the latest version of any V3 models or artefacts (RIM, Datatypes, CMETS, Common Messages, Vocabularies) as available in December of 2003. Note: This versioncode does not cover the version of the XML ITS. 121 */ 122 V3200312, 123 /** 124 * Description:The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2004, based on the latest version of any V3 models or artifacts (RIM, Datatypes, CMETS, Common Messages, Vocabularies) as published under the title of Normative Edition 2005. Note: This versioncode does not cover the version of the XML ITS. 125 */ 126 V32005N, 127 /** 128 * Description:The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2005, based on the latest version of any V3 models or artifacts (RIM, Datatypes, CMETS, Common Messages, Vocabularies) as published under the title of Normative Edition 2006. Note: This versioncode does not cover the version of the XML ITS. 129 */ 130 V32006N, 131 /** 132 * Definition: The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2007, based on the latest version of any V3 models or artifacts (RIM, Data Types, CMETS, Common Messages, Vocabularies) published under the title of Normative Edition 2008. Note: This version code does not cover the version of the XML ITS. 133 */ 134 V32008N, 135 /** 136 * Description: The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2008, based on the latest version of any V3 models or artifacts (RIM, Data Types, CMETS, Common Messages, Vocabularies) published under the title of Normative Edition 2009. Note: This version code does not cover the version of the XML ITS. 137 */ 138 V32009N, 139 /** 140 * Definition: The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2009, based on the latest version of any V3 models or artifacts (RIM, Data Types, CMETS, Common Messages, Vocabularies) published under the title of Normative Edition 2010. Note: This version code does not cover the version of the XML ITS. 141 */ 142 V32010N, 143 /** 144 * Definition: The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2010, based on the latest version of any V3 models or artifacts (RIM, Data Types, CMETS, Common Messages, Vocabularies) published under the title of Normative Edition 2011. Note: This version code does not cover the version of the XML ITS. 145 */ 146 V32011N, 147 /** 148 * Definition: The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2011, based on the latest version of any V3 models or artifacts (RIM, Data Types, CMETS, Common Messages, Vocabularies) published under the title of Normative Edition 2012. Note: This version code does not cover the version of the XML ITS. 149 */ 150 V32012N, 151 /** 152 * Includes all material published as part of the ballot package released for vote in July-August 2003. 153 */ 154 V3PR1, 155 /** 156 * Description:The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2006, based on the latest version of any V3 models or artifacts (RIM, Datatypes, CMETS, Common Messages, Vocabularies) published under the title of Normative Edition 2007. Note: This versioncode does not cover the version of the XML ITS. 157 */ 158 V32007N, 159 /** 160 * added to help the parsers 161 */ 162 NULL; 163 public static V3HL7StandardVersionCode fromCode(String codeString) throws FHIRException { 164 if (codeString == null || "".equals(codeString)) 165 return null; 166 if ("Ballot2008Jan".equals(codeString)) 167 return BALLOT2008JAN; 168 if ("Ballot2008May".equals(codeString)) 169 return BALLOT2008MAY; 170 if ("Ballot2008Sep".equals(codeString)) 171 return BALLOT2008SEP; 172 if ("Ballot2009Jan".equals(codeString)) 173 return BALLOT2009JAN; 174 if ("Ballot2009May".equals(codeString)) 175 return BALLOT2009MAY; 176 if ("Ballot2009Sep".equals(codeString)) 177 return BALLOT2009SEP; 178 if ("Ballot2010Jan".equals(codeString)) 179 return BALLOT2010JAN; 180 if ("Ballot2010May".equals(codeString)) 181 return BALLOT2010MAY; 182 if ("Ballot2010Sep".equals(codeString)) 183 return BALLOT2010SEP; 184 if ("Ballot2011Jan".equals(codeString)) 185 return BALLOT2011JAN; 186 if ("Ballot2011May".equals(codeString)) 187 return BALLOT2011MAY; 188 if ("Ballot2011Sep".equals(codeString)) 189 return BALLOT2011SEP; 190 if ("Ballot2012Jan".equals(codeString)) 191 return BALLOT2012JAN; 192 if ("Ballot2012May".equals(codeString)) 193 return BALLOT2012MAY; 194 if ("Ballot2012Sep".equals(codeString)) 195 return BALLOT2012SEP; 196 if ("V3-2003-12".equals(codeString)) 197 return V3200312; 198 if ("V3-2005N".equals(codeString)) 199 return V32005N; 200 if ("V3-2006N".equals(codeString)) 201 return V32006N; 202 if ("V3-2008N".equals(codeString)) 203 return V32008N; 204 if ("V3-2009N".equals(codeString)) 205 return V32009N; 206 if ("V3-2010N".equals(codeString)) 207 return V32010N; 208 if ("V3-2011N".equals(codeString)) 209 return V32011N; 210 if ("V3-2012N".equals(codeString)) 211 return V32012N; 212 if ("V3PR1".equals(codeString)) 213 return V3PR1; 214 if ("V3-2007N".equals(codeString)) 215 return V32007N; 216 throw new FHIRException("Unknown V3HL7StandardVersionCode code '"+codeString+"'"); 217 } 218 public String toCode() { 219 switch (this) { 220 case BALLOT2008JAN: return "Ballot2008Jan"; 221 case BALLOT2008MAY: return "Ballot2008May"; 222 case BALLOT2008SEP: return "Ballot2008Sep"; 223 case BALLOT2009JAN: return "Ballot2009Jan"; 224 case BALLOT2009MAY: return "Ballot2009May"; 225 case BALLOT2009SEP: return "Ballot2009Sep"; 226 case BALLOT2010JAN: return "Ballot2010Jan"; 227 case BALLOT2010MAY: return "Ballot2010May"; 228 case BALLOT2010SEP: return "Ballot2010Sep"; 229 case BALLOT2011JAN: return "Ballot2011Jan"; 230 case BALLOT2011MAY: return "Ballot2011May"; 231 case BALLOT2011SEP: return "Ballot2011Sep"; 232 case BALLOT2012JAN: return "Ballot2012Jan"; 233 case BALLOT2012MAY: return "Ballot2012May"; 234 case BALLOT2012SEP: return "Ballot2012Sep"; 235 case V3200312: return "V3-2003-12"; 236 case V32005N: return "V3-2005N"; 237 case V32006N: return "V3-2006N"; 238 case V32008N: return "V3-2008N"; 239 case V32009N: return "V3-2009N"; 240 case V32010N: return "V3-2010N"; 241 case V32011N: return "V3-2011N"; 242 case V32012N: return "V3-2012N"; 243 case V3PR1: return "V3PR1"; 244 case V32007N: return "V3-2007N"; 245 default: return "?"; 246 } 247 } 248 public String getSystem() { 249 return "http://terminology.hl7.org/CodeSystem/v3-HL7StandardVersionCode"; 250 } 251 public String getDefinition() { 252 switch (this) { 253 case BALLOT2008JAN: return "The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in January 2008."; 254 case BALLOT2008MAY: return "The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in May 2008."; 255 case BALLOT2008SEP: return "The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in September 2008."; 256 case BALLOT2009JAN: return "The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in January 2009."; 257 case BALLOT2009MAY: return "The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in May 2009."; 258 case BALLOT2009SEP: return "The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in September 2009."; 259 case BALLOT2010JAN: return "Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in January 2010."; 260 case BALLOT2010MAY: return "Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in May 2010."; 261 case BALLOT2010SEP: return "Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in September 2010."; 262 case BALLOT2011JAN: return "Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in January 2011."; 263 case BALLOT2011MAY: return "Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in May 2011."; 264 case BALLOT2011SEP: return "Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in September 2011."; 265 case BALLOT2012JAN: return "Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in January 2012."; 266 case BALLOT2012MAY: return "Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in May 2012."; 267 case BALLOT2012SEP: return "Definition: The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in September 2012."; 268 case V3200312: return "The consistent set of messaging artefacts as published or contained in repositories in December of 2003, based on the latest version of any V3 models or artefacts (RIM, Datatypes, CMETS, Common Messages, Vocabularies) as available in December of 2003. Note: This versioncode does not cover the version of the XML ITS."; 269 case V32005N: return "Description:The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2004, based on the latest version of any V3 models or artifacts (RIM, Datatypes, CMETS, Common Messages, Vocabularies) as published under the title of Normative Edition 2005. Note: This versioncode does not cover the version of the XML ITS."; 270 case V32006N: return "Description:The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2005, based on the latest version of any V3 models or artifacts (RIM, Datatypes, CMETS, Common Messages, Vocabularies) as published under the title of Normative Edition 2006. Note: This versioncode does not cover the version of the XML ITS."; 271 case V32008N: return "Definition: The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2007, based on the latest version of any V3 models or artifacts (RIM, Data Types, CMETS, Common Messages, Vocabularies) published under the title of Normative Edition 2008. Note: This version code does not cover the version of the XML ITS."; 272 case V32009N: return "Description: The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2008, based on the latest version of any V3 models or artifacts (RIM, Data Types, CMETS, Common Messages, Vocabularies) published under the title of Normative Edition 2009. Note: This version code does not cover the version of the XML ITS."; 273 case V32010N: return "Definition: The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2009, based on the latest version of any V3 models or artifacts (RIM, Data Types, CMETS, Common Messages, Vocabularies) published under the title of Normative Edition 2010. Note: This version code does not cover the version of the XML ITS."; 274 case V32011N: return "Definition: The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2010, based on the latest version of any V3 models or artifacts (RIM, Data Types, CMETS, Common Messages, Vocabularies) published under the title of Normative Edition 2011. Note: This version code does not cover the version of the XML ITS."; 275 case V32012N: return "Definition: The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2011, based on the latest version of any V3 models or artifacts (RIM, Data Types, CMETS, Common Messages, Vocabularies) published under the title of Normative Edition 2012. Note: This version code does not cover the version of the XML ITS."; 276 case V3PR1: return "Includes all material published as part of the ballot package released for vote in July-August 2003."; 277 case V32007N: return "Description:The consistent set of normative and DSTU messaging artifacts as published or contained in repositories in December of 2006, based on the latest version of any V3 models or artifacts (RIM, Datatypes, CMETS, Common Messages, Vocabularies) published under the title of Normative Edition 2007. Note: This versioncode does not cover the version of the XML ITS."; 278 default: return "?"; 279 } 280 } 281 public String getDisplay() { 282 switch (this) { 283 case BALLOT2008JAN: return "Ballot 2008 January"; 284 case BALLOT2008MAY: return "Ballot 2008 May"; 285 case BALLOT2008SEP: return "Ballot 2008 September"; 286 case BALLOT2009JAN: return "Ballot 2009 January"; 287 case BALLOT2009MAY: return "Ballot 2009 May"; 288 case BALLOT2009SEP: return "Ballot 2009 September"; 289 case BALLOT2010JAN: return "Ballot 2010 Jan"; 290 case BALLOT2010MAY: return "Ballot 2010 May"; 291 case BALLOT2010SEP: return "Ballot 2010 Sep"; 292 case BALLOT2011JAN: return "Ballot 2011 Jan"; 293 case BALLOT2011MAY: return "Ballot 2011 May"; 294 case BALLOT2011SEP: return "Ballot 2011 Sep"; 295 case BALLOT2012JAN: return "Ballot 2012 Jan"; 296 case BALLOT2012MAY: return "Ballot 2012 May"; 297 case BALLOT2012SEP: return "Ballot 2012 Sep"; 298 case V3200312: return "HL7 Version V3-2003-12"; 299 case V32005N: return "2005 Normative Edition"; 300 case V32006N: return "2006 Normative Edition"; 301 case V32008N: return "2008 Normative Edition"; 302 case V32009N: return "2009 Normative Edition"; 303 case V32010N: return "2010 Normative Edition"; 304 case V32011N: return "2011 Normative Edition"; 305 case V32012N: return "2012 Normative Edition"; 306 case V3PR1: return "Version3 Pre-release #1"; 307 case V32007N: return "2007 Normative Edition"; 308 default: return "?"; 309 } 310 } 311 312 313} 314