001package org.hl7.fhir.dstu3.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 Sat, Mar 25, 2017 21:03-0400 for FHIR v3.0.0 036 037 038import org.hl7.fhir.dstu3.model.EnumFactory; 039 040public class V3ParticipationTypeEnumFactory implements EnumFactory<V3ParticipationType> { 041 042 public V3ParticipationType fromCode(String codeString) throws IllegalArgumentException { 043 if (codeString == null || "".equals(codeString)) 044 return null; 045 if ("PART".equals(codeString)) 046 return V3ParticipationType.PART; 047 if ("_ParticipationAncillary".equals(codeString)) 048 return V3ParticipationType._PARTICIPATIONANCILLARY; 049 if ("ADM".equals(codeString)) 050 return V3ParticipationType.ADM; 051 if ("ATND".equals(codeString)) 052 return V3ParticipationType.ATND; 053 if ("CALLBCK".equals(codeString)) 054 return V3ParticipationType.CALLBCK; 055 if ("CON".equals(codeString)) 056 return V3ParticipationType.CON; 057 if ("DIS".equals(codeString)) 058 return V3ParticipationType.DIS; 059 if ("ESC".equals(codeString)) 060 return V3ParticipationType.ESC; 061 if ("REF".equals(codeString)) 062 return V3ParticipationType.REF; 063 if ("_ParticipationInformationGenerator".equals(codeString)) 064 return V3ParticipationType._PARTICIPATIONINFORMATIONGENERATOR; 065 if ("AUT".equals(codeString)) 066 return V3ParticipationType.AUT; 067 if ("INF".equals(codeString)) 068 return V3ParticipationType.INF; 069 if ("TRANS".equals(codeString)) 070 return V3ParticipationType.TRANS; 071 if ("ENT".equals(codeString)) 072 return V3ParticipationType.ENT; 073 if ("WIT".equals(codeString)) 074 return V3ParticipationType.WIT; 075 if ("CST".equals(codeString)) 076 return V3ParticipationType.CST; 077 if ("DIR".equals(codeString)) 078 return V3ParticipationType.DIR; 079 if ("ALY".equals(codeString)) 080 return V3ParticipationType.ALY; 081 if ("BBY".equals(codeString)) 082 return V3ParticipationType.BBY; 083 if ("CAT".equals(codeString)) 084 return V3ParticipationType.CAT; 085 if ("CSM".equals(codeString)) 086 return V3ParticipationType.CSM; 087 if ("TPA".equals(codeString)) 088 return V3ParticipationType.TPA; 089 if ("DEV".equals(codeString)) 090 return V3ParticipationType.DEV; 091 if ("NRD".equals(codeString)) 092 return V3ParticipationType.NRD; 093 if ("RDV".equals(codeString)) 094 return V3ParticipationType.RDV; 095 if ("DON".equals(codeString)) 096 return V3ParticipationType.DON; 097 if ("EXPAGNT".equals(codeString)) 098 return V3ParticipationType.EXPAGNT; 099 if ("EXPART".equals(codeString)) 100 return V3ParticipationType.EXPART; 101 if ("EXPTRGT".equals(codeString)) 102 return V3ParticipationType.EXPTRGT; 103 if ("EXSRC".equals(codeString)) 104 return V3ParticipationType.EXSRC; 105 if ("PRD".equals(codeString)) 106 return V3ParticipationType.PRD; 107 if ("SBJ".equals(codeString)) 108 return V3ParticipationType.SBJ; 109 if ("SPC".equals(codeString)) 110 return V3ParticipationType.SPC; 111 if ("IND".equals(codeString)) 112 return V3ParticipationType.IND; 113 if ("BEN".equals(codeString)) 114 return V3ParticipationType.BEN; 115 if ("CAGNT".equals(codeString)) 116 return V3ParticipationType.CAGNT; 117 if ("COV".equals(codeString)) 118 return V3ParticipationType.COV; 119 if ("GUAR".equals(codeString)) 120 return V3ParticipationType.GUAR; 121 if ("HLD".equals(codeString)) 122 return V3ParticipationType.HLD; 123 if ("RCT".equals(codeString)) 124 return V3ParticipationType.RCT; 125 if ("RCV".equals(codeString)) 126 return V3ParticipationType.RCV; 127 if ("IRCP".equals(codeString)) 128 return V3ParticipationType.IRCP; 129 if ("NOT".equals(codeString)) 130 return V3ParticipationType.NOT; 131 if ("PRCP".equals(codeString)) 132 return V3ParticipationType.PRCP; 133 if ("REFB".equals(codeString)) 134 return V3ParticipationType.REFB; 135 if ("REFT".equals(codeString)) 136 return V3ParticipationType.REFT; 137 if ("TRC".equals(codeString)) 138 return V3ParticipationType.TRC; 139 if ("LOC".equals(codeString)) 140 return V3ParticipationType.LOC; 141 if ("DST".equals(codeString)) 142 return V3ParticipationType.DST; 143 if ("ELOC".equals(codeString)) 144 return V3ParticipationType.ELOC; 145 if ("ORG".equals(codeString)) 146 return V3ParticipationType.ORG; 147 if ("RML".equals(codeString)) 148 return V3ParticipationType.RML; 149 if ("VIA".equals(codeString)) 150 return V3ParticipationType.VIA; 151 if ("PRF".equals(codeString)) 152 return V3ParticipationType.PRF; 153 if ("DIST".equals(codeString)) 154 return V3ParticipationType.DIST; 155 if ("PPRF".equals(codeString)) 156 return V3ParticipationType.PPRF; 157 if ("SPRF".equals(codeString)) 158 return V3ParticipationType.SPRF; 159 if ("RESP".equals(codeString)) 160 return V3ParticipationType.RESP; 161 if ("VRF".equals(codeString)) 162 return V3ParticipationType.VRF; 163 if ("AUTHEN".equals(codeString)) 164 return V3ParticipationType.AUTHEN; 165 if ("LA".equals(codeString)) 166 return V3ParticipationType.LA; 167 throw new IllegalArgumentException("Unknown V3ParticipationType code '"+codeString+"'"); 168 } 169 170 public String toCode(V3ParticipationType code) { 171 if (code == V3ParticipationType.NULL) 172 return null; 173 if (code == V3ParticipationType.PART) 174 return "PART"; 175 if (code == V3ParticipationType._PARTICIPATIONANCILLARY) 176 return "_ParticipationAncillary"; 177 if (code == V3ParticipationType.ADM) 178 return "ADM"; 179 if (code == V3ParticipationType.ATND) 180 return "ATND"; 181 if (code == V3ParticipationType.CALLBCK) 182 return "CALLBCK"; 183 if (code == V3ParticipationType.CON) 184 return "CON"; 185 if (code == V3ParticipationType.DIS) 186 return "DIS"; 187 if (code == V3ParticipationType.ESC) 188 return "ESC"; 189 if (code == V3ParticipationType.REF) 190 return "REF"; 191 if (code == V3ParticipationType._PARTICIPATIONINFORMATIONGENERATOR) 192 return "_ParticipationInformationGenerator"; 193 if (code == V3ParticipationType.AUT) 194 return "AUT"; 195 if (code == V3ParticipationType.INF) 196 return "INF"; 197 if (code == V3ParticipationType.TRANS) 198 return "TRANS"; 199 if (code == V3ParticipationType.ENT) 200 return "ENT"; 201 if (code == V3ParticipationType.WIT) 202 return "WIT"; 203 if (code == V3ParticipationType.CST) 204 return "CST"; 205 if (code == V3ParticipationType.DIR) 206 return "DIR"; 207 if (code == V3ParticipationType.ALY) 208 return "ALY"; 209 if (code == V3ParticipationType.BBY) 210 return "BBY"; 211 if (code == V3ParticipationType.CAT) 212 return "CAT"; 213 if (code == V3ParticipationType.CSM) 214 return "CSM"; 215 if (code == V3ParticipationType.TPA) 216 return "TPA"; 217 if (code == V3ParticipationType.DEV) 218 return "DEV"; 219 if (code == V3ParticipationType.NRD) 220 return "NRD"; 221 if (code == V3ParticipationType.RDV) 222 return "RDV"; 223 if (code == V3ParticipationType.DON) 224 return "DON"; 225 if (code == V3ParticipationType.EXPAGNT) 226 return "EXPAGNT"; 227 if (code == V3ParticipationType.EXPART) 228 return "EXPART"; 229 if (code == V3ParticipationType.EXPTRGT) 230 return "EXPTRGT"; 231 if (code == V3ParticipationType.EXSRC) 232 return "EXSRC"; 233 if (code == V3ParticipationType.PRD) 234 return "PRD"; 235 if (code == V3ParticipationType.SBJ) 236 return "SBJ"; 237 if (code == V3ParticipationType.SPC) 238 return "SPC"; 239 if (code == V3ParticipationType.IND) 240 return "IND"; 241 if (code == V3ParticipationType.BEN) 242 return "BEN"; 243 if (code == V3ParticipationType.CAGNT) 244 return "CAGNT"; 245 if (code == V3ParticipationType.COV) 246 return "COV"; 247 if (code == V3ParticipationType.GUAR) 248 return "GUAR"; 249 if (code == V3ParticipationType.HLD) 250 return "HLD"; 251 if (code == V3ParticipationType.RCT) 252 return "RCT"; 253 if (code == V3ParticipationType.RCV) 254 return "RCV"; 255 if (code == V3ParticipationType.IRCP) 256 return "IRCP"; 257 if (code == V3ParticipationType.NOT) 258 return "NOT"; 259 if (code == V3ParticipationType.PRCP) 260 return "PRCP"; 261 if (code == V3ParticipationType.REFB) 262 return "REFB"; 263 if (code == V3ParticipationType.REFT) 264 return "REFT"; 265 if (code == V3ParticipationType.TRC) 266 return "TRC"; 267 if (code == V3ParticipationType.LOC) 268 return "LOC"; 269 if (code == V3ParticipationType.DST) 270 return "DST"; 271 if (code == V3ParticipationType.ELOC) 272 return "ELOC"; 273 if (code == V3ParticipationType.ORG) 274 return "ORG"; 275 if (code == V3ParticipationType.RML) 276 return "RML"; 277 if (code == V3ParticipationType.VIA) 278 return "VIA"; 279 if (code == V3ParticipationType.PRF) 280 return "PRF"; 281 if (code == V3ParticipationType.DIST) 282 return "DIST"; 283 if (code == V3ParticipationType.PPRF) 284 return "PPRF"; 285 if (code == V3ParticipationType.SPRF) 286 return "SPRF"; 287 if (code == V3ParticipationType.RESP) 288 return "RESP"; 289 if (code == V3ParticipationType.VRF) 290 return "VRF"; 291 if (code == V3ParticipationType.AUTHEN) 292 return "AUTHEN"; 293 if (code == V3ParticipationType.LA) 294 return "LA"; 295 return "?"; 296 } 297 298 public String toSystem(V3ParticipationType code) { 299 return code.getSystem(); 300 } 301 302}