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 ca.uhn.fhir.model.api.annotation.ResourceDef; 061import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 062import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 063import ca.uhn.fhir.model.api.annotation.Child; 064import ca.uhn.fhir.model.api.annotation.ChildOrder; 065import ca.uhn.fhir.model.api.annotation.Description; 066import ca.uhn.fhir.model.api.annotation.Block; 067/** 068 * A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern. 069 */ 070@ResourceDef(name="Condition", profile="http://hl7.org/fhir/StructureDefinition/Condition") 071public class Condition extends DomainResource { 072 073 @Block() 074 public static class ConditionStageComponent extends BackboneElement implements IBaseBackboneElement { 075 /** 076 * A simple summary of the stage such as "Stage 3". The determination of the stage is disease-specific. 077 */ 078 @Child(name = "summary", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=false) 079 @Description(shortDefinition="Simple summary (disease specific)", formalDefinition="A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific." ) 080 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-stage") 081 protected CodeableConcept summary; 082 083 /** 084 * Reference to a formal record of the evidence on which the staging assessment is based. 085 */ 086 @Child(name = "assessment", type = {ClinicalImpression.class, DiagnosticReport.class, Observation.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 087 @Description(shortDefinition="Formal record of assessment", formalDefinition="Reference to a formal record of the evidence on which the staging assessment is based." ) 088 protected List<Reference> assessment; 089 090 /** 091 * The kind of staging, such as pathological or clinical staging. 092 */ 093 @Child(name = "type", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false) 094 @Description(shortDefinition="Kind of staging", formalDefinition="The kind of staging, such as pathological or clinical staging." ) 095 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-stage-type") 096 protected CodeableConcept type; 097 098 private static final long serialVersionUID = -394541797L; 099 100 /** 101 * Constructor 102 */ 103 public ConditionStageComponent() { 104 super(); 105 } 106 107 /** 108 * @return {@link #summary} (A simple summary of the stage such as "Stage 3". The determination of the stage is disease-specific.) 109 */ 110 public CodeableConcept getSummary() { 111 if (this.summary == null) 112 if (Configuration.errorOnAutoCreate()) 113 throw new Error("Attempt to auto-create ConditionStageComponent.summary"); 114 else if (Configuration.doAutoCreate()) 115 this.summary = new CodeableConcept(); // cc 116 return this.summary; 117 } 118 119 public boolean hasSummary() { 120 return this.summary != null && !this.summary.isEmpty(); 121 } 122 123 /** 124 * @param value {@link #summary} (A simple summary of the stage such as "Stage 3". The determination of the stage is disease-specific.) 125 */ 126 public ConditionStageComponent setSummary(CodeableConcept value) { 127 this.summary = value; 128 return this; 129 } 130 131 /** 132 * @return {@link #assessment} (Reference to a formal record of the evidence on which the staging assessment is based.) 133 */ 134 public List<Reference> getAssessment() { 135 if (this.assessment == null) 136 this.assessment = new ArrayList<Reference>(); 137 return this.assessment; 138 } 139 140 /** 141 * @return Returns a reference to <code>this</code> for easy method chaining 142 */ 143 public ConditionStageComponent setAssessment(List<Reference> theAssessment) { 144 this.assessment = theAssessment; 145 return this; 146 } 147 148 public boolean hasAssessment() { 149 if (this.assessment == null) 150 return false; 151 for (Reference item : this.assessment) 152 if (!item.isEmpty()) 153 return true; 154 return false; 155 } 156 157 public Reference addAssessment() { //3 158 Reference t = new Reference(); 159 if (this.assessment == null) 160 this.assessment = new ArrayList<Reference>(); 161 this.assessment.add(t); 162 return t; 163 } 164 165 public ConditionStageComponent addAssessment(Reference t) { //3 166 if (t == null) 167 return this; 168 if (this.assessment == null) 169 this.assessment = new ArrayList<Reference>(); 170 this.assessment.add(t); 171 return this; 172 } 173 174 /** 175 * @return The first repetition of repeating field {@link #assessment}, creating it if it does not already exist 176 */ 177 public Reference getAssessmentFirstRep() { 178 if (getAssessment().isEmpty()) { 179 addAssessment(); 180 } 181 return getAssessment().get(0); 182 } 183 184 /** 185 * @return {@link #type} (The kind of staging, such as pathological or clinical staging.) 186 */ 187 public CodeableConcept getType() { 188 if (this.type == null) 189 if (Configuration.errorOnAutoCreate()) 190 throw new Error("Attempt to auto-create ConditionStageComponent.type"); 191 else if (Configuration.doAutoCreate()) 192 this.type = new CodeableConcept(); // cc 193 return this.type; 194 } 195 196 public boolean hasType() { 197 return this.type != null && !this.type.isEmpty(); 198 } 199 200 /** 201 * @param value {@link #type} (The kind of staging, such as pathological or clinical staging.) 202 */ 203 public ConditionStageComponent setType(CodeableConcept value) { 204 this.type = value; 205 return this; 206 } 207 208 protected void listChildren(List<Property> children) { 209 super.listChildren(children); 210 children.add(new Property("summary", "CodeableConcept", "A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific.", 0, 1, summary)); 211 children.add(new Property("assessment", "Reference(ClinicalImpression|DiagnosticReport|Observation)", "Reference to a formal record of the evidence on which the staging assessment is based.", 0, java.lang.Integer.MAX_VALUE, assessment)); 212 children.add(new Property("type", "CodeableConcept", "The kind of staging, such as pathological or clinical staging.", 0, 1, type)); 213 } 214 215 @Override 216 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 217 switch (_hash) { 218 case -1857640538: /*summary*/ return new Property("summary", "CodeableConcept", "A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific.", 0, 1, summary); 219 case 2119382722: /*assessment*/ return new Property("assessment", "Reference(ClinicalImpression|DiagnosticReport|Observation)", "Reference to a formal record of the evidence on which the staging assessment is based.", 0, java.lang.Integer.MAX_VALUE, assessment); 220 case 3575610: /*type*/ return new Property("type", "CodeableConcept", "The kind of staging, such as pathological or clinical staging.", 0, 1, type); 221 default: return super.getNamedProperty(_hash, _name, _checkValid); 222 } 223 224 } 225 226 @Override 227 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 228 switch (hash) { 229 case -1857640538: /*summary*/ return this.summary == null ? new Base[0] : new Base[] {this.summary}; // CodeableConcept 230 case 2119382722: /*assessment*/ return this.assessment == null ? new Base[0] : this.assessment.toArray(new Base[this.assessment.size()]); // Reference 231 case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept 232 default: return super.getProperty(hash, name, checkValid); 233 } 234 235 } 236 237 @Override 238 public Base setProperty(int hash, String name, Base value) throws FHIRException { 239 switch (hash) { 240 case -1857640538: // summary 241 this.summary = castToCodeableConcept(value); // CodeableConcept 242 return value; 243 case 2119382722: // assessment 244 this.getAssessment().add(castToReference(value)); // Reference 245 return value; 246 case 3575610: // type 247 this.type = castToCodeableConcept(value); // CodeableConcept 248 return value; 249 default: return super.setProperty(hash, name, value); 250 } 251 252 } 253 254 @Override 255 public Base setProperty(String name, Base value) throws FHIRException { 256 if (name.equals("summary")) { 257 this.summary = castToCodeableConcept(value); // CodeableConcept 258 } else if (name.equals("assessment")) { 259 this.getAssessment().add(castToReference(value)); 260 } else if (name.equals("type")) { 261 this.type = castToCodeableConcept(value); // CodeableConcept 262 } else 263 return super.setProperty(name, value); 264 return value; 265 } 266 267 @Override 268 public Base makeProperty(int hash, String name) throws FHIRException { 269 switch (hash) { 270 case -1857640538: return getSummary(); 271 case 2119382722: return addAssessment(); 272 case 3575610: return getType(); 273 default: return super.makeProperty(hash, name); 274 } 275 276 } 277 278 @Override 279 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 280 switch (hash) { 281 case -1857640538: /*summary*/ return new String[] {"CodeableConcept"}; 282 case 2119382722: /*assessment*/ return new String[] {"Reference"}; 283 case 3575610: /*type*/ return new String[] {"CodeableConcept"}; 284 default: return super.getTypesForProperty(hash, name); 285 } 286 287 } 288 289 @Override 290 public Base addChild(String name) throws FHIRException { 291 if (name.equals("summary")) { 292 this.summary = new CodeableConcept(); 293 return this.summary; 294 } 295 else if (name.equals("assessment")) { 296 return addAssessment(); 297 } 298 else if (name.equals("type")) { 299 this.type = new CodeableConcept(); 300 return this.type; 301 } 302 else 303 return super.addChild(name); 304 } 305 306 public ConditionStageComponent copy() { 307 ConditionStageComponent dst = new ConditionStageComponent(); 308 copyValues(dst); 309 return dst; 310 } 311 312 public void copyValues(ConditionStageComponent dst) { 313 super.copyValues(dst); 314 dst.summary = summary == null ? null : summary.copy(); 315 if (assessment != null) { 316 dst.assessment = new ArrayList<Reference>(); 317 for (Reference i : assessment) 318 dst.assessment.add(i.copy()); 319 }; 320 dst.type = type == null ? null : type.copy(); 321 } 322 323 @Override 324 public boolean equalsDeep(Base other_) { 325 if (!super.equalsDeep(other_)) 326 return false; 327 if (!(other_ instanceof ConditionStageComponent)) 328 return false; 329 ConditionStageComponent o = (ConditionStageComponent) other_; 330 return compareDeep(summary, o.summary, true) && compareDeep(assessment, o.assessment, true) && compareDeep(type, o.type, true) 331 ; 332 } 333 334 @Override 335 public boolean equalsShallow(Base other_) { 336 if (!super.equalsShallow(other_)) 337 return false; 338 if (!(other_ instanceof ConditionStageComponent)) 339 return false; 340 ConditionStageComponent o = (ConditionStageComponent) other_; 341 return true; 342 } 343 344 public boolean isEmpty() { 345 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(summary, assessment, type 346 ); 347 } 348 349 public String fhirType() { 350 return "Condition.stage"; 351 352 } 353 354 } 355 356 @Block() 357 public static class ConditionEvidenceComponent extends BackboneElement implements IBaseBackboneElement { 358 /** 359 * A manifestation or symptom that led to the recording of this condition. 360 */ 361 @Child(name = "code", type = {CodeableConcept.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 362 @Description(shortDefinition="Manifestation/symptom", formalDefinition="A manifestation or symptom that led to the recording of this condition." ) 363 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/manifestation-or-symptom") 364 protected List<CodeableConcept> code; 365 366 /** 367 * Links to other relevant information, including pathology reports. 368 */ 369 @Child(name = "detail", type = {Reference.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 370 @Description(shortDefinition="Supporting information found elsewhere", formalDefinition="Links to other relevant information, including pathology reports." ) 371 protected List<Reference> detail; 372 373 private static final long serialVersionUID = -672691342L; 374 375 /** 376 * Constructor 377 */ 378 public ConditionEvidenceComponent() { 379 super(); 380 } 381 382 /** 383 * @return {@link #code} (A manifestation or symptom that led to the recording of this condition.) 384 */ 385 public List<CodeableConcept> getCode() { 386 if (this.code == null) 387 this.code = new ArrayList<CodeableConcept>(); 388 return this.code; 389 } 390 391 /** 392 * @return Returns a reference to <code>this</code> for easy method chaining 393 */ 394 public ConditionEvidenceComponent setCode(List<CodeableConcept> theCode) { 395 this.code = theCode; 396 return this; 397 } 398 399 public boolean hasCode() { 400 if (this.code == null) 401 return false; 402 for (CodeableConcept item : this.code) 403 if (!item.isEmpty()) 404 return true; 405 return false; 406 } 407 408 public CodeableConcept addCode() { //3 409 CodeableConcept t = new CodeableConcept(); 410 if (this.code == null) 411 this.code = new ArrayList<CodeableConcept>(); 412 this.code.add(t); 413 return t; 414 } 415 416 public ConditionEvidenceComponent addCode(CodeableConcept t) { //3 417 if (t == null) 418 return this; 419 if (this.code == null) 420 this.code = new ArrayList<CodeableConcept>(); 421 this.code.add(t); 422 return this; 423 } 424 425 /** 426 * @return The first repetition of repeating field {@link #code}, creating it if it does not already exist 427 */ 428 public CodeableConcept getCodeFirstRep() { 429 if (getCode().isEmpty()) { 430 addCode(); 431 } 432 return getCode().get(0); 433 } 434 435 /** 436 * @return {@link #detail} (Links to other relevant information, including pathology reports.) 437 */ 438 public List<Reference> getDetail() { 439 if (this.detail == null) 440 this.detail = new ArrayList<Reference>(); 441 return this.detail; 442 } 443 444 /** 445 * @return Returns a reference to <code>this</code> for easy method chaining 446 */ 447 public ConditionEvidenceComponent setDetail(List<Reference> theDetail) { 448 this.detail = theDetail; 449 return this; 450 } 451 452 public boolean hasDetail() { 453 if (this.detail == null) 454 return false; 455 for (Reference item : this.detail) 456 if (!item.isEmpty()) 457 return true; 458 return false; 459 } 460 461 public Reference addDetail() { //3 462 Reference t = new Reference(); 463 if (this.detail == null) 464 this.detail = new ArrayList<Reference>(); 465 this.detail.add(t); 466 return t; 467 } 468 469 public ConditionEvidenceComponent addDetail(Reference t) { //3 470 if (t == null) 471 return this; 472 if (this.detail == null) 473 this.detail = new ArrayList<Reference>(); 474 this.detail.add(t); 475 return this; 476 } 477 478 /** 479 * @return The first repetition of repeating field {@link #detail}, creating it if it does not already exist 480 */ 481 public Reference getDetailFirstRep() { 482 if (getDetail().isEmpty()) { 483 addDetail(); 484 } 485 return getDetail().get(0); 486 } 487 488 protected void listChildren(List<Property> children) { 489 super.listChildren(children); 490 children.add(new Property("code", "CodeableConcept", "A manifestation or symptom that led to the recording of this condition.", 0, java.lang.Integer.MAX_VALUE, code)); 491 children.add(new Property("detail", "Reference(Any)", "Links to other relevant information, including pathology reports.", 0, java.lang.Integer.MAX_VALUE, detail)); 492 } 493 494 @Override 495 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 496 switch (_hash) { 497 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "A manifestation or symptom that led to the recording of this condition.", 0, java.lang.Integer.MAX_VALUE, code); 498 case -1335224239: /*detail*/ return new Property("detail", "Reference(Any)", "Links to other relevant information, including pathology reports.", 0, java.lang.Integer.MAX_VALUE, detail); 499 default: return super.getNamedProperty(_hash, _name, _checkValid); 500 } 501 502 } 503 504 @Override 505 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 506 switch (hash) { 507 case 3059181: /*code*/ return this.code == null ? new Base[0] : this.code.toArray(new Base[this.code.size()]); // CodeableConcept 508 case -1335224239: /*detail*/ return this.detail == null ? new Base[0] : this.detail.toArray(new Base[this.detail.size()]); // Reference 509 default: return super.getProperty(hash, name, checkValid); 510 } 511 512 } 513 514 @Override 515 public Base setProperty(int hash, String name, Base value) throws FHIRException { 516 switch (hash) { 517 case 3059181: // code 518 this.getCode().add(castToCodeableConcept(value)); // CodeableConcept 519 return value; 520 case -1335224239: // detail 521 this.getDetail().add(castToReference(value)); // Reference 522 return value; 523 default: return super.setProperty(hash, name, value); 524 } 525 526 } 527 528 @Override 529 public Base setProperty(String name, Base value) throws FHIRException { 530 if (name.equals("code")) { 531 this.getCode().add(castToCodeableConcept(value)); 532 } else if (name.equals("detail")) { 533 this.getDetail().add(castToReference(value)); 534 } else 535 return super.setProperty(name, value); 536 return value; 537 } 538 539 @Override 540 public Base makeProperty(int hash, String name) throws FHIRException { 541 switch (hash) { 542 case 3059181: return addCode(); 543 case -1335224239: return addDetail(); 544 default: return super.makeProperty(hash, name); 545 } 546 547 } 548 549 @Override 550 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 551 switch (hash) { 552 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 553 case -1335224239: /*detail*/ return new String[] {"Reference"}; 554 default: return super.getTypesForProperty(hash, name); 555 } 556 557 } 558 559 @Override 560 public Base addChild(String name) throws FHIRException { 561 if (name.equals("code")) { 562 return addCode(); 563 } 564 else if (name.equals("detail")) { 565 return addDetail(); 566 } 567 else 568 return super.addChild(name); 569 } 570 571 public ConditionEvidenceComponent copy() { 572 ConditionEvidenceComponent dst = new ConditionEvidenceComponent(); 573 copyValues(dst); 574 return dst; 575 } 576 577 public void copyValues(ConditionEvidenceComponent dst) { 578 super.copyValues(dst); 579 if (code != null) { 580 dst.code = new ArrayList<CodeableConcept>(); 581 for (CodeableConcept i : code) 582 dst.code.add(i.copy()); 583 }; 584 if (detail != null) { 585 dst.detail = new ArrayList<Reference>(); 586 for (Reference i : detail) 587 dst.detail.add(i.copy()); 588 }; 589 } 590 591 @Override 592 public boolean equalsDeep(Base other_) { 593 if (!super.equalsDeep(other_)) 594 return false; 595 if (!(other_ instanceof ConditionEvidenceComponent)) 596 return false; 597 ConditionEvidenceComponent o = (ConditionEvidenceComponent) other_; 598 return compareDeep(code, o.code, true) && compareDeep(detail, o.detail, true); 599 } 600 601 @Override 602 public boolean equalsShallow(Base other_) { 603 if (!super.equalsShallow(other_)) 604 return false; 605 if (!(other_ instanceof ConditionEvidenceComponent)) 606 return false; 607 ConditionEvidenceComponent o = (ConditionEvidenceComponent) other_; 608 return true; 609 } 610 611 public boolean isEmpty() { 612 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, detail); 613 } 614 615 public String fhirType() { 616 return "Condition.evidence"; 617 618 } 619 620 } 621 622 /** 623 * Business identifiers assigned to this condition by the performer or other systems which remain constant as the resource is updated and propagates from server to server. 624 */ 625 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 626 @Description(shortDefinition="External Ids for this condition", formalDefinition="Business identifiers assigned to this condition by the performer or other systems which remain constant as the resource is updated and propagates from server to server." ) 627 protected List<Identifier> identifier; 628 629 /** 630 * The clinical status of the condition. 631 */ 632 @Child(name = "clinicalStatus", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=true, summary=true) 633 @Description(shortDefinition="active | recurrence | relapse | inactive | remission | resolved", formalDefinition="The clinical status of the condition." ) 634 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-clinical") 635 protected CodeableConcept clinicalStatus; 636 637 /** 638 * The verification status to support the clinical status of the condition. 639 */ 640 @Child(name = "verificationStatus", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=true, summary=true) 641 @Description(shortDefinition="unconfirmed | provisional | differential | confirmed | refuted | entered-in-error", formalDefinition="The verification status to support the clinical status of the condition." ) 642 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-ver-status") 643 protected CodeableConcept verificationStatus; 644 645 /** 646 * A category assigned to the condition. 647 */ 648 @Child(name = "category", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 649 @Description(shortDefinition="problem-list-item | encounter-diagnosis", formalDefinition="A category assigned to the condition." ) 650 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-category") 651 protected List<CodeableConcept> category; 652 653 /** 654 * A subjective assessment of the severity of the condition as evaluated by the clinician. 655 */ 656 @Child(name = "severity", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=false) 657 @Description(shortDefinition="Subjective severity of condition", formalDefinition="A subjective assessment of the severity of the condition as evaluated by the clinician." ) 658 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-severity") 659 protected CodeableConcept severity; 660 661 /** 662 * Identification of the condition, problem or diagnosis. 663 */ 664 @Child(name = "code", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=true) 665 @Description(shortDefinition="Identification of the condition, problem or diagnosis", formalDefinition="Identification of the condition, problem or diagnosis." ) 666 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-code") 667 protected CodeableConcept code; 668 669 /** 670 * The anatomical location where this condition manifests itself. 671 */ 672 @Child(name = "bodySite", type = {CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 673 @Description(shortDefinition="Anatomical location, if relevant", formalDefinition="The anatomical location where this condition manifests itself." ) 674 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/body-site") 675 protected List<CodeableConcept> bodySite; 676 677 /** 678 * Indicates the patient or group who the condition record is associated with. 679 */ 680 @Child(name = "subject", type = {Patient.class, Group.class}, order=7, min=1, max=1, modifier=false, summary=true) 681 @Description(shortDefinition="Who has the condition?", formalDefinition="Indicates the patient or group who the condition record is associated with." ) 682 protected Reference subject; 683 684 /** 685 * The Encounter during which this Condition was created or to which the creation of this record is tightly associated. 686 */ 687 @Child(name = "encounter", type = {Encounter.class}, order=8, min=0, max=1, modifier=false, summary=true) 688 @Description(shortDefinition="The Encounter during which this Condition was created", formalDefinition="The Encounter during which this Condition was created or to which the creation of this record is tightly associated." ) 689 protected Reference encounter; 690 691 /** 692 * Estimated or actual date or date-time the condition began, in the opinion of the clinician. 693 */ 694 @Child(name = "onset", type = {DateTimeType.class, Age.class, Period.class, Range.class, StringType.class}, order=9, min=0, max=1, modifier=false, summary=true) 695 @Description(shortDefinition="Estimated or actual date, date-time, or age", formalDefinition="Estimated or actual date or date-time the condition began, in the opinion of the clinician." ) 696 protected Type onset; 697 698 /** 699 * The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate. 700 */ 701 @Child(name = "abatement", type = {DateTimeType.class, Age.class, Period.class, Range.class, StringType.class}, order=10, min=0, max=1, modifier=false, summary=false) 702 @Description(shortDefinition="When in resolution/remission", formalDefinition="The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate." ) 703 protected Type abatement; 704 705 /** 706 * The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date. 707 */ 708 @Child(name = "recordedDate", type = {DateTimeType.class}, order=11, min=0, max=1, modifier=false, summary=true) 709 @Description(shortDefinition="Date record was first recorded", formalDefinition="The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date." ) 710 protected DateTimeType recordedDate; 711 712 /** 713 * Individual who recorded the record and takes responsibility for its content. 714 */ 715 @Child(name = "recorder", type = {Practitioner.class, PractitionerRole.class, Patient.class, RelatedPerson.class}, order=12, min=0, max=1, modifier=false, summary=true) 716 @Description(shortDefinition="Who recorded the condition", formalDefinition="Individual who recorded the record and takes responsibility for its content." ) 717 protected Reference recorder; 718 719 /** 720 * Individual or device that is making the condition statement. 721 */ 722 @Child(name = "asserter", type = {Practitioner.class, PractitionerRole.class, Patient.class, RelatedPerson.class, Device.class}, order=13, min=0, max=1, modifier=false, summary=true) 723 @Description(shortDefinition="Person or device that asserts this condition", formalDefinition="Individual or device that is making the condition statement." ) 724 protected Reference asserter; 725 726 /** 727 * Clinical stage or grade of a condition. May include formal severity assessments. 728 */ 729 @Child(name = "stage", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 730 @Description(shortDefinition="Stage/grade, usually assessed formally", formalDefinition="Clinical stage or grade of a condition. May include formal severity assessments." ) 731 protected List<ConditionStageComponent> stage; 732 733 /** 734 * Supporting evidence / manifestations that are the basis of the Condition's verification status, such as evidence that confirmed or refuted the condition. 735 */ 736 @Child(name = "evidence", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 737 @Description(shortDefinition="Supporting evidence", formalDefinition="Supporting evidence / manifestations that are the basis of the Condition's verification status, such as evidence that confirmed or refuted the condition." ) 738 protected List<ConditionEvidenceComponent> evidence; 739 740 /** 741 * Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis. 742 */ 743 @Child(name = "note", type = {Annotation.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 744 @Description(shortDefinition="Additional information about the Condition", formalDefinition="Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis." ) 745 protected List<Annotation> note; 746 747 private static final long serialVersionUID = 205655247L; 748 749 /** 750 * Constructor 751 */ 752 public Condition() { 753 super(); 754 } 755 756 /** 757 * Constructor 758 */ 759 public Condition(Reference subject) { 760 super(); 761 this.subject = subject; 762 } 763 764 /** 765 * @return {@link #identifier} (Business identifiers assigned to this condition by the performer or other systems which remain constant as the resource is updated and propagates from server to server.) 766 */ 767 public List<Identifier> getIdentifier() { 768 if (this.identifier == null) 769 this.identifier = new ArrayList<Identifier>(); 770 return this.identifier; 771 } 772 773 /** 774 * @return Returns a reference to <code>this</code> for easy method chaining 775 */ 776 public Condition setIdentifier(List<Identifier> theIdentifier) { 777 this.identifier = theIdentifier; 778 return this; 779 } 780 781 public boolean hasIdentifier() { 782 if (this.identifier == null) 783 return false; 784 for (Identifier item : this.identifier) 785 if (!item.isEmpty()) 786 return true; 787 return false; 788 } 789 790 public Identifier addIdentifier() { //3 791 Identifier t = new Identifier(); 792 if (this.identifier == null) 793 this.identifier = new ArrayList<Identifier>(); 794 this.identifier.add(t); 795 return t; 796 } 797 798 public Condition addIdentifier(Identifier t) { //3 799 if (t == null) 800 return this; 801 if (this.identifier == null) 802 this.identifier = new ArrayList<Identifier>(); 803 this.identifier.add(t); 804 return this; 805 } 806 807 /** 808 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist 809 */ 810 public Identifier getIdentifierFirstRep() { 811 if (getIdentifier().isEmpty()) { 812 addIdentifier(); 813 } 814 return getIdentifier().get(0); 815 } 816 817 /** 818 * @return {@link #clinicalStatus} (The clinical status of the condition.) 819 */ 820 public CodeableConcept getClinicalStatus() { 821 if (this.clinicalStatus == null) 822 if (Configuration.errorOnAutoCreate()) 823 throw new Error("Attempt to auto-create Condition.clinicalStatus"); 824 else if (Configuration.doAutoCreate()) 825 this.clinicalStatus = new CodeableConcept(); // cc 826 return this.clinicalStatus; 827 } 828 829 public boolean hasClinicalStatus() { 830 return this.clinicalStatus != null && !this.clinicalStatus.isEmpty(); 831 } 832 833 /** 834 * @param value {@link #clinicalStatus} (The clinical status of the condition.) 835 */ 836 public Condition setClinicalStatus(CodeableConcept value) { 837 this.clinicalStatus = value; 838 return this; 839 } 840 841 /** 842 * @return {@link #verificationStatus} (The verification status to support the clinical status of the condition.) 843 */ 844 public CodeableConcept getVerificationStatus() { 845 if (this.verificationStatus == null) 846 if (Configuration.errorOnAutoCreate()) 847 throw new Error("Attempt to auto-create Condition.verificationStatus"); 848 else if (Configuration.doAutoCreate()) 849 this.verificationStatus = new CodeableConcept(); // cc 850 return this.verificationStatus; 851 } 852 853 public boolean hasVerificationStatus() { 854 return this.verificationStatus != null && !this.verificationStatus.isEmpty(); 855 } 856 857 /** 858 * @param value {@link #verificationStatus} (The verification status to support the clinical status of the condition.) 859 */ 860 public Condition setVerificationStatus(CodeableConcept value) { 861 this.verificationStatus = value; 862 return this; 863 } 864 865 /** 866 * @return {@link #category} (A category assigned to the condition.) 867 */ 868 public List<CodeableConcept> getCategory() { 869 if (this.category == null) 870 this.category = new ArrayList<CodeableConcept>(); 871 return this.category; 872 } 873 874 /** 875 * @return Returns a reference to <code>this</code> for easy method chaining 876 */ 877 public Condition setCategory(List<CodeableConcept> theCategory) { 878 this.category = theCategory; 879 return this; 880 } 881 882 public boolean hasCategory() { 883 if (this.category == null) 884 return false; 885 for (CodeableConcept item : this.category) 886 if (!item.isEmpty()) 887 return true; 888 return false; 889 } 890 891 public CodeableConcept addCategory() { //3 892 CodeableConcept t = new CodeableConcept(); 893 if (this.category == null) 894 this.category = new ArrayList<CodeableConcept>(); 895 this.category.add(t); 896 return t; 897 } 898 899 public Condition addCategory(CodeableConcept t) { //3 900 if (t == null) 901 return this; 902 if (this.category == null) 903 this.category = new ArrayList<CodeableConcept>(); 904 this.category.add(t); 905 return this; 906 } 907 908 /** 909 * @return The first repetition of repeating field {@link #category}, creating it if it does not already exist 910 */ 911 public CodeableConcept getCategoryFirstRep() { 912 if (getCategory().isEmpty()) { 913 addCategory(); 914 } 915 return getCategory().get(0); 916 } 917 918 /** 919 * @return {@link #severity} (A subjective assessment of the severity of the condition as evaluated by the clinician.) 920 */ 921 public CodeableConcept getSeverity() { 922 if (this.severity == null) 923 if (Configuration.errorOnAutoCreate()) 924 throw new Error("Attempt to auto-create Condition.severity"); 925 else if (Configuration.doAutoCreate()) 926 this.severity = new CodeableConcept(); // cc 927 return this.severity; 928 } 929 930 public boolean hasSeverity() { 931 return this.severity != null && !this.severity.isEmpty(); 932 } 933 934 /** 935 * @param value {@link #severity} (A subjective assessment of the severity of the condition as evaluated by the clinician.) 936 */ 937 public Condition setSeverity(CodeableConcept value) { 938 this.severity = value; 939 return this; 940 } 941 942 /** 943 * @return {@link #code} (Identification of the condition, problem or diagnosis.) 944 */ 945 public CodeableConcept getCode() { 946 if (this.code == null) 947 if (Configuration.errorOnAutoCreate()) 948 throw new Error("Attempt to auto-create Condition.code"); 949 else if (Configuration.doAutoCreate()) 950 this.code = new CodeableConcept(); // cc 951 return this.code; 952 } 953 954 public boolean hasCode() { 955 return this.code != null && !this.code.isEmpty(); 956 } 957 958 /** 959 * @param value {@link #code} (Identification of the condition, problem or diagnosis.) 960 */ 961 public Condition setCode(CodeableConcept value) { 962 this.code = value; 963 return this; 964 } 965 966 /** 967 * @return {@link #bodySite} (The anatomical location where this condition manifests itself.) 968 */ 969 public List<CodeableConcept> getBodySite() { 970 if (this.bodySite == null) 971 this.bodySite = new ArrayList<CodeableConcept>(); 972 return this.bodySite; 973 } 974 975 /** 976 * @return Returns a reference to <code>this</code> for easy method chaining 977 */ 978 public Condition setBodySite(List<CodeableConcept> theBodySite) { 979 this.bodySite = theBodySite; 980 return this; 981 } 982 983 public boolean hasBodySite() { 984 if (this.bodySite == null) 985 return false; 986 for (CodeableConcept item : this.bodySite) 987 if (!item.isEmpty()) 988 return true; 989 return false; 990 } 991 992 public CodeableConcept addBodySite() { //3 993 CodeableConcept t = new CodeableConcept(); 994 if (this.bodySite == null) 995 this.bodySite = new ArrayList<CodeableConcept>(); 996 this.bodySite.add(t); 997 return t; 998 } 999 1000 public Condition addBodySite(CodeableConcept t) { //3 1001 if (t == null) 1002 return this; 1003 if (this.bodySite == null) 1004 this.bodySite = new ArrayList<CodeableConcept>(); 1005 this.bodySite.add(t); 1006 return this; 1007 } 1008 1009 /** 1010 * @return The first repetition of repeating field {@link #bodySite}, creating it if it does not already exist 1011 */ 1012 public CodeableConcept getBodySiteFirstRep() { 1013 if (getBodySite().isEmpty()) { 1014 addBodySite(); 1015 } 1016 return getBodySite().get(0); 1017 } 1018 1019 /** 1020 * @return {@link #subject} (Indicates the patient or group who the condition record is associated with.) 1021 */ 1022 public Reference getSubject() { 1023 if (this.subject == null) 1024 if (Configuration.errorOnAutoCreate()) 1025 throw new Error("Attempt to auto-create Condition.subject"); 1026 else if (Configuration.doAutoCreate()) 1027 this.subject = new Reference(); // cc 1028 return this.subject; 1029 } 1030 1031 public boolean hasSubject() { 1032 return this.subject != null && !this.subject.isEmpty(); 1033 } 1034 1035 /** 1036 * @param value {@link #subject} (Indicates the patient or group who the condition record is associated with.) 1037 */ 1038 public Condition setSubject(Reference value) { 1039 this.subject = value; 1040 return this; 1041 } 1042 1043 /** 1044 * @return {@link #encounter} (The Encounter during which this Condition was created or to which the creation of this record is tightly associated.) 1045 */ 1046 public Reference getEncounter() { 1047 if (this.encounter == null) 1048 if (Configuration.errorOnAutoCreate()) 1049 throw new Error("Attempt to auto-create Condition.encounter"); 1050 else if (Configuration.doAutoCreate()) 1051 this.encounter = new Reference(); // cc 1052 return this.encounter; 1053 } 1054 1055 public boolean hasEncounter() { 1056 return this.encounter != null && !this.encounter.isEmpty(); 1057 } 1058 1059 /** 1060 * @param value {@link #encounter} (The Encounter during which this Condition was created or to which the creation of this record is tightly associated.) 1061 */ 1062 public Condition setEncounter(Reference value) { 1063 this.encounter = value; 1064 return this; 1065 } 1066 1067 /** 1068 * @return {@link #onset} (Estimated or actual date or date-time the condition began, in the opinion of the clinician.) 1069 */ 1070 public Type getOnset() { 1071 return this.onset; 1072 } 1073 1074 /** 1075 * @return {@link #onset} (Estimated or actual date or date-time the condition began, in the opinion of the clinician.) 1076 */ 1077 public DateTimeType getOnsetDateTimeType() throws FHIRException { 1078 if (this.onset == null) 1079 this.onset = new DateTimeType(); 1080 if (!(this.onset instanceof DateTimeType)) 1081 throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.onset.getClass().getName()+" was encountered"); 1082 return (DateTimeType) this.onset; 1083 } 1084 1085 public boolean hasOnsetDateTimeType() { 1086 return this != null && this.onset instanceof DateTimeType; 1087 } 1088 1089 /** 1090 * @return {@link #onset} (Estimated or actual date or date-time the condition began, in the opinion of the clinician.) 1091 */ 1092 public Age getOnsetAge() throws FHIRException { 1093 if (this.onset == null) 1094 this.onset = new Age(); 1095 if (!(this.onset instanceof Age)) 1096 throw new FHIRException("Type mismatch: the type Age was expected, but "+this.onset.getClass().getName()+" was encountered"); 1097 return (Age) this.onset; 1098 } 1099 1100 public boolean hasOnsetAge() { 1101 return this != null && this.onset instanceof Age; 1102 } 1103 1104 /** 1105 * @return {@link #onset} (Estimated or actual date or date-time the condition began, in the opinion of the clinician.) 1106 */ 1107 public Period getOnsetPeriod() throws FHIRException { 1108 if (this.onset == null) 1109 this.onset = new Period(); 1110 if (!(this.onset instanceof Period)) 1111 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.onset.getClass().getName()+" was encountered"); 1112 return (Period) this.onset; 1113 } 1114 1115 public boolean hasOnsetPeriod() { 1116 return this != null && this.onset instanceof Period; 1117 } 1118 1119 /** 1120 * @return {@link #onset} (Estimated or actual date or date-time the condition began, in the opinion of the clinician.) 1121 */ 1122 public Range getOnsetRange() throws FHIRException { 1123 if (this.onset == null) 1124 this.onset = new Range(); 1125 if (!(this.onset instanceof Range)) 1126 throw new FHIRException("Type mismatch: the type Range was expected, but "+this.onset.getClass().getName()+" was encountered"); 1127 return (Range) this.onset; 1128 } 1129 1130 public boolean hasOnsetRange() { 1131 return this != null && this.onset instanceof Range; 1132 } 1133 1134 /** 1135 * @return {@link #onset} (Estimated or actual date or date-time the condition began, in the opinion of the clinician.) 1136 */ 1137 public StringType getOnsetStringType() throws FHIRException { 1138 if (this.onset == null) 1139 this.onset = new StringType(); 1140 if (!(this.onset instanceof StringType)) 1141 throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.onset.getClass().getName()+" was encountered"); 1142 return (StringType) this.onset; 1143 } 1144 1145 public boolean hasOnsetStringType() { 1146 return this != null && this.onset instanceof StringType; 1147 } 1148 1149 public boolean hasOnset() { 1150 return this.onset != null && !this.onset.isEmpty(); 1151 } 1152 1153 /** 1154 * @param value {@link #onset} (Estimated or actual date or date-time the condition began, in the opinion of the clinician.) 1155 */ 1156 public Condition setOnset(Type value) { 1157 if (value != null && !(value instanceof DateTimeType || value instanceof Age || value instanceof Period || value instanceof Range || value instanceof StringType)) 1158 throw new Error("Not the right type for Condition.onset[x]: "+value.fhirType()); 1159 this.onset = value; 1160 return this; 1161 } 1162 1163 /** 1164 * @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.) 1165 */ 1166 public Type getAbatement() { 1167 return this.abatement; 1168 } 1169 1170 /** 1171 * @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.) 1172 */ 1173 public DateTimeType getAbatementDateTimeType() throws FHIRException { 1174 if (this.abatement == null) 1175 this.abatement = new DateTimeType(); 1176 if (!(this.abatement instanceof DateTimeType)) 1177 throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.abatement.getClass().getName()+" was encountered"); 1178 return (DateTimeType) this.abatement; 1179 } 1180 1181 public boolean hasAbatementDateTimeType() { 1182 return this != null && this.abatement instanceof DateTimeType; 1183 } 1184 1185 /** 1186 * @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.) 1187 */ 1188 public Age getAbatementAge() throws FHIRException { 1189 if (this.abatement == null) 1190 this.abatement = new Age(); 1191 if (!(this.abatement instanceof Age)) 1192 throw new FHIRException("Type mismatch: the type Age was expected, but "+this.abatement.getClass().getName()+" was encountered"); 1193 return (Age) this.abatement; 1194 } 1195 1196 public boolean hasAbatementAge() { 1197 return this != null && this.abatement instanceof Age; 1198 } 1199 1200 /** 1201 * @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.) 1202 */ 1203 public Period getAbatementPeriod() throws FHIRException { 1204 if (this.abatement == null) 1205 this.abatement = new Period(); 1206 if (!(this.abatement instanceof Period)) 1207 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.abatement.getClass().getName()+" was encountered"); 1208 return (Period) this.abatement; 1209 } 1210 1211 public boolean hasAbatementPeriod() { 1212 return this != null && this.abatement instanceof Period; 1213 } 1214 1215 /** 1216 * @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.) 1217 */ 1218 public Range getAbatementRange() throws FHIRException { 1219 if (this.abatement == null) 1220 this.abatement = new Range(); 1221 if (!(this.abatement instanceof Range)) 1222 throw new FHIRException("Type mismatch: the type Range was expected, but "+this.abatement.getClass().getName()+" was encountered"); 1223 return (Range) this.abatement; 1224 } 1225 1226 public boolean hasAbatementRange() { 1227 return this != null && this.abatement instanceof Range; 1228 } 1229 1230 /** 1231 * @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.) 1232 */ 1233 public StringType getAbatementStringType() throws FHIRException { 1234 if (this.abatement == null) 1235 this.abatement = new StringType(); 1236 if (!(this.abatement instanceof StringType)) 1237 throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.abatement.getClass().getName()+" was encountered"); 1238 return (StringType) this.abatement; 1239 } 1240 1241 public boolean hasAbatementStringType() { 1242 return this != null && this.abatement instanceof StringType; 1243 } 1244 1245 public boolean hasAbatement() { 1246 return this.abatement != null && !this.abatement.isEmpty(); 1247 } 1248 1249 /** 1250 * @param value {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.) 1251 */ 1252 public Condition setAbatement(Type value) { 1253 if (value != null && !(value instanceof DateTimeType || value instanceof Age || value instanceof Period || value instanceof Range || value instanceof StringType)) 1254 throw new Error("Not the right type for Condition.abatement[x]: "+value.fhirType()); 1255 this.abatement = value; 1256 return this; 1257 } 1258 1259 /** 1260 * @return {@link #recordedDate} (The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date.). This is the underlying object with id, value and extensions. The accessor "getRecordedDate" gives direct access to the value 1261 */ 1262 public DateTimeType getRecordedDateElement() { 1263 if (this.recordedDate == null) 1264 if (Configuration.errorOnAutoCreate()) 1265 throw new Error("Attempt to auto-create Condition.recordedDate"); 1266 else if (Configuration.doAutoCreate()) 1267 this.recordedDate = new DateTimeType(); // bb 1268 return this.recordedDate; 1269 } 1270 1271 public boolean hasRecordedDateElement() { 1272 return this.recordedDate != null && !this.recordedDate.isEmpty(); 1273 } 1274 1275 public boolean hasRecordedDate() { 1276 return this.recordedDate != null && !this.recordedDate.isEmpty(); 1277 } 1278 1279 /** 1280 * @param value {@link #recordedDate} (The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date.). This is the underlying object with id, value and extensions. The accessor "getRecordedDate" gives direct access to the value 1281 */ 1282 public Condition setRecordedDateElement(DateTimeType value) { 1283 this.recordedDate = value; 1284 return this; 1285 } 1286 1287 /** 1288 * @return The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date. 1289 */ 1290 public Date getRecordedDate() { 1291 return this.recordedDate == null ? null : this.recordedDate.getValue(); 1292 } 1293 1294 /** 1295 * @param value The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date. 1296 */ 1297 public Condition setRecordedDate(Date value) { 1298 if (value == null) 1299 this.recordedDate = null; 1300 else { 1301 if (this.recordedDate == null) 1302 this.recordedDate = new DateTimeType(); 1303 this.recordedDate.setValue(value); 1304 } 1305 return this; 1306 } 1307 1308 /** 1309 * @return {@link #recorder} (Individual who recorded the record and takes responsibility for its content.) 1310 */ 1311 public Reference getRecorder() { 1312 if (this.recorder == null) 1313 if (Configuration.errorOnAutoCreate()) 1314 throw new Error("Attempt to auto-create Condition.recorder"); 1315 else if (Configuration.doAutoCreate()) 1316 this.recorder = new Reference(); // cc 1317 return this.recorder; 1318 } 1319 1320 public boolean hasRecorder() { 1321 return this.recorder != null && !this.recorder.isEmpty(); 1322 } 1323 1324 /** 1325 * @param value {@link #recorder} (Individual who recorded the record and takes responsibility for its content.) 1326 */ 1327 public Condition setRecorder(Reference value) { 1328 this.recorder = value; 1329 return this; 1330 } 1331 1332 /** 1333 * @return {@link #asserter} (Individual or device that is making the condition statement.) 1334 */ 1335 public Reference getAsserter() { 1336 if (this.asserter == null) 1337 if (Configuration.errorOnAutoCreate()) 1338 throw new Error("Attempt to auto-create Condition.asserter"); 1339 else if (Configuration.doAutoCreate()) 1340 this.asserter = new Reference(); // cc 1341 return this.asserter; 1342 } 1343 1344 public boolean hasAsserter() { 1345 return this.asserter != null && !this.asserter.isEmpty(); 1346 } 1347 1348 /** 1349 * @param value {@link #asserter} (Individual or device that is making the condition statement.) 1350 */ 1351 public Condition setAsserter(Reference value) { 1352 this.asserter = value; 1353 return this; 1354 } 1355 1356 /** 1357 * @return {@link #stage} (Clinical stage or grade of a condition. May include formal severity assessments.) 1358 */ 1359 public List<ConditionStageComponent> getStage() { 1360 if (this.stage == null) 1361 this.stage = new ArrayList<ConditionStageComponent>(); 1362 return this.stage; 1363 } 1364 1365 /** 1366 * @return Returns a reference to <code>this</code> for easy method chaining 1367 */ 1368 public Condition setStage(List<ConditionStageComponent> theStage) { 1369 this.stage = theStage; 1370 return this; 1371 } 1372 1373 public boolean hasStage() { 1374 if (this.stage == null) 1375 return false; 1376 for (ConditionStageComponent item : this.stage) 1377 if (!item.isEmpty()) 1378 return true; 1379 return false; 1380 } 1381 1382 public ConditionStageComponent addStage() { //3 1383 ConditionStageComponent t = new ConditionStageComponent(); 1384 if (this.stage == null) 1385 this.stage = new ArrayList<ConditionStageComponent>(); 1386 this.stage.add(t); 1387 return t; 1388 } 1389 1390 public Condition addStage(ConditionStageComponent t) { //3 1391 if (t == null) 1392 return this; 1393 if (this.stage == null) 1394 this.stage = new ArrayList<ConditionStageComponent>(); 1395 this.stage.add(t); 1396 return this; 1397 } 1398 1399 /** 1400 * @return The first repetition of repeating field {@link #stage}, creating it if it does not already exist 1401 */ 1402 public ConditionStageComponent getStageFirstRep() { 1403 if (getStage().isEmpty()) { 1404 addStage(); 1405 } 1406 return getStage().get(0); 1407 } 1408 1409 /** 1410 * @return {@link #evidence} (Supporting evidence / manifestations that are the basis of the Condition's verification status, such as evidence that confirmed or refuted the condition.) 1411 */ 1412 public List<ConditionEvidenceComponent> getEvidence() { 1413 if (this.evidence == null) 1414 this.evidence = new ArrayList<ConditionEvidenceComponent>(); 1415 return this.evidence; 1416 } 1417 1418 /** 1419 * @return Returns a reference to <code>this</code> for easy method chaining 1420 */ 1421 public Condition setEvidence(List<ConditionEvidenceComponent> theEvidence) { 1422 this.evidence = theEvidence; 1423 return this; 1424 } 1425 1426 public boolean hasEvidence() { 1427 if (this.evidence == null) 1428 return false; 1429 for (ConditionEvidenceComponent item : this.evidence) 1430 if (!item.isEmpty()) 1431 return true; 1432 return false; 1433 } 1434 1435 public ConditionEvidenceComponent addEvidence() { //3 1436 ConditionEvidenceComponent t = new ConditionEvidenceComponent(); 1437 if (this.evidence == null) 1438 this.evidence = new ArrayList<ConditionEvidenceComponent>(); 1439 this.evidence.add(t); 1440 return t; 1441 } 1442 1443 public Condition addEvidence(ConditionEvidenceComponent t) { //3 1444 if (t == null) 1445 return this; 1446 if (this.evidence == null) 1447 this.evidence = new ArrayList<ConditionEvidenceComponent>(); 1448 this.evidence.add(t); 1449 return this; 1450 } 1451 1452 /** 1453 * @return The first repetition of repeating field {@link #evidence}, creating it if it does not already exist 1454 */ 1455 public ConditionEvidenceComponent getEvidenceFirstRep() { 1456 if (getEvidence().isEmpty()) { 1457 addEvidence(); 1458 } 1459 return getEvidence().get(0); 1460 } 1461 1462 /** 1463 * @return {@link #note} (Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis.) 1464 */ 1465 public List<Annotation> getNote() { 1466 if (this.note == null) 1467 this.note = new ArrayList<Annotation>(); 1468 return this.note; 1469 } 1470 1471 /** 1472 * @return Returns a reference to <code>this</code> for easy method chaining 1473 */ 1474 public Condition setNote(List<Annotation> theNote) { 1475 this.note = theNote; 1476 return this; 1477 } 1478 1479 public boolean hasNote() { 1480 if (this.note == null) 1481 return false; 1482 for (Annotation item : this.note) 1483 if (!item.isEmpty()) 1484 return true; 1485 return false; 1486 } 1487 1488 public Annotation addNote() { //3 1489 Annotation t = new Annotation(); 1490 if (this.note == null) 1491 this.note = new ArrayList<Annotation>(); 1492 this.note.add(t); 1493 return t; 1494 } 1495 1496 public Condition addNote(Annotation t) { //3 1497 if (t == null) 1498 return this; 1499 if (this.note == null) 1500 this.note = new ArrayList<Annotation>(); 1501 this.note.add(t); 1502 return this; 1503 } 1504 1505 /** 1506 * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist 1507 */ 1508 public Annotation getNoteFirstRep() { 1509 if (getNote().isEmpty()) { 1510 addNote(); 1511 } 1512 return getNote().get(0); 1513 } 1514 1515 protected void listChildren(List<Property> children) { 1516 super.listChildren(children); 1517 children.add(new Property("identifier", "Identifier", "Business identifiers assigned to this condition by the performer or other systems which remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier)); 1518 children.add(new Property("clinicalStatus", "CodeableConcept", "The clinical status of the condition.", 0, 1, clinicalStatus)); 1519 children.add(new Property("verificationStatus", "CodeableConcept", "The verification status to support the clinical status of the condition.", 0, 1, verificationStatus)); 1520 children.add(new Property("category", "CodeableConcept", "A category assigned to the condition.", 0, java.lang.Integer.MAX_VALUE, category)); 1521 children.add(new Property("severity", "CodeableConcept", "A subjective assessment of the severity of the condition as evaluated by the clinician.", 0, 1, severity)); 1522 children.add(new Property("code", "CodeableConcept", "Identification of the condition, problem or diagnosis.", 0, 1, code)); 1523 children.add(new Property("bodySite", "CodeableConcept", "The anatomical location where this condition manifests itself.", 0, java.lang.Integer.MAX_VALUE, bodySite)); 1524 children.add(new Property("subject", "Reference(Patient|Group)", "Indicates the patient or group who the condition record is associated with.", 0, 1, subject)); 1525 children.add(new Property("encounter", "Reference(Encounter)", "The Encounter during which this Condition was created or to which the creation of this record is tightly associated.", 0, 1, encounter)); 1526 children.add(new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time the condition began, in the opinion of the clinician.", 0, 1, onset)); 1527 children.add(new Property("abatement[x]", "dateTime|Age|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement)); 1528 children.add(new Property("recordedDate", "dateTime", "The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date.", 0, 1, recordedDate)); 1529 children.add(new Property("recorder", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson)", "Individual who recorded the record and takes responsibility for its content.", 0, 1, recorder)); 1530 children.add(new Property("asserter", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson|Device)", "Individual or device that is making the condition statement.", 0, 1, asserter)); 1531 children.add(new Property("stage", "", "Clinical stage or grade of a condition. May include formal severity assessments.", 0, java.lang.Integer.MAX_VALUE, stage)); 1532 children.add(new Property("evidence", "", "Supporting evidence / manifestations that are the basis of the Condition's verification status, such as evidence that confirmed or refuted the condition.", 0, java.lang.Integer.MAX_VALUE, evidence)); 1533 children.add(new Property("note", "Annotation", "Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis.", 0, java.lang.Integer.MAX_VALUE, note)); 1534 } 1535 1536 @Override 1537 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1538 switch (_hash) { 1539 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifiers assigned to this condition by the performer or other systems which remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier); 1540 case -462853915: /*clinicalStatus*/ return new Property("clinicalStatus", "CodeableConcept", "The clinical status of the condition.", 0, 1, clinicalStatus); 1541 case -842509843: /*verificationStatus*/ return new Property("verificationStatus", "CodeableConcept", "The verification status to support the clinical status of the condition.", 0, 1, verificationStatus); 1542 case 50511102: /*category*/ return new Property("category", "CodeableConcept", "A category assigned to the condition.", 0, java.lang.Integer.MAX_VALUE, category); 1543 case 1478300413: /*severity*/ return new Property("severity", "CodeableConcept", "A subjective assessment of the severity of the condition as evaluated by the clinician.", 0, 1, severity); 1544 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Identification of the condition, problem or diagnosis.", 0, 1, code); 1545 case 1702620169: /*bodySite*/ return new Property("bodySite", "CodeableConcept", "The anatomical location where this condition manifests itself.", 0, java.lang.Integer.MAX_VALUE, bodySite); 1546 case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group)", "Indicates the patient or group who the condition record is associated with.", 0, 1, subject); 1547 case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "The Encounter during which this Condition was created or to which the creation of this record is tightly associated.", 0, 1, encounter); 1548 case -1886216323: /*onset[x]*/ return new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time the condition began, in the opinion of the clinician.", 0, 1, onset); 1549 case 105901603: /*onset*/ return new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time the condition began, in the opinion of the clinician.", 0, 1, onset); 1550 case -1701663010: /*onsetDateTime*/ return new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time the condition began, in the opinion of the clinician.", 0, 1, onset); 1551 case -1886241828: /*onsetAge*/ return new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time the condition began, in the opinion of the clinician.", 0, 1, onset); 1552 case -1545082428: /*onsetPeriod*/ return new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time the condition began, in the opinion of the clinician.", 0, 1, onset); 1553 case -186664742: /*onsetRange*/ return new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time the condition began, in the opinion of the clinician.", 0, 1, onset); 1554 case -1445342188: /*onsetString*/ return new Property("onset[x]", "dateTime|Age|Period|Range|string", "Estimated or actual date or date-time the condition began, in the opinion of the clinician.", 0, 1, onset); 1555 case -584196495: /*abatement[x]*/ return new Property("abatement[x]", "dateTime|Age|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement); 1556 case -921554001: /*abatement*/ return new Property("abatement[x]", "dateTime|Age|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement); 1557 case 44869738: /*abatementDateTime*/ return new Property("abatement[x]", "dateTime|Age|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement); 1558 case -584222000: /*abatementAge*/ return new Property("abatement[x]", "dateTime|Age|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement); 1559 case -922036656: /*abatementPeriod*/ return new Property("abatement[x]", "dateTime|Age|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement); 1560 case 1218906830: /*abatementRange*/ return new Property("abatement[x]", "dateTime|Age|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement); 1561 case -822296416: /*abatementString*/ return new Property("abatement[x]", "dateTime|Age|Period|Range|string", "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.", 0, 1, abatement); 1562 case -1952893826: /*recordedDate*/ return new Property("recordedDate", "dateTime", "The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date.", 0, 1, recordedDate); 1563 case -799233858: /*recorder*/ return new Property("recorder", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson)", "Individual who recorded the record and takes responsibility for its content.", 0, 1, recorder); 1564 case -373242253: /*asserter*/ return new Property("asserter", "Reference(Practitioner|PractitionerRole|Patient|RelatedPerson|Device)", "Individual or device that is making the condition statement.", 0, 1, asserter); 1565 case 109757182: /*stage*/ return new Property("stage", "", "Clinical stage or grade of a condition. May include formal severity assessments.", 0, java.lang.Integer.MAX_VALUE, stage); 1566 case 382967383: /*evidence*/ return new Property("evidence", "", "Supporting evidence / manifestations that are the basis of the Condition's verification status, such as evidence that confirmed or refuted the condition.", 0, java.lang.Integer.MAX_VALUE, evidence); 1567 case 3387378: /*note*/ return new Property("note", "Annotation", "Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis.", 0, java.lang.Integer.MAX_VALUE, note); 1568 default: return super.getNamedProperty(_hash, _name, _checkValid); 1569 } 1570 1571 } 1572 1573 @Override 1574 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1575 switch (hash) { 1576 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 1577 case -462853915: /*clinicalStatus*/ return this.clinicalStatus == null ? new Base[0] : new Base[] {this.clinicalStatus}; // CodeableConcept 1578 case -842509843: /*verificationStatus*/ return this.verificationStatus == null ? new Base[0] : new Base[] {this.verificationStatus}; // CodeableConcept 1579 case 50511102: /*category*/ return this.category == null ? new Base[0] : this.category.toArray(new Base[this.category.size()]); // CodeableConcept 1580 case 1478300413: /*severity*/ return this.severity == null ? new Base[0] : new Base[] {this.severity}; // CodeableConcept 1581 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 1582 case 1702620169: /*bodySite*/ return this.bodySite == null ? new Base[0] : this.bodySite.toArray(new Base[this.bodySite.size()]); // CodeableConcept 1583 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 1584 case 1524132147: /*encounter*/ return this.encounter == null ? new Base[0] : new Base[] {this.encounter}; // Reference 1585 case 105901603: /*onset*/ return this.onset == null ? new Base[0] : new Base[] {this.onset}; // Type 1586 case -921554001: /*abatement*/ return this.abatement == null ? new Base[0] : new Base[] {this.abatement}; // Type 1587 case -1952893826: /*recordedDate*/ return this.recordedDate == null ? new Base[0] : new Base[] {this.recordedDate}; // DateTimeType 1588 case -799233858: /*recorder*/ return this.recorder == null ? new Base[0] : new Base[] {this.recorder}; // Reference 1589 case -373242253: /*asserter*/ return this.asserter == null ? new Base[0] : new Base[] {this.asserter}; // Reference 1590 case 109757182: /*stage*/ return this.stage == null ? new Base[0] : this.stage.toArray(new Base[this.stage.size()]); // ConditionStageComponent 1591 case 382967383: /*evidence*/ return this.evidence == null ? new Base[0] : this.evidence.toArray(new Base[this.evidence.size()]); // ConditionEvidenceComponent 1592 case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation 1593 default: return super.getProperty(hash, name, checkValid); 1594 } 1595 1596 } 1597 1598 @Override 1599 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1600 switch (hash) { 1601 case -1618432855: // identifier 1602 this.getIdentifier().add(castToIdentifier(value)); // Identifier 1603 return value; 1604 case -462853915: // clinicalStatus 1605 this.clinicalStatus = castToCodeableConcept(value); // CodeableConcept 1606 return value; 1607 case -842509843: // verificationStatus 1608 this.verificationStatus = castToCodeableConcept(value); // CodeableConcept 1609 return value; 1610 case 50511102: // category 1611 this.getCategory().add(castToCodeableConcept(value)); // CodeableConcept 1612 return value; 1613 case 1478300413: // severity 1614 this.severity = castToCodeableConcept(value); // CodeableConcept 1615 return value; 1616 case 3059181: // code 1617 this.code = castToCodeableConcept(value); // CodeableConcept 1618 return value; 1619 case 1702620169: // bodySite 1620 this.getBodySite().add(castToCodeableConcept(value)); // CodeableConcept 1621 return value; 1622 case -1867885268: // subject 1623 this.subject = castToReference(value); // Reference 1624 return value; 1625 case 1524132147: // encounter 1626 this.encounter = castToReference(value); // Reference 1627 return value; 1628 case 105901603: // onset 1629 this.onset = castToType(value); // Type 1630 return value; 1631 case -921554001: // abatement 1632 this.abatement = castToType(value); // Type 1633 return value; 1634 case -1952893826: // recordedDate 1635 this.recordedDate = castToDateTime(value); // DateTimeType 1636 return value; 1637 case -799233858: // recorder 1638 this.recorder = castToReference(value); // Reference 1639 return value; 1640 case -373242253: // asserter 1641 this.asserter = castToReference(value); // Reference 1642 return value; 1643 case 109757182: // stage 1644 this.getStage().add((ConditionStageComponent) value); // ConditionStageComponent 1645 return value; 1646 case 382967383: // evidence 1647 this.getEvidence().add((ConditionEvidenceComponent) value); // ConditionEvidenceComponent 1648 return value; 1649 case 3387378: // note 1650 this.getNote().add(castToAnnotation(value)); // Annotation 1651 return value; 1652 default: return super.setProperty(hash, name, value); 1653 } 1654 1655 } 1656 1657 @Override 1658 public Base setProperty(String name, Base value) throws FHIRException { 1659 if (name.equals("identifier")) { 1660 this.getIdentifier().add(castToIdentifier(value)); 1661 } else if (name.equals("clinicalStatus")) { 1662 this.clinicalStatus = castToCodeableConcept(value); // CodeableConcept 1663 } else if (name.equals("verificationStatus")) { 1664 this.verificationStatus = castToCodeableConcept(value); // CodeableConcept 1665 } else if (name.equals("category")) { 1666 this.getCategory().add(castToCodeableConcept(value)); 1667 } else if (name.equals("severity")) { 1668 this.severity = castToCodeableConcept(value); // CodeableConcept 1669 } else if (name.equals("code")) { 1670 this.code = castToCodeableConcept(value); // CodeableConcept 1671 } else if (name.equals("bodySite")) { 1672 this.getBodySite().add(castToCodeableConcept(value)); 1673 } else if (name.equals("subject")) { 1674 this.subject = castToReference(value); // Reference 1675 } else if (name.equals("encounter")) { 1676 this.encounter = castToReference(value); // Reference 1677 } else if (name.equals("onset[x]")) { 1678 this.onset = castToType(value); // Type 1679 } else if (name.equals("abatement[x]")) { 1680 this.abatement = castToType(value); // Type 1681 } else if (name.equals("recordedDate")) { 1682 this.recordedDate = castToDateTime(value); // DateTimeType 1683 } else if (name.equals("recorder")) { 1684 this.recorder = castToReference(value); // Reference 1685 } else if (name.equals("asserter")) { 1686 this.asserter = castToReference(value); // Reference 1687 } else if (name.equals("stage")) { 1688 this.getStage().add((ConditionStageComponent) value); 1689 } else if (name.equals("evidence")) { 1690 this.getEvidence().add((ConditionEvidenceComponent) value); 1691 } else if (name.equals("note")) { 1692 this.getNote().add(castToAnnotation(value)); 1693 } else 1694 return super.setProperty(name, value); 1695 return value; 1696 } 1697 1698 @Override 1699 public Base makeProperty(int hash, String name) throws FHIRException { 1700 switch (hash) { 1701 case -1618432855: return addIdentifier(); 1702 case -462853915: return getClinicalStatus(); 1703 case -842509843: return getVerificationStatus(); 1704 case 50511102: return addCategory(); 1705 case 1478300413: return getSeverity(); 1706 case 3059181: return getCode(); 1707 case 1702620169: return addBodySite(); 1708 case -1867885268: return getSubject(); 1709 case 1524132147: return getEncounter(); 1710 case -1886216323: return getOnset(); 1711 case 105901603: return getOnset(); 1712 case -584196495: return getAbatement(); 1713 case -921554001: return getAbatement(); 1714 case -1952893826: return getRecordedDateElement(); 1715 case -799233858: return getRecorder(); 1716 case -373242253: return getAsserter(); 1717 case 109757182: return addStage(); 1718 case 382967383: return addEvidence(); 1719 case 3387378: return addNote(); 1720 default: return super.makeProperty(hash, name); 1721 } 1722 1723 } 1724 1725 @Override 1726 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1727 switch (hash) { 1728 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 1729 case -462853915: /*clinicalStatus*/ return new String[] {"CodeableConcept"}; 1730 case -842509843: /*verificationStatus*/ return new String[] {"CodeableConcept"}; 1731 case 50511102: /*category*/ return new String[] {"CodeableConcept"}; 1732 case 1478300413: /*severity*/ return new String[] {"CodeableConcept"}; 1733 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 1734 case 1702620169: /*bodySite*/ return new String[] {"CodeableConcept"}; 1735 case -1867885268: /*subject*/ return new String[] {"Reference"}; 1736 case 1524132147: /*encounter*/ return new String[] {"Reference"}; 1737 case 105901603: /*onset*/ return new String[] {"dateTime", "Age", "Period", "Range", "string"}; 1738 case -921554001: /*abatement*/ return new String[] {"dateTime", "Age", "Period", "Range", "string"}; 1739 case -1952893826: /*recordedDate*/ return new String[] {"dateTime"}; 1740 case -799233858: /*recorder*/ return new String[] {"Reference"}; 1741 case -373242253: /*asserter*/ return new String[] {"Reference"}; 1742 case 109757182: /*stage*/ return new String[] {}; 1743 case 382967383: /*evidence*/ return new String[] {}; 1744 case 3387378: /*note*/ return new String[] {"Annotation"}; 1745 default: return super.getTypesForProperty(hash, name); 1746 } 1747 1748 } 1749 1750 @Override 1751 public Base addChild(String name) throws FHIRException { 1752 if (name.equals("identifier")) { 1753 return addIdentifier(); 1754 } 1755 else if (name.equals("clinicalStatus")) { 1756 this.clinicalStatus = new CodeableConcept(); 1757 return this.clinicalStatus; 1758 } 1759 else if (name.equals("verificationStatus")) { 1760 this.verificationStatus = new CodeableConcept(); 1761 return this.verificationStatus; 1762 } 1763 else if (name.equals("category")) { 1764 return addCategory(); 1765 } 1766 else if (name.equals("severity")) { 1767 this.severity = new CodeableConcept(); 1768 return this.severity; 1769 } 1770 else if (name.equals("code")) { 1771 this.code = new CodeableConcept(); 1772 return this.code; 1773 } 1774 else if (name.equals("bodySite")) { 1775 return addBodySite(); 1776 } 1777 else if (name.equals("subject")) { 1778 this.subject = new Reference(); 1779 return this.subject; 1780 } 1781 else if (name.equals("encounter")) { 1782 this.encounter = new Reference(); 1783 return this.encounter; 1784 } 1785 else if (name.equals("onsetDateTime")) { 1786 this.onset = new DateTimeType(); 1787 return this.onset; 1788 } 1789 else if (name.equals("onsetAge")) { 1790 this.onset = new Age(); 1791 return this.onset; 1792 } 1793 else if (name.equals("onsetPeriod")) { 1794 this.onset = new Period(); 1795 return this.onset; 1796 } 1797 else if (name.equals("onsetRange")) { 1798 this.onset = new Range(); 1799 return this.onset; 1800 } 1801 else if (name.equals("onsetString")) { 1802 this.onset = new StringType(); 1803 return this.onset; 1804 } 1805 else if (name.equals("abatementDateTime")) { 1806 this.abatement = new DateTimeType(); 1807 return this.abatement; 1808 } 1809 else if (name.equals("abatementAge")) { 1810 this.abatement = new Age(); 1811 return this.abatement; 1812 } 1813 else if (name.equals("abatementPeriod")) { 1814 this.abatement = new Period(); 1815 return this.abatement; 1816 } 1817 else if (name.equals("abatementRange")) { 1818 this.abatement = new Range(); 1819 return this.abatement; 1820 } 1821 else if (name.equals("abatementString")) { 1822 this.abatement = new StringType(); 1823 return this.abatement; 1824 } 1825 else if (name.equals("recordedDate")) { 1826 throw new FHIRException("Cannot call addChild on a primitive type Condition.recordedDate"); 1827 } 1828 else if (name.equals("recorder")) { 1829 this.recorder = new Reference(); 1830 return this.recorder; 1831 } 1832 else if (name.equals("asserter")) { 1833 this.asserter = new Reference(); 1834 return this.asserter; 1835 } 1836 else if (name.equals("stage")) { 1837 return addStage(); 1838 } 1839 else if (name.equals("evidence")) { 1840 return addEvidence(); 1841 } 1842 else if (name.equals("note")) { 1843 return addNote(); 1844 } 1845 else 1846 return super.addChild(name); 1847 } 1848 1849 public String fhirType() { 1850 return "Condition"; 1851 1852 } 1853 1854 public Condition copy() { 1855 Condition dst = new Condition(); 1856 copyValues(dst); 1857 return dst; 1858 } 1859 1860 public void copyValues(Condition dst) { 1861 super.copyValues(dst); 1862 if (identifier != null) { 1863 dst.identifier = new ArrayList<Identifier>(); 1864 for (Identifier i : identifier) 1865 dst.identifier.add(i.copy()); 1866 }; 1867 dst.clinicalStatus = clinicalStatus == null ? null : clinicalStatus.copy(); 1868 dst.verificationStatus = verificationStatus == null ? null : verificationStatus.copy(); 1869 if (category != null) { 1870 dst.category = new ArrayList<CodeableConcept>(); 1871 for (CodeableConcept i : category) 1872 dst.category.add(i.copy()); 1873 }; 1874 dst.severity = severity == null ? null : severity.copy(); 1875 dst.code = code == null ? null : code.copy(); 1876 if (bodySite != null) { 1877 dst.bodySite = new ArrayList<CodeableConcept>(); 1878 for (CodeableConcept i : bodySite) 1879 dst.bodySite.add(i.copy()); 1880 }; 1881 dst.subject = subject == null ? null : subject.copy(); 1882 dst.encounter = encounter == null ? null : encounter.copy(); 1883 dst.onset = onset == null ? null : onset.copy(); 1884 dst.abatement = abatement == null ? null : abatement.copy(); 1885 dst.recordedDate = recordedDate == null ? null : recordedDate.copy(); 1886 dst.recorder = recorder == null ? null : recorder.copy(); 1887 dst.asserter = asserter == null ? null : asserter.copy(); 1888 if (stage != null) { 1889 dst.stage = new ArrayList<ConditionStageComponent>(); 1890 for (ConditionStageComponent i : stage) 1891 dst.stage.add(i.copy()); 1892 }; 1893 if (evidence != null) { 1894 dst.evidence = new ArrayList<ConditionEvidenceComponent>(); 1895 for (ConditionEvidenceComponent i : evidence) 1896 dst.evidence.add(i.copy()); 1897 }; 1898 if (note != null) { 1899 dst.note = new ArrayList<Annotation>(); 1900 for (Annotation i : note) 1901 dst.note.add(i.copy()); 1902 }; 1903 } 1904 1905 protected Condition typedCopy() { 1906 return copy(); 1907 } 1908 1909 @Override 1910 public boolean equalsDeep(Base other_) { 1911 if (!super.equalsDeep(other_)) 1912 return false; 1913 if (!(other_ instanceof Condition)) 1914 return false; 1915 Condition o = (Condition) other_; 1916 return compareDeep(identifier, o.identifier, true) && compareDeep(clinicalStatus, o.clinicalStatus, true) 1917 && compareDeep(verificationStatus, o.verificationStatus, true) && compareDeep(category, o.category, true) 1918 && compareDeep(severity, o.severity, true) && compareDeep(code, o.code, true) && compareDeep(bodySite, o.bodySite, true) 1919 && compareDeep(subject, o.subject, true) && compareDeep(encounter, o.encounter, true) && compareDeep(onset, o.onset, true) 1920 && compareDeep(abatement, o.abatement, true) && compareDeep(recordedDate, o.recordedDate, true) 1921 && compareDeep(recorder, o.recorder, true) && compareDeep(asserter, o.asserter, true) && compareDeep(stage, o.stage, true) 1922 && compareDeep(evidence, o.evidence, true) && compareDeep(note, o.note, true); 1923 } 1924 1925 @Override 1926 public boolean equalsShallow(Base other_) { 1927 if (!super.equalsShallow(other_)) 1928 return false; 1929 if (!(other_ instanceof Condition)) 1930 return false; 1931 Condition o = (Condition) other_; 1932 return compareValues(recordedDate, o.recordedDate, true); 1933 } 1934 1935 public boolean isEmpty() { 1936 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, clinicalStatus 1937 , verificationStatus, category, severity, code, bodySite, subject, encounter, onset 1938 , abatement, recordedDate, recorder, asserter, stage, evidence, note); 1939 } 1940 1941 @Override 1942 public ResourceType getResourceType() { 1943 return ResourceType.Condition; 1944 } 1945 1946 /** 1947 * Search parameter: <b>severity</b> 1948 * <p> 1949 * Description: <b>The severity of the condition</b><br> 1950 * Type: <b>token</b><br> 1951 * Path: <b>Condition.severity</b><br> 1952 * </p> 1953 */ 1954 @SearchParamDefinition(name="severity", path="Condition.severity", description="The severity of the condition", type="token" ) 1955 public static final String SP_SEVERITY = "severity"; 1956 /** 1957 * <b>Fluent Client</b> search parameter constant for <b>severity</b> 1958 * <p> 1959 * Description: <b>The severity of the condition</b><br> 1960 * Type: <b>token</b><br> 1961 * Path: <b>Condition.severity</b><br> 1962 * </p> 1963 */ 1964 public static final ca.uhn.fhir.rest.gclient.TokenClientParam SEVERITY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SEVERITY); 1965 1966 /** 1967 * Search parameter: <b>evidence-detail</b> 1968 * <p> 1969 * Description: <b>Supporting information found elsewhere</b><br> 1970 * Type: <b>reference</b><br> 1971 * Path: <b>Condition.evidence.detail</b><br> 1972 * </p> 1973 */ 1974 @SearchParamDefinition(name="evidence-detail", path="Condition.evidence.detail", description="Supporting information found elsewhere", type="reference" ) 1975 public static final String SP_EVIDENCE_DETAIL = "evidence-detail"; 1976 /** 1977 * <b>Fluent Client</b> search parameter constant for <b>evidence-detail</b> 1978 * <p> 1979 * Description: <b>Supporting information found elsewhere</b><br> 1980 * Type: <b>reference</b><br> 1981 * Path: <b>Condition.evidence.detail</b><br> 1982 * </p> 1983 */ 1984 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam EVIDENCE_DETAIL = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_EVIDENCE_DETAIL); 1985 1986/** 1987 * Constant for fluent queries to be used to add include statements. Specifies 1988 * the path value of "<b>Condition:evidence-detail</b>". 1989 */ 1990 public static final ca.uhn.fhir.model.api.Include INCLUDE_EVIDENCE_DETAIL = new ca.uhn.fhir.model.api.Include("Condition:evidence-detail").toLocked(); 1991 1992 /** 1993 * Search parameter: <b>identifier</b> 1994 * <p> 1995 * Description: <b>A unique identifier of the condition record</b><br> 1996 * Type: <b>token</b><br> 1997 * Path: <b>Condition.identifier</b><br> 1998 * </p> 1999 */ 2000 @SearchParamDefinition(name="identifier", path="Condition.identifier", description="A unique identifier of the condition record", type="token" ) 2001 public static final String SP_IDENTIFIER = "identifier"; 2002 /** 2003 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 2004 * <p> 2005 * Description: <b>A unique identifier of the condition record</b><br> 2006 * Type: <b>token</b><br> 2007 * Path: <b>Condition.identifier</b><br> 2008 * </p> 2009 */ 2010 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 2011 2012 /** 2013 * Search parameter: <b>onset-info</b> 2014 * <p> 2015 * Description: <b>Onsets as a string</b><br> 2016 * Type: <b>string</b><br> 2017 * Path: <b>Condition.onset[x]</b><br> 2018 * </p> 2019 */ 2020 @SearchParamDefinition(name="onset-info", path="Condition.onset.as(string)", description="Onsets as a string", type="string" ) 2021 public static final String SP_ONSET_INFO = "onset-info"; 2022 /** 2023 * <b>Fluent Client</b> search parameter constant for <b>onset-info</b> 2024 * <p> 2025 * Description: <b>Onsets as a string</b><br> 2026 * Type: <b>string</b><br> 2027 * Path: <b>Condition.onset[x]</b><br> 2028 * </p> 2029 */ 2030 public static final ca.uhn.fhir.rest.gclient.StringClientParam ONSET_INFO = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ONSET_INFO); 2031 2032 /** 2033 * Search parameter: <b>recorded-date</b> 2034 * <p> 2035 * Description: <b>Date record was first recorded</b><br> 2036 * Type: <b>date</b><br> 2037 * Path: <b>Condition.recordedDate</b><br> 2038 * </p> 2039 */ 2040 @SearchParamDefinition(name="recorded-date", path="Condition.recordedDate", description="Date record was first recorded", type="date" ) 2041 public static final String SP_RECORDED_DATE = "recorded-date"; 2042 /** 2043 * <b>Fluent Client</b> search parameter constant for <b>recorded-date</b> 2044 * <p> 2045 * Description: <b>Date record was first recorded</b><br> 2046 * Type: <b>date</b><br> 2047 * Path: <b>Condition.recordedDate</b><br> 2048 * </p> 2049 */ 2050 public static final ca.uhn.fhir.rest.gclient.DateClientParam RECORDED_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_RECORDED_DATE); 2051 2052 /** 2053 * Search parameter: <b>code</b> 2054 * <p> 2055 * Description: <b>Code for the condition</b><br> 2056 * Type: <b>token</b><br> 2057 * Path: <b>Condition.code</b><br> 2058 * </p> 2059 */ 2060 @SearchParamDefinition(name="code", path="Condition.code", description="Code for the condition", type="token" ) 2061 public static final String SP_CODE = "code"; 2062 /** 2063 * <b>Fluent Client</b> search parameter constant for <b>code</b> 2064 * <p> 2065 * Description: <b>Code for the condition</b><br> 2066 * Type: <b>token</b><br> 2067 * Path: <b>Condition.code</b><br> 2068 * </p> 2069 */ 2070 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE); 2071 2072 /** 2073 * Search parameter: <b>evidence</b> 2074 * <p> 2075 * Description: <b>Manifestation/symptom</b><br> 2076 * Type: <b>token</b><br> 2077 * Path: <b>Condition.evidence.code</b><br> 2078 * </p> 2079 */ 2080 @SearchParamDefinition(name="evidence", path="Condition.evidence.code", description="Manifestation/symptom", type="token" ) 2081 public static final String SP_EVIDENCE = "evidence"; 2082 /** 2083 * <b>Fluent Client</b> search parameter constant for <b>evidence</b> 2084 * <p> 2085 * Description: <b>Manifestation/symptom</b><br> 2086 * Type: <b>token</b><br> 2087 * Path: <b>Condition.evidence.code</b><br> 2088 * </p> 2089 */ 2090 public static final ca.uhn.fhir.rest.gclient.TokenClientParam EVIDENCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EVIDENCE); 2091 2092 /** 2093 * Search parameter: <b>subject</b> 2094 * <p> 2095 * Description: <b>Who has the condition?</b><br> 2096 * Type: <b>reference</b><br> 2097 * Path: <b>Condition.subject</b><br> 2098 * </p> 2099 */ 2100 @SearchParamDefinition(name="subject", path="Condition.subject", description="Who has the condition?", type="reference", target={Group.class, Patient.class } ) 2101 public static final String SP_SUBJECT = "subject"; 2102 /** 2103 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 2104 * <p> 2105 * Description: <b>Who has the condition?</b><br> 2106 * Type: <b>reference</b><br> 2107 * Path: <b>Condition.subject</b><br> 2108 * </p> 2109 */ 2110 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 2111 2112/** 2113 * Constant for fluent queries to be used to add include statements. Specifies 2114 * the path value of "<b>Condition:subject</b>". 2115 */ 2116 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("Condition:subject").toLocked(); 2117 2118 /** 2119 * Search parameter: <b>verification-status</b> 2120 * <p> 2121 * Description: <b>unconfirmed | provisional | differential | confirmed | refuted | entered-in-error</b><br> 2122 * Type: <b>token</b><br> 2123 * Path: <b>Condition.verificationStatus</b><br> 2124 * </p> 2125 */ 2126 @SearchParamDefinition(name="verification-status", path="Condition.verificationStatus", description="unconfirmed | provisional | differential | confirmed | refuted | entered-in-error", type="token" ) 2127 public static final String SP_VERIFICATION_STATUS = "verification-status"; 2128 /** 2129 * <b>Fluent Client</b> search parameter constant for <b>verification-status</b> 2130 * <p> 2131 * Description: <b>unconfirmed | provisional | differential | confirmed | refuted | entered-in-error</b><br> 2132 * Type: <b>token</b><br> 2133 * Path: <b>Condition.verificationStatus</b><br> 2134 * </p> 2135 */ 2136 public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERIFICATION_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERIFICATION_STATUS); 2137 2138 /** 2139 * Search parameter: <b>clinical-status</b> 2140 * <p> 2141 * Description: <b>The clinical status of the condition</b><br> 2142 * Type: <b>token</b><br> 2143 * Path: <b>Condition.clinicalStatus</b><br> 2144 * </p> 2145 */ 2146 @SearchParamDefinition(name="clinical-status", path="Condition.clinicalStatus", description="The clinical status of the condition", type="token" ) 2147 public static final String SP_CLINICAL_STATUS = "clinical-status"; 2148 /** 2149 * <b>Fluent Client</b> search parameter constant for <b>clinical-status</b> 2150 * <p> 2151 * Description: <b>The clinical status of the condition</b><br> 2152 * Type: <b>token</b><br> 2153 * Path: <b>Condition.clinicalStatus</b><br> 2154 * </p> 2155 */ 2156 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CLINICAL_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CLINICAL_STATUS); 2157 2158 /** 2159 * Search parameter: <b>encounter</b> 2160 * <p> 2161 * Description: <b>The Encounter during which this Condition was created</b><br> 2162 * Type: <b>reference</b><br> 2163 * Path: <b>Condition.encounter</b><br> 2164 * </p> 2165 */ 2166 @SearchParamDefinition(name="encounter", path="Condition.encounter", description="The Encounter during which this Condition was created", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Encounter") }, target={Encounter.class } ) 2167 public static final String SP_ENCOUNTER = "encounter"; 2168 /** 2169 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 2170 * <p> 2171 * Description: <b>The Encounter during which this Condition was created</b><br> 2172 * Type: <b>reference</b><br> 2173 * Path: <b>Condition.encounter</b><br> 2174 * </p> 2175 */ 2176 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); 2177 2178/** 2179 * Constant for fluent queries to be used to add include statements. Specifies 2180 * the path value of "<b>Condition:encounter</b>". 2181 */ 2182 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("Condition:encounter").toLocked(); 2183 2184 /** 2185 * Search parameter: <b>onset-date</b> 2186 * <p> 2187 * Description: <b>Date related onsets (dateTime and Period)</b><br> 2188 * Type: <b>date</b><br> 2189 * Path: <b>Condition.onset[x]</b><br> 2190 * </p> 2191 */ 2192 @SearchParamDefinition(name="onset-date", path="Condition.onset.as(dateTime) | Condition.onset.as(Period)", description="Date related onsets (dateTime and Period)", type="date" ) 2193 public static final String SP_ONSET_DATE = "onset-date"; 2194 /** 2195 * <b>Fluent Client</b> search parameter constant for <b>onset-date</b> 2196 * <p> 2197 * Description: <b>Date related onsets (dateTime and Period)</b><br> 2198 * Type: <b>date</b><br> 2199 * Path: <b>Condition.onset[x]</b><br> 2200 * </p> 2201 */ 2202 public static final ca.uhn.fhir.rest.gclient.DateClientParam ONSET_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_ONSET_DATE); 2203 2204 /** 2205 * Search parameter: <b>abatement-date</b> 2206 * <p> 2207 * Description: <b>Date-related abatements (dateTime and period)</b><br> 2208 * Type: <b>date</b><br> 2209 * Path: <b>Condition.abatement[x]</b><br> 2210 * </p> 2211 */ 2212 @SearchParamDefinition(name="abatement-date", path="Condition.abatement.as(dateTime) | Condition.abatement.as(Period)", description="Date-related abatements (dateTime and period)", type="date" ) 2213 public static final String SP_ABATEMENT_DATE = "abatement-date"; 2214 /** 2215 * <b>Fluent Client</b> search parameter constant for <b>abatement-date</b> 2216 * <p> 2217 * Description: <b>Date-related abatements (dateTime and period)</b><br> 2218 * Type: <b>date</b><br> 2219 * Path: <b>Condition.abatement[x]</b><br> 2220 * </p> 2221 */ 2222 public static final ca.uhn.fhir.rest.gclient.DateClientParam ABATEMENT_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_ABATEMENT_DATE); 2223 2224 /** 2225 * Search parameter: <b>asserter</b> 2226 * <p> 2227 * Description: <b>Person or device that asserts this condition</b><br> 2228 * Type: <b>reference</b><br> 2229 * Path: <b>Condition.asserter</b><br> 2230 * </p> 2231 */ 2232 @SearchParamDefinition(name="asserter", path="Condition.asserter", description="Person or device that asserts this condition", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") }, target={Device.class, Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class } ) 2233 public static final String SP_ASSERTER = "asserter"; 2234 /** 2235 * <b>Fluent Client</b> search parameter constant for <b>asserter</b> 2236 * <p> 2237 * Description: <b>Person or device that asserts this condition</b><br> 2238 * Type: <b>reference</b><br> 2239 * Path: <b>Condition.asserter</b><br> 2240 * </p> 2241 */ 2242 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ASSERTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ASSERTER); 2243 2244/** 2245 * Constant for fluent queries to be used to add include statements. Specifies 2246 * the path value of "<b>Condition:asserter</b>". 2247 */ 2248 public static final ca.uhn.fhir.model.api.Include INCLUDE_ASSERTER = new ca.uhn.fhir.model.api.Include("Condition:asserter").toLocked(); 2249 2250 /** 2251 * Search parameter: <b>stage</b> 2252 * <p> 2253 * Description: <b>Simple summary (disease specific)</b><br> 2254 * Type: <b>token</b><br> 2255 * Path: <b>Condition.stage.summary</b><br> 2256 * </p> 2257 */ 2258 @SearchParamDefinition(name="stage", path="Condition.stage.summary", description="Simple summary (disease specific)", type="token" ) 2259 public static final String SP_STAGE = "stage"; 2260 /** 2261 * <b>Fluent Client</b> search parameter constant for <b>stage</b> 2262 * <p> 2263 * Description: <b>Simple summary (disease specific)</b><br> 2264 * Type: <b>token</b><br> 2265 * Path: <b>Condition.stage.summary</b><br> 2266 * </p> 2267 */ 2268 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STAGE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STAGE); 2269 2270 /** 2271 * Search parameter: <b>abatement-string</b> 2272 * <p> 2273 * Description: <b>Abatement as a string</b><br> 2274 * Type: <b>string</b><br> 2275 * Path: <b>Condition.abatement[x]</b><br> 2276 * </p> 2277 */ 2278 @SearchParamDefinition(name="abatement-string", path="Condition.abatement.as(string)", description="Abatement as a string", type="string" ) 2279 public static final String SP_ABATEMENT_STRING = "abatement-string"; 2280 /** 2281 * <b>Fluent Client</b> search parameter constant for <b>abatement-string</b> 2282 * <p> 2283 * Description: <b>Abatement as a string</b><br> 2284 * Type: <b>string</b><br> 2285 * Path: <b>Condition.abatement[x]</b><br> 2286 * </p> 2287 */ 2288 public static final ca.uhn.fhir.rest.gclient.StringClientParam ABATEMENT_STRING = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ABATEMENT_STRING); 2289 2290 /** 2291 * Search parameter: <b>patient</b> 2292 * <p> 2293 * Description: <b>Who has the condition?</b><br> 2294 * Type: <b>reference</b><br> 2295 * Path: <b>Condition.subject</b><br> 2296 * </p> 2297 */ 2298 @SearchParamDefinition(name="patient", path="Condition.subject.where(resolve() is Patient)", description="Who has the condition?", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") }, target={Patient.class } ) 2299 public static final String SP_PATIENT = "patient"; 2300 /** 2301 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 2302 * <p> 2303 * Description: <b>Who has the condition?</b><br> 2304 * Type: <b>reference</b><br> 2305 * Path: <b>Condition.subject</b><br> 2306 * </p> 2307 */ 2308 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 2309 2310/** 2311 * Constant for fluent queries to be used to add include statements. Specifies 2312 * the path value of "<b>Condition:patient</b>". 2313 */ 2314 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Condition:patient").toLocked(); 2315 2316 /** 2317 * Search parameter: <b>onset-age</b> 2318 * <p> 2319 * Description: <b>Onsets as age or age range</b><br> 2320 * Type: <b>quantity</b><br> 2321 * Path: <b>Condition.onset[x]</b><br> 2322 * </p> 2323 */ 2324 @SearchParamDefinition(name="onset-age", path="Condition.onset.as(Age) | Condition.onset.as(Range)", description="Onsets as age or age range", type="quantity" ) 2325 public static final String SP_ONSET_AGE = "onset-age"; 2326 /** 2327 * <b>Fluent Client</b> search parameter constant for <b>onset-age</b> 2328 * <p> 2329 * Description: <b>Onsets as age or age range</b><br> 2330 * Type: <b>quantity</b><br> 2331 * Path: <b>Condition.onset[x]</b><br> 2332 * </p> 2333 */ 2334 public static final ca.uhn.fhir.rest.gclient.QuantityClientParam ONSET_AGE = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_ONSET_AGE); 2335 2336 /** 2337 * Search parameter: <b>abatement-age</b> 2338 * <p> 2339 * Description: <b>Abatement as age or age range</b><br> 2340 * Type: <b>quantity</b><br> 2341 * Path: <b>Condition.abatement[x]</b><br> 2342 * </p> 2343 */ 2344 @SearchParamDefinition(name="abatement-age", path="Condition.abatement.as(Age) | Condition.abatement.as(Range)", description="Abatement as age or age range", type="quantity" ) 2345 public static final String SP_ABATEMENT_AGE = "abatement-age"; 2346 /** 2347 * <b>Fluent Client</b> search parameter constant for <b>abatement-age</b> 2348 * <p> 2349 * Description: <b>Abatement as age or age range</b><br> 2350 * Type: <b>quantity</b><br> 2351 * Path: <b>Condition.abatement[x]</b><br> 2352 * </p> 2353 */ 2354 public static final ca.uhn.fhir.rest.gclient.QuantityClientParam ABATEMENT_AGE = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_ABATEMENT_AGE); 2355 2356 /** 2357 * Search parameter: <b>category</b> 2358 * <p> 2359 * Description: <b>The category of the condition</b><br> 2360 * Type: <b>token</b><br> 2361 * Path: <b>Condition.category</b><br> 2362 * </p> 2363 */ 2364 @SearchParamDefinition(name="category", path="Condition.category", description="The category of the condition", type="token" ) 2365 public static final String SP_CATEGORY = "category"; 2366 /** 2367 * <b>Fluent Client</b> search parameter constant for <b>category</b> 2368 * <p> 2369 * Description: <b>The category of the condition</b><br> 2370 * Type: <b>token</b><br> 2371 * Path: <b>Condition.category</b><br> 2372 * </p> 2373 */ 2374 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CATEGORY); 2375 2376 /** 2377 * Search parameter: <b>body-site</b> 2378 * <p> 2379 * Description: <b>Anatomical location, if relevant</b><br> 2380 * Type: <b>token</b><br> 2381 * Path: <b>Condition.bodySite</b><br> 2382 * </p> 2383 */ 2384 @SearchParamDefinition(name="body-site", path="Condition.bodySite", description="Anatomical location, if relevant", type="token" ) 2385 public static final String SP_BODY_SITE = "body-site"; 2386 /** 2387 * <b>Fluent Client</b> search parameter constant for <b>body-site</b> 2388 * <p> 2389 * Description: <b>Anatomical location, if relevant</b><br> 2390 * Type: <b>token</b><br> 2391 * Path: <b>Condition.bodySite</b><br> 2392 * </p> 2393 */ 2394 public static final ca.uhn.fhir.rest.gclient.TokenClientParam BODY_SITE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_BODY_SITE); 2395 2396 2397} 2398