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