001package org.hl7.fhir.r4.model.codesystems; 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 Thu, Sep 13, 2018 09:04-0400 for FHIR v3.5.0 033 034 035import org.hl7.fhir.exceptions.FHIRException; 036 037public enum V3HL7StandardVersionCode { 038 039 /** 040 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in January 2008. 041 */ 042 BALLOT2008JAN, 043 /** 044 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in May 2008. 045 */ 046 BALLOT2008MAY, 047 /** 048 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in September 2008. 049 */ 050 BALLOT2008SEP, 051 /** 052 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in January 2009. 053 */ 054 BALLOT2009JAN, 055 /** 056 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in May 2009. 057 */ 058 BALLOT2009MAY, 059 /** 060 * The complete set of normative, DSTU, proposed (under ballot) and draft artifacts as published in the ballot whose ballot cycle ended in September 2009. 061 */ 062 BALLOT2009SEP, 063 /** 064 * 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. 065 */ 066 BALLOT2010JAN, 067 /** 068 * 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. 069 */ 070 BALLOT2010MAY, 071 /** 072 * 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. 073 */ 074 BALLOT2010SEP, 075 /** 076 * 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. 077 */ 078 BALLOT2011JAN, 079 /** 080 * 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. 081 */ 082 BALLOT2011MAY, 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 September 2011. 085 */ 086 BALLOT2011SEP, 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 January 2012. 089 */ 090 BALLOT2012JAN, 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 May 2012. 093 */ 094 BALLOT2012MAY, 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 September 2012. 097 */ 098 BALLOT2012SEP, 099 /** 100 * 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. 101 */ 102 V3200312, 103 /** 104 * 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. 105 */ 106 V32005N, 107 /** 108 * 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. 109 */ 110 V32006N, 111 /** 112 * 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. 113 */ 114 V32008N, 115 /** 116 * 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. 117 */ 118 V32009N, 119 /** 120 * 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. 121 */ 122 V32010N, 123 /** 124 * 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. 125 */ 126 V32011N, 127 /** 128 * 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. 129 */ 130 V32012N, 131 /** 132 * Includes all material published as part of the ballot package released for vote in July-August 2003. 133 */ 134 V3PR1, 135 /** 136 * 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. 137 */ 138 V32007N, 139 /** 140 * added to help the parsers 141 */ 142 NULL; 143 public static V3HL7StandardVersionCode fromCode(String codeString) throws FHIRException { 144 if (codeString == null || "".equals(codeString)) 145 return null; 146 if ("Ballot2008Jan".equals(codeString)) 147 return BALLOT2008JAN; 148 if ("Ballot2008May".equals(codeString)) 149 return BALLOT2008MAY; 150 if ("Ballot2008Sep".equals(codeString)) 151 return BALLOT2008SEP; 152 if ("Ballot2009Jan".equals(codeString)) 153 return BALLOT2009JAN; 154 if ("Ballot2009May".equals(codeString)) 155 return BALLOT2009MAY; 156 if ("Ballot2009Sep".equals(codeString)) 157 return BALLOT2009SEP; 158 if ("Ballot2010Jan".equals(codeString)) 159 return BALLOT2010JAN; 160 if ("Ballot2010May".equals(codeString)) 161 return BALLOT2010MAY; 162 if ("Ballot2010Sep".equals(codeString)) 163 return BALLOT2010SEP; 164 if ("Ballot2011Jan".equals(codeString)) 165 return BALLOT2011JAN; 166 if ("Ballot2011May".equals(codeString)) 167 return BALLOT2011MAY; 168 if ("Ballot2011Sep".equals(codeString)) 169 return BALLOT2011SEP; 170 if ("Ballot2012Jan".equals(codeString)) 171 return BALLOT2012JAN; 172 if ("Ballot2012May".equals(codeString)) 173 return BALLOT2012MAY; 174 if ("Ballot2012Sep".equals(codeString)) 175 return BALLOT2012SEP; 176 if ("V3-2003-12".equals(codeString)) 177 return V3200312; 178 if ("V3-2005N".equals(codeString)) 179 return V32005N; 180 if ("V3-2006N".equals(codeString)) 181 return V32006N; 182 if ("V3-2008N".equals(codeString)) 183 return V32008N; 184 if ("V3-2009N".equals(codeString)) 185 return V32009N; 186 if ("V3-2010N".equals(codeString)) 187 return V32010N; 188 if ("V3-2011N".equals(codeString)) 189 return V32011N; 190 if ("V3-2012N".equals(codeString)) 191 return V32012N; 192 if ("V3PR1".equals(codeString)) 193 return V3PR1; 194 if ("V3-2007N".equals(codeString)) 195 return V32007N; 196 throw new FHIRException("Unknown V3HL7StandardVersionCode code '"+codeString+"'"); 197 } 198 public String toCode() { 199 switch (this) { 200 case BALLOT2008JAN: return "Ballot2008Jan"; 201 case BALLOT2008MAY: return "Ballot2008May"; 202 case BALLOT2008SEP: return "Ballot2008Sep"; 203 case BALLOT2009JAN: return "Ballot2009Jan"; 204 case BALLOT2009MAY: return "Ballot2009May"; 205 case BALLOT2009SEP: return "Ballot2009Sep"; 206 case BALLOT2010JAN: return "Ballot2010Jan"; 207 case BALLOT2010MAY: return "Ballot2010May"; 208 case BALLOT2010SEP: return "Ballot2010Sep"; 209 case BALLOT2011JAN: return "Ballot2011Jan"; 210 case BALLOT2011MAY: return "Ballot2011May"; 211 case BALLOT2011SEP: return "Ballot2011Sep"; 212 case BALLOT2012JAN: return "Ballot2012Jan"; 213 case BALLOT2012MAY: return "Ballot2012May"; 214 case BALLOT2012SEP: return "Ballot2012Sep"; 215 case V3200312: return "V3-2003-12"; 216 case V32005N: return "V3-2005N"; 217 case V32006N: return "V3-2006N"; 218 case V32008N: return "V3-2008N"; 219 case V32009N: return "V3-2009N"; 220 case V32010N: return "V3-2010N"; 221 case V32011N: return "V3-2011N"; 222 case V32012N: return "V3-2012N"; 223 case V3PR1: return "V3PR1"; 224 case V32007N: return "V3-2007N"; 225 default: return "?"; 226 } 227 } 228 public String getSystem() { 229 return "http://terminology.hl7.org/CodeSystem/v3-HL7StandardVersionCode"; 230 } 231 public String getDefinition() { 232 switch (this) { 233 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."; 234 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."; 235 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."; 236 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."; 237 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."; 238 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."; 239 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."; 240 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."; 241 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."; 242 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."; 243 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."; 244 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."; 245 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."; 246 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."; 247 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."; 248 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."; 249 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."; 250 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."; 251 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."; 252 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."; 253 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."; 254 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."; 255 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."; 256 case V3PR1: return "Includes all material published as part of the ballot package released for vote in July-August 2003."; 257 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."; 258 default: return "?"; 259 } 260 } 261 public String getDisplay() { 262 switch (this) { 263 case BALLOT2008JAN: return "Ballot 2008 January"; 264 case BALLOT2008MAY: return "Ballot 2008 May"; 265 case BALLOT2008SEP: return "Ballot 2008 September"; 266 case BALLOT2009JAN: return "Ballot 2009 January"; 267 case BALLOT2009MAY: return "Ballot 2009 May"; 268 case BALLOT2009SEP: return "Ballot 2009 September"; 269 case BALLOT2010JAN: return "Ballot 2010 Jan"; 270 case BALLOT2010MAY: return "Ballot 2010 May"; 271 case BALLOT2010SEP: return "Ballot 2010 Sep"; 272 case BALLOT2011JAN: return "Ballot 2011 Jan"; 273 case BALLOT2011MAY: return "Ballot 2011 May"; 274 case BALLOT2011SEP: return "Ballot 2011 Sep"; 275 case BALLOT2012JAN: return "Ballot 2012 Jan"; 276 case BALLOT2012MAY: return "Ballot 2012 May"; 277 case BALLOT2012SEP: return "Ballot 2012 Sep"; 278 case V3200312: return "HL7 Version V3-2003-12"; 279 case V32005N: return "2005 Normative Edition"; 280 case V32006N: return "2006 Normative Edition"; 281 case V32008N: return "2008 Normative Edition"; 282 case V32009N: return "2009 Normative Edition"; 283 case V32010N: return "2010 Normative Edition"; 284 case V32011N: return "2011 Normative Edition"; 285 case V32012N: return "2012 Normative Edition"; 286 case V3PR1: return "Version3 Pre-release #1"; 287 case V32007N: return "2007 Normative Edition"; 288 default: return "?"; 289 } 290 } 291 292 293} 294