001package org.hl7.fhir.dstu3.model; 002 003/* 004 Copyright (c) 2011+, HL7, Inc. 005 All rights reserved. 006 007 Redistribution and use in source and binary forms, with or without modification, 008 are permitted provided that the following conditions are met: 009 010 * Redistributions of source code must retain the above copyright notice, this 011 list of conditions and the following disclaimer. 012 * Redistributions in binary form must reproduce the above copyright notice, 013 this list of conditions and the following disclaimer in the documentation 014 and/or other materials provided with the distribution. 015 * Neither the name of HL7 nor the names of its contributors may be used to 016 endorse or promote products derived from this software without specific 017 prior written permission. 018 019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 022 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 023 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 024 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 026 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 027 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 028 POSSIBILITY OF SUCH DAMAGE. 029 030*/ 031 032// Generated on Fri, Mar 16, 2018 15:21+1100 for FHIR v3.0.1 033 034import java.util.*; 035 036import org.hl7.fhir.utilities.Utilities; 037import ca.uhn.fhir.model.api.annotation.ResourceDef; 038import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 039import ca.uhn.fhir.model.api.annotation.Child; 040import ca.uhn.fhir.model.api.annotation.ChildOrder; 041import ca.uhn.fhir.model.api.annotation.Description; 042import ca.uhn.fhir.model.api.annotation.Block; 043import org.hl7.fhir.instance.model.api.*; 044import org.hl7.fhir.exceptions.FHIRException; 045import org.hl7.fhir.exceptions.FHIRFormatError; 046/** 047 * Describes the event of a patient being administered a vaccination or a record of a vaccination as reported by a patient, a clinician or another party and may include vaccine reaction information and what vaccination protocol was followed. 048 */ 049@ResourceDef(name="Immunization", profile="http://hl7.org/fhir/StructureDefinition/Immunization") 050public class Immunization extends DomainResource { 051 052 public enum ImmunizationStatus { 053 /** 054 * null 055 */ 056 COMPLETED, 057 /** 058 * null 059 */ 060 ENTEREDINERROR, 061 /** 062 * added to help the parsers with the generic types 063 */ 064 NULL; 065 public static ImmunizationStatus fromCode(String codeString) throws FHIRException { 066 if (codeString == null || "".equals(codeString)) 067 return null; 068 if ("completed".equals(codeString)) 069 return COMPLETED; 070 if ("entered-in-error".equals(codeString)) 071 return ENTEREDINERROR; 072 if (Configuration.isAcceptInvalidEnums()) 073 return null; 074 else 075 throw new FHIRException("Unknown ImmunizationStatus code '"+codeString+"'"); 076 } 077 public String toCode() { 078 switch (this) { 079 case COMPLETED: return "completed"; 080 case ENTEREDINERROR: return "entered-in-error"; 081 default: return "?"; 082 } 083 } 084 public String getSystem() { 085 switch (this) { 086 case COMPLETED: return "http://hl7.org/fhir/medication-admin-status"; 087 case ENTEREDINERROR: return "http://hl7.org/fhir/medication-admin-status"; 088 default: return "?"; 089 } 090 } 091 public String getDefinition() { 092 switch (this) { 093 case COMPLETED: return ""; 094 case ENTEREDINERROR: return ""; 095 default: return "?"; 096 } 097 } 098 public String getDisplay() { 099 switch (this) { 100 case COMPLETED: return "completed"; 101 case ENTEREDINERROR: return "entered-in-error"; 102 default: return "?"; 103 } 104 } 105 } 106 107 public static class ImmunizationStatusEnumFactory implements EnumFactory<ImmunizationStatus> { 108 public ImmunizationStatus fromCode(String codeString) throws IllegalArgumentException { 109 if (codeString == null || "".equals(codeString)) 110 if (codeString == null || "".equals(codeString)) 111 return null; 112 if ("completed".equals(codeString)) 113 return ImmunizationStatus.COMPLETED; 114 if ("entered-in-error".equals(codeString)) 115 return ImmunizationStatus.ENTEREDINERROR; 116 throw new IllegalArgumentException("Unknown ImmunizationStatus code '"+codeString+"'"); 117 } 118 public Enumeration<ImmunizationStatus> fromType(Base code) throws FHIRException { 119 if (code == null) 120 return null; 121 if (code.isEmpty()) 122 return new Enumeration<ImmunizationStatus>(this); 123 String codeString = ((PrimitiveType) code).asStringValue(); 124 if (codeString == null || "".equals(codeString)) 125 return null; 126 if ("completed".equals(codeString)) 127 return new Enumeration<ImmunizationStatus>(this, ImmunizationStatus.COMPLETED); 128 if ("entered-in-error".equals(codeString)) 129 return new Enumeration<ImmunizationStatus>(this, ImmunizationStatus.ENTEREDINERROR); 130 throw new FHIRException("Unknown ImmunizationStatus code '"+codeString+"'"); 131 } 132 public String toCode(ImmunizationStatus code) { 133 if (code == ImmunizationStatus.COMPLETED) 134 return "completed"; 135 if (code == ImmunizationStatus.ENTEREDINERROR) 136 return "entered-in-error"; 137 return "?"; 138 } 139 public String toSystem(ImmunizationStatus code) { 140 return code.getSystem(); 141 } 142 } 143 144 @Block() 145 public static class ImmunizationPractitionerComponent extends BackboneElement implements IBaseBackboneElement { 146 /** 147 * Describes the type of performance (e.g. ordering provider, administering provider, etc.). 148 */ 149 @Child(name = "role", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) 150 @Description(shortDefinition="What type of performance was done", formalDefinition="Describes the type of performance (e.g. ordering provider, administering provider, etc.)." ) 151 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/immunization-role") 152 protected CodeableConcept role; 153 154 /** 155 * The device, practitioner, etc. who performed the action. 156 */ 157 @Child(name = "actor", type = {Practitioner.class}, order=2, min=1, max=1, modifier=false, summary=true) 158 @Description(shortDefinition="Individual who was performing", formalDefinition="The device, practitioner, etc. who performed the action." ) 159 protected Reference actor; 160 161 /** 162 * The actual object that is the target of the reference (The device, practitioner, etc. who performed the action.) 163 */ 164 protected Practitioner actorTarget; 165 166 private static final long serialVersionUID = -922003669L; 167 168 /** 169 * Constructor 170 */ 171 public ImmunizationPractitionerComponent() { 172 super(); 173 } 174 175 /** 176 * Constructor 177 */ 178 public ImmunizationPractitionerComponent(Reference actor) { 179 super(); 180 this.actor = actor; 181 } 182 183 /** 184 * @return {@link #role} (Describes the type of performance (e.g. ordering provider, administering provider, etc.).) 185 */ 186 public CodeableConcept getRole() { 187 if (this.role == null) 188 if (Configuration.errorOnAutoCreate()) 189 throw new Error("Attempt to auto-create ImmunizationPractitionerComponent.role"); 190 else if (Configuration.doAutoCreate()) 191 this.role = new CodeableConcept(); // cc 192 return this.role; 193 } 194 195 public boolean hasRole() { 196 return this.role != null && !this.role.isEmpty(); 197 } 198 199 /** 200 * @param value {@link #role} (Describes the type of performance (e.g. ordering provider, administering provider, etc.).) 201 */ 202 public ImmunizationPractitionerComponent setRole(CodeableConcept value) { 203 this.role = value; 204 return this; 205 } 206 207 /** 208 * @return {@link #actor} (The device, practitioner, etc. who performed the action.) 209 */ 210 public Reference getActor() { 211 if (this.actor == null) 212 if (Configuration.errorOnAutoCreate()) 213 throw new Error("Attempt to auto-create ImmunizationPractitionerComponent.actor"); 214 else if (Configuration.doAutoCreate()) 215 this.actor = new Reference(); // cc 216 return this.actor; 217 } 218 219 public boolean hasActor() { 220 return this.actor != null && !this.actor.isEmpty(); 221 } 222 223 /** 224 * @param value {@link #actor} (The device, practitioner, etc. who performed the action.) 225 */ 226 public ImmunizationPractitionerComponent setActor(Reference value) { 227 this.actor = value; 228 return this; 229 } 230 231 /** 232 * @return {@link #actor} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The device, practitioner, etc. who performed the action.) 233 */ 234 public Practitioner getActorTarget() { 235 if (this.actorTarget == null) 236 if (Configuration.errorOnAutoCreate()) 237 throw new Error("Attempt to auto-create ImmunizationPractitionerComponent.actor"); 238 else if (Configuration.doAutoCreate()) 239 this.actorTarget = new Practitioner(); // aa 240 return this.actorTarget; 241 } 242 243 /** 244 * @param value {@link #actor} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The device, practitioner, etc. who performed the action.) 245 */ 246 public ImmunizationPractitionerComponent setActorTarget(Practitioner value) { 247 this.actorTarget = value; 248 return this; 249 } 250 251 protected void listChildren(List<Property> children) { 252 super.listChildren(children); 253 children.add(new Property("role", "CodeableConcept", "Describes the type of performance (e.g. ordering provider, administering provider, etc.).", 0, 1, role)); 254 children.add(new Property("actor", "Reference(Practitioner)", "The device, practitioner, etc. who performed the action.", 0, 1, actor)); 255 } 256 257 @Override 258 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 259 switch (_hash) { 260 case 3506294: /*role*/ return new Property("role", "CodeableConcept", "Describes the type of performance (e.g. ordering provider, administering provider, etc.).", 0, 1, role); 261 case 92645877: /*actor*/ return new Property("actor", "Reference(Practitioner)", "The device, practitioner, etc. who performed the action.", 0, 1, actor); 262 default: return super.getNamedProperty(_hash, _name, _checkValid); 263 } 264 265 } 266 267 @Override 268 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 269 switch (hash) { 270 case 3506294: /*role*/ return this.role == null ? new Base[0] : new Base[] {this.role}; // CodeableConcept 271 case 92645877: /*actor*/ return this.actor == null ? new Base[0] : new Base[] {this.actor}; // Reference 272 default: return super.getProperty(hash, name, checkValid); 273 } 274 275 } 276 277 @Override 278 public Base setProperty(int hash, String name, Base value) throws FHIRException { 279 switch (hash) { 280 case 3506294: // role 281 this.role = castToCodeableConcept(value); // CodeableConcept 282 return value; 283 case 92645877: // actor 284 this.actor = castToReference(value); // Reference 285 return value; 286 default: return super.setProperty(hash, name, value); 287 } 288 289 } 290 291 @Override 292 public Base setProperty(String name, Base value) throws FHIRException { 293 if (name.equals("role")) { 294 this.role = castToCodeableConcept(value); // CodeableConcept 295 } else if (name.equals("actor")) { 296 this.actor = castToReference(value); // Reference 297 } else 298 return super.setProperty(name, value); 299 return value; 300 } 301 302 @Override 303 public Base makeProperty(int hash, String name) throws FHIRException { 304 switch (hash) { 305 case 3506294: return getRole(); 306 case 92645877: return getActor(); 307 default: return super.makeProperty(hash, name); 308 } 309 310 } 311 312 @Override 313 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 314 switch (hash) { 315 case 3506294: /*role*/ return new String[] {"CodeableConcept"}; 316 case 92645877: /*actor*/ return new String[] {"Reference"}; 317 default: return super.getTypesForProperty(hash, name); 318 } 319 320 } 321 322 @Override 323 public Base addChild(String name) throws FHIRException { 324 if (name.equals("role")) { 325 this.role = new CodeableConcept(); 326 return this.role; 327 } 328 else if (name.equals("actor")) { 329 this.actor = new Reference(); 330 return this.actor; 331 } 332 else 333 return super.addChild(name); 334 } 335 336 public ImmunizationPractitionerComponent copy() { 337 ImmunizationPractitionerComponent dst = new ImmunizationPractitionerComponent(); 338 copyValues(dst); 339 dst.role = role == null ? null : role.copy(); 340 dst.actor = actor == null ? null : actor.copy(); 341 return dst; 342 } 343 344 @Override 345 public boolean equalsDeep(Base other_) { 346 if (!super.equalsDeep(other_)) 347 return false; 348 if (!(other_ instanceof ImmunizationPractitionerComponent)) 349 return false; 350 ImmunizationPractitionerComponent o = (ImmunizationPractitionerComponent) other_; 351 return compareDeep(role, o.role, true) && compareDeep(actor, o.actor, true); 352 } 353 354 @Override 355 public boolean equalsShallow(Base other_) { 356 if (!super.equalsShallow(other_)) 357 return false; 358 if (!(other_ instanceof ImmunizationPractitionerComponent)) 359 return false; 360 ImmunizationPractitionerComponent o = (ImmunizationPractitionerComponent) other_; 361 return true; 362 } 363 364 public boolean isEmpty() { 365 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(role, actor); 366 } 367 368 public String fhirType() { 369 return "Immunization.practitioner"; 370 371 } 372 373 } 374 375 @Block() 376 public static class ImmunizationExplanationComponent extends BackboneElement implements IBaseBackboneElement { 377 /** 378 * Reasons why a vaccine was administered. 379 */ 380 @Child(name = "reason", type = {CodeableConcept.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 381 @Description(shortDefinition="Why immunization occurred", formalDefinition="Reasons why a vaccine was administered." ) 382 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/immunization-reason") 383 protected List<CodeableConcept> reason; 384 385 /** 386 * Reason why a vaccine was not administered. 387 */ 388 @Child(name = "reasonNotGiven", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 389 @Description(shortDefinition="Why immunization did not occur", formalDefinition="Reason why a vaccine was not administered." ) 390 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/no-immunization-reason") 391 protected List<CodeableConcept> reasonNotGiven; 392 393 private static final long serialVersionUID = -539821866L; 394 395 /** 396 * Constructor 397 */ 398 public ImmunizationExplanationComponent() { 399 super(); 400 } 401 402 /** 403 * @return {@link #reason} (Reasons why a vaccine was administered.) 404 */ 405 public List<CodeableConcept> getReason() { 406 if (this.reason == null) 407 this.reason = new ArrayList<CodeableConcept>(); 408 return this.reason; 409 } 410 411 /** 412 * @return Returns a reference to <code>this</code> for easy method chaining 413 */ 414 public ImmunizationExplanationComponent setReason(List<CodeableConcept> theReason) { 415 this.reason = theReason; 416 return this; 417 } 418 419 public boolean hasReason() { 420 if (this.reason == null) 421 return false; 422 for (CodeableConcept item : this.reason) 423 if (!item.isEmpty()) 424 return true; 425 return false; 426 } 427 428 public CodeableConcept addReason() { //3 429 CodeableConcept t = new CodeableConcept(); 430 if (this.reason == null) 431 this.reason = new ArrayList<CodeableConcept>(); 432 this.reason.add(t); 433 return t; 434 } 435 436 public ImmunizationExplanationComponent addReason(CodeableConcept t) { //3 437 if (t == null) 438 return this; 439 if (this.reason == null) 440 this.reason = new ArrayList<CodeableConcept>(); 441 this.reason.add(t); 442 return this; 443 } 444 445 /** 446 * @return The first repetition of repeating field {@link #reason}, creating it if it does not already exist 447 */ 448 public CodeableConcept getReasonFirstRep() { 449 if (getReason().isEmpty()) { 450 addReason(); 451 } 452 return getReason().get(0); 453 } 454 455 /** 456 * @return {@link #reasonNotGiven} (Reason why a vaccine was not administered.) 457 */ 458 public List<CodeableConcept> getReasonNotGiven() { 459 if (this.reasonNotGiven == null) 460 this.reasonNotGiven = new ArrayList<CodeableConcept>(); 461 return this.reasonNotGiven; 462 } 463 464 /** 465 * @return Returns a reference to <code>this</code> for easy method chaining 466 */ 467 public ImmunizationExplanationComponent setReasonNotGiven(List<CodeableConcept> theReasonNotGiven) { 468 this.reasonNotGiven = theReasonNotGiven; 469 return this; 470 } 471 472 public boolean hasReasonNotGiven() { 473 if (this.reasonNotGiven == null) 474 return false; 475 for (CodeableConcept item : this.reasonNotGiven) 476 if (!item.isEmpty()) 477 return true; 478 return false; 479 } 480 481 public CodeableConcept addReasonNotGiven() { //3 482 CodeableConcept t = new CodeableConcept(); 483 if (this.reasonNotGiven == null) 484 this.reasonNotGiven = new ArrayList<CodeableConcept>(); 485 this.reasonNotGiven.add(t); 486 return t; 487 } 488 489 public ImmunizationExplanationComponent addReasonNotGiven(CodeableConcept t) { //3 490 if (t == null) 491 return this; 492 if (this.reasonNotGiven == null) 493 this.reasonNotGiven = new ArrayList<CodeableConcept>(); 494 this.reasonNotGiven.add(t); 495 return this; 496 } 497 498 /** 499 * @return The first repetition of repeating field {@link #reasonNotGiven}, creating it if it does not already exist 500 */ 501 public CodeableConcept getReasonNotGivenFirstRep() { 502 if (getReasonNotGiven().isEmpty()) { 503 addReasonNotGiven(); 504 } 505 return getReasonNotGiven().get(0); 506 } 507 508 protected void listChildren(List<Property> children) { 509 super.listChildren(children); 510 children.add(new Property("reason", "CodeableConcept", "Reasons why a vaccine was administered.", 0, java.lang.Integer.MAX_VALUE, reason)); 511 children.add(new Property("reasonNotGiven", "CodeableConcept", "Reason why a vaccine was not administered.", 0, java.lang.Integer.MAX_VALUE, reasonNotGiven)); 512 } 513 514 @Override 515 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 516 switch (_hash) { 517 case -934964668: /*reason*/ return new Property("reason", "CodeableConcept", "Reasons why a vaccine was administered.", 0, java.lang.Integer.MAX_VALUE, reason); 518 case 2101123790: /*reasonNotGiven*/ return new Property("reasonNotGiven", "CodeableConcept", "Reason why a vaccine was not administered.", 0, java.lang.Integer.MAX_VALUE, reasonNotGiven); 519 default: return super.getNamedProperty(_hash, _name, _checkValid); 520 } 521 522 } 523 524 @Override 525 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 526 switch (hash) { 527 case -934964668: /*reason*/ return this.reason == null ? new Base[0] : this.reason.toArray(new Base[this.reason.size()]); // CodeableConcept 528 case 2101123790: /*reasonNotGiven*/ return this.reasonNotGiven == null ? new Base[0] : this.reasonNotGiven.toArray(new Base[this.reasonNotGiven.size()]); // CodeableConcept 529 default: return super.getProperty(hash, name, checkValid); 530 } 531 532 } 533 534 @Override 535 public Base setProperty(int hash, String name, Base value) throws FHIRException { 536 switch (hash) { 537 case -934964668: // reason 538 this.getReason().add(castToCodeableConcept(value)); // CodeableConcept 539 return value; 540 case 2101123790: // reasonNotGiven 541 this.getReasonNotGiven().add(castToCodeableConcept(value)); // CodeableConcept 542 return value; 543 default: return super.setProperty(hash, name, value); 544 } 545 546 } 547 548 @Override 549 public Base setProperty(String name, Base value) throws FHIRException { 550 if (name.equals("reason")) { 551 this.getReason().add(castToCodeableConcept(value)); 552 } else if (name.equals("reasonNotGiven")) { 553 this.getReasonNotGiven().add(castToCodeableConcept(value)); 554 } else 555 return super.setProperty(name, value); 556 return value; 557 } 558 559 @Override 560 public Base makeProperty(int hash, String name) throws FHIRException { 561 switch (hash) { 562 case -934964668: return addReason(); 563 case 2101123790: return addReasonNotGiven(); 564 default: return super.makeProperty(hash, name); 565 } 566 567 } 568 569 @Override 570 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 571 switch (hash) { 572 case -934964668: /*reason*/ return new String[] {"CodeableConcept"}; 573 case 2101123790: /*reasonNotGiven*/ return new String[] {"CodeableConcept"}; 574 default: return super.getTypesForProperty(hash, name); 575 } 576 577 } 578 579 @Override 580 public Base addChild(String name) throws FHIRException { 581 if (name.equals("reason")) { 582 return addReason(); 583 } 584 else if (name.equals("reasonNotGiven")) { 585 return addReasonNotGiven(); 586 } 587 else 588 return super.addChild(name); 589 } 590 591 public ImmunizationExplanationComponent copy() { 592 ImmunizationExplanationComponent dst = new ImmunizationExplanationComponent(); 593 copyValues(dst); 594 if (reason != null) { 595 dst.reason = new ArrayList<CodeableConcept>(); 596 for (CodeableConcept i : reason) 597 dst.reason.add(i.copy()); 598 }; 599 if (reasonNotGiven != null) { 600 dst.reasonNotGiven = new ArrayList<CodeableConcept>(); 601 for (CodeableConcept i : reasonNotGiven) 602 dst.reasonNotGiven.add(i.copy()); 603 }; 604 return dst; 605 } 606 607 @Override 608 public boolean equalsDeep(Base other_) { 609 if (!super.equalsDeep(other_)) 610 return false; 611 if (!(other_ instanceof ImmunizationExplanationComponent)) 612 return false; 613 ImmunizationExplanationComponent o = (ImmunizationExplanationComponent) other_; 614 return compareDeep(reason, o.reason, true) && compareDeep(reasonNotGiven, o.reasonNotGiven, true) 615 ; 616 } 617 618 @Override 619 public boolean equalsShallow(Base other_) { 620 if (!super.equalsShallow(other_)) 621 return false; 622 if (!(other_ instanceof ImmunizationExplanationComponent)) 623 return false; 624 ImmunizationExplanationComponent o = (ImmunizationExplanationComponent) other_; 625 return true; 626 } 627 628 public boolean isEmpty() { 629 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(reason, reasonNotGiven); 630 } 631 632 public String fhirType() { 633 return "Immunization.explanation"; 634 635 } 636 637 } 638 639 @Block() 640 public static class ImmunizationReactionComponent extends BackboneElement implements IBaseBackboneElement { 641 /** 642 * Date of reaction to the immunization. 643 */ 644 @Child(name = "date", type = {DateTimeType.class}, order=1, min=0, max=1, modifier=false, summary=false) 645 @Description(shortDefinition="When reaction started", formalDefinition="Date of reaction to the immunization." ) 646 protected DateTimeType date; 647 648 /** 649 * Details of the reaction. 650 */ 651 @Child(name = "detail", type = {Observation.class}, order=2, min=0, max=1, modifier=false, summary=false) 652 @Description(shortDefinition="Additional information on reaction", formalDefinition="Details of the reaction." ) 653 protected Reference detail; 654 655 /** 656 * The actual object that is the target of the reference (Details of the reaction.) 657 */ 658 protected Observation detailTarget; 659 660 /** 661 * Self-reported indicator. 662 */ 663 @Child(name = "reported", type = {BooleanType.class}, order=3, min=0, max=1, modifier=false, summary=false) 664 @Description(shortDefinition="Indicates self-reported reaction", formalDefinition="Self-reported indicator." ) 665 protected BooleanType reported; 666 667 private static final long serialVersionUID = -1297668556L; 668 669 /** 670 * Constructor 671 */ 672 public ImmunizationReactionComponent() { 673 super(); 674 } 675 676 /** 677 * @return {@link #date} (Date of reaction to the immunization.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 678 */ 679 public DateTimeType getDateElement() { 680 if (this.date == null) 681 if (Configuration.errorOnAutoCreate()) 682 throw new Error("Attempt to auto-create ImmunizationReactionComponent.date"); 683 else if (Configuration.doAutoCreate()) 684 this.date = new DateTimeType(); // bb 685 return this.date; 686 } 687 688 public boolean hasDateElement() { 689 return this.date != null && !this.date.isEmpty(); 690 } 691 692 public boolean hasDate() { 693 return this.date != null && !this.date.isEmpty(); 694 } 695 696 /** 697 * @param value {@link #date} (Date of reaction to the immunization.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 698 */ 699 public ImmunizationReactionComponent setDateElement(DateTimeType value) { 700 this.date = value; 701 return this; 702 } 703 704 /** 705 * @return Date of reaction to the immunization. 706 */ 707 public Date getDate() { 708 return this.date == null ? null : this.date.getValue(); 709 } 710 711 /** 712 * @param value Date of reaction to the immunization. 713 */ 714 public ImmunizationReactionComponent setDate(Date value) { 715 if (value == null) 716 this.date = null; 717 else { 718 if (this.date == null) 719 this.date = new DateTimeType(); 720 this.date.setValue(value); 721 } 722 return this; 723 } 724 725 /** 726 * @return {@link #detail} (Details of the reaction.) 727 */ 728 public Reference getDetail() { 729 if (this.detail == null) 730 if (Configuration.errorOnAutoCreate()) 731 throw new Error("Attempt to auto-create ImmunizationReactionComponent.detail"); 732 else if (Configuration.doAutoCreate()) 733 this.detail = new Reference(); // cc 734 return this.detail; 735 } 736 737 public boolean hasDetail() { 738 return this.detail != null && !this.detail.isEmpty(); 739 } 740 741 /** 742 * @param value {@link #detail} (Details of the reaction.) 743 */ 744 public ImmunizationReactionComponent setDetail(Reference value) { 745 this.detail = value; 746 return this; 747 } 748 749 /** 750 * @return {@link #detail} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Details of the reaction.) 751 */ 752 public Observation getDetailTarget() { 753 if (this.detailTarget == null) 754 if (Configuration.errorOnAutoCreate()) 755 throw new Error("Attempt to auto-create ImmunizationReactionComponent.detail"); 756 else if (Configuration.doAutoCreate()) 757 this.detailTarget = new Observation(); // aa 758 return this.detailTarget; 759 } 760 761 /** 762 * @param value {@link #detail} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Details of the reaction.) 763 */ 764 public ImmunizationReactionComponent setDetailTarget(Observation value) { 765 this.detailTarget = value; 766 return this; 767 } 768 769 /** 770 * @return {@link #reported} (Self-reported indicator.). This is the underlying object with id, value and extensions. The accessor "getReported" gives direct access to the value 771 */ 772 public BooleanType getReportedElement() { 773 if (this.reported == null) 774 if (Configuration.errorOnAutoCreate()) 775 throw new Error("Attempt to auto-create ImmunizationReactionComponent.reported"); 776 else if (Configuration.doAutoCreate()) 777 this.reported = new BooleanType(); // bb 778 return this.reported; 779 } 780 781 public boolean hasReportedElement() { 782 return this.reported != null && !this.reported.isEmpty(); 783 } 784 785 public boolean hasReported() { 786 return this.reported != null && !this.reported.isEmpty(); 787 } 788 789 /** 790 * @param value {@link #reported} (Self-reported indicator.). This is the underlying object with id, value and extensions. The accessor "getReported" gives direct access to the value 791 */ 792 public ImmunizationReactionComponent setReportedElement(BooleanType value) { 793 this.reported = value; 794 return this; 795 } 796 797 /** 798 * @return Self-reported indicator. 799 */ 800 public boolean getReported() { 801 return this.reported == null || this.reported.isEmpty() ? false : this.reported.getValue(); 802 } 803 804 /** 805 * @param value Self-reported indicator. 806 */ 807 public ImmunizationReactionComponent setReported(boolean value) { 808 if (this.reported == null) 809 this.reported = new BooleanType(); 810 this.reported.setValue(value); 811 return this; 812 } 813 814 protected void listChildren(List<Property> children) { 815 super.listChildren(children); 816 children.add(new Property("date", "dateTime", "Date of reaction to the immunization.", 0, 1, date)); 817 children.add(new Property("detail", "Reference(Observation)", "Details of the reaction.", 0, 1, detail)); 818 children.add(new Property("reported", "boolean", "Self-reported indicator.", 0, 1, reported)); 819 } 820 821 @Override 822 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 823 switch (_hash) { 824 case 3076014: /*date*/ return new Property("date", "dateTime", "Date of reaction to the immunization.", 0, 1, date); 825 case -1335224239: /*detail*/ return new Property("detail", "Reference(Observation)", "Details of the reaction.", 0, 1, detail); 826 case -427039533: /*reported*/ return new Property("reported", "boolean", "Self-reported indicator.", 0, 1, reported); 827 default: return super.getNamedProperty(_hash, _name, _checkValid); 828 } 829 830 } 831 832 @Override 833 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 834 switch (hash) { 835 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 836 case -1335224239: /*detail*/ return this.detail == null ? new Base[0] : new Base[] {this.detail}; // Reference 837 case -427039533: /*reported*/ return this.reported == null ? new Base[0] : new Base[] {this.reported}; // BooleanType 838 default: return super.getProperty(hash, name, checkValid); 839 } 840 841 } 842 843 @Override 844 public Base setProperty(int hash, String name, Base value) throws FHIRException { 845 switch (hash) { 846 case 3076014: // date 847 this.date = castToDateTime(value); // DateTimeType 848 return value; 849 case -1335224239: // detail 850 this.detail = castToReference(value); // Reference 851 return value; 852 case -427039533: // reported 853 this.reported = castToBoolean(value); // BooleanType 854 return value; 855 default: return super.setProperty(hash, name, value); 856 } 857 858 } 859 860 @Override 861 public Base setProperty(String name, Base value) throws FHIRException { 862 if (name.equals("date")) { 863 this.date = castToDateTime(value); // DateTimeType 864 } else if (name.equals("detail")) { 865 this.detail = castToReference(value); // Reference 866 } else if (name.equals("reported")) { 867 this.reported = castToBoolean(value); // BooleanType 868 } else 869 return super.setProperty(name, value); 870 return value; 871 } 872 873 @Override 874 public Base makeProperty(int hash, String name) throws FHIRException { 875 switch (hash) { 876 case 3076014: return getDateElement(); 877 case -1335224239: return getDetail(); 878 case -427039533: return getReportedElement(); 879 default: return super.makeProperty(hash, name); 880 } 881 882 } 883 884 @Override 885 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 886 switch (hash) { 887 case 3076014: /*date*/ return new String[] {"dateTime"}; 888 case -1335224239: /*detail*/ return new String[] {"Reference"}; 889 case -427039533: /*reported*/ return new String[] {"boolean"}; 890 default: return super.getTypesForProperty(hash, name); 891 } 892 893 } 894 895 @Override 896 public Base addChild(String name) throws FHIRException { 897 if (name.equals("date")) { 898 throw new FHIRException("Cannot call addChild on a primitive type Immunization.date"); 899 } 900 else if (name.equals("detail")) { 901 this.detail = new Reference(); 902 return this.detail; 903 } 904 else if (name.equals("reported")) { 905 throw new FHIRException("Cannot call addChild on a primitive type Immunization.reported"); 906 } 907 else 908 return super.addChild(name); 909 } 910 911 public ImmunizationReactionComponent copy() { 912 ImmunizationReactionComponent dst = new ImmunizationReactionComponent(); 913 copyValues(dst); 914 dst.date = date == null ? null : date.copy(); 915 dst.detail = detail == null ? null : detail.copy(); 916 dst.reported = reported == null ? null : reported.copy(); 917 return dst; 918 } 919 920 @Override 921 public boolean equalsDeep(Base other_) { 922 if (!super.equalsDeep(other_)) 923 return false; 924 if (!(other_ instanceof ImmunizationReactionComponent)) 925 return false; 926 ImmunizationReactionComponent o = (ImmunizationReactionComponent) other_; 927 return compareDeep(date, o.date, true) && compareDeep(detail, o.detail, true) && compareDeep(reported, o.reported, true) 928 ; 929 } 930 931 @Override 932 public boolean equalsShallow(Base other_) { 933 if (!super.equalsShallow(other_)) 934 return false; 935 if (!(other_ instanceof ImmunizationReactionComponent)) 936 return false; 937 ImmunizationReactionComponent o = (ImmunizationReactionComponent) other_; 938 return compareValues(date, o.date, true) && compareValues(reported, o.reported, true); 939 } 940 941 public boolean isEmpty() { 942 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(date, detail, reported); 943 } 944 945 public String fhirType() { 946 return "Immunization.reaction"; 947 948 } 949 950 } 951 952 @Block() 953 public static class ImmunizationVaccinationProtocolComponent extends BackboneElement implements IBaseBackboneElement { 954 /** 955 * Nominal position in a series. 956 */ 957 @Child(name = "doseSequence", type = {PositiveIntType.class}, order=1, min=0, max=1, modifier=false, summary=false) 958 @Description(shortDefinition="Dose number within series", formalDefinition="Nominal position in a series." ) 959 protected PositiveIntType doseSequence; 960 961 /** 962 * Contains the description about the protocol under which the vaccine was administered. 963 */ 964 @Child(name = "description", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) 965 @Description(shortDefinition="Details of vaccine protocol", formalDefinition="Contains the description about the protocol under which the vaccine was administered." ) 966 protected StringType description; 967 968 /** 969 * Indicates the authority who published the protocol. E.g. ACIP. 970 */ 971 @Child(name = "authority", type = {Organization.class}, order=3, min=0, max=1, modifier=false, summary=false) 972 @Description(shortDefinition="Who is responsible for protocol", formalDefinition="Indicates the authority who published the protocol. E.g. ACIP." ) 973 protected Reference authority; 974 975 /** 976 * The actual object that is the target of the reference (Indicates the authority who published the protocol. E.g. ACIP.) 977 */ 978 protected Organization authorityTarget; 979 980 /** 981 * One possible path to achieve presumed immunity against a disease - within the context of an authority. 982 */ 983 @Child(name = "series", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false) 984 @Description(shortDefinition="Name of vaccine series", formalDefinition="One possible path to achieve presumed immunity against a disease - within the context of an authority." ) 985 protected StringType series; 986 987 /** 988 * The recommended number of doses to achieve immunity. 989 */ 990 @Child(name = "seriesDoses", type = {PositiveIntType.class}, order=5, min=0, max=1, modifier=false, summary=false) 991 @Description(shortDefinition="Recommended number of doses for immunity", formalDefinition="The recommended number of doses to achieve immunity." ) 992 protected PositiveIntType seriesDoses; 993 994 /** 995 * The targeted disease. 996 */ 997 @Child(name = "targetDisease", type = {CodeableConcept.class}, order=6, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 998 @Description(shortDefinition="Disease immunized against", formalDefinition="The targeted disease." ) 999 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/vaccination-protocol-dose-target") 1000 protected List<CodeableConcept> targetDisease; 1001 1002 /** 1003 * Indicates if the immunization event should "count" against the protocol. 1004 */ 1005 @Child(name = "doseStatus", type = {CodeableConcept.class}, order=7, min=1, max=1, modifier=false, summary=false) 1006 @Description(shortDefinition="Indicates if dose counts towards immunity", formalDefinition="Indicates if the immunization event should \"count\" against the protocol." ) 1007 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/vaccination-protocol-dose-status") 1008 protected CodeableConcept doseStatus; 1009 1010 /** 1011 * Provides an explanation as to why an immunization event should or should not count against the protocol. 1012 */ 1013 @Child(name = "doseStatusReason", type = {CodeableConcept.class}, order=8, min=0, max=1, modifier=false, summary=false) 1014 @Description(shortDefinition="Why dose does (not) count", formalDefinition="Provides an explanation as to why an immunization event should or should not count against the protocol." ) 1015 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/vaccination-protocol-dose-status-reason") 1016 protected CodeableConcept doseStatusReason; 1017 1018 private static final long serialVersionUID = 386814037L; 1019 1020 /** 1021 * Constructor 1022 */ 1023 public ImmunizationVaccinationProtocolComponent() { 1024 super(); 1025 } 1026 1027 /** 1028 * Constructor 1029 */ 1030 public ImmunizationVaccinationProtocolComponent(CodeableConcept doseStatus) { 1031 super(); 1032 this.doseStatus = doseStatus; 1033 } 1034 1035 /** 1036 * @return {@link #doseSequence} (Nominal position in a series.). This is the underlying object with id, value and extensions. The accessor "getDoseSequence" gives direct access to the value 1037 */ 1038 public PositiveIntType getDoseSequenceElement() { 1039 if (this.doseSequence == null) 1040 if (Configuration.errorOnAutoCreate()) 1041 throw new Error("Attempt to auto-create ImmunizationVaccinationProtocolComponent.doseSequence"); 1042 else if (Configuration.doAutoCreate()) 1043 this.doseSequence = new PositiveIntType(); // bb 1044 return this.doseSequence; 1045 } 1046 1047 public boolean hasDoseSequenceElement() { 1048 return this.doseSequence != null && !this.doseSequence.isEmpty(); 1049 } 1050 1051 public boolean hasDoseSequence() { 1052 return this.doseSequence != null && !this.doseSequence.isEmpty(); 1053 } 1054 1055 /** 1056 * @param value {@link #doseSequence} (Nominal position in a series.). This is the underlying object with id, value and extensions. The accessor "getDoseSequence" gives direct access to the value 1057 */ 1058 public ImmunizationVaccinationProtocolComponent setDoseSequenceElement(PositiveIntType value) { 1059 this.doseSequence = value; 1060 return this; 1061 } 1062 1063 /** 1064 * @return Nominal position in a series. 1065 */ 1066 public int getDoseSequence() { 1067 return this.doseSequence == null || this.doseSequence.isEmpty() ? 0 : this.doseSequence.getValue(); 1068 } 1069 1070 /** 1071 * @param value Nominal position in a series. 1072 */ 1073 public ImmunizationVaccinationProtocolComponent setDoseSequence(int value) { 1074 if (this.doseSequence == null) 1075 this.doseSequence = new PositiveIntType(); 1076 this.doseSequence.setValue(value); 1077 return this; 1078 } 1079 1080 /** 1081 * @return {@link #description} (Contains the description about the protocol under which the vaccine was administered.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 1082 */ 1083 public StringType getDescriptionElement() { 1084 if (this.description == null) 1085 if (Configuration.errorOnAutoCreate()) 1086 throw new Error("Attempt to auto-create ImmunizationVaccinationProtocolComponent.description"); 1087 else if (Configuration.doAutoCreate()) 1088 this.description = new StringType(); // bb 1089 return this.description; 1090 } 1091 1092 public boolean hasDescriptionElement() { 1093 return this.description != null && !this.description.isEmpty(); 1094 } 1095 1096 public boolean hasDescription() { 1097 return this.description != null && !this.description.isEmpty(); 1098 } 1099 1100 /** 1101 * @param value {@link #description} (Contains the description about the protocol under which the vaccine was administered.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 1102 */ 1103 public ImmunizationVaccinationProtocolComponent setDescriptionElement(StringType value) { 1104 this.description = value; 1105 return this; 1106 } 1107 1108 /** 1109 * @return Contains the description about the protocol under which the vaccine was administered. 1110 */ 1111 public String getDescription() { 1112 return this.description == null ? null : this.description.getValue(); 1113 } 1114 1115 /** 1116 * @param value Contains the description about the protocol under which the vaccine was administered. 1117 */ 1118 public ImmunizationVaccinationProtocolComponent setDescription(String value) { 1119 if (Utilities.noString(value)) 1120 this.description = null; 1121 else { 1122 if (this.description == null) 1123 this.description = new StringType(); 1124 this.description.setValue(value); 1125 } 1126 return this; 1127 } 1128 1129 /** 1130 * @return {@link #authority} (Indicates the authority who published the protocol. E.g. ACIP.) 1131 */ 1132 public Reference getAuthority() { 1133 if (this.authority == null) 1134 if (Configuration.errorOnAutoCreate()) 1135 throw new Error("Attempt to auto-create ImmunizationVaccinationProtocolComponent.authority"); 1136 else if (Configuration.doAutoCreate()) 1137 this.authority = new Reference(); // cc 1138 return this.authority; 1139 } 1140 1141 public boolean hasAuthority() { 1142 return this.authority != null && !this.authority.isEmpty(); 1143 } 1144 1145 /** 1146 * @param value {@link #authority} (Indicates the authority who published the protocol. E.g. ACIP.) 1147 */ 1148 public ImmunizationVaccinationProtocolComponent setAuthority(Reference value) { 1149 this.authority = value; 1150 return this; 1151 } 1152 1153 /** 1154 * @return {@link #authority} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Indicates the authority who published the protocol. E.g. ACIP.) 1155 */ 1156 public Organization getAuthorityTarget() { 1157 if (this.authorityTarget == null) 1158 if (Configuration.errorOnAutoCreate()) 1159 throw new Error("Attempt to auto-create ImmunizationVaccinationProtocolComponent.authority"); 1160 else if (Configuration.doAutoCreate()) 1161 this.authorityTarget = new Organization(); // aa 1162 return this.authorityTarget; 1163 } 1164 1165 /** 1166 * @param value {@link #authority} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Indicates the authority who published the protocol. E.g. ACIP.) 1167 */ 1168 public ImmunizationVaccinationProtocolComponent setAuthorityTarget(Organization value) { 1169 this.authorityTarget = value; 1170 return this; 1171 } 1172 1173 /** 1174 * @return {@link #series} (One possible path to achieve presumed immunity against a disease - within the context of an authority.). This is the underlying object with id, value and extensions. The accessor "getSeries" gives direct access to the value 1175 */ 1176 public StringType getSeriesElement() { 1177 if (this.series == null) 1178 if (Configuration.errorOnAutoCreate()) 1179 throw new Error("Attempt to auto-create ImmunizationVaccinationProtocolComponent.series"); 1180 else if (Configuration.doAutoCreate()) 1181 this.series = new StringType(); // bb 1182 return this.series; 1183 } 1184 1185 public boolean hasSeriesElement() { 1186 return this.series != null && !this.series.isEmpty(); 1187 } 1188 1189 public boolean hasSeries() { 1190 return this.series != null && !this.series.isEmpty(); 1191 } 1192 1193 /** 1194 * @param value {@link #series} (One possible path to achieve presumed immunity against a disease - within the context of an authority.). This is the underlying object with id, value and extensions. The accessor "getSeries" gives direct access to the value 1195 */ 1196 public ImmunizationVaccinationProtocolComponent setSeriesElement(StringType value) { 1197 this.series = value; 1198 return this; 1199 } 1200 1201 /** 1202 * @return One possible path to achieve presumed immunity against a disease - within the context of an authority. 1203 */ 1204 public String getSeries() { 1205 return this.series == null ? null : this.series.getValue(); 1206 } 1207 1208 /** 1209 * @param value One possible path to achieve presumed immunity against a disease - within the context of an authority. 1210 */ 1211 public ImmunizationVaccinationProtocolComponent setSeries(String value) { 1212 if (Utilities.noString(value)) 1213 this.series = null; 1214 else { 1215 if (this.series == null) 1216 this.series = new StringType(); 1217 this.series.setValue(value); 1218 } 1219 return this; 1220 } 1221 1222 /** 1223 * @return {@link #seriesDoses} (The recommended number of doses to achieve immunity.). This is the underlying object with id, value and extensions. The accessor "getSeriesDoses" gives direct access to the value 1224 */ 1225 public PositiveIntType getSeriesDosesElement() { 1226 if (this.seriesDoses == null) 1227 if (Configuration.errorOnAutoCreate()) 1228 throw new Error("Attempt to auto-create ImmunizationVaccinationProtocolComponent.seriesDoses"); 1229 else if (Configuration.doAutoCreate()) 1230 this.seriesDoses = new PositiveIntType(); // bb 1231 return this.seriesDoses; 1232 } 1233 1234 public boolean hasSeriesDosesElement() { 1235 return this.seriesDoses != null && !this.seriesDoses.isEmpty(); 1236 } 1237 1238 public boolean hasSeriesDoses() { 1239 return this.seriesDoses != null && !this.seriesDoses.isEmpty(); 1240 } 1241 1242 /** 1243 * @param value {@link #seriesDoses} (The recommended number of doses to achieve immunity.). This is the underlying object with id, value and extensions. The accessor "getSeriesDoses" gives direct access to the value 1244 */ 1245 public ImmunizationVaccinationProtocolComponent setSeriesDosesElement(PositiveIntType value) { 1246 this.seriesDoses = value; 1247 return this; 1248 } 1249 1250 /** 1251 * @return The recommended number of doses to achieve immunity. 1252 */ 1253 public int getSeriesDoses() { 1254 return this.seriesDoses == null || this.seriesDoses.isEmpty() ? 0 : this.seriesDoses.getValue(); 1255 } 1256 1257 /** 1258 * @param value The recommended number of doses to achieve immunity. 1259 */ 1260 public ImmunizationVaccinationProtocolComponent setSeriesDoses(int value) { 1261 if (this.seriesDoses == null) 1262 this.seriesDoses = new PositiveIntType(); 1263 this.seriesDoses.setValue(value); 1264 return this; 1265 } 1266 1267 /** 1268 * @return {@link #targetDisease} (The targeted disease.) 1269 */ 1270 public List<CodeableConcept> getTargetDisease() { 1271 if (this.targetDisease == null) 1272 this.targetDisease = new ArrayList<CodeableConcept>(); 1273 return this.targetDisease; 1274 } 1275 1276 /** 1277 * @return Returns a reference to <code>this</code> for easy method chaining 1278 */ 1279 public ImmunizationVaccinationProtocolComponent setTargetDisease(List<CodeableConcept> theTargetDisease) { 1280 this.targetDisease = theTargetDisease; 1281 return this; 1282 } 1283 1284 public boolean hasTargetDisease() { 1285 if (this.targetDisease == null) 1286 return false; 1287 for (CodeableConcept item : this.targetDisease) 1288 if (!item.isEmpty()) 1289 return true; 1290 return false; 1291 } 1292 1293 public CodeableConcept addTargetDisease() { //3 1294 CodeableConcept t = new CodeableConcept(); 1295 if (this.targetDisease == null) 1296 this.targetDisease = new ArrayList<CodeableConcept>(); 1297 this.targetDisease.add(t); 1298 return t; 1299 } 1300 1301 public ImmunizationVaccinationProtocolComponent addTargetDisease(CodeableConcept t) { //3 1302 if (t == null) 1303 return this; 1304 if (this.targetDisease == null) 1305 this.targetDisease = new ArrayList<CodeableConcept>(); 1306 this.targetDisease.add(t); 1307 return this; 1308 } 1309 1310 /** 1311 * @return The first repetition of repeating field {@link #targetDisease}, creating it if it does not already exist 1312 */ 1313 public CodeableConcept getTargetDiseaseFirstRep() { 1314 if (getTargetDisease().isEmpty()) { 1315 addTargetDisease(); 1316 } 1317 return getTargetDisease().get(0); 1318 } 1319 1320 /** 1321 * @return {@link #doseStatus} (Indicates if the immunization event should "count" against the protocol.) 1322 */ 1323 public CodeableConcept getDoseStatus() { 1324 if (this.doseStatus == null) 1325 if (Configuration.errorOnAutoCreate()) 1326 throw new Error("Attempt to auto-create ImmunizationVaccinationProtocolComponent.doseStatus"); 1327 else if (Configuration.doAutoCreate()) 1328 this.doseStatus = new CodeableConcept(); // cc 1329 return this.doseStatus; 1330 } 1331 1332 public boolean hasDoseStatus() { 1333 return this.doseStatus != null && !this.doseStatus.isEmpty(); 1334 } 1335 1336 /** 1337 * @param value {@link #doseStatus} (Indicates if the immunization event should "count" against the protocol.) 1338 */ 1339 public ImmunizationVaccinationProtocolComponent setDoseStatus(CodeableConcept value) { 1340 this.doseStatus = value; 1341 return this; 1342 } 1343 1344 /** 1345 * @return {@link #doseStatusReason} (Provides an explanation as to why an immunization event should or should not count against the protocol.) 1346 */ 1347 public CodeableConcept getDoseStatusReason() { 1348 if (this.doseStatusReason == null) 1349 if (Configuration.errorOnAutoCreate()) 1350 throw new Error("Attempt to auto-create ImmunizationVaccinationProtocolComponent.doseStatusReason"); 1351 else if (Configuration.doAutoCreate()) 1352 this.doseStatusReason = new CodeableConcept(); // cc 1353 return this.doseStatusReason; 1354 } 1355 1356 public boolean hasDoseStatusReason() { 1357 return this.doseStatusReason != null && !this.doseStatusReason.isEmpty(); 1358 } 1359 1360 /** 1361 * @param value {@link #doseStatusReason} (Provides an explanation as to why an immunization event should or should not count against the protocol.) 1362 */ 1363 public ImmunizationVaccinationProtocolComponent setDoseStatusReason(CodeableConcept value) { 1364 this.doseStatusReason = value; 1365 return this; 1366 } 1367 1368 protected void listChildren(List<Property> children) { 1369 super.listChildren(children); 1370 children.add(new Property("doseSequence", "positiveInt", "Nominal position in a series.", 0, 1, doseSequence)); 1371 children.add(new Property("description", "string", "Contains the description about the protocol under which the vaccine was administered.", 0, 1, description)); 1372 children.add(new Property("authority", "Reference(Organization)", "Indicates the authority who published the protocol. E.g. ACIP.", 0, 1, authority)); 1373 children.add(new Property("series", "string", "One possible path to achieve presumed immunity against a disease - within the context of an authority.", 0, 1, series)); 1374 children.add(new Property("seriesDoses", "positiveInt", "The recommended number of doses to achieve immunity.", 0, 1, seriesDoses)); 1375 children.add(new Property("targetDisease", "CodeableConcept", "The targeted disease.", 0, java.lang.Integer.MAX_VALUE, targetDisease)); 1376 children.add(new Property("doseStatus", "CodeableConcept", "Indicates if the immunization event should \"count\" against the protocol.", 0, 1, doseStatus)); 1377 children.add(new Property("doseStatusReason", "CodeableConcept", "Provides an explanation as to why an immunization event should or should not count against the protocol.", 0, 1, doseStatusReason)); 1378 } 1379 1380 @Override 1381 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1382 switch (_hash) { 1383 case 550933246: /*doseSequence*/ return new Property("doseSequence", "positiveInt", "Nominal position in a series.", 0, 1, doseSequence); 1384 case -1724546052: /*description*/ return new Property("description", "string", "Contains the description about the protocol under which the vaccine was administered.", 0, 1, description); 1385 case 1475610435: /*authority*/ return new Property("authority", "Reference(Organization)", "Indicates the authority who published the protocol. E.g. ACIP.", 0, 1, authority); 1386 case -905838985: /*series*/ return new Property("series", "string", "One possible path to achieve presumed immunity against a disease - within the context of an authority.", 0, 1, series); 1387 case -1936727105: /*seriesDoses*/ return new Property("seriesDoses", "positiveInt", "The recommended number of doses to achieve immunity.", 0, 1, seriesDoses); 1388 case -319593813: /*targetDisease*/ return new Property("targetDisease", "CodeableConcept", "The targeted disease.", 0, java.lang.Integer.MAX_VALUE, targetDisease); 1389 case -745826705: /*doseStatus*/ return new Property("doseStatus", "CodeableConcept", "Indicates if the immunization event should \"count\" against the protocol.", 0, 1, doseStatus); 1390 case 662783379: /*doseStatusReason*/ return new Property("doseStatusReason", "CodeableConcept", "Provides an explanation as to why an immunization event should or should not count against the protocol.", 0, 1, doseStatusReason); 1391 default: return super.getNamedProperty(_hash, _name, _checkValid); 1392 } 1393 1394 } 1395 1396 @Override 1397 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1398 switch (hash) { 1399 case 550933246: /*doseSequence*/ return this.doseSequence == null ? new Base[0] : new Base[] {this.doseSequence}; // PositiveIntType 1400 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 1401 case 1475610435: /*authority*/ return this.authority == null ? new Base[0] : new Base[] {this.authority}; // Reference 1402 case -905838985: /*series*/ return this.series == null ? new Base[0] : new Base[] {this.series}; // StringType 1403 case -1936727105: /*seriesDoses*/ return this.seriesDoses == null ? new Base[0] : new Base[] {this.seriesDoses}; // PositiveIntType 1404 case -319593813: /*targetDisease*/ return this.targetDisease == null ? new Base[0] : this.targetDisease.toArray(new Base[this.targetDisease.size()]); // CodeableConcept 1405 case -745826705: /*doseStatus*/ return this.doseStatus == null ? new Base[0] : new Base[] {this.doseStatus}; // CodeableConcept 1406 case 662783379: /*doseStatusReason*/ return this.doseStatusReason == null ? new Base[0] : new Base[] {this.doseStatusReason}; // CodeableConcept 1407 default: return super.getProperty(hash, name, checkValid); 1408 } 1409 1410 } 1411 1412 @Override 1413 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1414 switch (hash) { 1415 case 550933246: // doseSequence 1416 this.doseSequence = castToPositiveInt(value); // PositiveIntType 1417 return value; 1418 case -1724546052: // description 1419 this.description = castToString(value); // StringType 1420 return value; 1421 case 1475610435: // authority 1422 this.authority = castToReference(value); // Reference 1423 return value; 1424 case -905838985: // series 1425 this.series = castToString(value); // StringType 1426 return value; 1427 case -1936727105: // seriesDoses 1428 this.seriesDoses = castToPositiveInt(value); // PositiveIntType 1429 return value; 1430 case -319593813: // targetDisease 1431 this.getTargetDisease().add(castToCodeableConcept(value)); // CodeableConcept 1432 return value; 1433 case -745826705: // doseStatus 1434 this.doseStatus = castToCodeableConcept(value); // CodeableConcept 1435 return value; 1436 case 662783379: // doseStatusReason 1437 this.doseStatusReason = castToCodeableConcept(value); // CodeableConcept 1438 return value; 1439 default: return super.setProperty(hash, name, value); 1440 } 1441 1442 } 1443 1444 @Override 1445 public Base setProperty(String name, Base value) throws FHIRException { 1446 if (name.equals("doseSequence")) { 1447 this.doseSequence = castToPositiveInt(value); // PositiveIntType 1448 } else if (name.equals("description")) { 1449 this.description = castToString(value); // StringType 1450 } else if (name.equals("authority")) { 1451 this.authority = castToReference(value); // Reference 1452 } else if (name.equals("series")) { 1453 this.series = castToString(value); // StringType 1454 } else if (name.equals("seriesDoses")) { 1455 this.seriesDoses = castToPositiveInt(value); // PositiveIntType 1456 } else if (name.equals("targetDisease")) { 1457 this.getTargetDisease().add(castToCodeableConcept(value)); 1458 } else if (name.equals("doseStatus")) { 1459 this.doseStatus = castToCodeableConcept(value); // CodeableConcept 1460 } else if (name.equals("doseStatusReason")) { 1461 this.doseStatusReason = castToCodeableConcept(value); // CodeableConcept 1462 } else 1463 return super.setProperty(name, value); 1464 return value; 1465 } 1466 1467 @Override 1468 public Base makeProperty(int hash, String name) throws FHIRException { 1469 switch (hash) { 1470 case 550933246: return getDoseSequenceElement(); 1471 case -1724546052: return getDescriptionElement(); 1472 case 1475610435: return getAuthority(); 1473 case -905838985: return getSeriesElement(); 1474 case -1936727105: return getSeriesDosesElement(); 1475 case -319593813: return addTargetDisease(); 1476 case -745826705: return getDoseStatus(); 1477 case 662783379: return getDoseStatusReason(); 1478 default: return super.makeProperty(hash, name); 1479 } 1480 1481 } 1482 1483 @Override 1484 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1485 switch (hash) { 1486 case 550933246: /*doseSequence*/ return new String[] {"positiveInt"}; 1487 case -1724546052: /*description*/ return new String[] {"string"}; 1488 case 1475610435: /*authority*/ return new String[] {"Reference"}; 1489 case -905838985: /*series*/ return new String[] {"string"}; 1490 case -1936727105: /*seriesDoses*/ return new String[] {"positiveInt"}; 1491 case -319593813: /*targetDisease*/ return new String[] {"CodeableConcept"}; 1492 case -745826705: /*doseStatus*/ return new String[] {"CodeableConcept"}; 1493 case 662783379: /*doseStatusReason*/ return new String[] {"CodeableConcept"}; 1494 default: return super.getTypesForProperty(hash, name); 1495 } 1496 1497 } 1498 1499 @Override 1500 public Base addChild(String name) throws FHIRException { 1501 if (name.equals("doseSequence")) { 1502 throw new FHIRException("Cannot call addChild on a primitive type Immunization.doseSequence"); 1503 } 1504 else if (name.equals("description")) { 1505 throw new FHIRException("Cannot call addChild on a primitive type Immunization.description"); 1506 } 1507 else if (name.equals("authority")) { 1508 this.authority = new Reference(); 1509 return this.authority; 1510 } 1511 else if (name.equals("series")) { 1512 throw new FHIRException("Cannot call addChild on a primitive type Immunization.series"); 1513 } 1514 else if (name.equals("seriesDoses")) { 1515 throw new FHIRException("Cannot call addChild on a primitive type Immunization.seriesDoses"); 1516 } 1517 else if (name.equals("targetDisease")) { 1518 return addTargetDisease(); 1519 } 1520 else if (name.equals("doseStatus")) { 1521 this.doseStatus = new CodeableConcept(); 1522 return this.doseStatus; 1523 } 1524 else if (name.equals("doseStatusReason")) { 1525 this.doseStatusReason = new CodeableConcept(); 1526 return this.doseStatusReason; 1527 } 1528 else 1529 return super.addChild(name); 1530 } 1531 1532 public ImmunizationVaccinationProtocolComponent copy() { 1533 ImmunizationVaccinationProtocolComponent dst = new ImmunizationVaccinationProtocolComponent(); 1534 copyValues(dst); 1535 dst.doseSequence = doseSequence == null ? null : doseSequence.copy(); 1536 dst.description = description == null ? null : description.copy(); 1537 dst.authority = authority == null ? null : authority.copy(); 1538 dst.series = series == null ? null : series.copy(); 1539 dst.seriesDoses = seriesDoses == null ? null : seriesDoses.copy(); 1540 if (targetDisease != null) { 1541 dst.targetDisease = new ArrayList<CodeableConcept>(); 1542 for (CodeableConcept i : targetDisease) 1543 dst.targetDisease.add(i.copy()); 1544 }; 1545 dst.doseStatus = doseStatus == null ? null : doseStatus.copy(); 1546 dst.doseStatusReason = doseStatusReason == null ? null : doseStatusReason.copy(); 1547 return dst; 1548 } 1549 1550 @Override 1551 public boolean equalsDeep(Base other_) { 1552 if (!super.equalsDeep(other_)) 1553 return false; 1554 if (!(other_ instanceof ImmunizationVaccinationProtocolComponent)) 1555 return false; 1556 ImmunizationVaccinationProtocolComponent o = (ImmunizationVaccinationProtocolComponent) other_; 1557 return compareDeep(doseSequence, o.doseSequence, true) && compareDeep(description, o.description, true) 1558 && compareDeep(authority, o.authority, true) && compareDeep(series, o.series, true) && compareDeep(seriesDoses, o.seriesDoses, true) 1559 && compareDeep(targetDisease, o.targetDisease, true) && compareDeep(doseStatus, o.doseStatus, true) 1560 && compareDeep(doseStatusReason, o.doseStatusReason, true); 1561 } 1562 1563 @Override 1564 public boolean equalsShallow(Base other_) { 1565 if (!super.equalsShallow(other_)) 1566 return false; 1567 if (!(other_ instanceof ImmunizationVaccinationProtocolComponent)) 1568 return false; 1569 ImmunizationVaccinationProtocolComponent o = (ImmunizationVaccinationProtocolComponent) other_; 1570 return compareValues(doseSequence, o.doseSequence, true) && compareValues(description, o.description, true) 1571 && compareValues(series, o.series, true) && compareValues(seriesDoses, o.seriesDoses, true); 1572 } 1573 1574 public boolean isEmpty() { 1575 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(doseSequence, description 1576 , authority, series, seriesDoses, targetDisease, doseStatus, doseStatusReason); 1577 } 1578 1579 public String fhirType() { 1580 return "Immunization.vaccinationProtocol"; 1581 1582 } 1583 1584 } 1585 1586 /** 1587 * A unique identifier assigned to this immunization record. 1588 */ 1589 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1590 @Description(shortDefinition="Business identifier", formalDefinition="A unique identifier assigned to this immunization record." ) 1591 protected List<Identifier> identifier; 1592 1593 /** 1594 * Indicates the current status of the vaccination event. 1595 */ 1596 @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) 1597 @Description(shortDefinition="completed | entered-in-error", formalDefinition="Indicates the current status of the vaccination event." ) 1598 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/immunization-status") 1599 protected Enumeration<ImmunizationStatus> status; 1600 1601 /** 1602 * Indicates if the vaccination was or was not given. 1603 */ 1604 @Child(name = "notGiven", type = {BooleanType.class}, order=2, min=1, max=1, modifier=true, summary=true) 1605 @Description(shortDefinition="Flag for whether immunization was given", formalDefinition="Indicates if the vaccination was or was not given." ) 1606 protected BooleanType notGiven; 1607 1608 /** 1609 * Vaccine that was administered or was to be administered. 1610 */ 1611 @Child(name = "vaccineCode", type = {CodeableConcept.class}, order=3, min=1, max=1, modifier=false, summary=false) 1612 @Description(shortDefinition="Vaccine product administered", formalDefinition="Vaccine that was administered or was to be administered." ) 1613 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/vaccine-code") 1614 protected CodeableConcept vaccineCode; 1615 1616 /** 1617 * The patient who either received or did not receive the immunization. 1618 */ 1619 @Child(name = "patient", type = {Patient.class}, order=4, min=1, max=1, modifier=false, summary=false) 1620 @Description(shortDefinition="Who was immunized", formalDefinition="The patient who either received or did not receive the immunization." ) 1621 protected Reference patient; 1622 1623 /** 1624 * The actual object that is the target of the reference (The patient who either received or did not receive the immunization.) 1625 */ 1626 protected Patient patientTarget; 1627 1628 /** 1629 * The visit or admission or other contact between patient and health care provider the immunization was performed as part of. 1630 */ 1631 @Child(name = "encounter", type = {Encounter.class}, order=5, min=0, max=1, modifier=false, summary=false) 1632 @Description(shortDefinition="Encounter administered as part of", formalDefinition="The visit or admission or other contact between patient and health care provider the immunization was performed as part of." ) 1633 protected Reference encounter; 1634 1635 /** 1636 * The actual object that is the target of the reference (The visit or admission or other contact between patient and health care provider the immunization was performed as part of.) 1637 */ 1638 protected Encounter encounterTarget; 1639 1640 /** 1641 * Date vaccine administered or was to be administered. 1642 */ 1643 @Child(name = "date", type = {DateTimeType.class}, order=6, min=0, max=1, modifier=false, summary=false) 1644 @Description(shortDefinition="Vaccination administration date", formalDefinition="Date vaccine administered or was to be administered." ) 1645 protected DateTimeType date; 1646 1647 /** 1648 * An indication that the content of the record is based on information from the person who administered the vaccine. This reflects the context under which the data was originally recorded. 1649 */ 1650 @Child(name = "primarySource", type = {BooleanType.class}, order=7, min=1, max=1, modifier=false, summary=false) 1651 @Description(shortDefinition="Indicates context the data was recorded in", formalDefinition="An indication that the content of the record is based on information from the person who administered the vaccine. This reflects the context under which the data was originally recorded." ) 1652 protected BooleanType primarySource; 1653 1654 /** 1655 * The source of the data when the report of the immunization event is not based on information from the person who administered the vaccine. 1656 */ 1657 @Child(name = "reportOrigin", type = {CodeableConcept.class}, order=8, min=0, max=1, modifier=false, summary=false) 1658 @Description(shortDefinition="Indicates the source of a secondarily reported record", formalDefinition="The source of the data when the report of the immunization event is not based on information from the person who administered the vaccine." ) 1659 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/immunization-origin") 1660 protected CodeableConcept reportOrigin; 1661 1662 /** 1663 * The service delivery location where the vaccine administration occurred. 1664 */ 1665 @Child(name = "location", type = {Location.class}, order=9, min=0, max=1, modifier=false, summary=false) 1666 @Description(shortDefinition="Where vaccination occurred", formalDefinition="The service delivery location where the vaccine administration occurred." ) 1667 protected Reference location; 1668 1669 /** 1670 * The actual object that is the target of the reference (The service delivery location where the vaccine administration occurred.) 1671 */ 1672 protected Location locationTarget; 1673 1674 /** 1675 * Name of vaccine manufacturer. 1676 */ 1677 @Child(name = "manufacturer", type = {Organization.class}, order=10, min=0, max=1, modifier=false, summary=false) 1678 @Description(shortDefinition="Vaccine manufacturer", formalDefinition="Name of vaccine manufacturer." ) 1679 protected Reference manufacturer; 1680 1681 /** 1682 * The actual object that is the target of the reference (Name of vaccine manufacturer.) 1683 */ 1684 protected Organization manufacturerTarget; 1685 1686 /** 1687 * Lot number of the vaccine product. 1688 */ 1689 @Child(name = "lotNumber", type = {StringType.class}, order=11, min=0, max=1, modifier=false, summary=false) 1690 @Description(shortDefinition="Vaccine lot number", formalDefinition="Lot number of the vaccine product." ) 1691 protected StringType lotNumber; 1692 1693 /** 1694 * Date vaccine batch expires. 1695 */ 1696 @Child(name = "expirationDate", type = {DateType.class}, order=12, min=0, max=1, modifier=false, summary=false) 1697 @Description(shortDefinition="Vaccine expiration date", formalDefinition="Date vaccine batch expires." ) 1698 protected DateType expirationDate; 1699 1700 /** 1701 * Body site where vaccine was administered. 1702 */ 1703 @Child(name = "site", type = {CodeableConcept.class}, order=13, min=0, max=1, modifier=false, summary=false) 1704 @Description(shortDefinition="Body site vaccine was administered", formalDefinition="Body site where vaccine was administered." ) 1705 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/immunization-site") 1706 protected CodeableConcept site; 1707 1708 /** 1709 * The path by which the vaccine product is taken into the body. 1710 */ 1711 @Child(name = "route", type = {CodeableConcept.class}, order=14, min=0, max=1, modifier=false, summary=false) 1712 @Description(shortDefinition="How vaccine entered body", formalDefinition="The path by which the vaccine product is taken into the body." ) 1713 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/immunization-route") 1714 protected CodeableConcept route; 1715 1716 /** 1717 * The quantity of vaccine product that was administered. 1718 */ 1719 @Child(name = "doseQuantity", type = {SimpleQuantity.class}, order=15, min=0, max=1, modifier=false, summary=false) 1720 @Description(shortDefinition="Amount of vaccine administered", formalDefinition="The quantity of vaccine product that was administered." ) 1721 protected SimpleQuantity doseQuantity; 1722 1723 /** 1724 * Indicates who or what performed the event. 1725 */ 1726 @Child(name = "practitioner", type = {}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1727 @Description(shortDefinition="Who performed event", formalDefinition="Indicates who or what performed the event." ) 1728 protected List<ImmunizationPractitionerComponent> practitioner; 1729 1730 /** 1731 * Extra information about the immunization that is not conveyed by the other attributes. 1732 */ 1733 @Child(name = "note", type = {Annotation.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 1734 @Description(shortDefinition="Vaccination notes", formalDefinition="Extra information about the immunization that is not conveyed by the other attributes." ) 1735 protected List<Annotation> note; 1736 1737 /** 1738 * Reasons why a vaccine was or was not administered. 1739 */ 1740 @Child(name = "explanation", type = {}, order=18, min=0, max=1, modifier=false, summary=false) 1741 @Description(shortDefinition="Administration/non-administration reasons", formalDefinition="Reasons why a vaccine was or was not administered." ) 1742 protected ImmunizationExplanationComponent explanation; 1743 1744 /** 1745 * Categorical data indicating that an adverse event is associated in time to an immunization. 1746 */ 1747 @Child(name = "reaction", type = {}, order=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1748 @Description(shortDefinition="Details of a reaction that follows immunization", formalDefinition="Categorical data indicating that an adverse event is associated in time to an immunization." ) 1749 protected List<ImmunizationReactionComponent> reaction; 1750 1751 /** 1752 * Contains information about the protocol(s) under which the vaccine was administered. 1753 */ 1754 @Child(name = "vaccinationProtocol", type = {}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 1755 @Description(shortDefinition="What protocol was followed", formalDefinition="Contains information about the protocol(s) under which the vaccine was administered." ) 1756 protected List<ImmunizationVaccinationProtocolComponent> vaccinationProtocol; 1757 1758 private static final long serialVersionUID = 658058655L; 1759 1760 /** 1761 * Constructor 1762 */ 1763 public Immunization() { 1764 super(); 1765 } 1766 1767 /** 1768 * Constructor 1769 */ 1770 public Immunization(Enumeration<ImmunizationStatus> status, BooleanType notGiven, CodeableConcept vaccineCode, Reference patient, BooleanType primarySource) { 1771 super(); 1772 this.status = status; 1773 this.notGiven = notGiven; 1774 this.vaccineCode = vaccineCode; 1775 this.patient = patient; 1776 this.primarySource = primarySource; 1777 } 1778 1779 /** 1780 * @return {@link #identifier} (A unique identifier assigned to this immunization record.) 1781 */ 1782 public List<Identifier> getIdentifier() { 1783 if (this.identifier == null) 1784 this.identifier = new ArrayList<Identifier>(); 1785 return this.identifier; 1786 } 1787 1788 /** 1789 * @return Returns a reference to <code>this</code> for easy method chaining 1790 */ 1791 public Immunization setIdentifier(List<Identifier> theIdentifier) { 1792 this.identifier = theIdentifier; 1793 return this; 1794 } 1795 1796 public boolean hasIdentifier() { 1797 if (this.identifier == null) 1798 return false; 1799 for (Identifier item : this.identifier) 1800 if (!item.isEmpty()) 1801 return true; 1802 return false; 1803 } 1804 1805 public Identifier addIdentifier() { //3 1806 Identifier t = new Identifier(); 1807 if (this.identifier == null) 1808 this.identifier = new ArrayList<Identifier>(); 1809 this.identifier.add(t); 1810 return t; 1811 } 1812 1813 public Immunization addIdentifier(Identifier t) { //3 1814 if (t == null) 1815 return this; 1816 if (this.identifier == null) 1817 this.identifier = new ArrayList<Identifier>(); 1818 this.identifier.add(t); 1819 return this; 1820 } 1821 1822 /** 1823 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist 1824 */ 1825 public Identifier getIdentifierFirstRep() { 1826 if (getIdentifier().isEmpty()) { 1827 addIdentifier(); 1828 } 1829 return getIdentifier().get(0); 1830 } 1831 1832 /** 1833 * @return {@link #status} (Indicates the current status of the vaccination event.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1834 */ 1835 public Enumeration<ImmunizationStatus> getStatusElement() { 1836 if (this.status == null) 1837 if (Configuration.errorOnAutoCreate()) 1838 throw new Error("Attempt to auto-create Immunization.status"); 1839 else if (Configuration.doAutoCreate()) 1840 this.status = new Enumeration<ImmunizationStatus>(new ImmunizationStatusEnumFactory()); // bb 1841 return this.status; 1842 } 1843 1844 public boolean hasStatusElement() { 1845 return this.status != null && !this.status.isEmpty(); 1846 } 1847 1848 public boolean hasStatus() { 1849 return this.status != null && !this.status.isEmpty(); 1850 } 1851 1852 /** 1853 * @param value {@link #status} (Indicates the current status of the vaccination event.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1854 */ 1855 public Immunization setStatusElement(Enumeration<ImmunizationStatus> value) { 1856 this.status = value; 1857 return this; 1858 } 1859 1860 /** 1861 * @return Indicates the current status of the vaccination event. 1862 */ 1863 public ImmunizationStatus getStatus() { 1864 return this.status == null ? null : this.status.getValue(); 1865 } 1866 1867 /** 1868 * @param value Indicates the current status of the vaccination event. 1869 */ 1870 public Immunization setStatus(ImmunizationStatus value) { 1871 if (this.status == null) 1872 this.status = new Enumeration<ImmunizationStatus>(new ImmunizationStatusEnumFactory()); 1873 this.status.setValue(value); 1874 return this; 1875 } 1876 1877 /** 1878 * @return {@link #notGiven} (Indicates if the vaccination was or was not given.). This is the underlying object with id, value and extensions. The accessor "getNotGiven" gives direct access to the value 1879 */ 1880 public BooleanType getNotGivenElement() { 1881 if (this.notGiven == null) 1882 if (Configuration.errorOnAutoCreate()) 1883 throw new Error("Attempt to auto-create Immunization.notGiven"); 1884 else if (Configuration.doAutoCreate()) 1885 this.notGiven = new BooleanType(); // bb 1886 return this.notGiven; 1887 } 1888 1889 public boolean hasNotGivenElement() { 1890 return this.notGiven != null && !this.notGiven.isEmpty(); 1891 } 1892 1893 public boolean hasNotGiven() { 1894 return this.notGiven != null && !this.notGiven.isEmpty(); 1895 } 1896 1897 /** 1898 * @param value {@link #notGiven} (Indicates if the vaccination was or was not given.). This is the underlying object with id, value and extensions. The accessor "getNotGiven" gives direct access to the value 1899 */ 1900 public Immunization setNotGivenElement(BooleanType value) { 1901 this.notGiven = value; 1902 return this; 1903 } 1904 1905 /** 1906 * @return Indicates if the vaccination was or was not given. 1907 */ 1908 public boolean getNotGiven() { 1909 return this.notGiven == null || this.notGiven.isEmpty() ? false : this.notGiven.getValue(); 1910 } 1911 1912 /** 1913 * @param value Indicates if the vaccination was or was not given. 1914 */ 1915 public Immunization setNotGiven(boolean value) { 1916 if (this.notGiven == null) 1917 this.notGiven = new BooleanType(); 1918 this.notGiven.setValue(value); 1919 return this; 1920 } 1921 1922 /** 1923 * @return {@link #vaccineCode} (Vaccine that was administered or was to be administered.) 1924 */ 1925 public CodeableConcept getVaccineCode() { 1926 if (this.vaccineCode == null) 1927 if (Configuration.errorOnAutoCreate()) 1928 throw new Error("Attempt to auto-create Immunization.vaccineCode"); 1929 else if (Configuration.doAutoCreate()) 1930 this.vaccineCode = new CodeableConcept(); // cc 1931 return this.vaccineCode; 1932 } 1933 1934 public boolean hasVaccineCode() { 1935 return this.vaccineCode != null && !this.vaccineCode.isEmpty(); 1936 } 1937 1938 /** 1939 * @param value {@link #vaccineCode} (Vaccine that was administered or was to be administered.) 1940 */ 1941 public Immunization setVaccineCode(CodeableConcept value) { 1942 this.vaccineCode = value; 1943 return this; 1944 } 1945 1946 /** 1947 * @return {@link #patient} (The patient who either received or did not receive the immunization.) 1948 */ 1949 public Reference getPatient() { 1950 if (this.patient == null) 1951 if (Configuration.errorOnAutoCreate()) 1952 throw new Error("Attempt to auto-create Immunization.patient"); 1953 else if (Configuration.doAutoCreate()) 1954 this.patient = new Reference(); // cc 1955 return this.patient; 1956 } 1957 1958 public boolean hasPatient() { 1959 return this.patient != null && !this.patient.isEmpty(); 1960 } 1961 1962 /** 1963 * @param value {@link #patient} (The patient who either received or did not receive the immunization.) 1964 */ 1965 public Immunization setPatient(Reference value) { 1966 this.patient = value; 1967 return this; 1968 } 1969 1970 /** 1971 * @return {@link #patient} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The patient who either received or did not receive the immunization.) 1972 */ 1973 public Patient getPatientTarget() { 1974 if (this.patientTarget == null) 1975 if (Configuration.errorOnAutoCreate()) 1976 throw new Error("Attempt to auto-create Immunization.patient"); 1977 else if (Configuration.doAutoCreate()) 1978 this.patientTarget = new Patient(); // aa 1979 return this.patientTarget; 1980 } 1981 1982 /** 1983 * @param value {@link #patient} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The patient who either received or did not receive the immunization.) 1984 */ 1985 public Immunization setPatientTarget(Patient value) { 1986 this.patientTarget = value; 1987 return this; 1988 } 1989 1990 /** 1991 * @return {@link #encounter} (The visit or admission or other contact between patient and health care provider the immunization was performed as part of.) 1992 */ 1993 public Reference getEncounter() { 1994 if (this.encounter == null) 1995 if (Configuration.errorOnAutoCreate()) 1996 throw new Error("Attempt to auto-create Immunization.encounter"); 1997 else if (Configuration.doAutoCreate()) 1998 this.encounter = new Reference(); // cc 1999 return this.encounter; 2000 } 2001 2002 public boolean hasEncounter() { 2003 return this.encounter != null && !this.encounter.isEmpty(); 2004 } 2005 2006 /** 2007 * @param value {@link #encounter} (The visit or admission or other contact between patient and health care provider the immunization was performed as part of.) 2008 */ 2009 public Immunization setEncounter(Reference value) { 2010 this.encounter = value; 2011 return this; 2012 } 2013 2014 /** 2015 * @return {@link #encounter} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The visit or admission or other contact between patient and health care provider the immunization was performed as part of.) 2016 */ 2017 public Encounter getEncounterTarget() { 2018 if (this.encounterTarget == null) 2019 if (Configuration.errorOnAutoCreate()) 2020 throw new Error("Attempt to auto-create Immunization.encounter"); 2021 else if (Configuration.doAutoCreate()) 2022 this.encounterTarget = new Encounter(); // aa 2023 return this.encounterTarget; 2024 } 2025 2026 /** 2027 * @param value {@link #encounter} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The visit or admission or other contact between patient and health care provider the immunization was performed as part of.) 2028 */ 2029 public Immunization setEncounterTarget(Encounter value) { 2030 this.encounterTarget = value; 2031 return this; 2032 } 2033 2034 /** 2035 * @return {@link #date} (Date vaccine administered or was to be administered.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 2036 */ 2037 public DateTimeType getDateElement() { 2038 if (this.date == null) 2039 if (Configuration.errorOnAutoCreate()) 2040 throw new Error("Attempt to auto-create Immunization.date"); 2041 else if (Configuration.doAutoCreate()) 2042 this.date = new DateTimeType(); // bb 2043 return this.date; 2044 } 2045 2046 public boolean hasDateElement() { 2047 return this.date != null && !this.date.isEmpty(); 2048 } 2049 2050 public boolean hasDate() { 2051 return this.date != null && !this.date.isEmpty(); 2052 } 2053 2054 /** 2055 * @param value {@link #date} (Date vaccine administered or was to be administered.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 2056 */ 2057 public Immunization setDateElement(DateTimeType value) { 2058 this.date = value; 2059 return this; 2060 } 2061 2062 /** 2063 * @return Date vaccine administered or was to be administered. 2064 */ 2065 public Date getDate() { 2066 return this.date == null ? null : this.date.getValue(); 2067 } 2068 2069 /** 2070 * @param value Date vaccine administered or was to be administered. 2071 */ 2072 public Immunization setDate(Date value) { 2073 if (value == null) 2074 this.date = null; 2075 else { 2076 if (this.date == null) 2077 this.date = new DateTimeType(); 2078 this.date.setValue(value); 2079 } 2080 return this; 2081 } 2082 2083 /** 2084 * @return {@link #primarySource} (An indication that the content of the record is based on information from the person who administered the vaccine. This reflects the context under which the data was originally recorded.). This is the underlying object with id, value and extensions. The accessor "getPrimarySource" gives direct access to the value 2085 */ 2086 public BooleanType getPrimarySourceElement() { 2087 if (this.primarySource == null) 2088 if (Configuration.errorOnAutoCreate()) 2089 throw new Error("Attempt to auto-create Immunization.primarySource"); 2090 else if (Configuration.doAutoCreate()) 2091 this.primarySource = new BooleanType(); // bb 2092 return this.primarySource; 2093 } 2094 2095 public boolean hasPrimarySourceElement() { 2096 return this.primarySource != null && !this.primarySource.isEmpty(); 2097 } 2098 2099 public boolean hasPrimarySource() { 2100 return this.primarySource != null && !this.primarySource.isEmpty(); 2101 } 2102 2103 /** 2104 * @param value {@link #primarySource} (An indication that the content of the record is based on information from the person who administered the vaccine. This reflects the context under which the data was originally recorded.). This is the underlying object with id, value and extensions. The accessor "getPrimarySource" gives direct access to the value 2105 */ 2106 public Immunization setPrimarySourceElement(BooleanType value) { 2107 this.primarySource = value; 2108 return this; 2109 } 2110 2111 /** 2112 * @return An indication that the content of the record is based on information from the person who administered the vaccine. This reflects the context under which the data was originally recorded. 2113 */ 2114 public boolean getPrimarySource() { 2115 return this.primarySource == null || this.primarySource.isEmpty() ? false : this.primarySource.getValue(); 2116 } 2117 2118 /** 2119 * @param value An indication that the content of the record is based on information from the person who administered the vaccine. This reflects the context under which the data was originally recorded. 2120 */ 2121 public Immunization setPrimarySource(boolean value) { 2122 if (this.primarySource == null) 2123 this.primarySource = new BooleanType(); 2124 this.primarySource.setValue(value); 2125 return this; 2126 } 2127 2128 /** 2129 * @return {@link #reportOrigin} (The source of the data when the report of the immunization event is not based on information from the person who administered the vaccine.) 2130 */ 2131 public CodeableConcept getReportOrigin() { 2132 if (this.reportOrigin == null) 2133 if (Configuration.errorOnAutoCreate()) 2134 throw new Error("Attempt to auto-create Immunization.reportOrigin"); 2135 else if (Configuration.doAutoCreate()) 2136 this.reportOrigin = new CodeableConcept(); // cc 2137 return this.reportOrigin; 2138 } 2139 2140 public boolean hasReportOrigin() { 2141 return this.reportOrigin != null && !this.reportOrigin.isEmpty(); 2142 } 2143 2144 /** 2145 * @param value {@link #reportOrigin} (The source of the data when the report of the immunization event is not based on information from the person who administered the vaccine.) 2146 */ 2147 public Immunization setReportOrigin(CodeableConcept value) { 2148 this.reportOrigin = value; 2149 return this; 2150 } 2151 2152 /** 2153 * @return {@link #location} (The service delivery location where the vaccine administration occurred.) 2154 */ 2155 public Reference getLocation() { 2156 if (this.location == null) 2157 if (Configuration.errorOnAutoCreate()) 2158 throw new Error("Attempt to auto-create Immunization.location"); 2159 else if (Configuration.doAutoCreate()) 2160 this.location = new Reference(); // cc 2161 return this.location; 2162 } 2163 2164 public boolean hasLocation() { 2165 return this.location != null && !this.location.isEmpty(); 2166 } 2167 2168 /** 2169 * @param value {@link #location} (The service delivery location where the vaccine administration occurred.) 2170 */ 2171 public Immunization setLocation(Reference value) { 2172 this.location = value; 2173 return this; 2174 } 2175 2176 /** 2177 * @return {@link #location} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The service delivery location where the vaccine administration occurred.) 2178 */ 2179 public Location getLocationTarget() { 2180 if (this.locationTarget == null) 2181 if (Configuration.errorOnAutoCreate()) 2182 throw new Error("Attempt to auto-create Immunization.location"); 2183 else if (Configuration.doAutoCreate()) 2184 this.locationTarget = new Location(); // aa 2185 return this.locationTarget; 2186 } 2187 2188 /** 2189 * @param value {@link #location} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The service delivery location where the vaccine administration occurred.) 2190 */ 2191 public Immunization setLocationTarget(Location value) { 2192 this.locationTarget = value; 2193 return this; 2194 } 2195 2196 /** 2197 * @return {@link #manufacturer} (Name of vaccine manufacturer.) 2198 */ 2199 public Reference getManufacturer() { 2200 if (this.manufacturer == null) 2201 if (Configuration.errorOnAutoCreate()) 2202 throw new Error("Attempt to auto-create Immunization.manufacturer"); 2203 else if (Configuration.doAutoCreate()) 2204 this.manufacturer = new Reference(); // cc 2205 return this.manufacturer; 2206 } 2207 2208 public boolean hasManufacturer() { 2209 return this.manufacturer != null && !this.manufacturer.isEmpty(); 2210 } 2211 2212 /** 2213 * @param value {@link #manufacturer} (Name of vaccine manufacturer.) 2214 */ 2215 public Immunization setManufacturer(Reference value) { 2216 this.manufacturer = value; 2217 return this; 2218 } 2219 2220 /** 2221 * @return {@link #manufacturer} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Name of vaccine manufacturer.) 2222 */ 2223 public Organization getManufacturerTarget() { 2224 if (this.manufacturerTarget == null) 2225 if (Configuration.errorOnAutoCreate()) 2226 throw new Error("Attempt to auto-create Immunization.manufacturer"); 2227 else if (Configuration.doAutoCreate()) 2228 this.manufacturerTarget = new Organization(); // aa 2229 return this.manufacturerTarget; 2230 } 2231 2232 /** 2233 * @param value {@link #manufacturer} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Name of vaccine manufacturer.) 2234 */ 2235 public Immunization setManufacturerTarget(Organization value) { 2236 this.manufacturerTarget = value; 2237 return this; 2238 } 2239 2240 /** 2241 * @return {@link #lotNumber} (Lot number of the vaccine product.). This is the underlying object with id, value and extensions. The accessor "getLotNumber" gives direct access to the value 2242 */ 2243 public StringType getLotNumberElement() { 2244 if (this.lotNumber == null) 2245 if (Configuration.errorOnAutoCreate()) 2246 throw new Error("Attempt to auto-create Immunization.lotNumber"); 2247 else if (Configuration.doAutoCreate()) 2248 this.lotNumber = new StringType(); // bb 2249 return this.lotNumber; 2250 } 2251 2252 public boolean hasLotNumberElement() { 2253 return this.lotNumber != null && !this.lotNumber.isEmpty(); 2254 } 2255 2256 public boolean hasLotNumber() { 2257 return this.lotNumber != null && !this.lotNumber.isEmpty(); 2258 } 2259 2260 /** 2261 * @param value {@link #lotNumber} (Lot number of the vaccine product.). This is the underlying object with id, value and extensions. The accessor "getLotNumber" gives direct access to the value 2262 */ 2263 public Immunization setLotNumberElement(StringType value) { 2264 this.lotNumber = value; 2265 return this; 2266 } 2267 2268 /** 2269 * @return Lot number of the vaccine product. 2270 */ 2271 public String getLotNumber() { 2272 return this.lotNumber == null ? null : this.lotNumber.getValue(); 2273 } 2274 2275 /** 2276 * @param value Lot number of the vaccine product. 2277 */ 2278 public Immunization setLotNumber(String value) { 2279 if (Utilities.noString(value)) 2280 this.lotNumber = null; 2281 else { 2282 if (this.lotNumber == null) 2283 this.lotNumber = new StringType(); 2284 this.lotNumber.setValue(value); 2285 } 2286 return this; 2287 } 2288 2289 /** 2290 * @return {@link #expirationDate} (Date vaccine batch expires.). This is the underlying object with id, value and extensions. The accessor "getExpirationDate" gives direct access to the value 2291 */ 2292 public DateType getExpirationDateElement() { 2293 if (this.expirationDate == null) 2294 if (Configuration.errorOnAutoCreate()) 2295 throw new Error("Attempt to auto-create Immunization.expirationDate"); 2296 else if (Configuration.doAutoCreate()) 2297 this.expirationDate = new DateType(); // bb 2298 return this.expirationDate; 2299 } 2300 2301 public boolean hasExpirationDateElement() { 2302 return this.expirationDate != null && !this.expirationDate.isEmpty(); 2303 } 2304 2305 public boolean hasExpirationDate() { 2306 return this.expirationDate != null && !this.expirationDate.isEmpty(); 2307 } 2308 2309 /** 2310 * @param value {@link #expirationDate} (Date vaccine batch expires.). This is the underlying object with id, value and extensions. The accessor "getExpirationDate" gives direct access to the value 2311 */ 2312 public Immunization setExpirationDateElement(DateType value) { 2313 this.expirationDate = value; 2314 return this; 2315 } 2316 2317 /** 2318 * @return Date vaccine batch expires. 2319 */ 2320 public Date getExpirationDate() { 2321 return this.expirationDate == null ? null : this.expirationDate.getValue(); 2322 } 2323 2324 /** 2325 * @param value Date vaccine batch expires. 2326 */ 2327 public Immunization setExpirationDate(Date value) { 2328 if (value == null) 2329 this.expirationDate = null; 2330 else { 2331 if (this.expirationDate == null) 2332 this.expirationDate = new DateType(); 2333 this.expirationDate.setValue(value); 2334 } 2335 return this; 2336 } 2337 2338 /** 2339 * @return {@link #site} (Body site where vaccine was administered.) 2340 */ 2341 public CodeableConcept getSite() { 2342 if (this.site == null) 2343 if (Configuration.errorOnAutoCreate()) 2344 throw new Error("Attempt to auto-create Immunization.site"); 2345 else if (Configuration.doAutoCreate()) 2346 this.site = new CodeableConcept(); // cc 2347 return this.site; 2348 } 2349 2350 public boolean hasSite() { 2351 return this.site != null && !this.site.isEmpty(); 2352 } 2353 2354 /** 2355 * @param value {@link #site} (Body site where vaccine was administered.) 2356 */ 2357 public Immunization setSite(CodeableConcept value) { 2358 this.site = value; 2359 return this; 2360 } 2361 2362 /** 2363 * @return {@link #route} (The path by which the vaccine product is taken into the body.) 2364 */ 2365 public CodeableConcept getRoute() { 2366 if (this.route == null) 2367 if (Configuration.errorOnAutoCreate()) 2368 throw new Error("Attempt to auto-create Immunization.route"); 2369 else if (Configuration.doAutoCreate()) 2370 this.route = new CodeableConcept(); // cc 2371 return this.route; 2372 } 2373 2374 public boolean hasRoute() { 2375 return this.route != null && !this.route.isEmpty(); 2376 } 2377 2378 /** 2379 * @param value {@link #route} (The path by which the vaccine product is taken into the body.) 2380 */ 2381 public Immunization setRoute(CodeableConcept value) { 2382 this.route = value; 2383 return this; 2384 } 2385 2386 /** 2387 * @return {@link #doseQuantity} (The quantity of vaccine product that was administered.) 2388 */ 2389 public SimpleQuantity getDoseQuantity() { 2390 if (this.doseQuantity == null) 2391 if (Configuration.errorOnAutoCreate()) 2392 throw new Error("Attempt to auto-create Immunization.doseQuantity"); 2393 else if (Configuration.doAutoCreate()) 2394 this.doseQuantity = new SimpleQuantity(); // cc 2395 return this.doseQuantity; 2396 } 2397 2398 public boolean hasDoseQuantity() { 2399 return this.doseQuantity != null && !this.doseQuantity.isEmpty(); 2400 } 2401 2402 /** 2403 * @param value {@link #doseQuantity} (The quantity of vaccine product that was administered.) 2404 */ 2405 public Immunization setDoseQuantity(SimpleQuantity value) { 2406 this.doseQuantity = value; 2407 return this; 2408 } 2409 2410 /** 2411 * @return {@link #practitioner} (Indicates who or what performed the event.) 2412 */ 2413 public List<ImmunizationPractitionerComponent> getPractitioner() { 2414 if (this.practitioner == null) 2415 this.practitioner = new ArrayList<ImmunizationPractitionerComponent>(); 2416 return this.practitioner; 2417 } 2418 2419 /** 2420 * @return Returns a reference to <code>this</code> for easy method chaining 2421 */ 2422 public Immunization setPractitioner(List<ImmunizationPractitionerComponent> thePractitioner) { 2423 this.practitioner = thePractitioner; 2424 return this; 2425 } 2426 2427 public boolean hasPractitioner() { 2428 if (this.practitioner == null) 2429 return false; 2430 for (ImmunizationPractitionerComponent item : this.practitioner) 2431 if (!item.isEmpty()) 2432 return true; 2433 return false; 2434 } 2435 2436 public ImmunizationPractitionerComponent addPractitioner() { //3 2437 ImmunizationPractitionerComponent t = new ImmunizationPractitionerComponent(); 2438 if (this.practitioner == null) 2439 this.practitioner = new ArrayList<ImmunizationPractitionerComponent>(); 2440 this.practitioner.add(t); 2441 return t; 2442 } 2443 2444 public Immunization addPractitioner(ImmunizationPractitionerComponent t) { //3 2445 if (t == null) 2446 return this; 2447 if (this.practitioner == null) 2448 this.practitioner = new ArrayList<ImmunizationPractitionerComponent>(); 2449 this.practitioner.add(t); 2450 return this; 2451 } 2452 2453 /** 2454 * @return The first repetition of repeating field {@link #practitioner}, creating it if it does not already exist 2455 */ 2456 public ImmunizationPractitionerComponent getPractitionerFirstRep() { 2457 if (getPractitioner().isEmpty()) { 2458 addPractitioner(); 2459 } 2460 return getPractitioner().get(0); 2461 } 2462 2463 /** 2464 * @return {@link #note} (Extra information about the immunization that is not conveyed by the other attributes.) 2465 */ 2466 public List<Annotation> getNote() { 2467 if (this.note == null) 2468 this.note = new ArrayList<Annotation>(); 2469 return this.note; 2470 } 2471 2472 /** 2473 * @return Returns a reference to <code>this</code> for easy method chaining 2474 */ 2475 public Immunization setNote(List<Annotation> theNote) { 2476 this.note = theNote; 2477 return this; 2478 } 2479 2480 public boolean hasNote() { 2481 if (this.note == null) 2482 return false; 2483 for (Annotation item : this.note) 2484 if (!item.isEmpty()) 2485 return true; 2486 return false; 2487 } 2488 2489 public Annotation addNote() { //3 2490 Annotation t = new Annotation(); 2491 if (this.note == null) 2492 this.note = new ArrayList<Annotation>(); 2493 this.note.add(t); 2494 return t; 2495 } 2496 2497 public Immunization addNote(Annotation t) { //3 2498 if (t == null) 2499 return this; 2500 if (this.note == null) 2501 this.note = new ArrayList<Annotation>(); 2502 this.note.add(t); 2503 return this; 2504 } 2505 2506 /** 2507 * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist 2508 */ 2509 public Annotation getNoteFirstRep() { 2510 if (getNote().isEmpty()) { 2511 addNote(); 2512 } 2513 return getNote().get(0); 2514 } 2515 2516 /** 2517 * @return {@link #explanation} (Reasons why a vaccine was or was not administered.) 2518 */ 2519 public ImmunizationExplanationComponent getExplanation() { 2520 if (this.explanation == null) 2521 if (Configuration.errorOnAutoCreate()) 2522 throw new Error("Attempt to auto-create Immunization.explanation"); 2523 else if (Configuration.doAutoCreate()) 2524 this.explanation = new ImmunizationExplanationComponent(); // cc 2525 return this.explanation; 2526 } 2527 2528 public boolean hasExplanation() { 2529 return this.explanation != null && !this.explanation.isEmpty(); 2530 } 2531 2532 /** 2533 * @param value {@link #explanation} (Reasons why a vaccine was or was not administered.) 2534 */ 2535 public Immunization setExplanation(ImmunizationExplanationComponent value) { 2536 this.explanation = value; 2537 return this; 2538 } 2539 2540 /** 2541 * @return {@link #reaction} (Categorical data indicating that an adverse event is associated in time to an immunization.) 2542 */ 2543 public List<ImmunizationReactionComponent> getReaction() { 2544 if (this.reaction == null) 2545 this.reaction = new ArrayList<ImmunizationReactionComponent>(); 2546 return this.reaction; 2547 } 2548 2549 /** 2550 * @return Returns a reference to <code>this</code> for easy method chaining 2551 */ 2552 public Immunization setReaction(List<ImmunizationReactionComponent> theReaction) { 2553 this.reaction = theReaction; 2554 return this; 2555 } 2556 2557 public boolean hasReaction() { 2558 if (this.reaction == null) 2559 return false; 2560 for (ImmunizationReactionComponent item : this.reaction) 2561 if (!item.isEmpty()) 2562 return true; 2563 return false; 2564 } 2565 2566 public ImmunizationReactionComponent addReaction() { //3 2567 ImmunizationReactionComponent t = new ImmunizationReactionComponent(); 2568 if (this.reaction == null) 2569 this.reaction = new ArrayList<ImmunizationReactionComponent>(); 2570 this.reaction.add(t); 2571 return t; 2572 } 2573 2574 public Immunization addReaction(ImmunizationReactionComponent t) { //3 2575 if (t == null) 2576 return this; 2577 if (this.reaction == null) 2578 this.reaction = new ArrayList<ImmunizationReactionComponent>(); 2579 this.reaction.add(t); 2580 return this; 2581 } 2582 2583 /** 2584 * @return The first repetition of repeating field {@link #reaction}, creating it if it does not already exist 2585 */ 2586 public ImmunizationReactionComponent getReactionFirstRep() { 2587 if (getReaction().isEmpty()) { 2588 addReaction(); 2589 } 2590 return getReaction().get(0); 2591 } 2592 2593 /** 2594 * @return {@link #vaccinationProtocol} (Contains information about the protocol(s) under which the vaccine was administered.) 2595 */ 2596 public List<ImmunizationVaccinationProtocolComponent> getVaccinationProtocol() { 2597 if (this.vaccinationProtocol == null) 2598 this.vaccinationProtocol = new ArrayList<ImmunizationVaccinationProtocolComponent>(); 2599 return this.vaccinationProtocol; 2600 } 2601 2602 /** 2603 * @return Returns a reference to <code>this</code> for easy method chaining 2604 */ 2605 public Immunization setVaccinationProtocol(List<ImmunizationVaccinationProtocolComponent> theVaccinationProtocol) { 2606 this.vaccinationProtocol = theVaccinationProtocol; 2607 return this; 2608 } 2609 2610 public boolean hasVaccinationProtocol() { 2611 if (this.vaccinationProtocol == null) 2612 return false; 2613 for (ImmunizationVaccinationProtocolComponent item : this.vaccinationProtocol) 2614 if (!item.isEmpty()) 2615 return true; 2616 return false; 2617 } 2618 2619 public ImmunizationVaccinationProtocolComponent addVaccinationProtocol() { //3 2620 ImmunizationVaccinationProtocolComponent t = new ImmunizationVaccinationProtocolComponent(); 2621 if (this.vaccinationProtocol == null) 2622 this.vaccinationProtocol = new ArrayList<ImmunizationVaccinationProtocolComponent>(); 2623 this.vaccinationProtocol.add(t); 2624 return t; 2625 } 2626 2627 public Immunization addVaccinationProtocol(ImmunizationVaccinationProtocolComponent t) { //3 2628 if (t == null) 2629 return this; 2630 if (this.vaccinationProtocol == null) 2631 this.vaccinationProtocol = new ArrayList<ImmunizationVaccinationProtocolComponent>(); 2632 this.vaccinationProtocol.add(t); 2633 return this; 2634 } 2635 2636 /** 2637 * @return The first repetition of repeating field {@link #vaccinationProtocol}, creating it if it does not already exist 2638 */ 2639 public ImmunizationVaccinationProtocolComponent getVaccinationProtocolFirstRep() { 2640 if (getVaccinationProtocol().isEmpty()) { 2641 addVaccinationProtocol(); 2642 } 2643 return getVaccinationProtocol().get(0); 2644 } 2645 2646 protected void listChildren(List<Property> children) { 2647 super.listChildren(children); 2648 children.add(new Property("identifier", "Identifier", "A unique identifier assigned to this immunization record.", 0, java.lang.Integer.MAX_VALUE, identifier)); 2649 children.add(new Property("status", "code", "Indicates the current status of the vaccination event.", 0, 1, status)); 2650 children.add(new Property("notGiven", "boolean", "Indicates if the vaccination was or was not given.", 0, 1, notGiven)); 2651 children.add(new Property("vaccineCode", "CodeableConcept", "Vaccine that was administered or was to be administered.", 0, 1, vaccineCode)); 2652 children.add(new Property("patient", "Reference(Patient)", "The patient who either received or did not receive the immunization.", 0, 1, patient)); 2653 children.add(new Property("encounter", "Reference(Encounter)", "The visit or admission or other contact between patient and health care provider the immunization was performed as part of.", 0, 1, encounter)); 2654 children.add(new Property("date", "dateTime", "Date vaccine administered or was to be administered.", 0, 1, date)); 2655 children.add(new Property("primarySource", "boolean", "An indication that the content of the record is based on information from the person who administered the vaccine. This reflects the context under which the data was originally recorded.", 0, 1, primarySource)); 2656 children.add(new Property("reportOrigin", "CodeableConcept", "The source of the data when the report of the immunization event is not based on information from the person who administered the vaccine.", 0, 1, reportOrigin)); 2657 children.add(new Property("location", "Reference(Location)", "The service delivery location where the vaccine administration occurred.", 0, 1, location)); 2658 children.add(new Property("manufacturer", "Reference(Organization)", "Name of vaccine manufacturer.", 0, 1, manufacturer)); 2659 children.add(new Property("lotNumber", "string", "Lot number of the vaccine product.", 0, 1, lotNumber)); 2660 children.add(new Property("expirationDate", "date", "Date vaccine batch expires.", 0, 1, expirationDate)); 2661 children.add(new Property("site", "CodeableConcept", "Body site where vaccine was administered.", 0, 1, site)); 2662 children.add(new Property("route", "CodeableConcept", "The path by which the vaccine product is taken into the body.", 0, 1, route)); 2663 children.add(new Property("doseQuantity", "SimpleQuantity", "The quantity of vaccine product that was administered.", 0, 1, doseQuantity)); 2664 children.add(new Property("practitioner", "", "Indicates who or what performed the event.", 0, java.lang.Integer.MAX_VALUE, practitioner)); 2665 children.add(new Property("note", "Annotation", "Extra information about the immunization that is not conveyed by the other attributes.", 0, java.lang.Integer.MAX_VALUE, note)); 2666 children.add(new Property("explanation", "", "Reasons why a vaccine was or was not administered.", 0, 1, explanation)); 2667 children.add(new Property("reaction", "", "Categorical data indicating that an adverse event is associated in time to an immunization.", 0, java.lang.Integer.MAX_VALUE, reaction)); 2668 children.add(new Property("vaccinationProtocol", "", "Contains information about the protocol(s) under which the vaccine was administered.", 0, java.lang.Integer.MAX_VALUE, vaccinationProtocol)); 2669 } 2670 2671 @Override 2672 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 2673 switch (_hash) { 2674 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A unique identifier assigned to this immunization record.", 0, java.lang.Integer.MAX_VALUE, identifier); 2675 case -892481550: /*status*/ return new Property("status", "code", "Indicates the current status of the vaccination event.", 0, 1, status); 2676 case 1554065514: /*notGiven*/ return new Property("notGiven", "boolean", "Indicates if the vaccination was or was not given.", 0, 1, notGiven); 2677 case 664556354: /*vaccineCode*/ return new Property("vaccineCode", "CodeableConcept", "Vaccine that was administered or was to be administered.", 0, 1, vaccineCode); 2678 case -791418107: /*patient*/ return new Property("patient", "Reference(Patient)", "The patient who either received or did not receive the immunization.", 0, 1, patient); 2679 case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "The visit or admission or other contact between patient and health care provider the immunization was performed as part of.", 0, 1, encounter); 2680 case 3076014: /*date*/ return new Property("date", "dateTime", "Date vaccine administered or was to be administered.", 0, 1, date); 2681 case -528721731: /*primarySource*/ return new Property("primarySource", "boolean", "An indication that the content of the record is based on information from the person who administered the vaccine. This reflects the context under which the data was originally recorded.", 0, 1, primarySource); 2682 case 486750586: /*reportOrigin*/ return new Property("reportOrigin", "CodeableConcept", "The source of the data when the report of the immunization event is not based on information from the person who administered the vaccine.", 0, 1, reportOrigin); 2683 case 1901043637: /*location*/ return new Property("location", "Reference(Location)", "The service delivery location where the vaccine administration occurred.", 0, 1, location); 2684 case -1969347631: /*manufacturer*/ return new Property("manufacturer", "Reference(Organization)", "Name of vaccine manufacturer.", 0, 1, manufacturer); 2685 case 462547450: /*lotNumber*/ return new Property("lotNumber", "string", "Lot number of the vaccine product.", 0, 1, lotNumber); 2686 case -668811523: /*expirationDate*/ return new Property("expirationDate", "date", "Date vaccine batch expires.", 0, 1, expirationDate); 2687 case 3530567: /*site*/ return new Property("site", "CodeableConcept", "Body site where vaccine was administered.", 0, 1, site); 2688 case 108704329: /*route*/ return new Property("route", "CodeableConcept", "The path by which the vaccine product is taken into the body.", 0, 1, route); 2689 case -2083618872: /*doseQuantity*/ return new Property("doseQuantity", "SimpleQuantity", "The quantity of vaccine product that was administered.", 0, 1, doseQuantity); 2690 case 574573338: /*practitioner*/ return new Property("practitioner", "", "Indicates who or what performed the event.", 0, java.lang.Integer.MAX_VALUE, practitioner); 2691 case 3387378: /*note*/ return new Property("note", "Annotation", "Extra information about the immunization that is not conveyed by the other attributes.", 0, java.lang.Integer.MAX_VALUE, note); 2692 case -1105867239: /*explanation*/ return new Property("explanation", "", "Reasons why a vaccine was or was not administered.", 0, 1, explanation); 2693 case -867509719: /*reaction*/ return new Property("reaction", "", "Categorical data indicating that an adverse event is associated in time to an immunization.", 0, java.lang.Integer.MAX_VALUE, reaction); 2694 case -179633155: /*vaccinationProtocol*/ return new Property("vaccinationProtocol", "", "Contains information about the protocol(s) under which the vaccine was administered.", 0, java.lang.Integer.MAX_VALUE, vaccinationProtocol); 2695 default: return super.getNamedProperty(_hash, _name, _checkValid); 2696 } 2697 2698 } 2699 2700 @Override 2701 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 2702 switch (hash) { 2703 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 2704 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<ImmunizationStatus> 2705 case 1554065514: /*notGiven*/ return this.notGiven == null ? new Base[0] : new Base[] {this.notGiven}; // BooleanType 2706 case 664556354: /*vaccineCode*/ return this.vaccineCode == null ? new Base[0] : new Base[] {this.vaccineCode}; // CodeableConcept 2707 case -791418107: /*patient*/ return this.patient == null ? new Base[0] : new Base[] {this.patient}; // Reference 2708 case 1524132147: /*encounter*/ return this.encounter == null ? new Base[0] : new Base[] {this.encounter}; // Reference 2709 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 2710 case -528721731: /*primarySource*/ return this.primarySource == null ? new Base[0] : new Base[] {this.primarySource}; // BooleanType 2711 case 486750586: /*reportOrigin*/ return this.reportOrigin == null ? new Base[0] : new Base[] {this.reportOrigin}; // CodeableConcept 2712 case 1901043637: /*location*/ return this.location == null ? new Base[0] : new Base[] {this.location}; // Reference 2713 case -1969347631: /*manufacturer*/ return this.manufacturer == null ? new Base[0] : new Base[] {this.manufacturer}; // Reference 2714 case 462547450: /*lotNumber*/ return this.lotNumber == null ? new Base[0] : new Base[] {this.lotNumber}; // StringType 2715 case -668811523: /*expirationDate*/ return this.expirationDate == null ? new Base[0] : new Base[] {this.expirationDate}; // DateType 2716 case 3530567: /*site*/ return this.site == null ? new Base[0] : new Base[] {this.site}; // CodeableConcept 2717 case 108704329: /*route*/ return this.route == null ? new Base[0] : new Base[] {this.route}; // CodeableConcept 2718 case -2083618872: /*doseQuantity*/ return this.doseQuantity == null ? new Base[0] : new Base[] {this.doseQuantity}; // SimpleQuantity 2719 case 574573338: /*practitioner*/ return this.practitioner == null ? new Base[0] : this.practitioner.toArray(new Base[this.practitioner.size()]); // ImmunizationPractitionerComponent 2720 case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation 2721 case -1105867239: /*explanation*/ return this.explanation == null ? new Base[0] : new Base[] {this.explanation}; // ImmunizationExplanationComponent 2722 case -867509719: /*reaction*/ return this.reaction == null ? new Base[0] : this.reaction.toArray(new Base[this.reaction.size()]); // ImmunizationReactionComponent 2723 case -179633155: /*vaccinationProtocol*/ return this.vaccinationProtocol == null ? new Base[0] : this.vaccinationProtocol.toArray(new Base[this.vaccinationProtocol.size()]); // ImmunizationVaccinationProtocolComponent 2724 default: return super.getProperty(hash, name, checkValid); 2725 } 2726 2727 } 2728 2729 @Override 2730 public Base setProperty(int hash, String name, Base value) throws FHIRException { 2731 switch (hash) { 2732 case -1618432855: // identifier 2733 this.getIdentifier().add(castToIdentifier(value)); // Identifier 2734 return value; 2735 case -892481550: // status 2736 value = new ImmunizationStatusEnumFactory().fromType(castToCode(value)); 2737 this.status = (Enumeration) value; // Enumeration<ImmunizationStatus> 2738 return value; 2739 case 1554065514: // notGiven 2740 this.notGiven = castToBoolean(value); // BooleanType 2741 return value; 2742 case 664556354: // vaccineCode 2743 this.vaccineCode = castToCodeableConcept(value); // CodeableConcept 2744 return value; 2745 case -791418107: // patient 2746 this.patient = castToReference(value); // Reference 2747 return value; 2748 case 1524132147: // encounter 2749 this.encounter = castToReference(value); // Reference 2750 return value; 2751 case 3076014: // date 2752 this.date = castToDateTime(value); // DateTimeType 2753 return value; 2754 case -528721731: // primarySource 2755 this.primarySource = castToBoolean(value); // BooleanType 2756 return value; 2757 case 486750586: // reportOrigin 2758 this.reportOrigin = castToCodeableConcept(value); // CodeableConcept 2759 return value; 2760 case 1901043637: // location 2761 this.location = castToReference(value); // Reference 2762 return value; 2763 case -1969347631: // manufacturer 2764 this.manufacturer = castToReference(value); // Reference 2765 return value; 2766 case 462547450: // lotNumber 2767 this.lotNumber = castToString(value); // StringType 2768 return value; 2769 case -668811523: // expirationDate 2770 this.expirationDate = castToDate(value); // DateType 2771 return value; 2772 case 3530567: // site 2773 this.site = castToCodeableConcept(value); // CodeableConcept 2774 return value; 2775 case 108704329: // route 2776 this.route = castToCodeableConcept(value); // CodeableConcept 2777 return value; 2778 case -2083618872: // doseQuantity 2779 this.doseQuantity = castToSimpleQuantity(value); // SimpleQuantity 2780 return value; 2781 case 574573338: // practitioner 2782 this.getPractitioner().add((ImmunizationPractitionerComponent) value); // ImmunizationPractitionerComponent 2783 return value; 2784 case 3387378: // note 2785 this.getNote().add(castToAnnotation(value)); // Annotation 2786 return value; 2787 case -1105867239: // explanation 2788 this.explanation = (ImmunizationExplanationComponent) value; // ImmunizationExplanationComponent 2789 return value; 2790 case -867509719: // reaction 2791 this.getReaction().add((ImmunizationReactionComponent) value); // ImmunizationReactionComponent 2792 return value; 2793 case -179633155: // vaccinationProtocol 2794 this.getVaccinationProtocol().add((ImmunizationVaccinationProtocolComponent) value); // ImmunizationVaccinationProtocolComponent 2795 return value; 2796 default: return super.setProperty(hash, name, value); 2797 } 2798 2799 } 2800 2801 @Override 2802 public Base setProperty(String name, Base value) throws FHIRException { 2803 if (name.equals("identifier")) { 2804 this.getIdentifier().add(castToIdentifier(value)); 2805 } else if (name.equals("status")) { 2806 value = new ImmunizationStatusEnumFactory().fromType(castToCode(value)); 2807 this.status = (Enumeration) value; // Enumeration<ImmunizationStatus> 2808 } else if (name.equals("notGiven")) { 2809 this.notGiven = castToBoolean(value); // BooleanType 2810 } else if (name.equals("vaccineCode")) { 2811 this.vaccineCode = castToCodeableConcept(value); // CodeableConcept 2812 } else if (name.equals("patient")) { 2813 this.patient = castToReference(value); // Reference 2814 } else if (name.equals("encounter")) { 2815 this.encounter = castToReference(value); // Reference 2816 } else if (name.equals("date")) { 2817 this.date = castToDateTime(value); // DateTimeType 2818 } else if (name.equals("primarySource")) { 2819 this.primarySource = castToBoolean(value); // BooleanType 2820 } else if (name.equals("reportOrigin")) { 2821 this.reportOrigin = castToCodeableConcept(value); // CodeableConcept 2822 } else if (name.equals("location")) { 2823 this.location = castToReference(value); // Reference 2824 } else if (name.equals("manufacturer")) { 2825 this.manufacturer = castToReference(value); // Reference 2826 } else if (name.equals("lotNumber")) { 2827 this.lotNumber = castToString(value); // StringType 2828 } else if (name.equals("expirationDate")) { 2829 this.expirationDate = castToDate(value); // DateType 2830 } else if (name.equals("site")) { 2831 this.site = castToCodeableConcept(value); // CodeableConcept 2832 } else if (name.equals("route")) { 2833 this.route = castToCodeableConcept(value); // CodeableConcept 2834 } else if (name.equals("doseQuantity")) { 2835 this.doseQuantity = castToSimpleQuantity(value); // SimpleQuantity 2836 } else if (name.equals("practitioner")) { 2837 this.getPractitioner().add((ImmunizationPractitionerComponent) value); 2838 } else if (name.equals("note")) { 2839 this.getNote().add(castToAnnotation(value)); 2840 } else if (name.equals("explanation")) { 2841 this.explanation = (ImmunizationExplanationComponent) value; // ImmunizationExplanationComponent 2842 } else if (name.equals("reaction")) { 2843 this.getReaction().add((ImmunizationReactionComponent) value); 2844 } else if (name.equals("vaccinationProtocol")) { 2845 this.getVaccinationProtocol().add((ImmunizationVaccinationProtocolComponent) value); 2846 } else 2847 return super.setProperty(name, value); 2848 return value; 2849 } 2850 2851 @Override 2852 public Base makeProperty(int hash, String name) throws FHIRException { 2853 switch (hash) { 2854 case -1618432855: return addIdentifier(); 2855 case -892481550: return getStatusElement(); 2856 case 1554065514: return getNotGivenElement(); 2857 case 664556354: return getVaccineCode(); 2858 case -791418107: return getPatient(); 2859 case 1524132147: return getEncounter(); 2860 case 3076014: return getDateElement(); 2861 case -528721731: return getPrimarySourceElement(); 2862 case 486750586: return getReportOrigin(); 2863 case 1901043637: return getLocation(); 2864 case -1969347631: return getManufacturer(); 2865 case 462547450: return getLotNumberElement(); 2866 case -668811523: return getExpirationDateElement(); 2867 case 3530567: return getSite(); 2868 case 108704329: return getRoute(); 2869 case -2083618872: return getDoseQuantity(); 2870 case 574573338: return addPractitioner(); 2871 case 3387378: return addNote(); 2872 case -1105867239: return getExplanation(); 2873 case -867509719: return addReaction(); 2874 case -179633155: return addVaccinationProtocol(); 2875 default: return super.makeProperty(hash, name); 2876 } 2877 2878 } 2879 2880 @Override 2881 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2882 switch (hash) { 2883 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 2884 case -892481550: /*status*/ return new String[] {"code"}; 2885 case 1554065514: /*notGiven*/ return new String[] {"boolean"}; 2886 case 664556354: /*vaccineCode*/ return new String[] {"CodeableConcept"}; 2887 case -791418107: /*patient*/ return new String[] {"Reference"}; 2888 case 1524132147: /*encounter*/ return new String[] {"Reference"}; 2889 case 3076014: /*date*/ return new String[] {"dateTime"}; 2890 case -528721731: /*primarySource*/ return new String[] {"boolean"}; 2891 case 486750586: /*reportOrigin*/ return new String[] {"CodeableConcept"}; 2892 case 1901043637: /*location*/ return new String[] {"Reference"}; 2893 case -1969347631: /*manufacturer*/ return new String[] {"Reference"}; 2894 case 462547450: /*lotNumber*/ return new String[] {"string"}; 2895 case -668811523: /*expirationDate*/ return new String[] {"date"}; 2896 case 3530567: /*site*/ return new String[] {"CodeableConcept"}; 2897 case 108704329: /*route*/ return new String[] {"CodeableConcept"}; 2898 case -2083618872: /*doseQuantity*/ return new String[] {"SimpleQuantity"}; 2899 case 574573338: /*practitioner*/ return new String[] {}; 2900 case 3387378: /*note*/ return new String[] {"Annotation"}; 2901 case -1105867239: /*explanation*/ return new String[] {}; 2902 case -867509719: /*reaction*/ return new String[] {}; 2903 case -179633155: /*vaccinationProtocol*/ return new String[] {}; 2904 default: return super.getTypesForProperty(hash, name); 2905 } 2906 2907 } 2908 2909 @Override 2910 public Base addChild(String name) throws FHIRException { 2911 if (name.equals("identifier")) { 2912 return addIdentifier(); 2913 } 2914 else if (name.equals("status")) { 2915 throw new FHIRException("Cannot call addChild on a primitive type Immunization.status"); 2916 } 2917 else if (name.equals("notGiven")) { 2918 throw new FHIRException("Cannot call addChild on a primitive type Immunization.notGiven"); 2919 } 2920 else if (name.equals("vaccineCode")) { 2921 this.vaccineCode = new CodeableConcept(); 2922 return this.vaccineCode; 2923 } 2924 else if (name.equals("patient")) { 2925 this.patient = new Reference(); 2926 return this.patient; 2927 } 2928 else if (name.equals("encounter")) { 2929 this.encounter = new Reference(); 2930 return this.encounter; 2931 } 2932 else if (name.equals("date")) { 2933 throw new FHIRException("Cannot call addChild on a primitive type Immunization.date"); 2934 } 2935 else if (name.equals("primarySource")) { 2936 throw new FHIRException("Cannot call addChild on a primitive type Immunization.primarySource"); 2937 } 2938 else if (name.equals("reportOrigin")) { 2939 this.reportOrigin = new CodeableConcept(); 2940 return this.reportOrigin; 2941 } 2942 else if (name.equals("location")) { 2943 this.location = new Reference(); 2944 return this.location; 2945 } 2946 else if (name.equals("manufacturer")) { 2947 this.manufacturer = new Reference(); 2948 return this.manufacturer; 2949 } 2950 else if (name.equals("lotNumber")) { 2951 throw new FHIRException("Cannot call addChild on a primitive type Immunization.lotNumber"); 2952 } 2953 else if (name.equals("expirationDate")) { 2954 throw new FHIRException("Cannot call addChild on a primitive type Immunization.expirationDate"); 2955 } 2956 else if (name.equals("site")) { 2957 this.site = new CodeableConcept(); 2958 return this.site; 2959 } 2960 else if (name.equals("route")) { 2961 this.route = new CodeableConcept(); 2962 return this.route; 2963 } 2964 else if (name.equals("doseQuantity")) { 2965 this.doseQuantity = new SimpleQuantity(); 2966 return this.doseQuantity; 2967 } 2968 else if (name.equals("practitioner")) { 2969 return addPractitioner(); 2970 } 2971 else if (name.equals("note")) { 2972 return addNote(); 2973 } 2974 else if (name.equals("explanation")) { 2975 this.explanation = new ImmunizationExplanationComponent(); 2976 return this.explanation; 2977 } 2978 else if (name.equals("reaction")) { 2979 return addReaction(); 2980 } 2981 else if (name.equals("vaccinationProtocol")) { 2982 return addVaccinationProtocol(); 2983 } 2984 else 2985 return super.addChild(name); 2986 } 2987 2988 public String fhirType() { 2989 return "Immunization"; 2990 2991 } 2992 2993 public Immunization copy() { 2994 Immunization dst = new Immunization(); 2995 copyValues(dst); 2996 if (identifier != null) { 2997 dst.identifier = new ArrayList<Identifier>(); 2998 for (Identifier i : identifier) 2999 dst.identifier.add(i.copy()); 3000 }; 3001 dst.status = status == null ? null : status.copy(); 3002 dst.notGiven = notGiven == null ? null : notGiven.copy(); 3003 dst.vaccineCode = vaccineCode == null ? null : vaccineCode.copy(); 3004 dst.patient = patient == null ? null : patient.copy(); 3005 dst.encounter = encounter == null ? null : encounter.copy(); 3006 dst.date = date == null ? null : date.copy(); 3007 dst.primarySource = primarySource == null ? null : primarySource.copy(); 3008 dst.reportOrigin = reportOrigin == null ? null : reportOrigin.copy(); 3009 dst.location = location == null ? null : location.copy(); 3010 dst.manufacturer = manufacturer == null ? null : manufacturer.copy(); 3011 dst.lotNumber = lotNumber == null ? null : lotNumber.copy(); 3012 dst.expirationDate = expirationDate == null ? null : expirationDate.copy(); 3013 dst.site = site == null ? null : site.copy(); 3014 dst.route = route == null ? null : route.copy(); 3015 dst.doseQuantity = doseQuantity == null ? null : doseQuantity.copy(); 3016 if (practitioner != null) { 3017 dst.practitioner = new ArrayList<ImmunizationPractitionerComponent>(); 3018 for (ImmunizationPractitionerComponent i : practitioner) 3019 dst.practitioner.add(i.copy()); 3020 }; 3021 if (note != null) { 3022 dst.note = new ArrayList<Annotation>(); 3023 for (Annotation i : note) 3024 dst.note.add(i.copy()); 3025 }; 3026 dst.explanation = explanation == null ? null : explanation.copy(); 3027 if (reaction != null) { 3028 dst.reaction = new ArrayList<ImmunizationReactionComponent>(); 3029 for (ImmunizationReactionComponent i : reaction) 3030 dst.reaction.add(i.copy()); 3031 }; 3032 if (vaccinationProtocol != null) { 3033 dst.vaccinationProtocol = new ArrayList<ImmunizationVaccinationProtocolComponent>(); 3034 for (ImmunizationVaccinationProtocolComponent i : vaccinationProtocol) 3035 dst.vaccinationProtocol.add(i.copy()); 3036 }; 3037 return dst; 3038 } 3039 3040 protected Immunization typedCopy() { 3041 return copy(); 3042 } 3043 3044 @Override 3045 public boolean equalsDeep(Base other_) { 3046 if (!super.equalsDeep(other_)) 3047 return false; 3048 if (!(other_ instanceof Immunization)) 3049 return false; 3050 Immunization o = (Immunization) other_; 3051 return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(notGiven, o.notGiven, true) 3052 && compareDeep(vaccineCode, o.vaccineCode, true) && compareDeep(patient, o.patient, true) && compareDeep(encounter, o.encounter, true) 3053 && compareDeep(date, o.date, true) && compareDeep(primarySource, o.primarySource, true) && compareDeep(reportOrigin, o.reportOrigin, true) 3054 && compareDeep(location, o.location, true) && compareDeep(manufacturer, o.manufacturer, true) && compareDeep(lotNumber, o.lotNumber, true) 3055 && compareDeep(expirationDate, o.expirationDate, true) && compareDeep(site, o.site, true) && compareDeep(route, o.route, true) 3056 && compareDeep(doseQuantity, o.doseQuantity, true) && compareDeep(practitioner, o.practitioner, true) 3057 && compareDeep(note, o.note, true) && compareDeep(explanation, o.explanation, true) && compareDeep(reaction, o.reaction, true) 3058 && compareDeep(vaccinationProtocol, o.vaccinationProtocol, true); 3059 } 3060 3061 @Override 3062 public boolean equalsShallow(Base other_) { 3063 if (!super.equalsShallow(other_)) 3064 return false; 3065 if (!(other_ instanceof Immunization)) 3066 return false; 3067 Immunization o = (Immunization) other_; 3068 return compareValues(status, o.status, true) && compareValues(notGiven, o.notGiven, true) && compareValues(date, o.date, true) 3069 && compareValues(primarySource, o.primarySource, true) && compareValues(lotNumber, o.lotNumber, true) 3070 && compareValues(expirationDate, o.expirationDate, true); 3071 } 3072 3073 public boolean isEmpty() { 3074 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, notGiven 3075 , vaccineCode, patient, encounter, date, primarySource, reportOrigin, location 3076 , manufacturer, lotNumber, expirationDate, site, route, doseQuantity, practitioner 3077 , note, explanation, reaction, vaccinationProtocol); 3078 } 3079 3080 @Override 3081 public ResourceType getResourceType() { 3082 return ResourceType.Immunization; 3083 } 3084 3085 /** 3086 * Search parameter: <b>date</b> 3087 * <p> 3088 * Description: <b>Vaccination (non)-Administration Date</b><br> 3089 * Type: <b>date</b><br> 3090 * Path: <b>Immunization.date</b><br> 3091 * </p> 3092 */ 3093 @SearchParamDefinition(name="date", path="Immunization.date", description="Vaccination (non)-Administration Date", type="date" ) 3094 public static final String SP_DATE = "date"; 3095 /** 3096 * <b>Fluent Client</b> search parameter constant for <b>date</b> 3097 * <p> 3098 * Description: <b>Vaccination (non)-Administration Date</b><br> 3099 * Type: <b>date</b><br> 3100 * Path: <b>Immunization.date</b><br> 3101 * </p> 3102 */ 3103 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 3104 3105 /** 3106 * Search parameter: <b>identifier</b> 3107 * <p> 3108 * Description: <b>Business identifier</b><br> 3109 * Type: <b>token</b><br> 3110 * Path: <b>Immunization.identifier</b><br> 3111 * </p> 3112 */ 3113 @SearchParamDefinition(name="identifier", path="Immunization.identifier", description="Business identifier", type="token" ) 3114 public static final String SP_IDENTIFIER = "identifier"; 3115 /** 3116 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 3117 * <p> 3118 * Description: <b>Business identifier</b><br> 3119 * Type: <b>token</b><br> 3120 * Path: <b>Immunization.identifier</b><br> 3121 * </p> 3122 */ 3123 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 3124 3125 /** 3126 * Search parameter: <b>reason</b> 3127 * <p> 3128 * Description: <b>Why immunization occurred</b><br> 3129 * Type: <b>token</b><br> 3130 * Path: <b>Immunization.explanation.reason</b><br> 3131 * </p> 3132 */ 3133 @SearchParamDefinition(name="reason", path="Immunization.explanation.reason", description="Why immunization occurred", type="token" ) 3134 public static final String SP_REASON = "reason"; 3135 /** 3136 * <b>Fluent Client</b> search parameter constant for <b>reason</b> 3137 * <p> 3138 * Description: <b>Why immunization occurred</b><br> 3139 * Type: <b>token</b><br> 3140 * Path: <b>Immunization.explanation.reason</b><br> 3141 * </p> 3142 */ 3143 public static final ca.uhn.fhir.rest.gclient.TokenClientParam REASON = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REASON); 3144 3145 /** 3146 * Search parameter: <b>reaction</b> 3147 * <p> 3148 * Description: <b>Additional information on reaction</b><br> 3149 * Type: <b>reference</b><br> 3150 * Path: <b>Immunization.reaction.detail</b><br> 3151 * </p> 3152 */ 3153 @SearchParamDefinition(name="reaction", path="Immunization.reaction.detail", description="Additional information on reaction", type="reference", target={Observation.class } ) 3154 public static final String SP_REACTION = "reaction"; 3155 /** 3156 * <b>Fluent Client</b> search parameter constant for <b>reaction</b> 3157 * <p> 3158 * Description: <b>Additional information on reaction</b><br> 3159 * Type: <b>reference</b><br> 3160 * Path: <b>Immunization.reaction.detail</b><br> 3161 * </p> 3162 */ 3163 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REACTION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REACTION); 3164 3165/** 3166 * Constant for fluent queries to be used to add include statements. Specifies 3167 * the path value of "<b>Immunization:reaction</b>". 3168 */ 3169 public static final ca.uhn.fhir.model.api.Include INCLUDE_REACTION = new ca.uhn.fhir.model.api.Include("Immunization:reaction").toLocked(); 3170 3171 /** 3172 * Search parameter: <b>lot-number</b> 3173 * <p> 3174 * Description: <b>Vaccine Lot Number</b><br> 3175 * Type: <b>string</b><br> 3176 * Path: <b>Immunization.lotNumber</b><br> 3177 * </p> 3178 */ 3179 @SearchParamDefinition(name="lot-number", path="Immunization.lotNumber", description="Vaccine Lot Number", type="string" ) 3180 public static final String SP_LOT_NUMBER = "lot-number"; 3181 /** 3182 * <b>Fluent Client</b> search parameter constant for <b>lot-number</b> 3183 * <p> 3184 * Description: <b>Vaccine Lot Number</b><br> 3185 * Type: <b>string</b><br> 3186 * Path: <b>Immunization.lotNumber</b><br> 3187 * </p> 3188 */ 3189 public static final ca.uhn.fhir.rest.gclient.StringClientParam LOT_NUMBER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_LOT_NUMBER); 3190 3191 /** 3192 * Search parameter: <b>practitioner</b> 3193 * <p> 3194 * Description: <b>The practitioner who played a role in the vaccination</b><br> 3195 * Type: <b>reference</b><br> 3196 * Path: <b>Immunization.practitioner.actor</b><br> 3197 * </p> 3198 */ 3199 @SearchParamDefinition(name="practitioner", path="Immunization.practitioner.actor", description="The practitioner who played a role in the vaccination", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") }, target={Practitioner.class } ) 3200 public static final String SP_PRACTITIONER = "practitioner"; 3201 /** 3202 * <b>Fluent Client</b> search parameter constant for <b>practitioner</b> 3203 * <p> 3204 * Description: <b>The practitioner who played a role in the vaccination</b><br> 3205 * Type: <b>reference</b><br> 3206 * Path: <b>Immunization.practitioner.actor</b><br> 3207 * </p> 3208 */ 3209 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRACTITIONER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PRACTITIONER); 3210 3211/** 3212 * Constant for fluent queries to be used to add include statements. Specifies 3213 * the path value of "<b>Immunization:practitioner</b>". 3214 */ 3215 public static final ca.uhn.fhir.model.api.Include INCLUDE_PRACTITIONER = new ca.uhn.fhir.model.api.Include("Immunization:practitioner").toLocked(); 3216 3217 /** 3218 * Search parameter: <b>notgiven</b> 3219 * <p> 3220 * Description: <b>Administrations which were not given</b><br> 3221 * Type: <b>token</b><br> 3222 * Path: <b>Immunization.notGiven</b><br> 3223 * </p> 3224 */ 3225 @SearchParamDefinition(name="notgiven", path="Immunization.notGiven", description="Administrations which were not given", type="token" ) 3226 public static final String SP_NOTGIVEN = "notgiven"; 3227 /** 3228 * <b>Fluent Client</b> search parameter constant for <b>notgiven</b> 3229 * <p> 3230 * Description: <b>Administrations which were not given</b><br> 3231 * Type: <b>token</b><br> 3232 * Path: <b>Immunization.notGiven</b><br> 3233 * </p> 3234 */ 3235 public static final ca.uhn.fhir.rest.gclient.TokenClientParam NOTGIVEN = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_NOTGIVEN); 3236 3237 /** 3238 * Search parameter: <b>manufacturer</b> 3239 * <p> 3240 * Description: <b>Vaccine Manufacturer</b><br> 3241 * Type: <b>reference</b><br> 3242 * Path: <b>Immunization.manufacturer</b><br> 3243 * </p> 3244 */ 3245 @SearchParamDefinition(name="manufacturer", path="Immunization.manufacturer", description="Vaccine Manufacturer", type="reference", target={Organization.class } ) 3246 public static final String SP_MANUFACTURER = "manufacturer"; 3247 /** 3248 * <b>Fluent Client</b> search parameter constant for <b>manufacturer</b> 3249 * <p> 3250 * Description: <b>Vaccine Manufacturer</b><br> 3251 * Type: <b>reference</b><br> 3252 * Path: <b>Immunization.manufacturer</b><br> 3253 * </p> 3254 */ 3255 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MANUFACTURER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_MANUFACTURER); 3256 3257/** 3258 * Constant for fluent queries to be used to add include statements. Specifies 3259 * the path value of "<b>Immunization:manufacturer</b>". 3260 */ 3261 public static final ca.uhn.fhir.model.api.Include INCLUDE_MANUFACTURER = new ca.uhn.fhir.model.api.Include("Immunization:manufacturer").toLocked(); 3262 3263 /** 3264 * Search parameter: <b>dose-sequence</b> 3265 * <p> 3266 * Description: <b>Dose number within series</b><br> 3267 * Type: <b>number</b><br> 3268 * Path: <b>Immunization.vaccinationProtocol.doseSequence</b><br> 3269 * </p> 3270 */ 3271 @SearchParamDefinition(name="dose-sequence", path="Immunization.vaccinationProtocol.doseSequence", description="Dose number within series", type="number" ) 3272 public static final String SP_DOSE_SEQUENCE = "dose-sequence"; 3273 /** 3274 * <b>Fluent Client</b> search parameter constant for <b>dose-sequence</b> 3275 * <p> 3276 * Description: <b>Dose number within series</b><br> 3277 * Type: <b>number</b><br> 3278 * Path: <b>Immunization.vaccinationProtocol.doseSequence</b><br> 3279 * </p> 3280 */ 3281 public static final ca.uhn.fhir.rest.gclient.NumberClientParam DOSE_SEQUENCE = new ca.uhn.fhir.rest.gclient.NumberClientParam(SP_DOSE_SEQUENCE); 3282 3283 /** 3284 * Search parameter: <b>patient</b> 3285 * <p> 3286 * Description: <b>The patient for the vaccination record</b><br> 3287 * Type: <b>reference</b><br> 3288 * Path: <b>Immunization.patient</b><br> 3289 * </p> 3290 */ 3291 @SearchParamDefinition(name="patient", path="Immunization.patient", description="The patient for the vaccination record", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") }, target={Patient.class } ) 3292 public static final String SP_PATIENT = "patient"; 3293 /** 3294 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 3295 * <p> 3296 * Description: <b>The patient for the vaccination record</b><br> 3297 * Type: <b>reference</b><br> 3298 * Path: <b>Immunization.patient</b><br> 3299 * </p> 3300 */ 3301 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 3302 3303/** 3304 * Constant for fluent queries to be used to add include statements. Specifies 3305 * the path value of "<b>Immunization:patient</b>". 3306 */ 3307 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Immunization:patient").toLocked(); 3308 3309 /** 3310 * Search parameter: <b>vaccine-code</b> 3311 * <p> 3312 * Description: <b>Vaccine Product Administered</b><br> 3313 * Type: <b>token</b><br> 3314 * Path: <b>Immunization.vaccineCode</b><br> 3315 * </p> 3316 */ 3317 @SearchParamDefinition(name="vaccine-code", path="Immunization.vaccineCode", description="Vaccine Product Administered", type="token" ) 3318 public static final String SP_VACCINE_CODE = "vaccine-code"; 3319 /** 3320 * <b>Fluent Client</b> search parameter constant for <b>vaccine-code</b> 3321 * <p> 3322 * Description: <b>Vaccine Product Administered</b><br> 3323 * Type: <b>token</b><br> 3324 * Path: <b>Immunization.vaccineCode</b><br> 3325 * </p> 3326 */ 3327 public static final ca.uhn.fhir.rest.gclient.TokenClientParam VACCINE_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VACCINE_CODE); 3328 3329 /** 3330 * Search parameter: <b>reason-not-given</b> 3331 * <p> 3332 * Description: <b>Explanation of reason vaccination was not administered</b><br> 3333 * Type: <b>token</b><br> 3334 * Path: <b>Immunization.explanation.reasonNotGiven</b><br> 3335 * </p> 3336 */ 3337 @SearchParamDefinition(name="reason-not-given", path="Immunization.explanation.reasonNotGiven", description="Explanation of reason vaccination was not administered", type="token" ) 3338 public static final String SP_REASON_NOT_GIVEN = "reason-not-given"; 3339 /** 3340 * <b>Fluent Client</b> search parameter constant for <b>reason-not-given</b> 3341 * <p> 3342 * Description: <b>Explanation of reason vaccination was not administered</b><br> 3343 * Type: <b>token</b><br> 3344 * Path: <b>Immunization.explanation.reasonNotGiven</b><br> 3345 * </p> 3346 */ 3347 public static final ca.uhn.fhir.rest.gclient.TokenClientParam REASON_NOT_GIVEN = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REASON_NOT_GIVEN); 3348 3349 /** 3350 * Search parameter: <b>location</b> 3351 * <p> 3352 * Description: <b>The service delivery location or facility in which the vaccine was / was to be administered</b><br> 3353 * Type: <b>reference</b><br> 3354 * Path: <b>Immunization.location</b><br> 3355 * </p> 3356 */ 3357 @SearchParamDefinition(name="location", path="Immunization.location", description="The service delivery location or facility in which the vaccine was / was to be administered", type="reference", target={Location.class } ) 3358 public static final String SP_LOCATION = "location"; 3359 /** 3360 * <b>Fluent Client</b> search parameter constant for <b>location</b> 3361 * <p> 3362 * Description: <b>The service delivery location or facility in which the vaccine was / was to be administered</b><br> 3363 * Type: <b>reference</b><br> 3364 * Path: <b>Immunization.location</b><br> 3365 * </p> 3366 */ 3367 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam LOCATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_LOCATION); 3368 3369/** 3370 * Constant for fluent queries to be used to add include statements. Specifies 3371 * the path value of "<b>Immunization:location</b>". 3372 */ 3373 public static final ca.uhn.fhir.model.api.Include INCLUDE_LOCATION = new ca.uhn.fhir.model.api.Include("Immunization:location").toLocked(); 3374 3375 /** 3376 * Search parameter: <b>reaction-date</b> 3377 * <p> 3378 * Description: <b>When reaction started</b><br> 3379 * Type: <b>date</b><br> 3380 * Path: <b>Immunization.reaction.date</b><br> 3381 * </p> 3382 */ 3383 @SearchParamDefinition(name="reaction-date", path="Immunization.reaction.date", description="When reaction started", type="date" ) 3384 public static final String SP_REACTION_DATE = "reaction-date"; 3385 /** 3386 * <b>Fluent Client</b> search parameter constant for <b>reaction-date</b> 3387 * <p> 3388 * Description: <b>When reaction started</b><br> 3389 * Type: <b>date</b><br> 3390 * Path: <b>Immunization.reaction.date</b><br> 3391 * </p> 3392 */ 3393 public static final ca.uhn.fhir.rest.gclient.DateClientParam REACTION_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_REACTION_DATE); 3394 3395 /** 3396 * Search parameter: <b>status</b> 3397 * <p> 3398 * Description: <b>Immunization event status</b><br> 3399 * Type: <b>token</b><br> 3400 * Path: <b>Immunization.status</b><br> 3401 * </p> 3402 */ 3403 @SearchParamDefinition(name="status", path="Immunization.status", description="Immunization event status", type="token" ) 3404 public static final String SP_STATUS = "status"; 3405 /** 3406 * <b>Fluent Client</b> search parameter constant for <b>status</b> 3407 * <p> 3408 * Description: <b>Immunization event status</b><br> 3409 * Type: <b>token</b><br> 3410 * Path: <b>Immunization.status</b><br> 3411 * </p> 3412 */ 3413 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 3414 3415 3416} 3417