001package org.hl7.fhir.r5.model; 002 003/* 004 * #%L 005 * org.hl7.fhir.r5 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 Copyright (c) 2011+, HL7, Inc. 025 All rights reserved. 026 027 Redistribution and use in source and binary forms, with or without modification, 028 are permitted provided that the following conditions are met: 029 030 * Redistributions of source code must retain the above copyright notice, this 031 list of conditions and the following disclaimer. 032 * Redistributions in binary form must reproduce the above copyright notice, 033 this list of conditions and the following disclaimer in the documentation 034 and/or other materials provided with the distribution. 035 * Neither the name of HL7 nor the names of its contributors may be used to 036 endorse or promote products derived from this software without specific 037 prior written permission. 038 039 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 040 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 041 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 042 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 043 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 044 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 045 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 046 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 047 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 048 POSSIBILITY OF SUCH DAMAGE. 049 050*/ 051 052// Generated on Thu, Oct 17, 2019 19:56+1100 for FHIR v4.1.0 053 054 055import org.hl7.fhir.instance.model.api.*; 056import org.hl7.fhir.exceptions.FHIRException; 057 058public class Enumerations { 059 060// In here: 061// AbstractType: A list of the base types defined by this version of the FHIR specification - types that are defined, but for which only specializations actually are created. 062// AdministrativeGender: The gender of a person used for administrative purposes. 063// AgeUnits: A valueSet of UCUM codes for representing age value units. 064// BindingStrength: Indication of the degree of conformance expectations associated with a binding. 065// ConceptMapEquivalence: The degree of equivalence between concepts. 066// ConceptMapRelationship: The relationship between concepts. 067// DataAbsentReason: Used to specify why the normally expected content of the data element is missing. 068// DataType: A version specific list of the data types defined by the FHIR specification for use as an element type (any of the FHIR defined data types). 069// DefinitionResourceType: A list of all the definition resource types defined in this version of the FHIR specification. 070// DocumentReferenceStatus: The status of the document reference. 071// EventResourceType: A list of all the event resource types defined in this version of the FHIR specification. 072// FHIRAllTypes: A list of all the concrete types defined in this version of the FHIR specification - Abstract Types, Data Types and Resource Types. 073// FHIRDefinedType: A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types. 074// FHIRVersion: All published FHIR Versions. 075// KnowledgeResourceType: A list of all the knowledge resource types defined in this version of the FHIR specification. 076// MessageEvent: One of the message events defined as part of this version of FHIR. 077// NoteType: The presentation types of notes. 078// PublicationStatus: The lifecycle status of an artifact. 079// RemittanceOutcome: The outcome of the processing. 080// RequestResourceType: A list of all the request resource types defined in this version of the FHIR specification. 081// ResourceType: One of the resource types defined as part of this version of FHIR. 082// SearchParamType: Data types allowed to be used for search parameters. 083// SpecialValues: A set of generally useful codes defined so they can be included in value sets. 084 085 086 public enum AbstractType { 087 /** 088 * A place holder that means any kind of data type 089 */ 090 TYPE, 091 /** 092 * A place holder that means any kind of resource 093 */ 094 ANY, 095 /** 096 * added to help the parsers 097 */ 098 NULL; 099 public static AbstractType fromCode(String codeString) throws FHIRException { 100 if (codeString == null || "".equals(codeString)) 101 return null; 102 if ("Type".equals(codeString)) 103 return TYPE; 104 if ("Any".equals(codeString)) 105 return ANY; 106 throw new FHIRException("Unknown AbstractType code '"+codeString+"'"); 107 } 108 public String toCode() { 109 switch (this) { 110 case TYPE: return "Type"; 111 case ANY: return "Any"; 112 default: return "?"; 113 } 114 } 115 public String getSystem() { 116 switch (this) { 117 case TYPE: return "http://hl7.org/fhir/abstract-types"; 118 case ANY: return "http://hl7.org/fhir/abstract-types"; 119 default: return "?"; 120 } 121 } 122 public String getDefinition() { 123 switch (this) { 124 case TYPE: return "A place holder that means any kind of data type"; 125 case ANY: return "A place holder that means any kind of resource"; 126 default: return "?"; 127 } 128 } 129 public String getDisplay() { 130 switch (this) { 131 case TYPE: return "Type"; 132 case ANY: return "Any"; 133 default: return "?"; 134 } 135 } 136 } 137 138 public static class AbstractTypeEnumFactory implements EnumFactory<AbstractType> { 139 public AbstractType fromCode(String codeString) throws IllegalArgumentException { 140 if (codeString == null || "".equals(codeString)) 141 if (codeString == null || "".equals(codeString)) 142 return null; 143 if ("Type".equals(codeString)) 144 return AbstractType.TYPE; 145 if ("Any".equals(codeString)) 146 return AbstractType.ANY; 147 throw new IllegalArgumentException("Unknown AbstractType code '"+codeString+"'"); 148 } 149 public Enumeration<AbstractType> fromType(Base code) throws FHIRException { 150 if (code == null) 151 return null; 152 if (code.isEmpty()) 153 return new Enumeration<AbstractType>(this); 154 String codeString = ((PrimitiveType) code).asStringValue(); 155 if (codeString == null || "".equals(codeString)) 156 return null; 157 if ("Type".equals(codeString)) 158 return new Enumeration<AbstractType>(this, AbstractType.TYPE); 159 if ("Any".equals(codeString)) 160 return new Enumeration<AbstractType>(this, AbstractType.ANY); 161 throw new FHIRException("Unknown AbstractType code '"+codeString+"'"); 162 } 163 public String toCode(AbstractType code) { 164 if (code == AbstractType.TYPE) 165 return "Type"; 166 if (code == AbstractType.ANY) 167 return "Any"; 168 return "?"; 169 } 170 public String toSystem(AbstractType code) { 171 return code.getSystem(); 172 } 173 } 174 175 public enum AdministrativeGender { 176 /** 177 * Male. 178 */ 179 MALE, 180 /** 181 * Female. 182 */ 183 FEMALE, 184 /** 185 * Other. 186 */ 187 OTHER, 188 /** 189 * Unknown. 190 */ 191 UNKNOWN, 192 /** 193 * added to help the parsers 194 */ 195 NULL; 196 public static AdministrativeGender fromCode(String codeString) throws FHIRException { 197 if (codeString == null || "".equals(codeString)) 198 return null; 199 if ("male".equals(codeString)) 200 return MALE; 201 if ("female".equals(codeString)) 202 return FEMALE; 203 if ("other".equals(codeString)) 204 return OTHER; 205 if ("unknown".equals(codeString)) 206 return UNKNOWN; 207 throw new FHIRException("Unknown AdministrativeGender code '"+codeString+"'"); 208 } 209 public String toCode() { 210 switch (this) { 211 case MALE: return "male"; 212 case FEMALE: return "female"; 213 case OTHER: return "other"; 214 case UNKNOWN: return "unknown"; 215 default: return "?"; 216 } 217 } 218 public String getSystem() { 219 switch (this) { 220 case MALE: return "http://hl7.org/fhir/administrative-gender"; 221 case FEMALE: return "http://hl7.org/fhir/administrative-gender"; 222 case OTHER: return "http://hl7.org/fhir/administrative-gender"; 223 case UNKNOWN: return "http://hl7.org/fhir/administrative-gender"; 224 default: return "?"; 225 } 226 } 227 public String getDefinition() { 228 switch (this) { 229 case MALE: return "Male."; 230 case FEMALE: return "Female."; 231 case OTHER: return "Other."; 232 case UNKNOWN: return "Unknown."; 233 default: return "?"; 234 } 235 } 236 public String getDisplay() { 237 switch (this) { 238 case MALE: return "Male"; 239 case FEMALE: return "Female"; 240 case OTHER: return "Other"; 241 case UNKNOWN: return "Unknown"; 242 default: return "?"; 243 } 244 } 245 } 246 247 public static class AdministrativeGenderEnumFactory implements EnumFactory<AdministrativeGender> { 248 public AdministrativeGender fromCode(String codeString) throws IllegalArgumentException { 249 if (codeString == null || "".equals(codeString)) 250 if (codeString == null || "".equals(codeString)) 251 return null; 252 if ("male".equals(codeString)) 253 return AdministrativeGender.MALE; 254 if ("female".equals(codeString)) 255 return AdministrativeGender.FEMALE; 256 if ("other".equals(codeString)) 257 return AdministrativeGender.OTHER; 258 if ("unknown".equals(codeString)) 259 return AdministrativeGender.UNKNOWN; 260 throw new IllegalArgumentException("Unknown AdministrativeGender code '"+codeString+"'"); 261 } 262 public Enumeration<AdministrativeGender> fromType(Base code) throws FHIRException { 263 if (code == null) 264 return null; 265 if (code.isEmpty()) 266 return new Enumeration<AdministrativeGender>(this); 267 String codeString = ((PrimitiveType) code).asStringValue(); 268 if (codeString == null || "".equals(codeString)) 269 return null; 270 if ("male".equals(codeString)) 271 return new Enumeration<AdministrativeGender>(this, AdministrativeGender.MALE); 272 if ("female".equals(codeString)) 273 return new Enumeration<AdministrativeGender>(this, AdministrativeGender.FEMALE); 274 if ("other".equals(codeString)) 275 return new Enumeration<AdministrativeGender>(this, AdministrativeGender.OTHER); 276 if ("unknown".equals(codeString)) 277 return new Enumeration<AdministrativeGender>(this, AdministrativeGender.UNKNOWN); 278 throw new FHIRException("Unknown AdministrativeGender code '"+codeString+"'"); 279 } 280 public String toCode(AdministrativeGender code) { 281 if (code == AdministrativeGender.MALE) 282 return "male"; 283 if (code == AdministrativeGender.FEMALE) 284 return "female"; 285 if (code == AdministrativeGender.OTHER) 286 return "other"; 287 if (code == AdministrativeGender.UNKNOWN) 288 return "unknown"; 289 return "?"; 290 } 291 public String toSystem(AdministrativeGender code) { 292 return code.getSystem(); 293 } 294 } 295 296 public enum AgeUnits { 297 /** 298 * null 299 */ 300 MIN, 301 /** 302 * null 303 */ 304 H, 305 /** 306 * null 307 */ 308 D, 309 /** 310 * null 311 */ 312 WK, 313 /** 314 * null 315 */ 316 MO, 317 /** 318 * null 319 */ 320 A, 321 /** 322 * added to help the parsers 323 */ 324 NULL; 325 public static AgeUnits fromCode(String codeString) throws FHIRException { 326 if (codeString == null || "".equals(codeString)) 327 return null; 328 if ("min".equals(codeString)) 329 return MIN; 330 if ("h".equals(codeString)) 331 return H; 332 if ("d".equals(codeString)) 333 return D; 334 if ("wk".equals(codeString)) 335 return WK; 336 if ("mo".equals(codeString)) 337 return MO; 338 if ("a".equals(codeString)) 339 return A; 340 throw new FHIRException("Unknown AgeUnits code '"+codeString+"'"); 341 } 342 public String toCode() { 343 switch (this) { 344 case MIN: return "min"; 345 case H: return "h"; 346 case D: return "d"; 347 case WK: return "wk"; 348 case MO: return "mo"; 349 case A: return "a"; 350 default: return "?"; 351 } 352 } 353 public String getSystem() { 354 switch (this) { 355 case MIN: return "http://unitsofmeasure.org"; 356 case H: return "http://unitsofmeasure.org"; 357 case D: return "http://unitsofmeasure.org"; 358 case WK: return "http://unitsofmeasure.org"; 359 case MO: return "http://unitsofmeasure.org"; 360 case A: return "http://unitsofmeasure.org"; 361 default: return "?"; 362 } 363 } 364 public String getDefinition() { 365 switch (this) { 366 case MIN: return ""; 367 case H: return ""; 368 case D: return ""; 369 case WK: return ""; 370 case MO: return ""; 371 case A: return ""; 372 default: return "?"; 373 } 374 } 375 public String getDisplay() { 376 switch (this) { 377 case MIN: return "Minute"; 378 case H: return "Hour"; 379 case D: return "Day"; 380 case WK: return "Week"; 381 case MO: return "Month"; 382 case A: return "Year"; 383 default: return "?"; 384 } 385 } 386 } 387 388 public static class AgeUnitsEnumFactory implements EnumFactory<AgeUnits> { 389 public AgeUnits fromCode(String codeString) throws IllegalArgumentException { 390 if (codeString == null || "".equals(codeString)) 391 if (codeString == null || "".equals(codeString)) 392 return null; 393 if ("min".equals(codeString)) 394 return AgeUnits.MIN; 395 if ("h".equals(codeString)) 396 return AgeUnits.H; 397 if ("d".equals(codeString)) 398 return AgeUnits.D; 399 if ("wk".equals(codeString)) 400 return AgeUnits.WK; 401 if ("mo".equals(codeString)) 402 return AgeUnits.MO; 403 if ("a".equals(codeString)) 404 return AgeUnits.A; 405 throw new IllegalArgumentException("Unknown AgeUnits code '"+codeString+"'"); 406 } 407 public Enumeration<AgeUnits> fromType(Base code) throws FHIRException { 408 if (code == null) 409 return null; 410 if (code.isEmpty()) 411 return new Enumeration<AgeUnits>(this); 412 String codeString = ((PrimitiveType) code).asStringValue(); 413 if (codeString == null || "".equals(codeString)) 414 return null; 415 if ("min".equals(codeString)) 416 return new Enumeration<AgeUnits>(this, AgeUnits.MIN); 417 if ("h".equals(codeString)) 418 return new Enumeration<AgeUnits>(this, AgeUnits.H); 419 if ("d".equals(codeString)) 420 return new Enumeration<AgeUnits>(this, AgeUnits.D); 421 if ("wk".equals(codeString)) 422 return new Enumeration<AgeUnits>(this, AgeUnits.WK); 423 if ("mo".equals(codeString)) 424 return new Enumeration<AgeUnits>(this, AgeUnits.MO); 425 if ("a".equals(codeString)) 426 return new Enumeration<AgeUnits>(this, AgeUnits.A); 427 throw new FHIRException("Unknown AgeUnits code '"+codeString+"'"); 428 } 429 public String toCode(AgeUnits code) { 430 if (code == AgeUnits.MIN) 431 return "min"; 432 if (code == AgeUnits.H) 433 return "h"; 434 if (code == AgeUnits.D) 435 return "d"; 436 if (code == AgeUnits.WK) 437 return "wk"; 438 if (code == AgeUnits.MO) 439 return "mo"; 440 if (code == AgeUnits.A) 441 return "a"; 442 return "?"; 443 } 444 public String toSystem(AgeUnits code) { 445 return code.getSystem(); 446 } 447 } 448 449 public enum BindingStrength { 450 /** 451 * To be conformant, the concept in this element SHALL be from the specified value set. 452 */ 453 REQUIRED, 454 /** 455 * To be conformant, the concept in this element SHALL be from the specified value set if any of the codes within the value set can apply to the concept being communicated. If the value set does not cover the concept (based on human review), alternate codings (or, data type allowing, text) may be included instead. 456 */ 457 EXTENSIBLE, 458 /** 459 * Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant. 460 */ 461 PREFERRED, 462 /** 463 * Instances are not expected or even encouraged to draw from the specified value set. The value set merely provides examples of the types of concepts intended to be included. 464 */ 465 EXAMPLE, 466 /** 467 * added to help the parsers 468 */ 469 NULL; 470 public static BindingStrength fromCode(String codeString) throws FHIRException { 471 if (codeString == null || "".equals(codeString)) 472 return null; 473 if ("required".equals(codeString)) 474 return REQUIRED; 475 if ("extensible".equals(codeString)) 476 return EXTENSIBLE; 477 if ("preferred".equals(codeString)) 478 return PREFERRED; 479 if ("example".equals(codeString)) 480 return EXAMPLE; 481 throw new FHIRException("Unknown BindingStrength code '"+codeString+"'"); 482 } 483 public String toCode() { 484 switch (this) { 485 case REQUIRED: return "required"; 486 case EXTENSIBLE: return "extensible"; 487 case PREFERRED: return "preferred"; 488 case EXAMPLE: return "example"; 489 default: return "?"; 490 } 491 } 492 public String getSystem() { 493 switch (this) { 494 case REQUIRED: return "http://hl7.org/fhir/binding-strength"; 495 case EXTENSIBLE: return "http://hl7.org/fhir/binding-strength"; 496 case PREFERRED: return "http://hl7.org/fhir/binding-strength"; 497 case EXAMPLE: return "http://hl7.org/fhir/binding-strength"; 498 default: return "?"; 499 } 500 } 501 public String getDefinition() { 502 switch (this) { 503 case REQUIRED: return "To be conformant, the concept in this element SHALL be from the specified value set."; 504 case EXTENSIBLE: return "To be conformant, the concept in this element SHALL be from the specified value set if any of the codes within the value set can apply to the concept being communicated. If the value set does not cover the concept (based on human review), alternate codings (or, data type allowing, text) may be included instead."; 505 case PREFERRED: return "Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant."; 506 case EXAMPLE: return "Instances are not expected or even encouraged to draw from the specified value set. The value set merely provides examples of the types of concepts intended to be included."; 507 default: return "?"; 508 } 509 } 510 public String getDisplay() { 511 switch (this) { 512 case REQUIRED: return "Required"; 513 case EXTENSIBLE: return "Extensible"; 514 case PREFERRED: return "Preferred"; 515 case EXAMPLE: return "Example"; 516 default: return "?"; 517 } 518 } 519 } 520 521 public static class BindingStrengthEnumFactory implements EnumFactory<BindingStrength> { 522 public BindingStrength fromCode(String codeString) throws IllegalArgumentException { 523 if (codeString == null || "".equals(codeString)) 524 if (codeString == null || "".equals(codeString)) 525 return null; 526 if ("required".equals(codeString)) 527 return BindingStrength.REQUIRED; 528 if ("extensible".equals(codeString)) 529 return BindingStrength.EXTENSIBLE; 530 if ("preferred".equals(codeString)) 531 return BindingStrength.PREFERRED; 532 if ("example".equals(codeString)) 533 return BindingStrength.EXAMPLE; 534 throw new IllegalArgumentException("Unknown BindingStrength code '"+codeString+"'"); 535 } 536 public Enumeration<BindingStrength> fromType(Base code) throws FHIRException { 537 if (code == null) 538 return null; 539 if (code.isEmpty()) 540 return new Enumeration<BindingStrength>(this); 541 String codeString = ((PrimitiveType) code).asStringValue(); 542 if (codeString == null || "".equals(codeString)) 543 return null; 544 if ("required".equals(codeString)) 545 return new Enumeration<BindingStrength>(this, BindingStrength.REQUIRED); 546 if ("extensible".equals(codeString)) 547 return new Enumeration<BindingStrength>(this, BindingStrength.EXTENSIBLE); 548 if ("preferred".equals(codeString)) 549 return new Enumeration<BindingStrength>(this, BindingStrength.PREFERRED); 550 if ("example".equals(codeString)) 551 return new Enumeration<BindingStrength>(this, BindingStrength.EXAMPLE); 552 throw new FHIRException("Unknown BindingStrength code '"+codeString+"'"); 553 } 554 public String toCode(BindingStrength code) { 555 if (code == BindingStrength.REQUIRED) 556 return "required"; 557 if (code == BindingStrength.EXTENSIBLE) 558 return "extensible"; 559 if (code == BindingStrength.PREFERRED) 560 return "preferred"; 561 if (code == BindingStrength.EXAMPLE) 562 return "example"; 563 return "?"; 564 } 565 public String toSystem(BindingStrength code) { 566 return code.getSystem(); 567 } 568 } 569 570 public enum ConceptMapEquivalence { 571 /** 572 * The concepts are related to each other, and have at least some overlap in meaning, but the exact relationship is not known. 573 */ 574 RELATEDTO, 575 /** 576 * The definitions of the concepts mean the same thing (including when structural implications of meaning are considered) (i.e. extensionally identical). 577 */ 578 EQUIVALENT, 579 /** 580 * The definitions of the concepts are exactly the same (i.e. only grammatical differences) and structural implications of meaning are identical or irrelevant (i.e. intentionally identical). 581 */ 582 EQUAL, 583 /** 584 * The target mapping is wider in meaning than the source concept. 585 */ 586 WIDER, 587 /** 588 * The target mapping subsumes the meaning of the source concept (e.g. the source is-a target). 589 */ 590 SUBSUMES, 591 /** 592 * The target mapping is narrower in meaning than the source concept. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when attempting to use these mappings operationally. 593 */ 594 NARROWER, 595 /** 596 * The target mapping specializes the meaning of the source concept (e.g. the target is-a source). 597 */ 598 SPECIALIZES, 599 /** 600 * The target mapping overlaps with the source concept, but both source and target cover additional meaning, or the definitions are imprecise and it is uncertain whether they have the same boundaries to their meaning. The sense in which the mapping is inexact SHALL be described in the comments in this case, and applications should be careful when attempting to use these mappings operationally. 601 */ 602 INEXACT, 603 /** 604 * There is no match for this concept in the target code system. 605 */ 606 UNMATCHED, 607 /** 608 * This is an explicit assertion that there is no mapping between the source and target concept. 609 */ 610 DISJOINT, 611 /** 612 * added to help the parsers 613 */ 614 NULL; 615 public static ConceptMapEquivalence fromCode(String codeString) throws FHIRException { 616 if (codeString == null || "".equals(codeString)) 617 return null; 618 if ("relatedto".equals(codeString)) 619 return RELATEDTO; 620 if ("equivalent".equals(codeString)) 621 return EQUIVALENT; 622 if ("equal".equals(codeString)) 623 return EQUAL; 624 if ("wider".equals(codeString)) 625 return WIDER; 626 if ("subsumes".equals(codeString)) 627 return SUBSUMES; 628 if ("narrower".equals(codeString)) 629 return NARROWER; 630 if ("specializes".equals(codeString)) 631 return SPECIALIZES; 632 if ("inexact".equals(codeString)) 633 return INEXACT; 634 if ("unmatched".equals(codeString)) 635 return UNMATCHED; 636 if ("disjoint".equals(codeString)) 637 return DISJOINT; 638 throw new FHIRException("Unknown ConceptMapEquivalence code '"+codeString+"'"); 639 } 640 public String toCode() { 641 switch (this) { 642 case RELATEDTO: return "relatedto"; 643 case EQUIVALENT: return "equivalent"; 644 case EQUAL: return "equal"; 645 case WIDER: return "wider"; 646 case SUBSUMES: return "subsumes"; 647 case NARROWER: return "narrower"; 648 case SPECIALIZES: return "specializes"; 649 case INEXACT: return "inexact"; 650 case UNMATCHED: return "unmatched"; 651 case DISJOINT: return "disjoint"; 652 default: return "?"; 653 } 654 } 655 public String getSystem() { 656 switch (this) { 657 case RELATEDTO: return "http://hl7.org/fhir/concept-map-equivalence"; 658 case EQUIVALENT: return "http://hl7.org/fhir/concept-map-equivalence"; 659 case EQUAL: return "http://hl7.org/fhir/concept-map-equivalence"; 660 case WIDER: return "http://hl7.org/fhir/concept-map-equivalence"; 661 case SUBSUMES: return "http://hl7.org/fhir/concept-map-equivalence"; 662 case NARROWER: return "http://hl7.org/fhir/concept-map-equivalence"; 663 case SPECIALIZES: return "http://hl7.org/fhir/concept-map-equivalence"; 664 case INEXACT: return "http://hl7.org/fhir/concept-map-equivalence"; 665 case UNMATCHED: return "http://hl7.org/fhir/concept-map-equivalence"; 666 case DISJOINT: return "http://hl7.org/fhir/concept-map-equivalence"; 667 default: return "?"; 668 } 669 } 670 public String getDefinition() { 671 switch (this) { 672 case RELATEDTO: return "The concepts are related to each other, and have at least some overlap in meaning, but the exact relationship is not known."; 673 case EQUIVALENT: return "The definitions of the concepts mean the same thing (including when structural implications of meaning are considered) (i.e. extensionally identical)."; 674 case EQUAL: return "The definitions of the concepts are exactly the same (i.e. only grammatical differences) and structural implications of meaning are identical or irrelevant (i.e. intentionally identical)."; 675 case WIDER: return "The target mapping is wider in meaning than the source concept."; 676 case SUBSUMES: return "The target mapping subsumes the meaning of the source concept (e.g. the source is-a target)."; 677 case NARROWER: return "The target mapping is narrower in meaning than the source concept. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when attempting to use these mappings operationally."; 678 case SPECIALIZES: return "The target mapping specializes the meaning of the source concept (e.g. the target is-a source)."; 679 case INEXACT: return "The target mapping overlaps with the source concept, but both source and target cover additional meaning, or the definitions are imprecise and it is uncertain whether they have the same boundaries to their meaning. The sense in which the mapping is inexact SHALL be described in the comments in this case, and applications should be careful when attempting to use these mappings operationally."; 680 case UNMATCHED: return "There is no match for this concept in the target code system."; 681 case DISJOINT: return "This is an explicit assertion that there is no mapping between the source and target concept."; 682 default: return "?"; 683 } 684 } 685 public String getDisplay() { 686 switch (this) { 687 case RELATEDTO: return "Related To"; 688 case EQUIVALENT: return "Equivalent"; 689 case EQUAL: return "Equal"; 690 case WIDER: return "Wider"; 691 case SUBSUMES: return "Subsumes"; 692 case NARROWER: return "Narrower"; 693 case SPECIALIZES: return "Specializes"; 694 case INEXACT: return "Inexact"; 695 case UNMATCHED: return "Unmatched"; 696 case DISJOINT: return "Disjoint"; 697 default: return "?"; 698 } 699 } 700 } 701 702 public static class ConceptMapEquivalenceEnumFactory implements EnumFactory<ConceptMapEquivalence> { 703 public ConceptMapEquivalence fromCode(String codeString) throws IllegalArgumentException { 704 if (codeString == null || "".equals(codeString)) 705 if (codeString == null || "".equals(codeString)) 706 return null; 707 if ("relatedto".equals(codeString)) 708 return ConceptMapEquivalence.RELATEDTO; 709 if ("equivalent".equals(codeString)) 710 return ConceptMapEquivalence.EQUIVALENT; 711 if ("equal".equals(codeString)) 712 return ConceptMapEquivalence.EQUAL; 713 if ("wider".equals(codeString)) 714 return ConceptMapEquivalence.WIDER; 715 if ("subsumes".equals(codeString)) 716 return ConceptMapEquivalence.SUBSUMES; 717 if ("narrower".equals(codeString)) 718 return ConceptMapEquivalence.NARROWER; 719 if ("specializes".equals(codeString)) 720 return ConceptMapEquivalence.SPECIALIZES; 721 if ("inexact".equals(codeString)) 722 return ConceptMapEquivalence.INEXACT; 723 if ("unmatched".equals(codeString)) 724 return ConceptMapEquivalence.UNMATCHED; 725 if ("disjoint".equals(codeString)) 726 return ConceptMapEquivalence.DISJOINT; 727 throw new IllegalArgumentException("Unknown ConceptMapEquivalence code '"+codeString+"'"); 728 } 729 public Enumeration<ConceptMapEquivalence> fromType(Base code) throws FHIRException { 730 if (code == null) 731 return null; 732 if (code.isEmpty()) 733 return new Enumeration<ConceptMapEquivalence>(this); 734 String codeString = ((PrimitiveType) code).asStringValue(); 735 if (codeString == null || "".equals(codeString)) 736 return null; 737 if ("relatedto".equals(codeString)) 738 return new Enumeration<ConceptMapEquivalence>(this, ConceptMapEquivalence.RELATEDTO); 739 if ("equivalent".equals(codeString)) 740 return new Enumeration<ConceptMapEquivalence>(this, ConceptMapEquivalence.EQUIVALENT); 741 if ("equal".equals(codeString)) 742 return new Enumeration<ConceptMapEquivalence>(this, ConceptMapEquivalence.EQUAL); 743 if ("wider".equals(codeString)) 744 return new Enumeration<ConceptMapEquivalence>(this, ConceptMapEquivalence.WIDER); 745 if ("subsumes".equals(codeString)) 746 return new Enumeration<ConceptMapEquivalence>(this, ConceptMapEquivalence.SUBSUMES); 747 if ("narrower".equals(codeString)) 748 return new Enumeration<ConceptMapEquivalence>(this, ConceptMapEquivalence.NARROWER); 749 if ("specializes".equals(codeString)) 750 return new Enumeration<ConceptMapEquivalence>(this, ConceptMapEquivalence.SPECIALIZES); 751 if ("inexact".equals(codeString)) 752 return new Enumeration<ConceptMapEquivalence>(this, ConceptMapEquivalence.INEXACT); 753 if ("unmatched".equals(codeString)) 754 return new Enumeration<ConceptMapEquivalence>(this, ConceptMapEquivalence.UNMATCHED); 755 if ("disjoint".equals(codeString)) 756 return new Enumeration<ConceptMapEquivalence>(this, ConceptMapEquivalence.DISJOINT); 757 throw new FHIRException("Unknown ConceptMapEquivalence code '"+codeString+"'"); 758 } 759 public String toCode(ConceptMapEquivalence code) { 760 if (code == ConceptMapEquivalence.RELATEDTO) 761 return "relatedto"; 762 if (code == ConceptMapEquivalence.EQUIVALENT) 763 return "equivalent"; 764 if (code == ConceptMapEquivalence.EQUAL) 765 return "equal"; 766 if (code == ConceptMapEquivalence.WIDER) 767 return "wider"; 768 if (code == ConceptMapEquivalence.SUBSUMES) 769 return "subsumes"; 770 if (code == ConceptMapEquivalence.NARROWER) 771 return "narrower"; 772 if (code == ConceptMapEquivalence.SPECIALIZES) 773 return "specializes"; 774 if (code == ConceptMapEquivalence.INEXACT) 775 return "inexact"; 776 if (code == ConceptMapEquivalence.UNMATCHED) 777 return "unmatched"; 778 if (code == ConceptMapEquivalence.DISJOINT) 779 return "disjoint"; 780 return "?"; 781 } 782 public String toSystem(ConceptMapEquivalence code) { 783 return code.getSystem(); 784 } 785 } 786 787 public enum ConceptMapRelationship { 788 /** 789 * The concepts are related to each other, but the exact relationship is not known. 790 */ 791 RELATEDTO, 792 /** 793 * The definitions of the concepts mean the same thing. 794 */ 795 EQUIVALENT, 796 /** 797 * The target concept is broader in meaning than the source concept. 798 */ 799 BROADER, 800 /** 801 * The target concept is narrower in meaning than the source concept. 802 */ 803 NARROWER, 804 /** 805 * This is an explicit assertion that the target concept is not related to the source concept. 806 */ 807 NOTRELATEDTO, 808 /** 809 * added to help the parsers 810 */ 811 NULL; 812 public static ConceptMapRelationship fromCode(String codeString) throws FHIRException { 813 if (codeString == null || "".equals(codeString)) 814 return null; 815 if ("related-to".equals(codeString)) 816 return RELATEDTO; 817 if ("equivalent".equals(codeString)) 818 return EQUIVALENT; 819 if ("broader".equals(codeString)) 820 return BROADER; 821 if ("narrower".equals(codeString)) 822 return NARROWER; 823 if ("not-related-to".equals(codeString)) 824 return NOTRELATEDTO; 825 throw new FHIRException("Unknown ConceptMapRelationship code '"+codeString+"'"); 826 } 827 public String toCode() { 828 switch (this) { 829 case RELATEDTO: return "related-to"; 830 case EQUIVALENT: return "equivalent"; 831 case BROADER: return "broader"; 832 case NARROWER: return "narrower"; 833 case NOTRELATEDTO: return "not-related-to"; 834 default: return "?"; 835 } 836 } 837 public String getSystem() { 838 switch (this) { 839 case RELATEDTO: return "http://hl7.org/fhir/concept-map-relationship"; 840 case EQUIVALENT: return "http://hl7.org/fhir/concept-map-relationship"; 841 case BROADER: return "http://hl7.org/fhir/concept-map-relationship"; 842 case NARROWER: return "http://hl7.org/fhir/concept-map-relationship"; 843 case NOTRELATEDTO: return "http://hl7.org/fhir/concept-map-relationship"; 844 default: return "?"; 845 } 846 } 847 public String getDefinition() { 848 switch (this) { 849 case RELATEDTO: return "The concepts are related to each other, but the exact relationship is not known."; 850 case EQUIVALENT: return "The definitions of the concepts mean the same thing."; 851 case BROADER: return "The target concept is broader in meaning than the source concept."; 852 case NARROWER: return "The target concept is narrower in meaning than the source concept."; 853 case NOTRELATEDTO: return "This is an explicit assertion that the target concept is not related to the source concept."; 854 default: return "?"; 855 } 856 } 857 public String getDisplay() { 858 switch (this) { 859 case RELATEDTO: return "Related To"; 860 case EQUIVALENT: return "Equivalent"; 861 case BROADER: return "Broader"; 862 case NARROWER: return "Narrower"; 863 case NOTRELATEDTO: return "Not Related To"; 864 default: return "?"; 865 } 866 } 867 } 868 869 public static class ConceptMapRelationshipEnumFactory implements EnumFactory<ConceptMapRelationship> { 870 public ConceptMapRelationship fromCode(String codeString) throws IllegalArgumentException { 871 if (codeString == null || "".equals(codeString)) 872 if (codeString == null || "".equals(codeString)) 873 return null; 874 if ("related-to".equals(codeString)) 875 return ConceptMapRelationship.RELATEDTO; 876 if ("equivalent".equals(codeString)) 877 return ConceptMapRelationship.EQUIVALENT; 878 if ("broader".equals(codeString)) 879 return ConceptMapRelationship.BROADER; 880 if ("narrower".equals(codeString)) 881 return ConceptMapRelationship.NARROWER; 882 if ("not-related-to".equals(codeString)) 883 return ConceptMapRelationship.NOTRELATEDTO; 884 throw new IllegalArgumentException("Unknown ConceptMapRelationship code '"+codeString+"'"); 885 } 886 public Enumeration<ConceptMapRelationship> fromType(Base code) throws FHIRException { 887 if (code == null) 888 return null; 889 if (code.isEmpty()) 890 return new Enumeration<ConceptMapRelationship>(this); 891 String codeString = ((PrimitiveType) code).asStringValue(); 892 if (codeString == null || "".equals(codeString)) 893 return null; 894 if ("related-to".equals(codeString)) 895 return new Enumeration<ConceptMapRelationship>(this, ConceptMapRelationship.RELATEDTO); 896 if ("equivalent".equals(codeString)) 897 return new Enumeration<ConceptMapRelationship>(this, ConceptMapRelationship.EQUIVALENT); 898 if ("broader".equals(codeString)) 899 return new Enumeration<ConceptMapRelationship>(this, ConceptMapRelationship.BROADER); 900 if ("narrower".equals(codeString)) 901 return new Enumeration<ConceptMapRelationship>(this, ConceptMapRelationship.NARROWER); 902 if ("not-related-to".equals(codeString)) 903 return new Enumeration<ConceptMapRelationship>(this, ConceptMapRelationship.NOTRELATEDTO); 904 throw new FHIRException("Unknown ConceptMapRelationship code '"+codeString+"'"); 905 } 906 public String toCode(ConceptMapRelationship code) { 907 if (code == ConceptMapRelationship.RELATEDTO) 908 return "related-to"; 909 if (code == ConceptMapRelationship.EQUIVALENT) 910 return "equivalent"; 911 if (code == ConceptMapRelationship.BROADER) 912 return "broader"; 913 if (code == ConceptMapRelationship.NARROWER) 914 return "narrower"; 915 if (code == ConceptMapRelationship.NOTRELATEDTO) 916 return "not-related-to"; 917 return "?"; 918 } 919 public String toSystem(ConceptMapRelationship code) { 920 return code.getSystem(); 921 } 922 } 923 924 public enum DataAbsentReason { 925 /** 926 * The value is expected to exist but is not known. 927 */ 928 UNKNOWN, 929 /** 930 * The source was asked but does not know the value. 931 */ 932 ASKEDUNKNOWN, 933 /** 934 * There is reason to expect (from the workflow) that the value may become known. 935 */ 936 TEMPUNKNOWN, 937 /** 938 * The workflow didn't lead to this value being known. 939 */ 940 NOTASKED, 941 /** 942 * The source was asked but declined to answer. 943 */ 944 ASKEDDECLINED, 945 /** 946 * The information is not available due to security, privacy or related reasons. 947 */ 948 MASKED, 949 /** 950 * There is no proper value for this element (e.g. last menstrual period for a male). 951 */ 952 NOTAPPLICABLE, 953 /** 954 * The source system wasn't capable of supporting this element. 955 */ 956 UNSUPPORTED, 957 /** 958 * The content of the data is represented in the resource narrative. 959 */ 960 ASTEXT, 961 /** 962 * Some system or workflow process error means that the information is not available. 963 */ 964 ERROR, 965 /** 966 * The numeric value is undefined or unrepresentable due to a floating point processing error. 967 */ 968 NOTANUMBER, 969 /** 970 * The numeric value is excessively low and unrepresentable due to a floating point processing error. 971 */ 972 NEGATIVEINFINITY, 973 /** 974 * The numeric value is excessively high and unrepresentable due to a floating point processing error. 975 */ 976 POSITIVEINFINITY, 977 /** 978 * The value is not available because the observation procedure (test, etc.) was not performed. 979 */ 980 NOTPERFORMED, 981 /** 982 * The value is not permitted in this context (e.g. due to profiles, or the base data types). 983 */ 984 NOTPERMITTED, 985 /** 986 * added to help the parsers 987 */ 988 NULL; 989 public static DataAbsentReason fromCode(String codeString) throws FHIRException { 990 if (codeString == null || "".equals(codeString)) 991 return null; 992 if ("unknown".equals(codeString)) 993 return UNKNOWN; 994 if ("asked-unknown".equals(codeString)) 995 return ASKEDUNKNOWN; 996 if ("temp-unknown".equals(codeString)) 997 return TEMPUNKNOWN; 998 if ("not-asked".equals(codeString)) 999 return NOTASKED; 1000 if ("asked-declined".equals(codeString)) 1001 return ASKEDDECLINED; 1002 if ("masked".equals(codeString)) 1003 return MASKED; 1004 if ("not-applicable".equals(codeString)) 1005 return NOTAPPLICABLE; 1006 if ("unsupported".equals(codeString)) 1007 return UNSUPPORTED; 1008 if ("as-text".equals(codeString)) 1009 return ASTEXT; 1010 if ("error".equals(codeString)) 1011 return ERROR; 1012 if ("not-a-number".equals(codeString)) 1013 return NOTANUMBER; 1014 if ("negative-infinity".equals(codeString)) 1015 return NEGATIVEINFINITY; 1016 if ("positive-infinity".equals(codeString)) 1017 return POSITIVEINFINITY; 1018 if ("not-performed".equals(codeString)) 1019 return NOTPERFORMED; 1020 if ("not-permitted".equals(codeString)) 1021 return NOTPERMITTED; 1022 throw new FHIRException("Unknown DataAbsentReason code '"+codeString+"'"); 1023 } 1024 public String toCode() { 1025 switch (this) { 1026 case UNKNOWN: return "unknown"; 1027 case ASKEDUNKNOWN: return "asked-unknown"; 1028 case TEMPUNKNOWN: return "temp-unknown"; 1029 case NOTASKED: return "not-asked"; 1030 case ASKEDDECLINED: return "asked-declined"; 1031 case MASKED: return "masked"; 1032 case NOTAPPLICABLE: return "not-applicable"; 1033 case UNSUPPORTED: return "unsupported"; 1034 case ASTEXT: return "as-text"; 1035 case ERROR: return "error"; 1036 case NOTANUMBER: return "not-a-number"; 1037 case NEGATIVEINFINITY: return "negative-infinity"; 1038 case POSITIVEINFINITY: return "positive-infinity"; 1039 case NOTPERFORMED: return "not-performed"; 1040 case NOTPERMITTED: return "not-permitted"; 1041 default: return "?"; 1042 } 1043 } 1044 public String getSystem() { 1045 switch (this) { 1046 case UNKNOWN: return "http://terminology.hl7.org/CodeSystem/data-absent-reason"; 1047 case ASKEDUNKNOWN: return "http://terminology.hl7.org/CodeSystem/data-absent-reason"; 1048 case TEMPUNKNOWN: return "http://terminology.hl7.org/CodeSystem/data-absent-reason"; 1049 case NOTASKED: return "http://terminology.hl7.org/CodeSystem/data-absent-reason"; 1050 case ASKEDDECLINED: return "http://terminology.hl7.org/CodeSystem/data-absent-reason"; 1051 case MASKED: return "http://terminology.hl7.org/CodeSystem/data-absent-reason"; 1052 case NOTAPPLICABLE: return "http://terminology.hl7.org/CodeSystem/data-absent-reason"; 1053 case UNSUPPORTED: return "http://terminology.hl7.org/CodeSystem/data-absent-reason"; 1054 case ASTEXT: return "http://terminology.hl7.org/CodeSystem/data-absent-reason"; 1055 case ERROR: return "http://terminology.hl7.org/CodeSystem/data-absent-reason"; 1056 case NOTANUMBER: return "http://terminology.hl7.org/CodeSystem/data-absent-reason"; 1057 case NEGATIVEINFINITY: return "http://terminology.hl7.org/CodeSystem/data-absent-reason"; 1058 case POSITIVEINFINITY: return "http://terminology.hl7.org/CodeSystem/data-absent-reason"; 1059 case NOTPERFORMED: return "http://terminology.hl7.org/CodeSystem/data-absent-reason"; 1060 case NOTPERMITTED: return "http://terminology.hl7.org/CodeSystem/data-absent-reason"; 1061 default: return "?"; 1062 } 1063 } 1064 public String getDefinition() { 1065 switch (this) { 1066 case UNKNOWN: return "The value is expected to exist but is not known."; 1067 case ASKEDUNKNOWN: return "The source was asked but does not know the value."; 1068 case TEMPUNKNOWN: return "There is reason to expect (from the workflow) that the value may become known."; 1069 case NOTASKED: return "The workflow didn't lead to this value being known."; 1070 case ASKEDDECLINED: return "The source was asked but declined to answer."; 1071 case MASKED: return "The information is not available due to security, privacy or related reasons."; 1072 case NOTAPPLICABLE: return "There is no proper value for this element (e.g. last menstrual period for a male)."; 1073 case UNSUPPORTED: return "The source system wasn't capable of supporting this element."; 1074 case ASTEXT: return "The content of the data is represented in the resource narrative."; 1075 case ERROR: return "Some system or workflow process error means that the information is not available."; 1076 case NOTANUMBER: return "The numeric value is undefined or unrepresentable due to a floating point processing error."; 1077 case NEGATIVEINFINITY: return "The numeric value is excessively low and unrepresentable due to a floating point processing error."; 1078 case POSITIVEINFINITY: return "The numeric value is excessively high and unrepresentable due to a floating point processing error."; 1079 case NOTPERFORMED: return "The value is not available because the observation procedure (test, etc.) was not performed."; 1080 case NOTPERMITTED: return "The value is not permitted in this context (e.g. due to profiles, or the base data types)."; 1081 default: return "?"; 1082 } 1083 } 1084 public String getDisplay() { 1085 switch (this) { 1086 case UNKNOWN: return "Unknown"; 1087 case ASKEDUNKNOWN: return "Asked But Unknown"; 1088 case TEMPUNKNOWN: return "Temporarily Unknown"; 1089 case NOTASKED: return "Not Asked"; 1090 case ASKEDDECLINED: return "Asked But Declined"; 1091 case MASKED: return "Masked"; 1092 case NOTAPPLICABLE: return "Not Applicable"; 1093 case UNSUPPORTED: return "Unsupported"; 1094 case ASTEXT: return "As Text"; 1095 case ERROR: return "Error"; 1096 case NOTANUMBER: return "Not a Number (NaN)"; 1097 case NEGATIVEINFINITY: return "Negative Infinity (NINF)"; 1098 case POSITIVEINFINITY: return "Positive Infinity (PINF)"; 1099 case NOTPERFORMED: return "Not Performed"; 1100 case NOTPERMITTED: return "Not Permitted"; 1101 default: return "?"; 1102 } 1103 } 1104 } 1105 1106 public static class DataAbsentReasonEnumFactory implements EnumFactory<DataAbsentReason> { 1107 public DataAbsentReason fromCode(String codeString) throws IllegalArgumentException { 1108 if (codeString == null || "".equals(codeString)) 1109 if (codeString == null || "".equals(codeString)) 1110 return null; 1111 if ("unknown".equals(codeString)) 1112 return DataAbsentReason.UNKNOWN; 1113 if ("asked-unknown".equals(codeString)) 1114 return DataAbsentReason.ASKEDUNKNOWN; 1115 if ("temp-unknown".equals(codeString)) 1116 return DataAbsentReason.TEMPUNKNOWN; 1117 if ("not-asked".equals(codeString)) 1118 return DataAbsentReason.NOTASKED; 1119 if ("asked-declined".equals(codeString)) 1120 return DataAbsentReason.ASKEDDECLINED; 1121 if ("masked".equals(codeString)) 1122 return DataAbsentReason.MASKED; 1123 if ("not-applicable".equals(codeString)) 1124 return DataAbsentReason.NOTAPPLICABLE; 1125 if ("unsupported".equals(codeString)) 1126 return DataAbsentReason.UNSUPPORTED; 1127 if ("as-text".equals(codeString)) 1128 return DataAbsentReason.ASTEXT; 1129 if ("error".equals(codeString)) 1130 return DataAbsentReason.ERROR; 1131 if ("not-a-number".equals(codeString)) 1132 return DataAbsentReason.NOTANUMBER; 1133 if ("negative-infinity".equals(codeString)) 1134 return DataAbsentReason.NEGATIVEINFINITY; 1135 if ("positive-infinity".equals(codeString)) 1136 return DataAbsentReason.POSITIVEINFINITY; 1137 if ("not-performed".equals(codeString)) 1138 return DataAbsentReason.NOTPERFORMED; 1139 if ("not-permitted".equals(codeString)) 1140 return DataAbsentReason.NOTPERMITTED; 1141 throw new IllegalArgumentException("Unknown DataAbsentReason code '"+codeString+"'"); 1142 } 1143 public Enumeration<DataAbsentReason> fromType(Base code) throws FHIRException { 1144 if (code == null) 1145 return null; 1146 if (code.isEmpty()) 1147 return new Enumeration<DataAbsentReason>(this); 1148 String codeString = ((PrimitiveType) code).asStringValue(); 1149 if (codeString == null || "".equals(codeString)) 1150 return null; 1151 if ("unknown".equals(codeString)) 1152 return new Enumeration<DataAbsentReason>(this, DataAbsentReason.UNKNOWN); 1153 if ("asked-unknown".equals(codeString)) 1154 return new Enumeration<DataAbsentReason>(this, DataAbsentReason.ASKEDUNKNOWN); 1155 if ("temp-unknown".equals(codeString)) 1156 return new Enumeration<DataAbsentReason>(this, DataAbsentReason.TEMPUNKNOWN); 1157 if ("not-asked".equals(codeString)) 1158 return new Enumeration<DataAbsentReason>(this, DataAbsentReason.NOTASKED); 1159 if ("asked-declined".equals(codeString)) 1160 return new Enumeration<DataAbsentReason>(this, DataAbsentReason.ASKEDDECLINED); 1161 if ("masked".equals(codeString)) 1162 return new Enumeration<DataAbsentReason>(this, DataAbsentReason.MASKED); 1163 if ("not-applicable".equals(codeString)) 1164 return new Enumeration<DataAbsentReason>(this, DataAbsentReason.NOTAPPLICABLE); 1165 if ("unsupported".equals(codeString)) 1166 return new Enumeration<DataAbsentReason>(this, DataAbsentReason.UNSUPPORTED); 1167 if ("as-text".equals(codeString)) 1168 return new Enumeration<DataAbsentReason>(this, DataAbsentReason.ASTEXT); 1169 if ("error".equals(codeString)) 1170 return new Enumeration<DataAbsentReason>(this, DataAbsentReason.ERROR); 1171 if ("not-a-number".equals(codeString)) 1172 return new Enumeration<DataAbsentReason>(this, DataAbsentReason.NOTANUMBER); 1173 if ("negative-infinity".equals(codeString)) 1174 return new Enumeration<DataAbsentReason>(this, DataAbsentReason.NEGATIVEINFINITY); 1175 if ("positive-infinity".equals(codeString)) 1176 return new Enumeration<DataAbsentReason>(this, DataAbsentReason.POSITIVEINFINITY); 1177 if ("not-performed".equals(codeString)) 1178 return new Enumeration<DataAbsentReason>(this, DataAbsentReason.NOTPERFORMED); 1179 if ("not-permitted".equals(codeString)) 1180 return new Enumeration<DataAbsentReason>(this, DataAbsentReason.NOTPERMITTED); 1181 throw new FHIRException("Unknown DataAbsentReason code '"+codeString+"'"); 1182 } 1183 public String toCode(DataAbsentReason code) { 1184 if (code == DataAbsentReason.UNKNOWN) 1185 return "unknown"; 1186 if (code == DataAbsentReason.ASKEDUNKNOWN) 1187 return "asked-unknown"; 1188 if (code == DataAbsentReason.TEMPUNKNOWN) 1189 return "temp-unknown"; 1190 if (code == DataAbsentReason.NOTASKED) 1191 return "not-asked"; 1192 if (code == DataAbsentReason.ASKEDDECLINED) 1193 return "asked-declined"; 1194 if (code == DataAbsentReason.MASKED) 1195 return "masked"; 1196 if (code == DataAbsentReason.NOTAPPLICABLE) 1197 return "not-applicable"; 1198 if (code == DataAbsentReason.UNSUPPORTED) 1199 return "unsupported"; 1200 if (code == DataAbsentReason.ASTEXT) 1201 return "as-text"; 1202 if (code == DataAbsentReason.ERROR) 1203 return "error"; 1204 if (code == DataAbsentReason.NOTANUMBER) 1205 return "not-a-number"; 1206 if (code == DataAbsentReason.NEGATIVEINFINITY) 1207 return "negative-infinity"; 1208 if (code == DataAbsentReason.POSITIVEINFINITY) 1209 return "positive-infinity"; 1210 if (code == DataAbsentReason.NOTPERFORMED) 1211 return "not-performed"; 1212 if (code == DataAbsentReason.NOTPERMITTED) 1213 return "not-permitted"; 1214 return "?"; 1215 } 1216 public String toSystem(DataAbsentReason code) { 1217 return code.getSystem(); 1218 } 1219 } 1220 1221 public enum DataType { 1222 /** 1223 * An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world. 1224 */ 1225 ADDRESS, 1226 /** 1227 * A duration of time during which an organism (or a process) has existed. 1228 */ 1229 AGE, 1230 /** 1231 * A text note which also contains information about who made the statement and when. 1232 */ 1233 ANNOTATION, 1234 /** 1235 * For referring to data content defined in other formats. 1236 */ 1237 ATTACHMENT, 1238 /** 1239 * Base definition for all elements that are defined inside a resource - but not those in a data type. 1240 */ 1241 BACKBONEELEMENT, 1242 /** 1243 * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text. 1244 */ 1245 CODEABLECONCEPT, 1246 /** 1247 * A reference to a code defined by a terminology system. 1248 */ 1249 CODING, 1250 /** 1251 * Specifies contact information for a person or organization. 1252 */ 1253 CONTACTDETAIL, 1254 /** 1255 * Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc. 1256 */ 1257 CONTACTPOINT, 1258 /** 1259 * A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers. 1260 */ 1261 CONTRIBUTOR, 1262 /** 1263 * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. 1264 */ 1265 COUNT, 1266 /** 1267 * Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data. 1268 */ 1269 DATAREQUIREMENT, 1270 /** 1271 * A length - a value with a unit that is a physical distance. 1272 */ 1273 DISTANCE, 1274 /** 1275 * Indicates how the medication is/was taken or should be taken by the patient. 1276 */ 1277 DOSAGE, 1278 /** 1279 * A length of time. 1280 */ 1281 DURATION, 1282 /** 1283 * Base definition for all elements in a resource. 1284 */ 1285 ELEMENT, 1286 /** 1287 * Captures constraints on each element within the resource, profile, or extension. 1288 */ 1289 ELEMENTDEFINITION, 1290 /** 1291 * A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used. 1292 */ 1293 EXPRESSION, 1294 /** 1295 * Optional Extension Element - found in all resources. 1296 */ 1297 EXTENSION, 1298 /** 1299 * A human's name with the ability to identify parts and usage. 1300 */ 1301 HUMANNAME, 1302 /** 1303 * An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers. 1304 */ 1305 IDENTIFIER, 1306 /** 1307 * The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available. 1308 */ 1309 MARKETINGSTATUS, 1310 /** 1311 * The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource. 1312 */ 1313 META, 1314 /** 1315 * An amount of economic utility in some recognized currency. 1316 */ 1317 MONEY, 1318 /** 1319 * null 1320 */ 1321 MONEYQUANTITY, 1322 /** 1323 * A human-readable summary of the resource conveying the essential clinical and business information for the resource. 1324 */ 1325 NARRATIVE, 1326 /** 1327 * An ordered list (distribution) of statistics. 1328 */ 1329 ORDEREDDISTRIBUTION, 1330 /** 1331 * The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse. 1332 */ 1333 PARAMETERDEFINITION, 1334 /** 1335 * A time period defined by a start and end date and optionally time. 1336 */ 1337 PERIOD, 1338 /** 1339 * A populatioof people with some set of grouping criteria. 1340 */ 1341 POPULATION, 1342 /** 1343 * The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available. 1344 */ 1345 PRODCHARACTERISTIC, 1346 /** 1347 * The shelf-life and storage information for a medicinal product item or container can be described using this class. 1348 */ 1349 PRODUCTSHELFLIFE, 1350 /** 1351 * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. 1352 */ 1353 QUANTITY, 1354 /** 1355 * A set of ordered Quantities defined by a low and high limit. 1356 */ 1357 RANGE, 1358 /** 1359 * A relationship of two Quantity values - expressed as a numerator and a denominator. 1360 */ 1361 RATIO, 1362 /** 1363 * A reference from one resource to another. 1364 */ 1365 REFERENCE, 1366 /** 1367 * Related artifacts such as additional documentation, justification, or bibliographic references. 1368 */ 1369 RELATEDARTIFACT, 1370 /** 1371 * A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data. 1372 */ 1373 SAMPLEDDATA, 1374 /** 1375 * A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities. 1376 */ 1377 SIGNATURE, 1378 /** 1379 * null 1380 */ 1381 SIMPLEQUANTITY, 1382 /** 1383 * A fact or piece of data from a study of a large quantity of numerical data. A mathematical or quantified characteristic of a group of observations. 1384 */ 1385 STATISTIC, 1386 /** 1387 * Chemical substances are a single substance type whose primary defining element is the molecular structure. Chemical substances shall be defined on the basis of their complete covalent molecular structure; the presence of a salt (counter-ion) and/or solvates (water, alcohols) is also captured. Purity, grade, physical form or particle size are not taken into account in the definition of a chemical substance or in the assignment of a Substance ID. 1388 */ 1389 SUBSTANCEAMOUNT, 1390 /** 1391 * Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out. 1392 */ 1393 TIMING, 1394 /** 1395 * A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element. 1396 */ 1397 TRIGGERDEFINITION, 1398 /** 1399 * Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care). 1400 */ 1401 USAGECONTEXT, 1402 /** 1403 * A stream of bytes 1404 */ 1405 BASE64BINARY, 1406 /** 1407 * Value of "true" or "false" 1408 */ 1409 BOOLEAN, 1410 /** 1411 * A URI that is a reference to a canonical URL on a FHIR resource 1412 */ 1413 CANONICAL, 1414 /** 1415 * A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents 1416 */ 1417 CODE, 1418 /** 1419 * A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates. 1420 */ 1421 DATE, 1422 /** 1423 * A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates. 1424 */ 1425 DATETIME, 1426 /** 1427 * A rational number with implicit precision 1428 */ 1429 DECIMAL, 1430 /** 1431 * Any combination of letters, numerals, "-" and ".", with a length limit of 64 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Ids are case-insensitive. 1432 */ 1433 ID, 1434 /** 1435 * An instant in time - known at least to the second 1436 */ 1437 INSTANT, 1438 /** 1439 * A whole number 1440 */ 1441 INTEGER, 1442 /** 1443 * A string that may contain Github Flavored Markdown syntax for optional processing by a mark down presentation engine 1444 */ 1445 MARKDOWN, 1446 /** 1447 * An OID represented as a URI 1448 */ 1449 OID, 1450 /** 1451 * An integer with a value that is positive (e.g. >0) 1452 */ 1453 POSITIVEINT, 1454 /** 1455 * A sequence of Unicode characters 1456 */ 1457 STRING, 1458 /** 1459 * A time during the day, with no date specified 1460 */ 1461 TIME, 1462 /** 1463 * An integer with a value that is not negative (e.g. >= 0) 1464 */ 1465 UNSIGNEDINT, 1466 /** 1467 * String of characters used to identify a name or a resource 1468 */ 1469 URI, 1470 /** 1471 * A URI that is a literal reference 1472 */ 1473 URL, 1474 /** 1475 * A UUID, represented as a URI 1476 */ 1477 UUID, 1478 /** 1479 * XHTML format, as defined by W3C, but restricted usage (mainly, no active content) 1480 */ 1481 XHTML, 1482 /** 1483 * added to help the parsers 1484 */ 1485 NULL; 1486 public static DataType fromCode(String codeString) throws FHIRException { 1487 if (codeString == null || "".equals(codeString)) 1488 return null; 1489 if ("Address".equals(codeString)) 1490 return ADDRESS; 1491 if ("Age".equals(codeString)) 1492 return AGE; 1493 if ("Annotation".equals(codeString)) 1494 return ANNOTATION; 1495 if ("Attachment".equals(codeString)) 1496 return ATTACHMENT; 1497 if ("BackboneElement".equals(codeString)) 1498 return BACKBONEELEMENT; 1499 if ("CodeableConcept".equals(codeString)) 1500 return CODEABLECONCEPT; 1501 if ("Coding".equals(codeString)) 1502 return CODING; 1503 if ("ContactDetail".equals(codeString)) 1504 return CONTACTDETAIL; 1505 if ("ContactPoint".equals(codeString)) 1506 return CONTACTPOINT; 1507 if ("Contributor".equals(codeString)) 1508 return CONTRIBUTOR; 1509 if ("Count".equals(codeString)) 1510 return COUNT; 1511 if ("DataRequirement".equals(codeString)) 1512 return DATAREQUIREMENT; 1513 if ("Distance".equals(codeString)) 1514 return DISTANCE; 1515 if ("Dosage".equals(codeString)) 1516 return DOSAGE; 1517 if ("Duration".equals(codeString)) 1518 return DURATION; 1519 if ("Element".equals(codeString)) 1520 return ELEMENT; 1521 if ("ElementDefinition".equals(codeString)) 1522 return ELEMENTDEFINITION; 1523 if ("Expression".equals(codeString)) 1524 return EXPRESSION; 1525 if ("Extension".equals(codeString)) 1526 return EXTENSION; 1527 if ("HumanName".equals(codeString)) 1528 return HUMANNAME; 1529 if ("Identifier".equals(codeString)) 1530 return IDENTIFIER; 1531 if ("MarketingStatus".equals(codeString)) 1532 return MARKETINGSTATUS; 1533 if ("Meta".equals(codeString)) 1534 return META; 1535 if ("Money".equals(codeString)) 1536 return MONEY; 1537 if ("MoneyQuantity".equals(codeString)) 1538 return MONEYQUANTITY; 1539 if ("Narrative".equals(codeString)) 1540 return NARRATIVE; 1541 if ("OrderedDistribution".equals(codeString)) 1542 return ORDEREDDISTRIBUTION; 1543 if ("ParameterDefinition".equals(codeString)) 1544 return PARAMETERDEFINITION; 1545 if ("Period".equals(codeString)) 1546 return PERIOD; 1547 if ("Population".equals(codeString)) 1548 return POPULATION; 1549 if ("ProdCharacteristic".equals(codeString)) 1550 return PRODCHARACTERISTIC; 1551 if ("ProductShelfLife".equals(codeString)) 1552 return PRODUCTSHELFLIFE; 1553 if ("Quantity".equals(codeString)) 1554 return QUANTITY; 1555 if ("Range".equals(codeString)) 1556 return RANGE; 1557 if ("Ratio".equals(codeString)) 1558 return RATIO; 1559 if ("Reference".equals(codeString)) 1560 return REFERENCE; 1561 if ("RelatedArtifact".equals(codeString)) 1562 return RELATEDARTIFACT; 1563 if ("SampledData".equals(codeString)) 1564 return SAMPLEDDATA; 1565 if ("Signature".equals(codeString)) 1566 return SIGNATURE; 1567 if ("SimpleQuantity".equals(codeString)) 1568 return SIMPLEQUANTITY; 1569 if ("Statistic".equals(codeString)) 1570 return STATISTIC; 1571 if ("SubstanceAmount".equals(codeString)) 1572 return SUBSTANCEAMOUNT; 1573 if ("Timing".equals(codeString)) 1574 return TIMING; 1575 if ("TriggerDefinition".equals(codeString)) 1576 return TRIGGERDEFINITION; 1577 if ("UsageContext".equals(codeString)) 1578 return USAGECONTEXT; 1579 if ("base64Binary".equals(codeString)) 1580 return BASE64BINARY; 1581 if ("boolean".equals(codeString)) 1582 return BOOLEAN; 1583 if ("canonical".equals(codeString)) 1584 return CANONICAL; 1585 if ("code".equals(codeString)) 1586 return CODE; 1587 if ("date".equals(codeString)) 1588 return DATE; 1589 if ("dateTime".equals(codeString)) 1590 return DATETIME; 1591 if ("decimal".equals(codeString)) 1592 return DECIMAL; 1593 if ("id".equals(codeString)) 1594 return ID; 1595 if ("instant".equals(codeString)) 1596 return INSTANT; 1597 if ("integer".equals(codeString)) 1598 return INTEGER; 1599 if ("markdown".equals(codeString)) 1600 return MARKDOWN; 1601 if ("oid".equals(codeString)) 1602 return OID; 1603 if ("positiveInt".equals(codeString)) 1604 return POSITIVEINT; 1605 if ("string".equals(codeString)) 1606 return STRING; 1607 if ("time".equals(codeString)) 1608 return TIME; 1609 if ("unsignedInt".equals(codeString)) 1610 return UNSIGNEDINT; 1611 if ("uri".equals(codeString)) 1612 return URI; 1613 if ("url".equals(codeString)) 1614 return URL; 1615 if ("uuid".equals(codeString)) 1616 return UUID; 1617 if ("xhtml".equals(codeString)) 1618 return XHTML; 1619 throw new FHIRException("Unknown DataType code '"+codeString+"'"); 1620 } 1621 public String toCode() { 1622 switch (this) { 1623 case ADDRESS: return "Address"; 1624 case AGE: return "Age"; 1625 case ANNOTATION: return "Annotation"; 1626 case ATTACHMENT: return "Attachment"; 1627 case BACKBONEELEMENT: return "BackboneElement"; 1628 case CODEABLECONCEPT: return "CodeableConcept"; 1629 case CODING: return "Coding"; 1630 case CONTACTDETAIL: return "ContactDetail"; 1631 case CONTACTPOINT: return "ContactPoint"; 1632 case CONTRIBUTOR: return "Contributor"; 1633 case COUNT: return "Count"; 1634 case DATAREQUIREMENT: return "DataRequirement"; 1635 case DISTANCE: return "Distance"; 1636 case DOSAGE: return "Dosage"; 1637 case DURATION: return "Duration"; 1638 case ELEMENT: return "Element"; 1639 case ELEMENTDEFINITION: return "ElementDefinition"; 1640 case EXPRESSION: return "Expression"; 1641 case EXTENSION: return "Extension"; 1642 case HUMANNAME: return "HumanName"; 1643 case IDENTIFIER: return "Identifier"; 1644 case MARKETINGSTATUS: return "MarketingStatus"; 1645 case META: return "Meta"; 1646 case MONEY: return "Money"; 1647 case MONEYQUANTITY: return "MoneyQuantity"; 1648 case NARRATIVE: return "Narrative"; 1649 case ORDEREDDISTRIBUTION: return "OrderedDistribution"; 1650 case PARAMETERDEFINITION: return "ParameterDefinition"; 1651 case PERIOD: return "Period"; 1652 case POPULATION: return "Population"; 1653 case PRODCHARACTERISTIC: return "ProdCharacteristic"; 1654 case PRODUCTSHELFLIFE: return "ProductShelfLife"; 1655 case QUANTITY: return "Quantity"; 1656 case RANGE: return "Range"; 1657 case RATIO: return "Ratio"; 1658 case REFERENCE: return "Reference"; 1659 case RELATEDARTIFACT: return "RelatedArtifact"; 1660 case SAMPLEDDATA: return "SampledData"; 1661 case SIGNATURE: return "Signature"; 1662 case SIMPLEQUANTITY: return "SimpleQuantity"; 1663 case STATISTIC: return "Statistic"; 1664 case SUBSTANCEAMOUNT: return "SubstanceAmount"; 1665 case TIMING: return "Timing"; 1666 case TRIGGERDEFINITION: return "TriggerDefinition"; 1667 case USAGECONTEXT: return "UsageContext"; 1668 case BASE64BINARY: return "base64Binary"; 1669 case BOOLEAN: return "boolean"; 1670 case CANONICAL: return "canonical"; 1671 case CODE: return "code"; 1672 case DATE: return "date"; 1673 case DATETIME: return "dateTime"; 1674 case DECIMAL: return "decimal"; 1675 case ID: return "id"; 1676 case INSTANT: return "instant"; 1677 case INTEGER: return "integer"; 1678 case MARKDOWN: return "markdown"; 1679 case OID: return "oid"; 1680 case POSITIVEINT: return "positiveInt"; 1681 case STRING: return "string"; 1682 case TIME: return "time"; 1683 case UNSIGNEDINT: return "unsignedInt"; 1684 case URI: return "uri"; 1685 case URL: return "url"; 1686 case UUID: return "uuid"; 1687 case XHTML: return "xhtml"; 1688 default: return "?"; 1689 } 1690 } 1691 public String getSystem() { 1692 switch (this) { 1693 case ADDRESS: return "http://hl7.org/fhir/data-types"; 1694 case AGE: return "http://hl7.org/fhir/data-types"; 1695 case ANNOTATION: return "http://hl7.org/fhir/data-types"; 1696 case ATTACHMENT: return "http://hl7.org/fhir/data-types"; 1697 case BACKBONEELEMENT: return "http://hl7.org/fhir/data-types"; 1698 case CODEABLECONCEPT: return "http://hl7.org/fhir/data-types"; 1699 case CODING: return "http://hl7.org/fhir/data-types"; 1700 case CONTACTDETAIL: return "http://hl7.org/fhir/data-types"; 1701 case CONTACTPOINT: return "http://hl7.org/fhir/data-types"; 1702 case CONTRIBUTOR: return "http://hl7.org/fhir/data-types"; 1703 case COUNT: return "http://hl7.org/fhir/data-types"; 1704 case DATAREQUIREMENT: return "http://hl7.org/fhir/data-types"; 1705 case DISTANCE: return "http://hl7.org/fhir/data-types"; 1706 case DOSAGE: return "http://hl7.org/fhir/data-types"; 1707 case DURATION: return "http://hl7.org/fhir/data-types"; 1708 case ELEMENT: return "http://hl7.org/fhir/data-types"; 1709 case ELEMENTDEFINITION: return "http://hl7.org/fhir/data-types"; 1710 case EXPRESSION: return "http://hl7.org/fhir/data-types"; 1711 case EXTENSION: return "http://hl7.org/fhir/data-types"; 1712 case HUMANNAME: return "http://hl7.org/fhir/data-types"; 1713 case IDENTIFIER: return "http://hl7.org/fhir/data-types"; 1714 case MARKETINGSTATUS: return "http://hl7.org/fhir/data-types"; 1715 case META: return "http://hl7.org/fhir/data-types"; 1716 case MONEY: return "http://hl7.org/fhir/data-types"; 1717 case MONEYQUANTITY: return "http://hl7.org/fhir/data-types"; 1718 case NARRATIVE: return "http://hl7.org/fhir/data-types"; 1719 case ORDEREDDISTRIBUTION: return "http://hl7.org/fhir/data-types"; 1720 case PARAMETERDEFINITION: return "http://hl7.org/fhir/data-types"; 1721 case PERIOD: return "http://hl7.org/fhir/data-types"; 1722 case POPULATION: return "http://hl7.org/fhir/data-types"; 1723 case PRODCHARACTERISTIC: return "http://hl7.org/fhir/data-types"; 1724 case PRODUCTSHELFLIFE: return "http://hl7.org/fhir/data-types"; 1725 case QUANTITY: return "http://hl7.org/fhir/data-types"; 1726 case RANGE: return "http://hl7.org/fhir/data-types"; 1727 case RATIO: return "http://hl7.org/fhir/data-types"; 1728 case REFERENCE: return "http://hl7.org/fhir/data-types"; 1729 case RELATEDARTIFACT: return "http://hl7.org/fhir/data-types"; 1730 case SAMPLEDDATA: return "http://hl7.org/fhir/data-types"; 1731 case SIGNATURE: return "http://hl7.org/fhir/data-types"; 1732 case SIMPLEQUANTITY: return "http://hl7.org/fhir/data-types"; 1733 case STATISTIC: return "http://hl7.org/fhir/data-types"; 1734 case SUBSTANCEAMOUNT: return "http://hl7.org/fhir/data-types"; 1735 case TIMING: return "http://hl7.org/fhir/data-types"; 1736 case TRIGGERDEFINITION: return "http://hl7.org/fhir/data-types"; 1737 case USAGECONTEXT: return "http://hl7.org/fhir/data-types"; 1738 case BASE64BINARY: return "http://hl7.org/fhir/data-types"; 1739 case BOOLEAN: return "http://hl7.org/fhir/data-types"; 1740 case CANONICAL: return "http://hl7.org/fhir/data-types"; 1741 case CODE: return "http://hl7.org/fhir/data-types"; 1742 case DATE: return "http://hl7.org/fhir/data-types"; 1743 case DATETIME: return "http://hl7.org/fhir/data-types"; 1744 case DECIMAL: return "http://hl7.org/fhir/data-types"; 1745 case ID: return "http://hl7.org/fhir/data-types"; 1746 case INSTANT: return "http://hl7.org/fhir/data-types"; 1747 case INTEGER: return "http://hl7.org/fhir/data-types"; 1748 case MARKDOWN: return "http://hl7.org/fhir/data-types"; 1749 case OID: return "http://hl7.org/fhir/data-types"; 1750 case POSITIVEINT: return "http://hl7.org/fhir/data-types"; 1751 case STRING: return "http://hl7.org/fhir/data-types"; 1752 case TIME: return "http://hl7.org/fhir/data-types"; 1753 case UNSIGNEDINT: return "http://hl7.org/fhir/data-types"; 1754 case URI: return "http://hl7.org/fhir/data-types"; 1755 case URL: return "http://hl7.org/fhir/data-types"; 1756 case UUID: return "http://hl7.org/fhir/data-types"; 1757 case XHTML: return "http://hl7.org/fhir/data-types"; 1758 default: return "?"; 1759 } 1760 } 1761 public String getDefinition() { 1762 switch (this) { 1763 case ADDRESS: return "An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world."; 1764 case AGE: return "A duration of time during which an organism (or a process) has existed."; 1765 case ANNOTATION: return "A text note which also contains information about who made the statement and when."; 1766 case ATTACHMENT: return "For referring to data content defined in other formats."; 1767 case BACKBONEELEMENT: return "Base definition for all elements that are defined inside a resource - but not those in a data type."; 1768 case CODEABLECONCEPT: return "A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text."; 1769 case CODING: return "A reference to a code defined by a terminology system."; 1770 case CONTACTDETAIL: return "Specifies contact information for a person or organization."; 1771 case CONTACTPOINT: return "Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc."; 1772 case CONTRIBUTOR: return "A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers."; 1773 case COUNT: return "A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies."; 1774 case DATAREQUIREMENT: return "Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data."; 1775 case DISTANCE: return "A length - a value with a unit that is a physical distance."; 1776 case DOSAGE: return "Indicates how the medication is/was taken or should be taken by the patient."; 1777 case DURATION: return "A length of time."; 1778 case ELEMENT: return "Base definition for all elements in a resource."; 1779 case ELEMENTDEFINITION: return "Captures constraints on each element within the resource, profile, or extension."; 1780 case EXPRESSION: return "A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used."; 1781 case EXTENSION: return "Optional Extension Element - found in all resources."; 1782 case HUMANNAME: return "A human's name with the ability to identify parts and usage."; 1783 case IDENTIFIER: return "An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."; 1784 case MARKETINGSTATUS: return "The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available."; 1785 case META: return "The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource."; 1786 case MONEY: return "An amount of economic utility in some recognized currency."; 1787 case MONEYQUANTITY: return ""; 1788 case NARRATIVE: return "A human-readable summary of the resource conveying the essential clinical and business information for the resource."; 1789 case ORDEREDDISTRIBUTION: return "An ordered list (distribution) of statistics."; 1790 case PARAMETERDEFINITION: return "The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse."; 1791 case PERIOD: return "A time period defined by a start and end date and optionally time."; 1792 case POPULATION: return "A populatioof people with some set of grouping criteria."; 1793 case PRODCHARACTERISTIC: return "The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available."; 1794 case PRODUCTSHELFLIFE: return "The shelf-life and storage information for a medicinal product item or container can be described using this class."; 1795 case QUANTITY: return "A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies."; 1796 case RANGE: return "A set of ordered Quantities defined by a low and high limit."; 1797 case RATIO: return "A relationship of two Quantity values - expressed as a numerator and a denominator."; 1798 case REFERENCE: return "A reference from one resource to another."; 1799 case RELATEDARTIFACT: return "Related artifacts such as additional documentation, justification, or bibliographic references."; 1800 case SAMPLEDDATA: return "A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data."; 1801 case SIGNATURE: return "A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities."; 1802 case SIMPLEQUANTITY: return ""; 1803 case STATISTIC: return "A fact or piece of data from a study of a large quantity of numerical data. A mathematical or quantified characteristic of a group of observations."; 1804 case SUBSTANCEAMOUNT: return "Chemical substances are a single substance type whose primary defining element is the molecular structure. Chemical substances shall be defined on the basis of their complete covalent molecular structure; the presence of a salt (counter-ion) and/or solvates (water, alcohols) is also captured. Purity, grade, physical form or particle size are not taken into account in the definition of a chemical substance or in the assignment of a Substance ID."; 1805 case TIMING: return "Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out."; 1806 case TRIGGERDEFINITION: return "A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element."; 1807 case USAGECONTEXT: return "Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care)."; 1808 case BASE64BINARY: return "A stream of bytes"; 1809 case BOOLEAN: return "Value of \"true\" or \"false\""; 1810 case CANONICAL: return "A URI that is a reference to a canonical URL on a FHIR resource"; 1811 case CODE: return "A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents"; 1812 case DATE: return "A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates."; 1813 case DATETIME: return "A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates."; 1814 case DECIMAL: return "A rational number with implicit precision"; 1815 case ID: return "Any combination of letters, numerals, \"-\" and \".\", with a length limit of 64 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Ids are case-insensitive."; 1816 case INSTANT: return "An instant in time - known at least to the second"; 1817 case INTEGER: return "A whole number"; 1818 case MARKDOWN: return "A string that may contain Github Flavored Markdown syntax for optional processing by a mark down presentation engine"; 1819 case OID: return "An OID represented as a URI"; 1820 case POSITIVEINT: return "An integer with a value that is positive (e.g. >0)"; 1821 case STRING: return "A sequence of Unicode characters"; 1822 case TIME: return "A time during the day, with no date specified"; 1823 case UNSIGNEDINT: return "An integer with a value that is not negative (e.g. >= 0)"; 1824 case URI: return "String of characters used to identify a name or a resource"; 1825 case URL: return "A URI that is a literal reference"; 1826 case UUID: return "A UUID, represented as a URI"; 1827 case XHTML: return "XHTML format, as defined by W3C, but restricted usage (mainly, no active content)"; 1828 default: return "?"; 1829 } 1830 } 1831 public String getDisplay() { 1832 switch (this) { 1833 case ADDRESS: return "Address"; 1834 case AGE: return "Age"; 1835 case ANNOTATION: return "Annotation"; 1836 case ATTACHMENT: return "Attachment"; 1837 case BACKBONEELEMENT: return "BackboneElement"; 1838 case CODEABLECONCEPT: return "CodeableConcept"; 1839 case CODING: return "Coding"; 1840 case CONTACTDETAIL: return "ContactDetail"; 1841 case CONTACTPOINT: return "ContactPoint"; 1842 case CONTRIBUTOR: return "Contributor"; 1843 case COUNT: return "Count"; 1844 case DATAREQUIREMENT: return "DataRequirement"; 1845 case DISTANCE: return "Distance"; 1846 case DOSAGE: return "Dosage"; 1847 case DURATION: return "Duration"; 1848 case ELEMENT: return "Element"; 1849 case ELEMENTDEFINITION: return "ElementDefinition"; 1850 case EXPRESSION: return "Expression"; 1851 case EXTENSION: return "Extension"; 1852 case HUMANNAME: return "HumanName"; 1853 case IDENTIFIER: return "Identifier"; 1854 case MARKETINGSTATUS: return "MarketingStatus"; 1855 case META: return "Meta"; 1856 case MONEY: return "Money"; 1857 case MONEYQUANTITY: return "MoneyQuantity"; 1858 case NARRATIVE: return "Narrative"; 1859 case ORDEREDDISTRIBUTION: return "OrderedDistribution"; 1860 case PARAMETERDEFINITION: return "ParameterDefinition"; 1861 case PERIOD: return "Period"; 1862 case POPULATION: return "Population"; 1863 case PRODCHARACTERISTIC: return "ProdCharacteristic"; 1864 case PRODUCTSHELFLIFE: return "ProductShelfLife"; 1865 case QUANTITY: return "Quantity"; 1866 case RANGE: return "Range"; 1867 case RATIO: return "Ratio"; 1868 case REFERENCE: return "Reference"; 1869 case RELATEDARTIFACT: return "RelatedArtifact"; 1870 case SAMPLEDDATA: return "SampledData"; 1871 case SIGNATURE: return "Signature"; 1872 case SIMPLEQUANTITY: return "SimpleQuantity"; 1873 case STATISTIC: return "Statistic"; 1874 case SUBSTANCEAMOUNT: return "SubstanceAmount"; 1875 case TIMING: return "Timing"; 1876 case TRIGGERDEFINITION: return "TriggerDefinition"; 1877 case USAGECONTEXT: return "UsageContext"; 1878 case BASE64BINARY: return "base64Binary"; 1879 case BOOLEAN: return "boolean"; 1880 case CANONICAL: return "canonical"; 1881 case CODE: return "code"; 1882 case DATE: return "date"; 1883 case DATETIME: return "dateTime"; 1884 case DECIMAL: return "decimal"; 1885 case ID: return "id"; 1886 case INSTANT: return "instant"; 1887 case INTEGER: return "integer"; 1888 case MARKDOWN: return "markdown"; 1889 case OID: return "oid"; 1890 case POSITIVEINT: return "positiveInt"; 1891 case STRING: return "string"; 1892 case TIME: return "time"; 1893 case UNSIGNEDINT: return "unsignedInt"; 1894 case URI: return "uri"; 1895 case URL: return "url"; 1896 case UUID: return "uuid"; 1897 case XHTML: return "XHTML"; 1898 default: return "?"; 1899 } 1900 } 1901 } 1902 1903 public static class DataTypeEnumFactory implements EnumFactory<DataType> { 1904 public DataType fromCode(String codeString) throws IllegalArgumentException { 1905 if (codeString == null || "".equals(codeString)) 1906 if (codeString == null || "".equals(codeString)) 1907 return null; 1908 if ("Address".equals(codeString)) 1909 return DataType.ADDRESS; 1910 if ("Age".equals(codeString)) 1911 return DataType.AGE; 1912 if ("Annotation".equals(codeString)) 1913 return DataType.ANNOTATION; 1914 if ("Attachment".equals(codeString)) 1915 return DataType.ATTACHMENT; 1916 if ("BackboneElement".equals(codeString)) 1917 return DataType.BACKBONEELEMENT; 1918 if ("CodeableConcept".equals(codeString)) 1919 return DataType.CODEABLECONCEPT; 1920 if ("Coding".equals(codeString)) 1921 return DataType.CODING; 1922 if ("ContactDetail".equals(codeString)) 1923 return DataType.CONTACTDETAIL; 1924 if ("ContactPoint".equals(codeString)) 1925 return DataType.CONTACTPOINT; 1926 if ("Contributor".equals(codeString)) 1927 return DataType.CONTRIBUTOR; 1928 if ("Count".equals(codeString)) 1929 return DataType.COUNT; 1930 if ("DataRequirement".equals(codeString)) 1931 return DataType.DATAREQUIREMENT; 1932 if ("Distance".equals(codeString)) 1933 return DataType.DISTANCE; 1934 if ("Dosage".equals(codeString)) 1935 return DataType.DOSAGE; 1936 if ("Duration".equals(codeString)) 1937 return DataType.DURATION; 1938 if ("Element".equals(codeString)) 1939 return DataType.ELEMENT; 1940 if ("ElementDefinition".equals(codeString)) 1941 return DataType.ELEMENTDEFINITION; 1942 if ("Expression".equals(codeString)) 1943 return DataType.EXPRESSION; 1944 if ("Extension".equals(codeString)) 1945 return DataType.EXTENSION; 1946 if ("HumanName".equals(codeString)) 1947 return DataType.HUMANNAME; 1948 if ("Identifier".equals(codeString)) 1949 return DataType.IDENTIFIER; 1950 if ("MarketingStatus".equals(codeString)) 1951 return DataType.MARKETINGSTATUS; 1952 if ("Meta".equals(codeString)) 1953 return DataType.META; 1954 if ("Money".equals(codeString)) 1955 return DataType.MONEY; 1956 if ("MoneyQuantity".equals(codeString)) 1957 return DataType.MONEYQUANTITY; 1958 if ("Narrative".equals(codeString)) 1959 return DataType.NARRATIVE; 1960 if ("OrderedDistribution".equals(codeString)) 1961 return DataType.ORDEREDDISTRIBUTION; 1962 if ("ParameterDefinition".equals(codeString)) 1963 return DataType.PARAMETERDEFINITION; 1964 if ("Period".equals(codeString)) 1965 return DataType.PERIOD; 1966 if ("Population".equals(codeString)) 1967 return DataType.POPULATION; 1968 if ("ProdCharacteristic".equals(codeString)) 1969 return DataType.PRODCHARACTERISTIC; 1970 if ("ProductShelfLife".equals(codeString)) 1971 return DataType.PRODUCTSHELFLIFE; 1972 if ("Quantity".equals(codeString)) 1973 return DataType.QUANTITY; 1974 if ("Range".equals(codeString)) 1975 return DataType.RANGE; 1976 if ("Ratio".equals(codeString)) 1977 return DataType.RATIO; 1978 if ("Reference".equals(codeString)) 1979 return DataType.REFERENCE; 1980 if ("RelatedArtifact".equals(codeString)) 1981 return DataType.RELATEDARTIFACT; 1982 if ("SampledData".equals(codeString)) 1983 return DataType.SAMPLEDDATA; 1984 if ("Signature".equals(codeString)) 1985 return DataType.SIGNATURE; 1986 if ("SimpleQuantity".equals(codeString)) 1987 return DataType.SIMPLEQUANTITY; 1988 if ("Statistic".equals(codeString)) 1989 return DataType.STATISTIC; 1990 if ("SubstanceAmount".equals(codeString)) 1991 return DataType.SUBSTANCEAMOUNT; 1992 if ("Timing".equals(codeString)) 1993 return DataType.TIMING; 1994 if ("TriggerDefinition".equals(codeString)) 1995 return DataType.TRIGGERDEFINITION; 1996 if ("UsageContext".equals(codeString)) 1997 return DataType.USAGECONTEXT; 1998 if ("base64Binary".equals(codeString)) 1999 return DataType.BASE64BINARY; 2000 if ("boolean".equals(codeString)) 2001 return DataType.BOOLEAN; 2002 if ("canonical".equals(codeString)) 2003 return DataType.CANONICAL; 2004 if ("code".equals(codeString)) 2005 return DataType.CODE; 2006 if ("date".equals(codeString)) 2007 return DataType.DATE; 2008 if ("dateTime".equals(codeString)) 2009 return DataType.DATETIME; 2010 if ("decimal".equals(codeString)) 2011 return DataType.DECIMAL; 2012 if ("id".equals(codeString)) 2013 return DataType.ID; 2014 if ("instant".equals(codeString)) 2015 return DataType.INSTANT; 2016 if ("integer".equals(codeString)) 2017 return DataType.INTEGER; 2018 if ("markdown".equals(codeString)) 2019 return DataType.MARKDOWN; 2020 if ("oid".equals(codeString)) 2021 return DataType.OID; 2022 if ("positiveInt".equals(codeString)) 2023 return DataType.POSITIVEINT; 2024 if ("string".equals(codeString)) 2025 return DataType.STRING; 2026 if ("time".equals(codeString)) 2027 return DataType.TIME; 2028 if ("unsignedInt".equals(codeString)) 2029 return DataType.UNSIGNEDINT; 2030 if ("uri".equals(codeString)) 2031 return DataType.URI; 2032 if ("url".equals(codeString)) 2033 return DataType.URL; 2034 if ("uuid".equals(codeString)) 2035 return DataType.UUID; 2036 if ("xhtml".equals(codeString)) 2037 return DataType.XHTML; 2038 throw new IllegalArgumentException("Unknown DataType code '"+codeString+"'"); 2039 } 2040 public Enumeration<DataType> fromType(Base code) throws FHIRException { 2041 if (code == null) 2042 return null; 2043 if (code.isEmpty()) 2044 return new Enumeration<DataType>(this); 2045 String codeString = ((PrimitiveType) code).asStringValue(); 2046 if (codeString == null || "".equals(codeString)) 2047 return null; 2048 if ("Address".equals(codeString)) 2049 return new Enumeration<DataType>(this, DataType.ADDRESS); 2050 if ("Age".equals(codeString)) 2051 return new Enumeration<DataType>(this, DataType.AGE); 2052 if ("Annotation".equals(codeString)) 2053 return new Enumeration<DataType>(this, DataType.ANNOTATION); 2054 if ("Attachment".equals(codeString)) 2055 return new Enumeration<DataType>(this, DataType.ATTACHMENT); 2056 if ("BackboneElement".equals(codeString)) 2057 return new Enumeration<DataType>(this, DataType.BACKBONEELEMENT); 2058 if ("CodeableConcept".equals(codeString)) 2059 return new Enumeration<DataType>(this, DataType.CODEABLECONCEPT); 2060 if ("Coding".equals(codeString)) 2061 return new Enumeration<DataType>(this, DataType.CODING); 2062 if ("ContactDetail".equals(codeString)) 2063 return new Enumeration<DataType>(this, DataType.CONTACTDETAIL); 2064 if ("ContactPoint".equals(codeString)) 2065 return new Enumeration<DataType>(this, DataType.CONTACTPOINT); 2066 if ("Contributor".equals(codeString)) 2067 return new Enumeration<DataType>(this, DataType.CONTRIBUTOR); 2068 if ("Count".equals(codeString)) 2069 return new Enumeration<DataType>(this, DataType.COUNT); 2070 if ("DataRequirement".equals(codeString)) 2071 return new Enumeration<DataType>(this, DataType.DATAREQUIREMENT); 2072 if ("Distance".equals(codeString)) 2073 return new Enumeration<DataType>(this, DataType.DISTANCE); 2074 if ("Dosage".equals(codeString)) 2075 return new Enumeration<DataType>(this, DataType.DOSAGE); 2076 if ("Duration".equals(codeString)) 2077 return new Enumeration<DataType>(this, DataType.DURATION); 2078 if ("Element".equals(codeString)) 2079 return new Enumeration<DataType>(this, DataType.ELEMENT); 2080 if ("ElementDefinition".equals(codeString)) 2081 return new Enumeration<DataType>(this, DataType.ELEMENTDEFINITION); 2082 if ("Expression".equals(codeString)) 2083 return new Enumeration<DataType>(this, DataType.EXPRESSION); 2084 if ("Extension".equals(codeString)) 2085 return new Enumeration<DataType>(this, DataType.EXTENSION); 2086 if ("HumanName".equals(codeString)) 2087 return new Enumeration<DataType>(this, DataType.HUMANNAME); 2088 if ("Identifier".equals(codeString)) 2089 return new Enumeration<DataType>(this, DataType.IDENTIFIER); 2090 if ("MarketingStatus".equals(codeString)) 2091 return new Enumeration<DataType>(this, DataType.MARKETINGSTATUS); 2092 if ("Meta".equals(codeString)) 2093 return new Enumeration<DataType>(this, DataType.META); 2094 if ("Money".equals(codeString)) 2095 return new Enumeration<DataType>(this, DataType.MONEY); 2096 if ("MoneyQuantity".equals(codeString)) 2097 return new Enumeration<DataType>(this, DataType.MONEYQUANTITY); 2098 if ("Narrative".equals(codeString)) 2099 return new Enumeration<DataType>(this, DataType.NARRATIVE); 2100 if ("OrderedDistribution".equals(codeString)) 2101 return new Enumeration<DataType>(this, DataType.ORDEREDDISTRIBUTION); 2102 if ("ParameterDefinition".equals(codeString)) 2103 return new Enumeration<DataType>(this, DataType.PARAMETERDEFINITION); 2104 if ("Period".equals(codeString)) 2105 return new Enumeration<DataType>(this, DataType.PERIOD); 2106 if ("Population".equals(codeString)) 2107 return new Enumeration<DataType>(this, DataType.POPULATION); 2108 if ("ProdCharacteristic".equals(codeString)) 2109 return new Enumeration<DataType>(this, DataType.PRODCHARACTERISTIC); 2110 if ("ProductShelfLife".equals(codeString)) 2111 return new Enumeration<DataType>(this, DataType.PRODUCTSHELFLIFE); 2112 if ("Quantity".equals(codeString)) 2113 return new Enumeration<DataType>(this, DataType.QUANTITY); 2114 if ("Range".equals(codeString)) 2115 return new Enumeration<DataType>(this, DataType.RANGE); 2116 if ("Ratio".equals(codeString)) 2117 return new Enumeration<DataType>(this, DataType.RATIO); 2118 if ("Reference".equals(codeString)) 2119 return new Enumeration<DataType>(this, DataType.REFERENCE); 2120 if ("RelatedArtifact".equals(codeString)) 2121 return new Enumeration<DataType>(this, DataType.RELATEDARTIFACT); 2122 if ("SampledData".equals(codeString)) 2123 return new Enumeration<DataType>(this, DataType.SAMPLEDDATA); 2124 if ("Signature".equals(codeString)) 2125 return new Enumeration<DataType>(this, DataType.SIGNATURE); 2126 if ("SimpleQuantity".equals(codeString)) 2127 return new Enumeration<DataType>(this, DataType.SIMPLEQUANTITY); 2128 if ("Statistic".equals(codeString)) 2129 return new Enumeration<DataType>(this, DataType.STATISTIC); 2130 if ("SubstanceAmount".equals(codeString)) 2131 return new Enumeration<DataType>(this, DataType.SUBSTANCEAMOUNT); 2132 if ("Timing".equals(codeString)) 2133 return new Enumeration<DataType>(this, DataType.TIMING); 2134 if ("TriggerDefinition".equals(codeString)) 2135 return new Enumeration<DataType>(this, DataType.TRIGGERDEFINITION); 2136 if ("UsageContext".equals(codeString)) 2137 return new Enumeration<DataType>(this, DataType.USAGECONTEXT); 2138 if ("base64Binary".equals(codeString)) 2139 return new Enumeration<DataType>(this, DataType.BASE64BINARY); 2140 if ("boolean".equals(codeString)) 2141 return new Enumeration<DataType>(this, DataType.BOOLEAN); 2142 if ("canonical".equals(codeString)) 2143 return new Enumeration<DataType>(this, DataType.CANONICAL); 2144 if ("code".equals(codeString)) 2145 return new Enumeration<DataType>(this, DataType.CODE); 2146 if ("date".equals(codeString)) 2147 return new Enumeration<DataType>(this, DataType.DATE); 2148 if ("dateTime".equals(codeString)) 2149 return new Enumeration<DataType>(this, DataType.DATETIME); 2150 if ("decimal".equals(codeString)) 2151 return new Enumeration<DataType>(this, DataType.DECIMAL); 2152 if ("id".equals(codeString)) 2153 return new Enumeration<DataType>(this, DataType.ID); 2154 if ("instant".equals(codeString)) 2155 return new Enumeration<DataType>(this, DataType.INSTANT); 2156 if ("integer".equals(codeString)) 2157 return new Enumeration<DataType>(this, DataType.INTEGER); 2158 if ("markdown".equals(codeString)) 2159 return new Enumeration<DataType>(this, DataType.MARKDOWN); 2160 if ("oid".equals(codeString)) 2161 return new Enumeration<DataType>(this, DataType.OID); 2162 if ("positiveInt".equals(codeString)) 2163 return new Enumeration<DataType>(this, DataType.POSITIVEINT); 2164 if ("string".equals(codeString)) 2165 return new Enumeration<DataType>(this, DataType.STRING); 2166 if ("time".equals(codeString)) 2167 return new Enumeration<DataType>(this, DataType.TIME); 2168 if ("unsignedInt".equals(codeString)) 2169 return new Enumeration<DataType>(this, DataType.UNSIGNEDINT); 2170 if ("uri".equals(codeString)) 2171 return new Enumeration<DataType>(this, DataType.URI); 2172 if ("url".equals(codeString)) 2173 return new Enumeration<DataType>(this, DataType.URL); 2174 if ("uuid".equals(codeString)) 2175 return new Enumeration<DataType>(this, DataType.UUID); 2176 if ("xhtml".equals(codeString)) 2177 return new Enumeration<DataType>(this, DataType.XHTML); 2178 throw new FHIRException("Unknown DataType code '"+codeString+"'"); 2179 } 2180 public String toCode(DataType code) { 2181 if (code == DataType.ADDRESS) 2182 return "Address"; 2183 if (code == DataType.AGE) 2184 return "Age"; 2185 if (code == DataType.ANNOTATION) 2186 return "Annotation"; 2187 if (code == DataType.ATTACHMENT) 2188 return "Attachment"; 2189 if (code == DataType.BACKBONEELEMENT) 2190 return "BackboneElement"; 2191 if (code == DataType.CODEABLECONCEPT) 2192 return "CodeableConcept"; 2193 if (code == DataType.CODING) 2194 return "Coding"; 2195 if (code == DataType.CONTACTDETAIL) 2196 return "ContactDetail"; 2197 if (code == DataType.CONTACTPOINT) 2198 return "ContactPoint"; 2199 if (code == DataType.CONTRIBUTOR) 2200 return "Contributor"; 2201 if (code == DataType.COUNT) 2202 return "Count"; 2203 if (code == DataType.DATAREQUIREMENT) 2204 return "DataRequirement"; 2205 if (code == DataType.DISTANCE) 2206 return "Distance"; 2207 if (code == DataType.DOSAGE) 2208 return "Dosage"; 2209 if (code == DataType.DURATION) 2210 return "Duration"; 2211 if (code == DataType.ELEMENT) 2212 return "Element"; 2213 if (code == DataType.ELEMENTDEFINITION) 2214 return "ElementDefinition"; 2215 if (code == DataType.EXPRESSION) 2216 return "Expression"; 2217 if (code == DataType.EXTENSION) 2218 return "Extension"; 2219 if (code == DataType.HUMANNAME) 2220 return "HumanName"; 2221 if (code == DataType.IDENTIFIER) 2222 return "Identifier"; 2223 if (code == DataType.MARKETINGSTATUS) 2224 return "MarketingStatus"; 2225 if (code == DataType.META) 2226 return "Meta"; 2227 if (code == DataType.MONEY) 2228 return "Money"; 2229 if (code == DataType.MONEYQUANTITY) 2230 return "MoneyQuantity"; 2231 if (code == DataType.NARRATIVE) 2232 return "Narrative"; 2233 if (code == DataType.ORDEREDDISTRIBUTION) 2234 return "OrderedDistribution"; 2235 if (code == DataType.PARAMETERDEFINITION) 2236 return "ParameterDefinition"; 2237 if (code == DataType.PERIOD) 2238 return "Period"; 2239 if (code == DataType.POPULATION) 2240 return "Population"; 2241 if (code == DataType.PRODCHARACTERISTIC) 2242 return "ProdCharacteristic"; 2243 if (code == DataType.PRODUCTSHELFLIFE) 2244 return "ProductShelfLife"; 2245 if (code == DataType.QUANTITY) 2246 return "Quantity"; 2247 if (code == DataType.RANGE) 2248 return "Range"; 2249 if (code == DataType.RATIO) 2250 return "Ratio"; 2251 if (code == DataType.REFERENCE) 2252 return "Reference"; 2253 if (code == DataType.RELATEDARTIFACT) 2254 return "RelatedArtifact"; 2255 if (code == DataType.SAMPLEDDATA) 2256 return "SampledData"; 2257 if (code == DataType.SIGNATURE) 2258 return "Signature"; 2259 if (code == DataType.SIMPLEQUANTITY) 2260 return "SimpleQuantity"; 2261 if (code == DataType.STATISTIC) 2262 return "Statistic"; 2263 if (code == DataType.SUBSTANCEAMOUNT) 2264 return "SubstanceAmount"; 2265 if (code == DataType.TIMING) 2266 return "Timing"; 2267 if (code == DataType.TRIGGERDEFINITION) 2268 return "TriggerDefinition"; 2269 if (code == DataType.USAGECONTEXT) 2270 return "UsageContext"; 2271 if (code == DataType.BASE64BINARY) 2272 return "base64Binary"; 2273 if (code == DataType.BOOLEAN) 2274 return "boolean"; 2275 if (code == DataType.CANONICAL) 2276 return "canonical"; 2277 if (code == DataType.CODE) 2278 return "code"; 2279 if (code == DataType.DATE) 2280 return "date"; 2281 if (code == DataType.DATETIME) 2282 return "dateTime"; 2283 if (code == DataType.DECIMAL) 2284 return "decimal"; 2285 if (code == DataType.ID) 2286 return "id"; 2287 if (code == DataType.INSTANT) 2288 return "instant"; 2289 if (code == DataType.INTEGER) 2290 return "integer"; 2291 if (code == DataType.MARKDOWN) 2292 return "markdown"; 2293 if (code == DataType.OID) 2294 return "oid"; 2295 if (code == DataType.POSITIVEINT) 2296 return "positiveInt"; 2297 if (code == DataType.STRING) 2298 return "string"; 2299 if (code == DataType.TIME) 2300 return "time"; 2301 if (code == DataType.UNSIGNEDINT) 2302 return "unsignedInt"; 2303 if (code == DataType.URI) 2304 return "uri"; 2305 if (code == DataType.URL) 2306 return "url"; 2307 if (code == DataType.UUID) 2308 return "uuid"; 2309 if (code == DataType.XHTML) 2310 return "xhtml"; 2311 return "?"; 2312 } 2313 public String toSystem(DataType code) { 2314 return code.getSystem(); 2315 } 2316 } 2317 2318 public enum DefinitionResourceType { 2319 /** 2320 * This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context. 2321 */ 2322 ACTIVITYDEFINITION, 2323 /** 2324 * The EventDefinition resource provides a reusable description of when a particular event can occur. 2325 */ 2326 EVENTDEFINITION, 2327 /** 2328 * The Measure resource provides the definition of a quality measure. 2329 */ 2330 MEASURE, 2331 /** 2332 * A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction). 2333 */ 2334 OPERATIONDEFINITION, 2335 /** 2336 * This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols. 2337 */ 2338 PLANDEFINITION, 2339 /** 2340 * A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection. 2341 */ 2342 QUESTIONNAIRE, 2343 /** 2344 * added to help the parsers 2345 */ 2346 NULL; 2347 public static DefinitionResourceType fromCode(String codeString) throws FHIRException { 2348 if (codeString == null || "".equals(codeString)) 2349 return null; 2350 if ("ActivityDefinition".equals(codeString)) 2351 return ACTIVITYDEFINITION; 2352 if ("EventDefinition".equals(codeString)) 2353 return EVENTDEFINITION; 2354 if ("Measure".equals(codeString)) 2355 return MEASURE; 2356 if ("OperationDefinition".equals(codeString)) 2357 return OPERATIONDEFINITION; 2358 if ("PlanDefinition".equals(codeString)) 2359 return PLANDEFINITION; 2360 if ("Questionnaire".equals(codeString)) 2361 return QUESTIONNAIRE; 2362 throw new FHIRException("Unknown DefinitionResourceType code '"+codeString+"'"); 2363 } 2364 public String toCode() { 2365 switch (this) { 2366 case ACTIVITYDEFINITION: return "ActivityDefinition"; 2367 case EVENTDEFINITION: return "EventDefinition"; 2368 case MEASURE: return "Measure"; 2369 case OPERATIONDEFINITION: return "OperationDefinition"; 2370 case PLANDEFINITION: return "PlanDefinition"; 2371 case QUESTIONNAIRE: return "Questionnaire"; 2372 default: return "?"; 2373 } 2374 } 2375 public String getSystem() { 2376 switch (this) { 2377 case ACTIVITYDEFINITION: return "http://hl7.org/fhir/definition-resource-types"; 2378 case EVENTDEFINITION: return "http://hl7.org/fhir/definition-resource-types"; 2379 case MEASURE: return "http://hl7.org/fhir/definition-resource-types"; 2380 case OPERATIONDEFINITION: return "http://hl7.org/fhir/definition-resource-types"; 2381 case PLANDEFINITION: return "http://hl7.org/fhir/definition-resource-types"; 2382 case QUESTIONNAIRE: return "http://hl7.org/fhir/definition-resource-types"; 2383 default: return "?"; 2384 } 2385 } 2386 public String getDefinition() { 2387 switch (this) { 2388 case ACTIVITYDEFINITION: return "This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context."; 2389 case EVENTDEFINITION: return "The EventDefinition resource provides a reusable description of when a particular event can occur."; 2390 case MEASURE: return "The Measure resource provides the definition of a quality measure."; 2391 case OPERATIONDEFINITION: return "A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction)."; 2392 case PLANDEFINITION: return "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols."; 2393 case QUESTIONNAIRE: return "A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection."; 2394 default: return "?"; 2395 } 2396 } 2397 public String getDisplay() { 2398 switch (this) { 2399 case ACTIVITYDEFINITION: return "ActivityDefinition"; 2400 case EVENTDEFINITION: return "EventDefinition"; 2401 case MEASURE: return "Measure"; 2402 case OPERATIONDEFINITION: return "OperationDefinition"; 2403 case PLANDEFINITION: return "PlanDefinition"; 2404 case QUESTIONNAIRE: return "Questionnaire"; 2405 default: return "?"; 2406 } 2407 } 2408 } 2409 2410 public static class DefinitionResourceTypeEnumFactory implements EnumFactory<DefinitionResourceType> { 2411 public DefinitionResourceType fromCode(String codeString) throws IllegalArgumentException { 2412 if (codeString == null || "".equals(codeString)) 2413 if (codeString == null || "".equals(codeString)) 2414 return null; 2415 if ("ActivityDefinition".equals(codeString)) 2416 return DefinitionResourceType.ACTIVITYDEFINITION; 2417 if ("EventDefinition".equals(codeString)) 2418 return DefinitionResourceType.EVENTDEFINITION; 2419 if ("Measure".equals(codeString)) 2420 return DefinitionResourceType.MEASURE; 2421 if ("OperationDefinition".equals(codeString)) 2422 return DefinitionResourceType.OPERATIONDEFINITION; 2423 if ("PlanDefinition".equals(codeString)) 2424 return DefinitionResourceType.PLANDEFINITION; 2425 if ("Questionnaire".equals(codeString)) 2426 return DefinitionResourceType.QUESTIONNAIRE; 2427 throw new IllegalArgumentException("Unknown DefinitionResourceType code '"+codeString+"'"); 2428 } 2429 public Enumeration<DefinitionResourceType> fromType(Base code) throws FHIRException { 2430 if (code == null) 2431 return null; 2432 if (code.isEmpty()) 2433 return new Enumeration<DefinitionResourceType>(this); 2434 String codeString = ((PrimitiveType) code).asStringValue(); 2435 if (codeString == null || "".equals(codeString)) 2436 return null; 2437 if ("ActivityDefinition".equals(codeString)) 2438 return new Enumeration<DefinitionResourceType>(this, DefinitionResourceType.ACTIVITYDEFINITION); 2439 if ("EventDefinition".equals(codeString)) 2440 return new Enumeration<DefinitionResourceType>(this, DefinitionResourceType.EVENTDEFINITION); 2441 if ("Measure".equals(codeString)) 2442 return new Enumeration<DefinitionResourceType>(this, DefinitionResourceType.MEASURE); 2443 if ("OperationDefinition".equals(codeString)) 2444 return new Enumeration<DefinitionResourceType>(this, DefinitionResourceType.OPERATIONDEFINITION); 2445 if ("PlanDefinition".equals(codeString)) 2446 return new Enumeration<DefinitionResourceType>(this, DefinitionResourceType.PLANDEFINITION); 2447 if ("Questionnaire".equals(codeString)) 2448 return new Enumeration<DefinitionResourceType>(this, DefinitionResourceType.QUESTIONNAIRE); 2449 throw new FHIRException("Unknown DefinitionResourceType code '"+codeString+"'"); 2450 } 2451 public String toCode(DefinitionResourceType code) { 2452 if (code == DefinitionResourceType.ACTIVITYDEFINITION) 2453 return "ActivityDefinition"; 2454 if (code == DefinitionResourceType.EVENTDEFINITION) 2455 return "EventDefinition"; 2456 if (code == DefinitionResourceType.MEASURE) 2457 return "Measure"; 2458 if (code == DefinitionResourceType.OPERATIONDEFINITION) 2459 return "OperationDefinition"; 2460 if (code == DefinitionResourceType.PLANDEFINITION) 2461 return "PlanDefinition"; 2462 if (code == DefinitionResourceType.QUESTIONNAIRE) 2463 return "Questionnaire"; 2464 return "?"; 2465 } 2466 public String toSystem(DefinitionResourceType code) { 2467 return code.getSystem(); 2468 } 2469 } 2470 2471 public enum DocumentReferenceStatus { 2472 /** 2473 * This is the current reference for this document. 2474 */ 2475 CURRENT, 2476 /** 2477 * This reference has been superseded by another reference. 2478 */ 2479 SUPERSEDED, 2480 /** 2481 * This reference was created in error. 2482 */ 2483 ENTEREDINERROR, 2484 /** 2485 * added to help the parsers 2486 */ 2487 NULL; 2488 public static DocumentReferenceStatus fromCode(String codeString) throws FHIRException { 2489 if (codeString == null || "".equals(codeString)) 2490 return null; 2491 if ("current".equals(codeString)) 2492 return CURRENT; 2493 if ("superseded".equals(codeString)) 2494 return SUPERSEDED; 2495 if ("entered-in-error".equals(codeString)) 2496 return ENTEREDINERROR; 2497 throw new FHIRException("Unknown DocumentReferenceStatus code '"+codeString+"'"); 2498 } 2499 public String toCode() { 2500 switch (this) { 2501 case CURRENT: return "current"; 2502 case SUPERSEDED: return "superseded"; 2503 case ENTEREDINERROR: return "entered-in-error"; 2504 default: return "?"; 2505 } 2506 } 2507 public String getSystem() { 2508 switch (this) { 2509 case CURRENT: return "http://hl7.org/fhir/document-reference-status"; 2510 case SUPERSEDED: return "http://hl7.org/fhir/document-reference-status"; 2511 case ENTEREDINERROR: return "http://hl7.org/fhir/document-reference-status"; 2512 default: return "?"; 2513 } 2514 } 2515 public String getDefinition() { 2516 switch (this) { 2517 case CURRENT: return "This is the current reference for this document."; 2518 case SUPERSEDED: return "This reference has been superseded by another reference."; 2519 case ENTEREDINERROR: return "This reference was created in error."; 2520 default: return "?"; 2521 } 2522 } 2523 public String getDisplay() { 2524 switch (this) { 2525 case CURRENT: return "Current"; 2526 case SUPERSEDED: return "Superseded"; 2527 case ENTEREDINERROR: return "Entered in Error"; 2528 default: return "?"; 2529 } 2530 } 2531 } 2532 2533 public static class DocumentReferenceStatusEnumFactory implements EnumFactory<DocumentReferenceStatus> { 2534 public DocumentReferenceStatus fromCode(String codeString) throws IllegalArgumentException { 2535 if (codeString == null || "".equals(codeString)) 2536 if (codeString == null || "".equals(codeString)) 2537 return null; 2538 if ("current".equals(codeString)) 2539 return DocumentReferenceStatus.CURRENT; 2540 if ("superseded".equals(codeString)) 2541 return DocumentReferenceStatus.SUPERSEDED; 2542 if ("entered-in-error".equals(codeString)) 2543 return DocumentReferenceStatus.ENTEREDINERROR; 2544 throw new IllegalArgumentException("Unknown DocumentReferenceStatus code '"+codeString+"'"); 2545 } 2546 public Enumeration<DocumentReferenceStatus> fromType(Base code) throws FHIRException { 2547 if (code == null) 2548 return null; 2549 if (code.isEmpty()) 2550 return new Enumeration<DocumentReferenceStatus>(this); 2551 String codeString = ((PrimitiveType) code).asStringValue(); 2552 if (codeString == null || "".equals(codeString)) 2553 return null; 2554 if ("current".equals(codeString)) 2555 return new Enumeration<DocumentReferenceStatus>(this, DocumentReferenceStatus.CURRENT); 2556 if ("superseded".equals(codeString)) 2557 return new Enumeration<DocumentReferenceStatus>(this, DocumentReferenceStatus.SUPERSEDED); 2558 if ("entered-in-error".equals(codeString)) 2559 return new Enumeration<DocumentReferenceStatus>(this, DocumentReferenceStatus.ENTEREDINERROR); 2560 throw new FHIRException("Unknown DocumentReferenceStatus code '"+codeString+"'"); 2561 } 2562 public String toCode(DocumentReferenceStatus code) { 2563 if (code == DocumentReferenceStatus.CURRENT) 2564 return "current"; 2565 if (code == DocumentReferenceStatus.SUPERSEDED) 2566 return "superseded"; 2567 if (code == DocumentReferenceStatus.ENTEREDINERROR) 2568 return "entered-in-error"; 2569 return "?"; 2570 } 2571 public String toSystem(DocumentReferenceStatus code) { 2572 return code.getSystem(); 2573 } 2574 } 2575 2576 public enum EventResourceType { 2577 /** 2578 * Item containing charge code(s) associated with the provision of healthcare provider products. 2579 */ 2580 CHARGEITEM, 2581 /** 2582 * Remittance resource. 2583 */ 2584 CLAIMRESPONSE, 2585 /** 2586 * A clinical assessment performed when planning treatments and management strategies for a patient. 2587 */ 2588 CLINICALIMPRESSION, 2589 /** 2590 * A record of information transmitted from a sender to a receiver. 2591 */ 2592 COMMUNICATION, 2593 /** 2594 * A set of resources composed into a single coherent clinical statement with clinical attestation. 2595 */ 2596 COMPOSITION, 2597 /** 2598 * Detailed information about conditions, problems or diagnoses. 2599 */ 2600 CONDITION, 2601 /** 2602 * A healthcare consumer's policy choices to permits or denies recipients or roles to perform actions for specific purposes and periods of time. 2603 */ 2604 CONSENT, 2605 /** 2606 * Insurance or medical plan or a payment agreement. 2607 */ 2608 COVERAGE, 2609 /** 2610 * Record of use of a device. 2611 */ 2612 DEVICEUSESTATEMENT, 2613 /** 2614 * A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports. 2615 */ 2616 DIAGNOSTICREPORT, 2617 /** 2618 * A list that defines a set of documents. 2619 */ 2620 DOCUMENTMANIFEST, 2621 /** 2622 * A reference to a document. 2623 */ 2624 DOCUMENTREFERENCE, 2625 /** 2626 * An interaction during which services are provided to the patient. 2627 */ 2628 ENCOUNTER, 2629 /** 2630 * EnrollmentResponse resource. 2631 */ 2632 ENROLLMENTRESPONSE, 2633 /** 2634 * An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility. 2635 */ 2636 EPISODEOFCARE, 2637 /** 2638 * Explanation of Benefit resource. 2639 */ 2640 EXPLANATIONOFBENEFIT, 2641 /** 2642 * Information about patient's relatives, relevant for patient. 2643 */ 2644 FAMILYMEMBERHISTORY, 2645 /** 2646 * The formal response to a guidance request. 2647 */ 2648 GUIDANCERESPONSE, 2649 /** 2650 * A set of images produced in single study (one or more series of references images). 2651 */ 2652 IMAGINGSTUDY, 2653 /** 2654 * Immunization event information. 2655 */ 2656 IMMUNIZATION, 2657 /** 2658 * Results of a measure evaluation. 2659 */ 2660 MEASUREREPORT, 2661 /** 2662 * A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference. 2663 */ 2664 MEDIA, 2665 /** 2666 * Administration of medication to a patient. 2667 */ 2668 MEDICATIONADMINISTRATION, 2669 /** 2670 * Dispensing a medication to a named patient. 2671 */ 2672 MEDICATIONDISPENSE, 2673 /** 2674 * Record of medication being taken by a patient. 2675 */ 2676 MEDICATIONUSAGE, 2677 /** 2678 * Measurements and simple assertions. 2679 */ 2680 OBSERVATION, 2681 /** 2682 * PaymentNotice request. 2683 */ 2684 PAYMENTNOTICE, 2685 /** 2686 * PaymentReconciliation resource. 2687 */ 2688 PAYMENTRECONCILIATION, 2689 /** 2690 * An action that is being or was performed on a patient. 2691 */ 2692 PROCEDURE, 2693 /** 2694 * ProcessResponse resource. 2695 */ 2696 PROCESSRESPONSE, 2697 /** 2698 * A structured set of questions and their answers. 2699 */ 2700 QUESTIONNAIRERESPONSE, 2701 /** 2702 * Potential outcomes for a subject with likelihood. 2703 */ 2704 RISKASSESSMENT, 2705 /** 2706 * Delivery of bulk Supplies. 2707 */ 2708 SUPPLYDELIVERY, 2709 /** 2710 * A task to be performed. 2711 */ 2712 TASK, 2713 /** 2714 * added to help the parsers 2715 */ 2716 NULL; 2717 public static EventResourceType fromCode(String codeString) throws FHIRException { 2718 if (codeString == null || "".equals(codeString)) 2719 return null; 2720 if ("ChargeItem".equals(codeString)) 2721 return CHARGEITEM; 2722 if ("ClaimResponse".equals(codeString)) 2723 return CLAIMRESPONSE; 2724 if ("ClinicalImpression".equals(codeString)) 2725 return CLINICALIMPRESSION; 2726 if ("Communication".equals(codeString)) 2727 return COMMUNICATION; 2728 if ("Composition".equals(codeString)) 2729 return COMPOSITION; 2730 if ("Condition".equals(codeString)) 2731 return CONDITION; 2732 if ("Consent".equals(codeString)) 2733 return CONSENT; 2734 if ("Coverage".equals(codeString)) 2735 return COVERAGE; 2736 if ("DeviceUseStatement".equals(codeString)) 2737 return DEVICEUSESTATEMENT; 2738 if ("DiagnosticReport".equals(codeString)) 2739 return DIAGNOSTICREPORT; 2740 if ("DocumentManifest".equals(codeString)) 2741 return DOCUMENTMANIFEST; 2742 if ("DocumentReference".equals(codeString)) 2743 return DOCUMENTREFERENCE; 2744 if ("Encounter".equals(codeString)) 2745 return ENCOUNTER; 2746 if ("EnrollmentResponse".equals(codeString)) 2747 return ENROLLMENTRESPONSE; 2748 if ("EpisodeOfCare".equals(codeString)) 2749 return EPISODEOFCARE; 2750 if ("ExplanationOfBenefit".equals(codeString)) 2751 return EXPLANATIONOFBENEFIT; 2752 if ("FamilyMemberHistory".equals(codeString)) 2753 return FAMILYMEMBERHISTORY; 2754 if ("GuidanceResponse".equals(codeString)) 2755 return GUIDANCERESPONSE; 2756 if ("ImagingStudy".equals(codeString)) 2757 return IMAGINGSTUDY; 2758 if ("Immunization".equals(codeString)) 2759 return IMMUNIZATION; 2760 if ("MeasureReport".equals(codeString)) 2761 return MEASUREREPORT; 2762 if ("Media".equals(codeString)) 2763 return MEDIA; 2764 if ("MedicationAdministration".equals(codeString)) 2765 return MEDICATIONADMINISTRATION; 2766 if ("MedicationDispense".equals(codeString)) 2767 return MEDICATIONDISPENSE; 2768 if ("MedicationUsage".equals(codeString)) 2769 return MEDICATIONUSAGE; 2770 if ("Observation".equals(codeString)) 2771 return OBSERVATION; 2772 if ("PaymentNotice".equals(codeString)) 2773 return PAYMENTNOTICE; 2774 if ("PaymentReconciliation".equals(codeString)) 2775 return PAYMENTRECONCILIATION; 2776 if ("Procedure".equals(codeString)) 2777 return PROCEDURE; 2778 if ("ProcessResponse".equals(codeString)) 2779 return PROCESSRESPONSE; 2780 if ("QuestionnaireResponse".equals(codeString)) 2781 return QUESTIONNAIRERESPONSE; 2782 if ("RiskAssessment".equals(codeString)) 2783 return RISKASSESSMENT; 2784 if ("SupplyDelivery".equals(codeString)) 2785 return SUPPLYDELIVERY; 2786 if ("Task".equals(codeString)) 2787 return TASK; 2788 throw new FHIRException("Unknown EventResourceType code '"+codeString+"'"); 2789 } 2790 public String toCode() { 2791 switch (this) { 2792 case CHARGEITEM: return "ChargeItem"; 2793 case CLAIMRESPONSE: return "ClaimResponse"; 2794 case CLINICALIMPRESSION: return "ClinicalImpression"; 2795 case COMMUNICATION: return "Communication"; 2796 case COMPOSITION: return "Composition"; 2797 case CONDITION: return "Condition"; 2798 case CONSENT: return "Consent"; 2799 case COVERAGE: return "Coverage"; 2800 case DEVICEUSESTATEMENT: return "DeviceUseStatement"; 2801 case DIAGNOSTICREPORT: return "DiagnosticReport"; 2802 case DOCUMENTMANIFEST: return "DocumentManifest"; 2803 case DOCUMENTREFERENCE: return "DocumentReference"; 2804 case ENCOUNTER: return "Encounter"; 2805 case ENROLLMENTRESPONSE: return "EnrollmentResponse"; 2806 case EPISODEOFCARE: return "EpisodeOfCare"; 2807 case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit"; 2808 case FAMILYMEMBERHISTORY: return "FamilyMemberHistory"; 2809 case GUIDANCERESPONSE: return "GuidanceResponse"; 2810 case IMAGINGSTUDY: return "ImagingStudy"; 2811 case IMMUNIZATION: return "Immunization"; 2812 case MEASUREREPORT: return "MeasureReport"; 2813 case MEDIA: return "Media"; 2814 case MEDICATIONADMINISTRATION: return "MedicationAdministration"; 2815 case MEDICATIONDISPENSE: return "MedicationDispense"; 2816 case MEDICATIONUSAGE: return "MedicationUsage"; 2817 case OBSERVATION: return "Observation"; 2818 case PAYMENTNOTICE: return "PaymentNotice"; 2819 case PAYMENTRECONCILIATION: return "PaymentReconciliation"; 2820 case PROCEDURE: return "Procedure"; 2821 case PROCESSRESPONSE: return "ProcessResponse"; 2822 case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse"; 2823 case RISKASSESSMENT: return "RiskAssessment"; 2824 case SUPPLYDELIVERY: return "SupplyDelivery"; 2825 case TASK: return "Task"; 2826 default: return "?"; 2827 } 2828 } 2829 public String getSystem() { 2830 switch (this) { 2831 case CHARGEITEM: return "http://hl7.org/fhir/event-resource-types"; 2832 case CLAIMRESPONSE: return "http://hl7.org/fhir/event-resource-types"; 2833 case CLINICALIMPRESSION: return "http://hl7.org/fhir/event-resource-types"; 2834 case COMMUNICATION: return "http://hl7.org/fhir/event-resource-types"; 2835 case COMPOSITION: return "http://hl7.org/fhir/event-resource-types"; 2836 case CONDITION: return "http://hl7.org/fhir/event-resource-types"; 2837 case CONSENT: return "http://hl7.org/fhir/event-resource-types"; 2838 case COVERAGE: return "http://hl7.org/fhir/event-resource-types"; 2839 case DEVICEUSESTATEMENT: return "http://hl7.org/fhir/event-resource-types"; 2840 case DIAGNOSTICREPORT: return "http://hl7.org/fhir/event-resource-types"; 2841 case DOCUMENTMANIFEST: return "http://hl7.org/fhir/event-resource-types"; 2842 case DOCUMENTREFERENCE: return "http://hl7.org/fhir/event-resource-types"; 2843 case ENCOUNTER: return "http://hl7.org/fhir/event-resource-types"; 2844 case ENROLLMENTRESPONSE: return "http://hl7.org/fhir/event-resource-types"; 2845 case EPISODEOFCARE: return "http://hl7.org/fhir/event-resource-types"; 2846 case EXPLANATIONOFBENEFIT: return "http://hl7.org/fhir/event-resource-types"; 2847 case FAMILYMEMBERHISTORY: return "http://hl7.org/fhir/event-resource-types"; 2848 case GUIDANCERESPONSE: return "http://hl7.org/fhir/event-resource-types"; 2849 case IMAGINGSTUDY: return "http://hl7.org/fhir/event-resource-types"; 2850 case IMMUNIZATION: return "http://hl7.org/fhir/event-resource-types"; 2851 case MEASUREREPORT: return "http://hl7.org/fhir/event-resource-types"; 2852 case MEDIA: return "http://hl7.org/fhir/event-resource-types"; 2853 case MEDICATIONADMINISTRATION: return "http://hl7.org/fhir/event-resource-types"; 2854 case MEDICATIONDISPENSE: return "http://hl7.org/fhir/event-resource-types"; 2855 case MEDICATIONUSAGE: return "http://hl7.org/fhir/event-resource-types"; 2856 case OBSERVATION: return "http://hl7.org/fhir/event-resource-types"; 2857 case PAYMENTNOTICE: return "http://hl7.org/fhir/event-resource-types"; 2858 case PAYMENTRECONCILIATION: return "http://hl7.org/fhir/event-resource-types"; 2859 case PROCEDURE: return "http://hl7.org/fhir/event-resource-types"; 2860 case PROCESSRESPONSE: return "http://hl7.org/fhir/event-resource-types"; 2861 case QUESTIONNAIRERESPONSE: return "http://hl7.org/fhir/event-resource-types"; 2862 case RISKASSESSMENT: return "http://hl7.org/fhir/event-resource-types"; 2863 case SUPPLYDELIVERY: return "http://hl7.org/fhir/event-resource-types"; 2864 case TASK: return "http://hl7.org/fhir/event-resource-types"; 2865 default: return "?"; 2866 } 2867 } 2868 public String getDefinition() { 2869 switch (this) { 2870 case CHARGEITEM: return "Item containing charge code(s) associated with the provision of healthcare provider products."; 2871 case CLAIMRESPONSE: return "Remittance resource."; 2872 case CLINICALIMPRESSION: return "A clinical assessment performed when planning treatments and management strategies for a patient."; 2873 case COMMUNICATION: return "A record of information transmitted from a sender to a receiver."; 2874 case COMPOSITION: return "A set of resources composed into a single coherent clinical statement with clinical attestation."; 2875 case CONDITION: return "Detailed information about conditions, problems or diagnoses."; 2876 case CONSENT: return "A healthcare consumer's policy choices to permits or denies recipients or roles to perform actions for specific purposes and periods of time."; 2877 case COVERAGE: return "Insurance or medical plan or a payment agreement."; 2878 case DEVICEUSESTATEMENT: return "Record of use of a device."; 2879 case DIAGNOSTICREPORT: return "A Diagnostic report - a combination of request information, atomic results, images, interpretation, as well as formatted reports."; 2880 case DOCUMENTMANIFEST: return "A list that defines a set of documents."; 2881 case DOCUMENTREFERENCE: return "A reference to a document."; 2882 case ENCOUNTER: return "An interaction during which services are provided to the patient."; 2883 case ENROLLMENTRESPONSE: return "EnrollmentResponse resource."; 2884 case EPISODEOFCARE: return "An association of a Patient with an Organization and Healthcare Provider(s) for a period of time that the Organization assumes some level of responsibility."; 2885 case EXPLANATIONOFBENEFIT: return "Explanation of Benefit resource."; 2886 case FAMILYMEMBERHISTORY: return "Information about patient's relatives, relevant for patient."; 2887 case GUIDANCERESPONSE: return "The formal response to a guidance request."; 2888 case IMAGINGSTUDY: return "A set of images produced in single study (one or more series of references images)."; 2889 case IMMUNIZATION: return "Immunization event information."; 2890 case MEASUREREPORT: return "Results of a measure evaluation."; 2891 case MEDIA: return "A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference."; 2892 case MEDICATIONADMINISTRATION: return "Administration of medication to a patient."; 2893 case MEDICATIONDISPENSE: return "Dispensing a medication to a named patient."; 2894 case MEDICATIONUSAGE: return "Record of medication being taken by a patient."; 2895 case OBSERVATION: return "Measurements and simple assertions."; 2896 case PAYMENTNOTICE: return "PaymentNotice request."; 2897 case PAYMENTRECONCILIATION: return "PaymentReconciliation resource."; 2898 case PROCEDURE: return "An action that is being or was performed on a patient."; 2899 case PROCESSRESPONSE: return "ProcessResponse resource."; 2900 case QUESTIONNAIRERESPONSE: return "A structured set of questions and their answers."; 2901 case RISKASSESSMENT: return "Potential outcomes for a subject with likelihood."; 2902 case SUPPLYDELIVERY: return "Delivery of bulk Supplies."; 2903 case TASK: return "A task to be performed."; 2904 default: return "?"; 2905 } 2906 } 2907 public String getDisplay() { 2908 switch (this) { 2909 case CHARGEITEM: return "ChargeItem"; 2910 case CLAIMRESPONSE: return "ClaimResponse"; 2911 case CLINICALIMPRESSION: return "ClinicalImpression"; 2912 case COMMUNICATION: return "Communication"; 2913 case COMPOSITION: return "Composition"; 2914 case CONDITION: return "Condition"; 2915 case CONSENT: return "Consent"; 2916 case COVERAGE: return "Coverage"; 2917 case DEVICEUSESTATEMENT: return "DeviceUseStatement"; 2918 case DIAGNOSTICREPORT: return "DiagnosticReport"; 2919 case DOCUMENTMANIFEST: return "DocumentManifest"; 2920 case DOCUMENTREFERENCE: return "DocumentReference"; 2921 case ENCOUNTER: return "Encounter"; 2922 case ENROLLMENTRESPONSE: return "EnrollmentResponse"; 2923 case EPISODEOFCARE: return "EpisodeOfCare"; 2924 case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit"; 2925 case FAMILYMEMBERHISTORY: return "FamilyMemberHistory"; 2926 case GUIDANCERESPONSE: return "GuidanceResponse"; 2927 case IMAGINGSTUDY: return "ImagingStudy"; 2928 case IMMUNIZATION: return "Immunization"; 2929 case MEASUREREPORT: return "MeasureReport"; 2930 case MEDIA: return "Media"; 2931 case MEDICATIONADMINISTRATION: return "MedicationAdministration"; 2932 case MEDICATIONDISPENSE: return "MedicationDispense"; 2933 case MEDICATIONUSAGE: return "MedicationUsage"; 2934 case OBSERVATION: return "Observation"; 2935 case PAYMENTNOTICE: return "PaymentNotice"; 2936 case PAYMENTRECONCILIATION: return "PaymentReconciliation"; 2937 case PROCEDURE: return "Procedure"; 2938 case PROCESSRESPONSE: return "ProcessResponse"; 2939 case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse"; 2940 case RISKASSESSMENT: return "RiskAssessment"; 2941 case SUPPLYDELIVERY: return "SupplyDelivery"; 2942 case TASK: return "Task"; 2943 default: return "?"; 2944 } 2945 } 2946 } 2947 2948 public static class EventResourceTypeEnumFactory implements EnumFactory<EventResourceType> { 2949 public EventResourceType fromCode(String codeString) throws IllegalArgumentException { 2950 if (codeString == null || "".equals(codeString)) 2951 if (codeString == null || "".equals(codeString)) 2952 return null; 2953 if ("ChargeItem".equals(codeString)) 2954 return EventResourceType.CHARGEITEM; 2955 if ("ClaimResponse".equals(codeString)) 2956 return EventResourceType.CLAIMRESPONSE; 2957 if ("ClinicalImpression".equals(codeString)) 2958 return EventResourceType.CLINICALIMPRESSION; 2959 if ("Communication".equals(codeString)) 2960 return EventResourceType.COMMUNICATION; 2961 if ("Composition".equals(codeString)) 2962 return EventResourceType.COMPOSITION; 2963 if ("Condition".equals(codeString)) 2964 return EventResourceType.CONDITION; 2965 if ("Consent".equals(codeString)) 2966 return EventResourceType.CONSENT; 2967 if ("Coverage".equals(codeString)) 2968 return EventResourceType.COVERAGE; 2969 if ("DeviceUseStatement".equals(codeString)) 2970 return EventResourceType.DEVICEUSESTATEMENT; 2971 if ("DiagnosticReport".equals(codeString)) 2972 return EventResourceType.DIAGNOSTICREPORT; 2973 if ("DocumentManifest".equals(codeString)) 2974 return EventResourceType.DOCUMENTMANIFEST; 2975 if ("DocumentReference".equals(codeString)) 2976 return EventResourceType.DOCUMENTREFERENCE; 2977 if ("Encounter".equals(codeString)) 2978 return EventResourceType.ENCOUNTER; 2979 if ("EnrollmentResponse".equals(codeString)) 2980 return EventResourceType.ENROLLMENTRESPONSE; 2981 if ("EpisodeOfCare".equals(codeString)) 2982 return EventResourceType.EPISODEOFCARE; 2983 if ("ExplanationOfBenefit".equals(codeString)) 2984 return EventResourceType.EXPLANATIONOFBENEFIT; 2985 if ("FamilyMemberHistory".equals(codeString)) 2986 return EventResourceType.FAMILYMEMBERHISTORY; 2987 if ("GuidanceResponse".equals(codeString)) 2988 return EventResourceType.GUIDANCERESPONSE; 2989 if ("ImagingStudy".equals(codeString)) 2990 return EventResourceType.IMAGINGSTUDY; 2991 if ("Immunization".equals(codeString)) 2992 return EventResourceType.IMMUNIZATION; 2993 if ("MeasureReport".equals(codeString)) 2994 return EventResourceType.MEASUREREPORT; 2995 if ("Media".equals(codeString)) 2996 return EventResourceType.MEDIA; 2997 if ("MedicationAdministration".equals(codeString)) 2998 return EventResourceType.MEDICATIONADMINISTRATION; 2999 if ("MedicationDispense".equals(codeString)) 3000 return EventResourceType.MEDICATIONDISPENSE; 3001 if ("MedicationUsage".equals(codeString)) 3002 return EventResourceType.MEDICATIONUSAGE; 3003 if ("Observation".equals(codeString)) 3004 return EventResourceType.OBSERVATION; 3005 if ("PaymentNotice".equals(codeString)) 3006 return EventResourceType.PAYMENTNOTICE; 3007 if ("PaymentReconciliation".equals(codeString)) 3008 return EventResourceType.PAYMENTRECONCILIATION; 3009 if ("Procedure".equals(codeString)) 3010 return EventResourceType.PROCEDURE; 3011 if ("ProcessResponse".equals(codeString)) 3012 return EventResourceType.PROCESSRESPONSE; 3013 if ("QuestionnaireResponse".equals(codeString)) 3014 return EventResourceType.QUESTIONNAIRERESPONSE; 3015 if ("RiskAssessment".equals(codeString)) 3016 return EventResourceType.RISKASSESSMENT; 3017 if ("SupplyDelivery".equals(codeString)) 3018 return EventResourceType.SUPPLYDELIVERY; 3019 if ("Task".equals(codeString)) 3020 return EventResourceType.TASK; 3021 throw new IllegalArgumentException("Unknown EventResourceType code '"+codeString+"'"); 3022 } 3023 public Enumeration<EventResourceType> fromType(Base code) throws FHIRException { 3024 if (code == null) 3025 return null; 3026 if (code.isEmpty()) 3027 return new Enumeration<EventResourceType>(this); 3028 String codeString = ((PrimitiveType) code).asStringValue(); 3029 if (codeString == null || "".equals(codeString)) 3030 return null; 3031 if ("ChargeItem".equals(codeString)) 3032 return new Enumeration<EventResourceType>(this, EventResourceType.CHARGEITEM); 3033 if ("ClaimResponse".equals(codeString)) 3034 return new Enumeration<EventResourceType>(this, EventResourceType.CLAIMRESPONSE); 3035 if ("ClinicalImpression".equals(codeString)) 3036 return new Enumeration<EventResourceType>(this, EventResourceType.CLINICALIMPRESSION); 3037 if ("Communication".equals(codeString)) 3038 return new Enumeration<EventResourceType>(this, EventResourceType.COMMUNICATION); 3039 if ("Composition".equals(codeString)) 3040 return new Enumeration<EventResourceType>(this, EventResourceType.COMPOSITION); 3041 if ("Condition".equals(codeString)) 3042 return new Enumeration<EventResourceType>(this, EventResourceType.CONDITION); 3043 if ("Consent".equals(codeString)) 3044 return new Enumeration<EventResourceType>(this, EventResourceType.CONSENT); 3045 if ("Coverage".equals(codeString)) 3046 return new Enumeration<EventResourceType>(this, EventResourceType.COVERAGE); 3047 if ("DeviceUseStatement".equals(codeString)) 3048 return new Enumeration<EventResourceType>(this, EventResourceType.DEVICEUSESTATEMENT); 3049 if ("DiagnosticReport".equals(codeString)) 3050 return new Enumeration<EventResourceType>(this, EventResourceType.DIAGNOSTICREPORT); 3051 if ("DocumentManifest".equals(codeString)) 3052 return new Enumeration<EventResourceType>(this, EventResourceType.DOCUMENTMANIFEST); 3053 if ("DocumentReference".equals(codeString)) 3054 return new Enumeration<EventResourceType>(this, EventResourceType.DOCUMENTREFERENCE); 3055 if ("Encounter".equals(codeString)) 3056 return new Enumeration<EventResourceType>(this, EventResourceType.ENCOUNTER); 3057 if ("EnrollmentResponse".equals(codeString)) 3058 return new Enumeration<EventResourceType>(this, EventResourceType.ENROLLMENTRESPONSE); 3059 if ("EpisodeOfCare".equals(codeString)) 3060 return new Enumeration<EventResourceType>(this, EventResourceType.EPISODEOFCARE); 3061 if ("ExplanationOfBenefit".equals(codeString)) 3062 return new Enumeration<EventResourceType>(this, EventResourceType.EXPLANATIONOFBENEFIT); 3063 if ("FamilyMemberHistory".equals(codeString)) 3064 return new Enumeration<EventResourceType>(this, EventResourceType.FAMILYMEMBERHISTORY); 3065 if ("GuidanceResponse".equals(codeString)) 3066 return new Enumeration<EventResourceType>(this, EventResourceType.GUIDANCERESPONSE); 3067 if ("ImagingStudy".equals(codeString)) 3068 return new Enumeration<EventResourceType>(this, EventResourceType.IMAGINGSTUDY); 3069 if ("Immunization".equals(codeString)) 3070 return new Enumeration<EventResourceType>(this, EventResourceType.IMMUNIZATION); 3071 if ("MeasureReport".equals(codeString)) 3072 return new Enumeration<EventResourceType>(this, EventResourceType.MEASUREREPORT); 3073 if ("Media".equals(codeString)) 3074 return new Enumeration<EventResourceType>(this, EventResourceType.MEDIA); 3075 if ("MedicationAdministration".equals(codeString)) 3076 return new Enumeration<EventResourceType>(this, EventResourceType.MEDICATIONADMINISTRATION); 3077 if ("MedicationDispense".equals(codeString)) 3078 return new Enumeration<EventResourceType>(this, EventResourceType.MEDICATIONDISPENSE); 3079 if ("MedicationUsage".equals(codeString)) 3080 return new Enumeration<EventResourceType>(this, EventResourceType.MEDICATIONUSAGE); 3081 if ("Observation".equals(codeString)) 3082 return new Enumeration<EventResourceType>(this, EventResourceType.OBSERVATION); 3083 if ("PaymentNotice".equals(codeString)) 3084 return new Enumeration<EventResourceType>(this, EventResourceType.PAYMENTNOTICE); 3085 if ("PaymentReconciliation".equals(codeString)) 3086 return new Enumeration<EventResourceType>(this, EventResourceType.PAYMENTRECONCILIATION); 3087 if ("Procedure".equals(codeString)) 3088 return new Enumeration<EventResourceType>(this, EventResourceType.PROCEDURE); 3089 if ("ProcessResponse".equals(codeString)) 3090 return new Enumeration<EventResourceType>(this, EventResourceType.PROCESSRESPONSE); 3091 if ("QuestionnaireResponse".equals(codeString)) 3092 return new Enumeration<EventResourceType>(this, EventResourceType.QUESTIONNAIRERESPONSE); 3093 if ("RiskAssessment".equals(codeString)) 3094 return new Enumeration<EventResourceType>(this, EventResourceType.RISKASSESSMENT); 3095 if ("SupplyDelivery".equals(codeString)) 3096 return new Enumeration<EventResourceType>(this, EventResourceType.SUPPLYDELIVERY); 3097 if ("Task".equals(codeString)) 3098 return new Enumeration<EventResourceType>(this, EventResourceType.TASK); 3099 throw new FHIRException("Unknown EventResourceType code '"+codeString+"'"); 3100 } 3101 public String toCode(EventResourceType code) { 3102 if (code == EventResourceType.CHARGEITEM) 3103 return "ChargeItem"; 3104 if (code == EventResourceType.CLAIMRESPONSE) 3105 return "ClaimResponse"; 3106 if (code == EventResourceType.CLINICALIMPRESSION) 3107 return "ClinicalImpression"; 3108 if (code == EventResourceType.COMMUNICATION) 3109 return "Communication"; 3110 if (code == EventResourceType.COMPOSITION) 3111 return "Composition"; 3112 if (code == EventResourceType.CONDITION) 3113 return "Condition"; 3114 if (code == EventResourceType.CONSENT) 3115 return "Consent"; 3116 if (code == EventResourceType.COVERAGE) 3117 return "Coverage"; 3118 if (code == EventResourceType.DEVICEUSESTATEMENT) 3119 return "DeviceUseStatement"; 3120 if (code == EventResourceType.DIAGNOSTICREPORT) 3121 return "DiagnosticReport"; 3122 if (code == EventResourceType.DOCUMENTMANIFEST) 3123 return "DocumentManifest"; 3124 if (code == EventResourceType.DOCUMENTREFERENCE) 3125 return "DocumentReference"; 3126 if (code == EventResourceType.ENCOUNTER) 3127 return "Encounter"; 3128 if (code == EventResourceType.ENROLLMENTRESPONSE) 3129 return "EnrollmentResponse"; 3130 if (code == EventResourceType.EPISODEOFCARE) 3131 return "EpisodeOfCare"; 3132 if (code == EventResourceType.EXPLANATIONOFBENEFIT) 3133 return "ExplanationOfBenefit"; 3134 if (code == EventResourceType.FAMILYMEMBERHISTORY) 3135 return "FamilyMemberHistory"; 3136 if (code == EventResourceType.GUIDANCERESPONSE) 3137 return "GuidanceResponse"; 3138 if (code == EventResourceType.IMAGINGSTUDY) 3139 return "ImagingStudy"; 3140 if (code == EventResourceType.IMMUNIZATION) 3141 return "Immunization"; 3142 if (code == EventResourceType.MEASUREREPORT) 3143 return "MeasureReport"; 3144 if (code == EventResourceType.MEDIA) 3145 return "Media"; 3146 if (code == EventResourceType.MEDICATIONADMINISTRATION) 3147 return "MedicationAdministration"; 3148 if (code == EventResourceType.MEDICATIONDISPENSE) 3149 return "MedicationDispense"; 3150 if (code == EventResourceType.MEDICATIONUSAGE) 3151 return "MedicationUsage"; 3152 if (code == EventResourceType.OBSERVATION) 3153 return "Observation"; 3154 if (code == EventResourceType.PAYMENTNOTICE) 3155 return "PaymentNotice"; 3156 if (code == EventResourceType.PAYMENTRECONCILIATION) 3157 return "PaymentReconciliation"; 3158 if (code == EventResourceType.PROCEDURE) 3159 return "Procedure"; 3160 if (code == EventResourceType.PROCESSRESPONSE) 3161 return "ProcessResponse"; 3162 if (code == EventResourceType.QUESTIONNAIRERESPONSE) 3163 return "QuestionnaireResponse"; 3164 if (code == EventResourceType.RISKASSESSMENT) 3165 return "RiskAssessment"; 3166 if (code == EventResourceType.SUPPLYDELIVERY) 3167 return "SupplyDelivery"; 3168 if (code == EventResourceType.TASK) 3169 return "Task"; 3170 return "?"; 3171 } 3172 public String toSystem(EventResourceType code) { 3173 return code.getSystem(); 3174 } 3175 } 3176 3177 public enum FHIRAllTypes { 3178 /** 3179 * An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world. 3180 */ 3181 ADDRESS, 3182 /** 3183 * A duration of time during which an organism (or a process) has existed. 3184 */ 3185 AGE, 3186 /** 3187 * A text note which also contains information about who made the statement and when. 3188 */ 3189 ANNOTATION, 3190 /** 3191 * For referring to data content defined in other formats. 3192 */ 3193 ATTACHMENT, 3194 /** 3195 * Base definition for all elements that are defined inside a resource - but not those in a data type. 3196 */ 3197 BACKBONEELEMENT, 3198 /** 3199 * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text. 3200 */ 3201 CODEABLECONCEPT, 3202 /** 3203 * A reference to a code defined by a terminology system. 3204 */ 3205 CODING, 3206 /** 3207 * Specifies contact information for a person or organization. 3208 */ 3209 CONTACTDETAIL, 3210 /** 3211 * Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc. 3212 */ 3213 CONTACTPOINT, 3214 /** 3215 * A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers. 3216 */ 3217 CONTRIBUTOR, 3218 /** 3219 * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. 3220 */ 3221 COUNT, 3222 /** 3223 * Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data. 3224 */ 3225 DATAREQUIREMENT, 3226 /** 3227 * A length - a value with a unit that is a physical distance. 3228 */ 3229 DISTANCE, 3230 /** 3231 * Indicates how the medication is/was taken or should be taken by the patient. 3232 */ 3233 DOSAGE, 3234 /** 3235 * A length of time. 3236 */ 3237 DURATION, 3238 /** 3239 * Base definition for all elements in a resource. 3240 */ 3241 ELEMENT, 3242 /** 3243 * Captures constraints on each element within the resource, profile, or extension. 3244 */ 3245 ELEMENTDEFINITION, 3246 /** 3247 * A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used. 3248 */ 3249 EXPRESSION, 3250 /** 3251 * Optional Extension Element - found in all resources. 3252 */ 3253 EXTENSION, 3254 /** 3255 * A human's name with the ability to identify parts and usage. 3256 */ 3257 HUMANNAME, 3258 /** 3259 * An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers. 3260 */ 3261 IDENTIFIER, 3262 /** 3263 * The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available. 3264 */ 3265 MARKETINGSTATUS, 3266 /** 3267 * The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource. 3268 */ 3269 META, 3270 /** 3271 * An amount of economic utility in some recognized currency. 3272 */ 3273 MONEY, 3274 /** 3275 * null 3276 */ 3277 MONEYQUANTITY, 3278 /** 3279 * A human-readable summary of the resource conveying the essential clinical and business information for the resource. 3280 */ 3281 NARRATIVE, 3282 /** 3283 * An ordered list (distribution) of statistics. 3284 */ 3285 ORDEREDDISTRIBUTION, 3286 /** 3287 * The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse. 3288 */ 3289 PARAMETERDEFINITION, 3290 /** 3291 * A time period defined by a start and end date and optionally time. 3292 */ 3293 PERIOD, 3294 /** 3295 * A populatioof people with some set of grouping criteria. 3296 */ 3297 POPULATION, 3298 /** 3299 * The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available. 3300 */ 3301 PRODCHARACTERISTIC, 3302 /** 3303 * The shelf-life and storage information for a medicinal product item or container can be described using this class. 3304 */ 3305 PRODUCTSHELFLIFE, 3306 /** 3307 * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. 3308 */ 3309 QUANTITY, 3310 /** 3311 * A set of ordered Quantities defined by a low and high limit. 3312 */ 3313 RANGE, 3314 /** 3315 * A relationship of two Quantity values - expressed as a numerator and a denominator. 3316 */ 3317 RATIO, 3318 /** 3319 * A reference from one resource to another. 3320 */ 3321 REFERENCE, 3322 /** 3323 * Related artifacts such as additional documentation, justification, or bibliographic references. 3324 */ 3325 RELATEDARTIFACT, 3326 /** 3327 * A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data. 3328 */ 3329 SAMPLEDDATA, 3330 /** 3331 * A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities. 3332 */ 3333 SIGNATURE, 3334 /** 3335 * null 3336 */ 3337 SIMPLEQUANTITY, 3338 /** 3339 * A fact or piece of data from a study of a large quantity of numerical data. A mathematical or quantified characteristic of a group of observations. 3340 */ 3341 STATISTIC, 3342 /** 3343 * Chemical substances are a single substance type whose primary defining element is the molecular structure. Chemical substances shall be defined on the basis of their complete covalent molecular structure; the presence of a salt (counter-ion) and/or solvates (water, alcohols) is also captured. Purity, grade, physical form or particle size are not taken into account in the definition of a chemical substance or in the assignment of a Substance ID. 3344 */ 3345 SUBSTANCEAMOUNT, 3346 /** 3347 * Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out. 3348 */ 3349 TIMING, 3350 /** 3351 * A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element. 3352 */ 3353 TRIGGERDEFINITION, 3354 /** 3355 * Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care). 3356 */ 3357 USAGECONTEXT, 3358 /** 3359 * A stream of bytes 3360 */ 3361 BASE64BINARY, 3362 /** 3363 * Value of "true" or "false" 3364 */ 3365 BOOLEAN, 3366 /** 3367 * A URI that is a reference to a canonical URL on a FHIR resource 3368 */ 3369 CANONICAL, 3370 /** 3371 * A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents 3372 */ 3373 CODE, 3374 /** 3375 * A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates. 3376 */ 3377 DATE, 3378 /** 3379 * A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates. 3380 */ 3381 DATETIME, 3382 /** 3383 * A rational number with implicit precision 3384 */ 3385 DECIMAL, 3386 /** 3387 * Any combination of letters, numerals, "-" and ".", with a length limit of 64 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Ids are case-insensitive. 3388 */ 3389 ID, 3390 /** 3391 * An instant in time - known at least to the second 3392 */ 3393 INSTANT, 3394 /** 3395 * A whole number 3396 */ 3397 INTEGER, 3398 /** 3399 * A string that may contain Github Flavored Markdown syntax for optional processing by a mark down presentation engine 3400 */ 3401 MARKDOWN, 3402 /** 3403 * An OID represented as a URI 3404 */ 3405 OID, 3406 /** 3407 * An integer with a value that is positive (e.g. >0) 3408 */ 3409 POSITIVEINT, 3410 /** 3411 * A sequence of Unicode characters 3412 */ 3413 STRING, 3414 /** 3415 * A time during the day, with no date specified 3416 */ 3417 TIME, 3418 /** 3419 * An integer with a value that is not negative (e.g. >= 0) 3420 */ 3421 UNSIGNEDINT, 3422 /** 3423 * String of characters used to identify a name or a resource 3424 */ 3425 URI, 3426 /** 3427 * A URI that is a literal reference 3428 */ 3429 URL, 3430 /** 3431 * A UUID, represented as a URI 3432 */ 3433 UUID, 3434 /** 3435 * XHTML format, as defined by W3C, but restricted usage (mainly, no active content) 3436 */ 3437 XHTML, 3438 /** 3439 * A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centers, etc. 3440 */ 3441 ACCOUNT, 3442 /** 3443 * This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context. 3444 */ 3445 ACTIVITYDEFINITION, 3446 /** 3447 * A pharmaceutical product described in terms of its composition and dose form. 3448 */ 3449 ADMINISTRABLEPRODUCTDEFINITION, 3450 /** 3451 * An event (i.e. any change to current patient status) that may be related to unintended effects on a patient or research subject. The unintended effects may require additional monitoring, treatment or hospitalization or may result in death. The AdverseEvent resource also extends to potential or avoided events that could have had such effects. 3452 */ 3453 ADVERSEEVENT, 3454 /** 3455 * Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance. 3456 */ 3457 ALLERGYINTOLERANCE, 3458 /** 3459 * A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s). 3460 */ 3461 APPOINTMENT, 3462 /** 3463 * A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection. 3464 */ 3465 APPOINTMENTRESPONSE, 3466 /** 3467 * A record of an event relevant for purposes such as operations, privacy, security, maintenance, and performance analysis. 3468 */ 3469 AUDITEVENT, 3470 /** 3471 * Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification. 3472 */ 3473 BASIC, 3474 /** 3475 * A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc. 3476 */ 3477 BINARY, 3478 /** 3479 * A material substance originating from a biological entity intended to be transplanted or infused 3480into another (possibly the same) biological entity. 3481 */ 3482 BIOLOGICALLYDERIVEDPRODUCT, 3483 /** 3484 * Record details about an anatomical structure. This resource may be used when a coded concept does not provide the necessary detail needed for the use case. 3485 */ 3486 BODYSTRUCTURE, 3487 /** 3488 * A container for a collection of resources. 3489 */ 3490 BUNDLE, 3491 /** 3492 * A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation. 3493 */ 3494 CAPABILITYSTATEMENT, 3495 /** 3496 * A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation. 3497 */ 3498 CAPABILITYSTATEMENT2, 3499 /** 3500 * Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions. 3501 */ 3502 CAREPLAN, 3503 /** 3504 * The Care Team includes all the people and organizations who plan to participate in the coordination and delivery of care. 3505 */ 3506 CARETEAM, 3507 /** 3508 * Catalog entries are wrappers that contextualize items included in a catalog. 3509 */ 3510 CATALOGENTRY, 3511 /** 3512 * The resource ChargeItem describes the provision of healthcare provider products for a certain patient, therefore referring not only to the product, but containing in addition details of the provision, like date, time, amounts and participating organizations and persons. Main Usage of the ChargeItem is to enable the billing process and internal cost allocation. 3513 */ 3514 CHARGEITEM, 3515 /** 3516 * The ChargeItemDefinition resource provides the properties that apply to the (billing) codes necessary to calculate costs and prices. The properties may differ largely depending on type and realm, therefore this resource gives only a rough structure and requires profiling for each type of billing code system. 3517 */ 3518 CHARGEITEMDEFINITION, 3519 /** 3520 * A provider issued list of professional services and products which have been provided, or are to be provided, to a patient which is sent to an insurer for reimbursement. 3521 */ 3522 CLAIM, 3523 /** 3524 * This resource provides the adjudication details from the processing of a Claim resource. 3525 */ 3526 CLAIMRESPONSE, 3527 /** 3528 * A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. This resource is called "ClinicalImpression" rather than "ClinicalAssessment" to avoid confusion with the recording of assessment tools such as Apgar score. 3529 */ 3530 CLINICALIMPRESSION, 3531 /** 3532 * A single item of clinical particulars - an indication, contraindication, interaction etc. for a medicinal product. 3533 */ 3534 CLINICALUSEISSUE, 3535 /** 3536 * The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content. 3537 */ 3538 CODESYSTEM, 3539 /** 3540 * An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency communication to a provider/reporter in response to a case report for a reportable condition. 3541 */ 3542 COMMUNICATION, 3543 /** 3544 * A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition. 3545 */ 3546 COMMUNICATIONREQUEST, 3547 /** 3548 * A compartment definition that defines how resources are accessed on a server. 3549 */ 3550 COMPARTMENTDEFINITION, 3551 /** 3552 * A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.). 3553 */ 3554 COMPOSITION, 3555 /** 3556 * A statement of relationships from one set of concepts to one or more other concepts - either concepts in code systems, or data element/data element concepts, or classes in class models. 3557 */ 3558 CONCEPTMAP, 3559 /** 3560 * A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern. 3561 */ 3562 CONDITION, 3563 /** 3564 * A definition of a condition and information relevant to managing it. 3565 */ 3566 CONDITIONDEFINITION, 3567 /** 3568 * A record of a healthcare consumer’s choices or choices made on their behalf by a third party, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time. 3569 */ 3570 CONSENT, 3571 /** 3572 * Legally enforceable, formally recorded unilateral or bilateral directive i.e., a policy or agreement. 3573 */ 3574 CONTRACT, 3575 /** 3576 * Financial instrument which may be used to reimburse or pay for health care products and services. Includes both insurance and self-payment. 3577 */ 3578 COVERAGE, 3579 /** 3580 * The CoverageEligibilityRequest provides patient and insurance coverage information to an insurer for them to respond, in the form of an CoverageEligibilityResponse, with information regarding whether the stated coverage is valid and in-force and optionally to provide the insurance details of the policy. 3581 */ 3582 COVERAGEELIGIBILITYREQUEST, 3583 /** 3584 * This resource provides eligibility and plan details from the processing of an CoverageEligibilityRequest resource. 3585 */ 3586 COVERAGEELIGIBILITYRESPONSE, 3587 /** 3588 * Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc. 3589 */ 3590 DETECTEDISSUE, 3591 /** 3592 * A type of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device. 3593 */ 3594 DEVICE, 3595 /** 3596 * The characteristics, operational status and capabilities of a medical-related component of a medical device. 3597 */ 3598 DEVICEDEFINITION, 3599 /** 3600 * Describes a measurement, calculation or setting capability of a medical device. 3601 */ 3602 DEVICEMETRIC, 3603 /** 3604 * Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker. 3605 */ 3606 DEVICEREQUEST, 3607 /** 3608 * A record of a device being used by a patient where the record is the result of a report from the patient or another clinician. 3609 */ 3610 DEVICEUSESTATEMENT, 3611 /** 3612 * The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. 3613 */ 3614 DIAGNOSTICREPORT, 3615 /** 3616 * A collection of documents compiled for a purpose together with metadata that applies to the collection. 3617 */ 3618 DOCUMENTMANIFEST, 3619 /** 3620 * A reference to a document of any kind for any purpose. While the term “document” implies a more narrow focus, for this resource this "document" encompasses *any* seralized object with a mime-type, so includes formal patient centric documents (CDA), clniical notes, scanned paper, non-patient specific documents like policy text, as well as a photo, video, or audio recording acquired or used in healthcare. The DocumentReference resource provides metadata about the document so that the document can be discovered and managed. The actual content may be inline base64 encoded data or provided by direct reference. 3621 */ 3622 DOCUMENTREFERENCE, 3623 /** 3624 * A resource that includes narrative, extensions, and contained resources. 3625 */ 3626 DOMAINRESOURCE, 3627 /** 3628 * An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient. 3629 */ 3630 ENCOUNTER, 3631 /** 3632 * The technical details of an endpoint that can be used for electronic services, such as for web services providing XDS.b or a REST endpoint for another FHIR server. This may include any security context information. 3633 */ 3634 ENDPOINT, 3635 /** 3636 * This resource provides the insurance enrollment details to the insurer regarding a specified coverage. 3637 */ 3638 ENROLLMENTREQUEST, 3639 /** 3640 * This resource provides enrollment and plan details from the processing of an EnrollmentRequest resource. 3641 */ 3642 ENROLLMENTRESPONSE, 3643 /** 3644 * An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time. 3645 */ 3646 EPISODEOFCARE, 3647 /** 3648 * The EventDefinition resource provides a reusable description of when a particular event can occur. 3649 */ 3650 EVENTDEFINITION, 3651 /** 3652 * This represents statistics, certainty, both the intended and actual population, and evidence variables. 3653 */ 3654 EVIDENCE, 3655 /** 3656 * The EvidenceVariable resource describes a "PICO" element that knowledge (evidence, assertion, recommendation) is about. 3657 */ 3658 EVIDENCEVARIABLE, 3659 /** 3660 * Example of workflow instance. 3661 */ 3662 EXAMPLESCENARIO, 3663 /** 3664 * This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided. 3665 */ 3666 EXPLANATIONOFBENEFIT, 3667 /** 3668 * Significant health conditions for a person related to the patient relevant in the context of care for the patient. 3669 */ 3670 FAMILYMEMBERHISTORY, 3671 /** 3672 * Prospective warnings of potential issues when providing care to the patient. 3673 */ 3674 FLAG, 3675 /** 3676 * Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc. 3677 */ 3678 GOAL, 3679 /** 3680 * A formal computable definition of a graph of resources - that is, a coherent set of resources that form a graph by following references. The Graph Definition resource defines a set and makes rules about the set. 3681 */ 3682 GRAPHDEFINITION, 3683 /** 3684 * Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively, and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization. 3685 */ 3686 GROUP, 3687 /** 3688 * A guidance response is the formal response to a guidance request, including any output parameters returned by the evaluation, as well as the description of any proposed actions to be taken. 3689 */ 3690 GUIDANCERESPONSE, 3691 /** 3692 * The details of a healthcare service available at a location. 3693 */ 3694 HEALTHCARESERVICE, 3695 /** 3696 * Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities. 3697 */ 3698 IMAGINGSTUDY, 3699 /** 3700 * Describes the event of a patient being administered a vaccine or a record of an immunization as reported by a patient, a clinician or another party. 3701 */ 3702 IMMUNIZATION, 3703 /** 3704 * Describes a comparison of an immunization event against published recommendations to determine if the administration is "valid" in relation to those recommendations. 3705 */ 3706 IMMUNIZATIONEVALUATION, 3707 /** 3708 * A patient's point-in-time set of recommendations (i.e. forecasting) according to a published schedule with optional supporting justification. 3709 */ 3710 IMMUNIZATIONRECOMMENDATION, 3711 /** 3712 * A set of rules of how a particular interoperability or standards problem is solved - typically through the use of FHIR resources. This resource is used to gather all the parts of an implementation guide into a logical whole and to publish a computable definition of all the parts. 3713 */ 3714 IMPLEMENTATIONGUIDE, 3715 /** 3716 * An ingredient of a manufactured item or pharmaceutical product. 3717 */ 3718 INGREDIENT, 3719 /** 3720 * Details of a Health Insurance product/plan provided by an organization. 3721 */ 3722 INSURANCEPLAN, 3723 /** 3724 * Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose. 3725 */ 3726 INVOICE, 3727 /** 3728 * The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets. 3729 */ 3730 LIBRARY, 3731 /** 3732 * Identifies two or more records (resource instances) that refer to the same real-world "occurrence". 3733 */ 3734 LINKAGE, 3735 /** 3736 * A list is a curated collection of resources. 3737 */ 3738 LIST, 3739 /** 3740 * Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated. 3741 */ 3742 LOCATION, 3743 /** 3744 * The manufactured item as contained in the packaged medicinal product. 3745 */ 3746 MANUFACTUREDITEMDEFINITION, 3747 /** 3748 * The Measure resource provides the definition of a quality measure. 3749 */ 3750 MEASURE, 3751 /** 3752 * The MeasureReport resource contains the results of the calculation of a measure; and optionally a reference to the resources involved in that calculation. 3753 */ 3754 MEASUREREPORT, 3755 /** 3756 * This resource is primarily used for the identification and definition of a medication for the purposes of prescribing, dispensing, and administering a medication as well as for making statements about medication use. 3757 */ 3758 MEDICATION, 3759 /** 3760 * Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner. 3761 */ 3762 MEDICATIONADMINISTRATION, 3763 /** 3764 * Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order. 3765 */ 3766 MEDICATIONDISPENSE, 3767 /** 3768 * Information about a medication that is used to support knowledge. 3769 */ 3770 MEDICATIONKNOWLEDGE, 3771 /** 3772 * An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called "MedicationRequest" rather than "MedicationPrescription" or "MedicationOrder" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns. 3773 */ 3774 MEDICATIONREQUEST, 3775 /** 3776 * A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. 3777 3778The primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information. 3779 */ 3780 MEDICATIONUSAGE, 3781 /** 3782 * Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use). 3783 */ 3784 MEDICINALPRODUCTDEFINITION, 3785 /** 3786 * Defines the characteristics of a message that can be shared between systems, including the type of event that initiates the message, the content to be transmitted and what response(s), if any, are permitted. 3787 */ 3788 MESSAGEDEFINITION, 3789 /** 3790 * The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle. 3791 */ 3792 MESSAGEHEADER, 3793 /** 3794 * Raw data describing a biological sequence. 3795 */ 3796 MOLECULARSEQUENCE, 3797 /** 3798 * A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a "System" used within the Identifier and Coding data types. 3799 */ 3800 NAMINGSYSTEM, 3801 /** 3802 * A record of food or fluid that is being consumed by a patient. A NutritionIntake may indicate that the patient may be consuming the food or fluid now or has consumed the food or fluid in the past. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay or through an app that tracks food or fluids consumed. The consumption information may come from sources such as the patient's memory, from a nutrition label, or from a clinician documenting observed intake. 3803 */ 3804 NUTRITIONINTAKE, 3805 /** 3806 * A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident. 3807 */ 3808 NUTRITIONORDER, 3809 /** 3810 * Measurements and simple assertions made about a patient, device or other subject. 3811 */ 3812 OBSERVATION, 3813 /** 3814 * Set of definitional characteristics for a kind of observation or measurement produced or consumed by an orderable health care service. 3815 */ 3816 OBSERVATIONDEFINITION, 3817 /** 3818 * A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction). 3819 */ 3820 OPERATIONDEFINITION, 3821 /** 3822 * A collection of error, warning, or information messages that result from a system action. 3823 */ 3824 OPERATIONOUTCOME, 3825 /** 3826 * A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, etc. 3827 */ 3828 ORGANIZATION, 3829 /** 3830 * Defines an affiliation/assotiation/relationship between 2 distinct oganizations, that is not a part-of relationship/sub-division relationship. 3831 */ 3832 ORGANIZATIONAFFILIATION, 3833 /** 3834 * A medicinal product in a container or package. 3835 */ 3836 PACKAGEDPRODUCTDEFINITION, 3837 /** 3838 * This resource is a non-persisted resource used to pass information into and back from an [operation](operations.html). It has no other use, and there is no RESTful endpoint associated with it. 3839 */ 3840 PARAMETERS, 3841 /** 3842 * Demographics and other administrative information about an individual or animal receiving care or other health-related services. 3843 */ 3844 PATIENT, 3845 /** 3846 * This resource provides the status of the payment for goods and services rendered, and the request and response resource references. 3847 */ 3848 PAYMENTNOTICE, 3849 /** 3850 * This resource provides the details including amount of a payment and allocates the payment items being paid. 3851 */ 3852 PAYMENTRECONCILIATION, 3853 /** 3854 * Demographics and administrative information about a person independent of a specific health-related context. 3855 */ 3856 PERSON, 3857 /** 3858 * This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols. 3859 */ 3860 PLANDEFINITION, 3861 /** 3862 * A person who is directly or indirectly involved in the provisioning of healthcare. 3863 */ 3864 PRACTITIONER, 3865 /** 3866 * A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time. 3867 */ 3868 PRACTITIONERROLE, 3869 /** 3870 * An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy. 3871 */ 3872 PROCEDURE, 3873 /** 3874 * Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies. 3875 */ 3876 PROVENANCE, 3877 /** 3878 * A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection. 3879 */ 3880 QUESTIONNAIRE, 3881 /** 3882 * A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to. 3883 */ 3884 QUESTIONNAIRERESPONSE, 3885 /** 3886 * The regulatory authorization of a medicinal product. 3887 */ 3888 REGULATEDAUTHORIZATION, 3889 /** 3890 * Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process. 3891 */ 3892 RELATEDPERSON, 3893 /** 3894 * A group of related requests that can be used to capture intended activities that have inter-dependencies such as "give this medication after that one". 3895 */ 3896 REQUESTGROUP, 3897 /** 3898 * A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects. 3899 */ 3900 RESEARCHSTUDY, 3901 /** 3902 * A physical entity which is the primary unit of operational and/or administrative interest in a study. 3903 */ 3904 RESEARCHSUBJECT, 3905 /** 3906 * This is the base resource type for everything. 3907 */ 3908 RESOURCE, 3909 /** 3910 * An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome. 3911 */ 3912 RISKASSESSMENT, 3913 /** 3914 * A container for slots of time that may be available for booking appointments. 3915 */ 3916 SCHEDULE, 3917 /** 3918 * A search parameter that defines a named search item that can be used to search/filter on a resource. 3919 */ 3920 SEARCHPARAMETER, 3921 /** 3922 * A record of a request for service such as diagnostic investigations, treatments, or operations to be performed. 3923 */ 3924 SERVICEREQUEST, 3925 /** 3926 * A slot of time on a schedule that may be available for booking appointments. 3927 */ 3928 SLOT, 3929 /** 3930 * A sample to be used for analysis. 3931 */ 3932 SPECIMEN, 3933 /** 3934 * A kind of specimen with associated set of requirements. 3935 */ 3936 SPECIMENDEFINITION, 3937 /** 3938 * A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions and constraints on resources and data types. 3939 */ 3940 STRUCTUREDEFINITION, 3941 /** 3942 * A Map of relationships between 2 structures that can be used to transform data. 3943 */ 3944 STRUCTUREMAP, 3945 /** 3946 * The subscription resource describes a particular client's request to be notified about a Topic. 3947 */ 3948 SUBSCRIPTION, 3949 /** 3950 * A homogeneous material with a definite composition. 3951 */ 3952 SUBSTANCE, 3953 /** 3954 * The detailed description of a substance, typically at a level beyond what is used for prescribing. 3955 */ 3956 SUBSTANCEDEFINITION, 3957 /** 3958 * Nucleic acids are defined by three distinct elements: the base, sugar and linkage. Individual substance/moiety IDs will be created for each of these elements. The nucleotide sequence will be always entered in the 5’-3’ direction. 3959 */ 3960 SUBSTANCENUCLEICACID, 3961 /** 3962 * Todo. 3963 */ 3964 SUBSTANCEPOLYMER, 3965 /** 3966 * A SubstanceProtein is defined as a single unit of a linear amino acid sequence, or a combination of subunits that are either covalently linked or have a defined invariant stoichiometric relationship. This includes all synthetic, recombinant and purified SubstanceProteins of defined sequence, whether the use is therapeutic or prophylactic. This set of elements will be used to describe albumins, coagulation factors, cytokines, growth factors, peptide/SubstanceProtein hormones, enzymes, toxins, toxoids, recombinant vaccines, and immunomodulators. 3967 */ 3968 SUBSTANCEPROTEIN, 3969 /** 3970 * Todo. 3971 */ 3972 SUBSTANCEREFERENCEINFORMATION, 3973 /** 3974 * Source material shall capture information on the taxonomic and anatomical origins as well as the fraction of a material that can result in or can be modified to form a substance. This set of data elements shall be used to define polymer substances isolated from biological matrices. Taxonomic and anatomical origins shall be described using a controlled vocabulary as required. This information is captured for naturally derived polymers ( . starch) and structurally diverse substances. For Organisms belonging to the Kingdom Plantae the Substance level defines the fresh material of a single species or infraspecies, the Herbal Drug and the Herbal preparation. For Herbal preparations, the fraction information will be captured at the Substance information level and additional information for herbal extracts will be captured at the Specified Substance Group 1 information level. See for further explanation the Substance Class: Structurally Diverse and the herbal annex. 3975 */ 3976 SUBSTANCESOURCEMATERIAL, 3977 /** 3978 * Record of delivery of what is supplied. 3979 */ 3980 SUPPLYDELIVERY, 3981 /** 3982 * A record of a request for a medication, substance or device used in the healthcare setting. 3983 */ 3984 SUPPLYREQUEST, 3985 /** 3986 * A task to be performed. 3987 */ 3988 TASK, 3989 /** 3990 * A TerminologyCapabilities resource documents a set of capabilities (behaviors) of a FHIR Terminology Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation. 3991 */ 3992 TERMINOLOGYCAPABILITIES, 3993 /** 3994 * A summary of information based on the results of executing a TestScript. 3995 */ 3996 TESTREPORT, 3997 /** 3998 * A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification. 3999 */ 4000 TESTSCRIPT, 4001 /** 4002 * Describes a stream of resource state changes identified by trigger criteria and annotated with labels useful to filter projections from this topic. 4003 */ 4004 TOPIC, 4005 /** 4006 * A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html). 4007 */ 4008 VALUESET, 4009 /** 4010 * Describes validation requirements, source(s), status and dates for one or more elements. 4011 */ 4012 VERIFICATIONRESULT, 4013 /** 4014 * An authorization for the provision of glasses and/or contact lenses to a patient. 4015 */ 4016 VISIONPRESCRIPTION, 4017 /** 4018 * A place holder that means any kind of data type 4019 */ 4020 TYPE, 4021 /** 4022 * A place holder that means any kind of resource 4023 */ 4024 ANY, 4025 /** 4026 * added to help the parsers 4027 */ 4028 NULL; 4029 public static FHIRAllTypes fromCode(String codeString) throws FHIRException { 4030 if (codeString == null || "".equals(codeString)) 4031 return null; 4032 if ("Address".equals(codeString)) 4033 return ADDRESS; 4034 if ("Age".equals(codeString)) 4035 return AGE; 4036 if ("Annotation".equals(codeString)) 4037 return ANNOTATION; 4038 if ("Attachment".equals(codeString)) 4039 return ATTACHMENT; 4040 if ("BackboneElement".equals(codeString)) 4041 return BACKBONEELEMENT; 4042 if ("CodeableConcept".equals(codeString)) 4043 return CODEABLECONCEPT; 4044 if ("Coding".equals(codeString)) 4045 return CODING; 4046 if ("ContactDetail".equals(codeString)) 4047 return CONTACTDETAIL; 4048 if ("ContactPoint".equals(codeString)) 4049 return CONTACTPOINT; 4050 if ("Contributor".equals(codeString)) 4051 return CONTRIBUTOR; 4052 if ("Count".equals(codeString)) 4053 return COUNT; 4054 if ("DataRequirement".equals(codeString)) 4055 return DATAREQUIREMENT; 4056 if ("Distance".equals(codeString)) 4057 return DISTANCE; 4058 if ("Dosage".equals(codeString)) 4059 return DOSAGE; 4060 if ("Duration".equals(codeString)) 4061 return DURATION; 4062 if ("Element".equals(codeString)) 4063 return ELEMENT; 4064 if ("ElementDefinition".equals(codeString)) 4065 return ELEMENTDEFINITION; 4066 if ("Expression".equals(codeString)) 4067 return EXPRESSION; 4068 if ("Extension".equals(codeString)) 4069 return EXTENSION; 4070 if ("HumanName".equals(codeString)) 4071 return HUMANNAME; 4072 if ("Identifier".equals(codeString)) 4073 return IDENTIFIER; 4074 if ("MarketingStatus".equals(codeString)) 4075 return MARKETINGSTATUS; 4076 if ("Meta".equals(codeString)) 4077 return META; 4078 if ("Money".equals(codeString)) 4079 return MONEY; 4080 if ("MoneyQuantity".equals(codeString)) 4081 return MONEYQUANTITY; 4082 if ("Narrative".equals(codeString)) 4083 return NARRATIVE; 4084 if ("OrderedDistribution".equals(codeString)) 4085 return ORDEREDDISTRIBUTION; 4086 if ("ParameterDefinition".equals(codeString)) 4087 return PARAMETERDEFINITION; 4088 if ("Period".equals(codeString)) 4089 return PERIOD; 4090 if ("Population".equals(codeString)) 4091 return POPULATION; 4092 if ("ProdCharacteristic".equals(codeString)) 4093 return PRODCHARACTERISTIC; 4094 if ("ProductShelfLife".equals(codeString)) 4095 return PRODUCTSHELFLIFE; 4096 if ("Quantity".equals(codeString)) 4097 return QUANTITY; 4098 if ("Range".equals(codeString)) 4099 return RANGE; 4100 if ("Ratio".equals(codeString)) 4101 return RATIO; 4102 if ("Reference".equals(codeString)) 4103 return REFERENCE; 4104 if ("RelatedArtifact".equals(codeString)) 4105 return RELATEDARTIFACT; 4106 if ("SampledData".equals(codeString)) 4107 return SAMPLEDDATA; 4108 if ("Signature".equals(codeString)) 4109 return SIGNATURE; 4110 if ("SimpleQuantity".equals(codeString)) 4111 return SIMPLEQUANTITY; 4112 if ("Statistic".equals(codeString)) 4113 return STATISTIC; 4114 if ("SubstanceAmount".equals(codeString)) 4115 return SUBSTANCEAMOUNT; 4116 if ("Timing".equals(codeString)) 4117 return TIMING; 4118 if ("TriggerDefinition".equals(codeString)) 4119 return TRIGGERDEFINITION; 4120 if ("UsageContext".equals(codeString)) 4121 return USAGECONTEXT; 4122 if ("base64Binary".equals(codeString)) 4123 return BASE64BINARY; 4124 if ("boolean".equals(codeString)) 4125 return BOOLEAN; 4126 if ("canonical".equals(codeString)) 4127 return CANONICAL; 4128 if ("code".equals(codeString)) 4129 return CODE; 4130 if ("date".equals(codeString)) 4131 return DATE; 4132 if ("dateTime".equals(codeString)) 4133 return DATETIME; 4134 if ("decimal".equals(codeString)) 4135 return DECIMAL; 4136 if ("id".equals(codeString)) 4137 return ID; 4138 if ("instant".equals(codeString)) 4139 return INSTANT; 4140 if ("integer".equals(codeString)) 4141 return INTEGER; 4142 if ("markdown".equals(codeString)) 4143 return MARKDOWN; 4144 if ("oid".equals(codeString)) 4145 return OID; 4146 if ("positiveInt".equals(codeString)) 4147 return POSITIVEINT; 4148 if ("string".equals(codeString)) 4149 return STRING; 4150 if ("time".equals(codeString)) 4151 return TIME; 4152 if ("unsignedInt".equals(codeString)) 4153 return UNSIGNEDINT; 4154 if ("uri".equals(codeString)) 4155 return URI; 4156 if ("url".equals(codeString)) 4157 return URL; 4158 if ("uuid".equals(codeString)) 4159 return UUID; 4160 if ("xhtml".equals(codeString)) 4161 return XHTML; 4162 if ("Account".equals(codeString)) 4163 return ACCOUNT; 4164 if ("ActivityDefinition".equals(codeString)) 4165 return ACTIVITYDEFINITION; 4166 if ("AdministrableProductDefinition".equals(codeString)) 4167 return ADMINISTRABLEPRODUCTDEFINITION; 4168 if ("AdverseEvent".equals(codeString)) 4169 return ADVERSEEVENT; 4170 if ("AllergyIntolerance".equals(codeString)) 4171 return ALLERGYINTOLERANCE; 4172 if ("Appointment".equals(codeString)) 4173 return APPOINTMENT; 4174 if ("AppointmentResponse".equals(codeString)) 4175 return APPOINTMENTRESPONSE; 4176 if ("AuditEvent".equals(codeString)) 4177 return AUDITEVENT; 4178 if ("Basic".equals(codeString)) 4179 return BASIC; 4180 if ("Binary".equals(codeString)) 4181 return BINARY; 4182 if ("BiologicallyDerivedProduct".equals(codeString)) 4183 return BIOLOGICALLYDERIVEDPRODUCT; 4184 if ("BodyStructure".equals(codeString)) 4185 return BODYSTRUCTURE; 4186 if ("Bundle".equals(codeString)) 4187 return BUNDLE; 4188 if ("CapabilityStatement".equals(codeString)) 4189 return CAPABILITYSTATEMENT; 4190 if ("CapabilityStatement2".equals(codeString)) 4191 return CAPABILITYSTATEMENT2; 4192 if ("CarePlan".equals(codeString)) 4193 return CAREPLAN; 4194 if ("CareTeam".equals(codeString)) 4195 return CARETEAM; 4196 if ("CatalogEntry".equals(codeString)) 4197 return CATALOGENTRY; 4198 if ("ChargeItem".equals(codeString)) 4199 return CHARGEITEM; 4200 if ("ChargeItemDefinition".equals(codeString)) 4201 return CHARGEITEMDEFINITION; 4202 if ("Claim".equals(codeString)) 4203 return CLAIM; 4204 if ("ClaimResponse".equals(codeString)) 4205 return CLAIMRESPONSE; 4206 if ("ClinicalImpression".equals(codeString)) 4207 return CLINICALIMPRESSION; 4208 if ("ClinicalUseIssue".equals(codeString)) 4209 return CLINICALUSEISSUE; 4210 if ("CodeSystem".equals(codeString)) 4211 return CODESYSTEM; 4212 if ("Communication".equals(codeString)) 4213 return COMMUNICATION; 4214 if ("CommunicationRequest".equals(codeString)) 4215 return COMMUNICATIONREQUEST; 4216 if ("CompartmentDefinition".equals(codeString)) 4217 return COMPARTMENTDEFINITION; 4218 if ("Composition".equals(codeString)) 4219 return COMPOSITION; 4220 if ("ConceptMap".equals(codeString)) 4221 return CONCEPTMAP; 4222 if ("Condition".equals(codeString)) 4223 return CONDITION; 4224 if ("ConditionDefinition".equals(codeString)) 4225 return CONDITIONDEFINITION; 4226 if ("Consent".equals(codeString)) 4227 return CONSENT; 4228 if ("Contract".equals(codeString)) 4229 return CONTRACT; 4230 if ("Coverage".equals(codeString)) 4231 return COVERAGE; 4232 if ("CoverageEligibilityRequest".equals(codeString)) 4233 return COVERAGEELIGIBILITYREQUEST; 4234 if ("CoverageEligibilityResponse".equals(codeString)) 4235 return COVERAGEELIGIBILITYRESPONSE; 4236 if ("DetectedIssue".equals(codeString)) 4237 return DETECTEDISSUE; 4238 if ("Device".equals(codeString)) 4239 return DEVICE; 4240 if ("DeviceDefinition".equals(codeString)) 4241 return DEVICEDEFINITION; 4242 if ("DeviceMetric".equals(codeString)) 4243 return DEVICEMETRIC; 4244 if ("DeviceRequest".equals(codeString)) 4245 return DEVICEREQUEST; 4246 if ("DeviceUseStatement".equals(codeString)) 4247 return DEVICEUSESTATEMENT; 4248 if ("DiagnosticReport".equals(codeString)) 4249 return DIAGNOSTICREPORT; 4250 if ("DocumentManifest".equals(codeString)) 4251 return DOCUMENTMANIFEST; 4252 if ("DocumentReference".equals(codeString)) 4253 return DOCUMENTREFERENCE; 4254 if ("DomainResource".equals(codeString)) 4255 return DOMAINRESOURCE; 4256 if ("Encounter".equals(codeString)) 4257 return ENCOUNTER; 4258 if ("Endpoint".equals(codeString)) 4259 return ENDPOINT; 4260 if ("EnrollmentRequest".equals(codeString)) 4261 return ENROLLMENTREQUEST; 4262 if ("EnrollmentResponse".equals(codeString)) 4263 return ENROLLMENTRESPONSE; 4264 if ("EpisodeOfCare".equals(codeString)) 4265 return EPISODEOFCARE; 4266 if ("EventDefinition".equals(codeString)) 4267 return EVENTDEFINITION; 4268 if ("Evidence".equals(codeString)) 4269 return EVIDENCE; 4270 if ("EvidenceVariable".equals(codeString)) 4271 return EVIDENCEVARIABLE; 4272 if ("ExampleScenario".equals(codeString)) 4273 return EXAMPLESCENARIO; 4274 if ("ExplanationOfBenefit".equals(codeString)) 4275 return EXPLANATIONOFBENEFIT; 4276 if ("FamilyMemberHistory".equals(codeString)) 4277 return FAMILYMEMBERHISTORY; 4278 if ("Flag".equals(codeString)) 4279 return FLAG; 4280 if ("Goal".equals(codeString)) 4281 return GOAL; 4282 if ("GraphDefinition".equals(codeString)) 4283 return GRAPHDEFINITION; 4284 if ("Group".equals(codeString)) 4285 return GROUP; 4286 if ("GuidanceResponse".equals(codeString)) 4287 return GUIDANCERESPONSE; 4288 if ("HealthcareService".equals(codeString)) 4289 return HEALTHCARESERVICE; 4290 if ("ImagingStudy".equals(codeString)) 4291 return IMAGINGSTUDY; 4292 if ("Immunization".equals(codeString)) 4293 return IMMUNIZATION; 4294 if ("ImmunizationEvaluation".equals(codeString)) 4295 return IMMUNIZATIONEVALUATION; 4296 if ("ImmunizationRecommendation".equals(codeString)) 4297 return IMMUNIZATIONRECOMMENDATION; 4298 if ("ImplementationGuide".equals(codeString)) 4299 return IMPLEMENTATIONGUIDE; 4300 if ("Ingredient".equals(codeString)) 4301 return INGREDIENT; 4302 if ("InsurancePlan".equals(codeString)) 4303 return INSURANCEPLAN; 4304 if ("Invoice".equals(codeString)) 4305 return INVOICE; 4306 if ("Library".equals(codeString)) 4307 return LIBRARY; 4308 if ("Linkage".equals(codeString)) 4309 return LINKAGE; 4310 if ("List".equals(codeString)) 4311 return LIST; 4312 if ("Location".equals(codeString)) 4313 return LOCATION; 4314 if ("ManufacturedItemDefinition".equals(codeString)) 4315 return MANUFACTUREDITEMDEFINITION; 4316 if ("Measure".equals(codeString)) 4317 return MEASURE; 4318 if ("MeasureReport".equals(codeString)) 4319 return MEASUREREPORT; 4320 if ("Medication".equals(codeString)) 4321 return MEDICATION; 4322 if ("MedicationAdministration".equals(codeString)) 4323 return MEDICATIONADMINISTRATION; 4324 if ("MedicationDispense".equals(codeString)) 4325 return MEDICATIONDISPENSE; 4326 if ("MedicationKnowledge".equals(codeString)) 4327 return MEDICATIONKNOWLEDGE; 4328 if ("MedicationRequest".equals(codeString)) 4329 return MEDICATIONREQUEST; 4330 if ("MedicationUsage".equals(codeString)) 4331 return MEDICATIONUSAGE; 4332 if ("MedicinalProductDefinition".equals(codeString)) 4333 return MEDICINALPRODUCTDEFINITION; 4334 if ("MessageDefinition".equals(codeString)) 4335 return MESSAGEDEFINITION; 4336 if ("MessageHeader".equals(codeString)) 4337 return MESSAGEHEADER; 4338 if ("MolecularSequence".equals(codeString)) 4339 return MOLECULARSEQUENCE; 4340 if ("NamingSystem".equals(codeString)) 4341 return NAMINGSYSTEM; 4342 if ("NutritionIntake".equals(codeString)) 4343 return NUTRITIONINTAKE; 4344 if ("NutritionOrder".equals(codeString)) 4345 return NUTRITIONORDER; 4346 if ("Observation".equals(codeString)) 4347 return OBSERVATION; 4348 if ("ObservationDefinition".equals(codeString)) 4349 return OBSERVATIONDEFINITION; 4350 if ("OperationDefinition".equals(codeString)) 4351 return OPERATIONDEFINITION; 4352 if ("OperationOutcome".equals(codeString)) 4353 return OPERATIONOUTCOME; 4354 if ("Organization".equals(codeString)) 4355 return ORGANIZATION; 4356 if ("OrganizationAffiliation".equals(codeString)) 4357 return ORGANIZATIONAFFILIATION; 4358 if ("PackagedProductDefinition".equals(codeString)) 4359 return PACKAGEDPRODUCTDEFINITION; 4360 if ("Parameters".equals(codeString)) 4361 return PARAMETERS; 4362 if ("Patient".equals(codeString)) 4363 return PATIENT; 4364 if ("PaymentNotice".equals(codeString)) 4365 return PAYMENTNOTICE; 4366 if ("PaymentReconciliation".equals(codeString)) 4367 return PAYMENTRECONCILIATION; 4368 if ("Person".equals(codeString)) 4369 return PERSON; 4370 if ("PlanDefinition".equals(codeString)) 4371 return PLANDEFINITION; 4372 if ("Practitioner".equals(codeString)) 4373 return PRACTITIONER; 4374 if ("PractitionerRole".equals(codeString)) 4375 return PRACTITIONERROLE; 4376 if ("Procedure".equals(codeString)) 4377 return PROCEDURE; 4378 if ("Provenance".equals(codeString)) 4379 return PROVENANCE; 4380 if ("Questionnaire".equals(codeString)) 4381 return QUESTIONNAIRE; 4382 if ("QuestionnaireResponse".equals(codeString)) 4383 return QUESTIONNAIRERESPONSE; 4384 if ("RegulatedAuthorization".equals(codeString)) 4385 return REGULATEDAUTHORIZATION; 4386 if ("RelatedPerson".equals(codeString)) 4387 return RELATEDPERSON; 4388 if ("RequestGroup".equals(codeString)) 4389 return REQUESTGROUP; 4390 if ("ResearchStudy".equals(codeString)) 4391 return RESEARCHSTUDY; 4392 if ("ResearchSubject".equals(codeString)) 4393 return RESEARCHSUBJECT; 4394 if ("Resource".equals(codeString)) 4395 return RESOURCE; 4396 if ("RiskAssessment".equals(codeString)) 4397 return RISKASSESSMENT; 4398 if ("Schedule".equals(codeString)) 4399 return SCHEDULE; 4400 if ("SearchParameter".equals(codeString)) 4401 return SEARCHPARAMETER; 4402 if ("ServiceRequest".equals(codeString)) 4403 return SERVICEREQUEST; 4404 if ("Slot".equals(codeString)) 4405 return SLOT; 4406 if ("Specimen".equals(codeString)) 4407 return SPECIMEN; 4408 if ("SpecimenDefinition".equals(codeString)) 4409 return SPECIMENDEFINITION; 4410 if ("StructureDefinition".equals(codeString)) 4411 return STRUCTUREDEFINITION; 4412 if ("StructureMap".equals(codeString)) 4413 return STRUCTUREMAP; 4414 if ("Subscription".equals(codeString)) 4415 return SUBSCRIPTION; 4416 if ("Substance".equals(codeString)) 4417 return SUBSTANCE; 4418 if ("SubstanceDefinition".equals(codeString)) 4419 return SUBSTANCEDEFINITION; 4420 if ("SubstanceNucleicAcid".equals(codeString)) 4421 return SUBSTANCENUCLEICACID; 4422 if ("SubstancePolymer".equals(codeString)) 4423 return SUBSTANCEPOLYMER; 4424 if ("SubstanceProtein".equals(codeString)) 4425 return SUBSTANCEPROTEIN; 4426 if ("SubstanceReferenceInformation".equals(codeString)) 4427 return SUBSTANCEREFERENCEINFORMATION; 4428 if ("SubstanceSourceMaterial".equals(codeString)) 4429 return SUBSTANCESOURCEMATERIAL; 4430 if ("SupplyDelivery".equals(codeString)) 4431 return SUPPLYDELIVERY; 4432 if ("SupplyRequest".equals(codeString)) 4433 return SUPPLYREQUEST; 4434 if ("Task".equals(codeString)) 4435 return TASK; 4436 if ("TerminologyCapabilities".equals(codeString)) 4437 return TERMINOLOGYCAPABILITIES; 4438 if ("TestReport".equals(codeString)) 4439 return TESTREPORT; 4440 if ("TestScript".equals(codeString)) 4441 return TESTSCRIPT; 4442 if ("Topic".equals(codeString)) 4443 return TOPIC; 4444 if ("ValueSet".equals(codeString)) 4445 return VALUESET; 4446 if ("VerificationResult".equals(codeString)) 4447 return VERIFICATIONRESULT; 4448 if ("VisionPrescription".equals(codeString)) 4449 return VISIONPRESCRIPTION; 4450 if ("Type".equals(codeString)) 4451 return TYPE; 4452 if ("Any".equals(codeString)) 4453 return ANY; 4454 throw new FHIRException("Unknown FHIRAllTypes code '"+codeString+"'"); 4455 } 4456 public String toCode() { 4457 switch (this) { 4458 case ADDRESS: return "Address"; 4459 case AGE: return "Age"; 4460 case ANNOTATION: return "Annotation"; 4461 case ATTACHMENT: return "Attachment"; 4462 case BACKBONEELEMENT: return "BackboneElement"; 4463 case CODEABLECONCEPT: return "CodeableConcept"; 4464 case CODING: return "Coding"; 4465 case CONTACTDETAIL: return "ContactDetail"; 4466 case CONTACTPOINT: return "ContactPoint"; 4467 case CONTRIBUTOR: return "Contributor"; 4468 case COUNT: return "Count"; 4469 case DATAREQUIREMENT: return "DataRequirement"; 4470 case DISTANCE: return "Distance"; 4471 case DOSAGE: return "Dosage"; 4472 case DURATION: return "Duration"; 4473 case ELEMENT: return "Element"; 4474 case ELEMENTDEFINITION: return "ElementDefinition"; 4475 case EXPRESSION: return "Expression"; 4476 case EXTENSION: return "Extension"; 4477 case HUMANNAME: return "HumanName"; 4478 case IDENTIFIER: return "Identifier"; 4479 case MARKETINGSTATUS: return "MarketingStatus"; 4480 case META: return "Meta"; 4481 case MONEY: return "Money"; 4482 case MONEYQUANTITY: return "MoneyQuantity"; 4483 case NARRATIVE: return "Narrative"; 4484 case ORDEREDDISTRIBUTION: return "OrderedDistribution"; 4485 case PARAMETERDEFINITION: return "ParameterDefinition"; 4486 case PERIOD: return "Period"; 4487 case POPULATION: return "Population"; 4488 case PRODCHARACTERISTIC: return "ProdCharacteristic"; 4489 case PRODUCTSHELFLIFE: return "ProductShelfLife"; 4490 case QUANTITY: return "Quantity"; 4491 case RANGE: return "Range"; 4492 case RATIO: return "Ratio"; 4493 case REFERENCE: return "Reference"; 4494 case RELATEDARTIFACT: return "RelatedArtifact"; 4495 case SAMPLEDDATA: return "SampledData"; 4496 case SIGNATURE: return "Signature"; 4497 case SIMPLEQUANTITY: return "SimpleQuantity"; 4498 case STATISTIC: return "Statistic"; 4499 case SUBSTANCEAMOUNT: return "SubstanceAmount"; 4500 case TIMING: return "Timing"; 4501 case TRIGGERDEFINITION: return "TriggerDefinition"; 4502 case USAGECONTEXT: return "UsageContext"; 4503 case BASE64BINARY: return "base64Binary"; 4504 case BOOLEAN: return "boolean"; 4505 case CANONICAL: return "canonical"; 4506 case CODE: return "code"; 4507 case DATE: return "date"; 4508 case DATETIME: return "dateTime"; 4509 case DECIMAL: return "decimal"; 4510 case ID: return "id"; 4511 case INSTANT: return "instant"; 4512 case INTEGER: return "integer"; 4513 case MARKDOWN: return "markdown"; 4514 case OID: return "oid"; 4515 case POSITIVEINT: return "positiveInt"; 4516 case STRING: return "string"; 4517 case TIME: return "time"; 4518 case UNSIGNEDINT: return "unsignedInt"; 4519 case URI: return "uri"; 4520 case URL: return "url"; 4521 case UUID: return "uuid"; 4522 case XHTML: return "xhtml"; 4523 case ACCOUNT: return "Account"; 4524 case ACTIVITYDEFINITION: return "ActivityDefinition"; 4525 case ADMINISTRABLEPRODUCTDEFINITION: return "AdministrableProductDefinition"; 4526 case ADVERSEEVENT: return "AdverseEvent"; 4527 case ALLERGYINTOLERANCE: return "AllergyIntolerance"; 4528 case APPOINTMENT: return "Appointment"; 4529 case APPOINTMENTRESPONSE: return "AppointmentResponse"; 4530 case AUDITEVENT: return "AuditEvent"; 4531 case BASIC: return "Basic"; 4532 case BINARY: return "Binary"; 4533 case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct"; 4534 case BODYSTRUCTURE: return "BodyStructure"; 4535 case BUNDLE: return "Bundle"; 4536 case CAPABILITYSTATEMENT: return "CapabilityStatement"; 4537 case CAPABILITYSTATEMENT2: return "CapabilityStatement2"; 4538 case CAREPLAN: return "CarePlan"; 4539 case CARETEAM: return "CareTeam"; 4540 case CATALOGENTRY: return "CatalogEntry"; 4541 case CHARGEITEM: return "ChargeItem"; 4542 case CHARGEITEMDEFINITION: return "ChargeItemDefinition"; 4543 case CLAIM: return "Claim"; 4544 case CLAIMRESPONSE: return "ClaimResponse"; 4545 case CLINICALIMPRESSION: return "ClinicalImpression"; 4546 case CLINICALUSEISSUE: return "ClinicalUseIssue"; 4547 case CODESYSTEM: return "CodeSystem"; 4548 case COMMUNICATION: return "Communication"; 4549 case COMMUNICATIONREQUEST: return "CommunicationRequest"; 4550 case COMPARTMENTDEFINITION: return "CompartmentDefinition"; 4551 case COMPOSITION: return "Composition"; 4552 case CONCEPTMAP: return "ConceptMap"; 4553 case CONDITION: return "Condition"; 4554 case CONDITIONDEFINITION: return "ConditionDefinition"; 4555 case CONSENT: return "Consent"; 4556 case CONTRACT: return "Contract"; 4557 case COVERAGE: return "Coverage"; 4558 case COVERAGEELIGIBILITYREQUEST: return "CoverageEligibilityRequest"; 4559 case COVERAGEELIGIBILITYRESPONSE: return "CoverageEligibilityResponse"; 4560 case DETECTEDISSUE: return "DetectedIssue"; 4561 case DEVICE: return "Device"; 4562 case DEVICEDEFINITION: return "DeviceDefinition"; 4563 case DEVICEMETRIC: return "DeviceMetric"; 4564 case DEVICEREQUEST: return "DeviceRequest"; 4565 case DEVICEUSESTATEMENT: return "DeviceUseStatement"; 4566 case DIAGNOSTICREPORT: return "DiagnosticReport"; 4567 case DOCUMENTMANIFEST: return "DocumentManifest"; 4568 case DOCUMENTREFERENCE: return "DocumentReference"; 4569 case DOMAINRESOURCE: return "DomainResource"; 4570 case ENCOUNTER: return "Encounter"; 4571 case ENDPOINT: return "Endpoint"; 4572 case ENROLLMENTREQUEST: return "EnrollmentRequest"; 4573 case ENROLLMENTRESPONSE: return "EnrollmentResponse"; 4574 case EPISODEOFCARE: return "EpisodeOfCare"; 4575 case EVENTDEFINITION: return "EventDefinition"; 4576 case EVIDENCE: return "Evidence"; 4577 case EVIDENCEVARIABLE: return "EvidenceVariable"; 4578 case EXAMPLESCENARIO: return "ExampleScenario"; 4579 case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit"; 4580 case FAMILYMEMBERHISTORY: return "FamilyMemberHistory"; 4581 case FLAG: return "Flag"; 4582 case GOAL: return "Goal"; 4583 case GRAPHDEFINITION: return "GraphDefinition"; 4584 case GROUP: return "Group"; 4585 case GUIDANCERESPONSE: return "GuidanceResponse"; 4586 case HEALTHCARESERVICE: return "HealthcareService"; 4587 case IMAGINGSTUDY: return "ImagingStudy"; 4588 case IMMUNIZATION: return "Immunization"; 4589 case IMMUNIZATIONEVALUATION: return "ImmunizationEvaluation"; 4590 case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation"; 4591 case IMPLEMENTATIONGUIDE: return "ImplementationGuide"; 4592 case INGREDIENT: return "Ingredient"; 4593 case INSURANCEPLAN: return "InsurancePlan"; 4594 case INVOICE: return "Invoice"; 4595 case LIBRARY: return "Library"; 4596 case LINKAGE: return "Linkage"; 4597 case LIST: return "List"; 4598 case LOCATION: return "Location"; 4599 case MANUFACTUREDITEMDEFINITION: return "ManufacturedItemDefinition"; 4600 case MEASURE: return "Measure"; 4601 case MEASUREREPORT: return "MeasureReport"; 4602 case MEDICATION: return "Medication"; 4603 case MEDICATIONADMINISTRATION: return "MedicationAdministration"; 4604 case MEDICATIONDISPENSE: return "MedicationDispense"; 4605 case MEDICATIONKNOWLEDGE: return "MedicationKnowledge"; 4606 case MEDICATIONREQUEST: return "MedicationRequest"; 4607 case MEDICATIONUSAGE: return "MedicationUsage"; 4608 case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition"; 4609 case MESSAGEDEFINITION: return "MessageDefinition"; 4610 case MESSAGEHEADER: return "MessageHeader"; 4611 case MOLECULARSEQUENCE: return "MolecularSequence"; 4612 case NAMINGSYSTEM: return "NamingSystem"; 4613 case NUTRITIONINTAKE: return "NutritionIntake"; 4614 case NUTRITIONORDER: return "NutritionOrder"; 4615 case OBSERVATION: return "Observation"; 4616 case OBSERVATIONDEFINITION: return "ObservationDefinition"; 4617 case OPERATIONDEFINITION: return "OperationDefinition"; 4618 case OPERATIONOUTCOME: return "OperationOutcome"; 4619 case ORGANIZATION: return "Organization"; 4620 case ORGANIZATIONAFFILIATION: return "OrganizationAffiliation"; 4621 case PACKAGEDPRODUCTDEFINITION: return "PackagedProductDefinition"; 4622 case PARAMETERS: return "Parameters"; 4623 case PATIENT: return "Patient"; 4624 case PAYMENTNOTICE: return "PaymentNotice"; 4625 case PAYMENTRECONCILIATION: return "PaymentReconciliation"; 4626 case PERSON: return "Person"; 4627 case PLANDEFINITION: return "PlanDefinition"; 4628 case PRACTITIONER: return "Practitioner"; 4629 case PRACTITIONERROLE: return "PractitionerRole"; 4630 case PROCEDURE: return "Procedure"; 4631 case PROVENANCE: return "Provenance"; 4632 case QUESTIONNAIRE: return "Questionnaire"; 4633 case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse"; 4634 case REGULATEDAUTHORIZATION: return "RegulatedAuthorization"; 4635 case RELATEDPERSON: return "RelatedPerson"; 4636 case REQUESTGROUP: return "RequestGroup"; 4637 case RESEARCHSTUDY: return "ResearchStudy"; 4638 case RESEARCHSUBJECT: return "ResearchSubject"; 4639 case RESOURCE: return "Resource"; 4640 case RISKASSESSMENT: return "RiskAssessment"; 4641 case SCHEDULE: return "Schedule"; 4642 case SEARCHPARAMETER: return "SearchParameter"; 4643 case SERVICEREQUEST: return "ServiceRequest"; 4644 case SLOT: return "Slot"; 4645 case SPECIMEN: return "Specimen"; 4646 case SPECIMENDEFINITION: return "SpecimenDefinition"; 4647 case STRUCTUREDEFINITION: return "StructureDefinition"; 4648 case STRUCTUREMAP: return "StructureMap"; 4649 case SUBSCRIPTION: return "Subscription"; 4650 case SUBSTANCE: return "Substance"; 4651 case SUBSTANCEDEFINITION: return "SubstanceDefinition"; 4652 case SUBSTANCENUCLEICACID: return "SubstanceNucleicAcid"; 4653 case SUBSTANCEPOLYMER: return "SubstancePolymer"; 4654 case SUBSTANCEPROTEIN: return "SubstanceProtein"; 4655 case SUBSTANCEREFERENCEINFORMATION: return "SubstanceReferenceInformation"; 4656 case SUBSTANCESOURCEMATERIAL: return "SubstanceSourceMaterial"; 4657 case SUPPLYDELIVERY: return "SupplyDelivery"; 4658 case SUPPLYREQUEST: return "SupplyRequest"; 4659 case TASK: return "Task"; 4660 case TERMINOLOGYCAPABILITIES: return "TerminologyCapabilities"; 4661 case TESTREPORT: return "TestReport"; 4662 case TESTSCRIPT: return "TestScript"; 4663 case TOPIC: return "Topic"; 4664 case VALUESET: return "ValueSet"; 4665 case VERIFICATIONRESULT: return "VerificationResult"; 4666 case VISIONPRESCRIPTION: return "VisionPrescription"; 4667 case TYPE: return "Type"; 4668 case ANY: return "Any"; 4669 default: return "?"; 4670 } 4671 } 4672 public String getSystem() { 4673 switch (this) { 4674 case ADDRESS: return "http://hl7.org/fhir/data-types"; 4675 case AGE: return "http://hl7.org/fhir/data-types"; 4676 case ANNOTATION: return "http://hl7.org/fhir/data-types"; 4677 case ATTACHMENT: return "http://hl7.org/fhir/data-types"; 4678 case BACKBONEELEMENT: return "http://hl7.org/fhir/data-types"; 4679 case CODEABLECONCEPT: return "http://hl7.org/fhir/data-types"; 4680 case CODING: return "http://hl7.org/fhir/data-types"; 4681 case CONTACTDETAIL: return "http://hl7.org/fhir/data-types"; 4682 case CONTACTPOINT: return "http://hl7.org/fhir/data-types"; 4683 case CONTRIBUTOR: return "http://hl7.org/fhir/data-types"; 4684 case COUNT: return "http://hl7.org/fhir/data-types"; 4685 case DATAREQUIREMENT: return "http://hl7.org/fhir/data-types"; 4686 case DISTANCE: return "http://hl7.org/fhir/data-types"; 4687 case DOSAGE: return "http://hl7.org/fhir/data-types"; 4688 case DURATION: return "http://hl7.org/fhir/data-types"; 4689 case ELEMENT: return "http://hl7.org/fhir/data-types"; 4690 case ELEMENTDEFINITION: return "http://hl7.org/fhir/data-types"; 4691 case EXPRESSION: return "http://hl7.org/fhir/data-types"; 4692 case EXTENSION: return "http://hl7.org/fhir/data-types"; 4693 case HUMANNAME: return "http://hl7.org/fhir/data-types"; 4694 case IDENTIFIER: return "http://hl7.org/fhir/data-types"; 4695 case MARKETINGSTATUS: return "http://hl7.org/fhir/data-types"; 4696 case META: return "http://hl7.org/fhir/data-types"; 4697 case MONEY: return "http://hl7.org/fhir/data-types"; 4698 case MONEYQUANTITY: return "http://hl7.org/fhir/data-types"; 4699 case NARRATIVE: return "http://hl7.org/fhir/data-types"; 4700 case ORDEREDDISTRIBUTION: return "http://hl7.org/fhir/data-types"; 4701 case PARAMETERDEFINITION: return "http://hl7.org/fhir/data-types"; 4702 case PERIOD: return "http://hl7.org/fhir/data-types"; 4703 case POPULATION: return "http://hl7.org/fhir/data-types"; 4704 case PRODCHARACTERISTIC: return "http://hl7.org/fhir/data-types"; 4705 case PRODUCTSHELFLIFE: return "http://hl7.org/fhir/data-types"; 4706 case QUANTITY: return "http://hl7.org/fhir/data-types"; 4707 case RANGE: return "http://hl7.org/fhir/data-types"; 4708 case RATIO: return "http://hl7.org/fhir/data-types"; 4709 case REFERENCE: return "http://hl7.org/fhir/data-types"; 4710 case RELATEDARTIFACT: return "http://hl7.org/fhir/data-types"; 4711 case SAMPLEDDATA: return "http://hl7.org/fhir/data-types"; 4712 case SIGNATURE: return "http://hl7.org/fhir/data-types"; 4713 case SIMPLEQUANTITY: return "http://hl7.org/fhir/data-types"; 4714 case STATISTIC: return "http://hl7.org/fhir/data-types"; 4715 case SUBSTANCEAMOUNT: return "http://hl7.org/fhir/data-types"; 4716 case TIMING: return "http://hl7.org/fhir/data-types"; 4717 case TRIGGERDEFINITION: return "http://hl7.org/fhir/data-types"; 4718 case USAGECONTEXT: return "http://hl7.org/fhir/data-types"; 4719 case BASE64BINARY: return "http://hl7.org/fhir/data-types"; 4720 case BOOLEAN: return "http://hl7.org/fhir/data-types"; 4721 case CANONICAL: return "http://hl7.org/fhir/data-types"; 4722 case CODE: return "http://hl7.org/fhir/data-types"; 4723 case DATE: return "http://hl7.org/fhir/data-types"; 4724 case DATETIME: return "http://hl7.org/fhir/data-types"; 4725 case DECIMAL: return "http://hl7.org/fhir/data-types"; 4726 case ID: return "http://hl7.org/fhir/data-types"; 4727 case INSTANT: return "http://hl7.org/fhir/data-types"; 4728 case INTEGER: return "http://hl7.org/fhir/data-types"; 4729 case MARKDOWN: return "http://hl7.org/fhir/data-types"; 4730 case OID: return "http://hl7.org/fhir/data-types"; 4731 case POSITIVEINT: return "http://hl7.org/fhir/data-types"; 4732 case STRING: return "http://hl7.org/fhir/data-types"; 4733 case TIME: return "http://hl7.org/fhir/data-types"; 4734 case UNSIGNEDINT: return "http://hl7.org/fhir/data-types"; 4735 case URI: return "http://hl7.org/fhir/data-types"; 4736 case URL: return "http://hl7.org/fhir/data-types"; 4737 case UUID: return "http://hl7.org/fhir/data-types"; 4738 case XHTML: return "http://hl7.org/fhir/data-types"; 4739 case ACCOUNT: return "http://hl7.org/fhir/resource-types"; 4740 case ACTIVITYDEFINITION: return "http://hl7.org/fhir/resource-types"; 4741 case ADMINISTRABLEPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types"; 4742 case ADVERSEEVENT: return "http://hl7.org/fhir/resource-types"; 4743 case ALLERGYINTOLERANCE: return "http://hl7.org/fhir/resource-types"; 4744 case APPOINTMENT: return "http://hl7.org/fhir/resource-types"; 4745 case APPOINTMENTRESPONSE: return "http://hl7.org/fhir/resource-types"; 4746 case AUDITEVENT: return "http://hl7.org/fhir/resource-types"; 4747 case BASIC: return "http://hl7.org/fhir/resource-types"; 4748 case BINARY: return "http://hl7.org/fhir/resource-types"; 4749 case BIOLOGICALLYDERIVEDPRODUCT: return "http://hl7.org/fhir/resource-types"; 4750 case BODYSTRUCTURE: return "http://hl7.org/fhir/resource-types"; 4751 case BUNDLE: return "http://hl7.org/fhir/resource-types"; 4752 case CAPABILITYSTATEMENT: return "http://hl7.org/fhir/resource-types"; 4753 case CAPABILITYSTATEMENT2: return "http://hl7.org/fhir/resource-types"; 4754 case CAREPLAN: return "http://hl7.org/fhir/resource-types"; 4755 case CARETEAM: return "http://hl7.org/fhir/resource-types"; 4756 case CATALOGENTRY: return "http://hl7.org/fhir/resource-types"; 4757 case CHARGEITEM: return "http://hl7.org/fhir/resource-types"; 4758 case CHARGEITEMDEFINITION: return "http://hl7.org/fhir/resource-types"; 4759 case CLAIM: return "http://hl7.org/fhir/resource-types"; 4760 case CLAIMRESPONSE: return "http://hl7.org/fhir/resource-types"; 4761 case CLINICALIMPRESSION: return "http://hl7.org/fhir/resource-types"; 4762 case CLINICALUSEISSUE: return "http://hl7.org/fhir/resource-types"; 4763 case CODESYSTEM: return "http://hl7.org/fhir/resource-types"; 4764 case COMMUNICATION: return "http://hl7.org/fhir/resource-types"; 4765 case COMMUNICATIONREQUEST: return "http://hl7.org/fhir/resource-types"; 4766 case COMPARTMENTDEFINITION: return "http://hl7.org/fhir/resource-types"; 4767 case COMPOSITION: return "http://hl7.org/fhir/resource-types"; 4768 case CONCEPTMAP: return "http://hl7.org/fhir/resource-types"; 4769 case CONDITION: return "http://hl7.org/fhir/resource-types"; 4770 case CONDITIONDEFINITION: return "http://hl7.org/fhir/resource-types"; 4771 case CONSENT: return "http://hl7.org/fhir/resource-types"; 4772 case CONTRACT: return "http://hl7.org/fhir/resource-types"; 4773 case COVERAGE: return "http://hl7.org/fhir/resource-types"; 4774 case COVERAGEELIGIBILITYREQUEST: return "http://hl7.org/fhir/resource-types"; 4775 case COVERAGEELIGIBILITYRESPONSE: return "http://hl7.org/fhir/resource-types"; 4776 case DETECTEDISSUE: return "http://hl7.org/fhir/resource-types"; 4777 case DEVICE: return "http://hl7.org/fhir/resource-types"; 4778 case DEVICEDEFINITION: return "http://hl7.org/fhir/resource-types"; 4779 case DEVICEMETRIC: return "http://hl7.org/fhir/resource-types"; 4780 case DEVICEREQUEST: return "http://hl7.org/fhir/resource-types"; 4781 case DEVICEUSESTATEMENT: return "http://hl7.org/fhir/resource-types"; 4782 case DIAGNOSTICREPORT: return "http://hl7.org/fhir/resource-types"; 4783 case DOCUMENTMANIFEST: return "http://hl7.org/fhir/resource-types"; 4784 case DOCUMENTREFERENCE: return "http://hl7.org/fhir/resource-types"; 4785 case DOMAINRESOURCE: return "http://hl7.org/fhir/resource-types"; 4786 case ENCOUNTER: return "http://hl7.org/fhir/resource-types"; 4787 case ENDPOINT: return "http://hl7.org/fhir/resource-types"; 4788 case ENROLLMENTREQUEST: return "http://hl7.org/fhir/resource-types"; 4789 case ENROLLMENTRESPONSE: return "http://hl7.org/fhir/resource-types"; 4790 case EPISODEOFCARE: return "http://hl7.org/fhir/resource-types"; 4791 case EVENTDEFINITION: return "http://hl7.org/fhir/resource-types"; 4792 case EVIDENCE: return "http://hl7.org/fhir/resource-types"; 4793 case EVIDENCEVARIABLE: return "http://hl7.org/fhir/resource-types"; 4794 case EXAMPLESCENARIO: return "http://hl7.org/fhir/resource-types"; 4795 case EXPLANATIONOFBENEFIT: return "http://hl7.org/fhir/resource-types"; 4796 case FAMILYMEMBERHISTORY: return "http://hl7.org/fhir/resource-types"; 4797 case FLAG: return "http://hl7.org/fhir/resource-types"; 4798 case GOAL: return "http://hl7.org/fhir/resource-types"; 4799 case GRAPHDEFINITION: return "http://hl7.org/fhir/resource-types"; 4800 case GROUP: return "http://hl7.org/fhir/resource-types"; 4801 case GUIDANCERESPONSE: return "http://hl7.org/fhir/resource-types"; 4802 case HEALTHCARESERVICE: return "http://hl7.org/fhir/resource-types"; 4803 case IMAGINGSTUDY: return "http://hl7.org/fhir/resource-types"; 4804 case IMMUNIZATION: return "http://hl7.org/fhir/resource-types"; 4805 case IMMUNIZATIONEVALUATION: return "http://hl7.org/fhir/resource-types"; 4806 case IMMUNIZATIONRECOMMENDATION: return "http://hl7.org/fhir/resource-types"; 4807 case IMPLEMENTATIONGUIDE: return "http://hl7.org/fhir/resource-types"; 4808 case INGREDIENT: return "http://hl7.org/fhir/resource-types"; 4809 case INSURANCEPLAN: return "http://hl7.org/fhir/resource-types"; 4810 case INVOICE: return "http://hl7.org/fhir/resource-types"; 4811 case LIBRARY: return "http://hl7.org/fhir/resource-types"; 4812 case LINKAGE: return "http://hl7.org/fhir/resource-types"; 4813 case LIST: return "http://hl7.org/fhir/resource-types"; 4814 case LOCATION: return "http://hl7.org/fhir/resource-types"; 4815 case MANUFACTUREDITEMDEFINITION: return "http://hl7.org/fhir/resource-types"; 4816 case MEASURE: return "http://hl7.org/fhir/resource-types"; 4817 case MEASUREREPORT: return "http://hl7.org/fhir/resource-types"; 4818 case MEDICATION: return "http://hl7.org/fhir/resource-types"; 4819 case MEDICATIONADMINISTRATION: return "http://hl7.org/fhir/resource-types"; 4820 case MEDICATIONDISPENSE: return "http://hl7.org/fhir/resource-types"; 4821 case MEDICATIONKNOWLEDGE: return "http://hl7.org/fhir/resource-types"; 4822 case MEDICATIONREQUEST: return "http://hl7.org/fhir/resource-types"; 4823 case MEDICATIONUSAGE: return "http://hl7.org/fhir/resource-types"; 4824 case MEDICINALPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types"; 4825 case MESSAGEDEFINITION: return "http://hl7.org/fhir/resource-types"; 4826 case MESSAGEHEADER: return "http://hl7.org/fhir/resource-types"; 4827 case MOLECULARSEQUENCE: return "http://hl7.org/fhir/resource-types"; 4828 case NAMINGSYSTEM: return "http://hl7.org/fhir/resource-types"; 4829 case NUTRITIONINTAKE: return "http://hl7.org/fhir/resource-types"; 4830 case NUTRITIONORDER: return "http://hl7.org/fhir/resource-types"; 4831 case OBSERVATION: return "http://hl7.org/fhir/resource-types"; 4832 case OBSERVATIONDEFINITION: return "http://hl7.org/fhir/resource-types"; 4833 case OPERATIONDEFINITION: return "http://hl7.org/fhir/resource-types"; 4834 case OPERATIONOUTCOME: return "http://hl7.org/fhir/resource-types"; 4835 case ORGANIZATION: return "http://hl7.org/fhir/resource-types"; 4836 case ORGANIZATIONAFFILIATION: return "http://hl7.org/fhir/resource-types"; 4837 case PACKAGEDPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types"; 4838 case PARAMETERS: return "http://hl7.org/fhir/resource-types"; 4839 case PATIENT: return "http://hl7.org/fhir/resource-types"; 4840 case PAYMENTNOTICE: return "http://hl7.org/fhir/resource-types"; 4841 case PAYMENTRECONCILIATION: return "http://hl7.org/fhir/resource-types"; 4842 case PERSON: return "http://hl7.org/fhir/resource-types"; 4843 case PLANDEFINITION: return "http://hl7.org/fhir/resource-types"; 4844 case PRACTITIONER: return "http://hl7.org/fhir/resource-types"; 4845 case PRACTITIONERROLE: return "http://hl7.org/fhir/resource-types"; 4846 case PROCEDURE: return "http://hl7.org/fhir/resource-types"; 4847 case PROVENANCE: return "http://hl7.org/fhir/resource-types"; 4848 case QUESTIONNAIRE: return "http://hl7.org/fhir/resource-types"; 4849 case QUESTIONNAIRERESPONSE: return "http://hl7.org/fhir/resource-types"; 4850 case REGULATEDAUTHORIZATION: return "http://hl7.org/fhir/resource-types"; 4851 case RELATEDPERSON: return "http://hl7.org/fhir/resource-types"; 4852 case REQUESTGROUP: return "http://hl7.org/fhir/resource-types"; 4853 case RESEARCHSTUDY: return "http://hl7.org/fhir/resource-types"; 4854 case RESEARCHSUBJECT: return "http://hl7.org/fhir/resource-types"; 4855 case RESOURCE: return "http://hl7.org/fhir/resource-types"; 4856 case RISKASSESSMENT: return "http://hl7.org/fhir/resource-types"; 4857 case SCHEDULE: return "http://hl7.org/fhir/resource-types"; 4858 case SEARCHPARAMETER: return "http://hl7.org/fhir/resource-types"; 4859 case SERVICEREQUEST: return "http://hl7.org/fhir/resource-types"; 4860 case SLOT: return "http://hl7.org/fhir/resource-types"; 4861 case SPECIMEN: return "http://hl7.org/fhir/resource-types"; 4862 case SPECIMENDEFINITION: return "http://hl7.org/fhir/resource-types"; 4863 case STRUCTUREDEFINITION: return "http://hl7.org/fhir/resource-types"; 4864 case STRUCTUREMAP: return "http://hl7.org/fhir/resource-types"; 4865 case SUBSCRIPTION: return "http://hl7.org/fhir/resource-types"; 4866 case SUBSTANCE: return "http://hl7.org/fhir/resource-types"; 4867 case SUBSTANCEDEFINITION: return "http://hl7.org/fhir/resource-types"; 4868 case SUBSTANCENUCLEICACID: return "http://hl7.org/fhir/resource-types"; 4869 case SUBSTANCEPOLYMER: return "http://hl7.org/fhir/resource-types"; 4870 case SUBSTANCEPROTEIN: return "http://hl7.org/fhir/resource-types"; 4871 case SUBSTANCEREFERENCEINFORMATION: return "http://hl7.org/fhir/resource-types"; 4872 case SUBSTANCESOURCEMATERIAL: return "http://hl7.org/fhir/resource-types"; 4873 case SUPPLYDELIVERY: return "http://hl7.org/fhir/resource-types"; 4874 case SUPPLYREQUEST: return "http://hl7.org/fhir/resource-types"; 4875 case TASK: return "http://hl7.org/fhir/resource-types"; 4876 case TERMINOLOGYCAPABILITIES: return "http://hl7.org/fhir/resource-types"; 4877 case TESTREPORT: return "http://hl7.org/fhir/resource-types"; 4878 case TESTSCRIPT: return "http://hl7.org/fhir/resource-types"; 4879 case TOPIC: return "http://hl7.org/fhir/resource-types"; 4880 case VALUESET: return "http://hl7.org/fhir/resource-types"; 4881 case VERIFICATIONRESULT: return "http://hl7.org/fhir/resource-types"; 4882 case VISIONPRESCRIPTION: return "http://hl7.org/fhir/resource-types"; 4883 case TYPE: return "http://hl7.org/fhir/abstract-types"; 4884 case ANY: return "http://hl7.org/fhir/abstract-types"; 4885 default: return "?"; 4886 } 4887 } 4888 public String getDefinition() { 4889 switch (this) { 4890 case ADDRESS: return "An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world."; 4891 case AGE: return "A duration of time during which an organism (or a process) has existed."; 4892 case ANNOTATION: return "A text note which also contains information about who made the statement and when."; 4893 case ATTACHMENT: return "For referring to data content defined in other formats."; 4894 case BACKBONEELEMENT: return "Base definition for all elements that are defined inside a resource - but not those in a data type."; 4895 case CODEABLECONCEPT: return "A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text."; 4896 case CODING: return "A reference to a code defined by a terminology system."; 4897 case CONTACTDETAIL: return "Specifies contact information for a person or organization."; 4898 case CONTACTPOINT: return "Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc."; 4899 case CONTRIBUTOR: return "A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers."; 4900 case COUNT: return "A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies."; 4901 case DATAREQUIREMENT: return "Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data."; 4902 case DISTANCE: return "A length - a value with a unit that is a physical distance."; 4903 case DOSAGE: return "Indicates how the medication is/was taken or should be taken by the patient."; 4904 case DURATION: return "A length of time."; 4905 case ELEMENT: return "Base definition for all elements in a resource."; 4906 case ELEMENTDEFINITION: return "Captures constraints on each element within the resource, profile, or extension."; 4907 case EXPRESSION: return "A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used."; 4908 case EXTENSION: return "Optional Extension Element - found in all resources."; 4909 case HUMANNAME: return "A human's name with the ability to identify parts and usage."; 4910 case IDENTIFIER: return "An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."; 4911 case MARKETINGSTATUS: return "The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available."; 4912 case META: return "The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource."; 4913 case MONEY: return "An amount of economic utility in some recognized currency."; 4914 case MONEYQUANTITY: return ""; 4915 case NARRATIVE: return "A human-readable summary of the resource conveying the essential clinical and business information for the resource."; 4916 case ORDEREDDISTRIBUTION: return "An ordered list (distribution) of statistics."; 4917 case PARAMETERDEFINITION: return "The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse."; 4918 case PERIOD: return "A time period defined by a start and end date and optionally time."; 4919 case POPULATION: return "A populatioof people with some set of grouping criteria."; 4920 case PRODCHARACTERISTIC: return "The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available."; 4921 case PRODUCTSHELFLIFE: return "The shelf-life and storage information for a medicinal product item or container can be described using this class."; 4922 case QUANTITY: return "A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies."; 4923 case RANGE: return "A set of ordered Quantities defined by a low and high limit."; 4924 case RATIO: return "A relationship of two Quantity values - expressed as a numerator and a denominator."; 4925 case REFERENCE: return "A reference from one resource to another."; 4926 case RELATEDARTIFACT: return "Related artifacts such as additional documentation, justification, or bibliographic references."; 4927 case SAMPLEDDATA: return "A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data."; 4928 case SIGNATURE: return "A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities."; 4929 case SIMPLEQUANTITY: return ""; 4930 case STATISTIC: return "A fact or piece of data from a study of a large quantity of numerical data. A mathematical or quantified characteristic of a group of observations."; 4931 case SUBSTANCEAMOUNT: return "Chemical substances are a single substance type whose primary defining element is the molecular structure. Chemical substances shall be defined on the basis of their complete covalent molecular structure; the presence of a salt (counter-ion) and/or solvates (water, alcohols) is also captured. Purity, grade, physical form or particle size are not taken into account in the definition of a chemical substance or in the assignment of a Substance ID."; 4932 case TIMING: return "Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out."; 4933 case TRIGGERDEFINITION: return "A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element."; 4934 case USAGECONTEXT: return "Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care)."; 4935 case BASE64BINARY: return "A stream of bytes"; 4936 case BOOLEAN: return "Value of \"true\" or \"false\""; 4937 case CANONICAL: return "A URI that is a reference to a canonical URL on a FHIR resource"; 4938 case CODE: return "A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents"; 4939 case DATE: return "A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates."; 4940 case DATETIME: return "A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates."; 4941 case DECIMAL: return "A rational number with implicit precision"; 4942 case ID: return "Any combination of letters, numerals, \"-\" and \".\", with a length limit of 64 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Ids are case-insensitive."; 4943 case INSTANT: return "An instant in time - known at least to the second"; 4944 case INTEGER: return "A whole number"; 4945 case MARKDOWN: return "A string that may contain Github Flavored Markdown syntax for optional processing by a mark down presentation engine"; 4946 case OID: return "An OID represented as a URI"; 4947 case POSITIVEINT: return "An integer with a value that is positive (e.g. >0)"; 4948 case STRING: return "A sequence of Unicode characters"; 4949 case TIME: return "A time during the day, with no date specified"; 4950 case UNSIGNEDINT: return "An integer with a value that is not negative (e.g. >= 0)"; 4951 case URI: return "String of characters used to identify a name or a resource"; 4952 case URL: return "A URI that is a literal reference"; 4953 case UUID: return "A UUID, represented as a URI"; 4954 case XHTML: return "XHTML format, as defined by W3C, but restricted usage (mainly, no active content)"; 4955 case ACCOUNT: return "A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centers, etc."; 4956 case ACTIVITYDEFINITION: return "This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context."; 4957 case ADMINISTRABLEPRODUCTDEFINITION: return "A pharmaceutical product described in terms of its composition and dose form."; 4958 case ADVERSEEVENT: return "An event (i.e. any change to current patient status) that may be related to unintended effects on a patient or research subject. The unintended effects may require additional monitoring, treatment or hospitalization or may result in death. The AdverseEvent resource also extends to potential or avoided events that could have had such effects."; 4959 case ALLERGYINTOLERANCE: return "Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance."; 4960 case APPOINTMENT: return "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)."; 4961 case APPOINTMENTRESPONSE: return "A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection."; 4962 case AUDITEVENT: return "A record of an event relevant for purposes such as operations, privacy, security, maintenance, and performance analysis."; 4963 case BASIC: return "Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification."; 4964 case BINARY: return "A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc."; 4965 case BIOLOGICALLYDERIVEDPRODUCT: return "A material substance originating from a biological entity intended to be transplanted or infused\ninto another (possibly the same) biological entity."; 4966 case BODYSTRUCTURE: return "Record details about an anatomical structure. This resource may be used when a coded concept does not provide the necessary detail needed for the use case."; 4967 case BUNDLE: return "A container for a collection of resources."; 4968 case CAPABILITYSTATEMENT: return "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; 4969 case CAPABILITYSTATEMENT2: return "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; 4970 case CAREPLAN: return "Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions."; 4971 case CARETEAM: return "The Care Team includes all the people and organizations who plan to participate in the coordination and delivery of care."; 4972 case CATALOGENTRY: return "Catalog entries are wrappers that contextualize items included in a catalog."; 4973 case CHARGEITEM: return "The resource ChargeItem describes the provision of healthcare provider products for a certain patient, therefore referring not only to the product, but containing in addition details of the provision, like date, time, amounts and participating organizations and persons. Main Usage of the ChargeItem is to enable the billing process and internal cost allocation."; 4974 case CHARGEITEMDEFINITION: return "The ChargeItemDefinition resource provides the properties that apply to the (billing) codes necessary to calculate costs and prices. The properties may differ largely depending on type and realm, therefore this resource gives only a rough structure and requires profiling for each type of billing code system."; 4975 case CLAIM: return "A provider issued list of professional services and products which have been provided, or are to be provided, to a patient which is sent to an insurer for reimbursement."; 4976 case CLAIMRESPONSE: return "This resource provides the adjudication details from the processing of a Claim resource."; 4977 case CLINICALIMPRESSION: return "A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. This resource is called \"ClinicalImpression\" rather than \"ClinicalAssessment\" to avoid confusion with the recording of assessment tools such as Apgar score."; 4978 case CLINICALUSEISSUE: return "A single item of clinical particulars - an indication, contraindication, interaction etc. for a medicinal product."; 4979 case CODESYSTEM: return "The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content."; 4980 case COMMUNICATION: return "An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency communication to a provider/reporter in response to a case report for a reportable condition."; 4981 case COMMUNICATIONREQUEST: return "A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition."; 4982 case COMPARTMENTDEFINITION: return "A compartment definition that defines how resources are accessed on a server."; 4983 case COMPOSITION: return "A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.)."; 4984 case CONCEPTMAP: return "A statement of relationships from one set of concepts to one or more other concepts - either concepts in code systems, or data element/data element concepts, or classes in class models."; 4985 case CONDITION: return "A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern."; 4986 case CONDITIONDEFINITION: return "A definition of a condition and information relevant to managing it."; 4987 case CONSENT: return "A record of a healthcare consumer’s choices or choices made on their behalf by a third party, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time."; 4988 case CONTRACT: return "Legally enforceable, formally recorded unilateral or bilateral directive i.e., a policy or agreement."; 4989 case COVERAGE: return "Financial instrument which may be used to reimburse or pay for health care products and services. Includes both insurance and self-payment."; 4990 case COVERAGEELIGIBILITYREQUEST: return "The CoverageEligibilityRequest provides patient and insurance coverage information to an insurer for them to respond, in the form of an CoverageEligibilityResponse, with information regarding whether the stated coverage is valid and in-force and optionally to provide the insurance details of the policy."; 4991 case COVERAGEELIGIBILITYRESPONSE: return "This resource provides eligibility and plan details from the processing of an CoverageEligibilityRequest resource."; 4992 case DETECTEDISSUE: return "Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc."; 4993 case DEVICE: return "A type of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device."; 4994 case DEVICEDEFINITION: return "The characteristics, operational status and capabilities of a medical-related component of a medical device."; 4995 case DEVICEMETRIC: return "Describes a measurement, calculation or setting capability of a medical device."; 4996 case DEVICEREQUEST: return "Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker."; 4997 case DEVICEUSESTATEMENT: return "A record of a device being used by a patient where the record is the result of a report from the patient or another clinician."; 4998 case DIAGNOSTICREPORT: return "The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports."; 4999 case DOCUMENTMANIFEST: return "A collection of documents compiled for a purpose together with metadata that applies to the collection."; 5000 case DOCUMENTREFERENCE: return "A reference to a document of any kind for any purpose. While the term “document” implies a more narrow focus, for this resource this \"document\" encompasses *any* seralized object with a mime-type, so includes formal patient centric documents (CDA), clniical notes, scanned paper, non-patient specific documents like policy text, as well as a photo, video, or audio recording acquired or used in healthcare. The DocumentReference resource provides metadata about the document so that the document can be discovered and managed. The actual content may be inline base64 encoded data or provided by direct reference."; 5001 case DOMAINRESOURCE: return "A resource that includes narrative, extensions, and contained resources."; 5002 case ENCOUNTER: return "An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient."; 5003 case ENDPOINT: return "The technical details of an endpoint that can be used for electronic services, such as for web services providing XDS.b or a REST endpoint for another FHIR server. This may include any security context information."; 5004 case ENROLLMENTREQUEST: return "This resource provides the insurance enrollment details to the insurer regarding a specified coverage."; 5005 case ENROLLMENTRESPONSE: return "This resource provides enrollment and plan details from the processing of an EnrollmentRequest resource."; 5006 case EPISODEOFCARE: return "An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time."; 5007 case EVENTDEFINITION: return "The EventDefinition resource provides a reusable description of when a particular event can occur."; 5008 case EVIDENCE: return "This represents statistics, certainty, both the intended and actual population, and evidence variables."; 5009 case EVIDENCEVARIABLE: return "The EvidenceVariable resource describes a \"PICO\" element that knowledge (evidence, assertion, recommendation) is about."; 5010 case EXAMPLESCENARIO: return "Example of workflow instance."; 5011 case EXPLANATIONOFBENEFIT: return "This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided."; 5012 case FAMILYMEMBERHISTORY: return "Significant health conditions for a person related to the patient relevant in the context of care for the patient."; 5013 case FLAG: return "Prospective warnings of potential issues when providing care to the patient."; 5014 case GOAL: return "Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc."; 5015 case GRAPHDEFINITION: return "A formal computable definition of a graph of resources - that is, a coherent set of resources that form a graph by following references. The Graph Definition resource defines a set and makes rules about the set."; 5016 case GROUP: return "Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively, and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization."; 5017 case GUIDANCERESPONSE: return "A guidance response is the formal response to a guidance request, including any output parameters returned by the evaluation, as well as the description of any proposed actions to be taken."; 5018 case HEALTHCARESERVICE: return "The details of a healthcare service available at a location."; 5019 case IMAGINGSTUDY: return "Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities."; 5020 case IMMUNIZATION: return "Describes the event of a patient being administered a vaccine or a record of an immunization as reported by a patient, a clinician or another party."; 5021 case IMMUNIZATIONEVALUATION: return "Describes a comparison of an immunization event against published recommendations to determine if the administration is \"valid\" in relation to those recommendations."; 5022 case IMMUNIZATIONRECOMMENDATION: return "A patient's point-in-time set of recommendations (i.e. forecasting) according to a published schedule with optional supporting justification."; 5023 case IMPLEMENTATIONGUIDE: return "A set of rules of how a particular interoperability or standards problem is solved - typically through the use of FHIR resources. This resource is used to gather all the parts of an implementation guide into a logical whole and to publish a computable definition of all the parts."; 5024 case INGREDIENT: return "An ingredient of a manufactured item or pharmaceutical product."; 5025 case INSURANCEPLAN: return "Details of a Health Insurance product/plan provided by an organization."; 5026 case INVOICE: return "Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose."; 5027 case LIBRARY: return "The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets."; 5028 case LINKAGE: return "Identifies two or more records (resource instances) that refer to the same real-world \"occurrence\"."; 5029 case LIST: return "A list is a curated collection of resources."; 5030 case LOCATION: return "Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated."; 5031 case MANUFACTUREDITEMDEFINITION: return "The manufactured item as contained in the packaged medicinal product."; 5032 case MEASURE: return "The Measure resource provides the definition of a quality measure."; 5033 case MEASUREREPORT: return "The MeasureReport resource contains the results of the calculation of a measure; and optionally a reference to the resources involved in that calculation."; 5034 case MEDICATION: return "This resource is primarily used for the identification and definition of a medication for the purposes of prescribing, dispensing, and administering a medication as well as for making statements about medication use."; 5035 case MEDICATIONADMINISTRATION: return "Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner."; 5036 case MEDICATIONDISPENSE: return "Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order."; 5037 case MEDICATIONKNOWLEDGE: return "Information about a medication that is used to support knowledge."; 5038 case MEDICATIONREQUEST: return "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns."; 5039 case MEDICATIONUSAGE: return "A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information."; 5040 case MEDICINALPRODUCTDEFINITION: return "Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use)."; 5041 case MESSAGEDEFINITION: return "Defines the characteristics of a message that can be shared between systems, including the type of event that initiates the message, the content to be transmitted and what response(s), if any, are permitted."; 5042 case MESSAGEHEADER: return "The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle."; 5043 case MOLECULARSEQUENCE: return "Raw data describing a biological sequence."; 5044 case NAMINGSYSTEM: return "A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a \"System\" used within the Identifier and Coding data types."; 5045 case NUTRITIONINTAKE: return "A record of food or fluid that is being consumed by a patient. A NutritionIntake may indicate that the patient may be consuming the food or fluid now or has consumed the food or fluid in the past. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay or through an app that tracks food or fluids consumed. The consumption information may come from sources such as the patient's memory, from a nutrition label, or from a clinician documenting observed intake."; 5046 case NUTRITIONORDER: return "A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident."; 5047 case OBSERVATION: return "Measurements and simple assertions made about a patient, device or other subject."; 5048 case OBSERVATIONDEFINITION: return "Set of definitional characteristics for a kind of observation or measurement produced or consumed by an orderable health care service."; 5049 case OPERATIONDEFINITION: return "A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction)."; 5050 case OPERATIONOUTCOME: return "A collection of error, warning, or information messages that result from a system action."; 5051 case ORGANIZATION: return "A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, etc."; 5052 case ORGANIZATIONAFFILIATION: return "Defines an affiliation/assotiation/relationship between 2 distinct oganizations, that is not a part-of relationship/sub-division relationship."; 5053 case PACKAGEDPRODUCTDEFINITION: return "A medicinal product in a container or package."; 5054 case PARAMETERS: return "This resource is a non-persisted resource used to pass information into and back from an [operation](operations.html). It has no other use, and there is no RESTful endpoint associated with it."; 5055 case PATIENT: return "Demographics and other administrative information about an individual or animal receiving care or other health-related services."; 5056 case PAYMENTNOTICE: return "This resource provides the status of the payment for goods and services rendered, and the request and response resource references."; 5057 case PAYMENTRECONCILIATION: return "This resource provides the details including amount of a payment and allocates the payment items being paid."; 5058 case PERSON: return "Demographics and administrative information about a person independent of a specific health-related context."; 5059 case PLANDEFINITION: return "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols."; 5060 case PRACTITIONER: return "A person who is directly or indirectly involved in the provisioning of healthcare."; 5061 case PRACTITIONERROLE: return "A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time."; 5062 case PROCEDURE: return "An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy."; 5063 case PROVENANCE: return "Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies."; 5064 case QUESTIONNAIRE: return "A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection."; 5065 case QUESTIONNAIRERESPONSE: return "A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to."; 5066 case REGULATEDAUTHORIZATION: return "The regulatory authorization of a medicinal product."; 5067 case RELATEDPERSON: return "Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process."; 5068 case REQUESTGROUP: return "A group of related requests that can be used to capture intended activities that have inter-dependencies such as \"give this medication after that one\"."; 5069 case RESEARCHSTUDY: return "A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects."; 5070 case RESEARCHSUBJECT: return "A physical entity which is the primary unit of operational and/or administrative interest in a study."; 5071 case RESOURCE: return "This is the base resource type for everything."; 5072 case RISKASSESSMENT: return "An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome."; 5073 case SCHEDULE: return "A container for slots of time that may be available for booking appointments."; 5074 case SEARCHPARAMETER: return "A search parameter that defines a named search item that can be used to search/filter on a resource."; 5075 case SERVICEREQUEST: return "A record of a request for service such as diagnostic investigations, treatments, or operations to be performed."; 5076 case SLOT: return "A slot of time on a schedule that may be available for booking appointments."; 5077 case SPECIMEN: return "A sample to be used for analysis."; 5078 case SPECIMENDEFINITION: return "A kind of specimen with associated set of requirements."; 5079 case STRUCTUREDEFINITION: return "A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions and constraints on resources and data types."; 5080 case STRUCTUREMAP: return "A Map of relationships between 2 structures that can be used to transform data."; 5081 case SUBSCRIPTION: return "The subscription resource describes a particular client's request to be notified about a Topic."; 5082 case SUBSTANCE: return "A homogeneous material with a definite composition."; 5083 case SUBSTANCEDEFINITION: return "The detailed description of a substance, typically at a level beyond what is used for prescribing."; 5084 case SUBSTANCENUCLEICACID: return "Nucleic acids are defined by three distinct elements: the base, sugar and linkage. Individual substance/moiety IDs will be created for each of these elements. The nucleotide sequence will be always entered in the 5’-3’ direction."; 5085 case SUBSTANCEPOLYMER: return "Todo."; 5086 case SUBSTANCEPROTEIN: return "A SubstanceProtein is defined as a single unit of a linear amino acid sequence, or a combination of subunits that are either covalently linked or have a defined invariant stoichiometric relationship. This includes all synthetic, recombinant and purified SubstanceProteins of defined sequence, whether the use is therapeutic or prophylactic. This set of elements will be used to describe albumins, coagulation factors, cytokines, growth factors, peptide/SubstanceProtein hormones, enzymes, toxins, toxoids, recombinant vaccines, and immunomodulators."; 5087 case SUBSTANCEREFERENCEINFORMATION: return "Todo."; 5088 case SUBSTANCESOURCEMATERIAL: return "Source material shall capture information on the taxonomic and anatomical origins as well as the fraction of a material that can result in or can be modified to form a substance. This set of data elements shall be used to define polymer substances isolated from biological matrices. Taxonomic and anatomical origins shall be described using a controlled vocabulary as required. This information is captured for naturally derived polymers ( . starch) and structurally diverse substances. For Organisms belonging to the Kingdom Plantae the Substance level defines the fresh material of a single species or infraspecies, the Herbal Drug and the Herbal preparation. For Herbal preparations, the fraction information will be captured at the Substance information level and additional information for herbal extracts will be captured at the Specified Substance Group 1 information level. See for further explanation the Substance Class: Structurally Diverse and the herbal annex."; 5089 case SUPPLYDELIVERY: return "Record of delivery of what is supplied."; 5090 case SUPPLYREQUEST: return "A record of a request for a medication, substance or device used in the healthcare setting."; 5091 case TASK: return "A task to be performed."; 5092 case TERMINOLOGYCAPABILITIES: return "A TerminologyCapabilities resource documents a set of capabilities (behaviors) of a FHIR Terminology Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; 5093 case TESTREPORT: return "A summary of information based on the results of executing a TestScript."; 5094 case TESTSCRIPT: return "A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification."; 5095 case TOPIC: return "Describes a stream of resource state changes identified by trigger criteria and annotated with labels useful to filter projections from this topic."; 5096 case VALUESET: return "A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html)."; 5097 case VERIFICATIONRESULT: return "Describes validation requirements, source(s), status and dates for one or more elements."; 5098 case VISIONPRESCRIPTION: return "An authorization for the provision of glasses and/or contact lenses to a patient."; 5099 case TYPE: return "A place holder that means any kind of data type"; 5100 case ANY: return "A place holder that means any kind of resource"; 5101 default: return "?"; 5102 } 5103 } 5104 public String getDisplay() { 5105 switch (this) { 5106 case ADDRESS: return "Address"; 5107 case AGE: return "Age"; 5108 case ANNOTATION: return "Annotation"; 5109 case ATTACHMENT: return "Attachment"; 5110 case BACKBONEELEMENT: return "BackboneElement"; 5111 case CODEABLECONCEPT: return "CodeableConcept"; 5112 case CODING: return "Coding"; 5113 case CONTACTDETAIL: return "ContactDetail"; 5114 case CONTACTPOINT: return "ContactPoint"; 5115 case CONTRIBUTOR: return "Contributor"; 5116 case COUNT: return "Count"; 5117 case DATAREQUIREMENT: return "DataRequirement"; 5118 case DISTANCE: return "Distance"; 5119 case DOSAGE: return "Dosage"; 5120 case DURATION: return "Duration"; 5121 case ELEMENT: return "Element"; 5122 case ELEMENTDEFINITION: return "ElementDefinition"; 5123 case EXPRESSION: return "Expression"; 5124 case EXTENSION: return "Extension"; 5125 case HUMANNAME: return "HumanName"; 5126 case IDENTIFIER: return "Identifier"; 5127 case MARKETINGSTATUS: return "MarketingStatus"; 5128 case META: return "Meta"; 5129 case MONEY: return "Money"; 5130 case MONEYQUANTITY: return "MoneyQuantity"; 5131 case NARRATIVE: return "Narrative"; 5132 case ORDEREDDISTRIBUTION: return "OrderedDistribution"; 5133 case PARAMETERDEFINITION: return "ParameterDefinition"; 5134 case PERIOD: return "Period"; 5135 case POPULATION: return "Population"; 5136 case PRODCHARACTERISTIC: return "ProdCharacteristic"; 5137 case PRODUCTSHELFLIFE: return "ProductShelfLife"; 5138 case QUANTITY: return "Quantity"; 5139 case RANGE: return "Range"; 5140 case RATIO: return "Ratio"; 5141 case REFERENCE: return "Reference"; 5142 case RELATEDARTIFACT: return "RelatedArtifact"; 5143 case SAMPLEDDATA: return "SampledData"; 5144 case SIGNATURE: return "Signature"; 5145 case SIMPLEQUANTITY: return "SimpleQuantity"; 5146 case STATISTIC: return "Statistic"; 5147 case SUBSTANCEAMOUNT: return "SubstanceAmount"; 5148 case TIMING: return "Timing"; 5149 case TRIGGERDEFINITION: return "TriggerDefinition"; 5150 case USAGECONTEXT: return "UsageContext"; 5151 case BASE64BINARY: return "base64Binary"; 5152 case BOOLEAN: return "boolean"; 5153 case CANONICAL: return "canonical"; 5154 case CODE: return "code"; 5155 case DATE: return "date"; 5156 case DATETIME: return "dateTime"; 5157 case DECIMAL: return "decimal"; 5158 case ID: return "id"; 5159 case INSTANT: return "instant"; 5160 case INTEGER: return "integer"; 5161 case MARKDOWN: return "markdown"; 5162 case OID: return "oid"; 5163 case POSITIVEINT: return "positiveInt"; 5164 case STRING: return "string"; 5165 case TIME: return "time"; 5166 case UNSIGNEDINT: return "unsignedInt"; 5167 case URI: return "uri"; 5168 case URL: return "url"; 5169 case UUID: return "uuid"; 5170 case XHTML: return "XHTML"; 5171 case ACCOUNT: return "Account"; 5172 case ACTIVITYDEFINITION: return "ActivityDefinition"; 5173 case ADMINISTRABLEPRODUCTDEFINITION: return "AdministrableProductDefinition"; 5174 case ADVERSEEVENT: return "AdverseEvent"; 5175 case ALLERGYINTOLERANCE: return "AllergyIntolerance"; 5176 case APPOINTMENT: return "Appointment"; 5177 case APPOINTMENTRESPONSE: return "AppointmentResponse"; 5178 case AUDITEVENT: return "AuditEvent"; 5179 case BASIC: return "Basic"; 5180 case BINARY: return "Binary"; 5181 case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct"; 5182 case BODYSTRUCTURE: return "BodyStructure"; 5183 case BUNDLE: return "Bundle"; 5184 case CAPABILITYSTATEMENT: return "CapabilityStatement"; 5185 case CAPABILITYSTATEMENT2: return "CapabilityStatement2"; 5186 case CAREPLAN: return "CarePlan"; 5187 case CARETEAM: return "CareTeam"; 5188 case CATALOGENTRY: return "CatalogEntry"; 5189 case CHARGEITEM: return "ChargeItem"; 5190 case CHARGEITEMDEFINITION: return "ChargeItemDefinition"; 5191 case CLAIM: return "Claim"; 5192 case CLAIMRESPONSE: return "ClaimResponse"; 5193 case CLINICALIMPRESSION: return "ClinicalImpression"; 5194 case CLINICALUSEISSUE: return "ClinicalUseIssue"; 5195 case CODESYSTEM: return "CodeSystem"; 5196 case COMMUNICATION: return "Communication"; 5197 case COMMUNICATIONREQUEST: return "CommunicationRequest"; 5198 case COMPARTMENTDEFINITION: return "CompartmentDefinition"; 5199 case COMPOSITION: return "Composition"; 5200 case CONCEPTMAP: return "ConceptMap"; 5201 case CONDITION: return "Condition"; 5202 case CONDITIONDEFINITION: return "ConditionDefinition"; 5203 case CONSENT: return "Consent"; 5204 case CONTRACT: return "Contract"; 5205 case COVERAGE: return "Coverage"; 5206 case COVERAGEELIGIBILITYREQUEST: return "CoverageEligibilityRequest"; 5207 case COVERAGEELIGIBILITYRESPONSE: return "CoverageEligibilityResponse"; 5208 case DETECTEDISSUE: return "DetectedIssue"; 5209 case DEVICE: return "Device"; 5210 case DEVICEDEFINITION: return "DeviceDefinition"; 5211 case DEVICEMETRIC: return "DeviceMetric"; 5212 case DEVICEREQUEST: return "DeviceRequest"; 5213 case DEVICEUSESTATEMENT: return "DeviceUseStatement"; 5214 case DIAGNOSTICREPORT: return "DiagnosticReport"; 5215 case DOCUMENTMANIFEST: return "DocumentManifest"; 5216 case DOCUMENTREFERENCE: return "DocumentReference"; 5217 case DOMAINRESOURCE: return "DomainResource"; 5218 case ENCOUNTER: return "Encounter"; 5219 case ENDPOINT: return "Endpoint"; 5220 case ENROLLMENTREQUEST: return "EnrollmentRequest"; 5221 case ENROLLMENTRESPONSE: return "EnrollmentResponse"; 5222 case EPISODEOFCARE: return "EpisodeOfCare"; 5223 case EVENTDEFINITION: return "EventDefinition"; 5224 case EVIDENCE: return "Evidence"; 5225 case EVIDENCEVARIABLE: return "EvidenceVariable"; 5226 case EXAMPLESCENARIO: return "ExampleScenario"; 5227 case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit"; 5228 case FAMILYMEMBERHISTORY: return "FamilyMemberHistory"; 5229 case FLAG: return "Flag"; 5230 case GOAL: return "Goal"; 5231 case GRAPHDEFINITION: return "GraphDefinition"; 5232 case GROUP: return "Group"; 5233 case GUIDANCERESPONSE: return "GuidanceResponse"; 5234 case HEALTHCARESERVICE: return "HealthcareService"; 5235 case IMAGINGSTUDY: return "ImagingStudy"; 5236 case IMMUNIZATION: return "Immunization"; 5237 case IMMUNIZATIONEVALUATION: return "ImmunizationEvaluation"; 5238 case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation"; 5239 case IMPLEMENTATIONGUIDE: return "ImplementationGuide"; 5240 case INGREDIENT: return "Ingredient"; 5241 case INSURANCEPLAN: return "InsurancePlan"; 5242 case INVOICE: return "Invoice"; 5243 case LIBRARY: return "Library"; 5244 case LINKAGE: return "Linkage"; 5245 case LIST: return "List"; 5246 case LOCATION: return "Location"; 5247 case MANUFACTUREDITEMDEFINITION: return "ManufacturedItemDefinition"; 5248 case MEASURE: return "Measure"; 5249 case MEASUREREPORT: return "MeasureReport"; 5250 case MEDICATION: return "Medication"; 5251 case MEDICATIONADMINISTRATION: return "MedicationAdministration"; 5252 case MEDICATIONDISPENSE: return "MedicationDispense"; 5253 case MEDICATIONKNOWLEDGE: return "MedicationKnowledge"; 5254 case MEDICATIONREQUEST: return "MedicationRequest"; 5255 case MEDICATIONUSAGE: return "MedicationUsage"; 5256 case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition"; 5257 case MESSAGEDEFINITION: return "MessageDefinition"; 5258 case MESSAGEHEADER: return "MessageHeader"; 5259 case MOLECULARSEQUENCE: return "MolecularSequence"; 5260 case NAMINGSYSTEM: return "NamingSystem"; 5261 case NUTRITIONINTAKE: return "NutritionIntake"; 5262 case NUTRITIONORDER: return "NutritionOrder"; 5263 case OBSERVATION: return "Observation"; 5264 case OBSERVATIONDEFINITION: return "ObservationDefinition"; 5265 case OPERATIONDEFINITION: return "OperationDefinition"; 5266 case OPERATIONOUTCOME: return "OperationOutcome"; 5267 case ORGANIZATION: return "Organization"; 5268 case ORGANIZATIONAFFILIATION: return "OrganizationAffiliation"; 5269 case PACKAGEDPRODUCTDEFINITION: return "PackagedProductDefinition"; 5270 case PARAMETERS: return "Parameters"; 5271 case PATIENT: return "Patient"; 5272 case PAYMENTNOTICE: return "PaymentNotice"; 5273 case PAYMENTRECONCILIATION: return "PaymentReconciliation"; 5274 case PERSON: return "Person"; 5275 case PLANDEFINITION: return "PlanDefinition"; 5276 case PRACTITIONER: return "Practitioner"; 5277 case PRACTITIONERROLE: return "PractitionerRole"; 5278 case PROCEDURE: return "Procedure"; 5279 case PROVENANCE: return "Provenance"; 5280 case QUESTIONNAIRE: return "Questionnaire"; 5281 case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse"; 5282 case REGULATEDAUTHORIZATION: return "RegulatedAuthorization"; 5283 case RELATEDPERSON: return "RelatedPerson"; 5284 case REQUESTGROUP: return "RequestGroup"; 5285 case RESEARCHSTUDY: return "ResearchStudy"; 5286 case RESEARCHSUBJECT: return "ResearchSubject"; 5287 case RESOURCE: return "Resource"; 5288 case RISKASSESSMENT: return "RiskAssessment"; 5289 case SCHEDULE: return "Schedule"; 5290 case SEARCHPARAMETER: return "SearchParameter"; 5291 case SERVICEREQUEST: return "ServiceRequest"; 5292 case SLOT: return "Slot"; 5293 case SPECIMEN: return "Specimen"; 5294 case SPECIMENDEFINITION: return "SpecimenDefinition"; 5295 case STRUCTUREDEFINITION: return "StructureDefinition"; 5296 case STRUCTUREMAP: return "StructureMap"; 5297 case SUBSCRIPTION: return "Subscription"; 5298 case SUBSTANCE: return "Substance"; 5299 case SUBSTANCEDEFINITION: return "SubstanceDefinition"; 5300 case SUBSTANCENUCLEICACID: return "SubstanceNucleicAcid"; 5301 case SUBSTANCEPOLYMER: return "SubstancePolymer"; 5302 case SUBSTANCEPROTEIN: return "SubstanceProtein"; 5303 case SUBSTANCEREFERENCEINFORMATION: return "SubstanceReferenceInformation"; 5304 case SUBSTANCESOURCEMATERIAL: return "SubstanceSourceMaterial"; 5305 case SUPPLYDELIVERY: return "SupplyDelivery"; 5306 case SUPPLYREQUEST: return "SupplyRequest"; 5307 case TASK: return "Task"; 5308 case TERMINOLOGYCAPABILITIES: return "TerminologyCapabilities"; 5309 case TESTREPORT: return "TestReport"; 5310 case TESTSCRIPT: return "TestScript"; 5311 case TOPIC: return "Topic"; 5312 case VALUESET: return "ValueSet"; 5313 case VERIFICATIONRESULT: return "VerificationResult"; 5314 case VISIONPRESCRIPTION: return "VisionPrescription"; 5315 case TYPE: return "Type"; 5316 case ANY: return "Any"; 5317 default: return "?"; 5318 } 5319 } 5320 } 5321 5322 public static class FHIRAllTypesEnumFactory implements EnumFactory<FHIRAllTypes> { 5323 public FHIRAllTypes fromCode(String codeString) throws IllegalArgumentException { 5324 if (codeString == null || "".equals(codeString)) 5325 if (codeString == null || "".equals(codeString)) 5326 return null; 5327 if ("Address".equals(codeString)) 5328 return FHIRAllTypes.ADDRESS; 5329 if ("Age".equals(codeString)) 5330 return FHIRAllTypes.AGE; 5331 if ("Annotation".equals(codeString)) 5332 return FHIRAllTypes.ANNOTATION; 5333 if ("Attachment".equals(codeString)) 5334 return FHIRAllTypes.ATTACHMENT; 5335 if ("BackboneElement".equals(codeString)) 5336 return FHIRAllTypes.BACKBONEELEMENT; 5337 if ("CodeableConcept".equals(codeString)) 5338 return FHIRAllTypes.CODEABLECONCEPT; 5339 if ("Coding".equals(codeString)) 5340 return FHIRAllTypes.CODING; 5341 if ("ContactDetail".equals(codeString)) 5342 return FHIRAllTypes.CONTACTDETAIL; 5343 if ("ContactPoint".equals(codeString)) 5344 return FHIRAllTypes.CONTACTPOINT; 5345 if ("Contributor".equals(codeString)) 5346 return FHIRAllTypes.CONTRIBUTOR; 5347 if ("Count".equals(codeString)) 5348 return FHIRAllTypes.COUNT; 5349 if ("DataRequirement".equals(codeString)) 5350 return FHIRAllTypes.DATAREQUIREMENT; 5351 if ("Distance".equals(codeString)) 5352 return FHIRAllTypes.DISTANCE; 5353 if ("Dosage".equals(codeString)) 5354 return FHIRAllTypes.DOSAGE; 5355 if ("Duration".equals(codeString)) 5356 return FHIRAllTypes.DURATION; 5357 if ("Element".equals(codeString)) 5358 return FHIRAllTypes.ELEMENT; 5359 if ("ElementDefinition".equals(codeString)) 5360 return FHIRAllTypes.ELEMENTDEFINITION; 5361 if ("Expression".equals(codeString)) 5362 return FHIRAllTypes.EXPRESSION; 5363 if ("Extension".equals(codeString)) 5364 return FHIRAllTypes.EXTENSION; 5365 if ("HumanName".equals(codeString)) 5366 return FHIRAllTypes.HUMANNAME; 5367 if ("Identifier".equals(codeString)) 5368 return FHIRAllTypes.IDENTIFIER; 5369 if ("MarketingStatus".equals(codeString)) 5370 return FHIRAllTypes.MARKETINGSTATUS; 5371 if ("Meta".equals(codeString)) 5372 return FHIRAllTypes.META; 5373 if ("Money".equals(codeString)) 5374 return FHIRAllTypes.MONEY; 5375 if ("MoneyQuantity".equals(codeString)) 5376 return FHIRAllTypes.MONEYQUANTITY; 5377 if ("Narrative".equals(codeString)) 5378 return FHIRAllTypes.NARRATIVE; 5379 if ("OrderedDistribution".equals(codeString)) 5380 return FHIRAllTypes.ORDEREDDISTRIBUTION; 5381 if ("ParameterDefinition".equals(codeString)) 5382 return FHIRAllTypes.PARAMETERDEFINITION; 5383 if ("Period".equals(codeString)) 5384 return FHIRAllTypes.PERIOD; 5385 if ("Population".equals(codeString)) 5386 return FHIRAllTypes.POPULATION; 5387 if ("ProdCharacteristic".equals(codeString)) 5388 return FHIRAllTypes.PRODCHARACTERISTIC; 5389 if ("ProductShelfLife".equals(codeString)) 5390 return FHIRAllTypes.PRODUCTSHELFLIFE; 5391 if ("Quantity".equals(codeString)) 5392 return FHIRAllTypes.QUANTITY; 5393 if ("Range".equals(codeString)) 5394 return FHIRAllTypes.RANGE; 5395 if ("Ratio".equals(codeString)) 5396 return FHIRAllTypes.RATIO; 5397 if ("Reference".equals(codeString)) 5398 return FHIRAllTypes.REFERENCE; 5399 if ("RelatedArtifact".equals(codeString)) 5400 return FHIRAllTypes.RELATEDARTIFACT; 5401 if ("SampledData".equals(codeString)) 5402 return FHIRAllTypes.SAMPLEDDATA; 5403 if ("Signature".equals(codeString)) 5404 return FHIRAllTypes.SIGNATURE; 5405 if ("SimpleQuantity".equals(codeString)) 5406 return FHIRAllTypes.SIMPLEQUANTITY; 5407 if ("Statistic".equals(codeString)) 5408 return FHIRAllTypes.STATISTIC; 5409 if ("SubstanceAmount".equals(codeString)) 5410 return FHIRAllTypes.SUBSTANCEAMOUNT; 5411 if ("Timing".equals(codeString)) 5412 return FHIRAllTypes.TIMING; 5413 if ("TriggerDefinition".equals(codeString)) 5414 return FHIRAllTypes.TRIGGERDEFINITION; 5415 if ("UsageContext".equals(codeString)) 5416 return FHIRAllTypes.USAGECONTEXT; 5417 if ("base64Binary".equals(codeString)) 5418 return FHIRAllTypes.BASE64BINARY; 5419 if ("boolean".equals(codeString)) 5420 return FHIRAllTypes.BOOLEAN; 5421 if ("canonical".equals(codeString)) 5422 return FHIRAllTypes.CANONICAL; 5423 if ("code".equals(codeString)) 5424 return FHIRAllTypes.CODE; 5425 if ("date".equals(codeString)) 5426 return FHIRAllTypes.DATE; 5427 if ("dateTime".equals(codeString)) 5428 return FHIRAllTypes.DATETIME; 5429 if ("decimal".equals(codeString)) 5430 return FHIRAllTypes.DECIMAL; 5431 if ("id".equals(codeString)) 5432 return FHIRAllTypes.ID; 5433 if ("instant".equals(codeString)) 5434 return FHIRAllTypes.INSTANT; 5435 if ("integer".equals(codeString)) 5436 return FHIRAllTypes.INTEGER; 5437 if ("markdown".equals(codeString)) 5438 return FHIRAllTypes.MARKDOWN; 5439 if ("oid".equals(codeString)) 5440 return FHIRAllTypes.OID; 5441 if ("positiveInt".equals(codeString)) 5442 return FHIRAllTypes.POSITIVEINT; 5443 if ("string".equals(codeString)) 5444 return FHIRAllTypes.STRING; 5445 if ("time".equals(codeString)) 5446 return FHIRAllTypes.TIME; 5447 if ("unsignedInt".equals(codeString)) 5448 return FHIRAllTypes.UNSIGNEDINT; 5449 if ("uri".equals(codeString)) 5450 return FHIRAllTypes.URI; 5451 if ("url".equals(codeString)) 5452 return FHIRAllTypes.URL; 5453 if ("uuid".equals(codeString)) 5454 return FHIRAllTypes.UUID; 5455 if ("xhtml".equals(codeString)) 5456 return FHIRAllTypes.XHTML; 5457 if ("Account".equals(codeString)) 5458 return FHIRAllTypes.ACCOUNT; 5459 if ("ActivityDefinition".equals(codeString)) 5460 return FHIRAllTypes.ACTIVITYDEFINITION; 5461 if ("AdministrableProductDefinition".equals(codeString)) 5462 return FHIRAllTypes.ADMINISTRABLEPRODUCTDEFINITION; 5463 if ("AdverseEvent".equals(codeString)) 5464 return FHIRAllTypes.ADVERSEEVENT; 5465 if ("AllergyIntolerance".equals(codeString)) 5466 return FHIRAllTypes.ALLERGYINTOLERANCE; 5467 if ("Appointment".equals(codeString)) 5468 return FHIRAllTypes.APPOINTMENT; 5469 if ("AppointmentResponse".equals(codeString)) 5470 return FHIRAllTypes.APPOINTMENTRESPONSE; 5471 if ("AuditEvent".equals(codeString)) 5472 return FHIRAllTypes.AUDITEVENT; 5473 if ("Basic".equals(codeString)) 5474 return FHIRAllTypes.BASIC; 5475 if ("Binary".equals(codeString)) 5476 return FHIRAllTypes.BINARY; 5477 if ("BiologicallyDerivedProduct".equals(codeString)) 5478 return FHIRAllTypes.BIOLOGICALLYDERIVEDPRODUCT; 5479 if ("BodyStructure".equals(codeString)) 5480 return FHIRAllTypes.BODYSTRUCTURE; 5481 if ("Bundle".equals(codeString)) 5482 return FHIRAllTypes.BUNDLE; 5483 if ("CapabilityStatement".equals(codeString)) 5484 return FHIRAllTypes.CAPABILITYSTATEMENT; 5485 if ("CapabilityStatement2".equals(codeString)) 5486 return FHIRAllTypes.CAPABILITYSTATEMENT2; 5487 if ("CarePlan".equals(codeString)) 5488 return FHIRAllTypes.CAREPLAN; 5489 if ("CareTeam".equals(codeString)) 5490 return FHIRAllTypes.CARETEAM; 5491 if ("CatalogEntry".equals(codeString)) 5492 return FHIRAllTypes.CATALOGENTRY; 5493 if ("ChargeItem".equals(codeString)) 5494 return FHIRAllTypes.CHARGEITEM; 5495 if ("ChargeItemDefinition".equals(codeString)) 5496 return FHIRAllTypes.CHARGEITEMDEFINITION; 5497 if ("Claim".equals(codeString)) 5498 return FHIRAllTypes.CLAIM; 5499 if ("ClaimResponse".equals(codeString)) 5500 return FHIRAllTypes.CLAIMRESPONSE; 5501 if ("ClinicalImpression".equals(codeString)) 5502 return FHIRAllTypes.CLINICALIMPRESSION; 5503 if ("ClinicalUseIssue".equals(codeString)) 5504 return FHIRAllTypes.CLINICALUSEISSUE; 5505 if ("CodeSystem".equals(codeString)) 5506 return FHIRAllTypes.CODESYSTEM; 5507 if ("Communication".equals(codeString)) 5508 return FHIRAllTypes.COMMUNICATION; 5509 if ("CommunicationRequest".equals(codeString)) 5510 return FHIRAllTypes.COMMUNICATIONREQUEST; 5511 if ("CompartmentDefinition".equals(codeString)) 5512 return FHIRAllTypes.COMPARTMENTDEFINITION; 5513 if ("Composition".equals(codeString)) 5514 return FHIRAllTypes.COMPOSITION; 5515 if ("ConceptMap".equals(codeString)) 5516 return FHIRAllTypes.CONCEPTMAP; 5517 if ("Condition".equals(codeString)) 5518 return FHIRAllTypes.CONDITION; 5519 if ("ConditionDefinition".equals(codeString)) 5520 return FHIRAllTypes.CONDITIONDEFINITION; 5521 if ("Consent".equals(codeString)) 5522 return FHIRAllTypes.CONSENT; 5523 if ("Contract".equals(codeString)) 5524 return FHIRAllTypes.CONTRACT; 5525 if ("Coverage".equals(codeString)) 5526 return FHIRAllTypes.COVERAGE; 5527 if ("CoverageEligibilityRequest".equals(codeString)) 5528 return FHIRAllTypes.COVERAGEELIGIBILITYREQUEST; 5529 if ("CoverageEligibilityResponse".equals(codeString)) 5530 return FHIRAllTypes.COVERAGEELIGIBILITYRESPONSE; 5531 if ("DetectedIssue".equals(codeString)) 5532 return FHIRAllTypes.DETECTEDISSUE; 5533 if ("Device".equals(codeString)) 5534 return FHIRAllTypes.DEVICE; 5535 if ("DeviceDefinition".equals(codeString)) 5536 return FHIRAllTypes.DEVICEDEFINITION; 5537 if ("DeviceMetric".equals(codeString)) 5538 return FHIRAllTypes.DEVICEMETRIC; 5539 if ("DeviceRequest".equals(codeString)) 5540 return FHIRAllTypes.DEVICEREQUEST; 5541 if ("DeviceUseStatement".equals(codeString)) 5542 return FHIRAllTypes.DEVICEUSESTATEMENT; 5543 if ("DiagnosticReport".equals(codeString)) 5544 return FHIRAllTypes.DIAGNOSTICREPORT; 5545 if ("DocumentManifest".equals(codeString)) 5546 return FHIRAllTypes.DOCUMENTMANIFEST; 5547 if ("DocumentReference".equals(codeString)) 5548 return FHIRAllTypes.DOCUMENTREFERENCE; 5549 if ("DomainResource".equals(codeString)) 5550 return FHIRAllTypes.DOMAINRESOURCE; 5551 if ("Encounter".equals(codeString)) 5552 return FHIRAllTypes.ENCOUNTER; 5553 if ("Endpoint".equals(codeString)) 5554 return FHIRAllTypes.ENDPOINT; 5555 if ("EnrollmentRequest".equals(codeString)) 5556 return FHIRAllTypes.ENROLLMENTREQUEST; 5557 if ("EnrollmentResponse".equals(codeString)) 5558 return FHIRAllTypes.ENROLLMENTRESPONSE; 5559 if ("EpisodeOfCare".equals(codeString)) 5560 return FHIRAllTypes.EPISODEOFCARE; 5561 if ("EventDefinition".equals(codeString)) 5562 return FHIRAllTypes.EVENTDEFINITION; 5563 if ("Evidence".equals(codeString)) 5564 return FHIRAllTypes.EVIDENCE; 5565 if ("EvidenceVariable".equals(codeString)) 5566 return FHIRAllTypes.EVIDENCEVARIABLE; 5567 if ("ExampleScenario".equals(codeString)) 5568 return FHIRAllTypes.EXAMPLESCENARIO; 5569 if ("ExplanationOfBenefit".equals(codeString)) 5570 return FHIRAllTypes.EXPLANATIONOFBENEFIT; 5571 if ("FamilyMemberHistory".equals(codeString)) 5572 return FHIRAllTypes.FAMILYMEMBERHISTORY; 5573 if ("Flag".equals(codeString)) 5574 return FHIRAllTypes.FLAG; 5575 if ("Goal".equals(codeString)) 5576 return FHIRAllTypes.GOAL; 5577 if ("GraphDefinition".equals(codeString)) 5578 return FHIRAllTypes.GRAPHDEFINITION; 5579 if ("Group".equals(codeString)) 5580 return FHIRAllTypes.GROUP; 5581 if ("GuidanceResponse".equals(codeString)) 5582 return FHIRAllTypes.GUIDANCERESPONSE; 5583 if ("HealthcareService".equals(codeString)) 5584 return FHIRAllTypes.HEALTHCARESERVICE; 5585 if ("ImagingStudy".equals(codeString)) 5586 return FHIRAllTypes.IMAGINGSTUDY; 5587 if ("Immunization".equals(codeString)) 5588 return FHIRAllTypes.IMMUNIZATION; 5589 if ("ImmunizationEvaluation".equals(codeString)) 5590 return FHIRAllTypes.IMMUNIZATIONEVALUATION; 5591 if ("ImmunizationRecommendation".equals(codeString)) 5592 return FHIRAllTypes.IMMUNIZATIONRECOMMENDATION; 5593 if ("ImplementationGuide".equals(codeString)) 5594 return FHIRAllTypes.IMPLEMENTATIONGUIDE; 5595 if ("Ingredient".equals(codeString)) 5596 return FHIRAllTypes.INGREDIENT; 5597 if ("InsurancePlan".equals(codeString)) 5598 return FHIRAllTypes.INSURANCEPLAN; 5599 if ("Invoice".equals(codeString)) 5600 return FHIRAllTypes.INVOICE; 5601 if ("Library".equals(codeString)) 5602 return FHIRAllTypes.LIBRARY; 5603 if ("Linkage".equals(codeString)) 5604 return FHIRAllTypes.LINKAGE; 5605 if ("List".equals(codeString)) 5606 return FHIRAllTypes.LIST; 5607 if ("Location".equals(codeString)) 5608 return FHIRAllTypes.LOCATION; 5609 if ("ManufacturedItemDefinition".equals(codeString)) 5610 return FHIRAllTypes.MANUFACTUREDITEMDEFINITION; 5611 if ("Measure".equals(codeString)) 5612 return FHIRAllTypes.MEASURE; 5613 if ("MeasureReport".equals(codeString)) 5614 return FHIRAllTypes.MEASUREREPORT; 5615 if ("Medication".equals(codeString)) 5616 return FHIRAllTypes.MEDICATION; 5617 if ("MedicationAdministration".equals(codeString)) 5618 return FHIRAllTypes.MEDICATIONADMINISTRATION; 5619 if ("MedicationDispense".equals(codeString)) 5620 return FHIRAllTypes.MEDICATIONDISPENSE; 5621 if ("MedicationKnowledge".equals(codeString)) 5622 return FHIRAllTypes.MEDICATIONKNOWLEDGE; 5623 if ("MedicationRequest".equals(codeString)) 5624 return FHIRAllTypes.MEDICATIONREQUEST; 5625 if ("MedicationUsage".equals(codeString)) 5626 return FHIRAllTypes.MEDICATIONUSAGE; 5627 if ("MedicinalProductDefinition".equals(codeString)) 5628 return FHIRAllTypes.MEDICINALPRODUCTDEFINITION; 5629 if ("MessageDefinition".equals(codeString)) 5630 return FHIRAllTypes.MESSAGEDEFINITION; 5631 if ("MessageHeader".equals(codeString)) 5632 return FHIRAllTypes.MESSAGEHEADER; 5633 if ("MolecularSequence".equals(codeString)) 5634 return FHIRAllTypes.MOLECULARSEQUENCE; 5635 if ("NamingSystem".equals(codeString)) 5636 return FHIRAllTypes.NAMINGSYSTEM; 5637 if ("NutritionIntake".equals(codeString)) 5638 return FHIRAllTypes.NUTRITIONINTAKE; 5639 if ("NutritionOrder".equals(codeString)) 5640 return FHIRAllTypes.NUTRITIONORDER; 5641 if ("Observation".equals(codeString)) 5642 return FHIRAllTypes.OBSERVATION; 5643 if ("ObservationDefinition".equals(codeString)) 5644 return FHIRAllTypes.OBSERVATIONDEFINITION; 5645 if ("OperationDefinition".equals(codeString)) 5646 return FHIRAllTypes.OPERATIONDEFINITION; 5647 if ("OperationOutcome".equals(codeString)) 5648 return FHIRAllTypes.OPERATIONOUTCOME; 5649 if ("Organization".equals(codeString)) 5650 return FHIRAllTypes.ORGANIZATION; 5651 if ("OrganizationAffiliation".equals(codeString)) 5652 return FHIRAllTypes.ORGANIZATIONAFFILIATION; 5653 if ("PackagedProductDefinition".equals(codeString)) 5654 return FHIRAllTypes.PACKAGEDPRODUCTDEFINITION; 5655 if ("Parameters".equals(codeString)) 5656 return FHIRAllTypes.PARAMETERS; 5657 if ("Patient".equals(codeString)) 5658 return FHIRAllTypes.PATIENT; 5659 if ("PaymentNotice".equals(codeString)) 5660 return FHIRAllTypes.PAYMENTNOTICE; 5661 if ("PaymentReconciliation".equals(codeString)) 5662 return FHIRAllTypes.PAYMENTRECONCILIATION; 5663 if ("Person".equals(codeString)) 5664 return FHIRAllTypes.PERSON; 5665 if ("PlanDefinition".equals(codeString)) 5666 return FHIRAllTypes.PLANDEFINITION; 5667 if ("Practitioner".equals(codeString)) 5668 return FHIRAllTypes.PRACTITIONER; 5669 if ("PractitionerRole".equals(codeString)) 5670 return FHIRAllTypes.PRACTITIONERROLE; 5671 if ("Procedure".equals(codeString)) 5672 return FHIRAllTypes.PROCEDURE; 5673 if ("Provenance".equals(codeString)) 5674 return FHIRAllTypes.PROVENANCE; 5675 if ("Questionnaire".equals(codeString)) 5676 return FHIRAllTypes.QUESTIONNAIRE; 5677 if ("QuestionnaireResponse".equals(codeString)) 5678 return FHIRAllTypes.QUESTIONNAIRERESPONSE; 5679 if ("RegulatedAuthorization".equals(codeString)) 5680 return FHIRAllTypes.REGULATEDAUTHORIZATION; 5681 if ("RelatedPerson".equals(codeString)) 5682 return FHIRAllTypes.RELATEDPERSON; 5683 if ("RequestGroup".equals(codeString)) 5684 return FHIRAllTypes.REQUESTGROUP; 5685 if ("ResearchStudy".equals(codeString)) 5686 return FHIRAllTypes.RESEARCHSTUDY; 5687 if ("ResearchSubject".equals(codeString)) 5688 return FHIRAllTypes.RESEARCHSUBJECT; 5689 if ("Resource".equals(codeString)) 5690 return FHIRAllTypes.RESOURCE; 5691 if ("RiskAssessment".equals(codeString)) 5692 return FHIRAllTypes.RISKASSESSMENT; 5693 if ("Schedule".equals(codeString)) 5694 return FHIRAllTypes.SCHEDULE; 5695 if ("SearchParameter".equals(codeString)) 5696 return FHIRAllTypes.SEARCHPARAMETER; 5697 if ("ServiceRequest".equals(codeString)) 5698 return FHIRAllTypes.SERVICEREQUEST; 5699 if ("Slot".equals(codeString)) 5700 return FHIRAllTypes.SLOT; 5701 if ("Specimen".equals(codeString)) 5702 return FHIRAllTypes.SPECIMEN; 5703 if ("SpecimenDefinition".equals(codeString)) 5704 return FHIRAllTypes.SPECIMENDEFINITION; 5705 if ("StructureDefinition".equals(codeString)) 5706 return FHIRAllTypes.STRUCTUREDEFINITION; 5707 if ("StructureMap".equals(codeString)) 5708 return FHIRAllTypes.STRUCTUREMAP; 5709 if ("Subscription".equals(codeString)) 5710 return FHIRAllTypes.SUBSCRIPTION; 5711 if ("Substance".equals(codeString)) 5712 return FHIRAllTypes.SUBSTANCE; 5713 if ("SubstanceDefinition".equals(codeString)) 5714 return FHIRAllTypes.SUBSTANCEDEFINITION; 5715 if ("SubstanceNucleicAcid".equals(codeString)) 5716 return FHIRAllTypes.SUBSTANCENUCLEICACID; 5717 if ("SubstancePolymer".equals(codeString)) 5718 return FHIRAllTypes.SUBSTANCEPOLYMER; 5719 if ("SubstanceProtein".equals(codeString)) 5720 return FHIRAllTypes.SUBSTANCEPROTEIN; 5721 if ("SubstanceReferenceInformation".equals(codeString)) 5722 return FHIRAllTypes.SUBSTANCEREFERENCEINFORMATION; 5723 if ("SubstanceSourceMaterial".equals(codeString)) 5724 return FHIRAllTypes.SUBSTANCESOURCEMATERIAL; 5725 if ("SupplyDelivery".equals(codeString)) 5726 return FHIRAllTypes.SUPPLYDELIVERY; 5727 if ("SupplyRequest".equals(codeString)) 5728 return FHIRAllTypes.SUPPLYREQUEST; 5729 if ("Task".equals(codeString)) 5730 return FHIRAllTypes.TASK; 5731 if ("TerminologyCapabilities".equals(codeString)) 5732 return FHIRAllTypes.TERMINOLOGYCAPABILITIES; 5733 if ("TestReport".equals(codeString)) 5734 return FHIRAllTypes.TESTREPORT; 5735 if ("TestScript".equals(codeString)) 5736 return FHIRAllTypes.TESTSCRIPT; 5737 if ("Topic".equals(codeString)) 5738 return FHIRAllTypes.TOPIC; 5739 if ("ValueSet".equals(codeString)) 5740 return FHIRAllTypes.VALUESET; 5741 if ("VerificationResult".equals(codeString)) 5742 return FHIRAllTypes.VERIFICATIONRESULT; 5743 if ("VisionPrescription".equals(codeString)) 5744 return FHIRAllTypes.VISIONPRESCRIPTION; 5745 if ("Type".equals(codeString)) 5746 return FHIRAllTypes.TYPE; 5747 if ("Any".equals(codeString)) 5748 return FHIRAllTypes.ANY; 5749 throw new IllegalArgumentException("Unknown FHIRAllTypes code '"+codeString+"'"); 5750 } 5751 public Enumeration<FHIRAllTypes> fromType(Base code) throws FHIRException { 5752 if (code == null) 5753 return null; 5754 if (code.isEmpty()) 5755 return new Enumeration<FHIRAllTypes>(this); 5756 String codeString = ((PrimitiveType) code).asStringValue(); 5757 if (codeString == null || "".equals(codeString)) 5758 return null; 5759 if ("Address".equals(codeString)) 5760 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ADDRESS); 5761 if ("Age".equals(codeString)) 5762 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.AGE); 5763 if ("Annotation".equals(codeString)) 5764 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ANNOTATION); 5765 if ("Attachment".equals(codeString)) 5766 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ATTACHMENT); 5767 if ("BackboneElement".equals(codeString)) 5768 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.BACKBONEELEMENT); 5769 if ("CodeableConcept".equals(codeString)) 5770 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CODEABLECONCEPT); 5771 if ("Coding".equals(codeString)) 5772 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CODING); 5773 if ("ContactDetail".equals(codeString)) 5774 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CONTACTDETAIL); 5775 if ("ContactPoint".equals(codeString)) 5776 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CONTACTPOINT); 5777 if ("Contributor".equals(codeString)) 5778 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CONTRIBUTOR); 5779 if ("Count".equals(codeString)) 5780 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.COUNT); 5781 if ("DataRequirement".equals(codeString)) 5782 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DATAREQUIREMENT); 5783 if ("Distance".equals(codeString)) 5784 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DISTANCE); 5785 if ("Dosage".equals(codeString)) 5786 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DOSAGE); 5787 if ("Duration".equals(codeString)) 5788 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DURATION); 5789 if ("Element".equals(codeString)) 5790 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ELEMENT); 5791 if ("ElementDefinition".equals(codeString)) 5792 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ELEMENTDEFINITION); 5793 if ("Expression".equals(codeString)) 5794 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.EXPRESSION); 5795 if ("Extension".equals(codeString)) 5796 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.EXTENSION); 5797 if ("HumanName".equals(codeString)) 5798 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.HUMANNAME); 5799 if ("Identifier".equals(codeString)) 5800 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.IDENTIFIER); 5801 if ("MarketingStatus".equals(codeString)) 5802 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MARKETINGSTATUS); 5803 if ("Meta".equals(codeString)) 5804 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.META); 5805 if ("Money".equals(codeString)) 5806 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MONEY); 5807 if ("MoneyQuantity".equals(codeString)) 5808 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MONEYQUANTITY); 5809 if ("Narrative".equals(codeString)) 5810 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.NARRATIVE); 5811 if ("OrderedDistribution".equals(codeString)) 5812 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ORDEREDDISTRIBUTION); 5813 if ("ParameterDefinition".equals(codeString)) 5814 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.PARAMETERDEFINITION); 5815 if ("Period".equals(codeString)) 5816 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.PERIOD); 5817 if ("Population".equals(codeString)) 5818 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.POPULATION); 5819 if ("ProdCharacteristic".equals(codeString)) 5820 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.PRODCHARACTERISTIC); 5821 if ("ProductShelfLife".equals(codeString)) 5822 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.PRODUCTSHELFLIFE); 5823 if ("Quantity".equals(codeString)) 5824 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.QUANTITY); 5825 if ("Range".equals(codeString)) 5826 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.RANGE); 5827 if ("Ratio".equals(codeString)) 5828 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.RATIO); 5829 if ("Reference".equals(codeString)) 5830 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.REFERENCE); 5831 if ("RelatedArtifact".equals(codeString)) 5832 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.RELATEDARTIFACT); 5833 if ("SampledData".equals(codeString)) 5834 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SAMPLEDDATA); 5835 if ("Signature".equals(codeString)) 5836 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SIGNATURE); 5837 if ("SimpleQuantity".equals(codeString)) 5838 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SIMPLEQUANTITY); 5839 if ("Statistic".equals(codeString)) 5840 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.STATISTIC); 5841 if ("SubstanceAmount".equals(codeString)) 5842 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SUBSTANCEAMOUNT); 5843 if ("Timing".equals(codeString)) 5844 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.TIMING); 5845 if ("TriggerDefinition".equals(codeString)) 5846 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.TRIGGERDEFINITION); 5847 if ("UsageContext".equals(codeString)) 5848 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.USAGECONTEXT); 5849 if ("base64Binary".equals(codeString)) 5850 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.BASE64BINARY); 5851 if ("boolean".equals(codeString)) 5852 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.BOOLEAN); 5853 if ("canonical".equals(codeString)) 5854 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CANONICAL); 5855 if ("code".equals(codeString)) 5856 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CODE); 5857 if ("date".equals(codeString)) 5858 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DATE); 5859 if ("dateTime".equals(codeString)) 5860 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DATETIME); 5861 if ("decimal".equals(codeString)) 5862 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DECIMAL); 5863 if ("id".equals(codeString)) 5864 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ID); 5865 if ("instant".equals(codeString)) 5866 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.INSTANT); 5867 if ("integer".equals(codeString)) 5868 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.INTEGER); 5869 if ("markdown".equals(codeString)) 5870 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MARKDOWN); 5871 if ("oid".equals(codeString)) 5872 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.OID); 5873 if ("positiveInt".equals(codeString)) 5874 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.POSITIVEINT); 5875 if ("string".equals(codeString)) 5876 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.STRING); 5877 if ("time".equals(codeString)) 5878 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.TIME); 5879 if ("unsignedInt".equals(codeString)) 5880 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.UNSIGNEDINT); 5881 if ("uri".equals(codeString)) 5882 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.URI); 5883 if ("url".equals(codeString)) 5884 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.URL); 5885 if ("uuid".equals(codeString)) 5886 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.UUID); 5887 if ("xhtml".equals(codeString)) 5888 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.XHTML); 5889 if ("Account".equals(codeString)) 5890 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ACCOUNT); 5891 if ("ActivityDefinition".equals(codeString)) 5892 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ACTIVITYDEFINITION); 5893 if ("AdministrableProductDefinition".equals(codeString)) 5894 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ADMINISTRABLEPRODUCTDEFINITION); 5895 if ("AdverseEvent".equals(codeString)) 5896 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ADVERSEEVENT); 5897 if ("AllergyIntolerance".equals(codeString)) 5898 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ALLERGYINTOLERANCE); 5899 if ("Appointment".equals(codeString)) 5900 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.APPOINTMENT); 5901 if ("AppointmentResponse".equals(codeString)) 5902 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.APPOINTMENTRESPONSE); 5903 if ("AuditEvent".equals(codeString)) 5904 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.AUDITEVENT); 5905 if ("Basic".equals(codeString)) 5906 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.BASIC); 5907 if ("Binary".equals(codeString)) 5908 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.BINARY); 5909 if ("BiologicallyDerivedProduct".equals(codeString)) 5910 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.BIOLOGICALLYDERIVEDPRODUCT); 5911 if ("BodyStructure".equals(codeString)) 5912 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.BODYSTRUCTURE); 5913 if ("Bundle".equals(codeString)) 5914 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.BUNDLE); 5915 if ("CapabilityStatement".equals(codeString)) 5916 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CAPABILITYSTATEMENT); 5917 if ("CapabilityStatement2".equals(codeString)) 5918 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CAPABILITYSTATEMENT2); 5919 if ("CarePlan".equals(codeString)) 5920 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CAREPLAN); 5921 if ("CareTeam".equals(codeString)) 5922 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CARETEAM); 5923 if ("CatalogEntry".equals(codeString)) 5924 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CATALOGENTRY); 5925 if ("ChargeItem".equals(codeString)) 5926 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CHARGEITEM); 5927 if ("ChargeItemDefinition".equals(codeString)) 5928 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CHARGEITEMDEFINITION); 5929 if ("Claim".equals(codeString)) 5930 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CLAIM); 5931 if ("ClaimResponse".equals(codeString)) 5932 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CLAIMRESPONSE); 5933 if ("ClinicalImpression".equals(codeString)) 5934 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CLINICALIMPRESSION); 5935 if ("ClinicalUseIssue".equals(codeString)) 5936 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CLINICALUSEISSUE); 5937 if ("CodeSystem".equals(codeString)) 5938 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CODESYSTEM); 5939 if ("Communication".equals(codeString)) 5940 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.COMMUNICATION); 5941 if ("CommunicationRequest".equals(codeString)) 5942 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.COMMUNICATIONREQUEST); 5943 if ("CompartmentDefinition".equals(codeString)) 5944 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.COMPARTMENTDEFINITION); 5945 if ("Composition".equals(codeString)) 5946 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.COMPOSITION); 5947 if ("ConceptMap".equals(codeString)) 5948 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CONCEPTMAP); 5949 if ("Condition".equals(codeString)) 5950 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CONDITION); 5951 if ("ConditionDefinition".equals(codeString)) 5952 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CONDITIONDEFINITION); 5953 if ("Consent".equals(codeString)) 5954 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CONSENT); 5955 if ("Contract".equals(codeString)) 5956 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.CONTRACT); 5957 if ("Coverage".equals(codeString)) 5958 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.COVERAGE); 5959 if ("CoverageEligibilityRequest".equals(codeString)) 5960 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.COVERAGEELIGIBILITYREQUEST); 5961 if ("CoverageEligibilityResponse".equals(codeString)) 5962 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.COVERAGEELIGIBILITYRESPONSE); 5963 if ("DetectedIssue".equals(codeString)) 5964 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DETECTEDISSUE); 5965 if ("Device".equals(codeString)) 5966 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DEVICE); 5967 if ("DeviceDefinition".equals(codeString)) 5968 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DEVICEDEFINITION); 5969 if ("DeviceMetric".equals(codeString)) 5970 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DEVICEMETRIC); 5971 if ("DeviceRequest".equals(codeString)) 5972 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DEVICEREQUEST); 5973 if ("DeviceUseStatement".equals(codeString)) 5974 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DEVICEUSESTATEMENT); 5975 if ("DiagnosticReport".equals(codeString)) 5976 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DIAGNOSTICREPORT); 5977 if ("DocumentManifest".equals(codeString)) 5978 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DOCUMENTMANIFEST); 5979 if ("DocumentReference".equals(codeString)) 5980 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DOCUMENTREFERENCE); 5981 if ("DomainResource".equals(codeString)) 5982 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.DOMAINRESOURCE); 5983 if ("Encounter".equals(codeString)) 5984 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ENCOUNTER); 5985 if ("Endpoint".equals(codeString)) 5986 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ENDPOINT); 5987 if ("EnrollmentRequest".equals(codeString)) 5988 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ENROLLMENTREQUEST); 5989 if ("EnrollmentResponse".equals(codeString)) 5990 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ENROLLMENTRESPONSE); 5991 if ("EpisodeOfCare".equals(codeString)) 5992 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.EPISODEOFCARE); 5993 if ("EventDefinition".equals(codeString)) 5994 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.EVENTDEFINITION); 5995 if ("Evidence".equals(codeString)) 5996 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.EVIDENCE); 5997 if ("EvidenceVariable".equals(codeString)) 5998 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.EVIDENCEVARIABLE); 5999 if ("ExampleScenario".equals(codeString)) 6000 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.EXAMPLESCENARIO); 6001 if ("ExplanationOfBenefit".equals(codeString)) 6002 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.EXPLANATIONOFBENEFIT); 6003 if ("FamilyMemberHistory".equals(codeString)) 6004 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.FAMILYMEMBERHISTORY); 6005 if ("Flag".equals(codeString)) 6006 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.FLAG); 6007 if ("Goal".equals(codeString)) 6008 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.GOAL); 6009 if ("GraphDefinition".equals(codeString)) 6010 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.GRAPHDEFINITION); 6011 if ("Group".equals(codeString)) 6012 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.GROUP); 6013 if ("GuidanceResponse".equals(codeString)) 6014 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.GUIDANCERESPONSE); 6015 if ("HealthcareService".equals(codeString)) 6016 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.HEALTHCARESERVICE); 6017 if ("ImagingStudy".equals(codeString)) 6018 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.IMAGINGSTUDY); 6019 if ("Immunization".equals(codeString)) 6020 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.IMMUNIZATION); 6021 if ("ImmunizationEvaluation".equals(codeString)) 6022 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.IMMUNIZATIONEVALUATION); 6023 if ("ImmunizationRecommendation".equals(codeString)) 6024 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.IMMUNIZATIONRECOMMENDATION); 6025 if ("ImplementationGuide".equals(codeString)) 6026 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.IMPLEMENTATIONGUIDE); 6027 if ("Ingredient".equals(codeString)) 6028 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.INGREDIENT); 6029 if ("InsurancePlan".equals(codeString)) 6030 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.INSURANCEPLAN); 6031 if ("Invoice".equals(codeString)) 6032 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.INVOICE); 6033 if ("Library".equals(codeString)) 6034 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.LIBRARY); 6035 if ("Linkage".equals(codeString)) 6036 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.LINKAGE); 6037 if ("List".equals(codeString)) 6038 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.LIST); 6039 if ("Location".equals(codeString)) 6040 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.LOCATION); 6041 if ("ManufacturedItemDefinition".equals(codeString)) 6042 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MANUFACTUREDITEMDEFINITION); 6043 if ("Measure".equals(codeString)) 6044 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MEASURE); 6045 if ("MeasureReport".equals(codeString)) 6046 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MEASUREREPORT); 6047 if ("Medication".equals(codeString)) 6048 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MEDICATION); 6049 if ("MedicationAdministration".equals(codeString)) 6050 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MEDICATIONADMINISTRATION); 6051 if ("MedicationDispense".equals(codeString)) 6052 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MEDICATIONDISPENSE); 6053 if ("MedicationKnowledge".equals(codeString)) 6054 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MEDICATIONKNOWLEDGE); 6055 if ("MedicationRequest".equals(codeString)) 6056 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MEDICATIONREQUEST); 6057 if ("MedicationUsage".equals(codeString)) 6058 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MEDICATIONUSAGE); 6059 if ("MedicinalProductDefinition".equals(codeString)) 6060 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MEDICINALPRODUCTDEFINITION); 6061 if ("MessageDefinition".equals(codeString)) 6062 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MESSAGEDEFINITION); 6063 if ("MessageHeader".equals(codeString)) 6064 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MESSAGEHEADER); 6065 if ("MolecularSequence".equals(codeString)) 6066 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.MOLECULARSEQUENCE); 6067 if ("NamingSystem".equals(codeString)) 6068 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.NAMINGSYSTEM); 6069 if ("NutritionIntake".equals(codeString)) 6070 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.NUTRITIONINTAKE); 6071 if ("NutritionOrder".equals(codeString)) 6072 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.NUTRITIONORDER); 6073 if ("Observation".equals(codeString)) 6074 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.OBSERVATION); 6075 if ("ObservationDefinition".equals(codeString)) 6076 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.OBSERVATIONDEFINITION); 6077 if ("OperationDefinition".equals(codeString)) 6078 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.OPERATIONDEFINITION); 6079 if ("OperationOutcome".equals(codeString)) 6080 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.OPERATIONOUTCOME); 6081 if ("Organization".equals(codeString)) 6082 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ORGANIZATION); 6083 if ("OrganizationAffiliation".equals(codeString)) 6084 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ORGANIZATIONAFFILIATION); 6085 if ("PackagedProductDefinition".equals(codeString)) 6086 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.PACKAGEDPRODUCTDEFINITION); 6087 if ("Parameters".equals(codeString)) 6088 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.PARAMETERS); 6089 if ("Patient".equals(codeString)) 6090 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.PATIENT); 6091 if ("PaymentNotice".equals(codeString)) 6092 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.PAYMENTNOTICE); 6093 if ("PaymentReconciliation".equals(codeString)) 6094 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.PAYMENTRECONCILIATION); 6095 if ("Person".equals(codeString)) 6096 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.PERSON); 6097 if ("PlanDefinition".equals(codeString)) 6098 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.PLANDEFINITION); 6099 if ("Practitioner".equals(codeString)) 6100 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.PRACTITIONER); 6101 if ("PractitionerRole".equals(codeString)) 6102 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.PRACTITIONERROLE); 6103 if ("Procedure".equals(codeString)) 6104 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.PROCEDURE); 6105 if ("Provenance".equals(codeString)) 6106 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.PROVENANCE); 6107 if ("Questionnaire".equals(codeString)) 6108 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.QUESTIONNAIRE); 6109 if ("QuestionnaireResponse".equals(codeString)) 6110 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.QUESTIONNAIRERESPONSE); 6111 if ("RegulatedAuthorization".equals(codeString)) 6112 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.REGULATEDAUTHORIZATION); 6113 if ("RelatedPerson".equals(codeString)) 6114 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.RELATEDPERSON); 6115 if ("RequestGroup".equals(codeString)) 6116 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.REQUESTGROUP); 6117 if ("ResearchStudy".equals(codeString)) 6118 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.RESEARCHSTUDY); 6119 if ("ResearchSubject".equals(codeString)) 6120 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.RESEARCHSUBJECT); 6121 if ("Resource".equals(codeString)) 6122 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.RESOURCE); 6123 if ("RiskAssessment".equals(codeString)) 6124 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.RISKASSESSMENT); 6125 if ("Schedule".equals(codeString)) 6126 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SCHEDULE); 6127 if ("SearchParameter".equals(codeString)) 6128 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SEARCHPARAMETER); 6129 if ("ServiceRequest".equals(codeString)) 6130 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SERVICEREQUEST); 6131 if ("Slot".equals(codeString)) 6132 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SLOT); 6133 if ("Specimen".equals(codeString)) 6134 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SPECIMEN); 6135 if ("SpecimenDefinition".equals(codeString)) 6136 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SPECIMENDEFINITION); 6137 if ("StructureDefinition".equals(codeString)) 6138 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.STRUCTUREDEFINITION); 6139 if ("StructureMap".equals(codeString)) 6140 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.STRUCTUREMAP); 6141 if ("Subscription".equals(codeString)) 6142 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SUBSCRIPTION); 6143 if ("Substance".equals(codeString)) 6144 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SUBSTANCE); 6145 if ("SubstanceDefinition".equals(codeString)) 6146 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SUBSTANCEDEFINITION); 6147 if ("SubstanceNucleicAcid".equals(codeString)) 6148 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SUBSTANCENUCLEICACID); 6149 if ("SubstancePolymer".equals(codeString)) 6150 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SUBSTANCEPOLYMER); 6151 if ("SubstanceProtein".equals(codeString)) 6152 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SUBSTANCEPROTEIN); 6153 if ("SubstanceReferenceInformation".equals(codeString)) 6154 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SUBSTANCEREFERENCEINFORMATION); 6155 if ("SubstanceSourceMaterial".equals(codeString)) 6156 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SUBSTANCESOURCEMATERIAL); 6157 if ("SupplyDelivery".equals(codeString)) 6158 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SUPPLYDELIVERY); 6159 if ("SupplyRequest".equals(codeString)) 6160 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.SUPPLYREQUEST); 6161 if ("Task".equals(codeString)) 6162 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.TASK); 6163 if ("TerminologyCapabilities".equals(codeString)) 6164 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.TERMINOLOGYCAPABILITIES); 6165 if ("TestReport".equals(codeString)) 6166 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.TESTREPORT); 6167 if ("TestScript".equals(codeString)) 6168 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.TESTSCRIPT); 6169 if ("Topic".equals(codeString)) 6170 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.TOPIC); 6171 if ("ValueSet".equals(codeString)) 6172 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.VALUESET); 6173 if ("VerificationResult".equals(codeString)) 6174 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.VERIFICATIONRESULT); 6175 if ("VisionPrescription".equals(codeString)) 6176 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.VISIONPRESCRIPTION); 6177 if ("Type".equals(codeString)) 6178 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.TYPE); 6179 if ("Any".equals(codeString)) 6180 return new Enumeration<FHIRAllTypes>(this, FHIRAllTypes.ANY); 6181 throw new FHIRException("Unknown FHIRAllTypes code '"+codeString+"'"); 6182 } 6183 public String toCode(FHIRAllTypes code) { 6184 if (code == FHIRAllTypes.ADDRESS) 6185 return "Address"; 6186 if (code == FHIRAllTypes.AGE) 6187 return "Age"; 6188 if (code == FHIRAllTypes.ANNOTATION) 6189 return "Annotation"; 6190 if (code == FHIRAllTypes.ATTACHMENT) 6191 return "Attachment"; 6192 if (code == FHIRAllTypes.BACKBONEELEMENT) 6193 return "BackboneElement"; 6194 if (code == FHIRAllTypes.CODEABLECONCEPT) 6195 return "CodeableConcept"; 6196 if (code == FHIRAllTypes.CODING) 6197 return "Coding"; 6198 if (code == FHIRAllTypes.CONTACTDETAIL) 6199 return "ContactDetail"; 6200 if (code == FHIRAllTypes.CONTACTPOINT) 6201 return "ContactPoint"; 6202 if (code == FHIRAllTypes.CONTRIBUTOR) 6203 return "Contributor"; 6204 if (code == FHIRAllTypes.COUNT) 6205 return "Count"; 6206 if (code == FHIRAllTypes.DATAREQUIREMENT) 6207 return "DataRequirement"; 6208 if (code == FHIRAllTypes.DISTANCE) 6209 return "Distance"; 6210 if (code == FHIRAllTypes.DOSAGE) 6211 return "Dosage"; 6212 if (code == FHIRAllTypes.DURATION) 6213 return "Duration"; 6214 if (code == FHIRAllTypes.ELEMENT) 6215 return "Element"; 6216 if (code == FHIRAllTypes.ELEMENTDEFINITION) 6217 return "ElementDefinition"; 6218 if (code == FHIRAllTypes.EXPRESSION) 6219 return "Expression"; 6220 if (code == FHIRAllTypes.EXTENSION) 6221 return "Extension"; 6222 if (code == FHIRAllTypes.HUMANNAME) 6223 return "HumanName"; 6224 if (code == FHIRAllTypes.IDENTIFIER) 6225 return "Identifier"; 6226 if (code == FHIRAllTypes.MARKETINGSTATUS) 6227 return "MarketingStatus"; 6228 if (code == FHIRAllTypes.META) 6229 return "Meta"; 6230 if (code == FHIRAllTypes.MONEY) 6231 return "Money"; 6232 if (code == FHIRAllTypes.MONEYQUANTITY) 6233 return "MoneyQuantity"; 6234 if (code == FHIRAllTypes.NARRATIVE) 6235 return "Narrative"; 6236 if (code == FHIRAllTypes.ORDEREDDISTRIBUTION) 6237 return "OrderedDistribution"; 6238 if (code == FHIRAllTypes.PARAMETERDEFINITION) 6239 return "ParameterDefinition"; 6240 if (code == FHIRAllTypes.PERIOD) 6241 return "Period"; 6242 if (code == FHIRAllTypes.POPULATION) 6243 return "Population"; 6244 if (code == FHIRAllTypes.PRODCHARACTERISTIC) 6245 return "ProdCharacteristic"; 6246 if (code == FHIRAllTypes.PRODUCTSHELFLIFE) 6247 return "ProductShelfLife"; 6248 if (code == FHIRAllTypes.QUANTITY) 6249 return "Quantity"; 6250 if (code == FHIRAllTypes.RANGE) 6251 return "Range"; 6252 if (code == FHIRAllTypes.RATIO) 6253 return "Ratio"; 6254 if (code == FHIRAllTypes.REFERENCE) 6255 return "Reference"; 6256 if (code == FHIRAllTypes.RELATEDARTIFACT) 6257 return "RelatedArtifact"; 6258 if (code == FHIRAllTypes.SAMPLEDDATA) 6259 return "SampledData"; 6260 if (code == FHIRAllTypes.SIGNATURE) 6261 return "Signature"; 6262 if (code == FHIRAllTypes.SIMPLEQUANTITY) 6263 return "SimpleQuantity"; 6264 if (code == FHIRAllTypes.STATISTIC) 6265 return "Statistic"; 6266 if (code == FHIRAllTypes.SUBSTANCEAMOUNT) 6267 return "SubstanceAmount"; 6268 if (code == FHIRAllTypes.TIMING) 6269 return "Timing"; 6270 if (code == FHIRAllTypes.TRIGGERDEFINITION) 6271 return "TriggerDefinition"; 6272 if (code == FHIRAllTypes.USAGECONTEXT) 6273 return "UsageContext"; 6274 if (code == FHIRAllTypes.BASE64BINARY) 6275 return "base64Binary"; 6276 if (code == FHIRAllTypes.BOOLEAN) 6277 return "boolean"; 6278 if (code == FHIRAllTypes.CANONICAL) 6279 return "canonical"; 6280 if (code == FHIRAllTypes.CODE) 6281 return "code"; 6282 if (code == FHIRAllTypes.DATE) 6283 return "date"; 6284 if (code == FHIRAllTypes.DATETIME) 6285 return "dateTime"; 6286 if (code == FHIRAllTypes.DECIMAL) 6287 return "decimal"; 6288 if (code == FHIRAllTypes.ID) 6289 return "id"; 6290 if (code == FHIRAllTypes.INSTANT) 6291 return "instant"; 6292 if (code == FHIRAllTypes.INTEGER) 6293 return "integer"; 6294 if (code == FHIRAllTypes.MARKDOWN) 6295 return "markdown"; 6296 if (code == FHIRAllTypes.OID) 6297 return "oid"; 6298 if (code == FHIRAllTypes.POSITIVEINT) 6299 return "positiveInt"; 6300 if (code == FHIRAllTypes.STRING) 6301 return "string"; 6302 if (code == FHIRAllTypes.TIME) 6303 return "time"; 6304 if (code == FHIRAllTypes.UNSIGNEDINT) 6305 return "unsignedInt"; 6306 if (code == FHIRAllTypes.URI) 6307 return "uri"; 6308 if (code == FHIRAllTypes.URL) 6309 return "url"; 6310 if (code == FHIRAllTypes.UUID) 6311 return "uuid"; 6312 if (code == FHIRAllTypes.XHTML) 6313 return "xhtml"; 6314 if (code == FHIRAllTypes.ACCOUNT) 6315 return "Account"; 6316 if (code == FHIRAllTypes.ACTIVITYDEFINITION) 6317 return "ActivityDefinition"; 6318 if (code == FHIRAllTypes.ADMINISTRABLEPRODUCTDEFINITION) 6319 return "AdministrableProductDefinition"; 6320 if (code == FHIRAllTypes.ADVERSEEVENT) 6321 return "AdverseEvent"; 6322 if (code == FHIRAllTypes.ALLERGYINTOLERANCE) 6323 return "AllergyIntolerance"; 6324 if (code == FHIRAllTypes.APPOINTMENT) 6325 return "Appointment"; 6326 if (code == FHIRAllTypes.APPOINTMENTRESPONSE) 6327 return "AppointmentResponse"; 6328 if (code == FHIRAllTypes.AUDITEVENT) 6329 return "AuditEvent"; 6330 if (code == FHIRAllTypes.BASIC) 6331 return "Basic"; 6332 if (code == FHIRAllTypes.BINARY) 6333 return "Binary"; 6334 if (code == FHIRAllTypes.BIOLOGICALLYDERIVEDPRODUCT) 6335 return "BiologicallyDerivedProduct"; 6336 if (code == FHIRAllTypes.BODYSTRUCTURE) 6337 return "BodyStructure"; 6338 if (code == FHIRAllTypes.BUNDLE) 6339 return "Bundle"; 6340 if (code == FHIRAllTypes.CAPABILITYSTATEMENT) 6341 return "CapabilityStatement"; 6342 if (code == FHIRAllTypes.CAPABILITYSTATEMENT2) 6343 return "CapabilityStatement2"; 6344 if (code == FHIRAllTypes.CAREPLAN) 6345 return "CarePlan"; 6346 if (code == FHIRAllTypes.CARETEAM) 6347 return "CareTeam"; 6348 if (code == FHIRAllTypes.CATALOGENTRY) 6349 return "CatalogEntry"; 6350 if (code == FHIRAllTypes.CHARGEITEM) 6351 return "ChargeItem"; 6352 if (code == FHIRAllTypes.CHARGEITEMDEFINITION) 6353 return "ChargeItemDefinition"; 6354 if (code == FHIRAllTypes.CLAIM) 6355 return "Claim"; 6356 if (code == FHIRAllTypes.CLAIMRESPONSE) 6357 return "ClaimResponse"; 6358 if (code == FHIRAllTypes.CLINICALIMPRESSION) 6359 return "ClinicalImpression"; 6360 if (code == FHIRAllTypes.CLINICALUSEISSUE) 6361 return "ClinicalUseIssue"; 6362 if (code == FHIRAllTypes.CODESYSTEM) 6363 return "CodeSystem"; 6364 if (code == FHIRAllTypes.COMMUNICATION) 6365 return "Communication"; 6366 if (code == FHIRAllTypes.COMMUNICATIONREQUEST) 6367 return "CommunicationRequest"; 6368 if (code == FHIRAllTypes.COMPARTMENTDEFINITION) 6369 return "CompartmentDefinition"; 6370 if (code == FHIRAllTypes.COMPOSITION) 6371 return "Composition"; 6372 if (code == FHIRAllTypes.CONCEPTMAP) 6373 return "ConceptMap"; 6374 if (code == FHIRAllTypes.CONDITION) 6375 return "Condition"; 6376 if (code == FHIRAllTypes.CONDITIONDEFINITION) 6377 return "ConditionDefinition"; 6378 if (code == FHIRAllTypes.CONSENT) 6379 return "Consent"; 6380 if (code == FHIRAllTypes.CONTRACT) 6381 return "Contract"; 6382 if (code == FHIRAllTypes.COVERAGE) 6383 return "Coverage"; 6384 if (code == FHIRAllTypes.COVERAGEELIGIBILITYREQUEST) 6385 return "CoverageEligibilityRequest"; 6386 if (code == FHIRAllTypes.COVERAGEELIGIBILITYRESPONSE) 6387 return "CoverageEligibilityResponse"; 6388 if (code == FHIRAllTypes.DETECTEDISSUE) 6389 return "DetectedIssue"; 6390 if (code == FHIRAllTypes.DEVICE) 6391 return "Device"; 6392 if (code == FHIRAllTypes.DEVICEDEFINITION) 6393 return "DeviceDefinition"; 6394 if (code == FHIRAllTypes.DEVICEMETRIC) 6395 return "DeviceMetric"; 6396 if (code == FHIRAllTypes.DEVICEREQUEST) 6397 return "DeviceRequest"; 6398 if (code == FHIRAllTypes.DEVICEUSESTATEMENT) 6399 return "DeviceUseStatement"; 6400 if (code == FHIRAllTypes.DIAGNOSTICREPORT) 6401 return "DiagnosticReport"; 6402 if (code == FHIRAllTypes.DOCUMENTMANIFEST) 6403 return "DocumentManifest"; 6404 if (code == FHIRAllTypes.DOCUMENTREFERENCE) 6405 return "DocumentReference"; 6406 if (code == FHIRAllTypes.DOMAINRESOURCE) 6407 return "DomainResource"; 6408 if (code == FHIRAllTypes.ENCOUNTER) 6409 return "Encounter"; 6410 if (code == FHIRAllTypes.ENDPOINT) 6411 return "Endpoint"; 6412 if (code == FHIRAllTypes.ENROLLMENTREQUEST) 6413 return "EnrollmentRequest"; 6414 if (code == FHIRAllTypes.ENROLLMENTRESPONSE) 6415 return "EnrollmentResponse"; 6416 if (code == FHIRAllTypes.EPISODEOFCARE) 6417 return "EpisodeOfCare"; 6418 if (code == FHIRAllTypes.EVENTDEFINITION) 6419 return "EventDefinition"; 6420 if (code == FHIRAllTypes.EVIDENCE) 6421 return "Evidence"; 6422 if (code == FHIRAllTypes.EVIDENCEVARIABLE) 6423 return "EvidenceVariable"; 6424 if (code == FHIRAllTypes.EXAMPLESCENARIO) 6425 return "ExampleScenario"; 6426 if (code == FHIRAllTypes.EXPLANATIONOFBENEFIT) 6427 return "ExplanationOfBenefit"; 6428 if (code == FHIRAllTypes.FAMILYMEMBERHISTORY) 6429 return "FamilyMemberHistory"; 6430 if (code == FHIRAllTypes.FLAG) 6431 return "Flag"; 6432 if (code == FHIRAllTypes.GOAL) 6433 return "Goal"; 6434 if (code == FHIRAllTypes.GRAPHDEFINITION) 6435 return "GraphDefinition"; 6436 if (code == FHIRAllTypes.GROUP) 6437 return "Group"; 6438 if (code == FHIRAllTypes.GUIDANCERESPONSE) 6439 return "GuidanceResponse"; 6440 if (code == FHIRAllTypes.HEALTHCARESERVICE) 6441 return "HealthcareService"; 6442 if (code == FHIRAllTypes.IMAGINGSTUDY) 6443 return "ImagingStudy"; 6444 if (code == FHIRAllTypes.IMMUNIZATION) 6445 return "Immunization"; 6446 if (code == FHIRAllTypes.IMMUNIZATIONEVALUATION) 6447 return "ImmunizationEvaluation"; 6448 if (code == FHIRAllTypes.IMMUNIZATIONRECOMMENDATION) 6449 return "ImmunizationRecommendation"; 6450 if (code == FHIRAllTypes.IMPLEMENTATIONGUIDE) 6451 return "ImplementationGuide"; 6452 if (code == FHIRAllTypes.INGREDIENT) 6453 return "Ingredient"; 6454 if (code == FHIRAllTypes.INSURANCEPLAN) 6455 return "InsurancePlan"; 6456 if (code == FHIRAllTypes.INVOICE) 6457 return "Invoice"; 6458 if (code == FHIRAllTypes.LIBRARY) 6459 return "Library"; 6460 if (code == FHIRAllTypes.LINKAGE) 6461 return "Linkage"; 6462 if (code == FHIRAllTypes.LIST) 6463 return "List"; 6464 if (code == FHIRAllTypes.LOCATION) 6465 return "Location"; 6466 if (code == FHIRAllTypes.MANUFACTUREDITEMDEFINITION) 6467 return "ManufacturedItemDefinition"; 6468 if (code == FHIRAllTypes.MEASURE) 6469 return "Measure"; 6470 if (code == FHIRAllTypes.MEASUREREPORT) 6471 return "MeasureReport"; 6472 if (code == FHIRAllTypes.MEDICATION) 6473 return "Medication"; 6474 if (code == FHIRAllTypes.MEDICATIONADMINISTRATION) 6475 return "MedicationAdministration"; 6476 if (code == FHIRAllTypes.MEDICATIONDISPENSE) 6477 return "MedicationDispense"; 6478 if (code == FHIRAllTypes.MEDICATIONKNOWLEDGE) 6479 return "MedicationKnowledge"; 6480 if (code == FHIRAllTypes.MEDICATIONREQUEST) 6481 return "MedicationRequest"; 6482 if (code == FHIRAllTypes.MEDICATIONUSAGE) 6483 return "MedicationUsage"; 6484 if (code == FHIRAllTypes.MEDICINALPRODUCTDEFINITION) 6485 return "MedicinalProductDefinition"; 6486 if (code == FHIRAllTypes.MESSAGEDEFINITION) 6487 return "MessageDefinition"; 6488 if (code == FHIRAllTypes.MESSAGEHEADER) 6489 return "MessageHeader"; 6490 if (code == FHIRAllTypes.MOLECULARSEQUENCE) 6491 return "MolecularSequence"; 6492 if (code == FHIRAllTypes.NAMINGSYSTEM) 6493 return "NamingSystem"; 6494 if (code == FHIRAllTypes.NUTRITIONINTAKE) 6495 return "NutritionIntake"; 6496 if (code == FHIRAllTypes.NUTRITIONORDER) 6497 return "NutritionOrder"; 6498 if (code == FHIRAllTypes.OBSERVATION) 6499 return "Observation"; 6500 if (code == FHIRAllTypes.OBSERVATIONDEFINITION) 6501 return "ObservationDefinition"; 6502 if (code == FHIRAllTypes.OPERATIONDEFINITION) 6503 return "OperationDefinition"; 6504 if (code == FHIRAllTypes.OPERATIONOUTCOME) 6505 return "OperationOutcome"; 6506 if (code == FHIRAllTypes.ORGANIZATION) 6507 return "Organization"; 6508 if (code == FHIRAllTypes.ORGANIZATIONAFFILIATION) 6509 return "OrganizationAffiliation"; 6510 if (code == FHIRAllTypes.PACKAGEDPRODUCTDEFINITION) 6511 return "PackagedProductDefinition"; 6512 if (code == FHIRAllTypes.PARAMETERS) 6513 return "Parameters"; 6514 if (code == FHIRAllTypes.PATIENT) 6515 return "Patient"; 6516 if (code == FHIRAllTypes.PAYMENTNOTICE) 6517 return "PaymentNotice"; 6518 if (code == FHIRAllTypes.PAYMENTRECONCILIATION) 6519 return "PaymentReconciliation"; 6520 if (code == FHIRAllTypes.PERSON) 6521 return "Person"; 6522 if (code == FHIRAllTypes.PLANDEFINITION) 6523 return "PlanDefinition"; 6524 if (code == FHIRAllTypes.PRACTITIONER) 6525 return "Practitioner"; 6526 if (code == FHIRAllTypes.PRACTITIONERROLE) 6527 return "PractitionerRole"; 6528 if (code == FHIRAllTypes.PROCEDURE) 6529 return "Procedure"; 6530 if (code == FHIRAllTypes.PROVENANCE) 6531 return "Provenance"; 6532 if (code == FHIRAllTypes.QUESTIONNAIRE) 6533 return "Questionnaire"; 6534 if (code == FHIRAllTypes.QUESTIONNAIRERESPONSE) 6535 return "QuestionnaireResponse"; 6536 if (code == FHIRAllTypes.REGULATEDAUTHORIZATION) 6537 return "RegulatedAuthorization"; 6538 if (code == FHIRAllTypes.RELATEDPERSON) 6539 return "RelatedPerson"; 6540 if (code == FHIRAllTypes.REQUESTGROUP) 6541 return "RequestGroup"; 6542 if (code == FHIRAllTypes.RESEARCHSTUDY) 6543 return "ResearchStudy"; 6544 if (code == FHIRAllTypes.RESEARCHSUBJECT) 6545 return "ResearchSubject"; 6546 if (code == FHIRAllTypes.RESOURCE) 6547 return "Resource"; 6548 if (code == FHIRAllTypes.RISKASSESSMENT) 6549 return "RiskAssessment"; 6550 if (code == FHIRAllTypes.SCHEDULE) 6551 return "Schedule"; 6552 if (code == FHIRAllTypes.SEARCHPARAMETER) 6553 return "SearchParameter"; 6554 if (code == FHIRAllTypes.SERVICEREQUEST) 6555 return "ServiceRequest"; 6556 if (code == FHIRAllTypes.SLOT) 6557 return "Slot"; 6558 if (code == FHIRAllTypes.SPECIMEN) 6559 return "Specimen"; 6560 if (code == FHIRAllTypes.SPECIMENDEFINITION) 6561 return "SpecimenDefinition"; 6562 if (code == FHIRAllTypes.STRUCTUREDEFINITION) 6563 return "StructureDefinition"; 6564 if (code == FHIRAllTypes.STRUCTUREMAP) 6565 return "StructureMap"; 6566 if (code == FHIRAllTypes.SUBSCRIPTION) 6567 return "Subscription"; 6568 if (code == FHIRAllTypes.SUBSTANCE) 6569 return "Substance"; 6570 if (code == FHIRAllTypes.SUBSTANCEDEFINITION) 6571 return "SubstanceDefinition"; 6572 if (code == FHIRAllTypes.SUBSTANCENUCLEICACID) 6573 return "SubstanceNucleicAcid"; 6574 if (code == FHIRAllTypes.SUBSTANCEPOLYMER) 6575 return "SubstancePolymer"; 6576 if (code == FHIRAllTypes.SUBSTANCEPROTEIN) 6577 return "SubstanceProtein"; 6578 if (code == FHIRAllTypes.SUBSTANCEREFERENCEINFORMATION) 6579 return "SubstanceReferenceInformation"; 6580 if (code == FHIRAllTypes.SUBSTANCESOURCEMATERIAL) 6581 return "SubstanceSourceMaterial"; 6582 if (code == FHIRAllTypes.SUPPLYDELIVERY) 6583 return "SupplyDelivery"; 6584 if (code == FHIRAllTypes.SUPPLYREQUEST) 6585 return "SupplyRequest"; 6586 if (code == FHIRAllTypes.TASK) 6587 return "Task"; 6588 if (code == FHIRAllTypes.TERMINOLOGYCAPABILITIES) 6589 return "TerminologyCapabilities"; 6590 if (code == FHIRAllTypes.TESTREPORT) 6591 return "TestReport"; 6592 if (code == FHIRAllTypes.TESTSCRIPT) 6593 return "TestScript"; 6594 if (code == FHIRAllTypes.TOPIC) 6595 return "Topic"; 6596 if (code == FHIRAllTypes.VALUESET) 6597 return "ValueSet"; 6598 if (code == FHIRAllTypes.VERIFICATIONRESULT) 6599 return "VerificationResult"; 6600 if (code == FHIRAllTypes.VISIONPRESCRIPTION) 6601 return "VisionPrescription"; 6602 if (code == FHIRAllTypes.TYPE) 6603 return "Type"; 6604 if (code == FHIRAllTypes.ANY) 6605 return "Any"; 6606 return "?"; 6607 } 6608 public String toSystem(FHIRAllTypes code) { 6609 return code.getSystem(); 6610 } 6611 } 6612 6613 public enum FHIRDefinedType { 6614 /** 6615 * An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world. 6616 */ 6617 ADDRESS, 6618 /** 6619 * A duration of time during which an organism (or a process) has existed. 6620 */ 6621 AGE, 6622 /** 6623 * A text note which also contains information about who made the statement and when. 6624 */ 6625 ANNOTATION, 6626 /** 6627 * For referring to data content defined in other formats. 6628 */ 6629 ATTACHMENT, 6630 /** 6631 * Base definition for all elements that are defined inside a resource - but not those in a data type. 6632 */ 6633 BACKBONEELEMENT, 6634 /** 6635 * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text. 6636 */ 6637 CODEABLECONCEPT, 6638 /** 6639 * A reference to a code defined by a terminology system. 6640 */ 6641 CODING, 6642 /** 6643 * Specifies contact information for a person or organization. 6644 */ 6645 CONTACTDETAIL, 6646 /** 6647 * Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc. 6648 */ 6649 CONTACTPOINT, 6650 /** 6651 * A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers. 6652 */ 6653 CONTRIBUTOR, 6654 /** 6655 * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. 6656 */ 6657 COUNT, 6658 /** 6659 * Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data. 6660 */ 6661 DATAREQUIREMENT, 6662 /** 6663 * A length - a value with a unit that is a physical distance. 6664 */ 6665 DISTANCE, 6666 /** 6667 * Indicates how the medication is/was taken or should be taken by the patient. 6668 */ 6669 DOSAGE, 6670 /** 6671 * A length of time. 6672 */ 6673 DURATION, 6674 /** 6675 * Base definition for all elements in a resource. 6676 */ 6677 ELEMENT, 6678 /** 6679 * Captures constraints on each element within the resource, profile, or extension. 6680 */ 6681 ELEMENTDEFINITION, 6682 /** 6683 * A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used. 6684 */ 6685 EXPRESSION, 6686 /** 6687 * Optional Extension Element - found in all resources. 6688 */ 6689 EXTENSION, 6690 /** 6691 * A human's name with the ability to identify parts and usage. 6692 */ 6693 HUMANNAME, 6694 /** 6695 * An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers. 6696 */ 6697 IDENTIFIER, 6698 /** 6699 * The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available. 6700 */ 6701 MARKETINGSTATUS, 6702 /** 6703 * The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource. 6704 */ 6705 META, 6706 /** 6707 * An amount of economic utility in some recognized currency. 6708 */ 6709 MONEY, 6710 /** 6711 * null 6712 */ 6713 MONEYQUANTITY, 6714 /** 6715 * A human-readable summary of the resource conveying the essential clinical and business information for the resource. 6716 */ 6717 NARRATIVE, 6718 /** 6719 * An ordered list (distribution) of statistics. 6720 */ 6721 ORDEREDDISTRIBUTION, 6722 /** 6723 * The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse. 6724 */ 6725 PARAMETERDEFINITION, 6726 /** 6727 * A time period defined by a start and end date and optionally time. 6728 */ 6729 PERIOD, 6730 /** 6731 * A populatioof people with some set of grouping criteria. 6732 */ 6733 POPULATION, 6734 /** 6735 * The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available. 6736 */ 6737 PRODCHARACTERISTIC, 6738 /** 6739 * The shelf-life and storage information for a medicinal product item or container can be described using this class. 6740 */ 6741 PRODUCTSHELFLIFE, 6742 /** 6743 * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. 6744 */ 6745 QUANTITY, 6746 /** 6747 * A set of ordered Quantities defined by a low and high limit. 6748 */ 6749 RANGE, 6750 /** 6751 * A relationship of two Quantity values - expressed as a numerator and a denominator. 6752 */ 6753 RATIO, 6754 /** 6755 * A reference from one resource to another. 6756 */ 6757 REFERENCE, 6758 /** 6759 * Related artifacts such as additional documentation, justification, or bibliographic references. 6760 */ 6761 RELATEDARTIFACT, 6762 /** 6763 * A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data. 6764 */ 6765 SAMPLEDDATA, 6766 /** 6767 * A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities. 6768 */ 6769 SIGNATURE, 6770 /** 6771 * null 6772 */ 6773 SIMPLEQUANTITY, 6774 /** 6775 * A fact or piece of data from a study of a large quantity of numerical data. A mathematical or quantified characteristic of a group of observations. 6776 */ 6777 STATISTIC, 6778 /** 6779 * Chemical substances are a single substance type whose primary defining element is the molecular structure. Chemical substances shall be defined on the basis of their complete covalent molecular structure; the presence of a salt (counter-ion) and/or solvates (water, alcohols) is also captured. Purity, grade, physical form or particle size are not taken into account in the definition of a chemical substance or in the assignment of a Substance ID. 6780 */ 6781 SUBSTANCEAMOUNT, 6782 /** 6783 * Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out. 6784 */ 6785 TIMING, 6786 /** 6787 * A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element. 6788 */ 6789 TRIGGERDEFINITION, 6790 /** 6791 * Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care). 6792 */ 6793 USAGECONTEXT, 6794 /** 6795 * A stream of bytes 6796 */ 6797 BASE64BINARY, 6798 /** 6799 * Value of "true" or "false" 6800 */ 6801 BOOLEAN, 6802 /** 6803 * A URI that is a reference to a canonical URL on a FHIR resource 6804 */ 6805 CANONICAL, 6806 /** 6807 * A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents 6808 */ 6809 CODE, 6810 /** 6811 * A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates. 6812 */ 6813 DATE, 6814 /** 6815 * A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates. 6816 */ 6817 DATETIME, 6818 /** 6819 * A rational number with implicit precision 6820 */ 6821 DECIMAL, 6822 /** 6823 * Any combination of letters, numerals, "-" and ".", with a length limit of 64 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Ids are case-insensitive. 6824 */ 6825 ID, 6826 /** 6827 * An instant in time - known at least to the second 6828 */ 6829 INSTANT, 6830 /** 6831 * A whole number 6832 */ 6833 INTEGER, 6834 /** 6835 * A string that may contain Github Flavored Markdown syntax for optional processing by a mark down presentation engine 6836 */ 6837 MARKDOWN, 6838 /** 6839 * An OID represented as a URI 6840 */ 6841 OID, 6842 /** 6843 * An integer with a value that is positive (e.g. >0) 6844 */ 6845 POSITIVEINT, 6846 /** 6847 * A sequence of Unicode characters 6848 */ 6849 STRING, 6850 /** 6851 * A time during the day, with no date specified 6852 */ 6853 TIME, 6854 /** 6855 * An integer with a value that is not negative (e.g. >= 0) 6856 */ 6857 UNSIGNEDINT, 6858 /** 6859 * String of characters used to identify a name or a resource 6860 */ 6861 URI, 6862 /** 6863 * A URI that is a literal reference 6864 */ 6865 URL, 6866 /** 6867 * A UUID, represented as a URI 6868 */ 6869 UUID, 6870 /** 6871 * XHTML format, as defined by W3C, but restricted usage (mainly, no active content) 6872 */ 6873 XHTML, 6874 /** 6875 * A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centers, etc. 6876 */ 6877 ACCOUNT, 6878 /** 6879 * This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context. 6880 */ 6881 ACTIVITYDEFINITION, 6882 /** 6883 * A pharmaceutical product described in terms of its composition and dose form. 6884 */ 6885 ADMINISTRABLEPRODUCTDEFINITION, 6886 /** 6887 * An event (i.e. any change to current patient status) that may be related to unintended effects on a patient or research subject. The unintended effects may require additional monitoring, treatment or hospitalization or may result in death. The AdverseEvent resource also extends to potential or avoided events that could have had such effects. 6888 */ 6889 ADVERSEEVENT, 6890 /** 6891 * Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance. 6892 */ 6893 ALLERGYINTOLERANCE, 6894 /** 6895 * A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s). 6896 */ 6897 APPOINTMENT, 6898 /** 6899 * A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection. 6900 */ 6901 APPOINTMENTRESPONSE, 6902 /** 6903 * A record of an event relevant for purposes such as operations, privacy, security, maintenance, and performance analysis. 6904 */ 6905 AUDITEVENT, 6906 /** 6907 * Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification. 6908 */ 6909 BASIC, 6910 /** 6911 * A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc. 6912 */ 6913 BINARY, 6914 /** 6915 * A material substance originating from a biological entity intended to be transplanted or infused 6916into another (possibly the same) biological entity. 6917 */ 6918 BIOLOGICALLYDERIVEDPRODUCT, 6919 /** 6920 * Record details about an anatomical structure. This resource may be used when a coded concept does not provide the necessary detail needed for the use case. 6921 */ 6922 BODYSTRUCTURE, 6923 /** 6924 * A container for a collection of resources. 6925 */ 6926 BUNDLE, 6927 /** 6928 * A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation. 6929 */ 6930 CAPABILITYSTATEMENT, 6931 /** 6932 * A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation. 6933 */ 6934 CAPABILITYSTATEMENT2, 6935 /** 6936 * Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions. 6937 */ 6938 CAREPLAN, 6939 /** 6940 * The Care Team includes all the people and organizations who plan to participate in the coordination and delivery of care. 6941 */ 6942 CARETEAM, 6943 /** 6944 * Catalog entries are wrappers that contextualize items included in a catalog. 6945 */ 6946 CATALOGENTRY, 6947 /** 6948 * The resource ChargeItem describes the provision of healthcare provider products for a certain patient, therefore referring not only to the product, but containing in addition details of the provision, like date, time, amounts and participating organizations and persons. Main Usage of the ChargeItem is to enable the billing process and internal cost allocation. 6949 */ 6950 CHARGEITEM, 6951 /** 6952 * The ChargeItemDefinition resource provides the properties that apply to the (billing) codes necessary to calculate costs and prices. The properties may differ largely depending on type and realm, therefore this resource gives only a rough structure and requires profiling for each type of billing code system. 6953 */ 6954 CHARGEITEMDEFINITION, 6955 /** 6956 * A provider issued list of professional services and products which have been provided, or are to be provided, to a patient which is sent to an insurer for reimbursement. 6957 */ 6958 CLAIM, 6959 /** 6960 * This resource provides the adjudication details from the processing of a Claim resource. 6961 */ 6962 CLAIMRESPONSE, 6963 /** 6964 * A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. This resource is called "ClinicalImpression" rather than "ClinicalAssessment" to avoid confusion with the recording of assessment tools such as Apgar score. 6965 */ 6966 CLINICALIMPRESSION, 6967 /** 6968 * A single item of clinical particulars - an indication, contraindication, interaction etc. for a medicinal product. 6969 */ 6970 CLINICALUSEISSUE, 6971 /** 6972 * The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content. 6973 */ 6974 CODESYSTEM, 6975 /** 6976 * An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency communication to a provider/reporter in response to a case report for a reportable condition. 6977 */ 6978 COMMUNICATION, 6979 /** 6980 * A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition. 6981 */ 6982 COMMUNICATIONREQUEST, 6983 /** 6984 * A compartment definition that defines how resources are accessed on a server. 6985 */ 6986 COMPARTMENTDEFINITION, 6987 /** 6988 * A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.). 6989 */ 6990 COMPOSITION, 6991 /** 6992 * A statement of relationships from one set of concepts to one or more other concepts - either concepts in code systems, or data element/data element concepts, or classes in class models. 6993 */ 6994 CONCEPTMAP, 6995 /** 6996 * A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern. 6997 */ 6998 CONDITION, 6999 /** 7000 * A definition of a condition and information relevant to managing it. 7001 */ 7002 CONDITIONDEFINITION, 7003 /** 7004 * A record of a healthcare consumer’s choices or choices made on their behalf by a third party, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time. 7005 */ 7006 CONSENT, 7007 /** 7008 * Legally enforceable, formally recorded unilateral or bilateral directive i.e., a policy or agreement. 7009 */ 7010 CONTRACT, 7011 /** 7012 * Financial instrument which may be used to reimburse or pay for health care products and services. Includes both insurance and self-payment. 7013 */ 7014 COVERAGE, 7015 /** 7016 * The CoverageEligibilityRequest provides patient and insurance coverage information to an insurer for them to respond, in the form of an CoverageEligibilityResponse, with information regarding whether the stated coverage is valid and in-force and optionally to provide the insurance details of the policy. 7017 */ 7018 COVERAGEELIGIBILITYREQUEST, 7019 /** 7020 * This resource provides eligibility and plan details from the processing of an CoverageEligibilityRequest resource. 7021 */ 7022 COVERAGEELIGIBILITYRESPONSE, 7023 /** 7024 * Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc. 7025 */ 7026 DETECTEDISSUE, 7027 /** 7028 * A type of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device. 7029 */ 7030 DEVICE, 7031 /** 7032 * The characteristics, operational status and capabilities of a medical-related component of a medical device. 7033 */ 7034 DEVICEDEFINITION, 7035 /** 7036 * Describes a measurement, calculation or setting capability of a medical device. 7037 */ 7038 DEVICEMETRIC, 7039 /** 7040 * Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker. 7041 */ 7042 DEVICEREQUEST, 7043 /** 7044 * A record of a device being used by a patient where the record is the result of a report from the patient or another clinician. 7045 */ 7046 DEVICEUSESTATEMENT, 7047 /** 7048 * The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. 7049 */ 7050 DIAGNOSTICREPORT, 7051 /** 7052 * A collection of documents compiled for a purpose together with metadata that applies to the collection. 7053 */ 7054 DOCUMENTMANIFEST, 7055 /** 7056 * A reference to a document of any kind for any purpose. While the term “document” implies a more narrow focus, for this resource this "document" encompasses *any* seralized object with a mime-type, so includes formal patient centric documents (CDA), clniical notes, scanned paper, non-patient specific documents like policy text, as well as a photo, video, or audio recording acquired or used in healthcare. The DocumentReference resource provides metadata about the document so that the document can be discovered and managed. The actual content may be inline base64 encoded data or provided by direct reference. 7057 */ 7058 DOCUMENTREFERENCE, 7059 /** 7060 * A resource that includes narrative, extensions, and contained resources. 7061 */ 7062 DOMAINRESOURCE, 7063 /** 7064 * An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient. 7065 */ 7066 ENCOUNTER, 7067 /** 7068 * The technical details of an endpoint that can be used for electronic services, such as for web services providing XDS.b or a REST endpoint for another FHIR server. This may include any security context information. 7069 */ 7070 ENDPOINT, 7071 /** 7072 * This resource provides the insurance enrollment details to the insurer regarding a specified coverage. 7073 */ 7074 ENROLLMENTREQUEST, 7075 /** 7076 * This resource provides enrollment and plan details from the processing of an EnrollmentRequest resource. 7077 */ 7078 ENROLLMENTRESPONSE, 7079 /** 7080 * An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time. 7081 */ 7082 EPISODEOFCARE, 7083 /** 7084 * The EventDefinition resource provides a reusable description of when a particular event can occur. 7085 */ 7086 EVENTDEFINITION, 7087 /** 7088 * This represents statistics, certainty, both the intended and actual population, and evidence variables. 7089 */ 7090 EVIDENCE, 7091 /** 7092 * The EvidenceVariable resource describes a "PICO" element that knowledge (evidence, assertion, recommendation) is about. 7093 */ 7094 EVIDENCEVARIABLE, 7095 /** 7096 * Example of workflow instance. 7097 */ 7098 EXAMPLESCENARIO, 7099 /** 7100 * This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided. 7101 */ 7102 EXPLANATIONOFBENEFIT, 7103 /** 7104 * Significant health conditions for a person related to the patient relevant in the context of care for the patient. 7105 */ 7106 FAMILYMEMBERHISTORY, 7107 /** 7108 * Prospective warnings of potential issues when providing care to the patient. 7109 */ 7110 FLAG, 7111 /** 7112 * Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc. 7113 */ 7114 GOAL, 7115 /** 7116 * A formal computable definition of a graph of resources - that is, a coherent set of resources that form a graph by following references. The Graph Definition resource defines a set and makes rules about the set. 7117 */ 7118 GRAPHDEFINITION, 7119 /** 7120 * Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively, and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization. 7121 */ 7122 GROUP, 7123 /** 7124 * A guidance response is the formal response to a guidance request, including any output parameters returned by the evaluation, as well as the description of any proposed actions to be taken. 7125 */ 7126 GUIDANCERESPONSE, 7127 /** 7128 * The details of a healthcare service available at a location. 7129 */ 7130 HEALTHCARESERVICE, 7131 /** 7132 * Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities. 7133 */ 7134 IMAGINGSTUDY, 7135 /** 7136 * Describes the event of a patient being administered a vaccine or a record of an immunization as reported by a patient, a clinician or another party. 7137 */ 7138 IMMUNIZATION, 7139 /** 7140 * Describes a comparison of an immunization event against published recommendations to determine if the administration is "valid" in relation to those recommendations. 7141 */ 7142 IMMUNIZATIONEVALUATION, 7143 /** 7144 * A patient's point-in-time set of recommendations (i.e. forecasting) according to a published schedule with optional supporting justification. 7145 */ 7146 IMMUNIZATIONRECOMMENDATION, 7147 /** 7148 * A set of rules of how a particular interoperability or standards problem is solved - typically through the use of FHIR resources. This resource is used to gather all the parts of an implementation guide into a logical whole and to publish a computable definition of all the parts. 7149 */ 7150 IMPLEMENTATIONGUIDE, 7151 /** 7152 * An ingredient of a manufactured item or pharmaceutical product. 7153 */ 7154 INGREDIENT, 7155 /** 7156 * Details of a Health Insurance product/plan provided by an organization. 7157 */ 7158 INSURANCEPLAN, 7159 /** 7160 * Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose. 7161 */ 7162 INVOICE, 7163 /** 7164 * The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets. 7165 */ 7166 LIBRARY, 7167 /** 7168 * Identifies two or more records (resource instances) that refer to the same real-world "occurrence". 7169 */ 7170 LINKAGE, 7171 /** 7172 * A list is a curated collection of resources. 7173 */ 7174 LIST, 7175 /** 7176 * Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated. 7177 */ 7178 LOCATION, 7179 /** 7180 * The manufactured item as contained in the packaged medicinal product. 7181 */ 7182 MANUFACTUREDITEMDEFINITION, 7183 /** 7184 * The Measure resource provides the definition of a quality measure. 7185 */ 7186 MEASURE, 7187 /** 7188 * The MeasureReport resource contains the results of the calculation of a measure; and optionally a reference to the resources involved in that calculation. 7189 */ 7190 MEASUREREPORT, 7191 /** 7192 * This resource is primarily used for the identification and definition of a medication for the purposes of prescribing, dispensing, and administering a medication as well as for making statements about medication use. 7193 */ 7194 MEDICATION, 7195 /** 7196 * Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner. 7197 */ 7198 MEDICATIONADMINISTRATION, 7199 /** 7200 * Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order. 7201 */ 7202 MEDICATIONDISPENSE, 7203 /** 7204 * Information about a medication that is used to support knowledge. 7205 */ 7206 MEDICATIONKNOWLEDGE, 7207 /** 7208 * An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called "MedicationRequest" rather than "MedicationPrescription" or "MedicationOrder" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns. 7209 */ 7210 MEDICATIONREQUEST, 7211 /** 7212 * A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. 7213 7214The primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information. 7215 */ 7216 MEDICATIONUSAGE, 7217 /** 7218 * Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use). 7219 */ 7220 MEDICINALPRODUCTDEFINITION, 7221 /** 7222 * Defines the characteristics of a message that can be shared between systems, including the type of event that initiates the message, the content to be transmitted and what response(s), if any, are permitted. 7223 */ 7224 MESSAGEDEFINITION, 7225 /** 7226 * The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle. 7227 */ 7228 MESSAGEHEADER, 7229 /** 7230 * Raw data describing a biological sequence. 7231 */ 7232 MOLECULARSEQUENCE, 7233 /** 7234 * A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a "System" used within the Identifier and Coding data types. 7235 */ 7236 NAMINGSYSTEM, 7237 /** 7238 * A record of food or fluid that is being consumed by a patient. A NutritionIntake may indicate that the patient may be consuming the food or fluid now or has consumed the food or fluid in the past. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay or through an app that tracks food or fluids consumed. The consumption information may come from sources such as the patient's memory, from a nutrition label, or from a clinician documenting observed intake. 7239 */ 7240 NUTRITIONINTAKE, 7241 /** 7242 * A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident. 7243 */ 7244 NUTRITIONORDER, 7245 /** 7246 * Measurements and simple assertions made about a patient, device or other subject. 7247 */ 7248 OBSERVATION, 7249 /** 7250 * Set of definitional characteristics for a kind of observation or measurement produced or consumed by an orderable health care service. 7251 */ 7252 OBSERVATIONDEFINITION, 7253 /** 7254 * A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction). 7255 */ 7256 OPERATIONDEFINITION, 7257 /** 7258 * A collection of error, warning, or information messages that result from a system action. 7259 */ 7260 OPERATIONOUTCOME, 7261 /** 7262 * A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, etc. 7263 */ 7264 ORGANIZATION, 7265 /** 7266 * Defines an affiliation/assotiation/relationship between 2 distinct oganizations, that is not a part-of relationship/sub-division relationship. 7267 */ 7268 ORGANIZATIONAFFILIATION, 7269 /** 7270 * A medicinal product in a container or package. 7271 */ 7272 PACKAGEDPRODUCTDEFINITION, 7273 /** 7274 * This resource is a non-persisted resource used to pass information into and back from an [operation](operations.html). It has no other use, and there is no RESTful endpoint associated with it. 7275 */ 7276 PARAMETERS, 7277 /** 7278 * Demographics and other administrative information about an individual or animal receiving care or other health-related services. 7279 */ 7280 PATIENT, 7281 /** 7282 * This resource provides the status of the payment for goods and services rendered, and the request and response resource references. 7283 */ 7284 PAYMENTNOTICE, 7285 /** 7286 * This resource provides the details including amount of a payment and allocates the payment items being paid. 7287 */ 7288 PAYMENTRECONCILIATION, 7289 /** 7290 * Demographics and administrative information about a person independent of a specific health-related context. 7291 */ 7292 PERSON, 7293 /** 7294 * This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols. 7295 */ 7296 PLANDEFINITION, 7297 /** 7298 * A person who is directly or indirectly involved in the provisioning of healthcare. 7299 */ 7300 PRACTITIONER, 7301 /** 7302 * A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time. 7303 */ 7304 PRACTITIONERROLE, 7305 /** 7306 * An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy. 7307 */ 7308 PROCEDURE, 7309 /** 7310 * Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies. 7311 */ 7312 PROVENANCE, 7313 /** 7314 * A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection. 7315 */ 7316 QUESTIONNAIRE, 7317 /** 7318 * A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to. 7319 */ 7320 QUESTIONNAIRERESPONSE, 7321 /** 7322 * The regulatory authorization of a medicinal product. 7323 */ 7324 REGULATEDAUTHORIZATION, 7325 /** 7326 * Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process. 7327 */ 7328 RELATEDPERSON, 7329 /** 7330 * A group of related requests that can be used to capture intended activities that have inter-dependencies such as "give this medication after that one". 7331 */ 7332 REQUESTGROUP, 7333 /** 7334 * A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects. 7335 */ 7336 RESEARCHSTUDY, 7337 /** 7338 * A physical entity which is the primary unit of operational and/or administrative interest in a study. 7339 */ 7340 RESEARCHSUBJECT, 7341 /** 7342 * This is the base resource type for everything. 7343 */ 7344 RESOURCE, 7345 /** 7346 * An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome. 7347 */ 7348 RISKASSESSMENT, 7349 /** 7350 * A container for slots of time that may be available for booking appointments. 7351 */ 7352 SCHEDULE, 7353 /** 7354 * A search parameter that defines a named search item that can be used to search/filter on a resource. 7355 */ 7356 SEARCHPARAMETER, 7357 /** 7358 * A record of a request for service such as diagnostic investigations, treatments, or operations to be performed. 7359 */ 7360 SERVICEREQUEST, 7361 /** 7362 * A slot of time on a schedule that may be available for booking appointments. 7363 */ 7364 SLOT, 7365 /** 7366 * A sample to be used for analysis. 7367 */ 7368 SPECIMEN, 7369 /** 7370 * A kind of specimen with associated set of requirements. 7371 */ 7372 SPECIMENDEFINITION, 7373 /** 7374 * A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions and constraints on resources and data types. 7375 */ 7376 STRUCTUREDEFINITION, 7377 /** 7378 * A Map of relationships between 2 structures that can be used to transform data. 7379 */ 7380 STRUCTUREMAP, 7381 /** 7382 * The subscription resource describes a particular client's request to be notified about a Topic. 7383 */ 7384 SUBSCRIPTION, 7385 /** 7386 * A homogeneous material with a definite composition. 7387 */ 7388 SUBSTANCE, 7389 /** 7390 * The detailed description of a substance, typically at a level beyond what is used for prescribing. 7391 */ 7392 SUBSTANCEDEFINITION, 7393 /** 7394 * Nucleic acids are defined by three distinct elements: the base, sugar and linkage. Individual substance/moiety IDs will be created for each of these elements. The nucleotide sequence will be always entered in the 5’-3’ direction. 7395 */ 7396 SUBSTANCENUCLEICACID, 7397 /** 7398 * Todo. 7399 */ 7400 SUBSTANCEPOLYMER, 7401 /** 7402 * A SubstanceProtein is defined as a single unit of a linear amino acid sequence, or a combination of subunits that are either covalently linked or have a defined invariant stoichiometric relationship. This includes all synthetic, recombinant and purified SubstanceProteins of defined sequence, whether the use is therapeutic or prophylactic. This set of elements will be used to describe albumins, coagulation factors, cytokines, growth factors, peptide/SubstanceProtein hormones, enzymes, toxins, toxoids, recombinant vaccines, and immunomodulators. 7403 */ 7404 SUBSTANCEPROTEIN, 7405 /** 7406 * Todo. 7407 */ 7408 SUBSTANCEREFERENCEINFORMATION, 7409 /** 7410 * Source material shall capture information on the taxonomic and anatomical origins as well as the fraction of a material that can result in or can be modified to form a substance. This set of data elements shall be used to define polymer substances isolated from biological matrices. Taxonomic and anatomical origins shall be described using a controlled vocabulary as required. This information is captured for naturally derived polymers ( . starch) and structurally diverse substances. For Organisms belonging to the Kingdom Plantae the Substance level defines the fresh material of a single species or infraspecies, the Herbal Drug and the Herbal preparation. For Herbal preparations, the fraction information will be captured at the Substance information level and additional information for herbal extracts will be captured at the Specified Substance Group 1 information level. See for further explanation the Substance Class: Structurally Diverse and the herbal annex. 7411 */ 7412 SUBSTANCESOURCEMATERIAL, 7413 /** 7414 * Record of delivery of what is supplied. 7415 */ 7416 SUPPLYDELIVERY, 7417 /** 7418 * A record of a request for a medication, substance or device used in the healthcare setting. 7419 */ 7420 SUPPLYREQUEST, 7421 /** 7422 * A task to be performed. 7423 */ 7424 TASK, 7425 /** 7426 * A TerminologyCapabilities resource documents a set of capabilities (behaviors) of a FHIR Terminology Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation. 7427 */ 7428 TERMINOLOGYCAPABILITIES, 7429 /** 7430 * A summary of information based on the results of executing a TestScript. 7431 */ 7432 TESTREPORT, 7433 /** 7434 * A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification. 7435 */ 7436 TESTSCRIPT, 7437 /** 7438 * Describes a stream of resource state changes identified by trigger criteria and annotated with labels useful to filter projections from this topic. 7439 */ 7440 TOPIC, 7441 /** 7442 * A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html). 7443 */ 7444 VALUESET, 7445 /** 7446 * Describes validation requirements, source(s), status and dates for one or more elements. 7447 */ 7448 VERIFICATIONRESULT, 7449 /** 7450 * An authorization for the provision of glasses and/or contact lenses to a patient. 7451 */ 7452 VISIONPRESCRIPTION, 7453 /** 7454 * added to help the parsers 7455 */ 7456 NULL; 7457 public static FHIRDefinedType fromCode(String codeString) throws FHIRException { 7458 if (codeString == null || "".equals(codeString)) 7459 return null; 7460 if ("Address".equals(codeString)) 7461 return ADDRESS; 7462 if ("Age".equals(codeString)) 7463 return AGE; 7464 if ("Annotation".equals(codeString)) 7465 return ANNOTATION; 7466 if ("Attachment".equals(codeString)) 7467 return ATTACHMENT; 7468 if ("BackboneElement".equals(codeString)) 7469 return BACKBONEELEMENT; 7470 if ("CodeableConcept".equals(codeString)) 7471 return CODEABLECONCEPT; 7472 if ("Coding".equals(codeString)) 7473 return CODING; 7474 if ("ContactDetail".equals(codeString)) 7475 return CONTACTDETAIL; 7476 if ("ContactPoint".equals(codeString)) 7477 return CONTACTPOINT; 7478 if ("Contributor".equals(codeString)) 7479 return CONTRIBUTOR; 7480 if ("Count".equals(codeString)) 7481 return COUNT; 7482 if ("DataRequirement".equals(codeString)) 7483 return DATAREQUIREMENT; 7484 if ("Distance".equals(codeString)) 7485 return DISTANCE; 7486 if ("Dosage".equals(codeString)) 7487 return DOSAGE; 7488 if ("Duration".equals(codeString)) 7489 return DURATION; 7490 if ("Element".equals(codeString)) 7491 return ELEMENT; 7492 if ("ElementDefinition".equals(codeString)) 7493 return ELEMENTDEFINITION; 7494 if ("Expression".equals(codeString)) 7495 return EXPRESSION; 7496 if ("Extension".equals(codeString)) 7497 return EXTENSION; 7498 if ("HumanName".equals(codeString)) 7499 return HUMANNAME; 7500 if ("Identifier".equals(codeString)) 7501 return IDENTIFIER; 7502 if ("MarketingStatus".equals(codeString)) 7503 return MARKETINGSTATUS; 7504 if ("Meta".equals(codeString)) 7505 return META; 7506 if ("Money".equals(codeString)) 7507 return MONEY; 7508 if ("MoneyQuantity".equals(codeString)) 7509 return MONEYQUANTITY; 7510 if ("Narrative".equals(codeString)) 7511 return NARRATIVE; 7512 if ("OrderedDistribution".equals(codeString)) 7513 return ORDEREDDISTRIBUTION; 7514 if ("ParameterDefinition".equals(codeString)) 7515 return PARAMETERDEFINITION; 7516 if ("Period".equals(codeString)) 7517 return PERIOD; 7518 if ("Population".equals(codeString)) 7519 return POPULATION; 7520 if ("ProdCharacteristic".equals(codeString)) 7521 return PRODCHARACTERISTIC; 7522 if ("ProductShelfLife".equals(codeString)) 7523 return PRODUCTSHELFLIFE; 7524 if ("Quantity".equals(codeString)) 7525 return QUANTITY; 7526 if ("Range".equals(codeString)) 7527 return RANGE; 7528 if ("Ratio".equals(codeString)) 7529 return RATIO; 7530 if ("Reference".equals(codeString)) 7531 return REFERENCE; 7532 if ("RelatedArtifact".equals(codeString)) 7533 return RELATEDARTIFACT; 7534 if ("SampledData".equals(codeString)) 7535 return SAMPLEDDATA; 7536 if ("Signature".equals(codeString)) 7537 return SIGNATURE; 7538 if ("SimpleQuantity".equals(codeString)) 7539 return SIMPLEQUANTITY; 7540 if ("Statistic".equals(codeString)) 7541 return STATISTIC; 7542 if ("SubstanceAmount".equals(codeString)) 7543 return SUBSTANCEAMOUNT; 7544 if ("Timing".equals(codeString)) 7545 return TIMING; 7546 if ("TriggerDefinition".equals(codeString)) 7547 return TRIGGERDEFINITION; 7548 if ("UsageContext".equals(codeString)) 7549 return USAGECONTEXT; 7550 if ("base64Binary".equals(codeString)) 7551 return BASE64BINARY; 7552 if ("boolean".equals(codeString)) 7553 return BOOLEAN; 7554 if ("canonical".equals(codeString)) 7555 return CANONICAL; 7556 if ("code".equals(codeString)) 7557 return CODE; 7558 if ("date".equals(codeString)) 7559 return DATE; 7560 if ("dateTime".equals(codeString)) 7561 return DATETIME; 7562 if ("decimal".equals(codeString)) 7563 return DECIMAL; 7564 if ("id".equals(codeString)) 7565 return ID; 7566 if ("instant".equals(codeString)) 7567 return INSTANT; 7568 if ("integer".equals(codeString)) 7569 return INTEGER; 7570 if ("markdown".equals(codeString)) 7571 return MARKDOWN; 7572 if ("oid".equals(codeString)) 7573 return OID; 7574 if ("positiveInt".equals(codeString)) 7575 return POSITIVEINT; 7576 if ("string".equals(codeString)) 7577 return STRING; 7578 if ("time".equals(codeString)) 7579 return TIME; 7580 if ("unsignedInt".equals(codeString)) 7581 return UNSIGNEDINT; 7582 if ("uri".equals(codeString)) 7583 return URI; 7584 if ("url".equals(codeString)) 7585 return URL; 7586 if ("uuid".equals(codeString)) 7587 return UUID; 7588 if ("xhtml".equals(codeString)) 7589 return XHTML; 7590 if ("Account".equals(codeString)) 7591 return ACCOUNT; 7592 if ("ActivityDefinition".equals(codeString)) 7593 return ACTIVITYDEFINITION; 7594 if ("AdministrableProductDefinition".equals(codeString)) 7595 return ADMINISTRABLEPRODUCTDEFINITION; 7596 if ("AdverseEvent".equals(codeString)) 7597 return ADVERSEEVENT; 7598 if ("AllergyIntolerance".equals(codeString)) 7599 return ALLERGYINTOLERANCE; 7600 if ("Appointment".equals(codeString)) 7601 return APPOINTMENT; 7602 if ("AppointmentResponse".equals(codeString)) 7603 return APPOINTMENTRESPONSE; 7604 if ("AuditEvent".equals(codeString)) 7605 return AUDITEVENT; 7606 if ("Basic".equals(codeString)) 7607 return BASIC; 7608 if ("Binary".equals(codeString)) 7609 return BINARY; 7610 if ("BiologicallyDerivedProduct".equals(codeString)) 7611 return BIOLOGICALLYDERIVEDPRODUCT; 7612 if ("BodyStructure".equals(codeString)) 7613 return BODYSTRUCTURE; 7614 if ("Bundle".equals(codeString)) 7615 return BUNDLE; 7616 if ("CapabilityStatement".equals(codeString)) 7617 return CAPABILITYSTATEMENT; 7618 if ("CapabilityStatement2".equals(codeString)) 7619 return CAPABILITYSTATEMENT2; 7620 if ("CarePlan".equals(codeString)) 7621 return CAREPLAN; 7622 if ("CareTeam".equals(codeString)) 7623 return CARETEAM; 7624 if ("CatalogEntry".equals(codeString)) 7625 return CATALOGENTRY; 7626 if ("ChargeItem".equals(codeString)) 7627 return CHARGEITEM; 7628 if ("ChargeItemDefinition".equals(codeString)) 7629 return CHARGEITEMDEFINITION; 7630 if ("Claim".equals(codeString)) 7631 return CLAIM; 7632 if ("ClaimResponse".equals(codeString)) 7633 return CLAIMRESPONSE; 7634 if ("ClinicalImpression".equals(codeString)) 7635 return CLINICALIMPRESSION; 7636 if ("ClinicalUseIssue".equals(codeString)) 7637 return CLINICALUSEISSUE; 7638 if ("CodeSystem".equals(codeString)) 7639 return CODESYSTEM; 7640 if ("Communication".equals(codeString)) 7641 return COMMUNICATION; 7642 if ("CommunicationRequest".equals(codeString)) 7643 return COMMUNICATIONREQUEST; 7644 if ("CompartmentDefinition".equals(codeString)) 7645 return COMPARTMENTDEFINITION; 7646 if ("Composition".equals(codeString)) 7647 return COMPOSITION; 7648 if ("ConceptMap".equals(codeString)) 7649 return CONCEPTMAP; 7650 if ("Condition".equals(codeString)) 7651 return CONDITION; 7652 if ("ConditionDefinition".equals(codeString)) 7653 return CONDITIONDEFINITION; 7654 if ("Consent".equals(codeString)) 7655 return CONSENT; 7656 if ("Contract".equals(codeString)) 7657 return CONTRACT; 7658 if ("Coverage".equals(codeString)) 7659 return COVERAGE; 7660 if ("CoverageEligibilityRequest".equals(codeString)) 7661 return COVERAGEELIGIBILITYREQUEST; 7662 if ("CoverageEligibilityResponse".equals(codeString)) 7663 return COVERAGEELIGIBILITYRESPONSE; 7664 if ("DetectedIssue".equals(codeString)) 7665 return DETECTEDISSUE; 7666 if ("Device".equals(codeString)) 7667 return DEVICE; 7668 if ("DeviceDefinition".equals(codeString)) 7669 return DEVICEDEFINITION; 7670 if ("DeviceMetric".equals(codeString)) 7671 return DEVICEMETRIC; 7672 if ("DeviceRequest".equals(codeString)) 7673 return DEVICEREQUEST; 7674 if ("DeviceUseStatement".equals(codeString)) 7675 return DEVICEUSESTATEMENT; 7676 if ("DiagnosticReport".equals(codeString)) 7677 return DIAGNOSTICREPORT; 7678 if ("DocumentManifest".equals(codeString)) 7679 return DOCUMENTMANIFEST; 7680 if ("DocumentReference".equals(codeString)) 7681 return DOCUMENTREFERENCE; 7682 if ("DomainResource".equals(codeString)) 7683 return DOMAINRESOURCE; 7684 if ("Encounter".equals(codeString)) 7685 return ENCOUNTER; 7686 if ("Endpoint".equals(codeString)) 7687 return ENDPOINT; 7688 if ("EnrollmentRequest".equals(codeString)) 7689 return ENROLLMENTREQUEST; 7690 if ("EnrollmentResponse".equals(codeString)) 7691 return ENROLLMENTRESPONSE; 7692 if ("EpisodeOfCare".equals(codeString)) 7693 return EPISODEOFCARE; 7694 if ("EventDefinition".equals(codeString)) 7695 return EVENTDEFINITION; 7696 if ("Evidence".equals(codeString)) 7697 return EVIDENCE; 7698 if ("EvidenceVariable".equals(codeString)) 7699 return EVIDENCEVARIABLE; 7700 if ("ExampleScenario".equals(codeString)) 7701 return EXAMPLESCENARIO; 7702 if ("ExplanationOfBenefit".equals(codeString)) 7703 return EXPLANATIONOFBENEFIT; 7704 if ("FamilyMemberHistory".equals(codeString)) 7705 return FAMILYMEMBERHISTORY; 7706 if ("Flag".equals(codeString)) 7707 return FLAG; 7708 if ("Goal".equals(codeString)) 7709 return GOAL; 7710 if ("GraphDefinition".equals(codeString)) 7711 return GRAPHDEFINITION; 7712 if ("Group".equals(codeString)) 7713 return GROUP; 7714 if ("GuidanceResponse".equals(codeString)) 7715 return GUIDANCERESPONSE; 7716 if ("HealthcareService".equals(codeString)) 7717 return HEALTHCARESERVICE; 7718 if ("ImagingStudy".equals(codeString)) 7719 return IMAGINGSTUDY; 7720 if ("Immunization".equals(codeString)) 7721 return IMMUNIZATION; 7722 if ("ImmunizationEvaluation".equals(codeString)) 7723 return IMMUNIZATIONEVALUATION; 7724 if ("ImmunizationRecommendation".equals(codeString)) 7725 return IMMUNIZATIONRECOMMENDATION; 7726 if ("ImplementationGuide".equals(codeString)) 7727 return IMPLEMENTATIONGUIDE; 7728 if ("Ingredient".equals(codeString)) 7729 return INGREDIENT; 7730 if ("InsurancePlan".equals(codeString)) 7731 return INSURANCEPLAN; 7732 if ("Invoice".equals(codeString)) 7733 return INVOICE; 7734 if ("Library".equals(codeString)) 7735 return LIBRARY; 7736 if ("Linkage".equals(codeString)) 7737 return LINKAGE; 7738 if ("List".equals(codeString)) 7739 return LIST; 7740 if ("Location".equals(codeString)) 7741 return LOCATION; 7742 if ("ManufacturedItemDefinition".equals(codeString)) 7743 return MANUFACTUREDITEMDEFINITION; 7744 if ("Measure".equals(codeString)) 7745 return MEASURE; 7746 if ("MeasureReport".equals(codeString)) 7747 return MEASUREREPORT; 7748 if ("Medication".equals(codeString)) 7749 return MEDICATION; 7750 if ("MedicationAdministration".equals(codeString)) 7751 return MEDICATIONADMINISTRATION; 7752 if ("MedicationDispense".equals(codeString)) 7753 return MEDICATIONDISPENSE; 7754 if ("MedicationKnowledge".equals(codeString)) 7755 return MEDICATIONKNOWLEDGE; 7756 if ("MedicationRequest".equals(codeString)) 7757 return MEDICATIONREQUEST; 7758 if ("MedicationUsage".equals(codeString)) 7759 return MEDICATIONUSAGE; 7760 if ("MedicinalProductDefinition".equals(codeString)) 7761 return MEDICINALPRODUCTDEFINITION; 7762 if ("MessageDefinition".equals(codeString)) 7763 return MESSAGEDEFINITION; 7764 if ("MessageHeader".equals(codeString)) 7765 return MESSAGEHEADER; 7766 if ("MolecularSequence".equals(codeString)) 7767 return MOLECULARSEQUENCE; 7768 if ("NamingSystem".equals(codeString)) 7769 return NAMINGSYSTEM; 7770 if ("NutritionIntake".equals(codeString)) 7771 return NUTRITIONINTAKE; 7772 if ("NutritionOrder".equals(codeString)) 7773 return NUTRITIONORDER; 7774 if ("Observation".equals(codeString)) 7775 return OBSERVATION; 7776 if ("ObservationDefinition".equals(codeString)) 7777 return OBSERVATIONDEFINITION; 7778 if ("OperationDefinition".equals(codeString)) 7779 return OPERATIONDEFINITION; 7780 if ("OperationOutcome".equals(codeString)) 7781 return OPERATIONOUTCOME; 7782 if ("Organization".equals(codeString)) 7783 return ORGANIZATION; 7784 if ("OrganizationAffiliation".equals(codeString)) 7785 return ORGANIZATIONAFFILIATION; 7786 if ("PackagedProductDefinition".equals(codeString)) 7787 return PACKAGEDPRODUCTDEFINITION; 7788 if ("Parameters".equals(codeString)) 7789 return PARAMETERS; 7790 if ("Patient".equals(codeString)) 7791 return PATIENT; 7792 if ("PaymentNotice".equals(codeString)) 7793 return PAYMENTNOTICE; 7794 if ("PaymentReconciliation".equals(codeString)) 7795 return PAYMENTRECONCILIATION; 7796 if ("Person".equals(codeString)) 7797 return PERSON; 7798 if ("PlanDefinition".equals(codeString)) 7799 return PLANDEFINITION; 7800 if ("Practitioner".equals(codeString)) 7801 return PRACTITIONER; 7802 if ("PractitionerRole".equals(codeString)) 7803 return PRACTITIONERROLE; 7804 if ("Procedure".equals(codeString)) 7805 return PROCEDURE; 7806 if ("Provenance".equals(codeString)) 7807 return PROVENANCE; 7808 if ("Questionnaire".equals(codeString)) 7809 return QUESTIONNAIRE; 7810 if ("QuestionnaireResponse".equals(codeString)) 7811 return QUESTIONNAIRERESPONSE; 7812 if ("RegulatedAuthorization".equals(codeString)) 7813 return REGULATEDAUTHORIZATION; 7814 if ("RelatedPerson".equals(codeString)) 7815 return RELATEDPERSON; 7816 if ("RequestGroup".equals(codeString)) 7817 return REQUESTGROUP; 7818 if ("ResearchStudy".equals(codeString)) 7819 return RESEARCHSTUDY; 7820 if ("ResearchSubject".equals(codeString)) 7821 return RESEARCHSUBJECT; 7822 if ("Resource".equals(codeString)) 7823 return RESOURCE; 7824 if ("RiskAssessment".equals(codeString)) 7825 return RISKASSESSMENT; 7826 if ("Schedule".equals(codeString)) 7827 return SCHEDULE; 7828 if ("SearchParameter".equals(codeString)) 7829 return SEARCHPARAMETER; 7830 if ("ServiceRequest".equals(codeString)) 7831 return SERVICEREQUEST; 7832 if ("Slot".equals(codeString)) 7833 return SLOT; 7834 if ("Specimen".equals(codeString)) 7835 return SPECIMEN; 7836 if ("SpecimenDefinition".equals(codeString)) 7837 return SPECIMENDEFINITION; 7838 if ("StructureDefinition".equals(codeString)) 7839 return STRUCTUREDEFINITION; 7840 if ("StructureMap".equals(codeString)) 7841 return STRUCTUREMAP; 7842 if ("Subscription".equals(codeString)) 7843 return SUBSCRIPTION; 7844 if ("Substance".equals(codeString)) 7845 return SUBSTANCE; 7846 if ("SubstanceDefinition".equals(codeString)) 7847 return SUBSTANCEDEFINITION; 7848 if ("SubstanceNucleicAcid".equals(codeString)) 7849 return SUBSTANCENUCLEICACID; 7850 if ("SubstancePolymer".equals(codeString)) 7851 return SUBSTANCEPOLYMER; 7852 if ("SubstanceProtein".equals(codeString)) 7853 return SUBSTANCEPROTEIN; 7854 if ("SubstanceReferenceInformation".equals(codeString)) 7855 return SUBSTANCEREFERENCEINFORMATION; 7856 if ("SubstanceSourceMaterial".equals(codeString)) 7857 return SUBSTANCESOURCEMATERIAL; 7858 if ("SupplyDelivery".equals(codeString)) 7859 return SUPPLYDELIVERY; 7860 if ("SupplyRequest".equals(codeString)) 7861 return SUPPLYREQUEST; 7862 if ("Task".equals(codeString)) 7863 return TASK; 7864 if ("TerminologyCapabilities".equals(codeString)) 7865 return TERMINOLOGYCAPABILITIES; 7866 if ("TestReport".equals(codeString)) 7867 return TESTREPORT; 7868 if ("TestScript".equals(codeString)) 7869 return TESTSCRIPT; 7870 if ("Topic".equals(codeString)) 7871 return TOPIC; 7872 if ("ValueSet".equals(codeString)) 7873 return VALUESET; 7874 if ("VerificationResult".equals(codeString)) 7875 return VERIFICATIONRESULT; 7876 if ("VisionPrescription".equals(codeString)) 7877 return VISIONPRESCRIPTION; 7878 throw new FHIRException("Unknown FHIRDefinedType code '"+codeString+"'"); 7879 } 7880 public String toCode() { 7881 switch (this) { 7882 case ADDRESS: return "Address"; 7883 case AGE: return "Age"; 7884 case ANNOTATION: return "Annotation"; 7885 case ATTACHMENT: return "Attachment"; 7886 case BACKBONEELEMENT: return "BackboneElement"; 7887 case CODEABLECONCEPT: return "CodeableConcept"; 7888 case CODING: return "Coding"; 7889 case CONTACTDETAIL: return "ContactDetail"; 7890 case CONTACTPOINT: return "ContactPoint"; 7891 case CONTRIBUTOR: return "Contributor"; 7892 case COUNT: return "Count"; 7893 case DATAREQUIREMENT: return "DataRequirement"; 7894 case DISTANCE: return "Distance"; 7895 case DOSAGE: return "Dosage"; 7896 case DURATION: return "Duration"; 7897 case ELEMENT: return "Element"; 7898 case ELEMENTDEFINITION: return "ElementDefinition"; 7899 case EXPRESSION: return "Expression"; 7900 case EXTENSION: return "Extension"; 7901 case HUMANNAME: return "HumanName"; 7902 case IDENTIFIER: return "Identifier"; 7903 case MARKETINGSTATUS: return "MarketingStatus"; 7904 case META: return "Meta"; 7905 case MONEY: return "Money"; 7906 case MONEYQUANTITY: return "MoneyQuantity"; 7907 case NARRATIVE: return "Narrative"; 7908 case ORDEREDDISTRIBUTION: return "OrderedDistribution"; 7909 case PARAMETERDEFINITION: return "ParameterDefinition"; 7910 case PERIOD: return "Period"; 7911 case POPULATION: return "Population"; 7912 case PRODCHARACTERISTIC: return "ProdCharacteristic"; 7913 case PRODUCTSHELFLIFE: return "ProductShelfLife"; 7914 case QUANTITY: return "Quantity"; 7915 case RANGE: return "Range"; 7916 case RATIO: return "Ratio"; 7917 case REFERENCE: return "Reference"; 7918 case RELATEDARTIFACT: return "RelatedArtifact"; 7919 case SAMPLEDDATA: return "SampledData"; 7920 case SIGNATURE: return "Signature"; 7921 case SIMPLEQUANTITY: return "SimpleQuantity"; 7922 case STATISTIC: return "Statistic"; 7923 case SUBSTANCEAMOUNT: return "SubstanceAmount"; 7924 case TIMING: return "Timing"; 7925 case TRIGGERDEFINITION: return "TriggerDefinition"; 7926 case USAGECONTEXT: return "UsageContext"; 7927 case BASE64BINARY: return "base64Binary"; 7928 case BOOLEAN: return "boolean"; 7929 case CANONICAL: return "canonical"; 7930 case CODE: return "code"; 7931 case DATE: return "date"; 7932 case DATETIME: return "dateTime"; 7933 case DECIMAL: return "decimal"; 7934 case ID: return "id"; 7935 case INSTANT: return "instant"; 7936 case INTEGER: return "integer"; 7937 case MARKDOWN: return "markdown"; 7938 case OID: return "oid"; 7939 case POSITIVEINT: return "positiveInt"; 7940 case STRING: return "string"; 7941 case TIME: return "time"; 7942 case UNSIGNEDINT: return "unsignedInt"; 7943 case URI: return "uri"; 7944 case URL: return "url"; 7945 case UUID: return "uuid"; 7946 case XHTML: return "xhtml"; 7947 case ACCOUNT: return "Account"; 7948 case ACTIVITYDEFINITION: return "ActivityDefinition"; 7949 case ADMINISTRABLEPRODUCTDEFINITION: return "AdministrableProductDefinition"; 7950 case ADVERSEEVENT: return "AdverseEvent"; 7951 case ALLERGYINTOLERANCE: return "AllergyIntolerance"; 7952 case APPOINTMENT: return "Appointment"; 7953 case APPOINTMENTRESPONSE: return "AppointmentResponse"; 7954 case AUDITEVENT: return "AuditEvent"; 7955 case BASIC: return "Basic"; 7956 case BINARY: return "Binary"; 7957 case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct"; 7958 case BODYSTRUCTURE: return "BodyStructure"; 7959 case BUNDLE: return "Bundle"; 7960 case CAPABILITYSTATEMENT: return "CapabilityStatement"; 7961 case CAPABILITYSTATEMENT2: return "CapabilityStatement2"; 7962 case CAREPLAN: return "CarePlan"; 7963 case CARETEAM: return "CareTeam"; 7964 case CATALOGENTRY: return "CatalogEntry"; 7965 case CHARGEITEM: return "ChargeItem"; 7966 case CHARGEITEMDEFINITION: return "ChargeItemDefinition"; 7967 case CLAIM: return "Claim"; 7968 case CLAIMRESPONSE: return "ClaimResponse"; 7969 case CLINICALIMPRESSION: return "ClinicalImpression"; 7970 case CLINICALUSEISSUE: return "ClinicalUseIssue"; 7971 case CODESYSTEM: return "CodeSystem"; 7972 case COMMUNICATION: return "Communication"; 7973 case COMMUNICATIONREQUEST: return "CommunicationRequest"; 7974 case COMPARTMENTDEFINITION: return "CompartmentDefinition"; 7975 case COMPOSITION: return "Composition"; 7976 case CONCEPTMAP: return "ConceptMap"; 7977 case CONDITION: return "Condition"; 7978 case CONDITIONDEFINITION: return "ConditionDefinition"; 7979 case CONSENT: return "Consent"; 7980 case CONTRACT: return "Contract"; 7981 case COVERAGE: return "Coverage"; 7982 case COVERAGEELIGIBILITYREQUEST: return "CoverageEligibilityRequest"; 7983 case COVERAGEELIGIBILITYRESPONSE: return "CoverageEligibilityResponse"; 7984 case DETECTEDISSUE: return "DetectedIssue"; 7985 case DEVICE: return "Device"; 7986 case DEVICEDEFINITION: return "DeviceDefinition"; 7987 case DEVICEMETRIC: return "DeviceMetric"; 7988 case DEVICEREQUEST: return "DeviceRequest"; 7989 case DEVICEUSESTATEMENT: return "DeviceUseStatement"; 7990 case DIAGNOSTICREPORT: return "DiagnosticReport"; 7991 case DOCUMENTMANIFEST: return "DocumentManifest"; 7992 case DOCUMENTREFERENCE: return "DocumentReference"; 7993 case DOMAINRESOURCE: return "DomainResource"; 7994 case ENCOUNTER: return "Encounter"; 7995 case ENDPOINT: return "Endpoint"; 7996 case ENROLLMENTREQUEST: return "EnrollmentRequest"; 7997 case ENROLLMENTRESPONSE: return "EnrollmentResponse"; 7998 case EPISODEOFCARE: return "EpisodeOfCare"; 7999 case EVENTDEFINITION: return "EventDefinition"; 8000 case EVIDENCE: return "Evidence"; 8001 case EVIDENCEVARIABLE: return "EvidenceVariable"; 8002 case EXAMPLESCENARIO: return "ExampleScenario"; 8003 case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit"; 8004 case FAMILYMEMBERHISTORY: return "FamilyMemberHistory"; 8005 case FLAG: return "Flag"; 8006 case GOAL: return "Goal"; 8007 case GRAPHDEFINITION: return "GraphDefinition"; 8008 case GROUP: return "Group"; 8009 case GUIDANCERESPONSE: return "GuidanceResponse"; 8010 case HEALTHCARESERVICE: return "HealthcareService"; 8011 case IMAGINGSTUDY: return "ImagingStudy"; 8012 case IMMUNIZATION: return "Immunization"; 8013 case IMMUNIZATIONEVALUATION: return "ImmunizationEvaluation"; 8014 case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation"; 8015 case IMPLEMENTATIONGUIDE: return "ImplementationGuide"; 8016 case INGREDIENT: return "Ingredient"; 8017 case INSURANCEPLAN: return "InsurancePlan"; 8018 case INVOICE: return "Invoice"; 8019 case LIBRARY: return "Library"; 8020 case LINKAGE: return "Linkage"; 8021 case LIST: return "List"; 8022 case LOCATION: return "Location"; 8023 case MANUFACTUREDITEMDEFINITION: return "ManufacturedItemDefinition"; 8024 case MEASURE: return "Measure"; 8025 case MEASUREREPORT: return "MeasureReport"; 8026 case MEDICATION: return "Medication"; 8027 case MEDICATIONADMINISTRATION: return "MedicationAdministration"; 8028 case MEDICATIONDISPENSE: return "MedicationDispense"; 8029 case MEDICATIONKNOWLEDGE: return "MedicationKnowledge"; 8030 case MEDICATIONREQUEST: return "MedicationRequest"; 8031 case MEDICATIONUSAGE: return "MedicationUsage"; 8032 case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition"; 8033 case MESSAGEDEFINITION: return "MessageDefinition"; 8034 case MESSAGEHEADER: return "MessageHeader"; 8035 case MOLECULARSEQUENCE: return "MolecularSequence"; 8036 case NAMINGSYSTEM: return "NamingSystem"; 8037 case NUTRITIONINTAKE: return "NutritionIntake"; 8038 case NUTRITIONORDER: return "NutritionOrder"; 8039 case OBSERVATION: return "Observation"; 8040 case OBSERVATIONDEFINITION: return "ObservationDefinition"; 8041 case OPERATIONDEFINITION: return "OperationDefinition"; 8042 case OPERATIONOUTCOME: return "OperationOutcome"; 8043 case ORGANIZATION: return "Organization"; 8044 case ORGANIZATIONAFFILIATION: return "OrganizationAffiliation"; 8045 case PACKAGEDPRODUCTDEFINITION: return "PackagedProductDefinition"; 8046 case PARAMETERS: return "Parameters"; 8047 case PATIENT: return "Patient"; 8048 case PAYMENTNOTICE: return "PaymentNotice"; 8049 case PAYMENTRECONCILIATION: return "PaymentReconciliation"; 8050 case PERSON: return "Person"; 8051 case PLANDEFINITION: return "PlanDefinition"; 8052 case PRACTITIONER: return "Practitioner"; 8053 case PRACTITIONERROLE: return "PractitionerRole"; 8054 case PROCEDURE: return "Procedure"; 8055 case PROVENANCE: return "Provenance"; 8056 case QUESTIONNAIRE: return "Questionnaire"; 8057 case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse"; 8058 case REGULATEDAUTHORIZATION: return "RegulatedAuthorization"; 8059 case RELATEDPERSON: return "RelatedPerson"; 8060 case REQUESTGROUP: return "RequestGroup"; 8061 case RESEARCHSTUDY: return "ResearchStudy"; 8062 case RESEARCHSUBJECT: return "ResearchSubject"; 8063 case RESOURCE: return "Resource"; 8064 case RISKASSESSMENT: return "RiskAssessment"; 8065 case SCHEDULE: return "Schedule"; 8066 case SEARCHPARAMETER: return "SearchParameter"; 8067 case SERVICEREQUEST: return "ServiceRequest"; 8068 case SLOT: return "Slot"; 8069 case SPECIMEN: return "Specimen"; 8070 case SPECIMENDEFINITION: return "SpecimenDefinition"; 8071 case STRUCTUREDEFINITION: return "StructureDefinition"; 8072 case STRUCTUREMAP: return "StructureMap"; 8073 case SUBSCRIPTION: return "Subscription"; 8074 case SUBSTANCE: return "Substance"; 8075 case SUBSTANCEDEFINITION: return "SubstanceDefinition"; 8076 case SUBSTANCENUCLEICACID: return "SubstanceNucleicAcid"; 8077 case SUBSTANCEPOLYMER: return "SubstancePolymer"; 8078 case SUBSTANCEPROTEIN: return "SubstanceProtein"; 8079 case SUBSTANCEREFERENCEINFORMATION: return "SubstanceReferenceInformation"; 8080 case SUBSTANCESOURCEMATERIAL: return "SubstanceSourceMaterial"; 8081 case SUPPLYDELIVERY: return "SupplyDelivery"; 8082 case SUPPLYREQUEST: return "SupplyRequest"; 8083 case TASK: return "Task"; 8084 case TERMINOLOGYCAPABILITIES: return "TerminologyCapabilities"; 8085 case TESTREPORT: return "TestReport"; 8086 case TESTSCRIPT: return "TestScript"; 8087 case TOPIC: return "Topic"; 8088 case VALUESET: return "ValueSet"; 8089 case VERIFICATIONRESULT: return "VerificationResult"; 8090 case VISIONPRESCRIPTION: return "VisionPrescription"; 8091 default: return "?"; 8092 } 8093 } 8094 public String getSystem() { 8095 switch (this) { 8096 case ADDRESS: return "http://hl7.org/fhir/data-types"; 8097 case AGE: return "http://hl7.org/fhir/data-types"; 8098 case ANNOTATION: return "http://hl7.org/fhir/data-types"; 8099 case ATTACHMENT: return "http://hl7.org/fhir/data-types"; 8100 case BACKBONEELEMENT: return "http://hl7.org/fhir/data-types"; 8101 case CODEABLECONCEPT: return "http://hl7.org/fhir/data-types"; 8102 case CODING: return "http://hl7.org/fhir/data-types"; 8103 case CONTACTDETAIL: return "http://hl7.org/fhir/data-types"; 8104 case CONTACTPOINT: return "http://hl7.org/fhir/data-types"; 8105 case CONTRIBUTOR: return "http://hl7.org/fhir/data-types"; 8106 case COUNT: return "http://hl7.org/fhir/data-types"; 8107 case DATAREQUIREMENT: return "http://hl7.org/fhir/data-types"; 8108 case DISTANCE: return "http://hl7.org/fhir/data-types"; 8109 case DOSAGE: return "http://hl7.org/fhir/data-types"; 8110 case DURATION: return "http://hl7.org/fhir/data-types"; 8111 case ELEMENT: return "http://hl7.org/fhir/data-types"; 8112 case ELEMENTDEFINITION: return "http://hl7.org/fhir/data-types"; 8113 case EXPRESSION: return "http://hl7.org/fhir/data-types"; 8114 case EXTENSION: return "http://hl7.org/fhir/data-types"; 8115 case HUMANNAME: return "http://hl7.org/fhir/data-types"; 8116 case IDENTIFIER: return "http://hl7.org/fhir/data-types"; 8117 case MARKETINGSTATUS: return "http://hl7.org/fhir/data-types"; 8118 case META: return "http://hl7.org/fhir/data-types"; 8119 case MONEY: return "http://hl7.org/fhir/data-types"; 8120 case MONEYQUANTITY: return "http://hl7.org/fhir/data-types"; 8121 case NARRATIVE: return "http://hl7.org/fhir/data-types"; 8122 case ORDEREDDISTRIBUTION: return "http://hl7.org/fhir/data-types"; 8123 case PARAMETERDEFINITION: return "http://hl7.org/fhir/data-types"; 8124 case PERIOD: return "http://hl7.org/fhir/data-types"; 8125 case POPULATION: return "http://hl7.org/fhir/data-types"; 8126 case PRODCHARACTERISTIC: return "http://hl7.org/fhir/data-types"; 8127 case PRODUCTSHELFLIFE: return "http://hl7.org/fhir/data-types"; 8128 case QUANTITY: return "http://hl7.org/fhir/data-types"; 8129 case RANGE: return "http://hl7.org/fhir/data-types"; 8130 case RATIO: return "http://hl7.org/fhir/data-types"; 8131 case REFERENCE: return "http://hl7.org/fhir/data-types"; 8132 case RELATEDARTIFACT: return "http://hl7.org/fhir/data-types"; 8133 case SAMPLEDDATA: return "http://hl7.org/fhir/data-types"; 8134 case SIGNATURE: return "http://hl7.org/fhir/data-types"; 8135 case SIMPLEQUANTITY: return "http://hl7.org/fhir/data-types"; 8136 case STATISTIC: return "http://hl7.org/fhir/data-types"; 8137 case SUBSTANCEAMOUNT: return "http://hl7.org/fhir/data-types"; 8138 case TIMING: return "http://hl7.org/fhir/data-types"; 8139 case TRIGGERDEFINITION: return "http://hl7.org/fhir/data-types"; 8140 case USAGECONTEXT: return "http://hl7.org/fhir/data-types"; 8141 case BASE64BINARY: return "http://hl7.org/fhir/data-types"; 8142 case BOOLEAN: return "http://hl7.org/fhir/data-types"; 8143 case CANONICAL: return "http://hl7.org/fhir/data-types"; 8144 case CODE: return "http://hl7.org/fhir/data-types"; 8145 case DATE: return "http://hl7.org/fhir/data-types"; 8146 case DATETIME: return "http://hl7.org/fhir/data-types"; 8147 case DECIMAL: return "http://hl7.org/fhir/data-types"; 8148 case ID: return "http://hl7.org/fhir/data-types"; 8149 case INSTANT: return "http://hl7.org/fhir/data-types"; 8150 case INTEGER: return "http://hl7.org/fhir/data-types"; 8151 case MARKDOWN: return "http://hl7.org/fhir/data-types"; 8152 case OID: return "http://hl7.org/fhir/data-types"; 8153 case POSITIVEINT: return "http://hl7.org/fhir/data-types"; 8154 case STRING: return "http://hl7.org/fhir/data-types"; 8155 case TIME: return "http://hl7.org/fhir/data-types"; 8156 case UNSIGNEDINT: return "http://hl7.org/fhir/data-types"; 8157 case URI: return "http://hl7.org/fhir/data-types"; 8158 case URL: return "http://hl7.org/fhir/data-types"; 8159 case UUID: return "http://hl7.org/fhir/data-types"; 8160 case XHTML: return "http://hl7.org/fhir/data-types"; 8161 case ACCOUNT: return "http://hl7.org/fhir/resource-types"; 8162 case ACTIVITYDEFINITION: return "http://hl7.org/fhir/resource-types"; 8163 case ADMINISTRABLEPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types"; 8164 case ADVERSEEVENT: return "http://hl7.org/fhir/resource-types"; 8165 case ALLERGYINTOLERANCE: return "http://hl7.org/fhir/resource-types"; 8166 case APPOINTMENT: return "http://hl7.org/fhir/resource-types"; 8167 case APPOINTMENTRESPONSE: return "http://hl7.org/fhir/resource-types"; 8168 case AUDITEVENT: return "http://hl7.org/fhir/resource-types"; 8169 case BASIC: return "http://hl7.org/fhir/resource-types"; 8170 case BINARY: return "http://hl7.org/fhir/resource-types"; 8171 case BIOLOGICALLYDERIVEDPRODUCT: return "http://hl7.org/fhir/resource-types"; 8172 case BODYSTRUCTURE: return "http://hl7.org/fhir/resource-types"; 8173 case BUNDLE: return "http://hl7.org/fhir/resource-types"; 8174 case CAPABILITYSTATEMENT: return "http://hl7.org/fhir/resource-types"; 8175 case CAPABILITYSTATEMENT2: return "http://hl7.org/fhir/resource-types"; 8176 case CAREPLAN: return "http://hl7.org/fhir/resource-types"; 8177 case CARETEAM: return "http://hl7.org/fhir/resource-types"; 8178 case CATALOGENTRY: return "http://hl7.org/fhir/resource-types"; 8179 case CHARGEITEM: return "http://hl7.org/fhir/resource-types"; 8180 case CHARGEITEMDEFINITION: return "http://hl7.org/fhir/resource-types"; 8181 case CLAIM: return "http://hl7.org/fhir/resource-types"; 8182 case CLAIMRESPONSE: return "http://hl7.org/fhir/resource-types"; 8183 case CLINICALIMPRESSION: return "http://hl7.org/fhir/resource-types"; 8184 case CLINICALUSEISSUE: return "http://hl7.org/fhir/resource-types"; 8185 case CODESYSTEM: return "http://hl7.org/fhir/resource-types"; 8186 case COMMUNICATION: return "http://hl7.org/fhir/resource-types"; 8187 case COMMUNICATIONREQUEST: return "http://hl7.org/fhir/resource-types"; 8188 case COMPARTMENTDEFINITION: return "http://hl7.org/fhir/resource-types"; 8189 case COMPOSITION: return "http://hl7.org/fhir/resource-types"; 8190 case CONCEPTMAP: return "http://hl7.org/fhir/resource-types"; 8191 case CONDITION: return "http://hl7.org/fhir/resource-types"; 8192 case CONDITIONDEFINITION: return "http://hl7.org/fhir/resource-types"; 8193 case CONSENT: return "http://hl7.org/fhir/resource-types"; 8194 case CONTRACT: return "http://hl7.org/fhir/resource-types"; 8195 case COVERAGE: return "http://hl7.org/fhir/resource-types"; 8196 case COVERAGEELIGIBILITYREQUEST: return "http://hl7.org/fhir/resource-types"; 8197 case COVERAGEELIGIBILITYRESPONSE: return "http://hl7.org/fhir/resource-types"; 8198 case DETECTEDISSUE: return "http://hl7.org/fhir/resource-types"; 8199 case DEVICE: return "http://hl7.org/fhir/resource-types"; 8200 case DEVICEDEFINITION: return "http://hl7.org/fhir/resource-types"; 8201 case DEVICEMETRIC: return "http://hl7.org/fhir/resource-types"; 8202 case DEVICEREQUEST: return "http://hl7.org/fhir/resource-types"; 8203 case DEVICEUSESTATEMENT: return "http://hl7.org/fhir/resource-types"; 8204 case DIAGNOSTICREPORT: return "http://hl7.org/fhir/resource-types"; 8205 case DOCUMENTMANIFEST: return "http://hl7.org/fhir/resource-types"; 8206 case DOCUMENTREFERENCE: return "http://hl7.org/fhir/resource-types"; 8207 case DOMAINRESOURCE: return "http://hl7.org/fhir/resource-types"; 8208 case ENCOUNTER: return "http://hl7.org/fhir/resource-types"; 8209 case ENDPOINT: return "http://hl7.org/fhir/resource-types"; 8210 case ENROLLMENTREQUEST: return "http://hl7.org/fhir/resource-types"; 8211 case ENROLLMENTRESPONSE: return "http://hl7.org/fhir/resource-types"; 8212 case EPISODEOFCARE: return "http://hl7.org/fhir/resource-types"; 8213 case EVENTDEFINITION: return "http://hl7.org/fhir/resource-types"; 8214 case EVIDENCE: return "http://hl7.org/fhir/resource-types"; 8215 case EVIDENCEVARIABLE: return "http://hl7.org/fhir/resource-types"; 8216 case EXAMPLESCENARIO: return "http://hl7.org/fhir/resource-types"; 8217 case EXPLANATIONOFBENEFIT: return "http://hl7.org/fhir/resource-types"; 8218 case FAMILYMEMBERHISTORY: return "http://hl7.org/fhir/resource-types"; 8219 case FLAG: return "http://hl7.org/fhir/resource-types"; 8220 case GOAL: return "http://hl7.org/fhir/resource-types"; 8221 case GRAPHDEFINITION: return "http://hl7.org/fhir/resource-types"; 8222 case GROUP: return "http://hl7.org/fhir/resource-types"; 8223 case GUIDANCERESPONSE: return "http://hl7.org/fhir/resource-types"; 8224 case HEALTHCARESERVICE: return "http://hl7.org/fhir/resource-types"; 8225 case IMAGINGSTUDY: return "http://hl7.org/fhir/resource-types"; 8226 case IMMUNIZATION: return "http://hl7.org/fhir/resource-types"; 8227 case IMMUNIZATIONEVALUATION: return "http://hl7.org/fhir/resource-types"; 8228 case IMMUNIZATIONRECOMMENDATION: return "http://hl7.org/fhir/resource-types"; 8229 case IMPLEMENTATIONGUIDE: return "http://hl7.org/fhir/resource-types"; 8230 case INGREDIENT: return "http://hl7.org/fhir/resource-types"; 8231 case INSURANCEPLAN: return "http://hl7.org/fhir/resource-types"; 8232 case INVOICE: return "http://hl7.org/fhir/resource-types"; 8233 case LIBRARY: return "http://hl7.org/fhir/resource-types"; 8234 case LINKAGE: return "http://hl7.org/fhir/resource-types"; 8235 case LIST: return "http://hl7.org/fhir/resource-types"; 8236 case LOCATION: return "http://hl7.org/fhir/resource-types"; 8237 case MANUFACTUREDITEMDEFINITION: return "http://hl7.org/fhir/resource-types"; 8238 case MEASURE: return "http://hl7.org/fhir/resource-types"; 8239 case MEASUREREPORT: return "http://hl7.org/fhir/resource-types"; 8240 case MEDICATION: return "http://hl7.org/fhir/resource-types"; 8241 case MEDICATIONADMINISTRATION: return "http://hl7.org/fhir/resource-types"; 8242 case MEDICATIONDISPENSE: return "http://hl7.org/fhir/resource-types"; 8243 case MEDICATIONKNOWLEDGE: return "http://hl7.org/fhir/resource-types"; 8244 case MEDICATIONREQUEST: return "http://hl7.org/fhir/resource-types"; 8245 case MEDICATIONUSAGE: return "http://hl7.org/fhir/resource-types"; 8246 case MEDICINALPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types"; 8247 case MESSAGEDEFINITION: return "http://hl7.org/fhir/resource-types"; 8248 case MESSAGEHEADER: return "http://hl7.org/fhir/resource-types"; 8249 case MOLECULARSEQUENCE: return "http://hl7.org/fhir/resource-types"; 8250 case NAMINGSYSTEM: return "http://hl7.org/fhir/resource-types"; 8251 case NUTRITIONINTAKE: return "http://hl7.org/fhir/resource-types"; 8252 case NUTRITIONORDER: return "http://hl7.org/fhir/resource-types"; 8253 case OBSERVATION: return "http://hl7.org/fhir/resource-types"; 8254 case OBSERVATIONDEFINITION: return "http://hl7.org/fhir/resource-types"; 8255 case OPERATIONDEFINITION: return "http://hl7.org/fhir/resource-types"; 8256 case OPERATIONOUTCOME: return "http://hl7.org/fhir/resource-types"; 8257 case ORGANIZATION: return "http://hl7.org/fhir/resource-types"; 8258 case ORGANIZATIONAFFILIATION: return "http://hl7.org/fhir/resource-types"; 8259 case PACKAGEDPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types"; 8260 case PARAMETERS: return "http://hl7.org/fhir/resource-types"; 8261 case PATIENT: return "http://hl7.org/fhir/resource-types"; 8262 case PAYMENTNOTICE: return "http://hl7.org/fhir/resource-types"; 8263 case PAYMENTRECONCILIATION: return "http://hl7.org/fhir/resource-types"; 8264 case PERSON: return "http://hl7.org/fhir/resource-types"; 8265 case PLANDEFINITION: return "http://hl7.org/fhir/resource-types"; 8266 case PRACTITIONER: return "http://hl7.org/fhir/resource-types"; 8267 case PRACTITIONERROLE: return "http://hl7.org/fhir/resource-types"; 8268 case PROCEDURE: return "http://hl7.org/fhir/resource-types"; 8269 case PROVENANCE: return "http://hl7.org/fhir/resource-types"; 8270 case QUESTIONNAIRE: return "http://hl7.org/fhir/resource-types"; 8271 case QUESTIONNAIRERESPONSE: return "http://hl7.org/fhir/resource-types"; 8272 case REGULATEDAUTHORIZATION: return "http://hl7.org/fhir/resource-types"; 8273 case RELATEDPERSON: return "http://hl7.org/fhir/resource-types"; 8274 case REQUESTGROUP: return "http://hl7.org/fhir/resource-types"; 8275 case RESEARCHSTUDY: return "http://hl7.org/fhir/resource-types"; 8276 case RESEARCHSUBJECT: return "http://hl7.org/fhir/resource-types"; 8277 case RESOURCE: return "http://hl7.org/fhir/resource-types"; 8278 case RISKASSESSMENT: return "http://hl7.org/fhir/resource-types"; 8279 case SCHEDULE: return "http://hl7.org/fhir/resource-types"; 8280 case SEARCHPARAMETER: return "http://hl7.org/fhir/resource-types"; 8281 case SERVICEREQUEST: return "http://hl7.org/fhir/resource-types"; 8282 case SLOT: return "http://hl7.org/fhir/resource-types"; 8283 case SPECIMEN: return "http://hl7.org/fhir/resource-types"; 8284 case SPECIMENDEFINITION: return "http://hl7.org/fhir/resource-types"; 8285 case STRUCTUREDEFINITION: return "http://hl7.org/fhir/resource-types"; 8286 case STRUCTUREMAP: return "http://hl7.org/fhir/resource-types"; 8287 case SUBSCRIPTION: return "http://hl7.org/fhir/resource-types"; 8288 case SUBSTANCE: return "http://hl7.org/fhir/resource-types"; 8289 case SUBSTANCEDEFINITION: return "http://hl7.org/fhir/resource-types"; 8290 case SUBSTANCENUCLEICACID: return "http://hl7.org/fhir/resource-types"; 8291 case SUBSTANCEPOLYMER: return "http://hl7.org/fhir/resource-types"; 8292 case SUBSTANCEPROTEIN: return "http://hl7.org/fhir/resource-types"; 8293 case SUBSTANCEREFERENCEINFORMATION: return "http://hl7.org/fhir/resource-types"; 8294 case SUBSTANCESOURCEMATERIAL: return "http://hl7.org/fhir/resource-types"; 8295 case SUPPLYDELIVERY: return "http://hl7.org/fhir/resource-types"; 8296 case SUPPLYREQUEST: return "http://hl7.org/fhir/resource-types"; 8297 case TASK: return "http://hl7.org/fhir/resource-types"; 8298 case TERMINOLOGYCAPABILITIES: return "http://hl7.org/fhir/resource-types"; 8299 case TESTREPORT: return "http://hl7.org/fhir/resource-types"; 8300 case TESTSCRIPT: return "http://hl7.org/fhir/resource-types"; 8301 case TOPIC: return "http://hl7.org/fhir/resource-types"; 8302 case VALUESET: return "http://hl7.org/fhir/resource-types"; 8303 case VERIFICATIONRESULT: return "http://hl7.org/fhir/resource-types"; 8304 case VISIONPRESCRIPTION: return "http://hl7.org/fhir/resource-types"; 8305 default: return "?"; 8306 } 8307 } 8308 public String getDefinition() { 8309 switch (this) { 8310 case ADDRESS: return "An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world."; 8311 case AGE: return "A duration of time during which an organism (or a process) has existed."; 8312 case ANNOTATION: return "A text note which also contains information about who made the statement and when."; 8313 case ATTACHMENT: return "For referring to data content defined in other formats."; 8314 case BACKBONEELEMENT: return "Base definition for all elements that are defined inside a resource - but not those in a data type."; 8315 case CODEABLECONCEPT: return "A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text."; 8316 case CODING: return "A reference to a code defined by a terminology system."; 8317 case CONTACTDETAIL: return "Specifies contact information for a person or organization."; 8318 case CONTACTPOINT: return "Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc."; 8319 case CONTRIBUTOR: return "A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers."; 8320 case COUNT: return "A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies."; 8321 case DATAREQUIREMENT: return "Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data."; 8322 case DISTANCE: return "A length - a value with a unit that is a physical distance."; 8323 case DOSAGE: return "Indicates how the medication is/was taken or should be taken by the patient."; 8324 case DURATION: return "A length of time."; 8325 case ELEMENT: return "Base definition for all elements in a resource."; 8326 case ELEMENTDEFINITION: return "Captures constraints on each element within the resource, profile, or extension."; 8327 case EXPRESSION: return "A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used."; 8328 case EXTENSION: return "Optional Extension Element - found in all resources."; 8329 case HUMANNAME: return "A human's name with the ability to identify parts and usage."; 8330 case IDENTIFIER: return "An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."; 8331 case MARKETINGSTATUS: return "The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available."; 8332 case META: return "The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource."; 8333 case MONEY: return "An amount of economic utility in some recognized currency."; 8334 case MONEYQUANTITY: return ""; 8335 case NARRATIVE: return "A human-readable summary of the resource conveying the essential clinical and business information for the resource."; 8336 case ORDEREDDISTRIBUTION: return "An ordered list (distribution) of statistics."; 8337 case PARAMETERDEFINITION: return "The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse."; 8338 case PERIOD: return "A time period defined by a start and end date and optionally time."; 8339 case POPULATION: return "A populatioof people with some set of grouping criteria."; 8340 case PRODCHARACTERISTIC: return "The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available."; 8341 case PRODUCTSHELFLIFE: return "The shelf-life and storage information for a medicinal product item or container can be described using this class."; 8342 case QUANTITY: return "A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies."; 8343 case RANGE: return "A set of ordered Quantities defined by a low and high limit."; 8344 case RATIO: return "A relationship of two Quantity values - expressed as a numerator and a denominator."; 8345 case REFERENCE: return "A reference from one resource to another."; 8346 case RELATEDARTIFACT: return "Related artifacts such as additional documentation, justification, or bibliographic references."; 8347 case SAMPLEDDATA: return "A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data."; 8348 case SIGNATURE: return "A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities."; 8349 case SIMPLEQUANTITY: return ""; 8350 case STATISTIC: return "A fact or piece of data from a study of a large quantity of numerical data. A mathematical or quantified characteristic of a group of observations."; 8351 case SUBSTANCEAMOUNT: return "Chemical substances are a single substance type whose primary defining element is the molecular structure. Chemical substances shall be defined on the basis of their complete covalent molecular structure; the presence of a salt (counter-ion) and/or solvates (water, alcohols) is also captured. Purity, grade, physical form or particle size are not taken into account in the definition of a chemical substance or in the assignment of a Substance ID."; 8352 case TIMING: return "Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out."; 8353 case TRIGGERDEFINITION: return "A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element."; 8354 case USAGECONTEXT: return "Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care)."; 8355 case BASE64BINARY: return "A stream of bytes"; 8356 case BOOLEAN: return "Value of \"true\" or \"false\""; 8357 case CANONICAL: return "A URI that is a reference to a canonical URL on a FHIR resource"; 8358 case CODE: return "A string which has at least one character and no leading or trailing whitespace and where there is no whitespace other than single spaces in the contents"; 8359 case DATE: return "A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates."; 8360 case DATETIME: return "A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates."; 8361 case DECIMAL: return "A rational number with implicit precision"; 8362 case ID: return "Any combination of letters, numerals, \"-\" and \".\", with a length limit of 64 characters. (This might be an integer, an unprefixed OID, UUID or any other identifier pattern that meets these constraints.) Ids are case-insensitive."; 8363 case INSTANT: return "An instant in time - known at least to the second"; 8364 case INTEGER: return "A whole number"; 8365 case MARKDOWN: return "A string that may contain Github Flavored Markdown syntax for optional processing by a mark down presentation engine"; 8366 case OID: return "An OID represented as a URI"; 8367 case POSITIVEINT: return "An integer with a value that is positive (e.g. >0)"; 8368 case STRING: return "A sequence of Unicode characters"; 8369 case TIME: return "A time during the day, with no date specified"; 8370 case UNSIGNEDINT: return "An integer with a value that is not negative (e.g. >= 0)"; 8371 case URI: return "String of characters used to identify a name or a resource"; 8372 case URL: return "A URI that is a literal reference"; 8373 case UUID: return "A UUID, represented as a URI"; 8374 case XHTML: return "XHTML format, as defined by W3C, but restricted usage (mainly, no active content)"; 8375 case ACCOUNT: return "A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centers, etc."; 8376 case ACTIVITYDEFINITION: return "This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context."; 8377 case ADMINISTRABLEPRODUCTDEFINITION: return "A pharmaceutical product described in terms of its composition and dose form."; 8378 case ADVERSEEVENT: return "An event (i.e. any change to current patient status) that may be related to unintended effects on a patient or research subject. The unintended effects may require additional monitoring, treatment or hospitalization or may result in death. The AdverseEvent resource also extends to potential or avoided events that could have had such effects."; 8379 case ALLERGYINTOLERANCE: return "Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance."; 8380 case APPOINTMENT: return "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)."; 8381 case APPOINTMENTRESPONSE: return "A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection."; 8382 case AUDITEVENT: return "A record of an event relevant for purposes such as operations, privacy, security, maintenance, and performance analysis."; 8383 case BASIC: return "Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification."; 8384 case BINARY: return "A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc."; 8385 case BIOLOGICALLYDERIVEDPRODUCT: return "A material substance originating from a biological entity intended to be transplanted or infused\ninto another (possibly the same) biological entity."; 8386 case BODYSTRUCTURE: return "Record details about an anatomical structure. This resource may be used when a coded concept does not provide the necessary detail needed for the use case."; 8387 case BUNDLE: return "A container for a collection of resources."; 8388 case CAPABILITYSTATEMENT: return "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; 8389 case CAPABILITYSTATEMENT2: return "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; 8390 case CAREPLAN: return "Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions."; 8391 case CARETEAM: return "The Care Team includes all the people and organizations who plan to participate in the coordination and delivery of care."; 8392 case CATALOGENTRY: return "Catalog entries are wrappers that contextualize items included in a catalog."; 8393 case CHARGEITEM: return "The resource ChargeItem describes the provision of healthcare provider products for a certain patient, therefore referring not only to the product, but containing in addition details of the provision, like date, time, amounts and participating organizations and persons. Main Usage of the ChargeItem is to enable the billing process and internal cost allocation."; 8394 case CHARGEITEMDEFINITION: return "The ChargeItemDefinition resource provides the properties that apply to the (billing) codes necessary to calculate costs and prices. The properties may differ largely depending on type and realm, therefore this resource gives only a rough structure and requires profiling for each type of billing code system."; 8395 case CLAIM: return "A provider issued list of professional services and products which have been provided, or are to be provided, to a patient which is sent to an insurer for reimbursement."; 8396 case CLAIMRESPONSE: return "This resource provides the adjudication details from the processing of a Claim resource."; 8397 case CLINICALIMPRESSION: return "A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. This resource is called \"ClinicalImpression\" rather than \"ClinicalAssessment\" to avoid confusion with the recording of assessment tools such as Apgar score."; 8398 case CLINICALUSEISSUE: return "A single item of clinical particulars - an indication, contraindication, interaction etc. for a medicinal product."; 8399 case CODESYSTEM: return "The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content."; 8400 case COMMUNICATION: return "An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency communication to a provider/reporter in response to a case report for a reportable condition."; 8401 case COMMUNICATIONREQUEST: return "A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition."; 8402 case COMPARTMENTDEFINITION: return "A compartment definition that defines how resources are accessed on a server."; 8403 case COMPOSITION: return "A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.)."; 8404 case CONCEPTMAP: return "A statement of relationships from one set of concepts to one or more other concepts - either concepts in code systems, or data element/data element concepts, or classes in class models."; 8405 case CONDITION: return "A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern."; 8406 case CONDITIONDEFINITION: return "A definition of a condition and information relevant to managing it."; 8407 case CONSENT: return "A record of a healthcare consumer’s choices or choices made on their behalf by a third party, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time."; 8408 case CONTRACT: return "Legally enforceable, formally recorded unilateral or bilateral directive i.e., a policy or agreement."; 8409 case COVERAGE: return "Financial instrument which may be used to reimburse or pay for health care products and services. Includes both insurance and self-payment."; 8410 case COVERAGEELIGIBILITYREQUEST: return "The CoverageEligibilityRequest provides patient and insurance coverage information to an insurer for them to respond, in the form of an CoverageEligibilityResponse, with information regarding whether the stated coverage is valid and in-force and optionally to provide the insurance details of the policy."; 8411 case COVERAGEELIGIBILITYRESPONSE: return "This resource provides eligibility and plan details from the processing of an CoverageEligibilityRequest resource."; 8412 case DETECTEDISSUE: return "Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc."; 8413 case DEVICE: return "A type of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device."; 8414 case DEVICEDEFINITION: return "The characteristics, operational status and capabilities of a medical-related component of a medical device."; 8415 case DEVICEMETRIC: return "Describes a measurement, calculation or setting capability of a medical device."; 8416 case DEVICEREQUEST: return "Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker."; 8417 case DEVICEUSESTATEMENT: return "A record of a device being used by a patient where the record is the result of a report from the patient or another clinician."; 8418 case DIAGNOSTICREPORT: return "The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports."; 8419 case DOCUMENTMANIFEST: return "A collection of documents compiled for a purpose together with metadata that applies to the collection."; 8420 case DOCUMENTREFERENCE: return "A reference to a document of any kind for any purpose. While the term “document” implies a more narrow focus, for this resource this \"document\" encompasses *any* seralized object with a mime-type, so includes formal patient centric documents (CDA), clniical notes, scanned paper, non-patient specific documents like policy text, as well as a photo, video, or audio recording acquired or used in healthcare. The DocumentReference resource provides metadata about the document so that the document can be discovered and managed. The actual content may be inline base64 encoded data or provided by direct reference."; 8421 case DOMAINRESOURCE: return "A resource that includes narrative, extensions, and contained resources."; 8422 case ENCOUNTER: return "An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient."; 8423 case ENDPOINT: return "The technical details of an endpoint that can be used for electronic services, such as for web services providing XDS.b or a REST endpoint for another FHIR server. This may include any security context information."; 8424 case ENROLLMENTREQUEST: return "This resource provides the insurance enrollment details to the insurer regarding a specified coverage."; 8425 case ENROLLMENTRESPONSE: return "This resource provides enrollment and plan details from the processing of an EnrollmentRequest resource."; 8426 case EPISODEOFCARE: return "An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time."; 8427 case EVENTDEFINITION: return "The EventDefinition resource provides a reusable description of when a particular event can occur."; 8428 case EVIDENCE: return "This represents statistics, certainty, both the intended and actual population, and evidence variables."; 8429 case EVIDENCEVARIABLE: return "The EvidenceVariable resource describes a \"PICO\" element that knowledge (evidence, assertion, recommendation) is about."; 8430 case EXAMPLESCENARIO: return "Example of workflow instance."; 8431 case EXPLANATIONOFBENEFIT: return "This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided."; 8432 case FAMILYMEMBERHISTORY: return "Significant health conditions for a person related to the patient relevant in the context of care for the patient."; 8433 case FLAG: return "Prospective warnings of potential issues when providing care to the patient."; 8434 case GOAL: return "Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc."; 8435 case GRAPHDEFINITION: return "A formal computable definition of a graph of resources - that is, a coherent set of resources that form a graph by following references. The Graph Definition resource defines a set and makes rules about the set."; 8436 case GROUP: return "Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively, and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization."; 8437 case GUIDANCERESPONSE: return "A guidance response is the formal response to a guidance request, including any output parameters returned by the evaluation, as well as the description of any proposed actions to be taken."; 8438 case HEALTHCARESERVICE: return "The details of a healthcare service available at a location."; 8439 case IMAGINGSTUDY: return "Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities."; 8440 case IMMUNIZATION: return "Describes the event of a patient being administered a vaccine or a record of an immunization as reported by a patient, a clinician or another party."; 8441 case IMMUNIZATIONEVALUATION: return "Describes a comparison of an immunization event against published recommendations to determine if the administration is \"valid\" in relation to those recommendations."; 8442 case IMMUNIZATIONRECOMMENDATION: return "A patient's point-in-time set of recommendations (i.e. forecasting) according to a published schedule with optional supporting justification."; 8443 case IMPLEMENTATIONGUIDE: return "A set of rules of how a particular interoperability or standards problem is solved - typically through the use of FHIR resources. This resource is used to gather all the parts of an implementation guide into a logical whole and to publish a computable definition of all the parts."; 8444 case INGREDIENT: return "An ingredient of a manufactured item or pharmaceutical product."; 8445 case INSURANCEPLAN: return "Details of a Health Insurance product/plan provided by an organization."; 8446 case INVOICE: return "Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose."; 8447 case LIBRARY: return "The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets."; 8448 case LINKAGE: return "Identifies two or more records (resource instances) that refer to the same real-world \"occurrence\"."; 8449 case LIST: return "A list is a curated collection of resources."; 8450 case LOCATION: return "Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated."; 8451 case MANUFACTUREDITEMDEFINITION: return "The manufactured item as contained in the packaged medicinal product."; 8452 case MEASURE: return "The Measure resource provides the definition of a quality measure."; 8453 case MEASUREREPORT: return "The MeasureReport resource contains the results of the calculation of a measure; and optionally a reference to the resources involved in that calculation."; 8454 case MEDICATION: return "This resource is primarily used for the identification and definition of a medication for the purposes of prescribing, dispensing, and administering a medication as well as for making statements about medication use."; 8455 case MEDICATIONADMINISTRATION: return "Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner."; 8456 case MEDICATIONDISPENSE: return "Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order."; 8457 case MEDICATIONKNOWLEDGE: return "Information about a medication that is used to support knowledge."; 8458 case MEDICATIONREQUEST: return "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns."; 8459 case MEDICATIONUSAGE: return "A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information."; 8460 case MEDICINALPRODUCTDEFINITION: return "Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use)."; 8461 case MESSAGEDEFINITION: return "Defines the characteristics of a message that can be shared between systems, including the type of event that initiates the message, the content to be transmitted and what response(s), if any, are permitted."; 8462 case MESSAGEHEADER: return "The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle."; 8463 case MOLECULARSEQUENCE: return "Raw data describing a biological sequence."; 8464 case NAMINGSYSTEM: return "A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a \"System\" used within the Identifier and Coding data types."; 8465 case NUTRITIONINTAKE: return "A record of food or fluid that is being consumed by a patient. A NutritionIntake may indicate that the patient may be consuming the food or fluid now or has consumed the food or fluid in the past. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay or through an app that tracks food or fluids consumed. The consumption information may come from sources such as the patient's memory, from a nutrition label, or from a clinician documenting observed intake."; 8466 case NUTRITIONORDER: return "A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident."; 8467 case OBSERVATION: return "Measurements and simple assertions made about a patient, device or other subject."; 8468 case OBSERVATIONDEFINITION: return "Set of definitional characteristics for a kind of observation or measurement produced or consumed by an orderable health care service."; 8469 case OPERATIONDEFINITION: return "A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction)."; 8470 case OPERATIONOUTCOME: return "A collection of error, warning, or information messages that result from a system action."; 8471 case ORGANIZATION: return "A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, etc."; 8472 case ORGANIZATIONAFFILIATION: return "Defines an affiliation/assotiation/relationship between 2 distinct oganizations, that is not a part-of relationship/sub-division relationship."; 8473 case PACKAGEDPRODUCTDEFINITION: return "A medicinal product in a container or package."; 8474 case PARAMETERS: return "This resource is a non-persisted resource used to pass information into and back from an [operation](operations.html). It has no other use, and there is no RESTful endpoint associated with it."; 8475 case PATIENT: return "Demographics and other administrative information about an individual or animal receiving care or other health-related services."; 8476 case PAYMENTNOTICE: return "This resource provides the status of the payment for goods and services rendered, and the request and response resource references."; 8477 case PAYMENTRECONCILIATION: return "This resource provides the details including amount of a payment and allocates the payment items being paid."; 8478 case PERSON: return "Demographics and administrative information about a person independent of a specific health-related context."; 8479 case PLANDEFINITION: return "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols."; 8480 case PRACTITIONER: return "A person who is directly or indirectly involved in the provisioning of healthcare."; 8481 case PRACTITIONERROLE: return "A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time."; 8482 case PROCEDURE: return "An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy."; 8483 case PROVENANCE: return "Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies."; 8484 case QUESTIONNAIRE: return "A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection."; 8485 case QUESTIONNAIRERESPONSE: return "A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to."; 8486 case REGULATEDAUTHORIZATION: return "The regulatory authorization of a medicinal product."; 8487 case RELATEDPERSON: return "Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process."; 8488 case REQUESTGROUP: return "A group of related requests that can be used to capture intended activities that have inter-dependencies such as \"give this medication after that one\"."; 8489 case RESEARCHSTUDY: return "A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects."; 8490 case RESEARCHSUBJECT: return "A physical entity which is the primary unit of operational and/or administrative interest in a study."; 8491 case RESOURCE: return "This is the base resource type for everything."; 8492 case RISKASSESSMENT: return "An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome."; 8493 case SCHEDULE: return "A container for slots of time that may be available for booking appointments."; 8494 case SEARCHPARAMETER: return "A search parameter that defines a named search item that can be used to search/filter on a resource."; 8495 case SERVICEREQUEST: return "A record of a request for service such as diagnostic investigations, treatments, or operations to be performed."; 8496 case SLOT: return "A slot of time on a schedule that may be available for booking appointments."; 8497 case SPECIMEN: return "A sample to be used for analysis."; 8498 case SPECIMENDEFINITION: return "A kind of specimen with associated set of requirements."; 8499 case STRUCTUREDEFINITION: return "A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions and constraints on resources and data types."; 8500 case STRUCTUREMAP: return "A Map of relationships between 2 structures that can be used to transform data."; 8501 case SUBSCRIPTION: return "The subscription resource describes a particular client's request to be notified about a Topic."; 8502 case SUBSTANCE: return "A homogeneous material with a definite composition."; 8503 case SUBSTANCEDEFINITION: return "The detailed description of a substance, typically at a level beyond what is used for prescribing."; 8504 case SUBSTANCENUCLEICACID: return "Nucleic acids are defined by three distinct elements: the base, sugar and linkage. Individual substance/moiety IDs will be created for each of these elements. The nucleotide sequence will be always entered in the 5’-3’ direction."; 8505 case SUBSTANCEPOLYMER: return "Todo."; 8506 case SUBSTANCEPROTEIN: return "A SubstanceProtein is defined as a single unit of a linear amino acid sequence, or a combination of subunits that are either covalently linked or have a defined invariant stoichiometric relationship. This includes all synthetic, recombinant and purified SubstanceProteins of defined sequence, whether the use is therapeutic or prophylactic. This set of elements will be used to describe albumins, coagulation factors, cytokines, growth factors, peptide/SubstanceProtein hormones, enzymes, toxins, toxoids, recombinant vaccines, and immunomodulators."; 8507 case SUBSTANCEREFERENCEINFORMATION: return "Todo."; 8508 case SUBSTANCESOURCEMATERIAL: return "Source material shall capture information on the taxonomic and anatomical origins as well as the fraction of a material that can result in or can be modified to form a substance. This set of data elements shall be used to define polymer substances isolated from biological matrices. Taxonomic and anatomical origins shall be described using a controlled vocabulary as required. This information is captured for naturally derived polymers ( . starch) and structurally diverse substances. For Organisms belonging to the Kingdom Plantae the Substance level defines the fresh material of a single species or infraspecies, the Herbal Drug and the Herbal preparation. For Herbal preparations, the fraction information will be captured at the Substance information level and additional information for herbal extracts will be captured at the Specified Substance Group 1 information level. See for further explanation the Substance Class: Structurally Diverse and the herbal annex."; 8509 case SUPPLYDELIVERY: return "Record of delivery of what is supplied."; 8510 case SUPPLYREQUEST: return "A record of a request for a medication, substance or device used in the healthcare setting."; 8511 case TASK: return "A task to be performed."; 8512 case TERMINOLOGYCAPABILITIES: return "A TerminologyCapabilities resource documents a set of capabilities (behaviors) of a FHIR Terminology Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; 8513 case TESTREPORT: return "A summary of information based on the results of executing a TestScript."; 8514 case TESTSCRIPT: return "A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification."; 8515 case TOPIC: return "Describes a stream of resource state changes identified by trigger criteria and annotated with labels useful to filter projections from this topic."; 8516 case VALUESET: return "A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html)."; 8517 case VERIFICATIONRESULT: return "Describes validation requirements, source(s), status and dates for one or more elements."; 8518 case VISIONPRESCRIPTION: return "An authorization for the provision of glasses and/or contact lenses to a patient."; 8519 default: return "?"; 8520 } 8521 } 8522 public String getDisplay() { 8523 switch (this) { 8524 case ADDRESS: return "Address"; 8525 case AGE: return "Age"; 8526 case ANNOTATION: return "Annotation"; 8527 case ATTACHMENT: return "Attachment"; 8528 case BACKBONEELEMENT: return "BackboneElement"; 8529 case CODEABLECONCEPT: return "CodeableConcept"; 8530 case CODING: return "Coding"; 8531 case CONTACTDETAIL: return "ContactDetail"; 8532 case CONTACTPOINT: return "ContactPoint"; 8533 case CONTRIBUTOR: return "Contributor"; 8534 case COUNT: return "Count"; 8535 case DATAREQUIREMENT: return "DataRequirement"; 8536 case DISTANCE: return "Distance"; 8537 case DOSAGE: return "Dosage"; 8538 case DURATION: return "Duration"; 8539 case ELEMENT: return "Element"; 8540 case ELEMENTDEFINITION: return "ElementDefinition"; 8541 case EXPRESSION: return "Expression"; 8542 case EXTENSION: return "Extension"; 8543 case HUMANNAME: return "HumanName"; 8544 case IDENTIFIER: return "Identifier"; 8545 case MARKETINGSTATUS: return "MarketingStatus"; 8546 case META: return "Meta"; 8547 case MONEY: return "Money"; 8548 case MONEYQUANTITY: return "MoneyQuantity"; 8549 case NARRATIVE: return "Narrative"; 8550 case ORDEREDDISTRIBUTION: return "OrderedDistribution"; 8551 case PARAMETERDEFINITION: return "ParameterDefinition"; 8552 case PERIOD: return "Period"; 8553 case POPULATION: return "Population"; 8554 case PRODCHARACTERISTIC: return "ProdCharacteristic"; 8555 case PRODUCTSHELFLIFE: return "ProductShelfLife"; 8556 case QUANTITY: return "Quantity"; 8557 case RANGE: return "Range"; 8558 case RATIO: return "Ratio"; 8559 case REFERENCE: return "Reference"; 8560 case RELATEDARTIFACT: return "RelatedArtifact"; 8561 case SAMPLEDDATA: return "SampledData"; 8562 case SIGNATURE: return "Signature"; 8563 case SIMPLEQUANTITY: return "SimpleQuantity"; 8564 case STATISTIC: return "Statistic"; 8565 case SUBSTANCEAMOUNT: return "SubstanceAmount"; 8566 case TIMING: return "Timing"; 8567 case TRIGGERDEFINITION: return "TriggerDefinition"; 8568 case USAGECONTEXT: return "UsageContext"; 8569 case BASE64BINARY: return "base64Binary"; 8570 case BOOLEAN: return "boolean"; 8571 case CANONICAL: return "canonical"; 8572 case CODE: return "code"; 8573 case DATE: return "date"; 8574 case DATETIME: return "dateTime"; 8575 case DECIMAL: return "decimal"; 8576 case ID: return "id"; 8577 case INSTANT: return "instant"; 8578 case INTEGER: return "integer"; 8579 case MARKDOWN: return "markdown"; 8580 case OID: return "oid"; 8581 case POSITIVEINT: return "positiveInt"; 8582 case STRING: return "string"; 8583 case TIME: return "time"; 8584 case UNSIGNEDINT: return "unsignedInt"; 8585 case URI: return "uri"; 8586 case URL: return "url"; 8587 case UUID: return "uuid"; 8588 case XHTML: return "XHTML"; 8589 case ACCOUNT: return "Account"; 8590 case ACTIVITYDEFINITION: return "ActivityDefinition"; 8591 case ADMINISTRABLEPRODUCTDEFINITION: return "AdministrableProductDefinition"; 8592 case ADVERSEEVENT: return "AdverseEvent"; 8593 case ALLERGYINTOLERANCE: return "AllergyIntolerance"; 8594 case APPOINTMENT: return "Appointment"; 8595 case APPOINTMENTRESPONSE: return "AppointmentResponse"; 8596 case AUDITEVENT: return "AuditEvent"; 8597 case BASIC: return "Basic"; 8598 case BINARY: return "Binary"; 8599 case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct"; 8600 case BODYSTRUCTURE: return "BodyStructure"; 8601 case BUNDLE: return "Bundle"; 8602 case CAPABILITYSTATEMENT: return "CapabilityStatement"; 8603 case CAPABILITYSTATEMENT2: return "CapabilityStatement2"; 8604 case CAREPLAN: return "CarePlan"; 8605 case CARETEAM: return "CareTeam"; 8606 case CATALOGENTRY: return "CatalogEntry"; 8607 case CHARGEITEM: return "ChargeItem"; 8608 case CHARGEITEMDEFINITION: return "ChargeItemDefinition"; 8609 case CLAIM: return "Claim"; 8610 case CLAIMRESPONSE: return "ClaimResponse"; 8611 case CLINICALIMPRESSION: return "ClinicalImpression"; 8612 case CLINICALUSEISSUE: return "ClinicalUseIssue"; 8613 case CODESYSTEM: return "CodeSystem"; 8614 case COMMUNICATION: return "Communication"; 8615 case COMMUNICATIONREQUEST: return "CommunicationRequest"; 8616 case COMPARTMENTDEFINITION: return "CompartmentDefinition"; 8617 case COMPOSITION: return "Composition"; 8618 case CONCEPTMAP: return "ConceptMap"; 8619 case CONDITION: return "Condition"; 8620 case CONDITIONDEFINITION: return "ConditionDefinition"; 8621 case CONSENT: return "Consent"; 8622 case CONTRACT: return "Contract"; 8623 case COVERAGE: return "Coverage"; 8624 case COVERAGEELIGIBILITYREQUEST: return "CoverageEligibilityRequest"; 8625 case COVERAGEELIGIBILITYRESPONSE: return "CoverageEligibilityResponse"; 8626 case DETECTEDISSUE: return "DetectedIssue"; 8627 case DEVICE: return "Device"; 8628 case DEVICEDEFINITION: return "DeviceDefinition"; 8629 case DEVICEMETRIC: return "DeviceMetric"; 8630 case DEVICEREQUEST: return "DeviceRequest"; 8631 case DEVICEUSESTATEMENT: return "DeviceUseStatement"; 8632 case DIAGNOSTICREPORT: return "DiagnosticReport"; 8633 case DOCUMENTMANIFEST: return "DocumentManifest"; 8634 case DOCUMENTREFERENCE: return "DocumentReference"; 8635 case DOMAINRESOURCE: return "DomainResource"; 8636 case ENCOUNTER: return "Encounter"; 8637 case ENDPOINT: return "Endpoint"; 8638 case ENROLLMENTREQUEST: return "EnrollmentRequest"; 8639 case ENROLLMENTRESPONSE: return "EnrollmentResponse"; 8640 case EPISODEOFCARE: return "EpisodeOfCare"; 8641 case EVENTDEFINITION: return "EventDefinition"; 8642 case EVIDENCE: return "Evidence"; 8643 case EVIDENCEVARIABLE: return "EvidenceVariable"; 8644 case EXAMPLESCENARIO: return "ExampleScenario"; 8645 case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit"; 8646 case FAMILYMEMBERHISTORY: return "FamilyMemberHistory"; 8647 case FLAG: return "Flag"; 8648 case GOAL: return "Goal"; 8649 case GRAPHDEFINITION: return "GraphDefinition"; 8650 case GROUP: return "Group"; 8651 case GUIDANCERESPONSE: return "GuidanceResponse"; 8652 case HEALTHCARESERVICE: return "HealthcareService"; 8653 case IMAGINGSTUDY: return "ImagingStudy"; 8654 case IMMUNIZATION: return "Immunization"; 8655 case IMMUNIZATIONEVALUATION: return "ImmunizationEvaluation"; 8656 case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation"; 8657 case IMPLEMENTATIONGUIDE: return "ImplementationGuide"; 8658 case INGREDIENT: return "Ingredient"; 8659 case INSURANCEPLAN: return "InsurancePlan"; 8660 case INVOICE: return "Invoice"; 8661 case LIBRARY: return "Library"; 8662 case LINKAGE: return "Linkage"; 8663 case LIST: return "List"; 8664 case LOCATION: return "Location"; 8665 case MANUFACTUREDITEMDEFINITION: return "ManufacturedItemDefinition"; 8666 case MEASURE: return "Measure"; 8667 case MEASUREREPORT: return "MeasureReport"; 8668 case MEDICATION: return "Medication"; 8669 case MEDICATIONADMINISTRATION: return "MedicationAdministration"; 8670 case MEDICATIONDISPENSE: return "MedicationDispense"; 8671 case MEDICATIONKNOWLEDGE: return "MedicationKnowledge"; 8672 case MEDICATIONREQUEST: return "MedicationRequest"; 8673 case MEDICATIONUSAGE: return "MedicationUsage"; 8674 case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition"; 8675 case MESSAGEDEFINITION: return "MessageDefinition"; 8676 case MESSAGEHEADER: return "MessageHeader"; 8677 case MOLECULARSEQUENCE: return "MolecularSequence"; 8678 case NAMINGSYSTEM: return "NamingSystem"; 8679 case NUTRITIONINTAKE: return "NutritionIntake"; 8680 case NUTRITIONORDER: return "NutritionOrder"; 8681 case OBSERVATION: return "Observation"; 8682 case OBSERVATIONDEFINITION: return "ObservationDefinition"; 8683 case OPERATIONDEFINITION: return "OperationDefinition"; 8684 case OPERATIONOUTCOME: return "OperationOutcome"; 8685 case ORGANIZATION: return "Organization"; 8686 case ORGANIZATIONAFFILIATION: return "OrganizationAffiliation"; 8687 case PACKAGEDPRODUCTDEFINITION: return "PackagedProductDefinition"; 8688 case PARAMETERS: return "Parameters"; 8689 case PATIENT: return "Patient"; 8690 case PAYMENTNOTICE: return "PaymentNotice"; 8691 case PAYMENTRECONCILIATION: return "PaymentReconciliation"; 8692 case PERSON: return "Person"; 8693 case PLANDEFINITION: return "PlanDefinition"; 8694 case PRACTITIONER: return "Practitioner"; 8695 case PRACTITIONERROLE: return "PractitionerRole"; 8696 case PROCEDURE: return "Procedure"; 8697 case PROVENANCE: return "Provenance"; 8698 case QUESTIONNAIRE: return "Questionnaire"; 8699 case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse"; 8700 case REGULATEDAUTHORIZATION: return "RegulatedAuthorization"; 8701 case RELATEDPERSON: return "RelatedPerson"; 8702 case REQUESTGROUP: return "RequestGroup"; 8703 case RESEARCHSTUDY: return "ResearchStudy"; 8704 case RESEARCHSUBJECT: return "ResearchSubject"; 8705 case RESOURCE: return "Resource"; 8706 case RISKASSESSMENT: return "RiskAssessment"; 8707 case SCHEDULE: return "Schedule"; 8708 case SEARCHPARAMETER: return "SearchParameter"; 8709 case SERVICEREQUEST: return "ServiceRequest"; 8710 case SLOT: return "Slot"; 8711 case SPECIMEN: return "Specimen"; 8712 case SPECIMENDEFINITION: return "SpecimenDefinition"; 8713 case STRUCTUREDEFINITION: return "StructureDefinition"; 8714 case STRUCTUREMAP: return "StructureMap"; 8715 case SUBSCRIPTION: return "Subscription"; 8716 case SUBSTANCE: return "Substance"; 8717 case SUBSTANCEDEFINITION: return "SubstanceDefinition"; 8718 case SUBSTANCENUCLEICACID: return "SubstanceNucleicAcid"; 8719 case SUBSTANCEPOLYMER: return "SubstancePolymer"; 8720 case SUBSTANCEPROTEIN: return "SubstanceProtein"; 8721 case SUBSTANCEREFERENCEINFORMATION: return "SubstanceReferenceInformation"; 8722 case SUBSTANCESOURCEMATERIAL: return "SubstanceSourceMaterial"; 8723 case SUPPLYDELIVERY: return "SupplyDelivery"; 8724 case SUPPLYREQUEST: return "SupplyRequest"; 8725 case TASK: return "Task"; 8726 case TERMINOLOGYCAPABILITIES: return "TerminologyCapabilities"; 8727 case TESTREPORT: return "TestReport"; 8728 case TESTSCRIPT: return "TestScript"; 8729 case TOPIC: return "Topic"; 8730 case VALUESET: return "ValueSet"; 8731 case VERIFICATIONRESULT: return "VerificationResult"; 8732 case VISIONPRESCRIPTION: return "VisionPrescription"; 8733 default: return "?"; 8734 } 8735 } 8736 } 8737 8738 public static class FHIRDefinedTypeEnumFactory implements EnumFactory<FHIRDefinedType> { 8739 public FHIRDefinedType fromCode(String codeString) throws IllegalArgumentException { 8740 if (codeString == null || "".equals(codeString)) 8741 if (codeString == null || "".equals(codeString)) 8742 return null; 8743 if ("Address".equals(codeString)) 8744 return FHIRDefinedType.ADDRESS; 8745 if ("Age".equals(codeString)) 8746 return FHIRDefinedType.AGE; 8747 if ("Annotation".equals(codeString)) 8748 return FHIRDefinedType.ANNOTATION; 8749 if ("Attachment".equals(codeString)) 8750 return FHIRDefinedType.ATTACHMENT; 8751 if ("BackboneElement".equals(codeString)) 8752 return FHIRDefinedType.BACKBONEELEMENT; 8753 if ("CodeableConcept".equals(codeString)) 8754 return FHIRDefinedType.CODEABLECONCEPT; 8755 if ("Coding".equals(codeString)) 8756 return FHIRDefinedType.CODING; 8757 if ("ContactDetail".equals(codeString)) 8758 return FHIRDefinedType.CONTACTDETAIL; 8759 if ("ContactPoint".equals(codeString)) 8760 return FHIRDefinedType.CONTACTPOINT; 8761 if ("Contributor".equals(codeString)) 8762 return FHIRDefinedType.CONTRIBUTOR; 8763 if ("Count".equals(codeString)) 8764 return FHIRDefinedType.COUNT; 8765 if ("DataRequirement".equals(codeString)) 8766 return FHIRDefinedType.DATAREQUIREMENT; 8767 if ("Distance".equals(codeString)) 8768 return FHIRDefinedType.DISTANCE; 8769 if ("Dosage".equals(codeString)) 8770 return FHIRDefinedType.DOSAGE; 8771 if ("Duration".equals(codeString)) 8772 return FHIRDefinedType.DURATION; 8773 if ("Element".equals(codeString)) 8774 return FHIRDefinedType.ELEMENT; 8775 if ("ElementDefinition".equals(codeString)) 8776 return FHIRDefinedType.ELEMENTDEFINITION; 8777 if ("Expression".equals(codeString)) 8778 return FHIRDefinedType.EXPRESSION; 8779 if ("Extension".equals(codeString)) 8780 return FHIRDefinedType.EXTENSION; 8781 if ("HumanName".equals(codeString)) 8782 return FHIRDefinedType.HUMANNAME; 8783 if ("Identifier".equals(codeString)) 8784 return FHIRDefinedType.IDENTIFIER; 8785 if ("MarketingStatus".equals(codeString)) 8786 return FHIRDefinedType.MARKETINGSTATUS; 8787 if ("Meta".equals(codeString)) 8788 return FHIRDefinedType.META; 8789 if ("Money".equals(codeString)) 8790 return FHIRDefinedType.MONEY; 8791 if ("MoneyQuantity".equals(codeString)) 8792 return FHIRDefinedType.MONEYQUANTITY; 8793 if ("Narrative".equals(codeString)) 8794 return FHIRDefinedType.NARRATIVE; 8795 if ("OrderedDistribution".equals(codeString)) 8796 return FHIRDefinedType.ORDEREDDISTRIBUTION; 8797 if ("ParameterDefinition".equals(codeString)) 8798 return FHIRDefinedType.PARAMETERDEFINITION; 8799 if ("Period".equals(codeString)) 8800 return FHIRDefinedType.PERIOD; 8801 if ("Population".equals(codeString)) 8802 return FHIRDefinedType.POPULATION; 8803 if ("ProdCharacteristic".equals(codeString)) 8804 return FHIRDefinedType.PRODCHARACTERISTIC; 8805 if ("ProductShelfLife".equals(codeString)) 8806 return FHIRDefinedType.PRODUCTSHELFLIFE; 8807 if ("Quantity".equals(codeString)) 8808 return FHIRDefinedType.QUANTITY; 8809 if ("Range".equals(codeString)) 8810 return FHIRDefinedType.RANGE; 8811 if ("Ratio".equals(codeString)) 8812 return FHIRDefinedType.RATIO; 8813 if ("Reference".equals(codeString)) 8814 return FHIRDefinedType.REFERENCE; 8815 if ("RelatedArtifact".equals(codeString)) 8816 return FHIRDefinedType.RELATEDARTIFACT; 8817 if ("SampledData".equals(codeString)) 8818 return FHIRDefinedType.SAMPLEDDATA; 8819 if ("Signature".equals(codeString)) 8820 return FHIRDefinedType.SIGNATURE; 8821 if ("SimpleQuantity".equals(codeString)) 8822 return FHIRDefinedType.SIMPLEQUANTITY; 8823 if ("Statistic".equals(codeString)) 8824 return FHIRDefinedType.STATISTIC; 8825 if ("SubstanceAmount".equals(codeString)) 8826 return FHIRDefinedType.SUBSTANCEAMOUNT; 8827 if ("Timing".equals(codeString)) 8828 return FHIRDefinedType.TIMING; 8829 if ("TriggerDefinition".equals(codeString)) 8830 return FHIRDefinedType.TRIGGERDEFINITION; 8831 if ("UsageContext".equals(codeString)) 8832 return FHIRDefinedType.USAGECONTEXT; 8833 if ("base64Binary".equals(codeString)) 8834 return FHIRDefinedType.BASE64BINARY; 8835 if ("boolean".equals(codeString)) 8836 return FHIRDefinedType.BOOLEAN; 8837 if ("canonical".equals(codeString)) 8838 return FHIRDefinedType.CANONICAL; 8839 if ("code".equals(codeString)) 8840 return FHIRDefinedType.CODE; 8841 if ("date".equals(codeString)) 8842 return FHIRDefinedType.DATE; 8843 if ("dateTime".equals(codeString)) 8844 return FHIRDefinedType.DATETIME; 8845 if ("decimal".equals(codeString)) 8846 return FHIRDefinedType.DECIMAL; 8847 if ("id".equals(codeString)) 8848 return FHIRDefinedType.ID; 8849 if ("instant".equals(codeString)) 8850 return FHIRDefinedType.INSTANT; 8851 if ("integer".equals(codeString)) 8852 return FHIRDefinedType.INTEGER; 8853 if ("markdown".equals(codeString)) 8854 return FHIRDefinedType.MARKDOWN; 8855 if ("oid".equals(codeString)) 8856 return FHIRDefinedType.OID; 8857 if ("positiveInt".equals(codeString)) 8858 return FHIRDefinedType.POSITIVEINT; 8859 if ("string".equals(codeString)) 8860 return FHIRDefinedType.STRING; 8861 if ("time".equals(codeString)) 8862 return FHIRDefinedType.TIME; 8863 if ("unsignedInt".equals(codeString)) 8864 return FHIRDefinedType.UNSIGNEDINT; 8865 if ("uri".equals(codeString)) 8866 return FHIRDefinedType.URI; 8867 if ("url".equals(codeString)) 8868 return FHIRDefinedType.URL; 8869 if ("uuid".equals(codeString)) 8870 return FHIRDefinedType.UUID; 8871 if ("xhtml".equals(codeString)) 8872 return FHIRDefinedType.XHTML; 8873 if ("Account".equals(codeString)) 8874 return FHIRDefinedType.ACCOUNT; 8875 if ("ActivityDefinition".equals(codeString)) 8876 return FHIRDefinedType.ACTIVITYDEFINITION; 8877 if ("AdministrableProductDefinition".equals(codeString)) 8878 return FHIRDefinedType.ADMINISTRABLEPRODUCTDEFINITION; 8879 if ("AdverseEvent".equals(codeString)) 8880 return FHIRDefinedType.ADVERSEEVENT; 8881 if ("AllergyIntolerance".equals(codeString)) 8882 return FHIRDefinedType.ALLERGYINTOLERANCE; 8883 if ("Appointment".equals(codeString)) 8884 return FHIRDefinedType.APPOINTMENT; 8885 if ("AppointmentResponse".equals(codeString)) 8886 return FHIRDefinedType.APPOINTMENTRESPONSE; 8887 if ("AuditEvent".equals(codeString)) 8888 return FHIRDefinedType.AUDITEVENT; 8889 if ("Basic".equals(codeString)) 8890 return FHIRDefinedType.BASIC; 8891 if ("Binary".equals(codeString)) 8892 return FHIRDefinedType.BINARY; 8893 if ("BiologicallyDerivedProduct".equals(codeString)) 8894 return FHIRDefinedType.BIOLOGICALLYDERIVEDPRODUCT; 8895 if ("BodyStructure".equals(codeString)) 8896 return FHIRDefinedType.BODYSTRUCTURE; 8897 if ("Bundle".equals(codeString)) 8898 return FHIRDefinedType.BUNDLE; 8899 if ("CapabilityStatement".equals(codeString)) 8900 return FHIRDefinedType.CAPABILITYSTATEMENT; 8901 if ("CapabilityStatement2".equals(codeString)) 8902 return FHIRDefinedType.CAPABILITYSTATEMENT2; 8903 if ("CarePlan".equals(codeString)) 8904 return FHIRDefinedType.CAREPLAN; 8905 if ("CareTeam".equals(codeString)) 8906 return FHIRDefinedType.CARETEAM; 8907 if ("CatalogEntry".equals(codeString)) 8908 return FHIRDefinedType.CATALOGENTRY; 8909 if ("ChargeItem".equals(codeString)) 8910 return FHIRDefinedType.CHARGEITEM; 8911 if ("ChargeItemDefinition".equals(codeString)) 8912 return FHIRDefinedType.CHARGEITEMDEFINITION; 8913 if ("Claim".equals(codeString)) 8914 return FHIRDefinedType.CLAIM; 8915 if ("ClaimResponse".equals(codeString)) 8916 return FHIRDefinedType.CLAIMRESPONSE; 8917 if ("ClinicalImpression".equals(codeString)) 8918 return FHIRDefinedType.CLINICALIMPRESSION; 8919 if ("ClinicalUseIssue".equals(codeString)) 8920 return FHIRDefinedType.CLINICALUSEISSUE; 8921 if ("CodeSystem".equals(codeString)) 8922 return FHIRDefinedType.CODESYSTEM; 8923 if ("Communication".equals(codeString)) 8924 return FHIRDefinedType.COMMUNICATION; 8925 if ("CommunicationRequest".equals(codeString)) 8926 return FHIRDefinedType.COMMUNICATIONREQUEST; 8927 if ("CompartmentDefinition".equals(codeString)) 8928 return FHIRDefinedType.COMPARTMENTDEFINITION; 8929 if ("Composition".equals(codeString)) 8930 return FHIRDefinedType.COMPOSITION; 8931 if ("ConceptMap".equals(codeString)) 8932 return FHIRDefinedType.CONCEPTMAP; 8933 if ("Condition".equals(codeString)) 8934 return FHIRDefinedType.CONDITION; 8935 if ("ConditionDefinition".equals(codeString)) 8936 return FHIRDefinedType.CONDITIONDEFINITION; 8937 if ("Consent".equals(codeString)) 8938 return FHIRDefinedType.CONSENT; 8939 if ("Contract".equals(codeString)) 8940 return FHIRDefinedType.CONTRACT; 8941 if ("Coverage".equals(codeString)) 8942 return FHIRDefinedType.COVERAGE; 8943 if ("CoverageEligibilityRequest".equals(codeString)) 8944 return FHIRDefinedType.COVERAGEELIGIBILITYREQUEST; 8945 if ("CoverageEligibilityResponse".equals(codeString)) 8946 return FHIRDefinedType.COVERAGEELIGIBILITYRESPONSE; 8947 if ("DetectedIssue".equals(codeString)) 8948 return FHIRDefinedType.DETECTEDISSUE; 8949 if ("Device".equals(codeString)) 8950 return FHIRDefinedType.DEVICE; 8951 if ("DeviceDefinition".equals(codeString)) 8952 return FHIRDefinedType.DEVICEDEFINITION; 8953 if ("DeviceMetric".equals(codeString)) 8954 return FHIRDefinedType.DEVICEMETRIC; 8955 if ("DeviceRequest".equals(codeString)) 8956 return FHIRDefinedType.DEVICEREQUEST; 8957 if ("DeviceUseStatement".equals(codeString)) 8958 return FHIRDefinedType.DEVICEUSESTATEMENT; 8959 if ("DiagnosticReport".equals(codeString)) 8960 return FHIRDefinedType.DIAGNOSTICREPORT; 8961 if ("DocumentManifest".equals(codeString)) 8962 return FHIRDefinedType.DOCUMENTMANIFEST; 8963 if ("DocumentReference".equals(codeString)) 8964 return FHIRDefinedType.DOCUMENTREFERENCE; 8965 if ("DomainResource".equals(codeString)) 8966 return FHIRDefinedType.DOMAINRESOURCE; 8967 if ("Encounter".equals(codeString)) 8968 return FHIRDefinedType.ENCOUNTER; 8969 if ("Endpoint".equals(codeString)) 8970 return FHIRDefinedType.ENDPOINT; 8971 if ("EnrollmentRequest".equals(codeString)) 8972 return FHIRDefinedType.ENROLLMENTREQUEST; 8973 if ("EnrollmentResponse".equals(codeString)) 8974 return FHIRDefinedType.ENROLLMENTRESPONSE; 8975 if ("EpisodeOfCare".equals(codeString)) 8976 return FHIRDefinedType.EPISODEOFCARE; 8977 if ("EventDefinition".equals(codeString)) 8978 return FHIRDefinedType.EVENTDEFINITION; 8979 if ("Evidence".equals(codeString)) 8980 return FHIRDefinedType.EVIDENCE; 8981 if ("EvidenceVariable".equals(codeString)) 8982 return FHIRDefinedType.EVIDENCEVARIABLE; 8983 if ("ExampleScenario".equals(codeString)) 8984 return FHIRDefinedType.EXAMPLESCENARIO; 8985 if ("ExplanationOfBenefit".equals(codeString)) 8986 return FHIRDefinedType.EXPLANATIONOFBENEFIT; 8987 if ("FamilyMemberHistory".equals(codeString)) 8988 return FHIRDefinedType.FAMILYMEMBERHISTORY; 8989 if ("Flag".equals(codeString)) 8990 return FHIRDefinedType.FLAG; 8991 if ("Goal".equals(codeString)) 8992 return FHIRDefinedType.GOAL; 8993 if ("GraphDefinition".equals(codeString)) 8994 return FHIRDefinedType.GRAPHDEFINITION; 8995 if ("Group".equals(codeString)) 8996 return FHIRDefinedType.GROUP; 8997 if ("GuidanceResponse".equals(codeString)) 8998 return FHIRDefinedType.GUIDANCERESPONSE; 8999 if ("HealthcareService".equals(codeString)) 9000 return FHIRDefinedType.HEALTHCARESERVICE; 9001 if ("ImagingStudy".equals(codeString)) 9002 return FHIRDefinedType.IMAGINGSTUDY; 9003 if ("Immunization".equals(codeString)) 9004 return FHIRDefinedType.IMMUNIZATION; 9005 if ("ImmunizationEvaluation".equals(codeString)) 9006 return FHIRDefinedType.IMMUNIZATIONEVALUATION; 9007 if ("ImmunizationRecommendation".equals(codeString)) 9008 return FHIRDefinedType.IMMUNIZATIONRECOMMENDATION; 9009 if ("ImplementationGuide".equals(codeString)) 9010 return FHIRDefinedType.IMPLEMENTATIONGUIDE; 9011 if ("Ingredient".equals(codeString)) 9012 return FHIRDefinedType.INGREDIENT; 9013 if ("InsurancePlan".equals(codeString)) 9014 return FHIRDefinedType.INSURANCEPLAN; 9015 if ("Invoice".equals(codeString)) 9016 return FHIRDefinedType.INVOICE; 9017 if ("Library".equals(codeString)) 9018 return FHIRDefinedType.LIBRARY; 9019 if ("Linkage".equals(codeString)) 9020 return FHIRDefinedType.LINKAGE; 9021 if ("List".equals(codeString)) 9022 return FHIRDefinedType.LIST; 9023 if ("Location".equals(codeString)) 9024 return FHIRDefinedType.LOCATION; 9025 if ("ManufacturedItemDefinition".equals(codeString)) 9026 return FHIRDefinedType.MANUFACTUREDITEMDEFINITION; 9027 if ("Measure".equals(codeString)) 9028 return FHIRDefinedType.MEASURE; 9029 if ("MeasureReport".equals(codeString)) 9030 return FHIRDefinedType.MEASUREREPORT; 9031 if ("Medication".equals(codeString)) 9032 return FHIRDefinedType.MEDICATION; 9033 if ("MedicationAdministration".equals(codeString)) 9034 return FHIRDefinedType.MEDICATIONADMINISTRATION; 9035 if ("MedicationDispense".equals(codeString)) 9036 return FHIRDefinedType.MEDICATIONDISPENSE; 9037 if ("MedicationKnowledge".equals(codeString)) 9038 return FHIRDefinedType.MEDICATIONKNOWLEDGE; 9039 if ("MedicationRequest".equals(codeString)) 9040 return FHIRDefinedType.MEDICATIONREQUEST; 9041 if ("MedicationUsage".equals(codeString)) 9042 return FHIRDefinedType.MEDICATIONUSAGE; 9043 if ("MedicinalProductDefinition".equals(codeString)) 9044 return FHIRDefinedType.MEDICINALPRODUCTDEFINITION; 9045 if ("MessageDefinition".equals(codeString)) 9046 return FHIRDefinedType.MESSAGEDEFINITION; 9047 if ("MessageHeader".equals(codeString)) 9048 return FHIRDefinedType.MESSAGEHEADER; 9049 if ("MolecularSequence".equals(codeString)) 9050 return FHIRDefinedType.MOLECULARSEQUENCE; 9051 if ("NamingSystem".equals(codeString)) 9052 return FHIRDefinedType.NAMINGSYSTEM; 9053 if ("NutritionIntake".equals(codeString)) 9054 return FHIRDefinedType.NUTRITIONINTAKE; 9055 if ("NutritionOrder".equals(codeString)) 9056 return FHIRDefinedType.NUTRITIONORDER; 9057 if ("Observation".equals(codeString)) 9058 return FHIRDefinedType.OBSERVATION; 9059 if ("ObservationDefinition".equals(codeString)) 9060 return FHIRDefinedType.OBSERVATIONDEFINITION; 9061 if ("OperationDefinition".equals(codeString)) 9062 return FHIRDefinedType.OPERATIONDEFINITION; 9063 if ("OperationOutcome".equals(codeString)) 9064 return FHIRDefinedType.OPERATIONOUTCOME; 9065 if ("Organization".equals(codeString)) 9066 return FHIRDefinedType.ORGANIZATION; 9067 if ("OrganizationAffiliation".equals(codeString)) 9068 return FHIRDefinedType.ORGANIZATIONAFFILIATION; 9069 if ("PackagedProductDefinition".equals(codeString)) 9070 return FHIRDefinedType.PACKAGEDPRODUCTDEFINITION; 9071 if ("Parameters".equals(codeString)) 9072 return FHIRDefinedType.PARAMETERS; 9073 if ("Patient".equals(codeString)) 9074 return FHIRDefinedType.PATIENT; 9075 if ("PaymentNotice".equals(codeString)) 9076 return FHIRDefinedType.PAYMENTNOTICE; 9077 if ("PaymentReconciliation".equals(codeString)) 9078 return FHIRDefinedType.PAYMENTRECONCILIATION; 9079 if ("Person".equals(codeString)) 9080 return FHIRDefinedType.PERSON; 9081 if ("PlanDefinition".equals(codeString)) 9082 return FHIRDefinedType.PLANDEFINITION; 9083 if ("Practitioner".equals(codeString)) 9084 return FHIRDefinedType.PRACTITIONER; 9085 if ("PractitionerRole".equals(codeString)) 9086 return FHIRDefinedType.PRACTITIONERROLE; 9087 if ("Procedure".equals(codeString)) 9088 return FHIRDefinedType.PROCEDURE; 9089 if ("Provenance".equals(codeString)) 9090 return FHIRDefinedType.PROVENANCE; 9091 if ("Questionnaire".equals(codeString)) 9092 return FHIRDefinedType.QUESTIONNAIRE; 9093 if ("QuestionnaireResponse".equals(codeString)) 9094 return FHIRDefinedType.QUESTIONNAIRERESPONSE; 9095 if ("RegulatedAuthorization".equals(codeString)) 9096 return FHIRDefinedType.REGULATEDAUTHORIZATION; 9097 if ("RelatedPerson".equals(codeString)) 9098 return FHIRDefinedType.RELATEDPERSON; 9099 if ("RequestGroup".equals(codeString)) 9100 return FHIRDefinedType.REQUESTGROUP; 9101 if ("ResearchStudy".equals(codeString)) 9102 return FHIRDefinedType.RESEARCHSTUDY; 9103 if ("ResearchSubject".equals(codeString)) 9104 return FHIRDefinedType.RESEARCHSUBJECT; 9105 if ("Resource".equals(codeString)) 9106 return FHIRDefinedType.RESOURCE; 9107 if ("RiskAssessment".equals(codeString)) 9108 return FHIRDefinedType.RISKASSESSMENT; 9109 if ("Schedule".equals(codeString)) 9110 return FHIRDefinedType.SCHEDULE; 9111 if ("SearchParameter".equals(codeString)) 9112 return FHIRDefinedType.SEARCHPARAMETER; 9113 if ("ServiceRequest".equals(codeString)) 9114 return FHIRDefinedType.SERVICEREQUEST; 9115 if ("Slot".equals(codeString)) 9116 return FHIRDefinedType.SLOT; 9117 if ("Specimen".equals(codeString)) 9118 return FHIRDefinedType.SPECIMEN; 9119 if ("SpecimenDefinition".equals(codeString)) 9120 return FHIRDefinedType.SPECIMENDEFINITION; 9121 if ("StructureDefinition".equals(codeString)) 9122 return FHIRDefinedType.STRUCTUREDEFINITION; 9123 if ("StructureMap".equals(codeString)) 9124 return FHIRDefinedType.STRUCTUREMAP; 9125 if ("Subscription".equals(codeString)) 9126 return FHIRDefinedType.SUBSCRIPTION; 9127 if ("Substance".equals(codeString)) 9128 return FHIRDefinedType.SUBSTANCE; 9129 if ("SubstanceDefinition".equals(codeString)) 9130 return FHIRDefinedType.SUBSTANCEDEFINITION; 9131 if ("SubstanceNucleicAcid".equals(codeString)) 9132 return FHIRDefinedType.SUBSTANCENUCLEICACID; 9133 if ("SubstancePolymer".equals(codeString)) 9134 return FHIRDefinedType.SUBSTANCEPOLYMER; 9135 if ("SubstanceProtein".equals(codeString)) 9136 return FHIRDefinedType.SUBSTANCEPROTEIN; 9137 if ("SubstanceReferenceInformation".equals(codeString)) 9138 return FHIRDefinedType.SUBSTANCEREFERENCEINFORMATION; 9139 if ("SubstanceSourceMaterial".equals(codeString)) 9140 return FHIRDefinedType.SUBSTANCESOURCEMATERIAL; 9141 if ("SupplyDelivery".equals(codeString)) 9142 return FHIRDefinedType.SUPPLYDELIVERY; 9143 if ("SupplyRequest".equals(codeString)) 9144 return FHIRDefinedType.SUPPLYREQUEST; 9145 if ("Task".equals(codeString)) 9146 return FHIRDefinedType.TASK; 9147 if ("TerminologyCapabilities".equals(codeString)) 9148 return FHIRDefinedType.TERMINOLOGYCAPABILITIES; 9149 if ("TestReport".equals(codeString)) 9150 return FHIRDefinedType.TESTREPORT; 9151 if ("TestScript".equals(codeString)) 9152 return FHIRDefinedType.TESTSCRIPT; 9153 if ("Topic".equals(codeString)) 9154 return FHIRDefinedType.TOPIC; 9155 if ("ValueSet".equals(codeString)) 9156 return FHIRDefinedType.VALUESET; 9157 if ("VerificationResult".equals(codeString)) 9158 return FHIRDefinedType.VERIFICATIONRESULT; 9159 if ("VisionPrescription".equals(codeString)) 9160 return FHIRDefinedType.VISIONPRESCRIPTION; 9161 throw new IllegalArgumentException("Unknown FHIRDefinedType code '"+codeString+"'"); 9162 } 9163 public Enumeration<FHIRDefinedType> fromType(Base code) throws FHIRException { 9164 if (code == null) 9165 return null; 9166 if (code.isEmpty()) 9167 return new Enumeration<FHIRDefinedType>(this); 9168 String codeString = ((PrimitiveType) code).asStringValue(); 9169 if (codeString == null || "".equals(codeString)) 9170 return null; 9171 if ("Address".equals(codeString)) 9172 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ADDRESS); 9173 if ("Age".equals(codeString)) 9174 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.AGE); 9175 if ("Annotation".equals(codeString)) 9176 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ANNOTATION); 9177 if ("Attachment".equals(codeString)) 9178 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ATTACHMENT); 9179 if ("BackboneElement".equals(codeString)) 9180 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BACKBONEELEMENT); 9181 if ("CodeableConcept".equals(codeString)) 9182 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CODEABLECONCEPT); 9183 if ("Coding".equals(codeString)) 9184 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CODING); 9185 if ("ContactDetail".equals(codeString)) 9186 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONTACTDETAIL); 9187 if ("ContactPoint".equals(codeString)) 9188 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONTACTPOINT); 9189 if ("Contributor".equals(codeString)) 9190 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONTRIBUTOR); 9191 if ("Count".equals(codeString)) 9192 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COUNT); 9193 if ("DataRequirement".equals(codeString)) 9194 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DATAREQUIREMENT); 9195 if ("Distance".equals(codeString)) 9196 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DISTANCE); 9197 if ("Dosage".equals(codeString)) 9198 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DOSAGE); 9199 if ("Duration".equals(codeString)) 9200 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DURATION); 9201 if ("Element".equals(codeString)) 9202 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ELEMENT); 9203 if ("ElementDefinition".equals(codeString)) 9204 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ELEMENTDEFINITION); 9205 if ("Expression".equals(codeString)) 9206 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EXPRESSION); 9207 if ("Extension".equals(codeString)) 9208 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EXTENSION); 9209 if ("HumanName".equals(codeString)) 9210 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.HUMANNAME); 9211 if ("Identifier".equals(codeString)) 9212 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.IDENTIFIER); 9213 if ("MarketingStatus".equals(codeString)) 9214 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MARKETINGSTATUS); 9215 if ("Meta".equals(codeString)) 9216 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.META); 9217 if ("Money".equals(codeString)) 9218 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MONEY); 9219 if ("MoneyQuantity".equals(codeString)) 9220 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MONEYQUANTITY); 9221 if ("Narrative".equals(codeString)) 9222 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.NARRATIVE); 9223 if ("OrderedDistribution".equals(codeString)) 9224 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ORDEREDDISTRIBUTION); 9225 if ("ParameterDefinition".equals(codeString)) 9226 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PARAMETERDEFINITION); 9227 if ("Period".equals(codeString)) 9228 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PERIOD); 9229 if ("Population".equals(codeString)) 9230 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.POPULATION); 9231 if ("ProdCharacteristic".equals(codeString)) 9232 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PRODCHARACTERISTIC); 9233 if ("ProductShelfLife".equals(codeString)) 9234 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PRODUCTSHELFLIFE); 9235 if ("Quantity".equals(codeString)) 9236 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.QUANTITY); 9237 if ("Range".equals(codeString)) 9238 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RANGE); 9239 if ("Ratio".equals(codeString)) 9240 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RATIO); 9241 if ("Reference".equals(codeString)) 9242 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.REFERENCE); 9243 if ("RelatedArtifact".equals(codeString)) 9244 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RELATEDARTIFACT); 9245 if ("SampledData".equals(codeString)) 9246 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SAMPLEDDATA); 9247 if ("Signature".equals(codeString)) 9248 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SIGNATURE); 9249 if ("SimpleQuantity".equals(codeString)) 9250 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SIMPLEQUANTITY); 9251 if ("Statistic".equals(codeString)) 9252 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.STATISTIC); 9253 if ("SubstanceAmount".equals(codeString)) 9254 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCEAMOUNT); 9255 if ("Timing".equals(codeString)) 9256 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TIMING); 9257 if ("TriggerDefinition".equals(codeString)) 9258 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TRIGGERDEFINITION); 9259 if ("UsageContext".equals(codeString)) 9260 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.USAGECONTEXT); 9261 if ("base64Binary".equals(codeString)) 9262 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BASE64BINARY); 9263 if ("boolean".equals(codeString)) 9264 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BOOLEAN); 9265 if ("canonical".equals(codeString)) 9266 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CANONICAL); 9267 if ("code".equals(codeString)) 9268 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CODE); 9269 if ("date".equals(codeString)) 9270 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DATE); 9271 if ("dateTime".equals(codeString)) 9272 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DATETIME); 9273 if ("decimal".equals(codeString)) 9274 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DECIMAL); 9275 if ("id".equals(codeString)) 9276 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ID); 9277 if ("instant".equals(codeString)) 9278 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.INSTANT); 9279 if ("integer".equals(codeString)) 9280 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.INTEGER); 9281 if ("markdown".equals(codeString)) 9282 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MARKDOWN); 9283 if ("oid".equals(codeString)) 9284 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.OID); 9285 if ("positiveInt".equals(codeString)) 9286 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.POSITIVEINT); 9287 if ("string".equals(codeString)) 9288 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.STRING); 9289 if ("time".equals(codeString)) 9290 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TIME); 9291 if ("unsignedInt".equals(codeString)) 9292 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.UNSIGNEDINT); 9293 if ("uri".equals(codeString)) 9294 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.URI); 9295 if ("url".equals(codeString)) 9296 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.URL); 9297 if ("uuid".equals(codeString)) 9298 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.UUID); 9299 if ("xhtml".equals(codeString)) 9300 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.XHTML); 9301 if ("Account".equals(codeString)) 9302 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ACCOUNT); 9303 if ("ActivityDefinition".equals(codeString)) 9304 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ACTIVITYDEFINITION); 9305 if ("AdministrableProductDefinition".equals(codeString)) 9306 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ADMINISTRABLEPRODUCTDEFINITION); 9307 if ("AdverseEvent".equals(codeString)) 9308 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ADVERSEEVENT); 9309 if ("AllergyIntolerance".equals(codeString)) 9310 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ALLERGYINTOLERANCE); 9311 if ("Appointment".equals(codeString)) 9312 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.APPOINTMENT); 9313 if ("AppointmentResponse".equals(codeString)) 9314 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.APPOINTMENTRESPONSE); 9315 if ("AuditEvent".equals(codeString)) 9316 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.AUDITEVENT); 9317 if ("Basic".equals(codeString)) 9318 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BASIC); 9319 if ("Binary".equals(codeString)) 9320 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BINARY); 9321 if ("BiologicallyDerivedProduct".equals(codeString)) 9322 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BIOLOGICALLYDERIVEDPRODUCT); 9323 if ("BodyStructure".equals(codeString)) 9324 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BODYSTRUCTURE); 9325 if ("Bundle".equals(codeString)) 9326 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.BUNDLE); 9327 if ("CapabilityStatement".equals(codeString)) 9328 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CAPABILITYSTATEMENT); 9329 if ("CapabilityStatement2".equals(codeString)) 9330 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CAPABILITYSTATEMENT2); 9331 if ("CarePlan".equals(codeString)) 9332 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CAREPLAN); 9333 if ("CareTeam".equals(codeString)) 9334 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CARETEAM); 9335 if ("CatalogEntry".equals(codeString)) 9336 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CATALOGENTRY); 9337 if ("ChargeItem".equals(codeString)) 9338 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CHARGEITEM); 9339 if ("ChargeItemDefinition".equals(codeString)) 9340 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CHARGEITEMDEFINITION); 9341 if ("Claim".equals(codeString)) 9342 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CLAIM); 9343 if ("ClaimResponse".equals(codeString)) 9344 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CLAIMRESPONSE); 9345 if ("ClinicalImpression".equals(codeString)) 9346 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CLINICALIMPRESSION); 9347 if ("ClinicalUseIssue".equals(codeString)) 9348 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CLINICALUSEISSUE); 9349 if ("CodeSystem".equals(codeString)) 9350 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CODESYSTEM); 9351 if ("Communication".equals(codeString)) 9352 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COMMUNICATION); 9353 if ("CommunicationRequest".equals(codeString)) 9354 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COMMUNICATIONREQUEST); 9355 if ("CompartmentDefinition".equals(codeString)) 9356 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COMPARTMENTDEFINITION); 9357 if ("Composition".equals(codeString)) 9358 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COMPOSITION); 9359 if ("ConceptMap".equals(codeString)) 9360 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONCEPTMAP); 9361 if ("Condition".equals(codeString)) 9362 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONDITION); 9363 if ("ConditionDefinition".equals(codeString)) 9364 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONDITIONDEFINITION); 9365 if ("Consent".equals(codeString)) 9366 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONSENT); 9367 if ("Contract".equals(codeString)) 9368 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.CONTRACT); 9369 if ("Coverage".equals(codeString)) 9370 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COVERAGE); 9371 if ("CoverageEligibilityRequest".equals(codeString)) 9372 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COVERAGEELIGIBILITYREQUEST); 9373 if ("CoverageEligibilityResponse".equals(codeString)) 9374 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.COVERAGEELIGIBILITYRESPONSE); 9375 if ("DetectedIssue".equals(codeString)) 9376 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DETECTEDISSUE); 9377 if ("Device".equals(codeString)) 9378 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DEVICE); 9379 if ("DeviceDefinition".equals(codeString)) 9380 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DEVICEDEFINITION); 9381 if ("DeviceMetric".equals(codeString)) 9382 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DEVICEMETRIC); 9383 if ("DeviceRequest".equals(codeString)) 9384 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DEVICEREQUEST); 9385 if ("DeviceUseStatement".equals(codeString)) 9386 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DEVICEUSESTATEMENT); 9387 if ("DiagnosticReport".equals(codeString)) 9388 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DIAGNOSTICREPORT); 9389 if ("DocumentManifest".equals(codeString)) 9390 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DOCUMENTMANIFEST); 9391 if ("DocumentReference".equals(codeString)) 9392 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DOCUMENTREFERENCE); 9393 if ("DomainResource".equals(codeString)) 9394 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.DOMAINRESOURCE); 9395 if ("Encounter".equals(codeString)) 9396 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ENCOUNTER); 9397 if ("Endpoint".equals(codeString)) 9398 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ENDPOINT); 9399 if ("EnrollmentRequest".equals(codeString)) 9400 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ENROLLMENTREQUEST); 9401 if ("EnrollmentResponse".equals(codeString)) 9402 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ENROLLMENTRESPONSE); 9403 if ("EpisodeOfCare".equals(codeString)) 9404 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EPISODEOFCARE); 9405 if ("EventDefinition".equals(codeString)) 9406 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EVENTDEFINITION); 9407 if ("Evidence".equals(codeString)) 9408 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EVIDENCE); 9409 if ("EvidenceVariable".equals(codeString)) 9410 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EVIDENCEVARIABLE); 9411 if ("ExampleScenario".equals(codeString)) 9412 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EXAMPLESCENARIO); 9413 if ("ExplanationOfBenefit".equals(codeString)) 9414 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.EXPLANATIONOFBENEFIT); 9415 if ("FamilyMemberHistory".equals(codeString)) 9416 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.FAMILYMEMBERHISTORY); 9417 if ("Flag".equals(codeString)) 9418 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.FLAG); 9419 if ("Goal".equals(codeString)) 9420 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.GOAL); 9421 if ("GraphDefinition".equals(codeString)) 9422 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.GRAPHDEFINITION); 9423 if ("Group".equals(codeString)) 9424 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.GROUP); 9425 if ("GuidanceResponse".equals(codeString)) 9426 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.GUIDANCERESPONSE); 9427 if ("HealthcareService".equals(codeString)) 9428 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.HEALTHCARESERVICE); 9429 if ("ImagingStudy".equals(codeString)) 9430 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.IMAGINGSTUDY); 9431 if ("Immunization".equals(codeString)) 9432 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.IMMUNIZATION); 9433 if ("ImmunizationEvaluation".equals(codeString)) 9434 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.IMMUNIZATIONEVALUATION); 9435 if ("ImmunizationRecommendation".equals(codeString)) 9436 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.IMMUNIZATIONRECOMMENDATION); 9437 if ("ImplementationGuide".equals(codeString)) 9438 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.IMPLEMENTATIONGUIDE); 9439 if ("Ingredient".equals(codeString)) 9440 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.INGREDIENT); 9441 if ("InsurancePlan".equals(codeString)) 9442 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.INSURANCEPLAN); 9443 if ("Invoice".equals(codeString)) 9444 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.INVOICE); 9445 if ("Library".equals(codeString)) 9446 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.LIBRARY); 9447 if ("Linkage".equals(codeString)) 9448 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.LINKAGE); 9449 if ("List".equals(codeString)) 9450 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.LIST); 9451 if ("Location".equals(codeString)) 9452 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.LOCATION); 9453 if ("ManufacturedItemDefinition".equals(codeString)) 9454 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MANUFACTUREDITEMDEFINITION); 9455 if ("Measure".equals(codeString)) 9456 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEASURE); 9457 if ("MeasureReport".equals(codeString)) 9458 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEASUREREPORT); 9459 if ("Medication".equals(codeString)) 9460 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEDICATION); 9461 if ("MedicationAdministration".equals(codeString)) 9462 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEDICATIONADMINISTRATION); 9463 if ("MedicationDispense".equals(codeString)) 9464 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEDICATIONDISPENSE); 9465 if ("MedicationKnowledge".equals(codeString)) 9466 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEDICATIONKNOWLEDGE); 9467 if ("MedicationRequest".equals(codeString)) 9468 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEDICATIONREQUEST); 9469 if ("MedicationUsage".equals(codeString)) 9470 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEDICATIONUSAGE); 9471 if ("MedicinalProductDefinition".equals(codeString)) 9472 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MEDICINALPRODUCTDEFINITION); 9473 if ("MessageDefinition".equals(codeString)) 9474 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MESSAGEDEFINITION); 9475 if ("MessageHeader".equals(codeString)) 9476 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MESSAGEHEADER); 9477 if ("MolecularSequence".equals(codeString)) 9478 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.MOLECULARSEQUENCE); 9479 if ("NamingSystem".equals(codeString)) 9480 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.NAMINGSYSTEM); 9481 if ("NutritionIntake".equals(codeString)) 9482 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.NUTRITIONINTAKE); 9483 if ("NutritionOrder".equals(codeString)) 9484 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.NUTRITIONORDER); 9485 if ("Observation".equals(codeString)) 9486 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.OBSERVATION); 9487 if ("ObservationDefinition".equals(codeString)) 9488 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.OBSERVATIONDEFINITION); 9489 if ("OperationDefinition".equals(codeString)) 9490 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.OPERATIONDEFINITION); 9491 if ("OperationOutcome".equals(codeString)) 9492 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.OPERATIONOUTCOME); 9493 if ("Organization".equals(codeString)) 9494 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ORGANIZATION); 9495 if ("OrganizationAffiliation".equals(codeString)) 9496 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.ORGANIZATIONAFFILIATION); 9497 if ("PackagedProductDefinition".equals(codeString)) 9498 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PACKAGEDPRODUCTDEFINITION); 9499 if ("Parameters".equals(codeString)) 9500 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PARAMETERS); 9501 if ("Patient".equals(codeString)) 9502 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PATIENT); 9503 if ("PaymentNotice".equals(codeString)) 9504 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PAYMENTNOTICE); 9505 if ("PaymentReconciliation".equals(codeString)) 9506 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PAYMENTRECONCILIATION); 9507 if ("Person".equals(codeString)) 9508 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PERSON); 9509 if ("PlanDefinition".equals(codeString)) 9510 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PLANDEFINITION); 9511 if ("Practitioner".equals(codeString)) 9512 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PRACTITIONER); 9513 if ("PractitionerRole".equals(codeString)) 9514 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PRACTITIONERROLE); 9515 if ("Procedure".equals(codeString)) 9516 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PROCEDURE); 9517 if ("Provenance".equals(codeString)) 9518 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.PROVENANCE); 9519 if ("Questionnaire".equals(codeString)) 9520 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.QUESTIONNAIRE); 9521 if ("QuestionnaireResponse".equals(codeString)) 9522 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.QUESTIONNAIRERESPONSE); 9523 if ("RegulatedAuthorization".equals(codeString)) 9524 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.REGULATEDAUTHORIZATION); 9525 if ("RelatedPerson".equals(codeString)) 9526 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RELATEDPERSON); 9527 if ("RequestGroup".equals(codeString)) 9528 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.REQUESTGROUP); 9529 if ("ResearchStudy".equals(codeString)) 9530 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RESEARCHSTUDY); 9531 if ("ResearchSubject".equals(codeString)) 9532 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RESEARCHSUBJECT); 9533 if ("Resource".equals(codeString)) 9534 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RESOURCE); 9535 if ("RiskAssessment".equals(codeString)) 9536 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.RISKASSESSMENT); 9537 if ("Schedule".equals(codeString)) 9538 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SCHEDULE); 9539 if ("SearchParameter".equals(codeString)) 9540 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SEARCHPARAMETER); 9541 if ("ServiceRequest".equals(codeString)) 9542 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SERVICEREQUEST); 9543 if ("Slot".equals(codeString)) 9544 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SLOT); 9545 if ("Specimen".equals(codeString)) 9546 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SPECIMEN); 9547 if ("SpecimenDefinition".equals(codeString)) 9548 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SPECIMENDEFINITION); 9549 if ("StructureDefinition".equals(codeString)) 9550 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.STRUCTUREDEFINITION); 9551 if ("StructureMap".equals(codeString)) 9552 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.STRUCTUREMAP); 9553 if ("Subscription".equals(codeString)) 9554 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSCRIPTION); 9555 if ("Substance".equals(codeString)) 9556 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCE); 9557 if ("SubstanceDefinition".equals(codeString)) 9558 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCEDEFINITION); 9559 if ("SubstanceNucleicAcid".equals(codeString)) 9560 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCENUCLEICACID); 9561 if ("SubstancePolymer".equals(codeString)) 9562 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCEPOLYMER); 9563 if ("SubstanceProtein".equals(codeString)) 9564 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCEPROTEIN); 9565 if ("SubstanceReferenceInformation".equals(codeString)) 9566 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCEREFERENCEINFORMATION); 9567 if ("SubstanceSourceMaterial".equals(codeString)) 9568 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUBSTANCESOURCEMATERIAL); 9569 if ("SupplyDelivery".equals(codeString)) 9570 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUPPLYDELIVERY); 9571 if ("SupplyRequest".equals(codeString)) 9572 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.SUPPLYREQUEST); 9573 if ("Task".equals(codeString)) 9574 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TASK); 9575 if ("TerminologyCapabilities".equals(codeString)) 9576 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TERMINOLOGYCAPABILITIES); 9577 if ("TestReport".equals(codeString)) 9578 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TESTREPORT); 9579 if ("TestScript".equals(codeString)) 9580 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TESTSCRIPT); 9581 if ("Topic".equals(codeString)) 9582 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.TOPIC); 9583 if ("ValueSet".equals(codeString)) 9584 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.VALUESET); 9585 if ("VerificationResult".equals(codeString)) 9586 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.VERIFICATIONRESULT); 9587 if ("VisionPrescription".equals(codeString)) 9588 return new Enumeration<FHIRDefinedType>(this, FHIRDefinedType.VISIONPRESCRIPTION); 9589 throw new FHIRException("Unknown FHIRDefinedType code '"+codeString+"'"); 9590 } 9591 public String toCode(FHIRDefinedType code) { 9592 if (code == FHIRDefinedType.ADDRESS) 9593 return "Address"; 9594 if (code == FHIRDefinedType.AGE) 9595 return "Age"; 9596 if (code == FHIRDefinedType.ANNOTATION) 9597 return "Annotation"; 9598 if (code == FHIRDefinedType.ATTACHMENT) 9599 return "Attachment"; 9600 if (code == FHIRDefinedType.BACKBONEELEMENT) 9601 return "BackboneElement"; 9602 if (code == FHIRDefinedType.CODEABLECONCEPT) 9603 return "CodeableConcept"; 9604 if (code == FHIRDefinedType.CODING) 9605 return "Coding"; 9606 if (code == FHIRDefinedType.CONTACTDETAIL) 9607 return "ContactDetail"; 9608 if (code == FHIRDefinedType.CONTACTPOINT) 9609 return "ContactPoint"; 9610 if (code == FHIRDefinedType.CONTRIBUTOR) 9611 return "Contributor"; 9612 if (code == FHIRDefinedType.COUNT) 9613 return "Count"; 9614 if (code == FHIRDefinedType.DATAREQUIREMENT) 9615 return "DataRequirement"; 9616 if (code == FHIRDefinedType.DISTANCE) 9617 return "Distance"; 9618 if (code == FHIRDefinedType.DOSAGE) 9619 return "Dosage"; 9620 if (code == FHIRDefinedType.DURATION) 9621 return "Duration"; 9622 if (code == FHIRDefinedType.ELEMENT) 9623 return "Element"; 9624 if (code == FHIRDefinedType.ELEMENTDEFINITION) 9625 return "ElementDefinition"; 9626 if (code == FHIRDefinedType.EXPRESSION) 9627 return "Expression"; 9628 if (code == FHIRDefinedType.EXTENSION) 9629 return "Extension"; 9630 if (code == FHIRDefinedType.HUMANNAME) 9631 return "HumanName"; 9632 if (code == FHIRDefinedType.IDENTIFIER) 9633 return "Identifier"; 9634 if (code == FHIRDefinedType.MARKETINGSTATUS) 9635 return "MarketingStatus"; 9636 if (code == FHIRDefinedType.META) 9637 return "Meta"; 9638 if (code == FHIRDefinedType.MONEY) 9639 return "Money"; 9640 if (code == FHIRDefinedType.MONEYQUANTITY) 9641 return "MoneyQuantity"; 9642 if (code == FHIRDefinedType.NARRATIVE) 9643 return "Narrative"; 9644 if (code == FHIRDefinedType.ORDEREDDISTRIBUTION) 9645 return "OrderedDistribution"; 9646 if (code == FHIRDefinedType.PARAMETERDEFINITION) 9647 return "ParameterDefinition"; 9648 if (code == FHIRDefinedType.PERIOD) 9649 return "Period"; 9650 if (code == FHIRDefinedType.POPULATION) 9651 return "Population"; 9652 if (code == FHIRDefinedType.PRODCHARACTERISTIC) 9653 return "ProdCharacteristic"; 9654 if (code == FHIRDefinedType.PRODUCTSHELFLIFE) 9655 return "ProductShelfLife"; 9656 if (code == FHIRDefinedType.QUANTITY) 9657 return "Quantity"; 9658 if (code == FHIRDefinedType.RANGE) 9659 return "Range"; 9660 if (code == FHIRDefinedType.RATIO) 9661 return "Ratio"; 9662 if (code == FHIRDefinedType.REFERENCE) 9663 return "Reference"; 9664 if (code == FHIRDefinedType.RELATEDARTIFACT) 9665 return "RelatedArtifact"; 9666 if (code == FHIRDefinedType.SAMPLEDDATA) 9667 return "SampledData"; 9668 if (code == FHIRDefinedType.SIGNATURE) 9669 return "Signature"; 9670 if (code == FHIRDefinedType.SIMPLEQUANTITY) 9671 return "SimpleQuantity"; 9672 if (code == FHIRDefinedType.STATISTIC) 9673 return "Statistic"; 9674 if (code == FHIRDefinedType.SUBSTANCEAMOUNT) 9675 return "SubstanceAmount"; 9676 if (code == FHIRDefinedType.TIMING) 9677 return "Timing"; 9678 if (code == FHIRDefinedType.TRIGGERDEFINITION) 9679 return "TriggerDefinition"; 9680 if (code == FHIRDefinedType.USAGECONTEXT) 9681 return "UsageContext"; 9682 if (code == FHIRDefinedType.BASE64BINARY) 9683 return "base64Binary"; 9684 if (code == FHIRDefinedType.BOOLEAN) 9685 return "boolean"; 9686 if (code == FHIRDefinedType.CANONICAL) 9687 return "canonical"; 9688 if (code == FHIRDefinedType.CODE) 9689 return "code"; 9690 if (code == FHIRDefinedType.DATE) 9691 return "date"; 9692 if (code == FHIRDefinedType.DATETIME) 9693 return "dateTime"; 9694 if (code == FHIRDefinedType.DECIMAL) 9695 return "decimal"; 9696 if (code == FHIRDefinedType.ID) 9697 return "id"; 9698 if (code == FHIRDefinedType.INSTANT) 9699 return "instant"; 9700 if (code == FHIRDefinedType.INTEGER) 9701 return "integer"; 9702 if (code == FHIRDefinedType.MARKDOWN) 9703 return "markdown"; 9704 if (code == FHIRDefinedType.OID) 9705 return "oid"; 9706 if (code == FHIRDefinedType.POSITIVEINT) 9707 return "positiveInt"; 9708 if (code == FHIRDefinedType.STRING) 9709 return "string"; 9710 if (code == FHIRDefinedType.TIME) 9711 return "time"; 9712 if (code == FHIRDefinedType.UNSIGNEDINT) 9713 return "unsignedInt"; 9714 if (code == FHIRDefinedType.URI) 9715 return "uri"; 9716 if (code == FHIRDefinedType.URL) 9717 return "url"; 9718 if (code == FHIRDefinedType.UUID) 9719 return "uuid"; 9720 if (code == FHIRDefinedType.XHTML) 9721 return "xhtml"; 9722 if (code == FHIRDefinedType.ACCOUNT) 9723 return "Account"; 9724 if (code == FHIRDefinedType.ACTIVITYDEFINITION) 9725 return "ActivityDefinition"; 9726 if (code == FHIRDefinedType.ADMINISTRABLEPRODUCTDEFINITION) 9727 return "AdministrableProductDefinition"; 9728 if (code == FHIRDefinedType.ADVERSEEVENT) 9729 return "AdverseEvent"; 9730 if (code == FHIRDefinedType.ALLERGYINTOLERANCE) 9731 return "AllergyIntolerance"; 9732 if (code == FHIRDefinedType.APPOINTMENT) 9733 return "Appointment"; 9734 if (code == FHIRDefinedType.APPOINTMENTRESPONSE) 9735 return "AppointmentResponse"; 9736 if (code == FHIRDefinedType.AUDITEVENT) 9737 return "AuditEvent"; 9738 if (code == FHIRDefinedType.BASIC) 9739 return "Basic"; 9740 if (code == FHIRDefinedType.BINARY) 9741 return "Binary"; 9742 if (code == FHIRDefinedType.BIOLOGICALLYDERIVEDPRODUCT) 9743 return "BiologicallyDerivedProduct"; 9744 if (code == FHIRDefinedType.BODYSTRUCTURE) 9745 return "BodyStructure"; 9746 if (code == FHIRDefinedType.BUNDLE) 9747 return "Bundle"; 9748 if (code == FHIRDefinedType.CAPABILITYSTATEMENT) 9749 return "CapabilityStatement"; 9750 if (code == FHIRDefinedType.CAPABILITYSTATEMENT2) 9751 return "CapabilityStatement2"; 9752 if (code == FHIRDefinedType.CAREPLAN) 9753 return "CarePlan"; 9754 if (code == FHIRDefinedType.CARETEAM) 9755 return "CareTeam"; 9756 if (code == FHIRDefinedType.CATALOGENTRY) 9757 return "CatalogEntry"; 9758 if (code == FHIRDefinedType.CHARGEITEM) 9759 return "ChargeItem"; 9760 if (code == FHIRDefinedType.CHARGEITEMDEFINITION) 9761 return "ChargeItemDefinition"; 9762 if (code == FHIRDefinedType.CLAIM) 9763 return "Claim"; 9764 if (code == FHIRDefinedType.CLAIMRESPONSE) 9765 return "ClaimResponse"; 9766 if (code == FHIRDefinedType.CLINICALIMPRESSION) 9767 return "ClinicalImpression"; 9768 if (code == FHIRDefinedType.CLINICALUSEISSUE) 9769 return "ClinicalUseIssue"; 9770 if (code == FHIRDefinedType.CODESYSTEM) 9771 return "CodeSystem"; 9772 if (code == FHIRDefinedType.COMMUNICATION) 9773 return "Communication"; 9774 if (code == FHIRDefinedType.COMMUNICATIONREQUEST) 9775 return "CommunicationRequest"; 9776 if (code == FHIRDefinedType.COMPARTMENTDEFINITION) 9777 return "CompartmentDefinition"; 9778 if (code == FHIRDefinedType.COMPOSITION) 9779 return "Composition"; 9780 if (code == FHIRDefinedType.CONCEPTMAP) 9781 return "ConceptMap"; 9782 if (code == FHIRDefinedType.CONDITION) 9783 return "Condition"; 9784 if (code == FHIRDefinedType.CONDITIONDEFINITION) 9785 return "ConditionDefinition"; 9786 if (code == FHIRDefinedType.CONSENT) 9787 return "Consent"; 9788 if (code == FHIRDefinedType.CONTRACT) 9789 return "Contract"; 9790 if (code == FHIRDefinedType.COVERAGE) 9791 return "Coverage"; 9792 if (code == FHIRDefinedType.COVERAGEELIGIBILITYREQUEST) 9793 return "CoverageEligibilityRequest"; 9794 if (code == FHIRDefinedType.COVERAGEELIGIBILITYRESPONSE) 9795 return "CoverageEligibilityResponse"; 9796 if (code == FHIRDefinedType.DETECTEDISSUE) 9797 return "DetectedIssue"; 9798 if (code == FHIRDefinedType.DEVICE) 9799 return "Device"; 9800 if (code == FHIRDefinedType.DEVICEDEFINITION) 9801 return "DeviceDefinition"; 9802 if (code == FHIRDefinedType.DEVICEMETRIC) 9803 return "DeviceMetric"; 9804 if (code == FHIRDefinedType.DEVICEREQUEST) 9805 return "DeviceRequest"; 9806 if (code == FHIRDefinedType.DEVICEUSESTATEMENT) 9807 return "DeviceUseStatement"; 9808 if (code == FHIRDefinedType.DIAGNOSTICREPORT) 9809 return "DiagnosticReport"; 9810 if (code == FHIRDefinedType.DOCUMENTMANIFEST) 9811 return "DocumentManifest"; 9812 if (code == FHIRDefinedType.DOCUMENTREFERENCE) 9813 return "DocumentReference"; 9814 if (code == FHIRDefinedType.DOMAINRESOURCE) 9815 return "DomainResource"; 9816 if (code == FHIRDefinedType.ENCOUNTER) 9817 return "Encounter"; 9818 if (code == FHIRDefinedType.ENDPOINT) 9819 return "Endpoint"; 9820 if (code == FHIRDefinedType.ENROLLMENTREQUEST) 9821 return "EnrollmentRequest"; 9822 if (code == FHIRDefinedType.ENROLLMENTRESPONSE) 9823 return "EnrollmentResponse"; 9824 if (code == FHIRDefinedType.EPISODEOFCARE) 9825 return "EpisodeOfCare"; 9826 if (code == FHIRDefinedType.EVENTDEFINITION) 9827 return "EventDefinition"; 9828 if (code == FHIRDefinedType.EVIDENCE) 9829 return "Evidence"; 9830 if (code == FHIRDefinedType.EVIDENCEVARIABLE) 9831 return "EvidenceVariable"; 9832 if (code == FHIRDefinedType.EXAMPLESCENARIO) 9833 return "ExampleScenario"; 9834 if (code == FHIRDefinedType.EXPLANATIONOFBENEFIT) 9835 return "ExplanationOfBenefit"; 9836 if (code == FHIRDefinedType.FAMILYMEMBERHISTORY) 9837 return "FamilyMemberHistory"; 9838 if (code == FHIRDefinedType.FLAG) 9839 return "Flag"; 9840 if (code == FHIRDefinedType.GOAL) 9841 return "Goal"; 9842 if (code == FHIRDefinedType.GRAPHDEFINITION) 9843 return "GraphDefinition"; 9844 if (code == FHIRDefinedType.GROUP) 9845 return "Group"; 9846 if (code == FHIRDefinedType.GUIDANCERESPONSE) 9847 return "GuidanceResponse"; 9848 if (code == FHIRDefinedType.HEALTHCARESERVICE) 9849 return "HealthcareService"; 9850 if (code == FHIRDefinedType.IMAGINGSTUDY) 9851 return "ImagingStudy"; 9852 if (code == FHIRDefinedType.IMMUNIZATION) 9853 return "Immunization"; 9854 if (code == FHIRDefinedType.IMMUNIZATIONEVALUATION) 9855 return "ImmunizationEvaluation"; 9856 if (code == FHIRDefinedType.IMMUNIZATIONRECOMMENDATION) 9857 return "ImmunizationRecommendation"; 9858 if (code == FHIRDefinedType.IMPLEMENTATIONGUIDE) 9859 return "ImplementationGuide"; 9860 if (code == FHIRDefinedType.INGREDIENT) 9861 return "Ingredient"; 9862 if (code == FHIRDefinedType.INSURANCEPLAN) 9863 return "InsurancePlan"; 9864 if (code == FHIRDefinedType.INVOICE) 9865 return "Invoice"; 9866 if (code == FHIRDefinedType.LIBRARY) 9867 return "Library"; 9868 if (code == FHIRDefinedType.LINKAGE) 9869 return "Linkage"; 9870 if (code == FHIRDefinedType.LIST) 9871 return "List"; 9872 if (code == FHIRDefinedType.LOCATION) 9873 return "Location"; 9874 if (code == FHIRDefinedType.MANUFACTUREDITEMDEFINITION) 9875 return "ManufacturedItemDefinition"; 9876 if (code == FHIRDefinedType.MEASURE) 9877 return "Measure"; 9878 if (code == FHIRDefinedType.MEASUREREPORT) 9879 return "MeasureReport"; 9880 if (code == FHIRDefinedType.MEDICATION) 9881 return "Medication"; 9882 if (code == FHIRDefinedType.MEDICATIONADMINISTRATION) 9883 return "MedicationAdministration"; 9884 if (code == FHIRDefinedType.MEDICATIONDISPENSE) 9885 return "MedicationDispense"; 9886 if (code == FHIRDefinedType.MEDICATIONKNOWLEDGE) 9887 return "MedicationKnowledge"; 9888 if (code == FHIRDefinedType.MEDICATIONREQUEST) 9889 return "MedicationRequest"; 9890 if (code == FHIRDefinedType.MEDICATIONUSAGE) 9891 return "MedicationUsage"; 9892 if (code == FHIRDefinedType.MEDICINALPRODUCTDEFINITION) 9893 return "MedicinalProductDefinition"; 9894 if (code == FHIRDefinedType.MESSAGEDEFINITION) 9895 return "MessageDefinition"; 9896 if (code == FHIRDefinedType.MESSAGEHEADER) 9897 return "MessageHeader"; 9898 if (code == FHIRDefinedType.MOLECULARSEQUENCE) 9899 return "MolecularSequence"; 9900 if (code == FHIRDefinedType.NAMINGSYSTEM) 9901 return "NamingSystem"; 9902 if (code == FHIRDefinedType.NUTRITIONINTAKE) 9903 return "NutritionIntake"; 9904 if (code == FHIRDefinedType.NUTRITIONORDER) 9905 return "NutritionOrder"; 9906 if (code == FHIRDefinedType.OBSERVATION) 9907 return "Observation"; 9908 if (code == FHIRDefinedType.OBSERVATIONDEFINITION) 9909 return "ObservationDefinition"; 9910 if (code == FHIRDefinedType.OPERATIONDEFINITION) 9911 return "OperationDefinition"; 9912 if (code == FHIRDefinedType.OPERATIONOUTCOME) 9913 return "OperationOutcome"; 9914 if (code == FHIRDefinedType.ORGANIZATION) 9915 return "Organization"; 9916 if (code == FHIRDefinedType.ORGANIZATIONAFFILIATION) 9917 return "OrganizationAffiliation"; 9918 if (code == FHIRDefinedType.PACKAGEDPRODUCTDEFINITION) 9919 return "PackagedProductDefinition"; 9920 if (code == FHIRDefinedType.PARAMETERS) 9921 return "Parameters"; 9922 if (code == FHIRDefinedType.PATIENT) 9923 return "Patient"; 9924 if (code == FHIRDefinedType.PAYMENTNOTICE) 9925 return "PaymentNotice"; 9926 if (code == FHIRDefinedType.PAYMENTRECONCILIATION) 9927 return "PaymentReconciliation"; 9928 if (code == FHIRDefinedType.PERSON) 9929 return "Person"; 9930 if (code == FHIRDefinedType.PLANDEFINITION) 9931 return "PlanDefinition"; 9932 if (code == FHIRDefinedType.PRACTITIONER) 9933 return "Practitioner"; 9934 if (code == FHIRDefinedType.PRACTITIONERROLE) 9935 return "PractitionerRole"; 9936 if (code == FHIRDefinedType.PROCEDURE) 9937 return "Procedure"; 9938 if (code == FHIRDefinedType.PROVENANCE) 9939 return "Provenance"; 9940 if (code == FHIRDefinedType.QUESTIONNAIRE) 9941 return "Questionnaire"; 9942 if (code == FHIRDefinedType.QUESTIONNAIRERESPONSE) 9943 return "QuestionnaireResponse"; 9944 if (code == FHIRDefinedType.REGULATEDAUTHORIZATION) 9945 return "RegulatedAuthorization"; 9946 if (code == FHIRDefinedType.RELATEDPERSON) 9947 return "RelatedPerson"; 9948 if (code == FHIRDefinedType.REQUESTGROUP) 9949 return "RequestGroup"; 9950 if (code == FHIRDefinedType.RESEARCHSTUDY) 9951 return "ResearchStudy"; 9952 if (code == FHIRDefinedType.RESEARCHSUBJECT) 9953 return "ResearchSubject"; 9954 if (code == FHIRDefinedType.RESOURCE) 9955 return "Resource"; 9956 if (code == FHIRDefinedType.RISKASSESSMENT) 9957 return "RiskAssessment"; 9958 if (code == FHIRDefinedType.SCHEDULE) 9959 return "Schedule"; 9960 if (code == FHIRDefinedType.SEARCHPARAMETER) 9961 return "SearchParameter"; 9962 if (code == FHIRDefinedType.SERVICEREQUEST) 9963 return "ServiceRequest"; 9964 if (code == FHIRDefinedType.SLOT) 9965 return "Slot"; 9966 if (code == FHIRDefinedType.SPECIMEN) 9967 return "Specimen"; 9968 if (code == FHIRDefinedType.SPECIMENDEFINITION) 9969 return "SpecimenDefinition"; 9970 if (code == FHIRDefinedType.STRUCTUREDEFINITION) 9971 return "StructureDefinition"; 9972 if (code == FHIRDefinedType.STRUCTUREMAP) 9973 return "StructureMap"; 9974 if (code == FHIRDefinedType.SUBSCRIPTION) 9975 return "Subscription"; 9976 if (code == FHIRDefinedType.SUBSTANCE) 9977 return "Substance"; 9978 if (code == FHIRDefinedType.SUBSTANCEDEFINITION) 9979 return "SubstanceDefinition"; 9980 if (code == FHIRDefinedType.SUBSTANCENUCLEICACID) 9981 return "SubstanceNucleicAcid"; 9982 if (code == FHIRDefinedType.SUBSTANCEPOLYMER) 9983 return "SubstancePolymer"; 9984 if (code == FHIRDefinedType.SUBSTANCEPROTEIN) 9985 return "SubstanceProtein"; 9986 if (code == FHIRDefinedType.SUBSTANCEREFERENCEINFORMATION) 9987 return "SubstanceReferenceInformation"; 9988 if (code == FHIRDefinedType.SUBSTANCESOURCEMATERIAL) 9989 return "SubstanceSourceMaterial"; 9990 if (code == FHIRDefinedType.SUPPLYDELIVERY) 9991 return "SupplyDelivery"; 9992 if (code == FHIRDefinedType.SUPPLYREQUEST) 9993 return "SupplyRequest"; 9994 if (code == FHIRDefinedType.TASK) 9995 return "Task"; 9996 if (code == FHIRDefinedType.TERMINOLOGYCAPABILITIES) 9997 return "TerminologyCapabilities"; 9998 if (code == FHIRDefinedType.TESTREPORT) 9999 return "TestReport"; 10000 if (code == FHIRDefinedType.TESTSCRIPT) 10001 return "TestScript"; 10002 if (code == FHIRDefinedType.TOPIC) 10003 return "Topic"; 10004 if (code == FHIRDefinedType.VALUESET) 10005 return "ValueSet"; 10006 if (code == FHIRDefinedType.VERIFICATIONRESULT) 10007 return "VerificationResult"; 10008 if (code == FHIRDefinedType.VISIONPRESCRIPTION) 10009 return "VisionPrescription"; 10010 return "?"; 10011 } 10012 public String toSystem(FHIRDefinedType code) { 10013 return code.getSystem(); 10014 } 10015 } 10016 10017 public enum FHIRVersion { 10018 /** 10019 * Oldest archived version of FHIR. 10020 */ 10021 _0_01, 10022 /** 10023 * 1st Draft for Comment (Sept 2012 Ballot). 10024 */ 10025 _0_05, 10026 /** 10027 * 2nd Draft for Comment (January 2013 Ballot). 10028 */ 10029 _0_06, 10030 /** 10031 * DSTU 1 Ballot version. 10032 */ 10033 _0_11, 10034 /** 10035 * DSTU 1 Official version. 10036 */ 10037 _0_0_80, 10038 /** 10039 * DSTU 1 Official version Technical Errata #1. 10040 */ 10041 _0_0_81, 10042 /** 10043 * DSTU 1 Official version Technical Errata #2. 10044 */ 10045 _0_0_82, 10046 /** 10047 * Draft For Comment (January 2015 Ballot). 10048 */ 10049 _0_4_0, 10050 /** 10051 * DSTU 2 Ballot version (May 2015 Ballot). 10052 */ 10053 _0_5_0, 10054 /** 10055 * DSTU 2 QA Preview + CQIF Ballot (Sep 2015). 10056 */ 10057 _1_0_0, 10058 /** 10059 * DSTU 2 (Official version). 10060 */ 10061 _1_0_1, 10062 /** 10063 * DSTU 2 (Official version) with 1 technical errata. 10064 */ 10065 _1_0_2, 10066 /** 10067 * GAO Ballot + draft changes to main FHIR standard. 10068 */ 10069 _1_1_0, 10070 /** 10071 * CQF on FHIR Ballot + Connectathon 12 (Montreal). 10072 */ 10073 _1_4_0, 10074 /** 10075 * FHIR STU3 Ballot + Connectathon 13 (Baltimore). 10076 */ 10077 _1_6_0, 10078 /** 10079 * FHIR STU3 Candidate + Connectathon 14 (San Antonio). 10080 */ 10081 _1_8_0, 10082 /** 10083 * FHIR Release 3 (STU). 10084 */ 10085 _3_0_0, 10086 /** 10087 * FHIR Release 3 (STU) with 1 technical errata. 10088 */ 10089 _3_0_1, 10090 /** 10091 * FHIR Release 3 (STU) with 2 technical errata. 10092 */ 10093 _3_0_2, 10094 /** 10095 * R4 Ballot #1. 10096 */ 10097 _3_3_0, 10098 /** 10099 * R4 Ballot #2. 10100 */ 10101 _3_5_0, 10102 /** 10103 * FHIR Release 4 (Normative + STU). 10104 */ 10105 _4_0_0, 10106 /** 10107 * FHIR Release 4 (Normative + STU) + 1 technical correction 10108 */ 10109 _4_0_1, 10110 /** 10111 * Current build after R4. 10112 */ 10113 _4_1_0, 10114 /** 10115 * added to help the parsers 10116 */ 10117 NULL; 10118 public static FHIRVersion fromCode(String codeString) throws FHIRException { 10119 if (codeString == null || "".equals(codeString)) 10120 return null; 10121 if ("0.01".equals(codeString)) 10122 return _0_01; 10123 if ("0.05".equals(codeString)) 10124 return _0_05; 10125 if ("0.06".equals(codeString)) 10126 return _0_06; 10127 if ("0.11".equals(codeString)) 10128 return _0_11; 10129 if ("0.0.80".equals(codeString)) 10130 return _0_0_80; 10131 if ("0.0.81".equals(codeString)) 10132 return _0_0_81; 10133 if ("0.0.82".equals(codeString)) 10134 return _0_0_82; 10135 if ("0.4.0".equals(codeString)) 10136 return _0_4_0; 10137 if ("0.5.0".equals(codeString)) 10138 return _0_5_0; 10139 if ("1.0.0".equals(codeString)) 10140 return _1_0_0; 10141 if ("1.0.1".equals(codeString)) 10142 return _1_0_1; 10143 if ("1.0.2".equals(codeString)) 10144 return _1_0_2; 10145 if ("1.1.0".equals(codeString)) 10146 return _1_1_0; 10147 if ("1.4.0".equals(codeString)) 10148 return _1_4_0; 10149 if ("1.6.0".equals(codeString)) 10150 return _1_6_0; 10151 if ("1.8.0".equals(codeString)) 10152 return _1_8_0; 10153 if ("3.0.0".equals(codeString)) 10154 return _3_0_0; 10155 if ("3.0.1".equals(codeString)) 10156 return _3_0_1; 10157 if ("3.0.2".equals(codeString)) 10158 return _3_0_2; 10159 if ("3.3.0".equals(codeString)) 10160 return _3_3_0; 10161 if ("3.5.0".equals(codeString)) 10162 return _3_5_0; 10163 if ("4.0.0".equals(codeString)) 10164 return _4_0_0; 10165 if ("4.0.1".equals(codeString)) 10166 return _4_0_1; 10167 if ("4.1.0".equals(codeString)) 10168 return _4_1_0; 10169 throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'"); 10170 } 10171 public String toCode() { 10172 switch (this) { 10173 case _0_01: return "0.01"; 10174 case _0_05: return "0.05"; 10175 case _0_06: return "0.06"; 10176 case _0_11: return "0.11"; 10177 case _0_0_80: return "0.0.80"; 10178 case _0_0_81: return "0.0.81"; 10179 case _0_0_82: return "0.0.82"; 10180 case _0_4_0: return "0.4.0"; 10181 case _0_5_0: return "0.5.0"; 10182 case _1_0_0: return "1.0.0"; 10183 case _1_0_1: return "1.0.1"; 10184 case _1_0_2: return "1.0.2"; 10185 case _1_1_0: return "1.1.0"; 10186 case _1_4_0: return "1.4.0"; 10187 case _1_6_0: return "1.6.0"; 10188 case _1_8_0: return "1.8.0"; 10189 case _3_0_0: return "3.0.0"; 10190 case _3_0_1: return "3.0.1"; 10191 case _3_0_2: return "3.0.2"; 10192 case _3_3_0: return "3.3.0"; 10193 case _3_5_0: return "3.5.0"; 10194 case _4_0_0: return "4.0.0"; 10195 case _4_0_1: return "4.0.1"; 10196 case _4_1_0: return "4.1.0"; 10197 default: return "?"; 10198 } 10199 } 10200 public String getSystem() { 10201 switch (this) { 10202 case _0_01: return "http://hl7.org/fhir/FHIR-version"; 10203 case _0_05: return "http://hl7.org/fhir/FHIR-version"; 10204 case _0_06: return "http://hl7.org/fhir/FHIR-version"; 10205 case _0_11: return "http://hl7.org/fhir/FHIR-version"; 10206 case _0_0_80: return "http://hl7.org/fhir/FHIR-version"; 10207 case _0_0_81: return "http://hl7.org/fhir/FHIR-version"; 10208 case _0_0_82: return "http://hl7.org/fhir/FHIR-version"; 10209 case _0_4_0: return "http://hl7.org/fhir/FHIR-version"; 10210 case _0_5_0: return "http://hl7.org/fhir/FHIR-version"; 10211 case _1_0_0: return "http://hl7.org/fhir/FHIR-version"; 10212 case _1_0_1: return "http://hl7.org/fhir/FHIR-version"; 10213 case _1_0_2: return "http://hl7.org/fhir/FHIR-version"; 10214 case _1_1_0: return "http://hl7.org/fhir/FHIR-version"; 10215 case _1_4_0: return "http://hl7.org/fhir/FHIR-version"; 10216 case _1_6_0: return "http://hl7.org/fhir/FHIR-version"; 10217 case _1_8_0: return "http://hl7.org/fhir/FHIR-version"; 10218 case _3_0_0: return "http://hl7.org/fhir/FHIR-version"; 10219 case _3_0_1: return "http://hl7.org/fhir/FHIR-version"; 10220 case _3_0_2: return "http://hl7.org/fhir/FHIR-version"; 10221 case _3_3_0: return "http://hl7.org/fhir/FHIR-version"; 10222 case _3_5_0: return "http://hl7.org/fhir/FHIR-version"; 10223 case _4_0_0: return "http://hl7.org/fhir/FHIR-version"; 10224 case _4_0_1: return "http://hl7.org/fhir/FHIR-version"; 10225 case _4_1_0: return "http://hl7.org/fhir/FHIR-version"; 10226 default: return "?"; 10227 } 10228 } 10229 public String getDefinition() { 10230 switch (this) { 10231 case _0_01: return "Oldest archived version of FHIR."; 10232 case _0_05: return "1st Draft for Comment (Sept 2012 Ballot)."; 10233 case _0_06: return "2nd Draft for Comment (January 2013 Ballot)."; 10234 case _0_11: return "DSTU 1 Ballot version."; 10235 case _0_0_80: return "DSTU 1 Official version."; 10236 case _0_0_81: return "DSTU 1 Official version Technical Errata #1."; 10237 case _0_0_82: return "DSTU 1 Official version Technical Errata #2."; 10238 case _0_4_0: return "Draft For Comment (January 2015 Ballot)."; 10239 case _0_5_0: return "DSTU 2 Ballot version (May 2015 Ballot)."; 10240 case _1_0_0: return "DSTU 2 QA Preview + CQIF Ballot (Sep 2015)."; 10241 case _1_0_1: return "DSTU 2 (Official version)."; 10242 case _1_0_2: return "DSTU 2 (Official version) with 1 technical errata."; 10243 case _1_1_0: return "GAO Ballot + draft changes to main FHIR standard."; 10244 case _1_4_0: return "CQF on FHIR Ballot + Connectathon 12 (Montreal)."; 10245 case _1_6_0: return "FHIR STU3 Ballot + Connectathon 13 (Baltimore)."; 10246 case _1_8_0: return "FHIR STU3 Candidate + Connectathon 14 (San Antonio)."; 10247 case _3_0_0: return "FHIR Release 3 (STU)."; 10248 case _3_0_1: return "FHIR Release 3 (STU) with 1 technical errata."; 10249 case _3_0_2: return "FHIR Release 3 (STU) with 2 technical errata."; 10250 case _3_3_0: return "R4 Ballot #1."; 10251 case _3_5_0: return "R4 Ballot #2."; 10252 case _4_0_0: return "FHIR Release 4 (Normative + STU)."; 10253 case _4_0_1: return "FHIR Release 4 (Normative + STU) + ! Technical Correction"; 10254 case _4_1_0: return "Current build after R4."; 10255 default: return "?"; 10256 } 10257 } 10258 public String getDisplay() { 10259 switch (this) { 10260 case _0_01: return "0.01"; 10261 case _0_05: return "0.05"; 10262 case _0_06: return "0.06"; 10263 case _0_11: return "0.11"; 10264 case _0_0_80: return "0.0.80"; 10265 case _0_0_81: return "0.0.81"; 10266 case _0_0_82: return "0.0.82"; 10267 case _0_4_0: return "0.4.0"; 10268 case _0_5_0: return "0.5.0"; 10269 case _1_0_0: return "1.0.0"; 10270 case _1_0_1: return "1.0.1"; 10271 case _1_0_2: return "1.0.2"; 10272 case _1_1_0: return "1.1.0"; 10273 case _1_4_0: return "1.4.0"; 10274 case _1_6_0: return "1.6.0"; 10275 case _1_8_0: return "1.8.0"; 10276 case _3_0_0: return "3.0.0"; 10277 case _3_0_1: return "3.0.1"; 10278 case _3_0_2: return "3.0.2"; 10279 case _3_3_0: return "3.3.0"; 10280 case _3_5_0: return "3.5.0"; 10281 case _4_0_0: return "4.0.0"; 10282 case _4_0_1: return "4.0.1"; 10283 case _4_1_0: return "4.1.0"; 10284 default: return "?"; 10285 } 10286 } 10287// added from java-adornments.txt: 10288 public String toCode(int len) { 10289 return toCode().substring(0, len); 10290 } 10291 10292 public static boolean isR4Plus(String version) { 10293 return version != null && (version.startsWith("4.") || version.startsWith("5.") || "current".equals(version)); 10294 } 10295 10296 public static boolean isValidCode(String codeString) { 10297 if (codeString == null || "".equals(codeString)) 10298 return false; 10299 if ("0.01".equals(codeString)) 10300 return true; 10301 if ("0.05".equals(codeString)) 10302 return true; 10303 if ("0.06".equals(codeString)) 10304 return true; 10305 if ("0.11".equals(codeString)) 10306 return true; 10307 if ("0.0.80".equals(codeString)) 10308 return true; 10309 if ("0.0.81".equals(codeString)) 10310 return true; 10311 if ("0.0.82".equals(codeString)) 10312 return true; 10313 if ("0.4.0".equals(codeString)) 10314 return true; 10315 if ("0.5.0".equals(codeString)) 10316 return true; 10317 if ("1.0.0".equals(codeString)) 10318 return true; 10319 if ("1.0.1".equals(codeString)) 10320 return true; 10321 if ("1.0.2".equals(codeString)) 10322 return true; 10323 if ("1.1.0".equals(codeString)) 10324 return true; 10325 if ("1.4.0".equals(codeString)) 10326 return true; 10327 if ("1.6.0".equals(codeString)) 10328 return true; 10329 if ("1.8.0".equals(codeString)) 10330 return true; 10331 if ("3.0.0".equals(codeString)) 10332 return true; 10333 if ("3.0.1".equals(codeString)) 10334 return true; 10335 if ("3.3.0".equals(codeString)) 10336 return true; 10337 if ("3.5.0".equals(codeString)) 10338 return true; 10339 if ("4.0.0".equals(codeString)) 10340 return true; 10341 if ("4.1.0".equals(codeString)) 10342 return true; 10343 return false; 10344 } 10345 10346 @Override 10347 public String toString() { 10348 return toCode(); 10349 } 10350 10351// end addition 10352 } 10353 10354 public static class FHIRVersionEnumFactory implements EnumFactory<FHIRVersion> { 10355 public FHIRVersion fromCode(String codeString) throws IllegalArgumentException { 10356 if (codeString == null || "".equals(codeString)) 10357 if (codeString == null || "".equals(codeString)) 10358 return null; 10359 if ("0.01".equals(codeString)) 10360 return FHIRVersion._0_01; 10361 if ("0.05".equals(codeString)) 10362 return FHIRVersion._0_05; 10363 if ("0.06".equals(codeString)) 10364 return FHIRVersion._0_06; 10365 if ("0.11".equals(codeString)) 10366 return FHIRVersion._0_11; 10367 if ("0.0.80".equals(codeString)) 10368 return FHIRVersion._0_0_80; 10369 if ("0.0.81".equals(codeString)) 10370 return FHIRVersion._0_0_81; 10371 if ("0.0.82".equals(codeString)) 10372 return FHIRVersion._0_0_82; 10373 if ("0.4.0".equals(codeString)) 10374 return FHIRVersion._0_4_0; 10375 if ("0.5.0".equals(codeString)) 10376 return FHIRVersion._0_5_0; 10377 if ("1.0.0".equals(codeString)) 10378 return FHIRVersion._1_0_0; 10379 if ("1.0.1".equals(codeString)) 10380 return FHIRVersion._1_0_1; 10381 if ("1.0.2".equals(codeString)) 10382 return FHIRVersion._1_0_2; 10383 if ("1.1.0".equals(codeString)) 10384 return FHIRVersion._1_1_0; 10385 if ("1.4.0".equals(codeString)) 10386 return FHIRVersion._1_4_0; 10387 if ("1.6.0".equals(codeString)) 10388 return FHIRVersion._1_6_0; 10389 if ("1.8.0".equals(codeString)) 10390 return FHIRVersion._1_8_0; 10391 if ("3.0.0".equals(codeString)) 10392 return FHIRVersion._3_0_0; 10393 if ("3.0.1".equals(codeString)) 10394 return FHIRVersion._3_0_1; 10395 if ("3.0.2".equals(codeString)) 10396 return FHIRVersion._3_0_2; 10397 if ("3.3.0".equals(codeString)) 10398 return FHIRVersion._3_3_0; 10399 if ("3.5.0".equals(codeString)) 10400 return FHIRVersion._3_5_0; 10401 if ("4.0.0".equals(codeString)) 10402 return FHIRVersion._4_0_0; 10403 if ("4.0.1".equals(codeString)) 10404 return FHIRVersion._4_0_1; 10405 if ("4.1.0".equals(codeString)) 10406 return FHIRVersion._4_1_0; 10407 throw new IllegalArgumentException("Unknown FHIRVersion code '"+codeString+"'"); 10408 } 10409 public Enumeration<FHIRVersion> fromType(Base code) throws FHIRException { 10410 if (code == null) 10411 return null; 10412 if (code.isEmpty()) 10413 return new Enumeration<FHIRVersion>(this); 10414 String codeString = ((PrimitiveType) code).asStringValue(); 10415 if (codeString == null || "".equals(codeString)) 10416 return null; 10417 if ("0.01".equals(codeString)) 10418 return new Enumeration<FHIRVersion>(this, FHIRVersion._0_01); 10419 if ("0.05".equals(codeString)) 10420 return new Enumeration<FHIRVersion>(this, FHIRVersion._0_05); 10421 if ("0.06".equals(codeString)) 10422 return new Enumeration<FHIRVersion>(this, FHIRVersion._0_06); 10423 if ("0.11".equals(codeString)) 10424 return new Enumeration<FHIRVersion>(this, FHIRVersion._0_11); 10425 if ("0.0.80".equals(codeString)) 10426 return new Enumeration<FHIRVersion>(this, FHIRVersion._0_0_80); 10427 if ("0.0.81".equals(codeString)) 10428 return new Enumeration<FHIRVersion>(this, FHIRVersion._0_0_81); 10429 if ("0.0.82".equals(codeString)) 10430 return new Enumeration<FHIRVersion>(this, FHIRVersion._0_0_82); 10431 if ("0.4.0".equals(codeString)) 10432 return new Enumeration<FHIRVersion>(this, FHIRVersion._0_4_0); 10433 if ("0.5.0".equals(codeString)) 10434 return new Enumeration<FHIRVersion>(this, FHIRVersion._0_5_0); 10435 if ("1.0.0".equals(codeString)) 10436 return new Enumeration<FHIRVersion>(this, FHIRVersion._1_0_0); 10437 if ("1.0.1".equals(codeString)) 10438 return new Enumeration<FHIRVersion>(this, FHIRVersion._1_0_1); 10439 if ("1.0.2".equals(codeString)) 10440 return new Enumeration<FHIRVersion>(this, FHIRVersion._1_0_2); 10441 if ("1.1.0".equals(codeString)) 10442 return new Enumeration<FHIRVersion>(this, FHIRVersion._1_1_0); 10443 if ("1.4.0".equals(codeString)) 10444 return new Enumeration<FHIRVersion>(this, FHIRVersion._1_4_0); 10445 if ("1.6.0".equals(codeString)) 10446 return new Enumeration<FHIRVersion>(this, FHIRVersion._1_6_0); 10447 if ("1.8.0".equals(codeString)) 10448 return new Enumeration<FHIRVersion>(this, FHIRVersion._1_8_0); 10449 if ("3.0.0".equals(codeString)) 10450 return new Enumeration<FHIRVersion>(this, FHIRVersion._3_0_0); 10451 if ("3.0.1".equals(codeString)) 10452 return new Enumeration<FHIRVersion>(this, FHIRVersion._3_0_1); 10453 if ("3.0.2".equals(codeString)) 10454 return new Enumeration<FHIRVersion>(this, FHIRVersion._3_0_2); 10455 if ("3.3.0".equals(codeString)) 10456 return new Enumeration<FHIRVersion>(this, FHIRVersion._3_3_0); 10457 if ("3.5.0".equals(codeString)) 10458 return new Enumeration<FHIRVersion>(this, FHIRVersion._3_5_0); 10459 if ("4.0.0".equals(codeString)) 10460 return new Enumeration<FHIRVersion>(this, FHIRVersion._4_0_0); 10461 if ("4.0.1".equals(codeString)) 10462 return new Enumeration<FHIRVersion>(this, FHIRVersion._4_0_1); 10463 if ("4.1.0".equals(codeString)) 10464 return new Enumeration<FHIRVersion>(this, FHIRVersion._4_1_0); 10465 throw new FHIRException("Unknown FHIRVersion code '"+codeString+"'"); 10466 } 10467 public String toCode(FHIRVersion code) { 10468 if (code == FHIRVersion._0_01) 10469 return "0.01"; 10470 if (code == FHIRVersion._0_05) 10471 return "0.05"; 10472 if (code == FHIRVersion._0_06) 10473 return "0.06"; 10474 if (code == FHIRVersion._0_11) 10475 return "0.11"; 10476 if (code == FHIRVersion._0_0_80) 10477 return "0.0.80"; 10478 if (code == FHIRVersion._0_0_81) 10479 return "0.0.81"; 10480 if (code == FHIRVersion._0_0_82) 10481 return "0.0.82"; 10482 if (code == FHIRVersion._0_4_0) 10483 return "0.4.0"; 10484 if (code == FHIRVersion._0_5_0) 10485 return "0.5.0"; 10486 if (code == FHIRVersion._1_0_0) 10487 return "1.0.0"; 10488 if (code == FHIRVersion._1_0_1) 10489 return "1.0.1"; 10490 if (code == FHIRVersion._1_0_2) 10491 return "1.0.2"; 10492 if (code == FHIRVersion._1_1_0) 10493 return "1.1.0"; 10494 if (code == FHIRVersion._1_4_0) 10495 return "1.4.0"; 10496 if (code == FHIRVersion._1_6_0) 10497 return "1.6.0"; 10498 if (code == FHIRVersion._1_8_0) 10499 return "1.8.0"; 10500 if (code == FHIRVersion._3_0_0) 10501 return "3.0.0"; 10502 if (code == FHIRVersion._3_0_1) 10503 return "3.0.1"; 10504 if (code == FHIRVersion._3_0_2) 10505 return "3.0.2"; 10506 if (code == FHIRVersion._3_3_0) 10507 return "3.3.0"; 10508 if (code == FHIRVersion._3_5_0) 10509 return "3.5.0"; 10510 if (code == FHIRVersion._4_0_0) 10511 return "4.0.0"; 10512 if (code == FHIRVersion._4_0_1) 10513 return "4.0.1"; 10514 if (code == FHIRVersion._4_1_0) 10515 return "4.1.0"; 10516 return "?"; 10517 } 10518 public String toSystem(FHIRVersion code) { 10519 return code.getSystem(); 10520 } 10521 } 10522 10523 public enum KnowledgeResourceType { 10524 /** 10525 * The definition of a specific activity to be taken, independent of any particular patient or context. 10526 */ 10527 ACTIVITYDEFINITION, 10528 /** 10529 * A set of codes drawn from one or more code systems. 10530 */ 10531 CODESYSTEM, 10532 /** 10533 * A map from one set of concepts to one or more other concepts. 10534 */ 10535 CONCEPTMAP, 10536 /** 10537 * Represents a library of quality improvement components. 10538 */ 10539 LIBRARY, 10540 /** 10541 * A quality measure definition. 10542 */ 10543 MEASURE, 10544 /** 10545 * The definition of a plan for a series of actions, independent of any specific patient or context. 10546 */ 10547 PLANDEFINITION, 10548 /** 10549 * Structural Definition. 10550 */ 10551 STRUCTUREDEFINITION, 10552 /** 10553 * A Map of relationships between 2 structures that can be used to transform data. 10554 */ 10555 STRUCTUREMAP, 10556 /** 10557 * A set of codes drawn from one or more code systems. 10558 */ 10559 VALUESET, 10560 /** 10561 * added to help the parsers 10562 */ 10563 NULL; 10564 public static KnowledgeResourceType fromCode(String codeString) throws FHIRException { 10565 if (codeString == null || "".equals(codeString)) 10566 return null; 10567 if ("ActivityDefinition".equals(codeString)) 10568 return ACTIVITYDEFINITION; 10569 if ("CodeSystem".equals(codeString)) 10570 return CODESYSTEM; 10571 if ("ConceptMap".equals(codeString)) 10572 return CONCEPTMAP; 10573 if ("Library".equals(codeString)) 10574 return LIBRARY; 10575 if ("Measure".equals(codeString)) 10576 return MEASURE; 10577 if ("PlanDefinition".equals(codeString)) 10578 return PLANDEFINITION; 10579 if ("StructureDefinition".equals(codeString)) 10580 return STRUCTUREDEFINITION; 10581 if ("StructureMap".equals(codeString)) 10582 return STRUCTUREMAP; 10583 if ("ValueSet".equals(codeString)) 10584 return VALUESET; 10585 throw new FHIRException("Unknown KnowledgeResourceType code '"+codeString+"'"); 10586 } 10587 public String toCode() { 10588 switch (this) { 10589 case ACTIVITYDEFINITION: return "ActivityDefinition"; 10590 case CODESYSTEM: return "CodeSystem"; 10591 case CONCEPTMAP: return "ConceptMap"; 10592 case LIBRARY: return "Library"; 10593 case MEASURE: return "Measure"; 10594 case PLANDEFINITION: return "PlanDefinition"; 10595 case STRUCTUREDEFINITION: return "StructureDefinition"; 10596 case STRUCTUREMAP: return "StructureMap"; 10597 case VALUESET: return "ValueSet"; 10598 default: return "?"; 10599 } 10600 } 10601 public String getSystem() { 10602 switch (this) { 10603 case ACTIVITYDEFINITION: return "http://hl7.org/fhir/knowledge-resource-types"; 10604 case CODESYSTEM: return "http://hl7.org/fhir/knowledge-resource-types"; 10605 case CONCEPTMAP: return "http://hl7.org/fhir/knowledge-resource-types"; 10606 case LIBRARY: return "http://hl7.org/fhir/knowledge-resource-types"; 10607 case MEASURE: return "http://hl7.org/fhir/knowledge-resource-types"; 10608 case PLANDEFINITION: return "http://hl7.org/fhir/knowledge-resource-types"; 10609 case STRUCTUREDEFINITION: return "http://hl7.org/fhir/knowledge-resource-types"; 10610 case STRUCTUREMAP: return "http://hl7.org/fhir/knowledge-resource-types"; 10611 case VALUESET: return "http://hl7.org/fhir/knowledge-resource-types"; 10612 default: return "?"; 10613 } 10614 } 10615 public String getDefinition() { 10616 switch (this) { 10617 case ACTIVITYDEFINITION: return "The definition of a specific activity to be taken, independent of any particular patient or context."; 10618 case CODESYSTEM: return "A set of codes drawn from one or more code systems."; 10619 case CONCEPTMAP: return "A map from one set of concepts to one or more other concepts."; 10620 case LIBRARY: return "Represents a library of quality improvement components."; 10621 case MEASURE: return "A quality measure definition."; 10622 case PLANDEFINITION: return "The definition of a plan for a series of actions, independent of any specific patient or context."; 10623 case STRUCTUREDEFINITION: return "Structural Definition."; 10624 case STRUCTUREMAP: return "A Map of relationships between 2 structures that can be used to transform data."; 10625 case VALUESET: return "A set of codes drawn from one or more code systems."; 10626 default: return "?"; 10627 } 10628 } 10629 public String getDisplay() { 10630 switch (this) { 10631 case ACTIVITYDEFINITION: return "ActivityDefinition"; 10632 case CODESYSTEM: return "CodeSystem"; 10633 case CONCEPTMAP: return "ConceptMap"; 10634 case LIBRARY: return "Library"; 10635 case MEASURE: return "Measure"; 10636 case PLANDEFINITION: return "PlanDefinition"; 10637 case STRUCTUREDEFINITION: return "StructureDefinition"; 10638 case STRUCTUREMAP: return "StructureMap"; 10639 case VALUESET: return "ValueSet"; 10640 default: return "?"; 10641 } 10642 } 10643 } 10644 10645 public static class KnowledgeResourceTypeEnumFactory implements EnumFactory<KnowledgeResourceType> { 10646 public KnowledgeResourceType fromCode(String codeString) throws IllegalArgumentException { 10647 if (codeString == null || "".equals(codeString)) 10648 if (codeString == null || "".equals(codeString)) 10649 return null; 10650 if ("ActivityDefinition".equals(codeString)) 10651 return KnowledgeResourceType.ACTIVITYDEFINITION; 10652 if ("CodeSystem".equals(codeString)) 10653 return KnowledgeResourceType.CODESYSTEM; 10654 if ("ConceptMap".equals(codeString)) 10655 return KnowledgeResourceType.CONCEPTMAP; 10656 if ("Library".equals(codeString)) 10657 return KnowledgeResourceType.LIBRARY; 10658 if ("Measure".equals(codeString)) 10659 return KnowledgeResourceType.MEASURE; 10660 if ("PlanDefinition".equals(codeString)) 10661 return KnowledgeResourceType.PLANDEFINITION; 10662 if ("StructureDefinition".equals(codeString)) 10663 return KnowledgeResourceType.STRUCTUREDEFINITION; 10664 if ("StructureMap".equals(codeString)) 10665 return KnowledgeResourceType.STRUCTUREMAP; 10666 if ("ValueSet".equals(codeString)) 10667 return KnowledgeResourceType.VALUESET; 10668 throw new IllegalArgumentException("Unknown KnowledgeResourceType code '"+codeString+"'"); 10669 } 10670 public Enumeration<KnowledgeResourceType> fromType(Base code) throws FHIRException { 10671 if (code == null) 10672 return null; 10673 if (code.isEmpty()) 10674 return new Enumeration<KnowledgeResourceType>(this); 10675 String codeString = ((PrimitiveType) code).asStringValue(); 10676 if (codeString == null || "".equals(codeString)) 10677 return null; 10678 if ("ActivityDefinition".equals(codeString)) 10679 return new Enumeration<KnowledgeResourceType>(this, KnowledgeResourceType.ACTIVITYDEFINITION); 10680 if ("CodeSystem".equals(codeString)) 10681 return new Enumeration<KnowledgeResourceType>(this, KnowledgeResourceType.CODESYSTEM); 10682 if ("ConceptMap".equals(codeString)) 10683 return new Enumeration<KnowledgeResourceType>(this, KnowledgeResourceType.CONCEPTMAP); 10684 if ("Library".equals(codeString)) 10685 return new Enumeration<KnowledgeResourceType>(this, KnowledgeResourceType.LIBRARY); 10686 if ("Measure".equals(codeString)) 10687 return new Enumeration<KnowledgeResourceType>(this, KnowledgeResourceType.MEASURE); 10688 if ("PlanDefinition".equals(codeString)) 10689 return new Enumeration<KnowledgeResourceType>(this, KnowledgeResourceType.PLANDEFINITION); 10690 if ("StructureDefinition".equals(codeString)) 10691 return new Enumeration<KnowledgeResourceType>(this, KnowledgeResourceType.STRUCTUREDEFINITION); 10692 if ("StructureMap".equals(codeString)) 10693 return new Enumeration<KnowledgeResourceType>(this, KnowledgeResourceType.STRUCTUREMAP); 10694 if ("ValueSet".equals(codeString)) 10695 return new Enumeration<KnowledgeResourceType>(this, KnowledgeResourceType.VALUESET); 10696 throw new FHIRException("Unknown KnowledgeResourceType code '"+codeString+"'"); 10697 } 10698 public String toCode(KnowledgeResourceType code) { 10699 if (code == KnowledgeResourceType.ACTIVITYDEFINITION) 10700 return "ActivityDefinition"; 10701 if (code == KnowledgeResourceType.CODESYSTEM) 10702 return "CodeSystem"; 10703 if (code == KnowledgeResourceType.CONCEPTMAP) 10704 return "ConceptMap"; 10705 if (code == KnowledgeResourceType.LIBRARY) 10706 return "Library"; 10707 if (code == KnowledgeResourceType.MEASURE) 10708 return "Measure"; 10709 if (code == KnowledgeResourceType.PLANDEFINITION) 10710 return "PlanDefinition"; 10711 if (code == KnowledgeResourceType.STRUCTUREDEFINITION) 10712 return "StructureDefinition"; 10713 if (code == KnowledgeResourceType.STRUCTUREMAP) 10714 return "StructureMap"; 10715 if (code == KnowledgeResourceType.VALUESET) 10716 return "ValueSet"; 10717 return "?"; 10718 } 10719 public String toSystem(KnowledgeResourceType code) { 10720 return code.getSystem(); 10721 } 10722 } 10723 10724 public enum MessageEvent { 10725 /** 10726 * added to help the parsers 10727 */ 10728 NULL; 10729 public static MessageEvent fromCode(String codeString) throws FHIRException { 10730 if (codeString == null || "".equals(codeString)) 10731 return null; 10732 throw new FHIRException("Unknown MessageEvent code '"+codeString+"'"); 10733 } 10734 public String toCode() { 10735 switch (this) { 10736 default: return "?"; 10737 } 10738 } 10739 public String getSystem() { 10740 switch (this) { 10741 default: return "?"; 10742 } 10743 } 10744 public String getDefinition() { 10745 switch (this) { 10746 default: return "?"; 10747 } 10748 } 10749 public String getDisplay() { 10750 switch (this) { 10751 default: return "?"; 10752 } 10753 } 10754 } 10755 10756 public static class MessageEventEnumFactory implements EnumFactory<MessageEvent> { 10757 public MessageEvent fromCode(String codeString) throws IllegalArgumentException { 10758 if (codeString == null || "".equals(codeString)) 10759 if (codeString == null || "".equals(codeString)) 10760 return null; 10761 throw new IllegalArgumentException("Unknown MessageEvent code '"+codeString+"'"); 10762 } 10763 public Enumeration<MessageEvent> fromType(Base code) throws FHIRException { 10764 if (code == null) 10765 return null; 10766 if (code.isEmpty()) 10767 return new Enumeration<MessageEvent>(this); 10768 String codeString = ((PrimitiveType) code).asStringValue(); 10769 if (codeString == null || "".equals(codeString)) 10770 return null; 10771 throw new FHIRException("Unknown MessageEvent code '"+codeString+"'"); 10772 } 10773 public String toCode(MessageEvent code) { 10774 return "?"; 10775 } 10776 public String toSystem(MessageEvent code) { 10777 return code.getSystem(); 10778 } 10779 } 10780 10781 public enum NoteType { 10782 /** 10783 * Display the note. 10784 */ 10785 DISPLAY, 10786 /** 10787 * Print the note on the form. 10788 */ 10789 PRINT, 10790 /** 10791 * Print the note for the operator. 10792 */ 10793 PRINTOPER, 10794 /** 10795 * added to help the parsers 10796 */ 10797 NULL; 10798 public static NoteType fromCode(String codeString) throws FHIRException { 10799 if (codeString == null || "".equals(codeString)) 10800 return null; 10801 if ("display".equals(codeString)) 10802 return DISPLAY; 10803 if ("print".equals(codeString)) 10804 return PRINT; 10805 if ("printoper".equals(codeString)) 10806 return PRINTOPER; 10807 throw new FHIRException("Unknown NoteType code '"+codeString+"'"); 10808 } 10809 public String toCode() { 10810 switch (this) { 10811 case DISPLAY: return "display"; 10812 case PRINT: return "print"; 10813 case PRINTOPER: return "printoper"; 10814 default: return "?"; 10815 } 10816 } 10817 public String getSystem() { 10818 switch (this) { 10819 case DISPLAY: return "http://hl7.org/fhir/note-type"; 10820 case PRINT: return "http://hl7.org/fhir/note-type"; 10821 case PRINTOPER: return "http://hl7.org/fhir/note-type"; 10822 default: return "?"; 10823 } 10824 } 10825 public String getDefinition() { 10826 switch (this) { 10827 case DISPLAY: return "Display the note."; 10828 case PRINT: return "Print the note on the form."; 10829 case PRINTOPER: return "Print the note for the operator."; 10830 default: return "?"; 10831 } 10832 } 10833 public String getDisplay() { 10834 switch (this) { 10835 case DISPLAY: return "Display"; 10836 case PRINT: return "Print (Form)"; 10837 case PRINTOPER: return "Print (Operator)"; 10838 default: return "?"; 10839 } 10840 } 10841 } 10842 10843 public static class NoteTypeEnumFactory implements EnumFactory<NoteType> { 10844 public NoteType fromCode(String codeString) throws IllegalArgumentException { 10845 if (codeString == null || "".equals(codeString)) 10846 if (codeString == null || "".equals(codeString)) 10847 return null; 10848 if ("display".equals(codeString)) 10849 return NoteType.DISPLAY; 10850 if ("print".equals(codeString)) 10851 return NoteType.PRINT; 10852 if ("printoper".equals(codeString)) 10853 return NoteType.PRINTOPER; 10854 throw new IllegalArgumentException("Unknown NoteType code '"+codeString+"'"); 10855 } 10856 public Enumeration<NoteType> fromType(Base code) throws FHIRException { 10857 if (code == null) 10858 return null; 10859 if (code.isEmpty()) 10860 return new Enumeration<NoteType>(this); 10861 String codeString = ((PrimitiveType) code).asStringValue(); 10862 if (codeString == null || "".equals(codeString)) 10863 return null; 10864 if ("display".equals(codeString)) 10865 return new Enumeration<NoteType>(this, NoteType.DISPLAY); 10866 if ("print".equals(codeString)) 10867 return new Enumeration<NoteType>(this, NoteType.PRINT); 10868 if ("printoper".equals(codeString)) 10869 return new Enumeration<NoteType>(this, NoteType.PRINTOPER); 10870 throw new FHIRException("Unknown NoteType code '"+codeString+"'"); 10871 } 10872 public String toCode(NoteType code) { 10873 if (code == NoteType.DISPLAY) 10874 return "display"; 10875 if (code == NoteType.PRINT) 10876 return "print"; 10877 if (code == NoteType.PRINTOPER) 10878 return "printoper"; 10879 return "?"; 10880 } 10881 public String toSystem(NoteType code) { 10882 return code.getSystem(); 10883 } 10884 } 10885 10886 public enum PublicationStatus { 10887 /** 10888 * This resource is still under development and is not yet considered to be ready for normal use. 10889 */ 10890 DRAFT, 10891 /** 10892 * This resource is ready for normal use. 10893 */ 10894 ACTIVE, 10895 /** 10896 * This resource has been withdrawn or superseded and should no longer be used. 10897 */ 10898 RETIRED, 10899 /** 10900 * The authoring system does not know which of the status values currently applies for this resource. Note: This concept is not to be used for "other" - one of the listed statuses is presumed to apply, it's just not known which one. 10901 */ 10902 UNKNOWN, 10903 /** 10904 * added to help the parsers 10905 */ 10906 NULL; 10907 public static PublicationStatus fromCode(String codeString) throws FHIRException { 10908 if (codeString == null || "".equals(codeString)) 10909 return null; 10910 if ("draft".equals(codeString)) 10911 return DRAFT; 10912 if ("active".equals(codeString)) 10913 return ACTIVE; 10914 if ("retired".equals(codeString)) 10915 return RETIRED; 10916 if ("unknown".equals(codeString)) 10917 return UNKNOWN; 10918 throw new FHIRException("Unknown PublicationStatus code '"+codeString+"'"); 10919 } 10920 public String toCode() { 10921 switch (this) { 10922 case DRAFT: return "draft"; 10923 case ACTIVE: return "active"; 10924 case RETIRED: return "retired"; 10925 case UNKNOWN: return "unknown"; 10926 default: return "?"; 10927 } 10928 } 10929 public String getSystem() { 10930 switch (this) { 10931 case DRAFT: return "http://hl7.org/fhir/publication-status"; 10932 case ACTIVE: return "http://hl7.org/fhir/publication-status"; 10933 case RETIRED: return "http://hl7.org/fhir/publication-status"; 10934 case UNKNOWN: return "http://hl7.org/fhir/publication-status"; 10935 default: return "?"; 10936 } 10937 } 10938 public String getDefinition() { 10939 switch (this) { 10940 case DRAFT: return "This resource is still under development and is not yet considered to be ready for normal use."; 10941 case ACTIVE: return "This resource is ready for normal use."; 10942 case RETIRED: return "This resource has been withdrawn or superseded and should no longer be used."; 10943 case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this resource. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, it's just not known which one."; 10944 default: return "?"; 10945 } 10946 } 10947 public String getDisplay() { 10948 switch (this) { 10949 case DRAFT: return "Draft"; 10950 case ACTIVE: return "Active"; 10951 case RETIRED: return "Retired"; 10952 case UNKNOWN: return "Unknown"; 10953 default: return "?"; 10954 } 10955 } 10956 } 10957 10958 public static class PublicationStatusEnumFactory implements EnumFactory<PublicationStatus> { 10959 public PublicationStatus fromCode(String codeString) throws IllegalArgumentException { 10960 if (codeString == null || "".equals(codeString)) 10961 if (codeString == null || "".equals(codeString)) 10962 return null; 10963 if ("draft".equals(codeString)) 10964 return PublicationStatus.DRAFT; 10965 if ("active".equals(codeString)) 10966 return PublicationStatus.ACTIVE; 10967 if ("retired".equals(codeString)) 10968 return PublicationStatus.RETIRED; 10969 if ("unknown".equals(codeString)) 10970 return PublicationStatus.UNKNOWN; 10971 throw new IllegalArgumentException("Unknown PublicationStatus code '"+codeString+"'"); 10972 } 10973 public Enumeration<PublicationStatus> fromType(Base code) throws FHIRException { 10974 if (code == null) 10975 return null; 10976 if (code.isEmpty()) 10977 return new Enumeration<PublicationStatus>(this); 10978 String codeString = ((PrimitiveType) code).asStringValue(); 10979 if (codeString == null || "".equals(codeString)) 10980 return null; 10981 if ("draft".equals(codeString)) 10982 return new Enumeration<PublicationStatus>(this, PublicationStatus.DRAFT); 10983 if ("active".equals(codeString)) 10984 return new Enumeration<PublicationStatus>(this, PublicationStatus.ACTIVE); 10985 if ("retired".equals(codeString)) 10986 return new Enumeration<PublicationStatus>(this, PublicationStatus.RETIRED); 10987 if ("unknown".equals(codeString)) 10988 return new Enumeration<PublicationStatus>(this, PublicationStatus.UNKNOWN); 10989 throw new FHIRException("Unknown PublicationStatus code '"+codeString+"'"); 10990 } 10991 public String toCode(PublicationStatus code) { 10992 if (code == PublicationStatus.DRAFT) 10993 return "draft"; 10994 if (code == PublicationStatus.ACTIVE) 10995 return "active"; 10996 if (code == PublicationStatus.RETIRED) 10997 return "retired"; 10998 if (code == PublicationStatus.UNKNOWN) 10999 return "unknown"; 11000 return "?"; 11001 } 11002 public String toSystem(PublicationStatus code) { 11003 return code.getSystem(); 11004 } 11005 } 11006 11007 public enum RemittanceOutcome { 11008 /** 11009 * The Claim/Pre-authorization/Pre-determination has been received but processing has not begun. 11010 */ 11011 QUEUED, 11012 /** 11013 * The processing has completed without errors 11014 */ 11015 COMPLETE, 11016 /** 11017 * One or more errors have been detected in the Claim 11018 */ 11019 ERROR, 11020 /** 11021 * No errors have been detected in the Claim and some of the adjudication has been performed. 11022 */ 11023 PARTIAL, 11024 /** 11025 * added to help the parsers 11026 */ 11027 NULL; 11028 public static RemittanceOutcome fromCode(String codeString) throws FHIRException { 11029 if (codeString == null || "".equals(codeString)) 11030 return null; 11031 if ("queued".equals(codeString)) 11032 return QUEUED; 11033 if ("complete".equals(codeString)) 11034 return COMPLETE; 11035 if ("error".equals(codeString)) 11036 return ERROR; 11037 if ("partial".equals(codeString)) 11038 return PARTIAL; 11039 throw new FHIRException("Unknown RemittanceOutcome code '"+codeString+"'"); 11040 } 11041 public String toCode() { 11042 switch (this) { 11043 case QUEUED: return "queued"; 11044 case COMPLETE: return "complete"; 11045 case ERROR: return "error"; 11046 case PARTIAL: return "partial"; 11047 default: return "?"; 11048 } 11049 } 11050 public String getSystem() { 11051 switch (this) { 11052 case QUEUED: return "http://hl7.org/fhir/remittance-outcome"; 11053 case COMPLETE: return "http://hl7.org/fhir/remittance-outcome"; 11054 case ERROR: return "http://hl7.org/fhir/remittance-outcome"; 11055 case PARTIAL: return "http://hl7.org/fhir/remittance-outcome"; 11056 default: return "?"; 11057 } 11058 } 11059 public String getDefinition() { 11060 switch (this) { 11061 case QUEUED: return "The Claim/Pre-authorization/Pre-determination has been received but processing has not begun."; 11062 case COMPLETE: return "The processing has completed without errors"; 11063 case ERROR: return "One or more errors have been detected in the Claim"; 11064 case PARTIAL: return "No errors have been detected in the Claim and some of the adjudication has been performed."; 11065 default: return "?"; 11066 } 11067 } 11068 public String getDisplay() { 11069 switch (this) { 11070 case QUEUED: return "Queued"; 11071 case COMPLETE: return "Processing Complete"; 11072 case ERROR: return "Error"; 11073 case PARTIAL: return "Partial Processing"; 11074 default: return "?"; 11075 } 11076 } 11077 } 11078 11079 public static class RemittanceOutcomeEnumFactory implements EnumFactory<RemittanceOutcome> { 11080 public RemittanceOutcome fromCode(String codeString) throws IllegalArgumentException { 11081 if (codeString == null || "".equals(codeString)) 11082 if (codeString == null || "".equals(codeString)) 11083 return null; 11084 if ("queued".equals(codeString)) 11085 return RemittanceOutcome.QUEUED; 11086 if ("complete".equals(codeString)) 11087 return RemittanceOutcome.COMPLETE; 11088 if ("error".equals(codeString)) 11089 return RemittanceOutcome.ERROR; 11090 if ("partial".equals(codeString)) 11091 return RemittanceOutcome.PARTIAL; 11092 throw new IllegalArgumentException("Unknown RemittanceOutcome code '"+codeString+"'"); 11093 } 11094 public Enumeration<RemittanceOutcome> fromType(Base code) throws FHIRException { 11095 if (code == null) 11096 return null; 11097 if (code.isEmpty()) 11098 return new Enumeration<RemittanceOutcome>(this); 11099 String codeString = ((PrimitiveType) code).asStringValue(); 11100 if (codeString == null || "".equals(codeString)) 11101 return null; 11102 if ("queued".equals(codeString)) 11103 return new Enumeration<RemittanceOutcome>(this, RemittanceOutcome.QUEUED); 11104 if ("complete".equals(codeString)) 11105 return new Enumeration<RemittanceOutcome>(this, RemittanceOutcome.COMPLETE); 11106 if ("error".equals(codeString)) 11107 return new Enumeration<RemittanceOutcome>(this, RemittanceOutcome.ERROR); 11108 if ("partial".equals(codeString)) 11109 return new Enumeration<RemittanceOutcome>(this, RemittanceOutcome.PARTIAL); 11110 throw new FHIRException("Unknown RemittanceOutcome code '"+codeString+"'"); 11111 } 11112 public String toCode(RemittanceOutcome code) { 11113 if (code == RemittanceOutcome.QUEUED) 11114 return "queued"; 11115 if (code == RemittanceOutcome.COMPLETE) 11116 return "complete"; 11117 if (code == RemittanceOutcome.ERROR) 11118 return "error"; 11119 if (code == RemittanceOutcome.PARTIAL) 11120 return "partial"; 11121 return "?"; 11122 } 11123 public String toSystem(RemittanceOutcome code) { 11124 return code.getSystem(); 11125 } 11126 } 11127 11128 public enum RequestResourceType { 11129 /** 11130 * A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s). 11131 */ 11132 APPOINTMENT, 11133 /** 11134 * A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection. 11135 */ 11136 APPOINTMENTRESPONSE, 11137 /** 11138 * Healthcare plan for patient or group. 11139 */ 11140 CAREPLAN, 11141 /** 11142 * Claim, Pre-determination or Pre-authorization. 11143 */ 11144 CLAIM, 11145 /** 11146 * A request for information to be sent to a receiver. 11147 */ 11148 COMMUNICATIONREQUEST, 11149 /** 11150 * Legal Agreement. 11151 */ 11152 CONTRACT, 11153 /** 11154 * Medical device request. 11155 */ 11156 DEVICEREQUEST, 11157 /** 11158 * Enrollment request. 11159 */ 11160 ENROLLMENTREQUEST, 11161 /** 11162 * Guidance or advice relating to an immunization. 11163 */ 11164 IMMUNIZATIONRECOMMENDATION, 11165 /** 11166 * Ordering of medication for patient or group. 11167 */ 11168 MEDICATIONREQUEST, 11169 /** 11170 * Diet, formula or nutritional supplement request. 11171 */ 11172 NUTRITIONORDER, 11173 /** 11174 * A record of a request for service such as diagnostic investigations, treatments, or operations to be performed. 11175 */ 11176 SERVICEREQUEST, 11177 /** 11178 * Request for a medication, substance or device. 11179 */ 11180 SUPPLYREQUEST, 11181 /** 11182 * A task to be performed. 11183 */ 11184 TASK, 11185 /** 11186 * Prescription for vision correction products for a patient. 11187 */ 11188 VISIONPRESCRIPTION, 11189 /** 11190 * added to help the parsers 11191 */ 11192 NULL; 11193 public static RequestResourceType fromCode(String codeString) throws FHIRException { 11194 if (codeString == null || "".equals(codeString)) 11195 return null; 11196 if ("Appointment".equals(codeString)) 11197 return APPOINTMENT; 11198 if ("AppointmentResponse".equals(codeString)) 11199 return APPOINTMENTRESPONSE; 11200 if ("CarePlan".equals(codeString)) 11201 return CAREPLAN; 11202 if ("Claim".equals(codeString)) 11203 return CLAIM; 11204 if ("CommunicationRequest".equals(codeString)) 11205 return COMMUNICATIONREQUEST; 11206 if ("Contract".equals(codeString)) 11207 return CONTRACT; 11208 if ("DeviceRequest".equals(codeString)) 11209 return DEVICEREQUEST; 11210 if ("EnrollmentRequest".equals(codeString)) 11211 return ENROLLMENTREQUEST; 11212 if ("ImmunizationRecommendation".equals(codeString)) 11213 return IMMUNIZATIONRECOMMENDATION; 11214 if ("MedicationRequest".equals(codeString)) 11215 return MEDICATIONREQUEST; 11216 if ("NutritionOrder".equals(codeString)) 11217 return NUTRITIONORDER; 11218 if ("ServiceRequest".equals(codeString)) 11219 return SERVICEREQUEST; 11220 if ("SupplyRequest".equals(codeString)) 11221 return SUPPLYREQUEST; 11222 if ("Task".equals(codeString)) 11223 return TASK; 11224 if ("VisionPrescription".equals(codeString)) 11225 return VISIONPRESCRIPTION; 11226 throw new FHIRException("Unknown RequestResourceType code '"+codeString+"'"); 11227 } 11228 public String toCode() { 11229 switch (this) { 11230 case APPOINTMENT: return "Appointment"; 11231 case APPOINTMENTRESPONSE: return "AppointmentResponse"; 11232 case CAREPLAN: return "CarePlan"; 11233 case CLAIM: return "Claim"; 11234 case COMMUNICATIONREQUEST: return "CommunicationRequest"; 11235 case CONTRACT: return "Contract"; 11236 case DEVICEREQUEST: return "DeviceRequest"; 11237 case ENROLLMENTREQUEST: return "EnrollmentRequest"; 11238 case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation"; 11239 case MEDICATIONREQUEST: return "MedicationRequest"; 11240 case NUTRITIONORDER: return "NutritionOrder"; 11241 case SERVICEREQUEST: return "ServiceRequest"; 11242 case SUPPLYREQUEST: return "SupplyRequest"; 11243 case TASK: return "Task"; 11244 case VISIONPRESCRIPTION: return "VisionPrescription"; 11245 default: return "?"; 11246 } 11247 } 11248 public String getSystem() { 11249 switch (this) { 11250 case APPOINTMENT: return "http://hl7.org/fhir/request-resource-types"; 11251 case APPOINTMENTRESPONSE: return "http://hl7.org/fhir/request-resource-types"; 11252 case CAREPLAN: return "http://hl7.org/fhir/request-resource-types"; 11253 case CLAIM: return "http://hl7.org/fhir/request-resource-types"; 11254 case COMMUNICATIONREQUEST: return "http://hl7.org/fhir/request-resource-types"; 11255 case CONTRACT: return "http://hl7.org/fhir/request-resource-types"; 11256 case DEVICEREQUEST: return "http://hl7.org/fhir/request-resource-types"; 11257 case ENROLLMENTREQUEST: return "http://hl7.org/fhir/request-resource-types"; 11258 case IMMUNIZATIONRECOMMENDATION: return "http://hl7.org/fhir/request-resource-types"; 11259 case MEDICATIONREQUEST: return "http://hl7.org/fhir/request-resource-types"; 11260 case NUTRITIONORDER: return "http://hl7.org/fhir/request-resource-types"; 11261 case SERVICEREQUEST: return "http://hl7.org/fhir/request-resource-types"; 11262 case SUPPLYREQUEST: return "http://hl7.org/fhir/request-resource-types"; 11263 case TASK: return "http://hl7.org/fhir/request-resource-types"; 11264 case VISIONPRESCRIPTION: return "http://hl7.org/fhir/request-resource-types"; 11265 default: return "?"; 11266 } 11267 } 11268 public String getDefinition() { 11269 switch (this) { 11270 case APPOINTMENT: return "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)."; 11271 case APPOINTMENTRESPONSE: return "A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection."; 11272 case CAREPLAN: return "Healthcare plan for patient or group."; 11273 case CLAIM: return "Claim, Pre-determination or Pre-authorization."; 11274 case COMMUNICATIONREQUEST: return "A request for information to be sent to a receiver."; 11275 case CONTRACT: return "Legal Agreement."; 11276 case DEVICEREQUEST: return "Medical device request."; 11277 case ENROLLMENTREQUEST: return "Enrollment request."; 11278 case IMMUNIZATIONRECOMMENDATION: return "Guidance or advice relating to an immunization."; 11279 case MEDICATIONREQUEST: return "Ordering of medication for patient or group."; 11280 case NUTRITIONORDER: return "Diet, formula or nutritional supplement request."; 11281 case SERVICEREQUEST: return "A record of a request for service such as diagnostic investigations, treatments, or operations to be performed."; 11282 case SUPPLYREQUEST: return "Request for a medication, substance or device."; 11283 case TASK: return "A task to be performed."; 11284 case VISIONPRESCRIPTION: return "Prescription for vision correction products for a patient."; 11285 default: return "?"; 11286 } 11287 } 11288 public String getDisplay() { 11289 switch (this) { 11290 case APPOINTMENT: return "Appointment"; 11291 case APPOINTMENTRESPONSE: return "AppointmentResponse"; 11292 case CAREPLAN: return "CarePlan"; 11293 case CLAIM: return "Claim"; 11294 case COMMUNICATIONREQUEST: return "CommunicationRequest"; 11295 case CONTRACT: return "Contract"; 11296 case DEVICEREQUEST: return "DeviceRequest"; 11297 case ENROLLMENTREQUEST: return "EnrollmentRequest"; 11298 case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation"; 11299 case MEDICATIONREQUEST: return "MedicationRequest"; 11300 case NUTRITIONORDER: return "NutritionOrder"; 11301 case SERVICEREQUEST: return "ServiceRequest"; 11302 case SUPPLYREQUEST: return "SupplyRequest"; 11303 case TASK: return "Task"; 11304 case VISIONPRESCRIPTION: return "VisionPrescription"; 11305 default: return "?"; 11306 } 11307 } 11308 } 11309 11310 public static class RequestResourceTypeEnumFactory implements EnumFactory<RequestResourceType> { 11311 public RequestResourceType fromCode(String codeString) throws IllegalArgumentException { 11312 if (codeString == null || "".equals(codeString)) 11313 if (codeString == null || "".equals(codeString)) 11314 return null; 11315 if ("Appointment".equals(codeString)) 11316 return RequestResourceType.APPOINTMENT; 11317 if ("AppointmentResponse".equals(codeString)) 11318 return RequestResourceType.APPOINTMENTRESPONSE; 11319 if ("CarePlan".equals(codeString)) 11320 return RequestResourceType.CAREPLAN; 11321 if ("Claim".equals(codeString)) 11322 return RequestResourceType.CLAIM; 11323 if ("CommunicationRequest".equals(codeString)) 11324 return RequestResourceType.COMMUNICATIONREQUEST; 11325 if ("Contract".equals(codeString)) 11326 return RequestResourceType.CONTRACT; 11327 if ("DeviceRequest".equals(codeString)) 11328 return RequestResourceType.DEVICEREQUEST; 11329 if ("EnrollmentRequest".equals(codeString)) 11330 return RequestResourceType.ENROLLMENTREQUEST; 11331 if ("ImmunizationRecommendation".equals(codeString)) 11332 return RequestResourceType.IMMUNIZATIONRECOMMENDATION; 11333 if ("MedicationRequest".equals(codeString)) 11334 return RequestResourceType.MEDICATIONREQUEST; 11335 if ("NutritionOrder".equals(codeString)) 11336 return RequestResourceType.NUTRITIONORDER; 11337 if ("ServiceRequest".equals(codeString)) 11338 return RequestResourceType.SERVICEREQUEST; 11339 if ("SupplyRequest".equals(codeString)) 11340 return RequestResourceType.SUPPLYREQUEST; 11341 if ("Task".equals(codeString)) 11342 return RequestResourceType.TASK; 11343 if ("VisionPrescription".equals(codeString)) 11344 return RequestResourceType.VISIONPRESCRIPTION; 11345 throw new IllegalArgumentException("Unknown RequestResourceType code '"+codeString+"'"); 11346 } 11347 public Enumeration<RequestResourceType> fromType(Base code) throws FHIRException { 11348 if (code == null) 11349 return null; 11350 if (code.isEmpty()) 11351 return new Enumeration<RequestResourceType>(this); 11352 String codeString = ((PrimitiveType) code).asStringValue(); 11353 if (codeString == null || "".equals(codeString)) 11354 return null; 11355 if ("Appointment".equals(codeString)) 11356 return new Enumeration<RequestResourceType>(this, RequestResourceType.APPOINTMENT); 11357 if ("AppointmentResponse".equals(codeString)) 11358 return new Enumeration<RequestResourceType>(this, RequestResourceType.APPOINTMENTRESPONSE); 11359 if ("CarePlan".equals(codeString)) 11360 return new Enumeration<RequestResourceType>(this, RequestResourceType.CAREPLAN); 11361 if ("Claim".equals(codeString)) 11362 return new Enumeration<RequestResourceType>(this, RequestResourceType.CLAIM); 11363 if ("CommunicationRequest".equals(codeString)) 11364 return new Enumeration<RequestResourceType>(this, RequestResourceType.COMMUNICATIONREQUEST); 11365 if ("Contract".equals(codeString)) 11366 return new Enumeration<RequestResourceType>(this, RequestResourceType.CONTRACT); 11367 if ("DeviceRequest".equals(codeString)) 11368 return new Enumeration<RequestResourceType>(this, RequestResourceType.DEVICEREQUEST); 11369 if ("EnrollmentRequest".equals(codeString)) 11370 return new Enumeration<RequestResourceType>(this, RequestResourceType.ENROLLMENTREQUEST); 11371 if ("ImmunizationRecommendation".equals(codeString)) 11372 return new Enumeration<RequestResourceType>(this, RequestResourceType.IMMUNIZATIONRECOMMENDATION); 11373 if ("MedicationRequest".equals(codeString)) 11374 return new Enumeration<RequestResourceType>(this, RequestResourceType.MEDICATIONREQUEST); 11375 if ("NutritionOrder".equals(codeString)) 11376 return new Enumeration<RequestResourceType>(this, RequestResourceType.NUTRITIONORDER); 11377 if ("ServiceRequest".equals(codeString)) 11378 return new Enumeration<RequestResourceType>(this, RequestResourceType.SERVICEREQUEST); 11379 if ("SupplyRequest".equals(codeString)) 11380 return new Enumeration<RequestResourceType>(this, RequestResourceType.SUPPLYREQUEST); 11381 if ("Task".equals(codeString)) 11382 return new Enumeration<RequestResourceType>(this, RequestResourceType.TASK); 11383 if ("VisionPrescription".equals(codeString)) 11384 return new Enumeration<RequestResourceType>(this, RequestResourceType.VISIONPRESCRIPTION); 11385 throw new FHIRException("Unknown RequestResourceType code '"+codeString+"'"); 11386 } 11387 public String toCode(RequestResourceType code) { 11388 if (code == RequestResourceType.APPOINTMENT) 11389 return "Appointment"; 11390 if (code == RequestResourceType.APPOINTMENTRESPONSE) 11391 return "AppointmentResponse"; 11392 if (code == RequestResourceType.CAREPLAN) 11393 return "CarePlan"; 11394 if (code == RequestResourceType.CLAIM) 11395 return "Claim"; 11396 if (code == RequestResourceType.COMMUNICATIONREQUEST) 11397 return "CommunicationRequest"; 11398 if (code == RequestResourceType.CONTRACT) 11399 return "Contract"; 11400 if (code == RequestResourceType.DEVICEREQUEST) 11401 return "DeviceRequest"; 11402 if (code == RequestResourceType.ENROLLMENTREQUEST) 11403 return "EnrollmentRequest"; 11404 if (code == RequestResourceType.IMMUNIZATIONRECOMMENDATION) 11405 return "ImmunizationRecommendation"; 11406 if (code == RequestResourceType.MEDICATIONREQUEST) 11407 return "MedicationRequest"; 11408 if (code == RequestResourceType.NUTRITIONORDER) 11409 return "NutritionOrder"; 11410 if (code == RequestResourceType.SERVICEREQUEST) 11411 return "ServiceRequest"; 11412 if (code == RequestResourceType.SUPPLYREQUEST) 11413 return "SupplyRequest"; 11414 if (code == RequestResourceType.TASK) 11415 return "Task"; 11416 if (code == RequestResourceType.VISIONPRESCRIPTION) 11417 return "VisionPrescription"; 11418 return "?"; 11419 } 11420 public String toSystem(RequestResourceType code) { 11421 return code.getSystem(); 11422 } 11423 } 11424 11425 public enum ResourceType { 11426 /** 11427 * A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centers, etc. 11428 */ 11429 ACCOUNT, 11430 /** 11431 * This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context. 11432 */ 11433 ACTIVITYDEFINITION, 11434 /** 11435 * A pharmaceutical product described in terms of its composition and dose form. 11436 */ 11437 ADMINISTRABLEPRODUCTDEFINITION, 11438 /** 11439 * An event (i.e. any change to current patient status) that may be related to unintended effects on a patient or research subject. The unintended effects may require additional monitoring, treatment or hospitalization or may result in death. The AdverseEvent resource also extends to potential or avoided events that could have had such effects. 11440 */ 11441 ADVERSEEVENT, 11442 /** 11443 * Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance. 11444 */ 11445 ALLERGYINTOLERANCE, 11446 /** 11447 * A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s). 11448 */ 11449 APPOINTMENT, 11450 /** 11451 * A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection. 11452 */ 11453 APPOINTMENTRESPONSE, 11454 /** 11455 * A record of an event relevant for purposes such as operations, privacy, security, maintenance, and performance analysis. 11456 */ 11457 AUDITEVENT, 11458 /** 11459 * Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification. 11460 */ 11461 BASIC, 11462 /** 11463 * A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc. 11464 */ 11465 BINARY, 11466 /** 11467 * A material substance originating from a biological entity intended to be transplanted or infused 11468into another (possibly the same) biological entity. 11469 */ 11470 BIOLOGICALLYDERIVEDPRODUCT, 11471 /** 11472 * Record details about an anatomical structure. This resource may be used when a coded concept does not provide the necessary detail needed for the use case. 11473 */ 11474 BODYSTRUCTURE, 11475 /** 11476 * A container for a collection of resources. 11477 */ 11478 BUNDLE, 11479 /** 11480 * A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation. 11481 */ 11482 CAPABILITYSTATEMENT, 11483 /** 11484 * A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation. 11485 */ 11486 CAPABILITYSTATEMENT2, 11487 /** 11488 * Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions. 11489 */ 11490 CAREPLAN, 11491 /** 11492 * The Care Team includes all the people and organizations who plan to participate in the coordination and delivery of care. 11493 */ 11494 CARETEAM, 11495 /** 11496 * Catalog entries are wrappers that contextualize items included in a catalog. 11497 */ 11498 CATALOGENTRY, 11499 /** 11500 * The resource ChargeItem describes the provision of healthcare provider products for a certain patient, therefore referring not only to the product, but containing in addition details of the provision, like date, time, amounts and participating organizations and persons. Main Usage of the ChargeItem is to enable the billing process and internal cost allocation. 11501 */ 11502 CHARGEITEM, 11503 /** 11504 * The ChargeItemDefinition resource provides the properties that apply to the (billing) codes necessary to calculate costs and prices. The properties may differ largely depending on type and realm, therefore this resource gives only a rough structure and requires profiling for each type of billing code system. 11505 */ 11506 CHARGEITEMDEFINITION, 11507 /** 11508 * A provider issued list of professional services and products which have been provided, or are to be provided, to a patient which is sent to an insurer for reimbursement. 11509 */ 11510 CLAIM, 11511 /** 11512 * This resource provides the adjudication details from the processing of a Claim resource. 11513 */ 11514 CLAIMRESPONSE, 11515 /** 11516 * A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. This resource is called "ClinicalImpression" rather than "ClinicalAssessment" to avoid confusion with the recording of assessment tools such as Apgar score. 11517 */ 11518 CLINICALIMPRESSION, 11519 /** 11520 * A single item of clinical particulars - an indication, contraindication, interaction etc. for a medicinal product. 11521 */ 11522 CLINICALUSEISSUE, 11523 /** 11524 * The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content. 11525 */ 11526 CODESYSTEM, 11527 /** 11528 * An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency communication to a provider/reporter in response to a case report for a reportable condition. 11529 */ 11530 COMMUNICATION, 11531 /** 11532 * A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition. 11533 */ 11534 COMMUNICATIONREQUEST, 11535 /** 11536 * A compartment definition that defines how resources are accessed on a server. 11537 */ 11538 COMPARTMENTDEFINITION, 11539 /** 11540 * A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.). 11541 */ 11542 COMPOSITION, 11543 /** 11544 * A statement of relationships from one set of concepts to one or more other concepts - either concepts in code systems, or data element/data element concepts, or classes in class models. 11545 */ 11546 CONCEPTMAP, 11547 /** 11548 * A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern. 11549 */ 11550 CONDITION, 11551 /** 11552 * A definition of a condition and information relevant to managing it. 11553 */ 11554 CONDITIONDEFINITION, 11555 /** 11556 * A record of a healthcare consumer’s choices or choices made on their behalf by a third party, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time. 11557 */ 11558 CONSENT, 11559 /** 11560 * Legally enforceable, formally recorded unilateral or bilateral directive i.e., a policy or agreement. 11561 */ 11562 CONTRACT, 11563 /** 11564 * Financial instrument which may be used to reimburse or pay for health care products and services. Includes both insurance and self-payment. 11565 */ 11566 COVERAGE, 11567 /** 11568 * The CoverageEligibilityRequest provides patient and insurance coverage information to an insurer for them to respond, in the form of an CoverageEligibilityResponse, with information regarding whether the stated coverage is valid and in-force and optionally to provide the insurance details of the policy. 11569 */ 11570 COVERAGEELIGIBILITYREQUEST, 11571 /** 11572 * This resource provides eligibility and plan details from the processing of an CoverageEligibilityRequest resource. 11573 */ 11574 COVERAGEELIGIBILITYRESPONSE, 11575 /** 11576 * Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc. 11577 */ 11578 DETECTEDISSUE, 11579 /** 11580 * A type of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device. 11581 */ 11582 DEVICE, 11583 /** 11584 * The characteristics, operational status and capabilities of a medical-related component of a medical device. 11585 */ 11586 DEVICEDEFINITION, 11587 /** 11588 * Describes a measurement, calculation or setting capability of a medical device. 11589 */ 11590 DEVICEMETRIC, 11591 /** 11592 * Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker. 11593 */ 11594 DEVICEREQUEST, 11595 /** 11596 * A record of a device being used by a patient where the record is the result of a report from the patient or another clinician. 11597 */ 11598 DEVICEUSESTATEMENT, 11599 /** 11600 * The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports. 11601 */ 11602 DIAGNOSTICREPORT, 11603 /** 11604 * A collection of documents compiled for a purpose together with metadata that applies to the collection. 11605 */ 11606 DOCUMENTMANIFEST, 11607 /** 11608 * A reference to a document of any kind for any purpose. While the term “document” implies a more narrow focus, for this resource this "document" encompasses *any* seralized object with a mime-type, so includes formal patient centric documents (CDA), clniical notes, scanned paper, non-patient specific documents like policy text, as well as a photo, video, or audio recording acquired or used in healthcare. The DocumentReference resource provides metadata about the document so that the document can be discovered and managed. The actual content may be inline base64 encoded data or provided by direct reference. 11609 */ 11610 DOCUMENTREFERENCE, 11611 /** 11612 * A resource that includes narrative, extensions, and contained resources. 11613 */ 11614 DOMAINRESOURCE, 11615 /** 11616 * An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient. 11617 */ 11618 ENCOUNTER, 11619 /** 11620 * The technical details of an endpoint that can be used for electronic services, such as for web services providing XDS.b or a REST endpoint for another FHIR server. This may include any security context information. 11621 */ 11622 ENDPOINT, 11623 /** 11624 * This resource provides the insurance enrollment details to the insurer regarding a specified coverage. 11625 */ 11626 ENROLLMENTREQUEST, 11627 /** 11628 * This resource provides enrollment and plan details from the processing of an EnrollmentRequest resource. 11629 */ 11630 ENROLLMENTRESPONSE, 11631 /** 11632 * An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time. 11633 */ 11634 EPISODEOFCARE, 11635 /** 11636 * The EventDefinition resource provides a reusable description of when a particular event can occur. 11637 */ 11638 EVENTDEFINITION, 11639 /** 11640 * This represents statistics, certainty, both the intended and actual population, and evidence variables. 11641 */ 11642 EVIDENCE, 11643 /** 11644 * The EvidenceVariable resource describes a "PICO" element that knowledge (evidence, assertion, recommendation) is about. 11645 */ 11646 EVIDENCEVARIABLE, 11647 /** 11648 * Example of workflow instance. 11649 */ 11650 EXAMPLESCENARIO, 11651 /** 11652 * This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided. 11653 */ 11654 EXPLANATIONOFBENEFIT, 11655 /** 11656 * Significant health conditions for a person related to the patient relevant in the context of care for the patient. 11657 */ 11658 FAMILYMEMBERHISTORY, 11659 /** 11660 * Prospective warnings of potential issues when providing care to the patient. 11661 */ 11662 FLAG, 11663 /** 11664 * Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc. 11665 */ 11666 GOAL, 11667 /** 11668 * A formal computable definition of a graph of resources - that is, a coherent set of resources that form a graph by following references. The Graph Definition resource defines a set and makes rules about the set. 11669 */ 11670 GRAPHDEFINITION, 11671 /** 11672 * Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively, and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization. 11673 */ 11674 GROUP, 11675 /** 11676 * A guidance response is the formal response to a guidance request, including any output parameters returned by the evaluation, as well as the description of any proposed actions to be taken. 11677 */ 11678 GUIDANCERESPONSE, 11679 /** 11680 * The details of a healthcare service available at a location. 11681 */ 11682 HEALTHCARESERVICE, 11683 /** 11684 * Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities. 11685 */ 11686 IMAGINGSTUDY, 11687 /** 11688 * Describes the event of a patient being administered a vaccine or a record of an immunization as reported by a patient, a clinician or another party. 11689 */ 11690 IMMUNIZATION, 11691 /** 11692 * Describes a comparison of an immunization event against published recommendations to determine if the administration is "valid" in relation to those recommendations. 11693 */ 11694 IMMUNIZATIONEVALUATION, 11695 /** 11696 * A patient's point-in-time set of recommendations (i.e. forecasting) according to a published schedule with optional supporting justification. 11697 */ 11698 IMMUNIZATIONRECOMMENDATION, 11699 /** 11700 * A set of rules of how a particular interoperability or standards problem is solved - typically through the use of FHIR resources. This resource is used to gather all the parts of an implementation guide into a logical whole and to publish a computable definition of all the parts. 11701 */ 11702 IMPLEMENTATIONGUIDE, 11703 /** 11704 * An ingredient of a manufactured item or pharmaceutical product. 11705 */ 11706 INGREDIENT, 11707 /** 11708 * Details of a Health Insurance product/plan provided by an organization. 11709 */ 11710 INSURANCEPLAN, 11711 /** 11712 * Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose. 11713 */ 11714 INVOICE, 11715 /** 11716 * The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets. 11717 */ 11718 LIBRARY, 11719 /** 11720 * Identifies two or more records (resource instances) that refer to the same real-world "occurrence". 11721 */ 11722 LINKAGE, 11723 /** 11724 * A list is a curated collection of resources. 11725 */ 11726 LIST, 11727 /** 11728 * Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated. 11729 */ 11730 LOCATION, 11731 /** 11732 * The manufactured item as contained in the packaged medicinal product. 11733 */ 11734 MANUFACTUREDITEMDEFINITION, 11735 /** 11736 * The Measure resource provides the definition of a quality measure. 11737 */ 11738 MEASURE, 11739 /** 11740 * The MeasureReport resource contains the results of the calculation of a measure; and optionally a reference to the resources involved in that calculation. 11741 */ 11742 MEASUREREPORT, 11743 /** 11744 * This resource is primarily used for the identification and definition of a medication for the purposes of prescribing, dispensing, and administering a medication as well as for making statements about medication use. 11745 */ 11746 MEDICATION, 11747 /** 11748 * Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner. 11749 */ 11750 MEDICATIONADMINISTRATION, 11751 /** 11752 * Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order. 11753 */ 11754 MEDICATIONDISPENSE, 11755 /** 11756 * Information about a medication that is used to support knowledge. 11757 */ 11758 MEDICATIONKNOWLEDGE, 11759 /** 11760 * An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called "MedicationRequest" rather than "MedicationPrescription" or "MedicationOrder" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns. 11761 */ 11762 MEDICATIONREQUEST, 11763 /** 11764 * A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. 11765 11766The primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information. 11767 */ 11768 MEDICATIONUSAGE, 11769 /** 11770 * Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use). 11771 */ 11772 MEDICINALPRODUCTDEFINITION, 11773 /** 11774 * Defines the characteristics of a message that can be shared between systems, including the type of event that initiates the message, the content to be transmitted and what response(s), if any, are permitted. 11775 */ 11776 MESSAGEDEFINITION, 11777 /** 11778 * The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle. 11779 */ 11780 MESSAGEHEADER, 11781 /** 11782 * Raw data describing a biological sequence. 11783 */ 11784 MOLECULARSEQUENCE, 11785 /** 11786 * A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a "System" used within the Identifier and Coding data types. 11787 */ 11788 NAMINGSYSTEM, 11789 /** 11790 * A record of food or fluid that is being consumed by a patient. A NutritionIntake may indicate that the patient may be consuming the food or fluid now or has consumed the food or fluid in the past. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay or through an app that tracks food or fluids consumed. The consumption information may come from sources such as the patient's memory, from a nutrition label, or from a clinician documenting observed intake. 11791 */ 11792 NUTRITIONINTAKE, 11793 /** 11794 * A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident. 11795 */ 11796 NUTRITIONORDER, 11797 /** 11798 * Measurements and simple assertions made about a patient, device or other subject. 11799 */ 11800 OBSERVATION, 11801 /** 11802 * Set of definitional characteristics for a kind of observation or measurement produced or consumed by an orderable health care service. 11803 */ 11804 OBSERVATIONDEFINITION, 11805 /** 11806 * A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction). 11807 */ 11808 OPERATIONDEFINITION, 11809 /** 11810 * A collection of error, warning, or information messages that result from a system action. 11811 */ 11812 OPERATIONOUTCOME, 11813 /** 11814 * A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, etc. 11815 */ 11816 ORGANIZATION, 11817 /** 11818 * Defines an affiliation/assotiation/relationship between 2 distinct oganizations, that is not a part-of relationship/sub-division relationship. 11819 */ 11820 ORGANIZATIONAFFILIATION, 11821 /** 11822 * A medicinal product in a container or package. 11823 */ 11824 PACKAGEDPRODUCTDEFINITION, 11825 /** 11826 * This resource is a non-persisted resource used to pass information into and back from an [operation](operations.html). It has no other use, and there is no RESTful endpoint associated with it. 11827 */ 11828 PARAMETERS, 11829 /** 11830 * Demographics and other administrative information about an individual or animal receiving care or other health-related services. 11831 */ 11832 PATIENT, 11833 /** 11834 * This resource provides the status of the payment for goods and services rendered, and the request and response resource references. 11835 */ 11836 PAYMENTNOTICE, 11837 /** 11838 * This resource provides the details including amount of a payment and allocates the payment items being paid. 11839 */ 11840 PAYMENTRECONCILIATION, 11841 /** 11842 * Demographics and administrative information about a person independent of a specific health-related context. 11843 */ 11844 PERSON, 11845 /** 11846 * This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols. 11847 */ 11848 PLANDEFINITION, 11849 /** 11850 * A person who is directly or indirectly involved in the provisioning of healthcare. 11851 */ 11852 PRACTITIONER, 11853 /** 11854 * A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time. 11855 */ 11856 PRACTITIONERROLE, 11857 /** 11858 * An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy. 11859 */ 11860 PROCEDURE, 11861 /** 11862 * Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies. 11863 */ 11864 PROVENANCE, 11865 /** 11866 * A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection. 11867 */ 11868 QUESTIONNAIRE, 11869 /** 11870 * A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to. 11871 */ 11872 QUESTIONNAIRERESPONSE, 11873 /** 11874 * The regulatory authorization of a medicinal product. 11875 */ 11876 REGULATEDAUTHORIZATION, 11877 /** 11878 * Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process. 11879 */ 11880 RELATEDPERSON, 11881 /** 11882 * A group of related requests that can be used to capture intended activities that have inter-dependencies such as "give this medication after that one". 11883 */ 11884 REQUESTGROUP, 11885 /** 11886 * A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects. 11887 */ 11888 RESEARCHSTUDY, 11889 /** 11890 * A physical entity which is the primary unit of operational and/or administrative interest in a study. 11891 */ 11892 RESEARCHSUBJECT, 11893 /** 11894 * This is the base resource type for everything. 11895 */ 11896 RESOURCE, 11897 /** 11898 * An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome. 11899 */ 11900 RISKASSESSMENT, 11901 /** 11902 * A container for slots of time that may be available for booking appointments. 11903 */ 11904 SCHEDULE, 11905 /** 11906 * A search parameter that defines a named search item that can be used to search/filter on a resource. 11907 */ 11908 SEARCHPARAMETER, 11909 /** 11910 * A record of a request for service such as diagnostic investigations, treatments, or operations to be performed. 11911 */ 11912 SERVICEREQUEST, 11913 /** 11914 * A slot of time on a schedule that may be available for booking appointments. 11915 */ 11916 SLOT, 11917 /** 11918 * A sample to be used for analysis. 11919 */ 11920 SPECIMEN, 11921 /** 11922 * A kind of specimen with associated set of requirements. 11923 */ 11924 SPECIMENDEFINITION, 11925 /** 11926 * A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions and constraints on resources and data types. 11927 */ 11928 STRUCTUREDEFINITION, 11929 /** 11930 * A Map of relationships between 2 structures that can be used to transform data. 11931 */ 11932 STRUCTUREMAP, 11933 /** 11934 * The subscription resource describes a particular client's request to be notified about a Topic. 11935 */ 11936 SUBSCRIPTION, 11937 /** 11938 * A homogeneous material with a definite composition. 11939 */ 11940 SUBSTANCE, 11941 /** 11942 * The detailed description of a substance, typically at a level beyond what is used for prescribing. 11943 */ 11944 SUBSTANCEDEFINITION, 11945 /** 11946 * Nucleic acids are defined by three distinct elements: the base, sugar and linkage. Individual substance/moiety IDs will be created for each of these elements. The nucleotide sequence will be always entered in the 5’-3’ direction. 11947 */ 11948 SUBSTANCENUCLEICACID, 11949 /** 11950 * Todo. 11951 */ 11952 SUBSTANCEPOLYMER, 11953 /** 11954 * A SubstanceProtein is defined as a single unit of a linear amino acid sequence, or a combination of subunits that are either covalently linked or have a defined invariant stoichiometric relationship. This includes all synthetic, recombinant and purified SubstanceProteins of defined sequence, whether the use is therapeutic or prophylactic. This set of elements will be used to describe albumins, coagulation factors, cytokines, growth factors, peptide/SubstanceProtein hormones, enzymes, toxins, toxoids, recombinant vaccines, and immunomodulators. 11955 */ 11956 SUBSTANCEPROTEIN, 11957 /** 11958 * Todo. 11959 */ 11960 SUBSTANCEREFERENCEINFORMATION, 11961 /** 11962 * Source material shall capture information on the taxonomic and anatomical origins as well as the fraction of a material that can result in or can be modified to form a substance. This set of data elements shall be used to define polymer substances isolated from biological matrices. Taxonomic and anatomical origins shall be described using a controlled vocabulary as required. This information is captured for naturally derived polymers ( . starch) and structurally diverse substances. For Organisms belonging to the Kingdom Plantae the Substance level defines the fresh material of a single species or infraspecies, the Herbal Drug and the Herbal preparation. For Herbal preparations, the fraction information will be captured at the Substance information level and additional information for herbal extracts will be captured at the Specified Substance Group 1 information level. See for further explanation the Substance Class: Structurally Diverse and the herbal annex. 11963 */ 11964 SUBSTANCESOURCEMATERIAL, 11965 /** 11966 * Record of delivery of what is supplied. 11967 */ 11968 SUPPLYDELIVERY, 11969 /** 11970 * A record of a request for a medication, substance or device used in the healthcare setting. 11971 */ 11972 SUPPLYREQUEST, 11973 /** 11974 * A task to be performed. 11975 */ 11976 TASK, 11977 /** 11978 * A TerminologyCapabilities resource documents a set of capabilities (behaviors) of a FHIR Terminology Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation. 11979 */ 11980 TERMINOLOGYCAPABILITIES, 11981 /** 11982 * A summary of information based on the results of executing a TestScript. 11983 */ 11984 TESTREPORT, 11985 /** 11986 * A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification. 11987 */ 11988 TESTSCRIPT, 11989 /** 11990 * Describes a stream of resource state changes identified by trigger criteria and annotated with labels useful to filter projections from this topic. 11991 */ 11992 TOPIC, 11993 /** 11994 * A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html). 11995 */ 11996 VALUESET, 11997 /** 11998 * Describes validation requirements, source(s), status and dates for one or more elements. 11999 */ 12000 VERIFICATIONRESULT, 12001 /** 12002 * An authorization for the provision of glasses and/or contact lenses to a patient. 12003 */ 12004 VISIONPRESCRIPTION, 12005 /** 12006 * added to help the parsers 12007 */ 12008 NULL; 12009 public static ResourceType fromCode(String codeString) throws FHIRException { 12010 if (codeString == null || "".equals(codeString)) 12011 return null; 12012 if ("Account".equals(codeString)) 12013 return ACCOUNT; 12014 if ("ActivityDefinition".equals(codeString)) 12015 return ACTIVITYDEFINITION; 12016 if ("AdministrableProductDefinition".equals(codeString)) 12017 return ADMINISTRABLEPRODUCTDEFINITION; 12018 if ("AdverseEvent".equals(codeString)) 12019 return ADVERSEEVENT; 12020 if ("AllergyIntolerance".equals(codeString)) 12021 return ALLERGYINTOLERANCE; 12022 if ("Appointment".equals(codeString)) 12023 return APPOINTMENT; 12024 if ("AppointmentResponse".equals(codeString)) 12025 return APPOINTMENTRESPONSE; 12026 if ("AuditEvent".equals(codeString)) 12027 return AUDITEVENT; 12028 if ("Basic".equals(codeString)) 12029 return BASIC; 12030 if ("Binary".equals(codeString)) 12031 return BINARY; 12032 if ("BiologicallyDerivedProduct".equals(codeString)) 12033 return BIOLOGICALLYDERIVEDPRODUCT; 12034 if ("BodyStructure".equals(codeString)) 12035 return BODYSTRUCTURE; 12036 if ("Bundle".equals(codeString)) 12037 return BUNDLE; 12038 if ("CapabilityStatement".equals(codeString)) 12039 return CAPABILITYSTATEMENT; 12040 if ("CapabilityStatement2".equals(codeString)) 12041 return CAPABILITYSTATEMENT2; 12042 if ("CarePlan".equals(codeString)) 12043 return CAREPLAN; 12044 if ("CareTeam".equals(codeString)) 12045 return CARETEAM; 12046 if ("CatalogEntry".equals(codeString)) 12047 return CATALOGENTRY; 12048 if ("ChargeItem".equals(codeString)) 12049 return CHARGEITEM; 12050 if ("ChargeItemDefinition".equals(codeString)) 12051 return CHARGEITEMDEFINITION; 12052 if ("Claim".equals(codeString)) 12053 return CLAIM; 12054 if ("ClaimResponse".equals(codeString)) 12055 return CLAIMRESPONSE; 12056 if ("ClinicalImpression".equals(codeString)) 12057 return CLINICALIMPRESSION; 12058 if ("ClinicalUseIssue".equals(codeString)) 12059 return CLINICALUSEISSUE; 12060 if ("CodeSystem".equals(codeString)) 12061 return CODESYSTEM; 12062 if ("Communication".equals(codeString)) 12063 return COMMUNICATION; 12064 if ("CommunicationRequest".equals(codeString)) 12065 return COMMUNICATIONREQUEST; 12066 if ("CompartmentDefinition".equals(codeString)) 12067 return COMPARTMENTDEFINITION; 12068 if ("Composition".equals(codeString)) 12069 return COMPOSITION; 12070 if ("ConceptMap".equals(codeString)) 12071 return CONCEPTMAP; 12072 if ("Condition".equals(codeString)) 12073 return CONDITION; 12074 if ("ConditionDefinition".equals(codeString)) 12075 return CONDITIONDEFINITION; 12076 if ("Consent".equals(codeString)) 12077 return CONSENT; 12078 if ("Contract".equals(codeString)) 12079 return CONTRACT; 12080 if ("Coverage".equals(codeString)) 12081 return COVERAGE; 12082 if ("CoverageEligibilityRequest".equals(codeString)) 12083 return COVERAGEELIGIBILITYREQUEST; 12084 if ("CoverageEligibilityResponse".equals(codeString)) 12085 return COVERAGEELIGIBILITYRESPONSE; 12086 if ("DetectedIssue".equals(codeString)) 12087 return DETECTEDISSUE; 12088 if ("Device".equals(codeString)) 12089 return DEVICE; 12090 if ("DeviceDefinition".equals(codeString)) 12091 return DEVICEDEFINITION; 12092 if ("DeviceMetric".equals(codeString)) 12093 return DEVICEMETRIC; 12094 if ("DeviceRequest".equals(codeString)) 12095 return DEVICEREQUEST; 12096 if ("DeviceUseStatement".equals(codeString)) 12097 return DEVICEUSESTATEMENT; 12098 if ("DiagnosticReport".equals(codeString)) 12099 return DIAGNOSTICREPORT; 12100 if ("DocumentManifest".equals(codeString)) 12101 return DOCUMENTMANIFEST; 12102 if ("DocumentReference".equals(codeString)) 12103 return DOCUMENTREFERENCE; 12104 if ("DomainResource".equals(codeString)) 12105 return DOMAINRESOURCE; 12106 if ("Encounter".equals(codeString)) 12107 return ENCOUNTER; 12108 if ("Endpoint".equals(codeString)) 12109 return ENDPOINT; 12110 if ("EnrollmentRequest".equals(codeString)) 12111 return ENROLLMENTREQUEST; 12112 if ("EnrollmentResponse".equals(codeString)) 12113 return ENROLLMENTRESPONSE; 12114 if ("EpisodeOfCare".equals(codeString)) 12115 return EPISODEOFCARE; 12116 if ("EventDefinition".equals(codeString)) 12117 return EVENTDEFINITION; 12118 if ("Evidence".equals(codeString)) 12119 return EVIDENCE; 12120 if ("EvidenceVariable".equals(codeString)) 12121 return EVIDENCEVARIABLE; 12122 if ("ExampleScenario".equals(codeString)) 12123 return EXAMPLESCENARIO; 12124 if ("ExplanationOfBenefit".equals(codeString)) 12125 return EXPLANATIONOFBENEFIT; 12126 if ("FamilyMemberHistory".equals(codeString)) 12127 return FAMILYMEMBERHISTORY; 12128 if ("Flag".equals(codeString)) 12129 return FLAG; 12130 if ("Goal".equals(codeString)) 12131 return GOAL; 12132 if ("GraphDefinition".equals(codeString)) 12133 return GRAPHDEFINITION; 12134 if ("Group".equals(codeString)) 12135 return GROUP; 12136 if ("GuidanceResponse".equals(codeString)) 12137 return GUIDANCERESPONSE; 12138 if ("HealthcareService".equals(codeString)) 12139 return HEALTHCARESERVICE; 12140 if ("ImagingStudy".equals(codeString)) 12141 return IMAGINGSTUDY; 12142 if ("Immunization".equals(codeString)) 12143 return IMMUNIZATION; 12144 if ("ImmunizationEvaluation".equals(codeString)) 12145 return IMMUNIZATIONEVALUATION; 12146 if ("ImmunizationRecommendation".equals(codeString)) 12147 return IMMUNIZATIONRECOMMENDATION; 12148 if ("ImplementationGuide".equals(codeString)) 12149 return IMPLEMENTATIONGUIDE; 12150 if ("Ingredient".equals(codeString)) 12151 return INGREDIENT; 12152 if ("InsurancePlan".equals(codeString)) 12153 return INSURANCEPLAN; 12154 if ("Invoice".equals(codeString)) 12155 return INVOICE; 12156 if ("Library".equals(codeString)) 12157 return LIBRARY; 12158 if ("Linkage".equals(codeString)) 12159 return LINKAGE; 12160 if ("List".equals(codeString)) 12161 return LIST; 12162 if ("Location".equals(codeString)) 12163 return LOCATION; 12164 if ("ManufacturedItemDefinition".equals(codeString)) 12165 return MANUFACTUREDITEMDEFINITION; 12166 if ("Measure".equals(codeString)) 12167 return MEASURE; 12168 if ("MeasureReport".equals(codeString)) 12169 return MEASUREREPORT; 12170 if ("Medication".equals(codeString)) 12171 return MEDICATION; 12172 if ("MedicationAdministration".equals(codeString)) 12173 return MEDICATIONADMINISTRATION; 12174 if ("MedicationDispense".equals(codeString)) 12175 return MEDICATIONDISPENSE; 12176 if ("MedicationKnowledge".equals(codeString)) 12177 return MEDICATIONKNOWLEDGE; 12178 if ("MedicationRequest".equals(codeString)) 12179 return MEDICATIONREQUEST; 12180 if ("MedicationUsage".equals(codeString)) 12181 return MEDICATIONUSAGE; 12182 if ("MedicinalProductDefinition".equals(codeString)) 12183 return MEDICINALPRODUCTDEFINITION; 12184 if ("MessageDefinition".equals(codeString)) 12185 return MESSAGEDEFINITION; 12186 if ("MessageHeader".equals(codeString)) 12187 return MESSAGEHEADER; 12188 if ("MolecularSequence".equals(codeString)) 12189 return MOLECULARSEQUENCE; 12190 if ("NamingSystem".equals(codeString)) 12191 return NAMINGSYSTEM; 12192 if ("NutritionIntake".equals(codeString)) 12193 return NUTRITIONINTAKE; 12194 if ("NutritionOrder".equals(codeString)) 12195 return NUTRITIONORDER; 12196 if ("Observation".equals(codeString)) 12197 return OBSERVATION; 12198 if ("ObservationDefinition".equals(codeString)) 12199 return OBSERVATIONDEFINITION; 12200 if ("OperationDefinition".equals(codeString)) 12201 return OPERATIONDEFINITION; 12202 if ("OperationOutcome".equals(codeString)) 12203 return OPERATIONOUTCOME; 12204 if ("Organization".equals(codeString)) 12205 return ORGANIZATION; 12206 if ("OrganizationAffiliation".equals(codeString)) 12207 return ORGANIZATIONAFFILIATION; 12208 if ("PackagedProductDefinition".equals(codeString)) 12209 return PACKAGEDPRODUCTDEFINITION; 12210 if ("Parameters".equals(codeString)) 12211 return PARAMETERS; 12212 if ("Patient".equals(codeString)) 12213 return PATIENT; 12214 if ("PaymentNotice".equals(codeString)) 12215 return PAYMENTNOTICE; 12216 if ("PaymentReconciliation".equals(codeString)) 12217 return PAYMENTRECONCILIATION; 12218 if ("Person".equals(codeString)) 12219 return PERSON; 12220 if ("PlanDefinition".equals(codeString)) 12221 return PLANDEFINITION; 12222 if ("Practitioner".equals(codeString)) 12223 return PRACTITIONER; 12224 if ("PractitionerRole".equals(codeString)) 12225 return PRACTITIONERROLE; 12226 if ("Procedure".equals(codeString)) 12227 return PROCEDURE; 12228 if ("Provenance".equals(codeString)) 12229 return PROVENANCE; 12230 if ("Questionnaire".equals(codeString)) 12231 return QUESTIONNAIRE; 12232 if ("QuestionnaireResponse".equals(codeString)) 12233 return QUESTIONNAIRERESPONSE; 12234 if ("RegulatedAuthorization".equals(codeString)) 12235 return REGULATEDAUTHORIZATION; 12236 if ("RelatedPerson".equals(codeString)) 12237 return RELATEDPERSON; 12238 if ("RequestGroup".equals(codeString)) 12239 return REQUESTGROUP; 12240 if ("ResearchStudy".equals(codeString)) 12241 return RESEARCHSTUDY; 12242 if ("ResearchSubject".equals(codeString)) 12243 return RESEARCHSUBJECT; 12244 if ("Resource".equals(codeString)) 12245 return RESOURCE; 12246 if ("RiskAssessment".equals(codeString)) 12247 return RISKASSESSMENT; 12248 if ("Schedule".equals(codeString)) 12249 return SCHEDULE; 12250 if ("SearchParameter".equals(codeString)) 12251 return SEARCHPARAMETER; 12252 if ("ServiceRequest".equals(codeString)) 12253 return SERVICEREQUEST; 12254 if ("Slot".equals(codeString)) 12255 return SLOT; 12256 if ("Specimen".equals(codeString)) 12257 return SPECIMEN; 12258 if ("SpecimenDefinition".equals(codeString)) 12259 return SPECIMENDEFINITION; 12260 if ("StructureDefinition".equals(codeString)) 12261 return STRUCTUREDEFINITION; 12262 if ("StructureMap".equals(codeString)) 12263 return STRUCTUREMAP; 12264 if ("Subscription".equals(codeString)) 12265 return SUBSCRIPTION; 12266 if ("Substance".equals(codeString)) 12267 return SUBSTANCE; 12268 if ("SubstanceDefinition".equals(codeString)) 12269 return SUBSTANCEDEFINITION; 12270 if ("SubstanceNucleicAcid".equals(codeString)) 12271 return SUBSTANCENUCLEICACID; 12272 if ("SubstancePolymer".equals(codeString)) 12273 return SUBSTANCEPOLYMER; 12274 if ("SubstanceProtein".equals(codeString)) 12275 return SUBSTANCEPROTEIN; 12276 if ("SubstanceReferenceInformation".equals(codeString)) 12277 return SUBSTANCEREFERENCEINFORMATION; 12278 if ("SubstanceSourceMaterial".equals(codeString)) 12279 return SUBSTANCESOURCEMATERIAL; 12280 if ("SupplyDelivery".equals(codeString)) 12281 return SUPPLYDELIVERY; 12282 if ("SupplyRequest".equals(codeString)) 12283 return SUPPLYREQUEST; 12284 if ("Task".equals(codeString)) 12285 return TASK; 12286 if ("TerminologyCapabilities".equals(codeString)) 12287 return TERMINOLOGYCAPABILITIES; 12288 if ("TestReport".equals(codeString)) 12289 return TESTREPORT; 12290 if ("TestScript".equals(codeString)) 12291 return TESTSCRIPT; 12292 if ("Topic".equals(codeString)) 12293 return TOPIC; 12294 if ("ValueSet".equals(codeString)) 12295 return VALUESET; 12296 if ("VerificationResult".equals(codeString)) 12297 return VERIFICATIONRESULT; 12298 if ("VisionPrescription".equals(codeString)) 12299 return VISIONPRESCRIPTION; 12300 throw new FHIRException("Unknown ResourceType code '"+codeString+"'"); 12301 } 12302 public String toCode() { 12303 switch (this) { 12304 case ACCOUNT: return "Account"; 12305 case ACTIVITYDEFINITION: return "ActivityDefinition"; 12306 case ADMINISTRABLEPRODUCTDEFINITION: return "AdministrableProductDefinition"; 12307 case ADVERSEEVENT: return "AdverseEvent"; 12308 case ALLERGYINTOLERANCE: return "AllergyIntolerance"; 12309 case APPOINTMENT: return "Appointment"; 12310 case APPOINTMENTRESPONSE: return "AppointmentResponse"; 12311 case AUDITEVENT: return "AuditEvent"; 12312 case BASIC: return "Basic"; 12313 case BINARY: return "Binary"; 12314 case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct"; 12315 case BODYSTRUCTURE: return "BodyStructure"; 12316 case BUNDLE: return "Bundle"; 12317 case CAPABILITYSTATEMENT: return "CapabilityStatement"; 12318 case CAPABILITYSTATEMENT2: return "CapabilityStatement2"; 12319 case CAREPLAN: return "CarePlan"; 12320 case CARETEAM: return "CareTeam"; 12321 case CATALOGENTRY: return "CatalogEntry"; 12322 case CHARGEITEM: return "ChargeItem"; 12323 case CHARGEITEMDEFINITION: return "ChargeItemDefinition"; 12324 case CLAIM: return "Claim"; 12325 case CLAIMRESPONSE: return "ClaimResponse"; 12326 case CLINICALIMPRESSION: return "ClinicalImpression"; 12327 case CLINICALUSEISSUE: return "ClinicalUseIssue"; 12328 case CODESYSTEM: return "CodeSystem"; 12329 case COMMUNICATION: return "Communication"; 12330 case COMMUNICATIONREQUEST: return "CommunicationRequest"; 12331 case COMPARTMENTDEFINITION: return "CompartmentDefinition"; 12332 case COMPOSITION: return "Composition"; 12333 case CONCEPTMAP: return "ConceptMap"; 12334 case CONDITION: return "Condition"; 12335 case CONDITIONDEFINITION: return "ConditionDefinition"; 12336 case CONSENT: return "Consent"; 12337 case CONTRACT: return "Contract"; 12338 case COVERAGE: return "Coverage"; 12339 case COVERAGEELIGIBILITYREQUEST: return "CoverageEligibilityRequest"; 12340 case COVERAGEELIGIBILITYRESPONSE: return "CoverageEligibilityResponse"; 12341 case DETECTEDISSUE: return "DetectedIssue"; 12342 case DEVICE: return "Device"; 12343 case DEVICEDEFINITION: return "DeviceDefinition"; 12344 case DEVICEMETRIC: return "DeviceMetric"; 12345 case DEVICEREQUEST: return "DeviceRequest"; 12346 case DEVICEUSESTATEMENT: return "DeviceUseStatement"; 12347 case DIAGNOSTICREPORT: return "DiagnosticReport"; 12348 case DOCUMENTMANIFEST: return "DocumentManifest"; 12349 case DOCUMENTREFERENCE: return "DocumentReference"; 12350 case DOMAINRESOURCE: return "DomainResource"; 12351 case ENCOUNTER: return "Encounter"; 12352 case ENDPOINT: return "Endpoint"; 12353 case ENROLLMENTREQUEST: return "EnrollmentRequest"; 12354 case ENROLLMENTRESPONSE: return "EnrollmentResponse"; 12355 case EPISODEOFCARE: return "EpisodeOfCare"; 12356 case EVENTDEFINITION: return "EventDefinition"; 12357 case EVIDENCE: return "Evidence"; 12358 case EVIDENCEVARIABLE: return "EvidenceVariable"; 12359 case EXAMPLESCENARIO: return "ExampleScenario"; 12360 case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit"; 12361 case FAMILYMEMBERHISTORY: return "FamilyMemberHistory"; 12362 case FLAG: return "Flag"; 12363 case GOAL: return "Goal"; 12364 case GRAPHDEFINITION: return "GraphDefinition"; 12365 case GROUP: return "Group"; 12366 case GUIDANCERESPONSE: return "GuidanceResponse"; 12367 case HEALTHCARESERVICE: return "HealthcareService"; 12368 case IMAGINGSTUDY: return "ImagingStudy"; 12369 case IMMUNIZATION: return "Immunization"; 12370 case IMMUNIZATIONEVALUATION: return "ImmunizationEvaluation"; 12371 case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation"; 12372 case IMPLEMENTATIONGUIDE: return "ImplementationGuide"; 12373 case INGREDIENT: return "Ingredient"; 12374 case INSURANCEPLAN: return "InsurancePlan"; 12375 case INVOICE: return "Invoice"; 12376 case LIBRARY: return "Library"; 12377 case LINKAGE: return "Linkage"; 12378 case LIST: return "List"; 12379 case LOCATION: return "Location"; 12380 case MANUFACTUREDITEMDEFINITION: return "ManufacturedItemDefinition"; 12381 case MEASURE: return "Measure"; 12382 case MEASUREREPORT: return "MeasureReport"; 12383 case MEDICATION: return "Medication"; 12384 case MEDICATIONADMINISTRATION: return "MedicationAdministration"; 12385 case MEDICATIONDISPENSE: return "MedicationDispense"; 12386 case MEDICATIONKNOWLEDGE: return "MedicationKnowledge"; 12387 case MEDICATIONREQUEST: return "MedicationRequest"; 12388 case MEDICATIONUSAGE: return "MedicationUsage"; 12389 case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition"; 12390 case MESSAGEDEFINITION: return "MessageDefinition"; 12391 case MESSAGEHEADER: return "MessageHeader"; 12392 case MOLECULARSEQUENCE: return "MolecularSequence"; 12393 case NAMINGSYSTEM: return "NamingSystem"; 12394 case NUTRITIONINTAKE: return "NutritionIntake"; 12395 case NUTRITIONORDER: return "NutritionOrder"; 12396 case OBSERVATION: return "Observation"; 12397 case OBSERVATIONDEFINITION: return "ObservationDefinition"; 12398 case OPERATIONDEFINITION: return "OperationDefinition"; 12399 case OPERATIONOUTCOME: return "OperationOutcome"; 12400 case ORGANIZATION: return "Organization"; 12401 case ORGANIZATIONAFFILIATION: return "OrganizationAffiliation"; 12402 case PACKAGEDPRODUCTDEFINITION: return "PackagedProductDefinition"; 12403 case PARAMETERS: return "Parameters"; 12404 case PATIENT: return "Patient"; 12405 case PAYMENTNOTICE: return "PaymentNotice"; 12406 case PAYMENTRECONCILIATION: return "PaymentReconciliation"; 12407 case PERSON: return "Person"; 12408 case PLANDEFINITION: return "PlanDefinition"; 12409 case PRACTITIONER: return "Practitioner"; 12410 case PRACTITIONERROLE: return "PractitionerRole"; 12411 case PROCEDURE: return "Procedure"; 12412 case PROVENANCE: return "Provenance"; 12413 case QUESTIONNAIRE: return "Questionnaire"; 12414 case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse"; 12415 case REGULATEDAUTHORIZATION: return "RegulatedAuthorization"; 12416 case RELATEDPERSON: return "RelatedPerson"; 12417 case REQUESTGROUP: return "RequestGroup"; 12418 case RESEARCHSTUDY: return "ResearchStudy"; 12419 case RESEARCHSUBJECT: return "ResearchSubject"; 12420 case RESOURCE: return "Resource"; 12421 case RISKASSESSMENT: return "RiskAssessment"; 12422 case SCHEDULE: return "Schedule"; 12423 case SEARCHPARAMETER: return "SearchParameter"; 12424 case SERVICEREQUEST: return "ServiceRequest"; 12425 case SLOT: return "Slot"; 12426 case SPECIMEN: return "Specimen"; 12427 case SPECIMENDEFINITION: return "SpecimenDefinition"; 12428 case STRUCTUREDEFINITION: return "StructureDefinition"; 12429 case STRUCTUREMAP: return "StructureMap"; 12430 case SUBSCRIPTION: return "Subscription"; 12431 case SUBSTANCE: return "Substance"; 12432 case SUBSTANCEDEFINITION: return "SubstanceDefinition"; 12433 case SUBSTANCENUCLEICACID: return "SubstanceNucleicAcid"; 12434 case SUBSTANCEPOLYMER: return "SubstancePolymer"; 12435 case SUBSTANCEPROTEIN: return "SubstanceProtein"; 12436 case SUBSTANCEREFERENCEINFORMATION: return "SubstanceReferenceInformation"; 12437 case SUBSTANCESOURCEMATERIAL: return "SubstanceSourceMaterial"; 12438 case SUPPLYDELIVERY: return "SupplyDelivery"; 12439 case SUPPLYREQUEST: return "SupplyRequest"; 12440 case TASK: return "Task"; 12441 case TERMINOLOGYCAPABILITIES: return "TerminologyCapabilities"; 12442 case TESTREPORT: return "TestReport"; 12443 case TESTSCRIPT: return "TestScript"; 12444 case TOPIC: return "Topic"; 12445 case VALUESET: return "ValueSet"; 12446 case VERIFICATIONRESULT: return "VerificationResult"; 12447 case VISIONPRESCRIPTION: return "VisionPrescription"; 12448 default: return "?"; 12449 } 12450 } 12451 public String getSystem() { 12452 switch (this) { 12453 case ACCOUNT: return "http://hl7.org/fhir/resource-types"; 12454 case ACTIVITYDEFINITION: return "http://hl7.org/fhir/resource-types"; 12455 case ADMINISTRABLEPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types"; 12456 case ADVERSEEVENT: return "http://hl7.org/fhir/resource-types"; 12457 case ALLERGYINTOLERANCE: return "http://hl7.org/fhir/resource-types"; 12458 case APPOINTMENT: return "http://hl7.org/fhir/resource-types"; 12459 case APPOINTMENTRESPONSE: return "http://hl7.org/fhir/resource-types"; 12460 case AUDITEVENT: return "http://hl7.org/fhir/resource-types"; 12461 case BASIC: return "http://hl7.org/fhir/resource-types"; 12462 case BINARY: return "http://hl7.org/fhir/resource-types"; 12463 case BIOLOGICALLYDERIVEDPRODUCT: return "http://hl7.org/fhir/resource-types"; 12464 case BODYSTRUCTURE: return "http://hl7.org/fhir/resource-types"; 12465 case BUNDLE: return "http://hl7.org/fhir/resource-types"; 12466 case CAPABILITYSTATEMENT: return "http://hl7.org/fhir/resource-types"; 12467 case CAPABILITYSTATEMENT2: return "http://hl7.org/fhir/resource-types"; 12468 case CAREPLAN: return "http://hl7.org/fhir/resource-types"; 12469 case CARETEAM: return "http://hl7.org/fhir/resource-types"; 12470 case CATALOGENTRY: return "http://hl7.org/fhir/resource-types"; 12471 case CHARGEITEM: return "http://hl7.org/fhir/resource-types"; 12472 case CHARGEITEMDEFINITION: return "http://hl7.org/fhir/resource-types"; 12473 case CLAIM: return "http://hl7.org/fhir/resource-types"; 12474 case CLAIMRESPONSE: return "http://hl7.org/fhir/resource-types"; 12475 case CLINICALIMPRESSION: return "http://hl7.org/fhir/resource-types"; 12476 case CLINICALUSEISSUE: return "http://hl7.org/fhir/resource-types"; 12477 case CODESYSTEM: return "http://hl7.org/fhir/resource-types"; 12478 case COMMUNICATION: return "http://hl7.org/fhir/resource-types"; 12479 case COMMUNICATIONREQUEST: return "http://hl7.org/fhir/resource-types"; 12480 case COMPARTMENTDEFINITION: return "http://hl7.org/fhir/resource-types"; 12481 case COMPOSITION: return "http://hl7.org/fhir/resource-types"; 12482 case CONCEPTMAP: return "http://hl7.org/fhir/resource-types"; 12483 case CONDITION: return "http://hl7.org/fhir/resource-types"; 12484 case CONDITIONDEFINITION: return "http://hl7.org/fhir/resource-types"; 12485 case CONSENT: return "http://hl7.org/fhir/resource-types"; 12486 case CONTRACT: return "http://hl7.org/fhir/resource-types"; 12487 case COVERAGE: return "http://hl7.org/fhir/resource-types"; 12488 case COVERAGEELIGIBILITYREQUEST: return "http://hl7.org/fhir/resource-types"; 12489 case COVERAGEELIGIBILITYRESPONSE: return "http://hl7.org/fhir/resource-types"; 12490 case DETECTEDISSUE: return "http://hl7.org/fhir/resource-types"; 12491 case DEVICE: return "http://hl7.org/fhir/resource-types"; 12492 case DEVICEDEFINITION: return "http://hl7.org/fhir/resource-types"; 12493 case DEVICEMETRIC: return "http://hl7.org/fhir/resource-types"; 12494 case DEVICEREQUEST: return "http://hl7.org/fhir/resource-types"; 12495 case DEVICEUSESTATEMENT: return "http://hl7.org/fhir/resource-types"; 12496 case DIAGNOSTICREPORT: return "http://hl7.org/fhir/resource-types"; 12497 case DOCUMENTMANIFEST: return "http://hl7.org/fhir/resource-types"; 12498 case DOCUMENTREFERENCE: return "http://hl7.org/fhir/resource-types"; 12499 case DOMAINRESOURCE: return "http://hl7.org/fhir/resource-types"; 12500 case ENCOUNTER: return "http://hl7.org/fhir/resource-types"; 12501 case ENDPOINT: return "http://hl7.org/fhir/resource-types"; 12502 case ENROLLMENTREQUEST: return "http://hl7.org/fhir/resource-types"; 12503 case ENROLLMENTRESPONSE: return "http://hl7.org/fhir/resource-types"; 12504 case EPISODEOFCARE: return "http://hl7.org/fhir/resource-types"; 12505 case EVENTDEFINITION: return "http://hl7.org/fhir/resource-types"; 12506 case EVIDENCE: return "http://hl7.org/fhir/resource-types"; 12507 case EVIDENCEVARIABLE: return "http://hl7.org/fhir/resource-types"; 12508 case EXAMPLESCENARIO: return "http://hl7.org/fhir/resource-types"; 12509 case EXPLANATIONOFBENEFIT: return "http://hl7.org/fhir/resource-types"; 12510 case FAMILYMEMBERHISTORY: return "http://hl7.org/fhir/resource-types"; 12511 case FLAG: return "http://hl7.org/fhir/resource-types"; 12512 case GOAL: return "http://hl7.org/fhir/resource-types"; 12513 case GRAPHDEFINITION: return "http://hl7.org/fhir/resource-types"; 12514 case GROUP: return "http://hl7.org/fhir/resource-types"; 12515 case GUIDANCERESPONSE: return "http://hl7.org/fhir/resource-types"; 12516 case HEALTHCARESERVICE: return "http://hl7.org/fhir/resource-types"; 12517 case IMAGINGSTUDY: return "http://hl7.org/fhir/resource-types"; 12518 case IMMUNIZATION: return "http://hl7.org/fhir/resource-types"; 12519 case IMMUNIZATIONEVALUATION: return "http://hl7.org/fhir/resource-types"; 12520 case IMMUNIZATIONRECOMMENDATION: return "http://hl7.org/fhir/resource-types"; 12521 case IMPLEMENTATIONGUIDE: return "http://hl7.org/fhir/resource-types"; 12522 case INGREDIENT: return "http://hl7.org/fhir/resource-types"; 12523 case INSURANCEPLAN: return "http://hl7.org/fhir/resource-types"; 12524 case INVOICE: return "http://hl7.org/fhir/resource-types"; 12525 case LIBRARY: return "http://hl7.org/fhir/resource-types"; 12526 case LINKAGE: return "http://hl7.org/fhir/resource-types"; 12527 case LIST: return "http://hl7.org/fhir/resource-types"; 12528 case LOCATION: return "http://hl7.org/fhir/resource-types"; 12529 case MANUFACTUREDITEMDEFINITION: return "http://hl7.org/fhir/resource-types"; 12530 case MEASURE: return "http://hl7.org/fhir/resource-types"; 12531 case MEASUREREPORT: return "http://hl7.org/fhir/resource-types"; 12532 case MEDICATION: return "http://hl7.org/fhir/resource-types"; 12533 case MEDICATIONADMINISTRATION: return "http://hl7.org/fhir/resource-types"; 12534 case MEDICATIONDISPENSE: return "http://hl7.org/fhir/resource-types"; 12535 case MEDICATIONKNOWLEDGE: return "http://hl7.org/fhir/resource-types"; 12536 case MEDICATIONREQUEST: return "http://hl7.org/fhir/resource-types"; 12537 case MEDICATIONUSAGE: return "http://hl7.org/fhir/resource-types"; 12538 case MEDICINALPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types"; 12539 case MESSAGEDEFINITION: return "http://hl7.org/fhir/resource-types"; 12540 case MESSAGEHEADER: return "http://hl7.org/fhir/resource-types"; 12541 case MOLECULARSEQUENCE: return "http://hl7.org/fhir/resource-types"; 12542 case NAMINGSYSTEM: return "http://hl7.org/fhir/resource-types"; 12543 case NUTRITIONINTAKE: return "http://hl7.org/fhir/resource-types"; 12544 case NUTRITIONORDER: return "http://hl7.org/fhir/resource-types"; 12545 case OBSERVATION: return "http://hl7.org/fhir/resource-types"; 12546 case OBSERVATIONDEFINITION: return "http://hl7.org/fhir/resource-types"; 12547 case OPERATIONDEFINITION: return "http://hl7.org/fhir/resource-types"; 12548 case OPERATIONOUTCOME: return "http://hl7.org/fhir/resource-types"; 12549 case ORGANIZATION: return "http://hl7.org/fhir/resource-types"; 12550 case ORGANIZATIONAFFILIATION: return "http://hl7.org/fhir/resource-types"; 12551 case PACKAGEDPRODUCTDEFINITION: return "http://hl7.org/fhir/resource-types"; 12552 case PARAMETERS: return "http://hl7.org/fhir/resource-types"; 12553 case PATIENT: return "http://hl7.org/fhir/resource-types"; 12554 case PAYMENTNOTICE: return "http://hl7.org/fhir/resource-types"; 12555 case PAYMENTRECONCILIATION: return "http://hl7.org/fhir/resource-types"; 12556 case PERSON: return "http://hl7.org/fhir/resource-types"; 12557 case PLANDEFINITION: return "http://hl7.org/fhir/resource-types"; 12558 case PRACTITIONER: return "http://hl7.org/fhir/resource-types"; 12559 case PRACTITIONERROLE: return "http://hl7.org/fhir/resource-types"; 12560 case PROCEDURE: return "http://hl7.org/fhir/resource-types"; 12561 case PROVENANCE: return "http://hl7.org/fhir/resource-types"; 12562 case QUESTIONNAIRE: return "http://hl7.org/fhir/resource-types"; 12563 case QUESTIONNAIRERESPONSE: return "http://hl7.org/fhir/resource-types"; 12564 case REGULATEDAUTHORIZATION: return "http://hl7.org/fhir/resource-types"; 12565 case RELATEDPERSON: return "http://hl7.org/fhir/resource-types"; 12566 case REQUESTGROUP: return "http://hl7.org/fhir/resource-types"; 12567 case RESEARCHSTUDY: return "http://hl7.org/fhir/resource-types"; 12568 case RESEARCHSUBJECT: return "http://hl7.org/fhir/resource-types"; 12569 case RESOURCE: return "http://hl7.org/fhir/resource-types"; 12570 case RISKASSESSMENT: return "http://hl7.org/fhir/resource-types"; 12571 case SCHEDULE: return "http://hl7.org/fhir/resource-types"; 12572 case SEARCHPARAMETER: return "http://hl7.org/fhir/resource-types"; 12573 case SERVICEREQUEST: return "http://hl7.org/fhir/resource-types"; 12574 case SLOT: return "http://hl7.org/fhir/resource-types"; 12575 case SPECIMEN: return "http://hl7.org/fhir/resource-types"; 12576 case SPECIMENDEFINITION: return "http://hl7.org/fhir/resource-types"; 12577 case STRUCTUREDEFINITION: return "http://hl7.org/fhir/resource-types"; 12578 case STRUCTUREMAP: return "http://hl7.org/fhir/resource-types"; 12579 case SUBSCRIPTION: return "http://hl7.org/fhir/resource-types"; 12580 case SUBSTANCE: return "http://hl7.org/fhir/resource-types"; 12581 case SUBSTANCEDEFINITION: return "http://hl7.org/fhir/resource-types"; 12582 case SUBSTANCENUCLEICACID: return "http://hl7.org/fhir/resource-types"; 12583 case SUBSTANCEPOLYMER: return "http://hl7.org/fhir/resource-types"; 12584 case SUBSTANCEPROTEIN: return "http://hl7.org/fhir/resource-types"; 12585 case SUBSTANCEREFERENCEINFORMATION: return "http://hl7.org/fhir/resource-types"; 12586 case SUBSTANCESOURCEMATERIAL: return "http://hl7.org/fhir/resource-types"; 12587 case SUPPLYDELIVERY: return "http://hl7.org/fhir/resource-types"; 12588 case SUPPLYREQUEST: return "http://hl7.org/fhir/resource-types"; 12589 case TASK: return "http://hl7.org/fhir/resource-types"; 12590 case TERMINOLOGYCAPABILITIES: return "http://hl7.org/fhir/resource-types"; 12591 case TESTREPORT: return "http://hl7.org/fhir/resource-types"; 12592 case TESTSCRIPT: return "http://hl7.org/fhir/resource-types"; 12593 case TOPIC: return "http://hl7.org/fhir/resource-types"; 12594 case VALUESET: return "http://hl7.org/fhir/resource-types"; 12595 case VERIFICATIONRESULT: return "http://hl7.org/fhir/resource-types"; 12596 case VISIONPRESCRIPTION: return "http://hl7.org/fhir/resource-types"; 12597 default: return "?"; 12598 } 12599 } 12600 public String getDefinition() { 12601 switch (this) { 12602 case ACCOUNT: return "A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centers, etc."; 12603 case ACTIVITYDEFINITION: return "This resource allows for the definition of some activity to be performed, independent of a particular patient, practitioner, or other performance context."; 12604 case ADMINISTRABLEPRODUCTDEFINITION: return "A pharmaceutical product described in terms of its composition and dose form."; 12605 case ADVERSEEVENT: return "An event (i.e. any change to current patient status) that may be related to unintended effects on a patient or research subject. The unintended effects may require additional monitoring, treatment or hospitalization or may result in death. The AdverseEvent resource also extends to potential or avoided events that could have had such effects."; 12606 case ALLERGYINTOLERANCE: return "Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance."; 12607 case APPOINTMENT: return "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s)."; 12608 case APPOINTMENTRESPONSE: return "A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection."; 12609 case AUDITEVENT: return "A record of an event relevant for purposes such as operations, privacy, security, maintenance, and performance analysis."; 12610 case BASIC: return "Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification."; 12611 case BINARY: return "A resource that represents the data of a single raw artifact as digital content accessible in its native format. A Binary resource can contain any content, whether text, image, pdf, zip archive, etc."; 12612 case BIOLOGICALLYDERIVEDPRODUCT: return "A material substance originating from a biological entity intended to be transplanted or infused\ninto another (possibly the same) biological entity."; 12613 case BODYSTRUCTURE: return "Record details about an anatomical structure. This resource may be used when a coded concept does not provide the necessary detail needed for the use case."; 12614 case BUNDLE: return "A container for a collection of resources."; 12615 case CAPABILITYSTATEMENT: return "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; 12616 case CAPABILITYSTATEMENT2: return "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; 12617 case CAREPLAN: return "Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions."; 12618 case CARETEAM: return "The Care Team includes all the people and organizations who plan to participate in the coordination and delivery of care."; 12619 case CATALOGENTRY: return "Catalog entries are wrappers that contextualize items included in a catalog."; 12620 case CHARGEITEM: return "The resource ChargeItem describes the provision of healthcare provider products for a certain patient, therefore referring not only to the product, but containing in addition details of the provision, like date, time, amounts and participating organizations and persons. Main Usage of the ChargeItem is to enable the billing process and internal cost allocation."; 12621 case CHARGEITEMDEFINITION: return "The ChargeItemDefinition resource provides the properties that apply to the (billing) codes necessary to calculate costs and prices. The properties may differ largely depending on type and realm, therefore this resource gives only a rough structure and requires profiling for each type of billing code system."; 12622 case CLAIM: return "A provider issued list of professional services and products which have been provided, or are to be provided, to a patient which is sent to an insurer for reimbursement."; 12623 case CLAIMRESPONSE: return "This resource provides the adjudication details from the processing of a Claim resource."; 12624 case CLINICALIMPRESSION: return "A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. This resource is called \"ClinicalImpression\" rather than \"ClinicalAssessment\" to avoid confusion with the recording of assessment tools such as Apgar score."; 12625 case CLINICALUSEISSUE: return "A single item of clinical particulars - an indication, contraindication, interaction etc. for a medicinal product."; 12626 case CODESYSTEM: return "The CodeSystem resource is used to declare the existence of and describe a code system or code system supplement and its key properties, and optionally define a part or all of its content."; 12627 case COMMUNICATION: return "An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency communication to a provider/reporter in response to a case report for a reportable condition."; 12628 case COMMUNICATIONREQUEST: return "A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition."; 12629 case COMPARTMENTDEFINITION: return "A compartment definition that defines how resources are accessed on a server."; 12630 case COMPOSITION: return "A set of healthcare-related information that is assembled together into a single logical package that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.)."; 12631 case CONCEPTMAP: return "A statement of relationships from one set of concepts to one or more other concepts - either concepts in code systems, or data element/data element concepts, or classes in class models."; 12632 case CONDITION: return "A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern."; 12633 case CONDITIONDEFINITION: return "A definition of a condition and information relevant to managing it."; 12634 case CONSENT: return "A record of a healthcare consumer’s choices or choices made on their behalf by a third party, which permits or denies identified recipient(s) or recipient role(s) to perform one or more actions within a given policy context, for specific purposes and periods of time."; 12635 case CONTRACT: return "Legally enforceable, formally recorded unilateral or bilateral directive i.e., a policy or agreement."; 12636 case COVERAGE: return "Financial instrument which may be used to reimburse or pay for health care products and services. Includes both insurance and self-payment."; 12637 case COVERAGEELIGIBILITYREQUEST: return "The CoverageEligibilityRequest provides patient and insurance coverage information to an insurer for them to respond, in the form of an CoverageEligibilityResponse, with information regarding whether the stated coverage is valid and in-force and optionally to provide the insurance details of the policy."; 12638 case COVERAGEELIGIBILITYRESPONSE: return "This resource provides eligibility and plan details from the processing of an CoverageEligibilityRequest resource."; 12639 case DETECTEDISSUE: return "Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc."; 12640 case DEVICE: return "A type of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device."; 12641 case DEVICEDEFINITION: return "The characteristics, operational status and capabilities of a medical-related component of a medical device."; 12642 case DEVICEMETRIC: return "Describes a measurement, calculation or setting capability of a medical device."; 12643 case DEVICEREQUEST: return "Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker."; 12644 case DEVICEUSESTATEMENT: return "A record of a device being used by a patient where the record is the result of a report from the patient or another clinician."; 12645 case DIAGNOSTICREPORT: return "The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports."; 12646 case DOCUMENTMANIFEST: return "A collection of documents compiled for a purpose together with metadata that applies to the collection."; 12647 case DOCUMENTREFERENCE: return "A reference to a document of any kind for any purpose. While the term “document” implies a more narrow focus, for this resource this \"document\" encompasses *any* seralized object with a mime-type, so includes formal patient centric documents (CDA), clniical notes, scanned paper, non-patient specific documents like policy text, as well as a photo, video, or audio recording acquired or used in healthcare. The DocumentReference resource provides metadata about the document so that the document can be discovered and managed. The actual content may be inline base64 encoded data or provided by direct reference."; 12648 case DOMAINRESOURCE: return "A resource that includes narrative, extensions, and contained resources."; 12649 case ENCOUNTER: return "An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient."; 12650 case ENDPOINT: return "The technical details of an endpoint that can be used for electronic services, such as for web services providing XDS.b or a REST endpoint for another FHIR server. This may include any security context information."; 12651 case ENROLLMENTREQUEST: return "This resource provides the insurance enrollment details to the insurer regarding a specified coverage."; 12652 case ENROLLMENTRESPONSE: return "This resource provides enrollment and plan details from the processing of an EnrollmentRequest resource."; 12653 case EPISODEOFCARE: return "An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time."; 12654 case EVENTDEFINITION: return "The EventDefinition resource provides a reusable description of when a particular event can occur."; 12655 case EVIDENCE: return "This represents statistics, certainty, both the intended and actual population, and evidence variables."; 12656 case EVIDENCEVARIABLE: return "The EvidenceVariable resource describes a \"PICO\" element that knowledge (evidence, assertion, recommendation) is about."; 12657 case EXAMPLESCENARIO: return "Example of workflow instance."; 12658 case EXPLANATIONOFBENEFIT: return "This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided."; 12659 case FAMILYMEMBERHISTORY: return "Significant health conditions for a person related to the patient relevant in the context of care for the patient."; 12660 case FLAG: return "Prospective warnings of potential issues when providing care to the patient."; 12661 case GOAL: return "Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc."; 12662 case GRAPHDEFINITION: return "A formal computable definition of a graph of resources - that is, a coherent set of resources that form a graph by following references. The Graph Definition resource defines a set and makes rules about the set."; 12663 case GROUP: return "Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively, and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization."; 12664 case GUIDANCERESPONSE: return "A guidance response is the formal response to a guidance request, including any output parameters returned by the evaluation, as well as the description of any proposed actions to be taken."; 12665 case HEALTHCARESERVICE: return "The details of a healthcare service available at a location."; 12666 case IMAGINGSTUDY: return "Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities."; 12667 case IMMUNIZATION: return "Describes the event of a patient being administered a vaccine or a record of an immunization as reported by a patient, a clinician or another party."; 12668 case IMMUNIZATIONEVALUATION: return "Describes a comparison of an immunization event against published recommendations to determine if the administration is \"valid\" in relation to those recommendations."; 12669 case IMMUNIZATIONRECOMMENDATION: return "A patient's point-in-time set of recommendations (i.e. forecasting) according to a published schedule with optional supporting justification."; 12670 case IMPLEMENTATIONGUIDE: return "A set of rules of how a particular interoperability or standards problem is solved - typically through the use of FHIR resources. This resource is used to gather all the parts of an implementation guide into a logical whole and to publish a computable definition of all the parts."; 12671 case INGREDIENT: return "An ingredient of a manufactured item or pharmaceutical product."; 12672 case INSURANCEPLAN: return "Details of a Health Insurance product/plan provided by an organization."; 12673 case INVOICE: return "Invoice containing collected ChargeItems from an Account with calculated individual and total price for Billing purpose."; 12674 case LIBRARY: return "The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets."; 12675 case LINKAGE: return "Identifies two or more records (resource instances) that refer to the same real-world \"occurrence\"."; 12676 case LIST: return "A list is a curated collection of resources."; 12677 case LOCATION: return "Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained, or accommodated."; 12678 case MANUFACTUREDITEMDEFINITION: return "The manufactured item as contained in the packaged medicinal product."; 12679 case MEASURE: return "The Measure resource provides the definition of a quality measure."; 12680 case MEASUREREPORT: return "The MeasureReport resource contains the results of the calculation of a measure; and optionally a reference to the resources involved in that calculation."; 12681 case MEDICATION: return "This resource is primarily used for the identification and definition of a medication for the purposes of prescribing, dispensing, and administering a medication as well as for making statements about medication use."; 12682 case MEDICATIONADMINISTRATION: return "Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner."; 12683 case MEDICATIONDISPENSE: return "Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order."; 12684 case MEDICATIONKNOWLEDGE: return "Information about a medication that is used to support knowledge."; 12685 case MEDICATIONREQUEST: return "An order or request for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called \"MedicationRequest\" rather than \"MedicationPrescription\" or \"MedicationOrder\" to generalize the use across inpatient and outpatient settings, including care plans, etc., and to harmonize with workflow patterns."; 12686 case MEDICATIONUSAGE: return "A record of a medication that is being consumed by a patient. A MedicationUsage may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains. \n\nThe primary difference between a medicationusage and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationusage is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Usage information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information."; 12687 case MEDICINALPRODUCTDEFINITION: return "Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use)."; 12688 case MESSAGEDEFINITION: return "Defines the characteristics of a message that can be shared between systems, including the type of event that initiates the message, the content to be transmitted and what response(s), if any, are permitted."; 12689 case MESSAGEHEADER: return "The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle."; 12690 case MOLECULARSEQUENCE: return "Raw data describing a biological sequence."; 12691 case NAMINGSYSTEM: return "A curated namespace that issues unique symbols within that namespace for the identification of concepts, people, devices, etc. Represents a \"System\" used within the Identifier and Coding data types."; 12692 case NUTRITIONINTAKE: return "A record of food or fluid that is being consumed by a patient. A NutritionIntake may indicate that the patient may be consuming the food or fluid now or has consumed the food or fluid in the past. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay or through an app that tracks food or fluids consumed. The consumption information may come from sources such as the patient's memory, from a nutrition label, or from a clinician documenting observed intake."; 12693 case NUTRITIONORDER: return "A request to supply a diet, formula feeding (enteral) or oral nutritional supplement to a patient/resident."; 12694 case OBSERVATION: return "Measurements and simple assertions made about a patient, device or other subject."; 12695 case OBSERVATIONDEFINITION: return "Set of definitional characteristics for a kind of observation or measurement produced or consumed by an orderable health care service."; 12696 case OPERATIONDEFINITION: return "A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction)."; 12697 case OPERATIONOUTCOME: return "A collection of error, warning, or information messages that result from a system action."; 12698 case ORGANIZATION: return "A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, payer/insurer, etc."; 12699 case ORGANIZATIONAFFILIATION: return "Defines an affiliation/assotiation/relationship between 2 distinct oganizations, that is not a part-of relationship/sub-division relationship."; 12700 case PACKAGEDPRODUCTDEFINITION: return "A medicinal product in a container or package."; 12701 case PARAMETERS: return "This resource is a non-persisted resource used to pass information into and back from an [operation](operations.html). It has no other use, and there is no RESTful endpoint associated with it."; 12702 case PATIENT: return "Demographics and other administrative information about an individual or animal receiving care or other health-related services."; 12703 case PAYMENTNOTICE: return "This resource provides the status of the payment for goods and services rendered, and the request and response resource references."; 12704 case PAYMENTRECONCILIATION: return "This resource provides the details including amount of a payment and allocates the payment items being paid."; 12705 case PERSON: return "Demographics and administrative information about a person independent of a specific health-related context."; 12706 case PLANDEFINITION: return "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols."; 12707 case PRACTITIONER: return "A person who is directly or indirectly involved in the provisioning of healthcare."; 12708 case PRACTITIONERROLE: return "A specific set of Roles/Locations/specialties/services that a practitioner may perform at an organization for a period of time."; 12709 case PROCEDURE: return "An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy."; 12710 case PROVENANCE: return "Provenance of a resource is a record that describes entities and processes involved in producing and delivering or otherwise influencing that resource. Provenance provides a critical foundation for assessing authenticity, enabling trust, and allowing reproducibility. Provenance assertions are a form of contextual metadata and can themselves become important records with their own provenance. Provenance statement indicates clinical significance in terms of confidence in authenticity, reliability, and trustworthiness, integrity, and stage in lifecycle (e.g. Document Completion - has the artifact been legally authenticated), all of which may impact security, privacy, and trust policies."; 12711 case QUESTIONNAIRE: return "A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection."; 12712 case QUESTIONNAIRERESPONSE: return "A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the questionnaire being responded to."; 12713 case REGULATEDAUTHORIZATION: return "The regulatory authorization of a medicinal product."; 12714 case RELATEDPERSON: return "Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process."; 12715 case REQUESTGROUP: return "A group of related requests that can be used to capture intended activities that have inter-dependencies such as \"give this medication after that one\"."; 12716 case RESEARCHSTUDY: return "A process where a researcher or organization plans and then executes a series of steps intended to increase the field of healthcare-related knowledge. This includes studies of safety, efficacy, comparative effectiveness and other information about medications, devices, therapies and other interventional and investigative techniques. A ResearchStudy involves the gathering of information about human or animal subjects."; 12717 case RESEARCHSUBJECT: return "A physical entity which is the primary unit of operational and/or administrative interest in a study."; 12718 case RESOURCE: return "This is the base resource type for everything."; 12719 case RISKASSESSMENT: return "An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome."; 12720 case SCHEDULE: return "A container for slots of time that may be available for booking appointments."; 12721 case SEARCHPARAMETER: return "A search parameter that defines a named search item that can be used to search/filter on a resource."; 12722 case SERVICEREQUEST: return "A record of a request for service such as diagnostic investigations, treatments, or operations to be performed."; 12723 case SLOT: return "A slot of time on a schedule that may be available for booking appointments."; 12724 case SPECIMEN: return "A sample to be used for analysis."; 12725 case SPECIMENDEFINITION: return "A kind of specimen with associated set of requirements."; 12726 case STRUCTUREDEFINITION: return "A definition of a FHIR structure. This resource is used to describe the underlying resources, data types defined in FHIR, and also for describing extensions and constraints on resources and data types."; 12727 case STRUCTUREMAP: return "A Map of relationships between 2 structures that can be used to transform data."; 12728 case SUBSCRIPTION: return "The subscription resource describes a particular client's request to be notified about a Topic."; 12729 case SUBSTANCE: return "A homogeneous material with a definite composition."; 12730 case SUBSTANCEDEFINITION: return "The detailed description of a substance, typically at a level beyond what is used for prescribing."; 12731 case SUBSTANCENUCLEICACID: return "Nucleic acids are defined by three distinct elements: the base, sugar and linkage. Individual substance/moiety IDs will be created for each of these elements. The nucleotide sequence will be always entered in the 5’-3’ direction."; 12732 case SUBSTANCEPOLYMER: return "Todo."; 12733 case SUBSTANCEPROTEIN: return "A SubstanceProtein is defined as a single unit of a linear amino acid sequence, or a combination of subunits that are either covalently linked or have a defined invariant stoichiometric relationship. This includes all synthetic, recombinant and purified SubstanceProteins of defined sequence, whether the use is therapeutic or prophylactic. This set of elements will be used to describe albumins, coagulation factors, cytokines, growth factors, peptide/SubstanceProtein hormones, enzymes, toxins, toxoids, recombinant vaccines, and immunomodulators."; 12734 case SUBSTANCEREFERENCEINFORMATION: return "Todo."; 12735 case SUBSTANCESOURCEMATERIAL: return "Source material shall capture information on the taxonomic and anatomical origins as well as the fraction of a material that can result in or can be modified to form a substance. This set of data elements shall be used to define polymer substances isolated from biological matrices. Taxonomic and anatomical origins shall be described using a controlled vocabulary as required. This information is captured for naturally derived polymers ( . starch) and structurally diverse substances. For Organisms belonging to the Kingdom Plantae the Substance level defines the fresh material of a single species or infraspecies, the Herbal Drug and the Herbal preparation. For Herbal preparations, the fraction information will be captured at the Substance information level and additional information for herbal extracts will be captured at the Specified Substance Group 1 information level. See for further explanation the Substance Class: Structurally Diverse and the herbal annex."; 12736 case SUPPLYDELIVERY: return "Record of delivery of what is supplied."; 12737 case SUPPLYREQUEST: return "A record of a request for a medication, substance or device used in the healthcare setting."; 12738 case TASK: return "A task to be performed."; 12739 case TERMINOLOGYCAPABILITIES: return "A TerminologyCapabilities resource documents a set of capabilities (behaviors) of a FHIR Terminology Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation."; 12740 case TESTREPORT: return "A summary of information based on the results of executing a TestScript."; 12741 case TESTSCRIPT: return "A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification."; 12742 case TOPIC: return "Describes a stream of resource state changes identified by trigger criteria and annotated with labels useful to filter projections from this topic."; 12743 case VALUESET: return "A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and their use in [coded elements](terminologies.html)."; 12744 case VERIFICATIONRESULT: return "Describes validation requirements, source(s), status and dates for one or more elements."; 12745 case VISIONPRESCRIPTION: return "An authorization for the provision of glasses and/or contact lenses to a patient."; 12746 default: return "?"; 12747 } 12748 } 12749 public String getDisplay() { 12750 switch (this) { 12751 case ACCOUNT: return "Account"; 12752 case ACTIVITYDEFINITION: return "ActivityDefinition"; 12753 case ADMINISTRABLEPRODUCTDEFINITION: return "AdministrableProductDefinition"; 12754 case ADVERSEEVENT: return "AdverseEvent"; 12755 case ALLERGYINTOLERANCE: return "AllergyIntolerance"; 12756 case APPOINTMENT: return "Appointment"; 12757 case APPOINTMENTRESPONSE: return "AppointmentResponse"; 12758 case AUDITEVENT: return "AuditEvent"; 12759 case BASIC: return "Basic"; 12760 case BINARY: return "Binary"; 12761 case BIOLOGICALLYDERIVEDPRODUCT: return "BiologicallyDerivedProduct"; 12762 case BODYSTRUCTURE: return "BodyStructure"; 12763 case BUNDLE: return "Bundle"; 12764 case CAPABILITYSTATEMENT: return "CapabilityStatement"; 12765 case CAPABILITYSTATEMENT2: return "CapabilityStatement2"; 12766 case CAREPLAN: return "CarePlan"; 12767 case CARETEAM: return "CareTeam"; 12768 case CATALOGENTRY: return "CatalogEntry"; 12769 case CHARGEITEM: return "ChargeItem"; 12770 case CHARGEITEMDEFINITION: return "ChargeItemDefinition"; 12771 case CLAIM: return "Claim"; 12772 case CLAIMRESPONSE: return "ClaimResponse"; 12773 case CLINICALIMPRESSION: return "ClinicalImpression"; 12774 case CLINICALUSEISSUE: return "ClinicalUseIssue"; 12775 case CODESYSTEM: return "CodeSystem"; 12776 case COMMUNICATION: return "Communication"; 12777 case COMMUNICATIONREQUEST: return "CommunicationRequest"; 12778 case COMPARTMENTDEFINITION: return "CompartmentDefinition"; 12779 case COMPOSITION: return "Composition"; 12780 case CONCEPTMAP: return "ConceptMap"; 12781 case CONDITION: return "Condition"; 12782 case CONDITIONDEFINITION: return "ConditionDefinition"; 12783 case CONSENT: return "Consent"; 12784 case CONTRACT: return "Contract"; 12785 case COVERAGE: return "Coverage"; 12786 case COVERAGEELIGIBILITYREQUEST: return "CoverageEligibilityRequest"; 12787 case COVERAGEELIGIBILITYRESPONSE: return "CoverageEligibilityResponse"; 12788 case DETECTEDISSUE: return "DetectedIssue"; 12789 case DEVICE: return "Device"; 12790 case DEVICEDEFINITION: return "DeviceDefinition"; 12791 case DEVICEMETRIC: return "DeviceMetric"; 12792 case DEVICEREQUEST: return "DeviceRequest"; 12793 case DEVICEUSESTATEMENT: return "DeviceUseStatement"; 12794 case DIAGNOSTICREPORT: return "DiagnosticReport"; 12795 case DOCUMENTMANIFEST: return "DocumentManifest"; 12796 case DOCUMENTREFERENCE: return "DocumentReference"; 12797 case DOMAINRESOURCE: return "DomainResource"; 12798 case ENCOUNTER: return "Encounter"; 12799 case ENDPOINT: return "Endpoint"; 12800 case ENROLLMENTREQUEST: return "EnrollmentRequest"; 12801 case ENROLLMENTRESPONSE: return "EnrollmentResponse"; 12802 case EPISODEOFCARE: return "EpisodeOfCare"; 12803 case EVENTDEFINITION: return "EventDefinition"; 12804 case EVIDENCE: return "Evidence"; 12805 case EVIDENCEVARIABLE: return "EvidenceVariable"; 12806 case EXAMPLESCENARIO: return "ExampleScenario"; 12807 case EXPLANATIONOFBENEFIT: return "ExplanationOfBenefit"; 12808 case FAMILYMEMBERHISTORY: return "FamilyMemberHistory"; 12809 case FLAG: return "Flag"; 12810 case GOAL: return "Goal"; 12811 case GRAPHDEFINITION: return "GraphDefinition"; 12812 case GROUP: return "Group"; 12813 case GUIDANCERESPONSE: return "GuidanceResponse"; 12814 case HEALTHCARESERVICE: return "HealthcareService"; 12815 case IMAGINGSTUDY: return "ImagingStudy"; 12816 case IMMUNIZATION: return "Immunization"; 12817 case IMMUNIZATIONEVALUATION: return "ImmunizationEvaluation"; 12818 case IMMUNIZATIONRECOMMENDATION: return "ImmunizationRecommendation"; 12819 case IMPLEMENTATIONGUIDE: return "ImplementationGuide"; 12820 case INGREDIENT: return "Ingredient"; 12821 case INSURANCEPLAN: return "InsurancePlan"; 12822 case INVOICE: return "Invoice"; 12823 case LIBRARY: return "Library"; 12824 case LINKAGE: return "Linkage"; 12825 case LIST: return "List"; 12826 case LOCATION: return "Location"; 12827 case MANUFACTUREDITEMDEFINITION: return "ManufacturedItemDefinition"; 12828 case MEASURE: return "Measure"; 12829 case MEASUREREPORT: return "MeasureReport"; 12830 case MEDICATION: return "Medication"; 12831 case MEDICATIONADMINISTRATION: return "MedicationAdministration"; 12832 case MEDICATIONDISPENSE: return "MedicationDispense"; 12833 case MEDICATIONKNOWLEDGE: return "MedicationKnowledge"; 12834 case MEDICATIONREQUEST: return "MedicationRequest"; 12835 case MEDICATIONUSAGE: return "MedicationUsage"; 12836 case MEDICINALPRODUCTDEFINITION: return "MedicinalProductDefinition"; 12837 case MESSAGEDEFINITION: return "MessageDefinition"; 12838 case MESSAGEHEADER: return "MessageHeader"; 12839 case MOLECULARSEQUENCE: return "MolecularSequence"; 12840 case NAMINGSYSTEM: return "NamingSystem"; 12841 case NUTRITIONINTAKE: return "NutritionIntake"; 12842 case NUTRITIONORDER: return "NutritionOrder"; 12843 case OBSERVATION: return "Observation"; 12844 case OBSERVATIONDEFINITION: return "ObservationDefinition"; 12845 case OPERATIONDEFINITION: return "OperationDefinition"; 12846 case OPERATIONOUTCOME: return "OperationOutcome"; 12847 case ORGANIZATION: return "Organization"; 12848 case ORGANIZATIONAFFILIATION: return "OrganizationAffiliation"; 12849 case PACKAGEDPRODUCTDEFINITION: return "PackagedProductDefinition"; 12850 case PARAMETERS: return "Parameters"; 12851 case PATIENT: return "Patient"; 12852 case PAYMENTNOTICE: return "PaymentNotice"; 12853 case PAYMENTRECONCILIATION: return "PaymentReconciliation"; 12854 case PERSON: return "Person"; 12855 case PLANDEFINITION: return "PlanDefinition"; 12856 case PRACTITIONER: return "Practitioner"; 12857 case PRACTITIONERROLE: return "PractitionerRole"; 12858 case PROCEDURE: return "Procedure"; 12859 case PROVENANCE: return "Provenance"; 12860 case QUESTIONNAIRE: return "Questionnaire"; 12861 case QUESTIONNAIRERESPONSE: return "QuestionnaireResponse"; 12862 case REGULATEDAUTHORIZATION: return "RegulatedAuthorization"; 12863 case RELATEDPERSON: return "RelatedPerson"; 12864 case REQUESTGROUP: return "RequestGroup"; 12865 case RESEARCHSTUDY: return "ResearchStudy"; 12866 case RESEARCHSUBJECT: return "ResearchSubject"; 12867 case RESOURCE: return "Resource"; 12868 case RISKASSESSMENT: return "RiskAssessment"; 12869 case SCHEDULE: return "Schedule"; 12870 case SEARCHPARAMETER: return "SearchParameter"; 12871 case SERVICEREQUEST: return "ServiceRequest"; 12872 case SLOT: return "Slot"; 12873 case SPECIMEN: return "Specimen"; 12874 case SPECIMENDEFINITION: return "SpecimenDefinition"; 12875 case STRUCTUREDEFINITION: return "StructureDefinition"; 12876 case STRUCTUREMAP: return "StructureMap"; 12877 case SUBSCRIPTION: return "Subscription"; 12878 case SUBSTANCE: return "Substance"; 12879 case SUBSTANCEDEFINITION: return "SubstanceDefinition"; 12880 case SUBSTANCENUCLEICACID: return "SubstanceNucleicAcid"; 12881 case SUBSTANCEPOLYMER: return "SubstancePolymer"; 12882 case SUBSTANCEPROTEIN: return "SubstanceProtein"; 12883 case SUBSTANCEREFERENCEINFORMATION: return "SubstanceReferenceInformation"; 12884 case SUBSTANCESOURCEMATERIAL: return "SubstanceSourceMaterial"; 12885 case SUPPLYDELIVERY: return "SupplyDelivery"; 12886 case SUPPLYREQUEST: return "SupplyRequest"; 12887 case TASK: return "Task"; 12888 case TERMINOLOGYCAPABILITIES: return "TerminologyCapabilities"; 12889 case TESTREPORT: return "TestReport"; 12890 case TESTSCRIPT: return "TestScript"; 12891 case TOPIC: return "Topic"; 12892 case VALUESET: return "ValueSet"; 12893 case VERIFICATIONRESULT: return "VerificationResult"; 12894 case VISIONPRESCRIPTION: return "VisionPrescription"; 12895 default: return "?"; 12896 } 12897 } 12898 } 12899 12900 public static class ResourceTypeEnumFactory implements EnumFactory<ResourceType> { 12901 public ResourceType fromCode(String codeString) throws IllegalArgumentException { 12902 if (codeString == null || "".equals(codeString)) 12903 if (codeString == null || "".equals(codeString)) 12904 return null; 12905 if ("Account".equals(codeString)) 12906 return ResourceType.ACCOUNT; 12907 if ("ActivityDefinition".equals(codeString)) 12908 return ResourceType.ACTIVITYDEFINITION; 12909 if ("AdministrableProductDefinition".equals(codeString)) 12910 return ResourceType.ADMINISTRABLEPRODUCTDEFINITION; 12911 if ("AdverseEvent".equals(codeString)) 12912 return ResourceType.ADVERSEEVENT; 12913 if ("AllergyIntolerance".equals(codeString)) 12914 return ResourceType.ALLERGYINTOLERANCE; 12915 if ("Appointment".equals(codeString)) 12916 return ResourceType.APPOINTMENT; 12917 if ("AppointmentResponse".equals(codeString)) 12918 return ResourceType.APPOINTMENTRESPONSE; 12919 if ("AuditEvent".equals(codeString)) 12920 return ResourceType.AUDITEVENT; 12921 if ("Basic".equals(codeString)) 12922 return ResourceType.BASIC; 12923 if ("Binary".equals(codeString)) 12924 return ResourceType.BINARY; 12925 if ("BiologicallyDerivedProduct".equals(codeString)) 12926 return ResourceType.BIOLOGICALLYDERIVEDPRODUCT; 12927 if ("BodyStructure".equals(codeString)) 12928 return ResourceType.BODYSTRUCTURE; 12929 if ("Bundle".equals(codeString)) 12930 return ResourceType.BUNDLE; 12931 if ("CapabilityStatement".equals(codeString)) 12932 return ResourceType.CAPABILITYSTATEMENT; 12933 if ("CapabilityStatement2".equals(codeString)) 12934 return ResourceType.CAPABILITYSTATEMENT2; 12935 if ("CarePlan".equals(codeString)) 12936 return ResourceType.CAREPLAN; 12937 if ("CareTeam".equals(codeString)) 12938 return ResourceType.CARETEAM; 12939 if ("CatalogEntry".equals(codeString)) 12940 return ResourceType.CATALOGENTRY; 12941 if ("ChargeItem".equals(codeString)) 12942 return ResourceType.CHARGEITEM; 12943 if ("ChargeItemDefinition".equals(codeString)) 12944 return ResourceType.CHARGEITEMDEFINITION; 12945 if ("Claim".equals(codeString)) 12946 return ResourceType.CLAIM; 12947 if ("ClaimResponse".equals(codeString)) 12948 return ResourceType.CLAIMRESPONSE; 12949 if ("ClinicalImpression".equals(codeString)) 12950 return ResourceType.CLINICALIMPRESSION; 12951 if ("ClinicalUseIssue".equals(codeString)) 12952 return ResourceType.CLINICALUSEISSUE; 12953 if ("CodeSystem".equals(codeString)) 12954 return ResourceType.CODESYSTEM; 12955 if ("Communication".equals(codeString)) 12956 return ResourceType.COMMUNICATION; 12957 if ("CommunicationRequest".equals(codeString)) 12958 return ResourceType.COMMUNICATIONREQUEST; 12959 if ("CompartmentDefinition".equals(codeString)) 12960 return ResourceType.COMPARTMENTDEFINITION; 12961 if ("Composition".equals(codeString)) 12962 return ResourceType.COMPOSITION; 12963 if ("ConceptMap".equals(codeString)) 12964 return ResourceType.CONCEPTMAP; 12965 if ("Condition".equals(codeString)) 12966 return ResourceType.CONDITION; 12967 if ("ConditionDefinition".equals(codeString)) 12968 return ResourceType.CONDITIONDEFINITION; 12969 if ("Consent".equals(codeString)) 12970 return ResourceType.CONSENT; 12971 if ("Contract".equals(codeString)) 12972 return ResourceType.CONTRACT; 12973 if ("Coverage".equals(codeString)) 12974 return ResourceType.COVERAGE; 12975 if ("CoverageEligibilityRequest".equals(codeString)) 12976 return ResourceType.COVERAGEELIGIBILITYREQUEST; 12977 if ("CoverageEligibilityResponse".equals(codeString)) 12978 return ResourceType.COVERAGEELIGIBILITYRESPONSE; 12979 if ("DetectedIssue".equals(codeString)) 12980 return ResourceType.DETECTEDISSUE; 12981 if ("Device".equals(codeString)) 12982 return ResourceType.DEVICE; 12983 if ("DeviceDefinition".equals(codeString)) 12984 return ResourceType.DEVICEDEFINITION; 12985 if ("DeviceMetric".equals(codeString)) 12986 return ResourceType.DEVICEMETRIC; 12987 if ("DeviceRequest".equals(codeString)) 12988 return ResourceType.DEVICEREQUEST; 12989 if ("DeviceUseStatement".equals(codeString)) 12990 return ResourceType.DEVICEUSESTATEMENT; 12991 if ("DiagnosticReport".equals(codeString)) 12992 return ResourceType.DIAGNOSTICREPORT; 12993 if ("DocumentManifest".equals(codeString)) 12994 return ResourceType.DOCUMENTMANIFEST; 12995 if ("DocumentReference".equals(codeString)) 12996 return ResourceType.DOCUMENTREFERENCE; 12997 if ("DomainResource".equals(codeString)) 12998 return ResourceType.DOMAINRESOURCE; 12999 if ("Encounter".equals(codeString)) 13000 return ResourceType.ENCOUNTER; 13001 if ("Endpoint".equals(codeString)) 13002 return ResourceType.ENDPOINT; 13003 if ("EnrollmentRequest".equals(codeString)) 13004 return ResourceType.ENROLLMENTREQUEST; 13005 if ("EnrollmentResponse".equals(codeString)) 13006 return ResourceType.ENROLLMENTRESPONSE; 13007 if ("EpisodeOfCare".equals(codeString)) 13008 return ResourceType.EPISODEOFCARE; 13009 if ("EventDefinition".equals(codeString)) 13010 return ResourceType.EVENTDEFINITION; 13011 if ("Evidence".equals(codeString)) 13012 return ResourceType.EVIDENCE; 13013 if ("EvidenceVariable".equals(codeString)) 13014 return ResourceType.EVIDENCEVARIABLE; 13015 if ("ExampleScenario".equals(codeString)) 13016 return ResourceType.EXAMPLESCENARIO; 13017 if ("ExplanationOfBenefit".equals(codeString)) 13018 return ResourceType.EXPLANATIONOFBENEFIT; 13019 if ("FamilyMemberHistory".equals(codeString)) 13020 return ResourceType.FAMILYMEMBERHISTORY; 13021 if ("Flag".equals(codeString)) 13022 return ResourceType.FLAG; 13023 if ("Goal".equals(codeString)) 13024 return ResourceType.GOAL; 13025 if ("GraphDefinition".equals(codeString)) 13026 return ResourceType.GRAPHDEFINITION; 13027 if ("Group".equals(codeString)) 13028 return ResourceType.GROUP; 13029 if ("GuidanceResponse".equals(codeString)) 13030 return ResourceType.GUIDANCERESPONSE; 13031 if ("HealthcareService".equals(codeString)) 13032 return ResourceType.HEALTHCARESERVICE; 13033 if ("ImagingStudy".equals(codeString)) 13034 return ResourceType.IMAGINGSTUDY; 13035 if ("Immunization".equals(codeString)) 13036 return ResourceType.IMMUNIZATION; 13037 if ("ImmunizationEvaluation".equals(codeString)) 13038 return ResourceType.IMMUNIZATIONEVALUATION; 13039 if ("ImmunizationRecommendation".equals(codeString)) 13040 return ResourceType.IMMUNIZATIONRECOMMENDATION; 13041 if ("ImplementationGuide".equals(codeString)) 13042 return ResourceType.IMPLEMENTATIONGUIDE; 13043 if ("Ingredient".equals(codeString)) 13044 return ResourceType.INGREDIENT; 13045 if ("InsurancePlan".equals(codeString)) 13046 return ResourceType.INSURANCEPLAN; 13047 if ("Invoice".equals(codeString)) 13048 return ResourceType.INVOICE; 13049 if ("Library".equals(codeString)) 13050 return ResourceType.LIBRARY; 13051 if ("Linkage".equals(codeString)) 13052 return ResourceType.LINKAGE; 13053 if ("List".equals(codeString)) 13054 return ResourceType.LIST; 13055 if ("Location".equals(codeString)) 13056 return ResourceType.LOCATION; 13057 if ("ManufacturedItemDefinition".equals(codeString)) 13058 return ResourceType.MANUFACTUREDITEMDEFINITION; 13059 if ("Measure".equals(codeString)) 13060 return ResourceType.MEASURE; 13061 if ("MeasureReport".equals(codeString)) 13062 return ResourceType.MEASUREREPORT; 13063 if ("Medication".equals(codeString)) 13064 return ResourceType.MEDICATION; 13065 if ("MedicationAdministration".equals(codeString)) 13066 return ResourceType.MEDICATIONADMINISTRATION; 13067 if ("MedicationDispense".equals(codeString)) 13068 return ResourceType.MEDICATIONDISPENSE; 13069 if ("MedicationKnowledge".equals(codeString)) 13070 return ResourceType.MEDICATIONKNOWLEDGE; 13071 if ("MedicationRequest".equals(codeString)) 13072 return ResourceType.MEDICATIONREQUEST; 13073 if ("MedicationUsage".equals(codeString)) 13074 return ResourceType.MEDICATIONUSAGE; 13075 if ("MedicinalProductDefinition".equals(codeString)) 13076 return ResourceType.MEDICINALPRODUCTDEFINITION; 13077 if ("MessageDefinition".equals(codeString)) 13078 return ResourceType.MESSAGEDEFINITION; 13079 if ("MessageHeader".equals(codeString)) 13080 return ResourceType.MESSAGEHEADER; 13081 if ("MolecularSequence".equals(codeString)) 13082 return ResourceType.MOLECULARSEQUENCE; 13083 if ("NamingSystem".equals(codeString)) 13084 return ResourceType.NAMINGSYSTEM; 13085 if ("NutritionIntake".equals(codeString)) 13086 return ResourceType.NUTRITIONINTAKE; 13087 if ("NutritionOrder".equals(codeString)) 13088 return ResourceType.NUTRITIONORDER; 13089 if ("Observation".equals(codeString)) 13090 return ResourceType.OBSERVATION; 13091 if ("ObservationDefinition".equals(codeString)) 13092 return ResourceType.OBSERVATIONDEFINITION; 13093 if ("OperationDefinition".equals(codeString)) 13094 return ResourceType.OPERATIONDEFINITION; 13095 if ("OperationOutcome".equals(codeString)) 13096 return ResourceType.OPERATIONOUTCOME; 13097 if ("Organization".equals(codeString)) 13098 return ResourceType.ORGANIZATION; 13099 if ("OrganizationAffiliation".equals(codeString)) 13100 return ResourceType.ORGANIZATIONAFFILIATION; 13101 if ("PackagedProductDefinition".equals(codeString)) 13102 return ResourceType.PACKAGEDPRODUCTDEFINITION; 13103 if ("Parameters".equals(codeString)) 13104 return ResourceType.PARAMETERS; 13105 if ("Patient".equals(codeString)) 13106 return ResourceType.PATIENT; 13107 if ("PaymentNotice".equals(codeString)) 13108 return ResourceType.PAYMENTNOTICE; 13109 if ("PaymentReconciliation".equals(codeString)) 13110 return ResourceType.PAYMENTRECONCILIATION; 13111 if ("Person".equals(codeString)) 13112 return ResourceType.PERSON; 13113 if ("PlanDefinition".equals(codeString)) 13114 return ResourceType.PLANDEFINITION; 13115 if ("Practitioner".equals(codeString)) 13116 return ResourceType.PRACTITIONER; 13117 if ("PractitionerRole".equals(codeString)) 13118 return ResourceType.PRACTITIONERROLE; 13119 if ("Procedure".equals(codeString)) 13120 return ResourceType.PROCEDURE; 13121 if ("Provenance".equals(codeString)) 13122 return ResourceType.PROVENANCE; 13123 if ("Questionnaire".equals(codeString)) 13124 return ResourceType.QUESTIONNAIRE; 13125 if ("QuestionnaireResponse".equals(codeString)) 13126 return ResourceType.QUESTIONNAIRERESPONSE; 13127 if ("RegulatedAuthorization".equals(codeString)) 13128 return ResourceType.REGULATEDAUTHORIZATION; 13129 if ("RelatedPerson".equals(codeString)) 13130 return ResourceType.RELATEDPERSON; 13131 if ("RequestGroup".equals(codeString)) 13132 return ResourceType.REQUESTGROUP; 13133 if ("ResearchStudy".equals(codeString)) 13134 return ResourceType.RESEARCHSTUDY; 13135 if ("ResearchSubject".equals(codeString)) 13136 return ResourceType.RESEARCHSUBJECT; 13137 if ("Resource".equals(codeString)) 13138 return ResourceType.RESOURCE; 13139 if ("RiskAssessment".equals(codeString)) 13140 return ResourceType.RISKASSESSMENT; 13141 if ("Schedule".equals(codeString)) 13142 return ResourceType.SCHEDULE; 13143 if ("SearchParameter".equals(codeString)) 13144 return ResourceType.SEARCHPARAMETER; 13145 if ("ServiceRequest".equals(codeString)) 13146 return ResourceType.SERVICEREQUEST; 13147 if ("Slot".equals(codeString)) 13148 return ResourceType.SLOT; 13149 if ("Specimen".equals(codeString)) 13150 return ResourceType.SPECIMEN; 13151 if ("SpecimenDefinition".equals(codeString)) 13152 return ResourceType.SPECIMENDEFINITION; 13153 if ("StructureDefinition".equals(codeString)) 13154 return ResourceType.STRUCTUREDEFINITION; 13155 if ("StructureMap".equals(codeString)) 13156 return ResourceType.STRUCTUREMAP; 13157 if ("Subscription".equals(codeString)) 13158 return ResourceType.SUBSCRIPTION; 13159 if ("Substance".equals(codeString)) 13160 return ResourceType.SUBSTANCE; 13161 if ("SubstanceDefinition".equals(codeString)) 13162 return ResourceType.SUBSTANCEDEFINITION; 13163 if ("SubstanceNucleicAcid".equals(codeString)) 13164 return ResourceType.SUBSTANCENUCLEICACID; 13165 if ("SubstancePolymer".equals(codeString)) 13166 return ResourceType.SUBSTANCEPOLYMER; 13167 if ("SubstanceProtein".equals(codeString)) 13168 return ResourceType.SUBSTANCEPROTEIN; 13169 if ("SubstanceReferenceInformation".equals(codeString)) 13170 return ResourceType.SUBSTANCEREFERENCEINFORMATION; 13171 if ("SubstanceSourceMaterial".equals(codeString)) 13172 return ResourceType.SUBSTANCESOURCEMATERIAL; 13173 if ("SupplyDelivery".equals(codeString)) 13174 return ResourceType.SUPPLYDELIVERY; 13175 if ("SupplyRequest".equals(codeString)) 13176 return ResourceType.SUPPLYREQUEST; 13177 if ("Task".equals(codeString)) 13178 return ResourceType.TASK; 13179 if ("TerminologyCapabilities".equals(codeString)) 13180 return ResourceType.TERMINOLOGYCAPABILITIES; 13181 if ("TestReport".equals(codeString)) 13182 return ResourceType.TESTREPORT; 13183 if ("TestScript".equals(codeString)) 13184 return ResourceType.TESTSCRIPT; 13185 if ("Topic".equals(codeString)) 13186 return ResourceType.TOPIC; 13187 if ("ValueSet".equals(codeString)) 13188 return ResourceType.VALUESET; 13189 if ("VerificationResult".equals(codeString)) 13190 return ResourceType.VERIFICATIONRESULT; 13191 if ("VisionPrescription".equals(codeString)) 13192 return ResourceType.VISIONPRESCRIPTION; 13193 throw new IllegalArgumentException("Unknown ResourceType code '"+codeString+"'"); 13194 } 13195 public Enumeration<ResourceType> fromType(Base code) throws FHIRException { 13196 if (code == null) 13197 return null; 13198 if (code.isEmpty()) 13199 return new Enumeration<ResourceType>(this); 13200 String codeString = ((PrimitiveType) code).asStringValue(); 13201 if (codeString == null || "".equals(codeString)) 13202 return null; 13203 if ("Account".equals(codeString)) 13204 return new Enumeration<ResourceType>(this, ResourceType.ACCOUNT); 13205 if ("ActivityDefinition".equals(codeString)) 13206 return new Enumeration<ResourceType>(this, ResourceType.ACTIVITYDEFINITION); 13207 if ("AdministrableProductDefinition".equals(codeString)) 13208 return new Enumeration<ResourceType>(this, ResourceType.ADMINISTRABLEPRODUCTDEFINITION); 13209 if ("AdverseEvent".equals(codeString)) 13210 return new Enumeration<ResourceType>(this, ResourceType.ADVERSEEVENT); 13211 if ("AllergyIntolerance".equals(codeString)) 13212 return new Enumeration<ResourceType>(this, ResourceType.ALLERGYINTOLERANCE); 13213 if ("Appointment".equals(codeString)) 13214 return new Enumeration<ResourceType>(this, ResourceType.APPOINTMENT); 13215 if ("AppointmentResponse".equals(codeString)) 13216 return new Enumeration<ResourceType>(this, ResourceType.APPOINTMENTRESPONSE); 13217 if ("AuditEvent".equals(codeString)) 13218 return new Enumeration<ResourceType>(this, ResourceType.AUDITEVENT); 13219 if ("Basic".equals(codeString)) 13220 return new Enumeration<ResourceType>(this, ResourceType.BASIC); 13221 if ("Binary".equals(codeString)) 13222 return new Enumeration<ResourceType>(this, ResourceType.BINARY); 13223 if ("BiologicallyDerivedProduct".equals(codeString)) 13224 return new Enumeration<ResourceType>(this, ResourceType.BIOLOGICALLYDERIVEDPRODUCT); 13225 if ("BodyStructure".equals(codeString)) 13226 return new Enumeration<ResourceType>(this, ResourceType.BODYSTRUCTURE); 13227 if ("Bundle".equals(codeString)) 13228 return new Enumeration<ResourceType>(this, ResourceType.BUNDLE); 13229 if ("CapabilityStatement".equals(codeString)) 13230 return new Enumeration<ResourceType>(this, ResourceType.CAPABILITYSTATEMENT); 13231 if ("CapabilityStatement2".equals(codeString)) 13232 return new Enumeration<ResourceType>(this, ResourceType.CAPABILITYSTATEMENT2); 13233 if ("CarePlan".equals(codeString)) 13234 return new Enumeration<ResourceType>(this, ResourceType.CAREPLAN); 13235 if ("CareTeam".equals(codeString)) 13236 return new Enumeration<ResourceType>(this, ResourceType.CARETEAM); 13237 if ("CatalogEntry".equals(codeString)) 13238 return new Enumeration<ResourceType>(this, ResourceType.CATALOGENTRY); 13239 if ("ChargeItem".equals(codeString)) 13240 return new Enumeration<ResourceType>(this, ResourceType.CHARGEITEM); 13241 if ("ChargeItemDefinition".equals(codeString)) 13242 return new Enumeration<ResourceType>(this, ResourceType.CHARGEITEMDEFINITION); 13243 if ("Claim".equals(codeString)) 13244 return new Enumeration<ResourceType>(this, ResourceType.CLAIM); 13245 if ("ClaimResponse".equals(codeString)) 13246 return new Enumeration<ResourceType>(this, ResourceType.CLAIMRESPONSE); 13247 if ("ClinicalImpression".equals(codeString)) 13248 return new Enumeration<ResourceType>(this, ResourceType.CLINICALIMPRESSION); 13249 if ("ClinicalUseIssue".equals(codeString)) 13250 return new Enumeration<ResourceType>(this, ResourceType.CLINICALUSEISSUE); 13251 if ("CodeSystem".equals(codeString)) 13252 return new Enumeration<ResourceType>(this, ResourceType.CODESYSTEM); 13253 if ("Communication".equals(codeString)) 13254 return new Enumeration<ResourceType>(this, ResourceType.COMMUNICATION); 13255 if ("CommunicationRequest".equals(codeString)) 13256 return new Enumeration<ResourceType>(this, ResourceType.COMMUNICATIONREQUEST); 13257 if ("CompartmentDefinition".equals(codeString)) 13258 return new Enumeration<ResourceType>(this, ResourceType.COMPARTMENTDEFINITION); 13259 if ("Composition".equals(codeString)) 13260 return new Enumeration<ResourceType>(this, ResourceType.COMPOSITION); 13261 if ("ConceptMap".equals(codeString)) 13262 return new Enumeration<ResourceType>(this, ResourceType.CONCEPTMAP); 13263 if ("Condition".equals(codeString)) 13264 return new Enumeration<ResourceType>(this, ResourceType.CONDITION); 13265 if ("ConditionDefinition".equals(codeString)) 13266 return new Enumeration<ResourceType>(this, ResourceType.CONDITIONDEFINITION); 13267 if ("Consent".equals(codeString)) 13268 return new Enumeration<ResourceType>(this, ResourceType.CONSENT); 13269 if ("Contract".equals(codeString)) 13270 return new Enumeration<ResourceType>(this, ResourceType.CONTRACT); 13271 if ("Coverage".equals(codeString)) 13272 return new Enumeration<ResourceType>(this, ResourceType.COVERAGE); 13273 if ("CoverageEligibilityRequest".equals(codeString)) 13274 return new Enumeration<ResourceType>(this, ResourceType.COVERAGEELIGIBILITYREQUEST); 13275 if ("CoverageEligibilityResponse".equals(codeString)) 13276 return new Enumeration<ResourceType>(this, ResourceType.COVERAGEELIGIBILITYRESPONSE); 13277 if ("DetectedIssue".equals(codeString)) 13278 return new Enumeration<ResourceType>(this, ResourceType.DETECTEDISSUE); 13279 if ("Device".equals(codeString)) 13280 return new Enumeration<ResourceType>(this, ResourceType.DEVICE); 13281 if ("DeviceDefinition".equals(codeString)) 13282 return new Enumeration<ResourceType>(this, ResourceType.DEVICEDEFINITION); 13283 if ("DeviceMetric".equals(codeString)) 13284 return new Enumeration<ResourceType>(this, ResourceType.DEVICEMETRIC); 13285 if ("DeviceRequest".equals(codeString)) 13286 return new Enumeration<ResourceType>(this, ResourceType.DEVICEREQUEST); 13287 if ("DeviceUseStatement".equals(codeString)) 13288 return new Enumeration<ResourceType>(this, ResourceType.DEVICEUSESTATEMENT); 13289 if ("DiagnosticReport".equals(codeString)) 13290 return new Enumeration<ResourceType>(this, ResourceType.DIAGNOSTICREPORT); 13291 if ("DocumentManifest".equals(codeString)) 13292 return new Enumeration<ResourceType>(this, ResourceType.DOCUMENTMANIFEST); 13293 if ("DocumentReference".equals(codeString)) 13294 return new Enumeration<ResourceType>(this, ResourceType.DOCUMENTREFERENCE); 13295 if ("DomainResource".equals(codeString)) 13296 return new Enumeration<ResourceType>(this, ResourceType.DOMAINRESOURCE); 13297 if ("Encounter".equals(codeString)) 13298 return new Enumeration<ResourceType>(this, ResourceType.ENCOUNTER); 13299 if ("Endpoint".equals(codeString)) 13300 return new Enumeration<ResourceType>(this, ResourceType.ENDPOINT); 13301 if ("EnrollmentRequest".equals(codeString)) 13302 return new Enumeration<ResourceType>(this, ResourceType.ENROLLMENTREQUEST); 13303 if ("EnrollmentResponse".equals(codeString)) 13304 return new Enumeration<ResourceType>(this, ResourceType.ENROLLMENTRESPONSE); 13305 if ("EpisodeOfCare".equals(codeString)) 13306 return new Enumeration<ResourceType>(this, ResourceType.EPISODEOFCARE); 13307 if ("EventDefinition".equals(codeString)) 13308 return new Enumeration<ResourceType>(this, ResourceType.EVENTDEFINITION); 13309 if ("Evidence".equals(codeString)) 13310 return new Enumeration<ResourceType>(this, ResourceType.EVIDENCE); 13311 if ("EvidenceVariable".equals(codeString)) 13312 return new Enumeration<ResourceType>(this, ResourceType.EVIDENCEVARIABLE); 13313 if ("ExampleScenario".equals(codeString)) 13314 return new Enumeration<ResourceType>(this, ResourceType.EXAMPLESCENARIO); 13315 if ("ExplanationOfBenefit".equals(codeString)) 13316 return new Enumeration<ResourceType>(this, ResourceType.EXPLANATIONOFBENEFIT); 13317 if ("FamilyMemberHistory".equals(codeString)) 13318 return new Enumeration<ResourceType>(this, ResourceType.FAMILYMEMBERHISTORY); 13319 if ("Flag".equals(codeString)) 13320 return new Enumeration<ResourceType>(this, ResourceType.FLAG); 13321 if ("Goal".equals(codeString)) 13322 return new Enumeration<ResourceType>(this, ResourceType.GOAL); 13323 if ("GraphDefinition".equals(codeString)) 13324 return new Enumeration<ResourceType>(this, ResourceType.GRAPHDEFINITION); 13325 if ("Group".equals(codeString)) 13326 return new Enumeration<ResourceType>(this, ResourceType.GROUP); 13327 if ("GuidanceResponse".equals(codeString)) 13328 return new Enumeration<ResourceType>(this, ResourceType.GUIDANCERESPONSE); 13329 if ("HealthcareService".equals(codeString)) 13330 return new Enumeration<ResourceType>(this, ResourceType.HEALTHCARESERVICE); 13331 if ("ImagingStudy".equals(codeString)) 13332 return new Enumeration<ResourceType>(this, ResourceType.IMAGINGSTUDY); 13333 if ("Immunization".equals(codeString)) 13334 return new Enumeration<ResourceType>(this, ResourceType.IMMUNIZATION); 13335 if ("ImmunizationEvaluation".equals(codeString)) 13336 return new Enumeration<ResourceType>(this, ResourceType.IMMUNIZATIONEVALUATION); 13337 if ("ImmunizationRecommendation".equals(codeString)) 13338 return new Enumeration<ResourceType>(this, ResourceType.IMMUNIZATIONRECOMMENDATION); 13339 if ("ImplementationGuide".equals(codeString)) 13340 return new Enumeration<ResourceType>(this, ResourceType.IMPLEMENTATIONGUIDE); 13341 if ("Ingredient".equals(codeString)) 13342 return new Enumeration<ResourceType>(this, ResourceType.INGREDIENT); 13343 if ("InsurancePlan".equals(codeString)) 13344 return new Enumeration<ResourceType>(this, ResourceType.INSURANCEPLAN); 13345 if ("Invoice".equals(codeString)) 13346 return new Enumeration<ResourceType>(this, ResourceType.INVOICE); 13347 if ("Library".equals(codeString)) 13348 return new Enumeration<ResourceType>(this, ResourceType.LIBRARY); 13349 if ("Linkage".equals(codeString)) 13350 return new Enumeration<ResourceType>(this, ResourceType.LINKAGE); 13351 if ("List".equals(codeString)) 13352 return new Enumeration<ResourceType>(this, ResourceType.LIST); 13353 if ("Location".equals(codeString)) 13354 return new Enumeration<ResourceType>(this, ResourceType.LOCATION); 13355 if ("ManufacturedItemDefinition".equals(codeString)) 13356 return new Enumeration<ResourceType>(this, ResourceType.MANUFACTUREDITEMDEFINITION); 13357 if ("Measure".equals(codeString)) 13358 return new Enumeration<ResourceType>(this, ResourceType.MEASURE); 13359 if ("MeasureReport".equals(codeString)) 13360 return new Enumeration<ResourceType>(this, ResourceType.MEASUREREPORT); 13361 if ("Medication".equals(codeString)) 13362 return new Enumeration<ResourceType>(this, ResourceType.MEDICATION); 13363 if ("MedicationAdministration".equals(codeString)) 13364 return new Enumeration<ResourceType>(this, ResourceType.MEDICATIONADMINISTRATION); 13365 if ("MedicationDispense".equals(codeString)) 13366 return new Enumeration<ResourceType>(this, ResourceType.MEDICATIONDISPENSE); 13367 if ("MedicationKnowledge".equals(codeString)) 13368 return new Enumeration<ResourceType>(this, ResourceType.MEDICATIONKNOWLEDGE); 13369 if ("MedicationRequest".equals(codeString)) 13370 return new Enumeration<ResourceType>(this, ResourceType.MEDICATIONREQUEST); 13371 if ("MedicationUsage".equals(codeString)) 13372 return new Enumeration<ResourceType>(this, ResourceType.MEDICATIONUSAGE); 13373 if ("MedicinalProductDefinition".equals(codeString)) 13374 return new Enumeration<ResourceType>(this, ResourceType.MEDICINALPRODUCTDEFINITION); 13375 if ("MessageDefinition".equals(codeString)) 13376 return new Enumeration<ResourceType>(this, ResourceType.MESSAGEDEFINITION); 13377 if ("MessageHeader".equals(codeString)) 13378 return new Enumeration<ResourceType>(this, ResourceType.MESSAGEHEADER); 13379 if ("MolecularSequence".equals(codeString)) 13380 return new Enumeration<ResourceType>(this, ResourceType.MOLECULARSEQUENCE); 13381 if ("NamingSystem".equals(codeString)) 13382 return new Enumeration<ResourceType>(this, ResourceType.NAMINGSYSTEM); 13383 if ("NutritionIntake".equals(codeString)) 13384 return new Enumeration<ResourceType>(this, ResourceType.NUTRITIONINTAKE); 13385 if ("NutritionOrder".equals(codeString)) 13386 return new Enumeration<ResourceType>(this, ResourceType.NUTRITIONORDER); 13387 if ("Observation".equals(codeString)) 13388 return new Enumeration<ResourceType>(this, ResourceType.OBSERVATION); 13389 if ("ObservationDefinition".equals(codeString)) 13390 return new Enumeration<ResourceType>(this, ResourceType.OBSERVATIONDEFINITION); 13391 if ("OperationDefinition".equals(codeString)) 13392 return new Enumeration<ResourceType>(this, ResourceType.OPERATIONDEFINITION); 13393 if ("OperationOutcome".equals(codeString)) 13394 return new Enumeration<ResourceType>(this, ResourceType.OPERATIONOUTCOME); 13395 if ("Organization".equals(codeString)) 13396 return new Enumeration<ResourceType>(this, ResourceType.ORGANIZATION); 13397 if ("OrganizationAffiliation".equals(codeString)) 13398 return new Enumeration<ResourceType>(this, ResourceType.ORGANIZATIONAFFILIATION); 13399 if ("PackagedProductDefinition".equals(codeString)) 13400 return new Enumeration<ResourceType>(this, ResourceType.PACKAGEDPRODUCTDEFINITION); 13401 if ("Parameters".equals(codeString)) 13402 return new Enumeration<ResourceType>(this, ResourceType.PARAMETERS); 13403 if ("Patient".equals(codeString)) 13404 return new Enumeration<ResourceType>(this, ResourceType.PATIENT); 13405 if ("PaymentNotice".equals(codeString)) 13406 return new Enumeration<ResourceType>(this, ResourceType.PAYMENTNOTICE); 13407 if ("PaymentReconciliation".equals(codeString)) 13408 return new Enumeration<ResourceType>(this, ResourceType.PAYMENTRECONCILIATION); 13409 if ("Person".equals(codeString)) 13410 return new Enumeration<ResourceType>(this, ResourceType.PERSON); 13411 if ("PlanDefinition".equals(codeString)) 13412 return new Enumeration<ResourceType>(this, ResourceType.PLANDEFINITION); 13413 if ("Practitioner".equals(codeString)) 13414 return new Enumeration<ResourceType>(this, ResourceType.PRACTITIONER); 13415 if ("PractitionerRole".equals(codeString)) 13416 return new Enumeration<ResourceType>(this, ResourceType.PRACTITIONERROLE); 13417 if ("Procedure".equals(codeString)) 13418 return new Enumeration<ResourceType>(this, ResourceType.PROCEDURE); 13419 if ("Provenance".equals(codeString)) 13420 return new Enumeration<ResourceType>(this, ResourceType.PROVENANCE); 13421 if ("Questionnaire".equals(codeString)) 13422 return new Enumeration<ResourceType>(this, ResourceType.QUESTIONNAIRE); 13423 if ("QuestionnaireResponse".equals(codeString)) 13424 return new Enumeration<ResourceType>(this, ResourceType.QUESTIONNAIRERESPONSE); 13425 if ("RegulatedAuthorization".equals(codeString)) 13426 return new Enumeration<ResourceType>(this, ResourceType.REGULATEDAUTHORIZATION); 13427 if ("RelatedPerson".equals(codeString)) 13428 return new Enumeration<ResourceType>(this, ResourceType.RELATEDPERSON); 13429 if ("RequestGroup".equals(codeString)) 13430 return new Enumeration<ResourceType>(this, ResourceType.REQUESTGROUP); 13431 if ("ResearchStudy".equals(codeString)) 13432 return new Enumeration<ResourceType>(this, ResourceType.RESEARCHSTUDY); 13433 if ("ResearchSubject".equals(codeString)) 13434 return new Enumeration<ResourceType>(this, ResourceType.RESEARCHSUBJECT); 13435 if ("Resource".equals(codeString)) 13436 return new Enumeration<ResourceType>(this, ResourceType.RESOURCE); 13437 if ("RiskAssessment".equals(codeString)) 13438 return new Enumeration<ResourceType>(this, ResourceType.RISKASSESSMENT); 13439 if ("Schedule".equals(codeString)) 13440 return new Enumeration<ResourceType>(this, ResourceType.SCHEDULE); 13441 if ("SearchParameter".equals(codeString)) 13442 return new Enumeration<ResourceType>(this, ResourceType.SEARCHPARAMETER); 13443 if ("ServiceRequest".equals(codeString)) 13444 return new Enumeration<ResourceType>(this, ResourceType.SERVICEREQUEST); 13445 if ("Slot".equals(codeString)) 13446 return new Enumeration<ResourceType>(this, ResourceType.SLOT); 13447 if ("Specimen".equals(codeString)) 13448 return new Enumeration<ResourceType>(this, ResourceType.SPECIMEN); 13449 if ("SpecimenDefinition".equals(codeString)) 13450 return new Enumeration<ResourceType>(this, ResourceType.SPECIMENDEFINITION); 13451 if ("StructureDefinition".equals(codeString)) 13452 return new Enumeration<ResourceType>(this, ResourceType.STRUCTUREDEFINITION); 13453 if ("StructureMap".equals(codeString)) 13454 return new Enumeration<ResourceType>(this, ResourceType.STRUCTUREMAP); 13455 if ("Subscription".equals(codeString)) 13456 return new Enumeration<ResourceType>(this, ResourceType.SUBSCRIPTION); 13457 if ("Substance".equals(codeString)) 13458 return new Enumeration<ResourceType>(this, ResourceType.SUBSTANCE); 13459 if ("SubstanceDefinition".equals(codeString)) 13460 return new Enumeration<ResourceType>(this, ResourceType.SUBSTANCEDEFINITION); 13461 if ("SubstanceNucleicAcid".equals(codeString)) 13462 return new Enumeration<ResourceType>(this, ResourceType.SUBSTANCENUCLEICACID); 13463 if ("SubstancePolymer".equals(codeString)) 13464 return new Enumeration<ResourceType>(this, ResourceType.SUBSTANCEPOLYMER); 13465 if ("SubstanceProtein".equals(codeString)) 13466 return new Enumeration<ResourceType>(this, ResourceType.SUBSTANCEPROTEIN); 13467 if ("SubstanceReferenceInformation".equals(codeString)) 13468 return new Enumeration<ResourceType>(this, ResourceType.SUBSTANCEREFERENCEINFORMATION); 13469 if ("SubstanceSourceMaterial".equals(codeString)) 13470 return new Enumeration<ResourceType>(this, ResourceType.SUBSTANCESOURCEMATERIAL); 13471 if ("SupplyDelivery".equals(codeString)) 13472 return new Enumeration<ResourceType>(this, ResourceType.SUPPLYDELIVERY); 13473 if ("SupplyRequest".equals(codeString)) 13474 return new Enumeration<ResourceType>(this, ResourceType.SUPPLYREQUEST); 13475 if ("Task".equals(codeString)) 13476 return new Enumeration<ResourceType>(this, ResourceType.TASK); 13477 if ("TerminologyCapabilities".equals(codeString)) 13478 return new Enumeration<ResourceType>(this, ResourceType.TERMINOLOGYCAPABILITIES); 13479 if ("TestReport".equals(codeString)) 13480 return new Enumeration<ResourceType>(this, ResourceType.TESTREPORT); 13481 if ("TestScript".equals(codeString)) 13482 return new Enumeration<ResourceType>(this, ResourceType.TESTSCRIPT); 13483 if ("Topic".equals(codeString)) 13484 return new Enumeration<ResourceType>(this, ResourceType.TOPIC); 13485 if ("ValueSet".equals(codeString)) 13486 return new Enumeration<ResourceType>(this, ResourceType.VALUESET); 13487 if ("VerificationResult".equals(codeString)) 13488 return new Enumeration<ResourceType>(this, ResourceType.VERIFICATIONRESULT); 13489 if ("VisionPrescription".equals(codeString)) 13490 return new Enumeration<ResourceType>(this, ResourceType.VISIONPRESCRIPTION); 13491 throw new FHIRException("Unknown ResourceType code '"+codeString+"'"); 13492 } 13493 public String toCode(ResourceType code) { 13494 if (code == ResourceType.ACCOUNT) 13495 return "Account"; 13496 if (code == ResourceType.ACTIVITYDEFINITION) 13497 return "ActivityDefinition"; 13498 if (code == ResourceType.ADMINISTRABLEPRODUCTDEFINITION) 13499 return "AdministrableProductDefinition"; 13500 if (code == ResourceType.ADVERSEEVENT) 13501 return "AdverseEvent"; 13502 if (code == ResourceType.ALLERGYINTOLERANCE) 13503 return "AllergyIntolerance"; 13504 if (code == ResourceType.APPOINTMENT) 13505 return "Appointment"; 13506 if (code == ResourceType.APPOINTMENTRESPONSE) 13507 return "AppointmentResponse"; 13508 if (code == ResourceType.AUDITEVENT) 13509 return "AuditEvent"; 13510 if (code == ResourceType.BASIC) 13511 return "Basic"; 13512 if (code == ResourceType.BINARY) 13513 return "Binary"; 13514 if (code == ResourceType.BIOLOGICALLYDERIVEDPRODUCT) 13515 return "BiologicallyDerivedProduct"; 13516 if (code == ResourceType.BODYSTRUCTURE) 13517 return "BodyStructure"; 13518 if (code == ResourceType.BUNDLE) 13519 return "Bundle"; 13520 if (code == ResourceType.CAPABILITYSTATEMENT) 13521 return "CapabilityStatement"; 13522 if (code == ResourceType.CAPABILITYSTATEMENT2) 13523 return "CapabilityStatement2"; 13524 if (code == ResourceType.CAREPLAN) 13525 return "CarePlan"; 13526 if (code == ResourceType.CARETEAM) 13527 return "CareTeam"; 13528 if (code == ResourceType.CATALOGENTRY) 13529 return "CatalogEntry"; 13530 if (code == ResourceType.CHARGEITEM) 13531 return "ChargeItem"; 13532 if (code == ResourceType.CHARGEITEMDEFINITION) 13533 return "ChargeItemDefinition"; 13534 if (code == ResourceType.CLAIM) 13535 return "Claim"; 13536 if (code == ResourceType.CLAIMRESPONSE) 13537 return "ClaimResponse"; 13538 if (code == ResourceType.CLINICALIMPRESSION) 13539 return "ClinicalImpression"; 13540 if (code == ResourceType.CLINICALUSEISSUE) 13541 return "ClinicalUseIssue"; 13542 if (code == ResourceType.CODESYSTEM) 13543 return "CodeSystem"; 13544 if (code == ResourceType.COMMUNICATION) 13545 return "Communication"; 13546 if (code == ResourceType.COMMUNICATIONREQUEST) 13547 return "CommunicationRequest"; 13548 if (code == ResourceType.COMPARTMENTDEFINITION) 13549 return "CompartmentDefinition"; 13550 if (code == ResourceType.COMPOSITION) 13551 return "Composition"; 13552 if (code == ResourceType.CONCEPTMAP) 13553 return "ConceptMap"; 13554 if (code == ResourceType.CONDITION) 13555 return "Condition"; 13556 if (code == ResourceType.CONDITIONDEFINITION) 13557 return "ConditionDefinition"; 13558 if (code == ResourceType.CONSENT) 13559 return "Consent"; 13560 if (code == ResourceType.CONTRACT) 13561 return "Contract"; 13562 if (code == ResourceType.COVERAGE) 13563 return "Coverage"; 13564 if (code == ResourceType.COVERAGEELIGIBILITYREQUEST) 13565 return "CoverageEligibilityRequest"; 13566 if (code == ResourceType.COVERAGEELIGIBILITYRESPONSE) 13567 return "CoverageEligibilityResponse"; 13568 if (code == ResourceType.DETECTEDISSUE) 13569 return "DetectedIssue"; 13570 if (code == ResourceType.DEVICE) 13571 return "Device"; 13572 if (code == ResourceType.DEVICEDEFINITION) 13573 return "DeviceDefinition"; 13574 if (code == ResourceType.DEVICEMETRIC) 13575 return "DeviceMetric"; 13576 if (code == ResourceType.DEVICEREQUEST) 13577 return "DeviceRequest"; 13578 if (code == ResourceType.DEVICEUSESTATEMENT) 13579 return "DeviceUseStatement"; 13580 if (code == ResourceType.DIAGNOSTICREPORT) 13581 return "DiagnosticReport"; 13582 if (code == ResourceType.DOCUMENTMANIFEST) 13583 return "DocumentManifest"; 13584 if (code == ResourceType.DOCUMENTREFERENCE) 13585 return "DocumentReference"; 13586 if (code == ResourceType.DOMAINRESOURCE) 13587 return "DomainResource"; 13588 if (code == ResourceType.ENCOUNTER) 13589 return "Encounter"; 13590 if (code == ResourceType.ENDPOINT) 13591 return "Endpoint"; 13592 if (code == ResourceType.ENROLLMENTREQUEST) 13593 return "EnrollmentRequest"; 13594 if (code == ResourceType.ENROLLMENTRESPONSE) 13595 return "EnrollmentResponse"; 13596 if (code == ResourceType.EPISODEOFCARE) 13597 return "EpisodeOfCare"; 13598 if (code == ResourceType.EVENTDEFINITION) 13599 return "EventDefinition"; 13600 if (code == ResourceType.EVIDENCE) 13601 return "Evidence"; 13602 if (code == ResourceType.EVIDENCEVARIABLE) 13603 return "EvidenceVariable"; 13604 if (code == ResourceType.EXAMPLESCENARIO) 13605 return "ExampleScenario"; 13606 if (code == ResourceType.EXPLANATIONOFBENEFIT) 13607 return "ExplanationOfBenefit"; 13608 if (code == ResourceType.FAMILYMEMBERHISTORY) 13609 return "FamilyMemberHistory"; 13610 if (code == ResourceType.FLAG) 13611 return "Flag"; 13612 if (code == ResourceType.GOAL) 13613 return "Goal"; 13614 if (code == ResourceType.GRAPHDEFINITION) 13615 return "GraphDefinition"; 13616 if (code == ResourceType.GROUP) 13617 return "Group"; 13618 if (code == ResourceType.GUIDANCERESPONSE) 13619 return "GuidanceResponse"; 13620 if (code == ResourceType.HEALTHCARESERVICE) 13621 return "HealthcareService"; 13622 if (code == ResourceType.IMAGINGSTUDY) 13623 return "ImagingStudy"; 13624 if (code == ResourceType.IMMUNIZATION) 13625 return "Immunization"; 13626 if (code == ResourceType.IMMUNIZATIONEVALUATION) 13627 return "ImmunizationEvaluation"; 13628 if (code == ResourceType.IMMUNIZATIONRECOMMENDATION) 13629 return "ImmunizationRecommendation"; 13630 if (code == ResourceType.IMPLEMENTATIONGUIDE) 13631 return "ImplementationGuide"; 13632 if (code == ResourceType.INGREDIENT) 13633 return "Ingredient"; 13634 if (code == ResourceType.INSURANCEPLAN) 13635 return "InsurancePlan"; 13636 if (code == ResourceType.INVOICE) 13637 return "Invoice"; 13638 if (code == ResourceType.LIBRARY) 13639 return "Library"; 13640 if (code == ResourceType.LINKAGE) 13641 return "Linkage"; 13642 if (code == ResourceType.LIST) 13643 return "List"; 13644 if (code == ResourceType.LOCATION) 13645 return "Location"; 13646 if (code == ResourceType.MANUFACTUREDITEMDEFINITION) 13647 return "ManufacturedItemDefinition"; 13648 if (code == ResourceType.MEASURE) 13649 return "Measure"; 13650 if (code == ResourceType.MEASUREREPORT) 13651 return "MeasureReport"; 13652 if (code == ResourceType.MEDICATION) 13653 return "Medication"; 13654 if (code == ResourceType.MEDICATIONADMINISTRATION) 13655 return "MedicationAdministration"; 13656 if (code == ResourceType.MEDICATIONDISPENSE) 13657 return "MedicationDispense"; 13658 if (code == ResourceType.MEDICATIONKNOWLEDGE) 13659 return "MedicationKnowledge"; 13660 if (code == ResourceType.MEDICATIONREQUEST) 13661 return "MedicationRequest"; 13662 if (code == ResourceType.MEDICATIONUSAGE) 13663 return "MedicationUsage"; 13664 if (code == ResourceType.MEDICINALPRODUCTDEFINITION) 13665 return "MedicinalProductDefinition"; 13666 if (code == ResourceType.MESSAGEDEFINITION) 13667 return "MessageDefinition"; 13668 if (code == ResourceType.MESSAGEHEADER) 13669 return "MessageHeader"; 13670 if (code == ResourceType.MOLECULARSEQUENCE) 13671 return "MolecularSequence"; 13672 if (code == ResourceType.NAMINGSYSTEM) 13673 return "NamingSystem"; 13674 if (code == ResourceType.NUTRITIONINTAKE) 13675 return "NutritionIntake"; 13676 if (code == ResourceType.NUTRITIONORDER) 13677 return "NutritionOrder"; 13678 if (code == ResourceType.OBSERVATION) 13679 return "Observation"; 13680 if (code == ResourceType.OBSERVATIONDEFINITION) 13681 return "ObservationDefinition"; 13682 if (code == ResourceType.OPERATIONDEFINITION) 13683 return "OperationDefinition"; 13684 if (code == ResourceType.OPERATIONOUTCOME) 13685 return "OperationOutcome"; 13686 if (code == ResourceType.ORGANIZATION) 13687 return "Organization"; 13688 if (code == ResourceType.ORGANIZATIONAFFILIATION) 13689 return "OrganizationAffiliation"; 13690 if (code == ResourceType.PACKAGEDPRODUCTDEFINITION) 13691 return "PackagedProductDefinition"; 13692 if (code == ResourceType.PARAMETERS) 13693 return "Parameters"; 13694 if (code == ResourceType.PATIENT) 13695 return "Patient"; 13696 if (code == ResourceType.PAYMENTNOTICE) 13697 return "PaymentNotice"; 13698 if (code == ResourceType.PAYMENTRECONCILIATION) 13699 return "PaymentReconciliation"; 13700 if (code == ResourceType.PERSON) 13701 return "Person"; 13702 if (code == ResourceType.PLANDEFINITION) 13703 return "PlanDefinition"; 13704 if (code == ResourceType.PRACTITIONER) 13705 return "Practitioner"; 13706 if (code == ResourceType.PRACTITIONERROLE) 13707 return "PractitionerRole"; 13708 if (code == ResourceType.PROCEDURE) 13709 return "Procedure"; 13710 if (code == ResourceType.PROVENANCE) 13711 return "Provenance"; 13712 if (code == ResourceType.QUESTIONNAIRE) 13713 return "Questionnaire"; 13714 if (code == ResourceType.QUESTIONNAIRERESPONSE) 13715 return "QuestionnaireResponse"; 13716 if (code == ResourceType.REGULATEDAUTHORIZATION) 13717 return "RegulatedAuthorization"; 13718 if (code == ResourceType.RELATEDPERSON) 13719 return "RelatedPerson"; 13720 if (code == ResourceType.REQUESTGROUP) 13721 return "RequestGroup"; 13722 if (code == ResourceType.RESEARCHSTUDY) 13723 return "ResearchStudy"; 13724 if (code == ResourceType.RESEARCHSUBJECT) 13725 return "ResearchSubject"; 13726 if (code == ResourceType.RESOURCE) 13727 return "Resource"; 13728 if (code == ResourceType.RISKASSESSMENT) 13729 return "RiskAssessment"; 13730 if (code == ResourceType.SCHEDULE) 13731 return "Schedule"; 13732 if (code == ResourceType.SEARCHPARAMETER) 13733 return "SearchParameter"; 13734 if (code == ResourceType.SERVICEREQUEST) 13735 return "ServiceRequest"; 13736 if (code == ResourceType.SLOT) 13737 return "Slot"; 13738 if (code == ResourceType.SPECIMEN) 13739 return "Specimen"; 13740 if (code == ResourceType.SPECIMENDEFINITION) 13741 return "SpecimenDefinition"; 13742 if (code == ResourceType.STRUCTUREDEFINITION) 13743 return "StructureDefinition"; 13744 if (code == ResourceType.STRUCTUREMAP) 13745 return "StructureMap"; 13746 if (code == ResourceType.SUBSCRIPTION) 13747 return "Subscription"; 13748 if (code == ResourceType.SUBSTANCE) 13749 return "Substance"; 13750 if (code == ResourceType.SUBSTANCEDEFINITION) 13751 return "SubstanceDefinition"; 13752 if (code == ResourceType.SUBSTANCENUCLEICACID) 13753 return "SubstanceNucleicAcid"; 13754 if (code == ResourceType.SUBSTANCEPOLYMER) 13755 return "SubstancePolymer"; 13756 if (code == ResourceType.SUBSTANCEPROTEIN) 13757 return "SubstanceProtein"; 13758 if (code == ResourceType.SUBSTANCEREFERENCEINFORMATION) 13759 return "SubstanceReferenceInformation"; 13760 if (code == ResourceType.SUBSTANCESOURCEMATERIAL) 13761 return "SubstanceSourceMaterial"; 13762 if (code == ResourceType.SUPPLYDELIVERY) 13763 return "SupplyDelivery"; 13764 if (code == ResourceType.SUPPLYREQUEST) 13765 return "SupplyRequest"; 13766 if (code == ResourceType.TASK) 13767 return "Task"; 13768 if (code == ResourceType.TERMINOLOGYCAPABILITIES) 13769 return "TerminologyCapabilities"; 13770 if (code == ResourceType.TESTREPORT) 13771 return "TestReport"; 13772 if (code == ResourceType.TESTSCRIPT) 13773 return "TestScript"; 13774 if (code == ResourceType.TOPIC) 13775 return "Topic"; 13776 if (code == ResourceType.VALUESET) 13777 return "ValueSet"; 13778 if (code == ResourceType.VERIFICATIONRESULT) 13779 return "VerificationResult"; 13780 if (code == ResourceType.VISIONPRESCRIPTION) 13781 return "VisionPrescription"; 13782 return "?"; 13783 } 13784 public String toSystem(ResourceType code) { 13785 return code.getSystem(); 13786 } 13787 } 13788 13789 public enum SearchParamType { 13790 /** 13791 * Search parameter SHALL be a number (a whole number, or a decimal). 13792 */ 13793 NUMBER, 13794 /** 13795 * Search parameter is on a date/time. The date format is the standard XML format, though other formats may be supported. 13796 */ 13797 DATE, 13798 /** 13799 * Search parameter is a simple string, like a name part. Search is case-insensitive and accent-insensitive. May match just the start of a string. String parameters may contain spaces. 13800 */ 13801 STRING, 13802 /** 13803 * Search parameter on a coded element or identifier. May be used to search through the text, display, code and code/codesystem (for codes) and label, system and key (for identifier). Its value is either a string or a pair of namespace and value, separated by a "|", depending on the modifier used. 13804 */ 13805 TOKEN, 13806 /** 13807 * A reference to another resource (Reference or canonical). 13808 */ 13809 REFERENCE, 13810 /** 13811 * A composite search parameter that combines a search on two values together. 13812 */ 13813 COMPOSITE, 13814 /** 13815 * A search parameter that searches on a quantity. 13816 */ 13817 QUANTITY, 13818 /** 13819 * A search parameter that searches on a URI (RFC 3986). 13820 */ 13821 URI, 13822 /** 13823 * Special logic applies to this parameter per the description of the search parameter. 13824 */ 13825 SPECIAL, 13826 /** 13827 * added to help the parsers 13828 */ 13829 NULL; 13830 public static SearchParamType fromCode(String codeString) throws FHIRException { 13831 if (codeString == null || "".equals(codeString)) 13832 return null; 13833 if ("number".equals(codeString)) 13834 return NUMBER; 13835 if ("date".equals(codeString)) 13836 return DATE; 13837 if ("string".equals(codeString)) 13838 return STRING; 13839 if ("token".equals(codeString)) 13840 return TOKEN; 13841 if ("reference".equals(codeString)) 13842 return REFERENCE; 13843 if ("composite".equals(codeString)) 13844 return COMPOSITE; 13845 if ("quantity".equals(codeString)) 13846 return QUANTITY; 13847 if ("uri".equals(codeString)) 13848 return URI; 13849 if ("special".equals(codeString)) 13850 return SPECIAL; 13851 throw new FHIRException("Unknown SearchParamType code '"+codeString+"'"); 13852 } 13853 public String toCode() { 13854 switch (this) { 13855 case NUMBER: return "number"; 13856 case DATE: return "date"; 13857 case STRING: return "string"; 13858 case TOKEN: return "token"; 13859 case REFERENCE: return "reference"; 13860 case COMPOSITE: return "composite"; 13861 case QUANTITY: return "quantity"; 13862 case URI: return "uri"; 13863 case SPECIAL: return "special"; 13864 default: return "?"; 13865 } 13866 } 13867 public String getSystem() { 13868 switch (this) { 13869 case NUMBER: return "http://hl7.org/fhir/search-param-type"; 13870 case DATE: return "http://hl7.org/fhir/search-param-type"; 13871 case STRING: return "http://hl7.org/fhir/search-param-type"; 13872 case TOKEN: return "http://hl7.org/fhir/search-param-type"; 13873 case REFERENCE: return "http://hl7.org/fhir/search-param-type"; 13874 case COMPOSITE: return "http://hl7.org/fhir/search-param-type"; 13875 case QUANTITY: return "http://hl7.org/fhir/search-param-type"; 13876 case URI: return "http://hl7.org/fhir/search-param-type"; 13877 case SPECIAL: return "http://hl7.org/fhir/search-param-type"; 13878 default: return "?"; 13879 } 13880 } 13881 public String getDefinition() { 13882 switch (this) { 13883 case NUMBER: return "Search parameter SHALL be a number (a whole number, or a decimal)."; 13884 case DATE: return "Search parameter is on a date/time. The date format is the standard XML format, though other formats may be supported."; 13885 case STRING: return "Search parameter is a simple string, like a name part. Search is case-insensitive and accent-insensitive. May match just the start of a string. String parameters may contain spaces."; 13886 case TOKEN: return "Search parameter on a coded element or identifier. May be used to search through the text, display, code and code/codesystem (for codes) and label, system and key (for identifier). Its value is either a string or a pair of namespace and value, separated by a \"|\", depending on the modifier used."; 13887 case REFERENCE: return "A reference to another resource (Reference or canonical)."; 13888 case COMPOSITE: return "A composite search parameter that combines a search on two values together."; 13889 case QUANTITY: return "A search parameter that searches on a quantity."; 13890 case URI: return "A search parameter that searches on a URI (RFC 3986)."; 13891 case SPECIAL: return "Special logic applies to this parameter per the description of the search parameter."; 13892 default: return "?"; 13893 } 13894 } 13895 public String getDisplay() { 13896 switch (this) { 13897 case NUMBER: return "Number"; 13898 case DATE: return "Date/DateTime"; 13899 case STRING: return "String"; 13900 case TOKEN: return "Token"; 13901 case REFERENCE: return "Reference"; 13902 case COMPOSITE: return "Composite"; 13903 case QUANTITY: return "Quantity"; 13904 case URI: return "URI"; 13905 case SPECIAL: return "Special"; 13906 default: return "?"; 13907 } 13908 } 13909 } 13910 13911 public static class SearchParamTypeEnumFactory implements EnumFactory<SearchParamType> { 13912 public SearchParamType fromCode(String codeString) throws IllegalArgumentException { 13913 if (codeString == null || "".equals(codeString)) 13914 if (codeString == null || "".equals(codeString)) 13915 return null; 13916 if ("number".equals(codeString)) 13917 return SearchParamType.NUMBER; 13918 if ("date".equals(codeString)) 13919 return SearchParamType.DATE; 13920 if ("string".equals(codeString)) 13921 return SearchParamType.STRING; 13922 if ("token".equals(codeString)) 13923 return SearchParamType.TOKEN; 13924 if ("reference".equals(codeString)) 13925 return SearchParamType.REFERENCE; 13926 if ("composite".equals(codeString)) 13927 return SearchParamType.COMPOSITE; 13928 if ("quantity".equals(codeString)) 13929 return SearchParamType.QUANTITY; 13930 if ("uri".equals(codeString)) 13931 return SearchParamType.URI; 13932 if ("special".equals(codeString)) 13933 return SearchParamType.SPECIAL; 13934 throw new IllegalArgumentException("Unknown SearchParamType code '"+codeString+"'"); 13935 } 13936 public Enumeration<SearchParamType> fromType(Base code) throws FHIRException { 13937 if (code == null) 13938 return null; 13939 if (code.isEmpty()) 13940 return new Enumeration<SearchParamType>(this); 13941 String codeString = ((PrimitiveType) code).asStringValue(); 13942 if (codeString == null || "".equals(codeString)) 13943 return null; 13944 if ("number".equals(codeString)) 13945 return new Enumeration<SearchParamType>(this, SearchParamType.NUMBER); 13946 if ("date".equals(codeString)) 13947 return new Enumeration<SearchParamType>(this, SearchParamType.DATE); 13948 if ("string".equals(codeString)) 13949 return new Enumeration<SearchParamType>(this, SearchParamType.STRING); 13950 if ("token".equals(codeString)) 13951 return new Enumeration<SearchParamType>(this, SearchParamType.TOKEN); 13952 if ("reference".equals(codeString)) 13953 return new Enumeration<SearchParamType>(this, SearchParamType.REFERENCE); 13954 if ("composite".equals(codeString)) 13955 return new Enumeration<SearchParamType>(this, SearchParamType.COMPOSITE); 13956 if ("quantity".equals(codeString)) 13957 return new Enumeration<SearchParamType>(this, SearchParamType.QUANTITY); 13958 if ("uri".equals(codeString)) 13959 return new Enumeration<SearchParamType>(this, SearchParamType.URI); 13960 if ("special".equals(codeString)) 13961 return new Enumeration<SearchParamType>(this, SearchParamType.SPECIAL); 13962 throw new FHIRException("Unknown SearchParamType code '"+codeString+"'"); 13963 } 13964 public String toCode(SearchParamType code) { 13965 if (code == SearchParamType.NUMBER) 13966 return "number"; 13967 if (code == SearchParamType.DATE) 13968 return "date"; 13969 if (code == SearchParamType.STRING) 13970 return "string"; 13971 if (code == SearchParamType.TOKEN) 13972 return "token"; 13973 if (code == SearchParamType.REFERENCE) 13974 return "reference"; 13975 if (code == SearchParamType.COMPOSITE) 13976 return "composite"; 13977 if (code == SearchParamType.QUANTITY) 13978 return "quantity"; 13979 if (code == SearchParamType.URI) 13980 return "uri"; 13981 if (code == SearchParamType.SPECIAL) 13982 return "special"; 13983 return "?"; 13984 } 13985 public String toSystem(SearchParamType code) { 13986 return code.getSystem(); 13987 } 13988 } 13989 13990 public enum SpecialValues { 13991 /** 13992 * Boolean true. 13993 */ 13994 TRUE, 13995 /** 13996 * Boolean false. 13997 */ 13998 FALSE, 13999 /** 14000 * The content is greater than zero, but too small to be quantified. 14001 */ 14002 TRACE, 14003 /** 14004 * The specific quantity is not known, but is known to be non-zero and is not specified because it makes up the bulk of the material. 14005 */ 14006 SUFFICIENT, 14007 /** 14008 * The value is no longer available. 14009 */ 14010 WITHDRAWN, 14011 /** 14012 * The are no known applicable values in this context. 14013 */ 14014 NILKNOWN, 14015 /** 14016 * added to help the parsers 14017 */ 14018 NULL; 14019 public static SpecialValues fromCode(String codeString) throws FHIRException { 14020 if (codeString == null || "".equals(codeString)) 14021 return null; 14022 if ("true".equals(codeString)) 14023 return TRUE; 14024 if ("false".equals(codeString)) 14025 return FALSE; 14026 if ("trace".equals(codeString)) 14027 return TRACE; 14028 if ("sufficient".equals(codeString)) 14029 return SUFFICIENT; 14030 if ("withdrawn".equals(codeString)) 14031 return WITHDRAWN; 14032 if ("nil-known".equals(codeString)) 14033 return NILKNOWN; 14034 throw new FHIRException("Unknown SpecialValues code '"+codeString+"'"); 14035 } 14036 public String toCode() { 14037 switch (this) { 14038 case TRUE: return "true"; 14039 case FALSE: return "false"; 14040 case TRACE: return "trace"; 14041 case SUFFICIENT: return "sufficient"; 14042 case WITHDRAWN: return "withdrawn"; 14043 case NILKNOWN: return "nil-known"; 14044 default: return "?"; 14045 } 14046 } 14047 public String getSystem() { 14048 switch (this) { 14049 case TRUE: return "http://terminology.hl7.org/CodeSystem/special-values"; 14050 case FALSE: return "http://terminology.hl7.org/CodeSystem/special-values"; 14051 case TRACE: return "http://terminology.hl7.org/CodeSystem/special-values"; 14052 case SUFFICIENT: return "http://terminology.hl7.org/CodeSystem/special-values"; 14053 case WITHDRAWN: return "http://terminology.hl7.org/CodeSystem/special-values"; 14054 case NILKNOWN: return "http://terminology.hl7.org/CodeSystem/special-values"; 14055 default: return "?"; 14056 } 14057 } 14058 public String getDefinition() { 14059 switch (this) { 14060 case TRUE: return "Boolean true."; 14061 case FALSE: return "Boolean false."; 14062 case TRACE: return "The content is greater than zero, but too small to be quantified."; 14063 case SUFFICIENT: return "The specific quantity is not known, but is known to be non-zero and is not specified because it makes up the bulk of the material."; 14064 case WITHDRAWN: return "The value is no longer available."; 14065 case NILKNOWN: return "The are no known applicable values in this context."; 14066 default: return "?"; 14067 } 14068 } 14069 public String getDisplay() { 14070 switch (this) { 14071 case TRUE: return "true"; 14072 case FALSE: return "false"; 14073 case TRACE: return "Trace Amount Detected"; 14074 case SUFFICIENT: return "Sufficient Quantity"; 14075 case WITHDRAWN: return "Value Withdrawn"; 14076 case NILKNOWN: return "Nil Known"; 14077 default: return "?"; 14078 } 14079 } 14080 } 14081 14082 public static class SpecialValuesEnumFactory implements EnumFactory<SpecialValues> { 14083 public SpecialValues fromCode(String codeString) throws IllegalArgumentException { 14084 if (codeString == null || "".equals(codeString)) 14085 if (codeString == null || "".equals(codeString)) 14086 return null; 14087 if ("true".equals(codeString)) 14088 return SpecialValues.TRUE; 14089 if ("false".equals(codeString)) 14090 return SpecialValues.FALSE; 14091 if ("trace".equals(codeString)) 14092 return SpecialValues.TRACE; 14093 if ("sufficient".equals(codeString)) 14094 return SpecialValues.SUFFICIENT; 14095 if ("withdrawn".equals(codeString)) 14096 return SpecialValues.WITHDRAWN; 14097 if ("nil-known".equals(codeString)) 14098 return SpecialValues.NILKNOWN; 14099 throw new IllegalArgumentException("Unknown SpecialValues code '"+codeString+"'"); 14100 } 14101 public Enumeration<SpecialValues> fromType(Base code) throws FHIRException { 14102 if (code == null) 14103 return null; 14104 if (code.isEmpty()) 14105 return new Enumeration<SpecialValues>(this); 14106 String codeString = ((PrimitiveType) code).asStringValue(); 14107 if (codeString == null || "".equals(codeString)) 14108 return null; 14109 if ("true".equals(codeString)) 14110 return new Enumeration<SpecialValues>(this, SpecialValues.TRUE); 14111 if ("false".equals(codeString)) 14112 return new Enumeration<SpecialValues>(this, SpecialValues.FALSE); 14113 if ("trace".equals(codeString)) 14114 return new Enumeration<SpecialValues>(this, SpecialValues.TRACE); 14115 if ("sufficient".equals(codeString)) 14116 return new Enumeration<SpecialValues>(this, SpecialValues.SUFFICIENT); 14117 if ("withdrawn".equals(codeString)) 14118 return new Enumeration<SpecialValues>(this, SpecialValues.WITHDRAWN); 14119 if ("nil-known".equals(codeString)) 14120 return new Enumeration<SpecialValues>(this, SpecialValues.NILKNOWN); 14121 throw new FHIRException("Unknown SpecialValues code '"+codeString+"'"); 14122 } 14123 public String toCode(SpecialValues code) { 14124 if (code == SpecialValues.TRUE) 14125 return "true"; 14126 if (code == SpecialValues.FALSE) 14127 return "false"; 14128 if (code == SpecialValues.TRACE) 14129 return "trace"; 14130 if (code == SpecialValues.SUFFICIENT) 14131 return "sufficient"; 14132 if (code == SpecialValues.WITHDRAWN) 14133 return "withdrawn"; 14134 if (code == SpecialValues.NILKNOWN) 14135 return "nil-known"; 14136 return "?"; 14137 } 14138 public String toSystem(SpecialValues code) { 14139 return code.getSystem(); 14140 } 14141 } 14142 14143 14144} 14145