001package org.hl7.fhir.r5.model; 002 003/*- 004 * #%L 005 * org.hl7.fhir.r5 006 * %% 007 * Copyright (C) 2014 - 2019 Health Level 7 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023/* 024 Copyright (c) 2011+, HL7, Inc. 025 All rights reserved. 026 027 Redistribution and use in source and binary forms, with or without modification, 028 are permitted provided that the following conditions are met: 029 030 * Redistributions of source code must retain the above copyright notice, this 031 list of conditions and the following disclaimer. 032 * Redistributions in binary form must reproduce the above copyright notice, 033 this list of conditions and the following disclaimer in the documentation 034 and/or other materials provided with the distribution. 035 * Neither the name of HL7 nor the names of its contributors may be used to 036 endorse or promote products derived from this software without specific 037 prior written permission. 038 039 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 040 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 041 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 042 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 043 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 044 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 045 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 046 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 047 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 048 POSSIBILITY OF SUCH DAMAGE. 049 050*/ 051 052// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0 053import java.util.ArrayList; 054import java.util.Date; 055import java.util.List; 056import org.hl7.fhir.exceptions.FHIRException; 057import org.hl7.fhir.instance.model.api.ICompositeType; 058 059import org.hl7.fhir.instance.model.api.IBaseDatatypeElement; 060import org.hl7.fhir.utilities.Utilities; 061import ca.uhn.fhir.model.api.annotation.ResourceDef; 062import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 063import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 064import ca.uhn.fhir.model.api.annotation.Child; 065import ca.uhn.fhir.model.api.annotation.ChildOrder; 066import ca.uhn.fhir.model.api.annotation.Description; 067import ca.uhn.fhir.model.api.annotation.Block; 068/** 069 * Describes a comparison of an immunization event against published recommendations to determine if the administration is "valid" in relation to those recommendations. 070 */ 071@ResourceDef(name="ImmunizationEvaluation", profile="http://hl7.org/fhir/StructureDefinition/ImmunizationEvaluation") 072public class ImmunizationEvaluation extends DomainResource { 073 074 public enum ImmunizationEvaluationStatus { 075 /** 076 * null 077 */ 078 COMPLETED, 079 /** 080 * null 081 */ 082 ENTEREDINERROR, 083 /** 084 * added to help the parsers with the generic types 085 */ 086 NULL; 087 public static ImmunizationEvaluationStatus fromCode(String codeString) throws FHIRException { 088 if (codeString == null || "".equals(codeString)) 089 return null; 090 if ("completed".equals(codeString)) 091 return COMPLETED; 092 if ("entered-in-error".equals(codeString)) 093 return ENTEREDINERROR; 094 if (Configuration.isAcceptInvalidEnums()) 095 return null; 096 else 097 throw new FHIRException("Unknown ImmunizationEvaluationStatus code '"+codeString+"'"); 098 } 099 public String toCode() { 100 switch (this) { 101 case COMPLETED: return "completed"; 102 case ENTEREDINERROR: return "entered-in-error"; 103 default: return "?"; 104 } 105 } 106 public String getSystem() { 107 switch (this) { 108 case COMPLETED: return "http://terminology.hl7.org/CodeSystem/medication-admin-status"; 109 case ENTEREDINERROR: return "http://terminology.hl7.org/CodeSystem/medication-admin-status"; 110 default: return "?"; 111 } 112 } 113 public String getDefinition() { 114 switch (this) { 115 case COMPLETED: return ""; 116 case ENTEREDINERROR: return ""; 117 default: return "?"; 118 } 119 } 120 public String getDisplay() { 121 switch (this) { 122 case COMPLETED: return "completed"; 123 case ENTEREDINERROR: return "entered-in-error"; 124 default: return "?"; 125 } 126 } 127 } 128 129 public static class ImmunizationEvaluationStatusEnumFactory implements EnumFactory<ImmunizationEvaluationStatus> { 130 public ImmunizationEvaluationStatus fromCode(String codeString) throws IllegalArgumentException { 131 if (codeString == null || "".equals(codeString)) 132 if (codeString == null || "".equals(codeString)) 133 return null; 134 if ("completed".equals(codeString)) 135 return ImmunizationEvaluationStatus.COMPLETED; 136 if ("entered-in-error".equals(codeString)) 137 return ImmunizationEvaluationStatus.ENTEREDINERROR; 138 throw new IllegalArgumentException("Unknown ImmunizationEvaluationStatus code '"+codeString+"'"); 139 } 140 public Enumeration<ImmunizationEvaluationStatus> fromType(Base code) throws FHIRException { 141 if (code == null) 142 return null; 143 if (code.isEmpty()) 144 return new Enumeration<ImmunizationEvaluationStatus>(this); 145 String codeString = ((PrimitiveType) code).asStringValue(); 146 if (codeString == null || "".equals(codeString)) 147 return null; 148 if ("completed".equals(codeString)) 149 return new Enumeration<ImmunizationEvaluationStatus>(this, ImmunizationEvaluationStatus.COMPLETED); 150 if ("entered-in-error".equals(codeString)) 151 return new Enumeration<ImmunizationEvaluationStatus>(this, ImmunizationEvaluationStatus.ENTEREDINERROR); 152 throw new FHIRException("Unknown ImmunizationEvaluationStatus code '"+codeString+"'"); 153 } 154 public String toCode(ImmunizationEvaluationStatus code) { 155 if (code == ImmunizationEvaluationStatus.COMPLETED) 156 return "completed"; 157 if (code == ImmunizationEvaluationStatus.ENTEREDINERROR) 158 return "entered-in-error"; 159 return "?"; 160 } 161 public String toSystem(ImmunizationEvaluationStatus code) { 162 return code.getSystem(); 163 } 164 } 165 166 /** 167 * A unique identifier assigned to this immunization evaluation record. 168 */ 169 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 170 @Description(shortDefinition="Business identifier", formalDefinition="A unique identifier assigned to this immunization evaluation record." ) 171 protected List<Identifier> identifier; 172 173 /** 174 * Indicates the current status of the evaluation of the vaccination administration event. 175 */ 176 @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) 177 @Description(shortDefinition="completed | entered-in-error", formalDefinition="Indicates the current status of the evaluation of the vaccination administration event." ) 178 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/immunization-evaluation-status") 179 protected Enumeration<ImmunizationEvaluationStatus> status; 180 181 /** 182 * The individual for whom the evaluation is being done. 183 */ 184 @Child(name = "patient", type = {Patient.class}, order=2, min=1, max=1, modifier=false, summary=true) 185 @Description(shortDefinition="Who this evaluation is for", formalDefinition="The individual for whom the evaluation is being done." ) 186 protected Reference patient; 187 188 /** 189 * The date the evaluation of the vaccine administration event was performed. 190 */ 191 @Child(name = "date", type = {DateTimeType.class}, order=3, min=0, max=1, modifier=false, summary=false) 192 @Description(shortDefinition="Date evaluation was performed", formalDefinition="The date the evaluation of the vaccine administration event was performed." ) 193 protected DateTimeType date; 194 195 /** 196 * Indicates the authority who published the protocol (e.g. ACIP). 197 */ 198 @Child(name = "authority", type = {Organization.class}, order=4, min=0, max=1, modifier=false, summary=false) 199 @Description(shortDefinition="Who is responsible for publishing the recommendations", formalDefinition="Indicates the authority who published the protocol (e.g. ACIP)." ) 200 protected Reference authority; 201 202 /** 203 * The vaccine preventable disease the dose is being evaluated against. 204 */ 205 @Child(name = "targetDisease", type = {CodeableConcept.class}, order=5, min=1, max=1, modifier=false, summary=true) 206 @Description(shortDefinition="Evaluation target disease", formalDefinition="The vaccine preventable disease the dose is being evaluated against." ) 207 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/immunization-evaluation-target-disease") 208 protected CodeableConcept targetDisease; 209 210 /** 211 * The vaccine administration event being evaluated. 212 */ 213 @Child(name = "immunizationEvent", type = {Immunization.class}, order=6, min=1, max=1, modifier=false, summary=true) 214 @Description(shortDefinition="Immunization being evaluated", formalDefinition="The vaccine administration event being evaluated." ) 215 protected Reference immunizationEvent; 216 217 /** 218 * Indicates if the dose is valid or not valid with respect to the published recommendations. 219 */ 220 @Child(name = "doseStatus", type = {CodeableConcept.class}, order=7, min=1, max=1, modifier=false, summary=true) 221 @Description(shortDefinition="Status of the dose relative to published recommendations", formalDefinition="Indicates if the dose is valid or not valid with respect to the published recommendations." ) 222 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/immunization-evaluation-dose-status") 223 protected CodeableConcept doseStatus; 224 225 /** 226 * Provides an explanation as to why the vaccine administration event is valid or not relative to the published recommendations. 227 */ 228 @Child(name = "doseStatusReason", type = {CodeableConcept.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 229 @Description(shortDefinition="Reason for the dose status", formalDefinition="Provides an explanation as to why the vaccine administration event is valid or not relative to the published recommendations." ) 230 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/immunization-evaluation-dose-status-reason") 231 protected List<CodeableConcept> doseStatusReason; 232 233 /** 234 * Additional information about the evaluation. 235 */ 236 @Child(name = "description", type = {StringType.class}, order=9, min=0, max=1, modifier=false, summary=false) 237 @Description(shortDefinition="Evaluation notes", formalDefinition="Additional information about the evaluation." ) 238 protected StringType description; 239 240 /** 241 * One possible path to achieve presumed immunity against a disease - within the context of an authority. 242 */ 243 @Child(name = "series", type = {StringType.class}, order=10, min=0, max=1, modifier=false, summary=false) 244 @Description(shortDefinition="Name of vaccine series", formalDefinition="One possible path to achieve presumed immunity against a disease - within the context of an authority." ) 245 protected StringType series; 246 247 /** 248 * Nominal position in a series. 249 */ 250 @Child(name = "doseNumber", type = {PositiveIntType.class, StringType.class}, order=11, min=0, max=1, modifier=false, summary=false) 251 @Description(shortDefinition="Dose number within series", formalDefinition="Nominal position in a series." ) 252 protected Type doseNumber; 253 254 /** 255 * The recommended number of doses to achieve immunity. 256 */ 257 @Child(name = "seriesDoses", type = {PositiveIntType.class, StringType.class}, order=12, min=0, max=1, modifier=false, summary=false) 258 @Description(shortDefinition="Recommended number of doses for immunity", formalDefinition="The recommended number of doses to achieve immunity." ) 259 protected Type seriesDoses; 260 261 private static final long serialVersionUID = 604368905L; 262 263 /** 264 * Constructor 265 */ 266 public ImmunizationEvaluation() { 267 super(); 268 } 269 270 /** 271 * Constructor 272 */ 273 public ImmunizationEvaluation(Enumeration<ImmunizationEvaluationStatus> status, Reference patient, CodeableConcept targetDisease, Reference immunizationEvent, CodeableConcept doseStatus) { 274 super(); 275 this.status = status; 276 this.patient = patient; 277 this.targetDisease = targetDisease; 278 this.immunizationEvent = immunizationEvent; 279 this.doseStatus = doseStatus; 280 } 281 282 /** 283 * @return {@link #identifier} (A unique identifier assigned to this immunization evaluation record.) 284 */ 285 public List<Identifier> getIdentifier() { 286 if (this.identifier == null) 287 this.identifier = new ArrayList<Identifier>(); 288 return this.identifier; 289 } 290 291 /** 292 * @return Returns a reference to <code>this</code> for easy method chaining 293 */ 294 public ImmunizationEvaluation setIdentifier(List<Identifier> theIdentifier) { 295 this.identifier = theIdentifier; 296 return this; 297 } 298 299 public boolean hasIdentifier() { 300 if (this.identifier == null) 301 return false; 302 for (Identifier item : this.identifier) 303 if (!item.isEmpty()) 304 return true; 305 return false; 306 } 307 308 public Identifier addIdentifier() { //3 309 Identifier t = new Identifier(); 310 if (this.identifier == null) 311 this.identifier = new ArrayList<Identifier>(); 312 this.identifier.add(t); 313 return t; 314 } 315 316 public ImmunizationEvaluation addIdentifier(Identifier t) { //3 317 if (t == null) 318 return this; 319 if (this.identifier == null) 320 this.identifier = new ArrayList<Identifier>(); 321 this.identifier.add(t); 322 return this; 323 } 324 325 /** 326 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist 327 */ 328 public Identifier getIdentifierFirstRep() { 329 if (getIdentifier().isEmpty()) { 330 addIdentifier(); 331 } 332 return getIdentifier().get(0); 333 } 334 335 /** 336 * @return {@link #status} (Indicates the current status of the evaluation of the vaccination administration event.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 337 */ 338 public Enumeration<ImmunizationEvaluationStatus> getStatusElement() { 339 if (this.status == null) 340 if (Configuration.errorOnAutoCreate()) 341 throw new Error("Attempt to auto-create ImmunizationEvaluation.status"); 342 else if (Configuration.doAutoCreate()) 343 this.status = new Enumeration<ImmunizationEvaluationStatus>(new ImmunizationEvaluationStatusEnumFactory()); // bb 344 return this.status; 345 } 346 347 public boolean hasStatusElement() { 348 return this.status != null && !this.status.isEmpty(); 349 } 350 351 public boolean hasStatus() { 352 return this.status != null && !this.status.isEmpty(); 353 } 354 355 /** 356 * @param value {@link #status} (Indicates the current status of the evaluation of the vaccination administration event.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 357 */ 358 public ImmunizationEvaluation setStatusElement(Enumeration<ImmunizationEvaluationStatus> value) { 359 this.status = value; 360 return this; 361 } 362 363 /** 364 * @return Indicates the current status of the evaluation of the vaccination administration event. 365 */ 366 public ImmunizationEvaluationStatus getStatus() { 367 return this.status == null ? null : this.status.getValue(); 368 } 369 370 /** 371 * @param value Indicates the current status of the evaluation of the vaccination administration event. 372 */ 373 public ImmunizationEvaluation setStatus(ImmunizationEvaluationStatus value) { 374 if (this.status == null) 375 this.status = new Enumeration<ImmunizationEvaluationStatus>(new ImmunizationEvaluationStatusEnumFactory()); 376 this.status.setValue(value); 377 return this; 378 } 379 380 /** 381 * @return {@link #patient} (The individual for whom the evaluation is being done.) 382 */ 383 public Reference getPatient() { 384 if (this.patient == null) 385 if (Configuration.errorOnAutoCreate()) 386 throw new Error("Attempt to auto-create ImmunizationEvaluation.patient"); 387 else if (Configuration.doAutoCreate()) 388 this.patient = new Reference(); // cc 389 return this.patient; 390 } 391 392 public boolean hasPatient() { 393 return this.patient != null && !this.patient.isEmpty(); 394 } 395 396 /** 397 * @param value {@link #patient} (The individual for whom the evaluation is being done.) 398 */ 399 public ImmunizationEvaluation setPatient(Reference value) { 400 this.patient = value; 401 return this; 402 } 403 404 /** 405 * @return {@link #date} (The date the evaluation of the vaccine administration event was performed.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 406 */ 407 public DateTimeType getDateElement() { 408 if (this.date == null) 409 if (Configuration.errorOnAutoCreate()) 410 throw new Error("Attempt to auto-create ImmunizationEvaluation.date"); 411 else if (Configuration.doAutoCreate()) 412 this.date = new DateTimeType(); // bb 413 return this.date; 414 } 415 416 public boolean hasDateElement() { 417 return this.date != null && !this.date.isEmpty(); 418 } 419 420 public boolean hasDate() { 421 return this.date != null && !this.date.isEmpty(); 422 } 423 424 /** 425 * @param value {@link #date} (The date the evaluation of the vaccine administration event was performed.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 426 */ 427 public ImmunizationEvaluation setDateElement(DateTimeType value) { 428 this.date = value; 429 return this; 430 } 431 432 /** 433 * @return The date the evaluation of the vaccine administration event was performed. 434 */ 435 public Date getDate() { 436 return this.date == null ? null : this.date.getValue(); 437 } 438 439 /** 440 * @param value The date the evaluation of the vaccine administration event was performed. 441 */ 442 public ImmunizationEvaluation setDate(Date value) { 443 if (value == null) 444 this.date = null; 445 else { 446 if (this.date == null) 447 this.date = new DateTimeType(); 448 this.date.setValue(value); 449 } 450 return this; 451 } 452 453 /** 454 * @return {@link #authority} (Indicates the authority who published the protocol (e.g. ACIP).) 455 */ 456 public Reference getAuthority() { 457 if (this.authority == null) 458 if (Configuration.errorOnAutoCreate()) 459 throw new Error("Attempt to auto-create ImmunizationEvaluation.authority"); 460 else if (Configuration.doAutoCreate()) 461 this.authority = new Reference(); // cc 462 return this.authority; 463 } 464 465 public boolean hasAuthority() { 466 return this.authority != null && !this.authority.isEmpty(); 467 } 468 469 /** 470 * @param value {@link #authority} (Indicates the authority who published the protocol (e.g. ACIP).) 471 */ 472 public ImmunizationEvaluation setAuthority(Reference value) { 473 this.authority = value; 474 return this; 475 } 476 477 /** 478 * @return {@link #targetDisease} (The vaccine preventable disease the dose is being evaluated against.) 479 */ 480 public CodeableConcept getTargetDisease() { 481 if (this.targetDisease == null) 482 if (Configuration.errorOnAutoCreate()) 483 throw new Error("Attempt to auto-create ImmunizationEvaluation.targetDisease"); 484 else if (Configuration.doAutoCreate()) 485 this.targetDisease = new CodeableConcept(); // cc 486 return this.targetDisease; 487 } 488 489 public boolean hasTargetDisease() { 490 return this.targetDisease != null && !this.targetDisease.isEmpty(); 491 } 492 493 /** 494 * @param value {@link #targetDisease} (The vaccine preventable disease the dose is being evaluated against.) 495 */ 496 public ImmunizationEvaluation setTargetDisease(CodeableConcept value) { 497 this.targetDisease = value; 498 return this; 499 } 500 501 /** 502 * @return {@link #immunizationEvent} (The vaccine administration event being evaluated.) 503 */ 504 public Reference getImmunizationEvent() { 505 if (this.immunizationEvent == null) 506 if (Configuration.errorOnAutoCreate()) 507 throw new Error("Attempt to auto-create ImmunizationEvaluation.immunizationEvent"); 508 else if (Configuration.doAutoCreate()) 509 this.immunizationEvent = new Reference(); // cc 510 return this.immunizationEvent; 511 } 512 513 public boolean hasImmunizationEvent() { 514 return this.immunizationEvent != null && !this.immunizationEvent.isEmpty(); 515 } 516 517 /** 518 * @param value {@link #immunizationEvent} (The vaccine administration event being evaluated.) 519 */ 520 public ImmunizationEvaluation setImmunizationEvent(Reference value) { 521 this.immunizationEvent = value; 522 return this; 523 } 524 525 /** 526 * @return {@link #doseStatus} (Indicates if the dose is valid or not valid with respect to the published recommendations.) 527 */ 528 public CodeableConcept getDoseStatus() { 529 if (this.doseStatus == null) 530 if (Configuration.errorOnAutoCreate()) 531 throw new Error("Attempt to auto-create ImmunizationEvaluation.doseStatus"); 532 else if (Configuration.doAutoCreate()) 533 this.doseStatus = new CodeableConcept(); // cc 534 return this.doseStatus; 535 } 536 537 public boolean hasDoseStatus() { 538 return this.doseStatus != null && !this.doseStatus.isEmpty(); 539 } 540 541 /** 542 * @param value {@link #doseStatus} (Indicates if the dose is valid or not valid with respect to the published recommendations.) 543 */ 544 public ImmunizationEvaluation setDoseStatus(CodeableConcept value) { 545 this.doseStatus = value; 546 return this; 547 } 548 549 /** 550 * @return {@link #doseStatusReason} (Provides an explanation as to why the vaccine administration event is valid or not relative to the published recommendations.) 551 */ 552 public List<CodeableConcept> getDoseStatusReason() { 553 if (this.doseStatusReason == null) 554 this.doseStatusReason = new ArrayList<CodeableConcept>(); 555 return this.doseStatusReason; 556 } 557 558 /** 559 * @return Returns a reference to <code>this</code> for easy method chaining 560 */ 561 public ImmunizationEvaluation setDoseStatusReason(List<CodeableConcept> theDoseStatusReason) { 562 this.doseStatusReason = theDoseStatusReason; 563 return this; 564 } 565 566 public boolean hasDoseStatusReason() { 567 if (this.doseStatusReason == null) 568 return false; 569 for (CodeableConcept item : this.doseStatusReason) 570 if (!item.isEmpty()) 571 return true; 572 return false; 573 } 574 575 public CodeableConcept addDoseStatusReason() { //3 576 CodeableConcept t = new CodeableConcept(); 577 if (this.doseStatusReason == null) 578 this.doseStatusReason = new ArrayList<CodeableConcept>(); 579 this.doseStatusReason.add(t); 580 return t; 581 } 582 583 public ImmunizationEvaluation addDoseStatusReason(CodeableConcept t) { //3 584 if (t == null) 585 return this; 586 if (this.doseStatusReason == null) 587 this.doseStatusReason = new ArrayList<CodeableConcept>(); 588 this.doseStatusReason.add(t); 589 return this; 590 } 591 592 /** 593 * @return The first repetition of repeating field {@link #doseStatusReason}, creating it if it does not already exist 594 */ 595 public CodeableConcept getDoseStatusReasonFirstRep() { 596 if (getDoseStatusReason().isEmpty()) { 597 addDoseStatusReason(); 598 } 599 return getDoseStatusReason().get(0); 600 } 601 602 /** 603 * @return {@link #description} (Additional information about the evaluation.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 604 */ 605 public StringType getDescriptionElement() { 606 if (this.description == null) 607 if (Configuration.errorOnAutoCreate()) 608 throw new Error("Attempt to auto-create ImmunizationEvaluation.description"); 609 else if (Configuration.doAutoCreate()) 610 this.description = new StringType(); // bb 611 return this.description; 612 } 613 614 public boolean hasDescriptionElement() { 615 return this.description != null && !this.description.isEmpty(); 616 } 617 618 public boolean hasDescription() { 619 return this.description != null && !this.description.isEmpty(); 620 } 621 622 /** 623 * @param value {@link #description} (Additional information about the evaluation.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 624 */ 625 public ImmunizationEvaluation setDescriptionElement(StringType value) { 626 this.description = value; 627 return this; 628 } 629 630 /** 631 * @return Additional information about the evaluation. 632 */ 633 public String getDescription() { 634 return this.description == null ? null : this.description.getValue(); 635 } 636 637 /** 638 * @param value Additional information about the evaluation. 639 */ 640 public ImmunizationEvaluation setDescription(String value) { 641 if (Utilities.noString(value)) 642 this.description = null; 643 else { 644 if (this.description == null) 645 this.description = new StringType(); 646 this.description.setValue(value); 647 } 648 return this; 649 } 650 651 /** 652 * @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 653 */ 654 public StringType getSeriesElement() { 655 if (this.series == null) 656 if (Configuration.errorOnAutoCreate()) 657 throw new Error("Attempt to auto-create ImmunizationEvaluation.series"); 658 else if (Configuration.doAutoCreate()) 659 this.series = new StringType(); // bb 660 return this.series; 661 } 662 663 public boolean hasSeriesElement() { 664 return this.series != null && !this.series.isEmpty(); 665 } 666 667 public boolean hasSeries() { 668 return this.series != null && !this.series.isEmpty(); 669 } 670 671 /** 672 * @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 673 */ 674 public ImmunizationEvaluation setSeriesElement(StringType value) { 675 this.series = value; 676 return this; 677 } 678 679 /** 680 * @return One possible path to achieve presumed immunity against a disease - within the context of an authority. 681 */ 682 public String getSeries() { 683 return this.series == null ? null : this.series.getValue(); 684 } 685 686 /** 687 * @param value One possible path to achieve presumed immunity against a disease - within the context of an authority. 688 */ 689 public ImmunizationEvaluation setSeries(String value) { 690 if (Utilities.noString(value)) 691 this.series = null; 692 else { 693 if (this.series == null) 694 this.series = new StringType(); 695 this.series.setValue(value); 696 } 697 return this; 698 } 699 700 /** 701 * @return {@link #doseNumber} (Nominal position in a series.) 702 */ 703 public Type getDoseNumber() { 704 return this.doseNumber; 705 } 706 707 /** 708 * @return {@link #doseNumber} (Nominal position in a series.) 709 */ 710 public PositiveIntType getDoseNumberPositiveIntType() throws FHIRException { 711 if (this.doseNumber == null) 712 this.doseNumber = new PositiveIntType(); 713 if (!(this.doseNumber instanceof PositiveIntType)) 714 throw new FHIRException("Type mismatch: the type PositiveIntType was expected, but "+this.doseNumber.getClass().getName()+" was encountered"); 715 return (PositiveIntType) this.doseNumber; 716 } 717 718 public boolean hasDoseNumberPositiveIntType() { 719 return this != null && this.doseNumber instanceof PositiveIntType; 720 } 721 722 /** 723 * @return {@link #doseNumber} (Nominal position in a series.) 724 */ 725 public StringType getDoseNumberStringType() throws FHIRException { 726 if (this.doseNumber == null) 727 this.doseNumber = new StringType(); 728 if (!(this.doseNumber instanceof StringType)) 729 throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.doseNumber.getClass().getName()+" was encountered"); 730 return (StringType) this.doseNumber; 731 } 732 733 public boolean hasDoseNumberStringType() { 734 return this != null && this.doseNumber instanceof StringType; 735 } 736 737 public boolean hasDoseNumber() { 738 return this.doseNumber != null && !this.doseNumber.isEmpty(); 739 } 740 741 /** 742 * @param value {@link #doseNumber} (Nominal position in a series.) 743 */ 744 public ImmunizationEvaluation setDoseNumber(Type value) { 745 if (value != null && !(value instanceof PositiveIntType || value instanceof StringType)) 746 throw new Error("Not the right type for ImmunizationEvaluation.doseNumber[x]: "+value.fhirType()); 747 this.doseNumber = value; 748 return this; 749 } 750 751 /** 752 * @return {@link #seriesDoses} (The recommended number of doses to achieve immunity.) 753 */ 754 public Type getSeriesDoses() { 755 return this.seriesDoses; 756 } 757 758 /** 759 * @return {@link #seriesDoses} (The recommended number of doses to achieve immunity.) 760 */ 761 public PositiveIntType getSeriesDosesPositiveIntType() throws FHIRException { 762 if (this.seriesDoses == null) 763 this.seriesDoses = new PositiveIntType(); 764 if (!(this.seriesDoses instanceof PositiveIntType)) 765 throw new FHIRException("Type mismatch: the type PositiveIntType was expected, but "+this.seriesDoses.getClass().getName()+" was encountered"); 766 return (PositiveIntType) this.seriesDoses; 767 } 768 769 public boolean hasSeriesDosesPositiveIntType() { 770 return this != null && this.seriesDoses instanceof PositiveIntType; 771 } 772 773 /** 774 * @return {@link #seriesDoses} (The recommended number of doses to achieve immunity.) 775 */ 776 public StringType getSeriesDosesStringType() throws FHIRException { 777 if (this.seriesDoses == null) 778 this.seriesDoses = new StringType(); 779 if (!(this.seriesDoses instanceof StringType)) 780 throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.seriesDoses.getClass().getName()+" was encountered"); 781 return (StringType) this.seriesDoses; 782 } 783 784 public boolean hasSeriesDosesStringType() { 785 return this != null && this.seriesDoses instanceof StringType; 786 } 787 788 public boolean hasSeriesDoses() { 789 return this.seriesDoses != null && !this.seriesDoses.isEmpty(); 790 } 791 792 /** 793 * @param value {@link #seriesDoses} (The recommended number of doses to achieve immunity.) 794 */ 795 public ImmunizationEvaluation setSeriesDoses(Type value) { 796 if (value != null && !(value instanceof PositiveIntType || value instanceof StringType)) 797 throw new Error("Not the right type for ImmunizationEvaluation.seriesDoses[x]: "+value.fhirType()); 798 this.seriesDoses = value; 799 return this; 800 } 801 802 protected void listChildren(List<Property> children) { 803 super.listChildren(children); 804 children.add(new Property("identifier", "Identifier", "A unique identifier assigned to this immunization evaluation record.", 0, java.lang.Integer.MAX_VALUE, identifier)); 805 children.add(new Property("status", "code", "Indicates the current status of the evaluation of the vaccination administration event.", 0, 1, status)); 806 children.add(new Property("patient", "Reference(Patient)", "The individual for whom the evaluation is being done.", 0, 1, patient)); 807 children.add(new Property("date", "dateTime", "The date the evaluation of the vaccine administration event was performed.", 0, 1, date)); 808 children.add(new Property("authority", "Reference(Organization)", "Indicates the authority who published the protocol (e.g. ACIP).", 0, 1, authority)); 809 children.add(new Property("targetDisease", "CodeableConcept", "The vaccine preventable disease the dose is being evaluated against.", 0, 1, targetDisease)); 810 children.add(new Property("immunizationEvent", "Reference(Immunization)", "The vaccine administration event being evaluated.", 0, 1, immunizationEvent)); 811 children.add(new Property("doseStatus", "CodeableConcept", "Indicates if the dose is valid or not valid with respect to the published recommendations.", 0, 1, doseStatus)); 812 children.add(new Property("doseStatusReason", "CodeableConcept", "Provides an explanation as to why the vaccine administration event is valid or not relative to the published recommendations.", 0, java.lang.Integer.MAX_VALUE, doseStatusReason)); 813 children.add(new Property("description", "string", "Additional information about the evaluation.", 0, 1, description)); 814 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)); 815 children.add(new Property("doseNumber[x]", "positiveInt|string", "Nominal position in a series.", 0, 1, doseNumber)); 816 children.add(new Property("seriesDoses[x]", "positiveInt|string", "The recommended number of doses to achieve immunity.", 0, 1, seriesDoses)); 817 } 818 819 @Override 820 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 821 switch (_hash) { 822 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A unique identifier assigned to this immunization evaluation record.", 0, java.lang.Integer.MAX_VALUE, identifier); 823 case -892481550: /*status*/ return new Property("status", "code", "Indicates the current status of the evaluation of the vaccination administration event.", 0, 1, status); 824 case -791418107: /*patient*/ return new Property("patient", "Reference(Patient)", "The individual for whom the evaluation is being done.", 0, 1, patient); 825 case 3076014: /*date*/ return new Property("date", "dateTime", "The date the evaluation of the vaccine administration event was performed.", 0, 1, date); 826 case 1475610435: /*authority*/ return new Property("authority", "Reference(Organization)", "Indicates the authority who published the protocol (e.g. ACIP).", 0, 1, authority); 827 case -319593813: /*targetDisease*/ return new Property("targetDisease", "CodeableConcept", "The vaccine preventable disease the dose is being evaluated against.", 0, 1, targetDisease); 828 case 1081446840: /*immunizationEvent*/ return new Property("immunizationEvent", "Reference(Immunization)", "The vaccine administration event being evaluated.", 0, 1, immunizationEvent); 829 case -745826705: /*doseStatus*/ return new Property("doseStatus", "CodeableConcept", "Indicates if the dose is valid or not valid with respect to the published recommendations.", 0, 1, doseStatus); 830 case 662783379: /*doseStatusReason*/ return new Property("doseStatusReason", "CodeableConcept", "Provides an explanation as to why the vaccine administration event is valid or not relative to the published recommendations.", 0, java.lang.Integer.MAX_VALUE, doseStatusReason); 831 case -1724546052: /*description*/ return new Property("description", "string", "Additional information about the evaluation.", 0, 1, description); 832 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); 833 case -1632295686: /*doseNumber[x]*/ return new Property("doseNumber[x]", "positiveInt|string", "Nominal position in a series.", 0, 1, doseNumber); 834 case -887709242: /*doseNumber*/ return new Property("doseNumber[x]", "positiveInt|string", "Nominal position in a series.", 0, 1, doseNumber); 835 case -1826134640: /*doseNumberPositiveInt*/ return new Property("doseNumber[x]", "positiveInt|string", "Nominal position in a series.", 0, 1, doseNumber); 836 case -333053577: /*doseNumberString*/ return new Property("doseNumber[x]", "positiveInt|string", "Nominal position in a series.", 0, 1, doseNumber); 837 case 1553560673: /*seriesDoses[x]*/ return new Property("seriesDoses[x]", "positiveInt|string", "The recommended number of doses to achieve immunity.", 0, 1, seriesDoses); 838 case -1936727105: /*seriesDoses*/ return new Property("seriesDoses[x]", "positiveInt|string", "The recommended number of doses to achieve immunity.", 0, 1, seriesDoses); 839 case -220897801: /*seriesDosesPositiveInt*/ return new Property("seriesDoses[x]", "positiveInt|string", "The recommended number of doses to achieve immunity.", 0, 1, seriesDoses); 840 case -673569616: /*seriesDosesString*/ return new Property("seriesDoses[x]", "positiveInt|string", "The recommended number of doses to achieve immunity.", 0, 1, seriesDoses); 841 default: return super.getNamedProperty(_hash, _name, _checkValid); 842 } 843 844 } 845 846 @Override 847 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 848 switch (hash) { 849 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 850 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<ImmunizationEvaluationStatus> 851 case -791418107: /*patient*/ return this.patient == null ? new Base[0] : new Base[] {this.patient}; // Reference 852 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 853 case 1475610435: /*authority*/ return this.authority == null ? new Base[0] : new Base[] {this.authority}; // Reference 854 case -319593813: /*targetDisease*/ return this.targetDisease == null ? new Base[0] : new Base[] {this.targetDisease}; // CodeableConcept 855 case 1081446840: /*immunizationEvent*/ return this.immunizationEvent == null ? new Base[0] : new Base[] {this.immunizationEvent}; // Reference 856 case -745826705: /*doseStatus*/ return this.doseStatus == null ? new Base[0] : new Base[] {this.doseStatus}; // CodeableConcept 857 case 662783379: /*doseStatusReason*/ return this.doseStatusReason == null ? new Base[0] : this.doseStatusReason.toArray(new Base[this.doseStatusReason.size()]); // CodeableConcept 858 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 859 case -905838985: /*series*/ return this.series == null ? new Base[0] : new Base[] {this.series}; // StringType 860 case -887709242: /*doseNumber*/ return this.doseNumber == null ? new Base[0] : new Base[] {this.doseNumber}; // Type 861 case -1936727105: /*seriesDoses*/ return this.seriesDoses == null ? new Base[0] : new Base[] {this.seriesDoses}; // Type 862 default: return super.getProperty(hash, name, checkValid); 863 } 864 865 } 866 867 @Override 868 public Base setProperty(int hash, String name, Base value) throws FHIRException { 869 switch (hash) { 870 case -1618432855: // identifier 871 this.getIdentifier().add(castToIdentifier(value)); // Identifier 872 return value; 873 case -892481550: // status 874 value = new ImmunizationEvaluationStatusEnumFactory().fromType(castToCode(value)); 875 this.status = (Enumeration) value; // Enumeration<ImmunizationEvaluationStatus> 876 return value; 877 case -791418107: // patient 878 this.patient = castToReference(value); // Reference 879 return value; 880 case 3076014: // date 881 this.date = castToDateTime(value); // DateTimeType 882 return value; 883 case 1475610435: // authority 884 this.authority = castToReference(value); // Reference 885 return value; 886 case -319593813: // targetDisease 887 this.targetDisease = castToCodeableConcept(value); // CodeableConcept 888 return value; 889 case 1081446840: // immunizationEvent 890 this.immunizationEvent = castToReference(value); // Reference 891 return value; 892 case -745826705: // doseStatus 893 this.doseStatus = castToCodeableConcept(value); // CodeableConcept 894 return value; 895 case 662783379: // doseStatusReason 896 this.getDoseStatusReason().add(castToCodeableConcept(value)); // CodeableConcept 897 return value; 898 case -1724546052: // description 899 this.description = castToString(value); // StringType 900 return value; 901 case -905838985: // series 902 this.series = castToString(value); // StringType 903 return value; 904 case -887709242: // doseNumber 905 this.doseNumber = castToType(value); // Type 906 return value; 907 case -1936727105: // seriesDoses 908 this.seriesDoses = castToType(value); // Type 909 return value; 910 default: return super.setProperty(hash, name, value); 911 } 912 913 } 914 915 @Override 916 public Base setProperty(String name, Base value) throws FHIRException { 917 if (name.equals("identifier")) { 918 this.getIdentifier().add(castToIdentifier(value)); 919 } else if (name.equals("status")) { 920 value = new ImmunizationEvaluationStatusEnumFactory().fromType(castToCode(value)); 921 this.status = (Enumeration) value; // Enumeration<ImmunizationEvaluationStatus> 922 } else if (name.equals("patient")) { 923 this.patient = castToReference(value); // Reference 924 } else if (name.equals("date")) { 925 this.date = castToDateTime(value); // DateTimeType 926 } else if (name.equals("authority")) { 927 this.authority = castToReference(value); // Reference 928 } else if (name.equals("targetDisease")) { 929 this.targetDisease = castToCodeableConcept(value); // CodeableConcept 930 } else if (name.equals("immunizationEvent")) { 931 this.immunizationEvent = castToReference(value); // Reference 932 } else if (name.equals("doseStatus")) { 933 this.doseStatus = castToCodeableConcept(value); // CodeableConcept 934 } else if (name.equals("doseStatusReason")) { 935 this.getDoseStatusReason().add(castToCodeableConcept(value)); 936 } else if (name.equals("description")) { 937 this.description = castToString(value); // StringType 938 } else if (name.equals("series")) { 939 this.series = castToString(value); // StringType 940 } else if (name.equals("doseNumber[x]")) { 941 this.doseNumber = castToType(value); // Type 942 } else if (name.equals("seriesDoses[x]")) { 943 this.seriesDoses = castToType(value); // Type 944 } else 945 return super.setProperty(name, value); 946 return value; 947 } 948 949 @Override 950 public Base makeProperty(int hash, String name) throws FHIRException { 951 switch (hash) { 952 case -1618432855: return addIdentifier(); 953 case -892481550: return getStatusElement(); 954 case -791418107: return getPatient(); 955 case 3076014: return getDateElement(); 956 case 1475610435: return getAuthority(); 957 case -319593813: return getTargetDisease(); 958 case 1081446840: return getImmunizationEvent(); 959 case -745826705: return getDoseStatus(); 960 case 662783379: return addDoseStatusReason(); 961 case -1724546052: return getDescriptionElement(); 962 case -905838985: return getSeriesElement(); 963 case -1632295686: return getDoseNumber(); 964 case -887709242: return getDoseNumber(); 965 case 1553560673: return getSeriesDoses(); 966 case -1936727105: return getSeriesDoses(); 967 default: return super.makeProperty(hash, name); 968 } 969 970 } 971 972 @Override 973 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 974 switch (hash) { 975 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 976 case -892481550: /*status*/ return new String[] {"code"}; 977 case -791418107: /*patient*/ return new String[] {"Reference"}; 978 case 3076014: /*date*/ return new String[] {"dateTime"}; 979 case 1475610435: /*authority*/ return new String[] {"Reference"}; 980 case -319593813: /*targetDisease*/ return new String[] {"CodeableConcept"}; 981 case 1081446840: /*immunizationEvent*/ return new String[] {"Reference"}; 982 case -745826705: /*doseStatus*/ return new String[] {"CodeableConcept"}; 983 case 662783379: /*doseStatusReason*/ return new String[] {"CodeableConcept"}; 984 case -1724546052: /*description*/ return new String[] {"string"}; 985 case -905838985: /*series*/ return new String[] {"string"}; 986 case -887709242: /*doseNumber*/ return new String[] {"positiveInt", "string"}; 987 case -1936727105: /*seriesDoses*/ return new String[] {"positiveInt", "string"}; 988 default: return super.getTypesForProperty(hash, name); 989 } 990 991 } 992 993 @Override 994 public Base addChild(String name) throws FHIRException { 995 if (name.equals("identifier")) { 996 return addIdentifier(); 997 } 998 else if (name.equals("status")) { 999 throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.status"); 1000 } 1001 else if (name.equals("patient")) { 1002 this.patient = new Reference(); 1003 return this.patient; 1004 } 1005 else if (name.equals("date")) { 1006 throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.date"); 1007 } 1008 else if (name.equals("authority")) { 1009 this.authority = new Reference(); 1010 return this.authority; 1011 } 1012 else if (name.equals("targetDisease")) { 1013 this.targetDisease = new CodeableConcept(); 1014 return this.targetDisease; 1015 } 1016 else if (name.equals("immunizationEvent")) { 1017 this.immunizationEvent = new Reference(); 1018 return this.immunizationEvent; 1019 } 1020 else if (name.equals("doseStatus")) { 1021 this.doseStatus = new CodeableConcept(); 1022 return this.doseStatus; 1023 } 1024 else if (name.equals("doseStatusReason")) { 1025 return addDoseStatusReason(); 1026 } 1027 else if (name.equals("description")) { 1028 throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.description"); 1029 } 1030 else if (name.equals("series")) { 1031 throw new FHIRException("Cannot call addChild on a primitive type ImmunizationEvaluation.series"); 1032 } 1033 else if (name.equals("doseNumberPositiveInt")) { 1034 this.doseNumber = new PositiveIntType(); 1035 return this.doseNumber; 1036 } 1037 else if (name.equals("doseNumberString")) { 1038 this.doseNumber = new StringType(); 1039 return this.doseNumber; 1040 } 1041 else if (name.equals("seriesDosesPositiveInt")) { 1042 this.seriesDoses = new PositiveIntType(); 1043 return this.seriesDoses; 1044 } 1045 else if (name.equals("seriesDosesString")) { 1046 this.seriesDoses = new StringType(); 1047 return this.seriesDoses; 1048 } 1049 else 1050 return super.addChild(name); 1051 } 1052 1053 public String fhirType() { 1054 return "ImmunizationEvaluation"; 1055 1056 } 1057 1058 public ImmunizationEvaluation copy() { 1059 ImmunizationEvaluation dst = new ImmunizationEvaluation(); 1060 copyValues(dst); 1061 return dst; 1062 } 1063 1064 public void copyValues(ImmunizationEvaluation dst) { 1065 super.copyValues(dst); 1066 if (identifier != null) { 1067 dst.identifier = new ArrayList<Identifier>(); 1068 for (Identifier i : identifier) 1069 dst.identifier.add(i.copy()); 1070 }; 1071 dst.status = status == null ? null : status.copy(); 1072 dst.patient = patient == null ? null : patient.copy(); 1073 dst.date = date == null ? null : date.copy(); 1074 dst.authority = authority == null ? null : authority.copy(); 1075 dst.targetDisease = targetDisease == null ? null : targetDisease.copy(); 1076 dst.immunizationEvent = immunizationEvent == null ? null : immunizationEvent.copy(); 1077 dst.doseStatus = doseStatus == null ? null : doseStatus.copy(); 1078 if (doseStatusReason != null) { 1079 dst.doseStatusReason = new ArrayList<CodeableConcept>(); 1080 for (CodeableConcept i : doseStatusReason) 1081 dst.doseStatusReason.add(i.copy()); 1082 }; 1083 dst.description = description == null ? null : description.copy(); 1084 dst.series = series == null ? null : series.copy(); 1085 dst.doseNumber = doseNumber == null ? null : doseNumber.copy(); 1086 dst.seriesDoses = seriesDoses == null ? null : seriesDoses.copy(); 1087 } 1088 1089 protected ImmunizationEvaluation typedCopy() { 1090 return copy(); 1091 } 1092 1093 @Override 1094 public boolean equalsDeep(Base other_) { 1095 if (!super.equalsDeep(other_)) 1096 return false; 1097 if (!(other_ instanceof ImmunizationEvaluation)) 1098 return false; 1099 ImmunizationEvaluation o = (ImmunizationEvaluation) other_; 1100 return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(patient, o.patient, true) 1101 && compareDeep(date, o.date, true) && compareDeep(authority, o.authority, true) && compareDeep(targetDisease, o.targetDisease, true) 1102 && compareDeep(immunizationEvent, o.immunizationEvent, true) && compareDeep(doseStatus, o.doseStatus, true) 1103 && compareDeep(doseStatusReason, o.doseStatusReason, true) && compareDeep(description, o.description, true) 1104 && compareDeep(series, o.series, true) && compareDeep(doseNumber, o.doseNumber, true) && compareDeep(seriesDoses, o.seriesDoses, true) 1105 ; 1106 } 1107 1108 @Override 1109 public boolean equalsShallow(Base other_) { 1110 if (!super.equalsShallow(other_)) 1111 return false; 1112 if (!(other_ instanceof ImmunizationEvaluation)) 1113 return false; 1114 ImmunizationEvaluation o = (ImmunizationEvaluation) other_; 1115 return compareValues(status, o.status, true) && compareValues(date, o.date, true) && compareValues(description, o.description, true) 1116 && compareValues(series, o.series, true); 1117 } 1118 1119 public boolean isEmpty() { 1120 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, patient 1121 , date, authority, targetDisease, immunizationEvent, doseStatus, doseStatusReason 1122 , description, series, doseNumber, seriesDoses); 1123 } 1124 1125 @Override 1126 public ResourceType getResourceType() { 1127 return ResourceType.ImmunizationEvaluation; 1128 } 1129 1130 /** 1131 * Search parameter: <b>date</b> 1132 * <p> 1133 * Description: <b>Date the evaluation was generated</b><br> 1134 * Type: <b>date</b><br> 1135 * Path: <b>ImmunizationEvaluation.date</b><br> 1136 * </p> 1137 */ 1138 @SearchParamDefinition(name="date", path="ImmunizationEvaluation.date", description="Date the evaluation was generated", type="date" ) 1139 public static final String SP_DATE = "date"; 1140 /** 1141 * <b>Fluent Client</b> search parameter constant for <b>date</b> 1142 * <p> 1143 * Description: <b>Date the evaluation was generated</b><br> 1144 * Type: <b>date</b><br> 1145 * Path: <b>ImmunizationEvaluation.date</b><br> 1146 * </p> 1147 */ 1148 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 1149 1150 /** 1151 * Search parameter: <b>identifier</b> 1152 * <p> 1153 * Description: <b>ID of the evaluation</b><br> 1154 * Type: <b>token</b><br> 1155 * Path: <b>ImmunizationEvaluation.identifier</b><br> 1156 * </p> 1157 */ 1158 @SearchParamDefinition(name="identifier", path="ImmunizationEvaluation.identifier", description="ID of the evaluation", type="token" ) 1159 public static final String SP_IDENTIFIER = "identifier"; 1160 /** 1161 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 1162 * <p> 1163 * Description: <b>ID of the evaluation</b><br> 1164 * Type: <b>token</b><br> 1165 * Path: <b>ImmunizationEvaluation.identifier</b><br> 1166 * </p> 1167 */ 1168 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 1169 1170 /** 1171 * Search parameter: <b>target-disease</b> 1172 * <p> 1173 * Description: <b>The vaccine preventable disease being evaluated against</b><br> 1174 * Type: <b>token</b><br> 1175 * Path: <b>ImmunizationEvaluation.targetDisease</b><br> 1176 * </p> 1177 */ 1178 @SearchParamDefinition(name="target-disease", path="ImmunizationEvaluation.targetDisease", description="The vaccine preventable disease being evaluated against", type="token" ) 1179 public static final String SP_TARGET_DISEASE = "target-disease"; 1180 /** 1181 * <b>Fluent Client</b> search parameter constant for <b>target-disease</b> 1182 * <p> 1183 * Description: <b>The vaccine preventable disease being evaluated against</b><br> 1184 * Type: <b>token</b><br> 1185 * Path: <b>ImmunizationEvaluation.targetDisease</b><br> 1186 * </p> 1187 */ 1188 public static final ca.uhn.fhir.rest.gclient.TokenClientParam TARGET_DISEASE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TARGET_DISEASE); 1189 1190 /** 1191 * Search parameter: <b>patient</b> 1192 * <p> 1193 * Description: <b>The patient being evaluated</b><br> 1194 * Type: <b>reference</b><br> 1195 * Path: <b>ImmunizationEvaluation.patient</b><br> 1196 * </p> 1197 */ 1198 @SearchParamDefinition(name="patient", path="ImmunizationEvaluation.patient", description="The patient being evaluated", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") }, target={Patient.class } ) 1199 public static final String SP_PATIENT = "patient"; 1200 /** 1201 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 1202 * <p> 1203 * Description: <b>The patient being evaluated</b><br> 1204 * Type: <b>reference</b><br> 1205 * Path: <b>ImmunizationEvaluation.patient</b><br> 1206 * </p> 1207 */ 1208 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 1209 1210/** 1211 * Constant for fluent queries to be used to add include statements. Specifies 1212 * the path value of "<b>ImmunizationEvaluation:patient</b>". 1213 */ 1214 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("ImmunizationEvaluation:patient").toLocked(); 1215 1216 /** 1217 * Search parameter: <b>dose-status</b> 1218 * <p> 1219 * Description: <b>The status of the dose relative to published recommendations</b><br> 1220 * Type: <b>token</b><br> 1221 * Path: <b>ImmunizationEvaluation.doseStatus</b><br> 1222 * </p> 1223 */ 1224 @SearchParamDefinition(name="dose-status", path="ImmunizationEvaluation.doseStatus", description="The status of the dose relative to published recommendations", type="token" ) 1225 public static final String SP_DOSE_STATUS = "dose-status"; 1226 /** 1227 * <b>Fluent Client</b> search parameter constant for <b>dose-status</b> 1228 * <p> 1229 * Description: <b>The status of the dose relative to published recommendations</b><br> 1230 * Type: <b>token</b><br> 1231 * Path: <b>ImmunizationEvaluation.doseStatus</b><br> 1232 * </p> 1233 */ 1234 public static final ca.uhn.fhir.rest.gclient.TokenClientParam DOSE_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_DOSE_STATUS); 1235 1236 /** 1237 * Search parameter: <b>immunization-event</b> 1238 * <p> 1239 * Description: <b>The vaccine administration event being evaluated</b><br> 1240 * Type: <b>reference</b><br> 1241 * Path: <b>ImmunizationEvaluation.immunizationEvent</b><br> 1242 * </p> 1243 */ 1244 @SearchParamDefinition(name="immunization-event", path="ImmunizationEvaluation.immunizationEvent", description="The vaccine administration event being evaluated", type="reference", target={Immunization.class } ) 1245 public static final String SP_IMMUNIZATION_EVENT = "immunization-event"; 1246 /** 1247 * <b>Fluent Client</b> search parameter constant for <b>immunization-event</b> 1248 * <p> 1249 * Description: <b>The vaccine administration event being evaluated</b><br> 1250 * Type: <b>reference</b><br> 1251 * Path: <b>ImmunizationEvaluation.immunizationEvent</b><br> 1252 * </p> 1253 */ 1254 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam IMMUNIZATION_EVENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_IMMUNIZATION_EVENT); 1255 1256/** 1257 * Constant for fluent queries to be used to add include statements. Specifies 1258 * the path value of "<b>ImmunizationEvaluation:immunization-event</b>". 1259 */ 1260 public static final ca.uhn.fhir.model.api.Include INCLUDE_IMMUNIZATION_EVENT = new ca.uhn.fhir.model.api.Include("ImmunizationEvaluation:immunization-event").toLocked(); 1261 1262 /** 1263 * Search parameter: <b>status</b> 1264 * <p> 1265 * Description: <b>Immunization evaluation status</b><br> 1266 * Type: <b>token</b><br> 1267 * Path: <b>ImmunizationEvaluation.status</b><br> 1268 * </p> 1269 */ 1270 @SearchParamDefinition(name="status", path="ImmunizationEvaluation.status", description="Immunization evaluation status", type="token" ) 1271 public static final String SP_STATUS = "status"; 1272 /** 1273 * <b>Fluent Client</b> search parameter constant for <b>status</b> 1274 * <p> 1275 * Description: <b>Immunization evaluation status</b><br> 1276 * Type: <b>token</b><br> 1277 * Path: <b>ImmunizationEvaluation.status</b><br> 1278 * </p> 1279 */ 1280 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 1281 1282 1283} 1284