![](/hapi-fhir/images/logos/raccoon-forwards.png)
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 V3ActClassEnumFactory implements EnumFactory<V3ActClass> { 041 042 public V3ActClass fromCode(String codeString) throws IllegalArgumentException { 043 if (codeString == null || "".equals(codeString)) 044 return null; 045 if ("ACT".equals(codeString)) 046 return V3ActClass.ACT; 047 if ("_ActClassRecordOrganizer".equals(codeString)) 048 return V3ActClass._ACTCLASSRECORDORGANIZER; 049 if ("COMPOSITION".equals(codeString)) 050 return V3ActClass.COMPOSITION; 051 if ("DOC".equals(codeString)) 052 return V3ActClass.DOC; 053 if ("DOCCLIN".equals(codeString)) 054 return V3ActClass.DOCCLIN; 055 if ("CDALVLONE".equals(codeString)) 056 return V3ActClass.CDALVLONE; 057 if ("CONTAINER".equals(codeString)) 058 return V3ActClass.CONTAINER; 059 if ("CATEGORY".equals(codeString)) 060 return V3ActClass.CATEGORY; 061 if ("DOCBODY".equals(codeString)) 062 return V3ActClass.DOCBODY; 063 if ("DOCSECT".equals(codeString)) 064 return V3ActClass.DOCSECT; 065 if ("TOPIC".equals(codeString)) 066 return V3ActClass.TOPIC; 067 if ("EXTRACT".equals(codeString)) 068 return V3ActClass.EXTRACT; 069 if ("EHR".equals(codeString)) 070 return V3ActClass.EHR; 071 if ("FOLDER".equals(codeString)) 072 return V3ActClass.FOLDER; 073 if ("GROUPER".equals(codeString)) 074 return V3ActClass.GROUPER; 075 if ("CLUSTER".equals(codeString)) 076 return V3ActClass.CLUSTER; 077 if ("ACCM".equals(codeString)) 078 return V3ActClass.ACCM; 079 if ("ACCT".equals(codeString)) 080 return V3ActClass.ACCT; 081 if ("ACSN".equals(codeString)) 082 return V3ActClass.ACSN; 083 if ("ADJUD".equals(codeString)) 084 return V3ActClass.ADJUD; 085 if ("CACT".equals(codeString)) 086 return V3ActClass.CACT; 087 if ("ACTN".equals(codeString)) 088 return V3ActClass.ACTN; 089 if ("INFO".equals(codeString)) 090 return V3ActClass.INFO; 091 if ("STC".equals(codeString)) 092 return V3ActClass.STC; 093 if ("CNTRCT".equals(codeString)) 094 return V3ActClass.CNTRCT; 095 if ("FCNTRCT".equals(codeString)) 096 return V3ActClass.FCNTRCT; 097 if ("COV".equals(codeString)) 098 return V3ActClass.COV; 099 if ("CONC".equals(codeString)) 100 return V3ActClass.CONC; 101 if ("HCASE".equals(codeString)) 102 return V3ActClass.HCASE; 103 if ("OUTBR".equals(codeString)) 104 return V3ActClass.OUTBR; 105 if ("CONS".equals(codeString)) 106 return V3ActClass.CONS; 107 if ("CONTREG".equals(codeString)) 108 return V3ActClass.CONTREG; 109 if ("CTTEVENT".equals(codeString)) 110 return V3ActClass.CTTEVENT; 111 if ("DISPACT".equals(codeString)) 112 return V3ActClass.DISPACT; 113 if ("EXPOS".equals(codeString)) 114 return V3ActClass.EXPOS; 115 if ("AEXPOS".equals(codeString)) 116 return V3ActClass.AEXPOS; 117 if ("TEXPOS".equals(codeString)) 118 return V3ActClass.TEXPOS; 119 if ("INC".equals(codeString)) 120 return V3ActClass.INC; 121 if ("INFRM".equals(codeString)) 122 return V3ActClass.INFRM; 123 if ("INVE".equals(codeString)) 124 return V3ActClass.INVE; 125 if ("LIST".equals(codeString)) 126 return V3ActClass.LIST; 127 if ("MPROT".equals(codeString)) 128 return V3ActClass.MPROT; 129 if ("OBS".equals(codeString)) 130 return V3ActClass.OBS; 131 if ("_ActClassROI".equals(codeString)) 132 return V3ActClass._ACTCLASSROI; 133 if ("ROIBND".equals(codeString)) 134 return V3ActClass.ROIBND; 135 if ("ROIOVL".equals(codeString)) 136 return V3ActClass.ROIOVL; 137 if ("_SubjectPhysicalPosition".equals(codeString)) 138 return V3ActClass._SUBJECTPHYSICALPOSITION; 139 if ("_SubjectBodyPosition".equals(codeString)) 140 return V3ActClass._SUBJECTBODYPOSITION; 141 if ("LLD".equals(codeString)) 142 return V3ActClass.LLD; 143 if ("PRN".equals(codeString)) 144 return V3ActClass.PRN; 145 if ("RLD".equals(codeString)) 146 return V3ActClass.RLD; 147 if ("SFWL".equals(codeString)) 148 return V3ActClass.SFWL; 149 if ("SIT".equals(codeString)) 150 return V3ActClass.SIT; 151 if ("STN".equals(codeString)) 152 return V3ActClass.STN; 153 if ("SUP".equals(codeString)) 154 return V3ActClass.SUP; 155 if ("RTRD".equals(codeString)) 156 return V3ActClass.RTRD; 157 if ("TRD".equals(codeString)) 158 return V3ActClass.TRD; 159 if ("ALRT".equals(codeString)) 160 return V3ActClass.ALRT; 161 if ("BATTERY".equals(codeString)) 162 return V3ActClass.BATTERY; 163 if ("CLNTRL".equals(codeString)) 164 return V3ActClass.CLNTRL; 165 if ("CNOD".equals(codeString)) 166 return V3ActClass.CNOD; 167 if ("COND".equals(codeString)) 168 return V3ActClass.COND; 169 if ("CASE".equals(codeString)) 170 return V3ActClass.CASE; 171 if ("OUTB".equals(codeString)) 172 return V3ActClass.OUTB; 173 if ("DGIMG".equals(codeString)) 174 return V3ActClass.DGIMG; 175 if ("GEN".equals(codeString)) 176 return V3ActClass.GEN; 177 if ("DETPOL".equals(codeString)) 178 return V3ActClass.DETPOL; 179 if ("EXP".equals(codeString)) 180 return V3ActClass.EXP; 181 if ("LOC".equals(codeString)) 182 return V3ActClass.LOC; 183 if ("PHN".equals(codeString)) 184 return V3ActClass.PHN; 185 if ("POL".equals(codeString)) 186 return V3ActClass.POL; 187 if ("SEQ".equals(codeString)) 188 return V3ActClass.SEQ; 189 if ("SEQVAR".equals(codeString)) 190 return V3ActClass.SEQVAR; 191 if ("INVSTG".equals(codeString)) 192 return V3ActClass.INVSTG; 193 if ("OBSSER".equals(codeString)) 194 return V3ActClass.OBSSER; 195 if ("OBSCOR".equals(codeString)) 196 return V3ActClass.OBSCOR; 197 if ("POS".equals(codeString)) 198 return V3ActClass.POS; 199 if ("POSACC".equals(codeString)) 200 return V3ActClass.POSACC; 201 if ("POSCOORD".equals(codeString)) 202 return V3ActClass.POSCOORD; 203 if ("SPCOBS".equals(codeString)) 204 return V3ActClass.SPCOBS; 205 if ("VERIF".equals(codeString)) 206 return V3ActClass.VERIF; 207 if ("PCPR".equals(codeString)) 208 return V3ActClass.PCPR; 209 if ("ENC".equals(codeString)) 210 return V3ActClass.ENC; 211 if ("POLICY".equals(codeString)) 212 return V3ActClass.POLICY; 213 if ("JURISPOL".equals(codeString)) 214 return V3ActClass.JURISPOL; 215 if ("ORGPOL".equals(codeString)) 216 return V3ActClass.ORGPOL; 217 if ("SCOPOL".equals(codeString)) 218 return V3ActClass.SCOPOL; 219 if ("STDPOL".equals(codeString)) 220 return V3ActClass.STDPOL; 221 if ("PROC".equals(codeString)) 222 return V3ActClass.PROC; 223 if ("SBADM".equals(codeString)) 224 return V3ActClass.SBADM; 225 if ("SBEXT".equals(codeString)) 226 return V3ActClass.SBEXT; 227 if ("SPECCOLLECT".equals(codeString)) 228 return V3ActClass.SPECCOLLECT; 229 if ("REG".equals(codeString)) 230 return V3ActClass.REG; 231 if ("REV".equals(codeString)) 232 return V3ActClass.REV; 233 if ("SPCTRT".equals(codeString)) 234 return V3ActClass.SPCTRT; 235 if ("SPLY".equals(codeString)) 236 return V3ActClass.SPLY; 237 if ("DIET".equals(codeString)) 238 return V3ActClass.DIET; 239 if ("STORE".equals(codeString)) 240 return V3ActClass.STORE; 241 if ("SUBST".equals(codeString)) 242 return V3ActClass.SUBST; 243 if ("TRFR".equals(codeString)) 244 return V3ActClass.TRFR; 245 if ("TRNS".equals(codeString)) 246 return V3ActClass.TRNS; 247 if ("XACT".equals(codeString)) 248 return V3ActClass.XACT; 249 if ("_ActClassContainer".equals(codeString)) 250 return V3ActClass._ACTCLASSCONTAINER; 251 if ("ENTRY".equals(codeString)) 252 return V3ActClass.ENTRY; 253 if ("ORGANIZER".equals(codeString)) 254 return V3ActClass.ORGANIZER; 255 if ("DOCCNTNT".equals(codeString)) 256 return V3ActClass.DOCCNTNT; 257 if ("DOCLIST".equals(codeString)) 258 return V3ActClass.DOCLIST; 259 if ("DOCLSTITM".equals(codeString)) 260 return V3ActClass.DOCLSTITM; 261 if ("DOCPARA".equals(codeString)) 262 return V3ActClass.DOCPARA; 263 if ("DOCTBL".equals(codeString)) 264 return V3ActClass.DOCTBL; 265 if ("LINKHTML".equals(codeString)) 266 return V3ActClass.LINKHTML; 267 if ("LOCALATTR".equals(codeString)) 268 return V3ActClass.LOCALATTR; 269 if ("LOCALMRKP".equals(codeString)) 270 return V3ActClass.LOCALMRKP; 271 if ("ordered".equals(codeString)) 272 return V3ActClass.ORDERED; 273 if ("REFR".equals(codeString)) 274 return V3ActClass.REFR; 275 if ("TBLCOL".equals(codeString)) 276 return V3ActClass.TBLCOL; 277 if ("TBLCOLGP".equals(codeString)) 278 return V3ActClass.TBLCOLGP; 279 if ("TBLDATA".equals(codeString)) 280 return V3ActClass.TBLDATA; 281 if ("TBLHDR".equals(codeString)) 282 return V3ActClass.TBLHDR; 283 if ("TBLROW".equals(codeString)) 284 return V3ActClass.TBLROW; 285 if ("tbody".equals(codeString)) 286 return V3ActClass.TBODY; 287 if ("tfoot".equals(codeString)) 288 return V3ActClass.TFOOT; 289 if ("thead".equals(codeString)) 290 return V3ActClass.THEAD; 291 if ("unordered".equals(codeString)) 292 return V3ActClass.UNORDERED; 293 throw new IllegalArgumentException("Unknown V3ActClass code '"+codeString+"'"); 294 } 295 296 public String toCode(V3ActClass code) { 297 if (code == V3ActClass.ACT) 298 return "ACT"; 299 if (code == V3ActClass._ACTCLASSRECORDORGANIZER) 300 return "_ActClassRecordOrganizer"; 301 if (code == V3ActClass.COMPOSITION) 302 return "COMPOSITION"; 303 if (code == V3ActClass.DOC) 304 return "DOC"; 305 if (code == V3ActClass.DOCCLIN) 306 return "DOCCLIN"; 307 if (code == V3ActClass.CDALVLONE) 308 return "CDALVLONE"; 309 if (code == V3ActClass.CONTAINER) 310 return "CONTAINER"; 311 if (code == V3ActClass.CATEGORY) 312 return "CATEGORY"; 313 if (code == V3ActClass.DOCBODY) 314 return "DOCBODY"; 315 if (code == V3ActClass.DOCSECT) 316 return "DOCSECT"; 317 if (code == V3ActClass.TOPIC) 318 return "TOPIC"; 319 if (code == V3ActClass.EXTRACT) 320 return "EXTRACT"; 321 if (code == V3ActClass.EHR) 322 return "EHR"; 323 if (code == V3ActClass.FOLDER) 324 return "FOLDER"; 325 if (code == V3ActClass.GROUPER) 326 return "GROUPER"; 327 if (code == V3ActClass.CLUSTER) 328 return "CLUSTER"; 329 if (code == V3ActClass.ACCM) 330 return "ACCM"; 331 if (code == V3ActClass.ACCT) 332 return "ACCT"; 333 if (code == V3ActClass.ACSN) 334 return "ACSN"; 335 if (code == V3ActClass.ADJUD) 336 return "ADJUD"; 337 if (code == V3ActClass.CACT) 338 return "CACT"; 339 if (code == V3ActClass.ACTN) 340 return "ACTN"; 341 if (code == V3ActClass.INFO) 342 return "INFO"; 343 if (code == V3ActClass.STC) 344 return "STC"; 345 if (code == V3ActClass.CNTRCT) 346 return "CNTRCT"; 347 if (code == V3ActClass.FCNTRCT) 348 return "FCNTRCT"; 349 if (code == V3ActClass.COV) 350 return "COV"; 351 if (code == V3ActClass.CONC) 352 return "CONC"; 353 if (code == V3ActClass.HCASE) 354 return "HCASE"; 355 if (code == V3ActClass.OUTBR) 356 return "OUTBR"; 357 if (code == V3ActClass.CONS) 358 return "CONS"; 359 if (code == V3ActClass.CONTREG) 360 return "CONTREG"; 361 if (code == V3ActClass.CTTEVENT) 362 return "CTTEVENT"; 363 if (code == V3ActClass.DISPACT) 364 return "DISPACT"; 365 if (code == V3ActClass.EXPOS) 366 return "EXPOS"; 367 if (code == V3ActClass.AEXPOS) 368 return "AEXPOS"; 369 if (code == V3ActClass.TEXPOS) 370 return "TEXPOS"; 371 if (code == V3ActClass.INC) 372 return "INC"; 373 if (code == V3ActClass.INFRM) 374 return "INFRM"; 375 if (code == V3ActClass.INVE) 376 return "INVE"; 377 if (code == V3ActClass.LIST) 378 return "LIST"; 379 if (code == V3ActClass.MPROT) 380 return "MPROT"; 381 if (code == V3ActClass.OBS) 382 return "OBS"; 383 if (code == V3ActClass._ACTCLASSROI) 384 return "_ActClassROI"; 385 if (code == V3ActClass.ROIBND) 386 return "ROIBND"; 387 if (code == V3ActClass.ROIOVL) 388 return "ROIOVL"; 389 if (code == V3ActClass._SUBJECTPHYSICALPOSITION) 390 return "_SubjectPhysicalPosition"; 391 if (code == V3ActClass._SUBJECTBODYPOSITION) 392 return "_SubjectBodyPosition"; 393 if (code == V3ActClass.LLD) 394 return "LLD"; 395 if (code == V3ActClass.PRN) 396 return "PRN"; 397 if (code == V3ActClass.RLD) 398 return "RLD"; 399 if (code == V3ActClass.SFWL) 400 return "SFWL"; 401 if (code == V3ActClass.SIT) 402 return "SIT"; 403 if (code == V3ActClass.STN) 404 return "STN"; 405 if (code == V3ActClass.SUP) 406 return "SUP"; 407 if (code == V3ActClass.RTRD) 408 return "RTRD"; 409 if (code == V3ActClass.TRD) 410 return "TRD"; 411 if (code == V3ActClass.ALRT) 412 return "ALRT"; 413 if (code == V3ActClass.BATTERY) 414 return "BATTERY"; 415 if (code == V3ActClass.CLNTRL) 416 return "CLNTRL"; 417 if (code == V3ActClass.CNOD) 418 return "CNOD"; 419 if (code == V3ActClass.COND) 420 return "COND"; 421 if (code == V3ActClass.CASE) 422 return "CASE"; 423 if (code == V3ActClass.OUTB) 424 return "OUTB"; 425 if (code == V3ActClass.DGIMG) 426 return "DGIMG"; 427 if (code == V3ActClass.GEN) 428 return "GEN"; 429 if (code == V3ActClass.DETPOL) 430 return "DETPOL"; 431 if (code == V3ActClass.EXP) 432 return "EXP"; 433 if (code == V3ActClass.LOC) 434 return "LOC"; 435 if (code == V3ActClass.PHN) 436 return "PHN"; 437 if (code == V3ActClass.POL) 438 return "POL"; 439 if (code == V3ActClass.SEQ) 440 return "SEQ"; 441 if (code == V3ActClass.SEQVAR) 442 return "SEQVAR"; 443 if (code == V3ActClass.INVSTG) 444 return "INVSTG"; 445 if (code == V3ActClass.OBSSER) 446 return "OBSSER"; 447 if (code == V3ActClass.OBSCOR) 448 return "OBSCOR"; 449 if (code == V3ActClass.POS) 450 return "POS"; 451 if (code == V3ActClass.POSACC) 452 return "POSACC"; 453 if (code == V3ActClass.POSCOORD) 454 return "POSCOORD"; 455 if (code == V3ActClass.SPCOBS) 456 return "SPCOBS"; 457 if (code == V3ActClass.VERIF) 458 return "VERIF"; 459 if (code == V3ActClass.PCPR) 460 return "PCPR"; 461 if (code == V3ActClass.ENC) 462 return "ENC"; 463 if (code == V3ActClass.POLICY) 464 return "POLICY"; 465 if (code == V3ActClass.JURISPOL) 466 return "JURISPOL"; 467 if (code == V3ActClass.ORGPOL) 468 return "ORGPOL"; 469 if (code == V3ActClass.SCOPOL) 470 return "SCOPOL"; 471 if (code == V3ActClass.STDPOL) 472 return "STDPOL"; 473 if (code == V3ActClass.PROC) 474 return "PROC"; 475 if (code == V3ActClass.SBADM) 476 return "SBADM"; 477 if (code == V3ActClass.SBEXT) 478 return "SBEXT"; 479 if (code == V3ActClass.SPECCOLLECT) 480 return "SPECCOLLECT"; 481 if (code == V3ActClass.REG) 482 return "REG"; 483 if (code == V3ActClass.REV) 484 return "REV"; 485 if (code == V3ActClass.SPCTRT) 486 return "SPCTRT"; 487 if (code == V3ActClass.SPLY) 488 return "SPLY"; 489 if (code == V3ActClass.DIET) 490 return "DIET"; 491 if (code == V3ActClass.STORE) 492 return "STORE"; 493 if (code == V3ActClass.SUBST) 494 return "SUBST"; 495 if (code == V3ActClass.TRFR) 496 return "TRFR"; 497 if (code == V3ActClass.TRNS) 498 return "TRNS"; 499 if (code == V3ActClass.XACT) 500 return "XACT"; 501 if (code == V3ActClass._ACTCLASSCONTAINER) 502 return "_ActClassContainer"; 503 if (code == V3ActClass.ENTRY) 504 return "ENTRY"; 505 if (code == V3ActClass.ORGANIZER) 506 return "ORGANIZER"; 507 if (code == V3ActClass.DOCCNTNT) 508 return "DOCCNTNT"; 509 if (code == V3ActClass.DOCLIST) 510 return "DOCLIST"; 511 if (code == V3ActClass.DOCLSTITM) 512 return "DOCLSTITM"; 513 if (code == V3ActClass.DOCPARA) 514 return "DOCPARA"; 515 if (code == V3ActClass.DOCTBL) 516 return "DOCTBL"; 517 if (code == V3ActClass.LINKHTML) 518 return "LINKHTML"; 519 if (code == V3ActClass.LOCALATTR) 520 return "LOCALATTR"; 521 if (code == V3ActClass.LOCALMRKP) 522 return "LOCALMRKP"; 523 if (code == V3ActClass.ORDERED) 524 return "ordered"; 525 if (code == V3ActClass.REFR) 526 return "REFR"; 527 if (code == V3ActClass.TBLCOL) 528 return "TBLCOL"; 529 if (code == V3ActClass.TBLCOLGP) 530 return "TBLCOLGP"; 531 if (code == V3ActClass.TBLDATA) 532 return "TBLDATA"; 533 if (code == V3ActClass.TBLHDR) 534 return "TBLHDR"; 535 if (code == V3ActClass.TBLROW) 536 return "TBLROW"; 537 if (code == V3ActClass.TBODY) 538 return "tbody"; 539 if (code == V3ActClass.TFOOT) 540 return "tfoot"; 541 if (code == V3ActClass.THEAD) 542 return "thead"; 543 if (code == V3ActClass.UNORDERED) 544 return "unordered"; 545 return "?"; 546 } 547 548 public String toSystem(V3ActClass code) { 549 return code.getSystem(); 550 } 551 552}