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