001package org.hl7.fhir.r4.model.codesystems; 002 003/*- 004 * #%L 005 * org.hl7.fhir.r4 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/* 025 Copyright (c) 2011+, HL7, Inc. 026 All rights reserved. 027 028 Redistribution and use in source and binary forms, with or without modification, 029 are permitted provided that the following conditions are met: 030 031 * Redistributions of source code must retain the above copyright notice, this 032 list of conditions and the following disclaimer. 033 * Redistributions in binary form must reproduce the above copyright notice, 034 this list of conditions and the following disclaimer in the documentation 035 and/or other materials provided with the distribution. 036 * Neither the name of HL7 nor the names of its contributors may be used to 037 endorse or promote products derived from this software without specific 038 prior written permission. 039 040 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 041 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 042 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 043 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 044 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 045 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 046 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 047 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 048 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 049 POSSIBILITY OF SUCH DAMAGE. 050 051*/ 052 053// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0 054 055 056import org.hl7.fhir.exceptions.FHIRException; 057 058public enum V3HL7StandardVersionCode { 059 060 /** 061 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in January 2008. 062 */ 063 BALLOT2008JAN, 064 /** 065 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in May 2008. 066 */ 067 BALLOT2008MAY, 068 /** 069 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in September 2008. 070 */ 071 BALLOT2008SEP, 072 /** 073 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in January 2009. 074 */ 075 BALLOT2009JAN, 076 /** 077 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in May 2009. 078 */ 079 BALLOT2009MAY, 080 /** 081 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in September 2009. 082 */ 083 BALLOT2009SEP, 084 /** 085 * 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. 086 */ 087 BALLOT2010JAN, 088 /** 089 * 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. 090 */ 091 BALLOT2010MAY, 092 /** 093 * 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. 094 */ 095 BALLOT2010SEP, 096 /** 097 * 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. 098 */ 099 BALLOT2011JAN, 100 /** 101 * 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. 102 */ 103 BALLOT2011MAY, 104 /** 105 * 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. 106 */ 107 BALLOT2011SEP, 108 /** 109 * 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. 110 */ 111 BALLOT2012JAN, 112 /** 113 * 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. 114 */ 115 BALLOT2012MAY, 116 /** 117 * 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. 118 */ 119 BALLOT2012SEP, 120 /** 121 * 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. 122 */ 123 V3200312, 124 /** 125 * 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. 126 */ 127 V32005N, 128 /** 129 * 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. 130 */ 131 V32006N, 132 /** 133 * 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. 134 */ 135 V32008N, 136 /** 137 * 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. 138 */ 139 V32009N, 140 /** 141 * 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. 142 */ 143 V32010N, 144 /** 145 * 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. 146 */ 147 V32011N, 148 /** 149 * 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. 150 */ 151 V32012N, 152 /** 153 * Includes all material published as part of the ballot package released for vote in July-August 2003. 154 */ 155 V3PR1, 156 /** 157 * 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. 158 */ 159 V32007N, 160 /** 161 * added to help the parsers 162 */ 163 NULL; 164 public static V3HL7StandardVersionCode fromCode(String codeString) throws FHIRException { 165 if (codeString == null || "".equals(codeString)) 166 return null; 167 if ("Ballot2008Jan".equals(codeString)) 168 return BALLOT2008JAN; 169 if ("Ballot2008May".equals(codeString)) 170 return BALLOT2008MAY; 171 if ("Ballot2008Sep".equals(codeString)) 172 return BALLOT2008SEP; 173 if ("Ballot2009Jan".equals(codeString)) 174 return BALLOT2009JAN; 175 if ("Ballot2009May".equals(codeString)) 176 return BALLOT2009MAY; 177 if ("Ballot2009Sep".equals(codeString)) 178 return BALLOT2009SEP; 179 if ("Ballot2010Jan".equals(codeString)) 180 return BALLOT2010JAN; 181 if ("Ballot2010May".equals(codeString)) 182 return BALLOT2010MAY; 183 if ("Ballot2010Sep".equals(codeString)) 184 return BALLOT2010SEP; 185 if ("Ballot2011Jan".equals(codeString)) 186 return BALLOT2011JAN; 187 if ("Ballot2011May".equals(codeString)) 188 return BALLOT2011MAY; 189 if ("Ballot2011Sep".equals(codeString)) 190 return BALLOT2011SEP; 191 if ("Ballot2012Jan".equals(codeString)) 192 return BALLOT2012JAN; 193 if ("Ballot2012May".equals(codeString)) 194 return BALLOT2012MAY; 195 if ("Ballot2012Sep".equals(codeString)) 196 return BALLOT2012SEP; 197 if ("V3-2003-12".equals(codeString)) 198 return V3200312; 199 if ("V3-2005N".equals(codeString)) 200 return V32005N; 201 if ("V3-2006N".equals(codeString)) 202 return V32006N; 203 if ("V3-2008N".equals(codeString)) 204 return V32008N; 205 if ("V3-2009N".equals(codeString)) 206 return V32009N; 207 if ("V3-2010N".equals(codeString)) 208 return V32010N; 209 if ("V3-2011N".equals(codeString)) 210 return V32011N; 211 if ("V3-2012N".equals(codeString)) 212 return V32012N; 213 if ("V3PR1".equals(codeString)) 214 return V3PR1; 215 if ("V3-2007N".equals(codeString)) 216 return V32007N; 217 throw new FHIRException("Unknown V3HL7StandardVersionCode code '"+codeString+"'"); 218 } 219 public String toCode() { 220 switch (this) { 221 case BALLOT2008JAN: return "Ballot2008Jan"; 222 case BALLOT2008MAY: return "Ballot2008May"; 223 case BALLOT2008SEP: return "Ballot2008Sep"; 224 case BALLOT2009JAN: return "Ballot2009Jan"; 225 case BALLOT2009MAY: return "Ballot2009May"; 226 case BALLOT2009SEP: return "Ballot2009Sep"; 227 case BALLOT2010JAN: return "Ballot2010Jan"; 228 case BALLOT2010MAY: return "Ballot2010May"; 229 case BALLOT2010SEP: return "Ballot2010Sep"; 230 case BALLOT2011JAN: return "Ballot2011Jan"; 231 case BALLOT2011MAY: return "Ballot2011May"; 232 case BALLOT2011SEP: return "Ballot2011Sep"; 233 case BALLOT2012JAN: return "Ballot2012Jan"; 234 case BALLOT2012MAY: return "Ballot2012May"; 235 case BALLOT2012SEP: return "Ballot2012Sep"; 236 case V3200312: return "V3-2003-12"; 237 case V32005N: return "V3-2005N"; 238 case V32006N: return "V3-2006N"; 239 case V32008N: return "V3-2008N"; 240 case V32009N: return "V3-2009N"; 241 case V32010N: return "V3-2010N"; 242 case V32011N: return "V3-2011N"; 243 case V32012N: return "V3-2012N"; 244 case V3PR1: return "V3PR1"; 245 case V32007N: return "V3-2007N"; 246 default: return "?"; 247 } 248 } 249 public String getSystem() { 250 return "http://terminology.hl7.org/CodeSystem/v3-HL7StandardVersionCode"; 251 } 252 public String getDefinition() { 253 switch (this) { 254 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."; 255 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."; 256 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."; 257 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."; 258 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."; 259 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."; 260 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."; 261 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."; 262 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."; 263 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."; 264 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."; 265 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."; 266 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."; 267 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."; 268 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."; 269 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."; 270 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."; 271 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."; 272 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."; 273 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."; 274 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."; 275 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."; 276 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."; 277 case V3PR1: return "Includes all material published as part of the ballot package released for vote in July-August 2003."; 278 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."; 279 default: return "?"; 280 } 281 } 282 public String getDisplay() { 283 switch (this) { 284 case BALLOT2008JAN: return "Ballot 2008 January"; 285 case BALLOT2008MAY: return "Ballot 2008 May"; 286 case BALLOT2008SEP: return "Ballot 2008 September"; 287 case BALLOT2009JAN: return "Ballot 2009 January"; 288 case BALLOT2009MAY: return "Ballot 2009 May"; 289 case BALLOT2009SEP: return "Ballot 2009 September"; 290 case BALLOT2010JAN: return "Ballot 2010 Jan"; 291 case BALLOT2010MAY: return "Ballot 2010 May"; 292 case BALLOT2010SEP: return "Ballot 2010 Sep"; 293 case BALLOT2011JAN: return "Ballot 2011 Jan"; 294 case BALLOT2011MAY: return "Ballot 2011 May"; 295 case BALLOT2011SEP: return "Ballot 2011 Sep"; 296 case BALLOT2012JAN: return "Ballot 2012 Jan"; 297 case BALLOT2012MAY: return "Ballot 2012 May"; 298 case BALLOT2012SEP: return "Ballot 2012 Sep"; 299 case V3200312: return "HL7 Version V3-2003-12"; 300 case V32005N: return "2005 Normative Edition"; 301 case V32006N: return "2006 Normative Edition"; 302 case V32008N: return "2008 Normative Edition"; 303 case V32009N: return "2009 Normative Edition"; 304 case V32010N: return "2010 Normative Edition"; 305 case V32011N: return "2011 Normative Edition"; 306 case V32012N: return "2012 Normative Edition"; 307 case V3PR1: return "Version3 Pre-release #1"; 308 case V32007N: return "2007 Normative Edition"; 309 default: return "?"; 310 } 311 } 312 313 314} 315