001package org.hl7.fhir.r5.model; 002 003 004/* 005 * #%L 006 * org.hl7.fhir.r5 007 * %% 008 * Copyright (C) 2014 - 2019 Health Level 7 009 * %% 010 * Licensed under the Apache License, Version 2.0 (the \"License\"); 011 * you may not use this file except in compliance with the License. 012 * You may obtain a copy of the License at 013 * 014 * http://www.apache.org/licenses/LICENSE-2.0 015 * 016 * Unless required by applicable law or agreed to in writing, software 017 * distributed under the License is distributed on an \"AS IS\" BASIS, 018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 019 * See the License for the specific language governing permissions and 020 * limitations under the License. 021 * #L% 022 */ 023 024/* 025 Copyright (c) 2011+, HL7, Inc. 026 All rights reserved. 027 028 Redistribution and use in source and binary forms, with or without modification, \ 029 are permitted provided that the following conditions are met: 030 031 * Redistributions of source code must retain the above copyright notice, this \ 032 list of conditions and the following disclaimer. 033 * Redistributions in binary form must reproduce the above copyright notice, \ 034 this list of conditions and the following disclaimer in the documentation \ 035 and/or other materials provided with the distribution. 036 * Neither the name of HL7 nor the names of its contributors may be used to 037 endorse or promote products derived from this software without specific 038 prior written permission. 039 040 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \ 041 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \ 042 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \ 043 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \ 044 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \ 045 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \ 046 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \ 047 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \ 048 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \ 049 POSSIBILITY OF SUCH DAMAGE. 050 */ 051 052// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent 053 054import java.util.ArrayList; 055import java.util.Date; 056import java.util.List; 057import org.hl7.fhir.utilities.Utilities; 058import org.hl7.fhir.r5.model.Enumerations.*; 059import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 060import org.hl7.fhir.exceptions.FHIRException; 061import org.hl7.fhir.instance.model.api.ICompositeType; 062import ca.uhn.fhir.model.api.annotation.ResourceDef; 063import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 064import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 065import ca.uhn.fhir.model.api.annotation.Child; 066import ca.uhn.fhir.model.api.annotation.ChildOrder; 067import ca.uhn.fhir.model.api.annotation.Description; 068import ca.uhn.fhir.model.api.annotation.Block; 069 070/** 071 * A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. This resource is called "ClinicalImpression" rather than "ClinicalAssessment" to avoid confusion with the recording of assessment tools such as Apgar score. 072 */ 073@ResourceDef(name="ClinicalImpression", profile="http://hl7.org/fhir/StructureDefinition/ClinicalImpression") 074public class ClinicalImpression extends DomainResource { 075 076 @Block() 077 public static class ClinicalImpressionFindingComponent extends BackboneElement implements IBaseBackboneElement { 078 /** 079 * Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions. 080 */ 081 @Child(name = "item", type = {CodeableReference.class}, order=1, min=0, max=1, modifier=false, summary=false) 082 @Description(shortDefinition="What was found", formalDefinition="Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions." ) 083 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-code") 084 protected CodeableReference item; 085 086 /** 087 * Which investigations support finding or diagnosis. 088 */ 089 @Child(name = "basis", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) 090 @Description(shortDefinition="Which investigations support finding", formalDefinition="Which investigations support finding or diagnosis." ) 091 protected StringType basis; 092 093 private static final long serialVersionUID = -1363589306L; 094 095 /** 096 * Constructor 097 */ 098 public ClinicalImpressionFindingComponent() { 099 super(); 100 } 101 102 /** 103 * @return {@link #item} (Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.) 104 */ 105 public CodeableReference getItem() { 106 if (this.item == null) 107 if (Configuration.errorOnAutoCreate()) 108 throw new Error("Attempt to auto-create ClinicalImpressionFindingComponent.item"); 109 else if (Configuration.doAutoCreate()) 110 this.item = new CodeableReference(); // cc 111 return this.item; 112 } 113 114 public boolean hasItem() { 115 return this.item != null && !this.item.isEmpty(); 116 } 117 118 /** 119 * @param value {@link #item} (Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.) 120 */ 121 public ClinicalImpressionFindingComponent setItem(CodeableReference value) { 122 this.item = value; 123 return this; 124 } 125 126 /** 127 * @return {@link #basis} (Which investigations support finding or diagnosis.). This is the underlying object with id, value and extensions. The accessor "getBasis" gives direct access to the value 128 */ 129 public StringType getBasisElement() { 130 if (this.basis == null) 131 if (Configuration.errorOnAutoCreate()) 132 throw new Error("Attempt to auto-create ClinicalImpressionFindingComponent.basis"); 133 else if (Configuration.doAutoCreate()) 134 this.basis = new StringType(); // bb 135 return this.basis; 136 } 137 138 public boolean hasBasisElement() { 139 return this.basis != null && !this.basis.isEmpty(); 140 } 141 142 public boolean hasBasis() { 143 return this.basis != null && !this.basis.isEmpty(); 144 } 145 146 /** 147 * @param value {@link #basis} (Which investigations support finding or diagnosis.). This is the underlying object with id, value and extensions. The accessor "getBasis" gives direct access to the value 148 */ 149 public ClinicalImpressionFindingComponent setBasisElement(StringType value) { 150 this.basis = value; 151 return this; 152 } 153 154 /** 155 * @return Which investigations support finding or diagnosis. 156 */ 157 public String getBasis() { 158 return this.basis == null ? null : this.basis.getValue(); 159 } 160 161 /** 162 * @param value Which investigations support finding or diagnosis. 163 */ 164 public ClinicalImpressionFindingComponent setBasis(String value) { 165 if (Utilities.noString(value)) 166 this.basis = null; 167 else { 168 if (this.basis == null) 169 this.basis = new StringType(); 170 this.basis.setValue(value); 171 } 172 return this; 173 } 174 175 protected void listChildren(List<Property> children) { 176 super.listChildren(children); 177 children.add(new Property("item", "CodeableReference(Condition|Observation|DocumentReference)", "Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.", 0, 1, item)); 178 children.add(new Property("basis", "string", "Which investigations support finding or diagnosis.", 0, 1, basis)); 179 } 180 181 @Override 182 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 183 switch (_hash) { 184 case 3242771: /*item*/ return new Property("item", "CodeableReference(Condition|Observation|DocumentReference)", "Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.", 0, 1, item); 185 case 93508670: /*basis*/ return new Property("basis", "string", "Which investigations support finding or diagnosis.", 0, 1, basis); 186 default: return super.getNamedProperty(_hash, _name, _checkValid); 187 } 188 189 } 190 191 @Override 192 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 193 switch (hash) { 194 case 3242771: /*item*/ return this.item == null ? new Base[0] : new Base[] {this.item}; // CodeableReference 195 case 93508670: /*basis*/ return this.basis == null ? new Base[0] : new Base[] {this.basis}; // StringType 196 default: return super.getProperty(hash, name, checkValid); 197 } 198 199 } 200 201 @Override 202 public Base setProperty(int hash, String name, Base value) throws FHIRException { 203 switch (hash) { 204 case 3242771: // item 205 this.item = TypeConvertor.castToCodeableReference(value); // CodeableReference 206 return value; 207 case 93508670: // basis 208 this.basis = TypeConvertor.castToString(value); // StringType 209 return value; 210 default: return super.setProperty(hash, name, value); 211 } 212 213 } 214 215 @Override 216 public Base setProperty(String name, Base value) throws FHIRException { 217 if (name.equals("item")) { 218 this.item = TypeConvertor.castToCodeableReference(value); // CodeableReference 219 } else if (name.equals("basis")) { 220 this.basis = TypeConvertor.castToString(value); // StringType 221 } else 222 return super.setProperty(name, value); 223 return value; 224 } 225 226 @Override 227 public Base makeProperty(int hash, String name) throws FHIRException { 228 switch (hash) { 229 case 3242771: return getItem(); 230 case 93508670: return getBasisElement(); 231 default: return super.makeProperty(hash, name); 232 } 233 234 } 235 236 @Override 237 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 238 switch (hash) { 239 case 3242771: /*item*/ return new String[] {"CodeableReference"}; 240 case 93508670: /*basis*/ return new String[] {"string"}; 241 default: return super.getTypesForProperty(hash, name); 242 } 243 244 } 245 246 @Override 247 public Base addChild(String name) throws FHIRException { 248 if (name.equals("item")) { 249 this.item = new CodeableReference(); 250 return this.item; 251 } 252 else if (name.equals("basis")) { 253 throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.finding.basis"); 254 } 255 else 256 return super.addChild(name); 257 } 258 259 public ClinicalImpressionFindingComponent copy() { 260 ClinicalImpressionFindingComponent dst = new ClinicalImpressionFindingComponent(); 261 copyValues(dst); 262 return dst; 263 } 264 265 public void copyValues(ClinicalImpressionFindingComponent dst) { 266 super.copyValues(dst); 267 dst.item = item == null ? null : item.copy(); 268 dst.basis = basis == null ? null : basis.copy(); 269 } 270 271 @Override 272 public boolean equalsDeep(Base other_) { 273 if (!super.equalsDeep(other_)) 274 return false; 275 if (!(other_ instanceof ClinicalImpressionFindingComponent)) 276 return false; 277 ClinicalImpressionFindingComponent o = (ClinicalImpressionFindingComponent) other_; 278 return compareDeep(item, o.item, true) && compareDeep(basis, o.basis, true); 279 } 280 281 @Override 282 public boolean equalsShallow(Base other_) { 283 if (!super.equalsShallow(other_)) 284 return false; 285 if (!(other_ instanceof ClinicalImpressionFindingComponent)) 286 return false; 287 ClinicalImpressionFindingComponent o = (ClinicalImpressionFindingComponent) other_; 288 return compareValues(basis, o.basis, true); 289 } 290 291 public boolean isEmpty() { 292 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(item, basis); 293 } 294 295 public String fhirType() { 296 return "ClinicalImpression.finding"; 297 298 } 299 300 } 301 302 /** 303 * Business identifiers assigned to this clinical impression by the performer or other systems which remain constant as the resource is updated and propagates from server to server. 304 */ 305 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 306 @Description(shortDefinition="Business identifier", formalDefinition="Business identifiers assigned to this clinical impression by the performer or other systems which remain constant as the resource is updated and propagates from server to server." ) 307 protected List<Identifier> identifier; 308 309 /** 310 * Identifies the workflow status of the assessment. 311 */ 312 @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) 313 @Description(shortDefinition="preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown", formalDefinition="Identifies the workflow status of the assessment." ) 314 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/event-status") 315 protected Enumeration<EventStatus> status; 316 317 /** 318 * Captures the reason for the current state of the ClinicalImpression. 319 */ 320 @Child(name = "statusReason", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false) 321 @Description(shortDefinition="Reason for current status", formalDefinition="Captures the reason for the current state of the ClinicalImpression." ) 322 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/clinicalimpression-status-reason") 323 protected CodeableConcept statusReason; 324 325 /** 326 * A summary of the context and/or cause of the assessment - why / where it was performed, and what patient events/status prompted it. 327 */ 328 @Child(name = "description", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) 329 @Description(shortDefinition="Why/how the assessment was performed", formalDefinition="A summary of the context and/or cause of the assessment - why / where it was performed, and what patient events/status prompted it." ) 330 protected StringType description; 331 332 /** 333 * The patient or group of individuals assessed as part of this record. 334 */ 335 @Child(name = "subject", type = {Patient.class, Group.class}, order=4, min=1, max=1, modifier=false, summary=true) 336 @Description(shortDefinition="Patient or group assessed", formalDefinition="The patient or group of individuals assessed as part of this record." ) 337 protected Reference subject; 338 339 /** 340 * The Encounter during which this ClinicalImpression was created or to which the creation of this record is tightly associated. 341 */ 342 @Child(name = "encounter", type = {Encounter.class}, order=5, min=0, max=1, modifier=false, summary=true) 343 @Description(shortDefinition="The Encounter during which this ClinicalImpression was created", formalDefinition="The Encounter during which this ClinicalImpression was created or to which the creation of this record is tightly associated." ) 344 protected Reference encounter; 345 346 /** 347 * The point in time or period over which the subject was assessed. 348 */ 349 @Child(name = "effective", type = {DateTimeType.class, Period.class}, order=6, min=0, max=1, modifier=false, summary=true) 350 @Description(shortDefinition="Time of assessment", formalDefinition="The point in time or period over which the subject was assessed." ) 351 protected DataType effective; 352 353 /** 354 * Indicates when the documentation of the assessment was complete. 355 */ 356 @Child(name = "date", type = {DateTimeType.class}, order=7, min=0, max=1, modifier=false, summary=true) 357 @Description(shortDefinition="When the assessment was documented", formalDefinition="Indicates when the documentation of the assessment was complete." ) 358 protected DateTimeType date; 359 360 /** 361 * The clinician performing the assessment. 362 */ 363 @Child(name = "performer", type = {Practitioner.class, PractitionerRole.class}, order=8, min=0, max=1, modifier=false, summary=true) 364 @Description(shortDefinition="The clinician performing the assessment", formalDefinition="The clinician performing the assessment." ) 365 protected Reference performer; 366 367 /** 368 * A reference to the last assessment that was conducted on this patient. Assessments are often/usually ongoing in nature; a care provider (practitioner or team) will make new assessments on an ongoing basis as new data arises or the patient's conditions changes. 369 */ 370 @Child(name = "previous", type = {ClinicalImpression.class}, order=9, min=0, max=1, modifier=false, summary=false) 371 @Description(shortDefinition="Reference to last assessment", formalDefinition="A reference to the last assessment that was conducted on this patient. Assessments are often/usually ongoing in nature; a care provider (practitioner or team) will make new assessments on an ongoing basis as new data arises or the patient's conditions changes." ) 372 protected Reference previous; 373 374 /** 375 * A list of the relevant problems/conditions for a patient. 376 */ 377 @Child(name = "problem", type = {Condition.class, AllergyIntolerance.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 378 @Description(shortDefinition="Relevant impressions of patient state", formalDefinition="A list of the relevant problems/conditions for a patient." ) 379 protected List<Reference> problem; 380 381 /** 382 * Reference to a specific published clinical protocol that was followed during this assessment, and/or that provides evidence in support of the diagnosis. 383 */ 384 @Child(name = "protocol", type = {UriType.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 385 @Description(shortDefinition="Clinical Protocol followed", formalDefinition="Reference to a specific published clinical protocol that was followed during this assessment, and/or that provides evidence in support of the diagnosis." ) 386 protected List<UriType> protocol; 387 388 /** 389 * A text summary of the investigations and the diagnosis. 390 */ 391 @Child(name = "summary", type = {StringType.class}, order=12, min=0, max=1, modifier=false, summary=false) 392 @Description(shortDefinition="Summary of the assessment", formalDefinition="A text summary of the investigations and the diagnosis." ) 393 protected StringType summary; 394 395 /** 396 * Specific findings or diagnoses that were considered likely or relevant to ongoing treatment. 397 */ 398 @Child(name = "finding", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 399 @Description(shortDefinition="Possible or likely findings and diagnoses", formalDefinition="Specific findings or diagnoses that were considered likely or relevant to ongoing treatment." ) 400 protected List<ClinicalImpressionFindingComponent> finding; 401 402 /** 403 * Estimate of likely outcome. 404 */ 405 @Child(name = "prognosisCodeableConcept", type = {CodeableConcept.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 406 @Description(shortDefinition="Estimate of likely outcome", formalDefinition="Estimate of likely outcome." ) 407 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/clinicalimpression-prognosis") 408 protected List<CodeableConcept> prognosisCodeableConcept; 409 410 /** 411 * RiskAssessment expressing likely outcome. 412 */ 413 @Child(name = "prognosisReference", type = {RiskAssessment.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 414 @Description(shortDefinition="RiskAssessment expressing likely outcome", formalDefinition="RiskAssessment expressing likely outcome." ) 415 protected List<Reference> prognosisReference; 416 417 /** 418 * Information supporting the clinical impression, which can contain investigation results. 419 */ 420 @Child(name = "supportingInfo", type = {Reference.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 421 @Description(shortDefinition="Information supporting the clinical impression", formalDefinition="Information supporting the clinical impression, which can contain investigation results." ) 422 protected List<Reference> supportingInfo; 423 424 /** 425 * Commentary about the impression, typically recorded after the impression itself was made, though supplemental notes by the original author could also appear. 426 */ 427 @Child(name = "note", type = {Annotation.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 428 @Description(shortDefinition="Comments made about the ClinicalImpression", formalDefinition="Commentary about the impression, typically recorded after the impression itself was made, though supplemental notes by the original author could also appear." ) 429 protected List<Annotation> note; 430 431 private static final long serialVersionUID = 2042987378L; 432 433 /** 434 * Constructor 435 */ 436 public ClinicalImpression() { 437 super(); 438 } 439 440 /** 441 * Constructor 442 */ 443 public ClinicalImpression(EventStatus status, Reference subject) { 444 super(); 445 this.setStatus(status); 446 this.setSubject(subject); 447 } 448 449 /** 450 * @return {@link #identifier} (Business identifiers assigned to this clinical impression by the performer or other systems which remain constant as the resource is updated and propagates from server to server.) 451 */ 452 public List<Identifier> getIdentifier() { 453 if (this.identifier == null) 454 this.identifier = new ArrayList<Identifier>(); 455 return this.identifier; 456 } 457 458 /** 459 * @return Returns a reference to <code>this</code> for easy method chaining 460 */ 461 public ClinicalImpression setIdentifier(List<Identifier> theIdentifier) { 462 this.identifier = theIdentifier; 463 return this; 464 } 465 466 public boolean hasIdentifier() { 467 if (this.identifier == null) 468 return false; 469 for (Identifier item : this.identifier) 470 if (!item.isEmpty()) 471 return true; 472 return false; 473 } 474 475 public Identifier addIdentifier() { //3 476 Identifier t = new Identifier(); 477 if (this.identifier == null) 478 this.identifier = new ArrayList<Identifier>(); 479 this.identifier.add(t); 480 return t; 481 } 482 483 public ClinicalImpression addIdentifier(Identifier t) { //3 484 if (t == null) 485 return this; 486 if (this.identifier == null) 487 this.identifier = new ArrayList<Identifier>(); 488 this.identifier.add(t); 489 return this; 490 } 491 492 /** 493 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist {3} 494 */ 495 public Identifier getIdentifierFirstRep() { 496 if (getIdentifier().isEmpty()) { 497 addIdentifier(); 498 } 499 return getIdentifier().get(0); 500 } 501 502 /** 503 * @return {@link #status} (Identifies the workflow status of the assessment.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 504 */ 505 public Enumeration<EventStatus> getStatusElement() { 506 if (this.status == null) 507 if (Configuration.errorOnAutoCreate()) 508 throw new Error("Attempt to auto-create ClinicalImpression.status"); 509 else if (Configuration.doAutoCreate()) 510 this.status = new Enumeration<EventStatus>(new EventStatusEnumFactory()); // bb 511 return this.status; 512 } 513 514 public boolean hasStatusElement() { 515 return this.status != null && !this.status.isEmpty(); 516 } 517 518 public boolean hasStatus() { 519 return this.status != null && !this.status.isEmpty(); 520 } 521 522 /** 523 * @param value {@link #status} (Identifies the workflow status of the assessment.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 524 */ 525 public ClinicalImpression setStatusElement(Enumeration<EventStatus> value) { 526 this.status = value; 527 return this; 528 } 529 530 /** 531 * @return Identifies the workflow status of the assessment. 532 */ 533 public EventStatus getStatus() { 534 return this.status == null ? null : this.status.getValue(); 535 } 536 537 /** 538 * @param value Identifies the workflow status of the assessment. 539 */ 540 public ClinicalImpression setStatus(EventStatus value) { 541 if (this.status == null) 542 this.status = new Enumeration<EventStatus>(new EventStatusEnumFactory()); 543 this.status.setValue(value); 544 return this; 545 } 546 547 /** 548 * @return {@link #statusReason} (Captures the reason for the current state of the ClinicalImpression.) 549 */ 550 public CodeableConcept getStatusReason() { 551 if (this.statusReason == null) 552 if (Configuration.errorOnAutoCreate()) 553 throw new Error("Attempt to auto-create ClinicalImpression.statusReason"); 554 else if (Configuration.doAutoCreate()) 555 this.statusReason = new CodeableConcept(); // cc 556 return this.statusReason; 557 } 558 559 public boolean hasStatusReason() { 560 return this.statusReason != null && !this.statusReason.isEmpty(); 561 } 562 563 /** 564 * @param value {@link #statusReason} (Captures the reason for the current state of the ClinicalImpression.) 565 */ 566 public ClinicalImpression setStatusReason(CodeableConcept value) { 567 this.statusReason = value; 568 return this; 569 } 570 571 /** 572 * @return {@link #description} (A summary of the context and/or cause of the assessment - why / where it was performed, and what patient events/status prompted it.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 573 */ 574 public StringType getDescriptionElement() { 575 if (this.description == null) 576 if (Configuration.errorOnAutoCreate()) 577 throw new Error("Attempt to auto-create ClinicalImpression.description"); 578 else if (Configuration.doAutoCreate()) 579 this.description = new StringType(); // bb 580 return this.description; 581 } 582 583 public boolean hasDescriptionElement() { 584 return this.description != null && !this.description.isEmpty(); 585 } 586 587 public boolean hasDescription() { 588 return this.description != null && !this.description.isEmpty(); 589 } 590 591 /** 592 * @param value {@link #description} (A summary of the context and/or cause of the assessment - why / where it was performed, and what patient events/status prompted it.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value 593 */ 594 public ClinicalImpression setDescriptionElement(StringType value) { 595 this.description = value; 596 return this; 597 } 598 599 /** 600 * @return A summary of the context and/or cause of the assessment - why / where it was performed, and what patient events/status prompted it. 601 */ 602 public String getDescription() { 603 return this.description == null ? null : this.description.getValue(); 604 } 605 606 /** 607 * @param value A summary of the context and/or cause of the assessment - why / where it was performed, and what patient events/status prompted it. 608 */ 609 public ClinicalImpression setDescription(String value) { 610 if (Utilities.noString(value)) 611 this.description = null; 612 else { 613 if (this.description == null) 614 this.description = new StringType(); 615 this.description.setValue(value); 616 } 617 return this; 618 } 619 620 /** 621 * @return {@link #subject} (The patient or group of individuals assessed as part of this record.) 622 */ 623 public Reference getSubject() { 624 if (this.subject == null) 625 if (Configuration.errorOnAutoCreate()) 626 throw new Error("Attempt to auto-create ClinicalImpression.subject"); 627 else if (Configuration.doAutoCreate()) 628 this.subject = new Reference(); // cc 629 return this.subject; 630 } 631 632 public boolean hasSubject() { 633 return this.subject != null && !this.subject.isEmpty(); 634 } 635 636 /** 637 * @param value {@link #subject} (The patient or group of individuals assessed as part of this record.) 638 */ 639 public ClinicalImpression setSubject(Reference value) { 640 this.subject = value; 641 return this; 642 } 643 644 /** 645 * @return {@link #encounter} (The Encounter during which this ClinicalImpression was created or to which the creation of this record is tightly associated.) 646 */ 647 public Reference getEncounter() { 648 if (this.encounter == null) 649 if (Configuration.errorOnAutoCreate()) 650 throw new Error("Attempt to auto-create ClinicalImpression.encounter"); 651 else if (Configuration.doAutoCreate()) 652 this.encounter = new Reference(); // cc 653 return this.encounter; 654 } 655 656 public boolean hasEncounter() { 657 return this.encounter != null && !this.encounter.isEmpty(); 658 } 659 660 /** 661 * @param value {@link #encounter} (The Encounter during which this ClinicalImpression was created or to which the creation of this record is tightly associated.) 662 */ 663 public ClinicalImpression setEncounter(Reference value) { 664 this.encounter = value; 665 return this; 666 } 667 668 /** 669 * @return {@link #effective} (The point in time or period over which the subject was assessed.) 670 */ 671 public DataType getEffective() { 672 return this.effective; 673 } 674 675 /** 676 * @return {@link #effective} (The point in time or period over which the subject was assessed.) 677 */ 678 public DateTimeType getEffectiveDateTimeType() throws FHIRException { 679 if (this.effective == null) 680 this.effective = new DateTimeType(); 681 if (!(this.effective instanceof DateTimeType)) 682 throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.effective.getClass().getName()+" was encountered"); 683 return (DateTimeType) this.effective; 684 } 685 686 public boolean hasEffectiveDateTimeType() { 687 return this != null && this.effective instanceof DateTimeType; 688 } 689 690 /** 691 * @return {@link #effective} (The point in time or period over which the subject was assessed.) 692 */ 693 public Period getEffectivePeriod() throws FHIRException { 694 if (this.effective == null) 695 this.effective = new Period(); 696 if (!(this.effective instanceof Period)) 697 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.effective.getClass().getName()+" was encountered"); 698 return (Period) this.effective; 699 } 700 701 public boolean hasEffectivePeriod() { 702 return this != null && this.effective instanceof Period; 703 } 704 705 public boolean hasEffective() { 706 return this.effective != null && !this.effective.isEmpty(); 707 } 708 709 /** 710 * @param value {@link #effective} (The point in time or period over which the subject was assessed.) 711 */ 712 public ClinicalImpression setEffective(DataType value) { 713 if (value != null && !(value instanceof DateTimeType || value instanceof Period)) 714 throw new Error("Not the right type for ClinicalImpression.effective[x]: "+value.fhirType()); 715 this.effective = value; 716 return this; 717 } 718 719 /** 720 * @return {@link #date} (Indicates when the documentation of the assessment was complete.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 721 */ 722 public DateTimeType getDateElement() { 723 if (this.date == null) 724 if (Configuration.errorOnAutoCreate()) 725 throw new Error("Attempt to auto-create ClinicalImpression.date"); 726 else if (Configuration.doAutoCreate()) 727 this.date = new DateTimeType(); // bb 728 return this.date; 729 } 730 731 public boolean hasDateElement() { 732 return this.date != null && !this.date.isEmpty(); 733 } 734 735 public boolean hasDate() { 736 return this.date != null && !this.date.isEmpty(); 737 } 738 739 /** 740 * @param value {@link #date} (Indicates when the documentation of the assessment was complete.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value 741 */ 742 public ClinicalImpression setDateElement(DateTimeType value) { 743 this.date = value; 744 return this; 745 } 746 747 /** 748 * @return Indicates when the documentation of the assessment was complete. 749 */ 750 public Date getDate() { 751 return this.date == null ? null : this.date.getValue(); 752 } 753 754 /** 755 * @param value Indicates when the documentation of the assessment was complete. 756 */ 757 public ClinicalImpression setDate(Date value) { 758 if (value == null) 759 this.date = null; 760 else { 761 if (this.date == null) 762 this.date = new DateTimeType(); 763 this.date.setValue(value); 764 } 765 return this; 766 } 767 768 /** 769 * @return {@link #performer} (The clinician performing the assessment.) 770 */ 771 public Reference getPerformer() { 772 if (this.performer == null) 773 if (Configuration.errorOnAutoCreate()) 774 throw new Error("Attempt to auto-create ClinicalImpression.performer"); 775 else if (Configuration.doAutoCreate()) 776 this.performer = new Reference(); // cc 777 return this.performer; 778 } 779 780 public boolean hasPerformer() { 781 return this.performer != null && !this.performer.isEmpty(); 782 } 783 784 /** 785 * @param value {@link #performer} (The clinician performing the assessment.) 786 */ 787 public ClinicalImpression setPerformer(Reference value) { 788 this.performer = value; 789 return this; 790 } 791 792 /** 793 * @return {@link #previous} (A reference to the last assessment that was conducted on this patient. Assessments are often/usually ongoing in nature; a care provider (practitioner or team) will make new assessments on an ongoing basis as new data arises or the patient's conditions changes.) 794 */ 795 public Reference getPrevious() { 796 if (this.previous == null) 797 if (Configuration.errorOnAutoCreate()) 798 throw new Error("Attempt to auto-create ClinicalImpression.previous"); 799 else if (Configuration.doAutoCreate()) 800 this.previous = new Reference(); // cc 801 return this.previous; 802 } 803 804 public boolean hasPrevious() { 805 return this.previous != null && !this.previous.isEmpty(); 806 } 807 808 /** 809 * @param value {@link #previous} (A reference to the last assessment that was conducted on this patient. Assessments are often/usually ongoing in nature; a care provider (practitioner or team) will make new assessments on an ongoing basis as new data arises or the patient's conditions changes.) 810 */ 811 public ClinicalImpression setPrevious(Reference value) { 812 this.previous = value; 813 return this; 814 } 815 816 /** 817 * @return {@link #problem} (A list of the relevant problems/conditions for a patient.) 818 */ 819 public List<Reference> getProblem() { 820 if (this.problem == null) 821 this.problem = new ArrayList<Reference>(); 822 return this.problem; 823 } 824 825 /** 826 * @return Returns a reference to <code>this</code> for easy method chaining 827 */ 828 public ClinicalImpression setProblem(List<Reference> theProblem) { 829 this.problem = theProblem; 830 return this; 831 } 832 833 public boolean hasProblem() { 834 if (this.problem == null) 835 return false; 836 for (Reference item : this.problem) 837 if (!item.isEmpty()) 838 return true; 839 return false; 840 } 841 842 public Reference addProblem() { //3 843 Reference t = new Reference(); 844 if (this.problem == null) 845 this.problem = new ArrayList<Reference>(); 846 this.problem.add(t); 847 return t; 848 } 849 850 public ClinicalImpression addProblem(Reference t) { //3 851 if (t == null) 852 return this; 853 if (this.problem == null) 854 this.problem = new ArrayList<Reference>(); 855 this.problem.add(t); 856 return this; 857 } 858 859 /** 860 * @return The first repetition of repeating field {@link #problem}, creating it if it does not already exist {3} 861 */ 862 public Reference getProblemFirstRep() { 863 if (getProblem().isEmpty()) { 864 addProblem(); 865 } 866 return getProblem().get(0); 867 } 868 869 /** 870 * @return {@link #protocol} (Reference to a specific published clinical protocol that was followed during this assessment, and/or that provides evidence in support of the diagnosis.) 871 */ 872 public List<UriType> getProtocol() { 873 if (this.protocol == null) 874 this.protocol = new ArrayList<UriType>(); 875 return this.protocol; 876 } 877 878 /** 879 * @return Returns a reference to <code>this</code> for easy method chaining 880 */ 881 public ClinicalImpression setProtocol(List<UriType> theProtocol) { 882 this.protocol = theProtocol; 883 return this; 884 } 885 886 public boolean hasProtocol() { 887 if (this.protocol == null) 888 return false; 889 for (UriType item : this.protocol) 890 if (!item.isEmpty()) 891 return true; 892 return false; 893 } 894 895 /** 896 * @return {@link #protocol} (Reference to a specific published clinical protocol that was followed during this assessment, and/or that provides evidence in support of the diagnosis.) 897 */ 898 public UriType addProtocolElement() {//2 899 UriType t = new UriType(); 900 if (this.protocol == null) 901 this.protocol = new ArrayList<UriType>(); 902 this.protocol.add(t); 903 return t; 904 } 905 906 /** 907 * @param value {@link #protocol} (Reference to a specific published clinical protocol that was followed during this assessment, and/or that provides evidence in support of the diagnosis.) 908 */ 909 public ClinicalImpression addProtocol(String value) { //1 910 UriType t = new UriType(); 911 t.setValue(value); 912 if (this.protocol == null) 913 this.protocol = new ArrayList<UriType>(); 914 this.protocol.add(t); 915 return this; 916 } 917 918 /** 919 * @param value {@link #protocol} (Reference to a specific published clinical protocol that was followed during this assessment, and/or that provides evidence in support of the diagnosis.) 920 */ 921 public boolean hasProtocol(String value) { 922 if (this.protocol == null) 923 return false; 924 for (UriType v : this.protocol) 925 if (v.getValue().equals(value)) // uri 926 return true; 927 return false; 928 } 929 930 /** 931 * @return {@link #summary} (A text summary of the investigations and the diagnosis.). This is the underlying object with id, value and extensions. The accessor "getSummary" gives direct access to the value 932 */ 933 public StringType getSummaryElement() { 934 if (this.summary == null) 935 if (Configuration.errorOnAutoCreate()) 936 throw new Error("Attempt to auto-create ClinicalImpression.summary"); 937 else if (Configuration.doAutoCreate()) 938 this.summary = new StringType(); // bb 939 return this.summary; 940 } 941 942 public boolean hasSummaryElement() { 943 return this.summary != null && !this.summary.isEmpty(); 944 } 945 946 public boolean hasSummary() { 947 return this.summary != null && !this.summary.isEmpty(); 948 } 949 950 /** 951 * @param value {@link #summary} (A text summary of the investigations and the diagnosis.). This is the underlying object with id, value and extensions. The accessor "getSummary" gives direct access to the value 952 */ 953 public ClinicalImpression setSummaryElement(StringType value) { 954 this.summary = value; 955 return this; 956 } 957 958 /** 959 * @return A text summary of the investigations and the diagnosis. 960 */ 961 public String getSummary() { 962 return this.summary == null ? null : this.summary.getValue(); 963 } 964 965 /** 966 * @param value A text summary of the investigations and the diagnosis. 967 */ 968 public ClinicalImpression setSummary(String value) { 969 if (Utilities.noString(value)) 970 this.summary = null; 971 else { 972 if (this.summary == null) 973 this.summary = new StringType(); 974 this.summary.setValue(value); 975 } 976 return this; 977 } 978 979 /** 980 * @return {@link #finding} (Specific findings or diagnoses that were considered likely or relevant to ongoing treatment.) 981 */ 982 public List<ClinicalImpressionFindingComponent> getFinding() { 983 if (this.finding == null) 984 this.finding = new ArrayList<ClinicalImpressionFindingComponent>(); 985 return this.finding; 986 } 987 988 /** 989 * @return Returns a reference to <code>this</code> for easy method chaining 990 */ 991 public ClinicalImpression setFinding(List<ClinicalImpressionFindingComponent> theFinding) { 992 this.finding = theFinding; 993 return this; 994 } 995 996 public boolean hasFinding() { 997 if (this.finding == null) 998 return false; 999 for (ClinicalImpressionFindingComponent item : this.finding) 1000 if (!item.isEmpty()) 1001 return true; 1002 return false; 1003 } 1004 1005 public ClinicalImpressionFindingComponent addFinding() { //3 1006 ClinicalImpressionFindingComponent t = new ClinicalImpressionFindingComponent(); 1007 if (this.finding == null) 1008 this.finding = new ArrayList<ClinicalImpressionFindingComponent>(); 1009 this.finding.add(t); 1010 return t; 1011 } 1012 1013 public ClinicalImpression addFinding(ClinicalImpressionFindingComponent t) { //3 1014 if (t == null) 1015 return this; 1016 if (this.finding == null) 1017 this.finding = new ArrayList<ClinicalImpressionFindingComponent>(); 1018 this.finding.add(t); 1019 return this; 1020 } 1021 1022 /** 1023 * @return The first repetition of repeating field {@link #finding}, creating it if it does not already exist {3} 1024 */ 1025 public ClinicalImpressionFindingComponent getFindingFirstRep() { 1026 if (getFinding().isEmpty()) { 1027 addFinding(); 1028 } 1029 return getFinding().get(0); 1030 } 1031 1032 /** 1033 * @return {@link #prognosisCodeableConcept} (Estimate of likely outcome.) 1034 */ 1035 public List<CodeableConcept> getPrognosisCodeableConcept() { 1036 if (this.prognosisCodeableConcept == null) 1037 this.prognosisCodeableConcept = new ArrayList<CodeableConcept>(); 1038 return this.prognosisCodeableConcept; 1039 } 1040 1041 /** 1042 * @return Returns a reference to <code>this</code> for easy method chaining 1043 */ 1044 public ClinicalImpression setPrognosisCodeableConcept(List<CodeableConcept> thePrognosisCodeableConcept) { 1045 this.prognosisCodeableConcept = thePrognosisCodeableConcept; 1046 return this; 1047 } 1048 1049 public boolean hasPrognosisCodeableConcept() { 1050 if (this.prognosisCodeableConcept == null) 1051 return false; 1052 for (CodeableConcept item : this.prognosisCodeableConcept) 1053 if (!item.isEmpty()) 1054 return true; 1055 return false; 1056 } 1057 1058 public CodeableConcept addPrognosisCodeableConcept() { //3 1059 CodeableConcept t = new CodeableConcept(); 1060 if (this.prognosisCodeableConcept == null) 1061 this.prognosisCodeableConcept = new ArrayList<CodeableConcept>(); 1062 this.prognosisCodeableConcept.add(t); 1063 return t; 1064 } 1065 1066 public ClinicalImpression addPrognosisCodeableConcept(CodeableConcept t) { //3 1067 if (t == null) 1068 return this; 1069 if (this.prognosisCodeableConcept == null) 1070 this.prognosisCodeableConcept = new ArrayList<CodeableConcept>(); 1071 this.prognosisCodeableConcept.add(t); 1072 return this; 1073 } 1074 1075 /** 1076 * @return The first repetition of repeating field {@link #prognosisCodeableConcept}, creating it if it does not already exist {3} 1077 */ 1078 public CodeableConcept getPrognosisCodeableConceptFirstRep() { 1079 if (getPrognosisCodeableConcept().isEmpty()) { 1080 addPrognosisCodeableConcept(); 1081 } 1082 return getPrognosisCodeableConcept().get(0); 1083 } 1084 1085 /** 1086 * @return {@link #prognosisReference} (RiskAssessment expressing likely outcome.) 1087 */ 1088 public List<Reference> getPrognosisReference() { 1089 if (this.prognosisReference == null) 1090 this.prognosisReference = new ArrayList<Reference>(); 1091 return this.prognosisReference; 1092 } 1093 1094 /** 1095 * @return Returns a reference to <code>this</code> for easy method chaining 1096 */ 1097 public ClinicalImpression setPrognosisReference(List<Reference> thePrognosisReference) { 1098 this.prognosisReference = thePrognosisReference; 1099 return this; 1100 } 1101 1102 public boolean hasPrognosisReference() { 1103 if (this.prognosisReference == null) 1104 return false; 1105 for (Reference item : this.prognosisReference) 1106 if (!item.isEmpty()) 1107 return true; 1108 return false; 1109 } 1110 1111 public Reference addPrognosisReference() { //3 1112 Reference t = new Reference(); 1113 if (this.prognosisReference == null) 1114 this.prognosisReference = new ArrayList<Reference>(); 1115 this.prognosisReference.add(t); 1116 return t; 1117 } 1118 1119 public ClinicalImpression addPrognosisReference(Reference t) { //3 1120 if (t == null) 1121 return this; 1122 if (this.prognosisReference == null) 1123 this.prognosisReference = new ArrayList<Reference>(); 1124 this.prognosisReference.add(t); 1125 return this; 1126 } 1127 1128 /** 1129 * @return The first repetition of repeating field {@link #prognosisReference}, creating it if it does not already exist {3} 1130 */ 1131 public Reference getPrognosisReferenceFirstRep() { 1132 if (getPrognosisReference().isEmpty()) { 1133 addPrognosisReference(); 1134 } 1135 return getPrognosisReference().get(0); 1136 } 1137 1138 /** 1139 * @return {@link #supportingInfo} (Information supporting the clinical impression, which can contain investigation results.) 1140 */ 1141 public List<Reference> getSupportingInfo() { 1142 if (this.supportingInfo == null) 1143 this.supportingInfo = new ArrayList<Reference>(); 1144 return this.supportingInfo; 1145 } 1146 1147 /** 1148 * @return Returns a reference to <code>this</code> for easy method chaining 1149 */ 1150 public ClinicalImpression setSupportingInfo(List<Reference> theSupportingInfo) { 1151 this.supportingInfo = theSupportingInfo; 1152 return this; 1153 } 1154 1155 public boolean hasSupportingInfo() { 1156 if (this.supportingInfo == null) 1157 return false; 1158 for (Reference item : this.supportingInfo) 1159 if (!item.isEmpty()) 1160 return true; 1161 return false; 1162 } 1163 1164 public Reference addSupportingInfo() { //3 1165 Reference t = new Reference(); 1166 if (this.supportingInfo == null) 1167 this.supportingInfo = new ArrayList<Reference>(); 1168 this.supportingInfo.add(t); 1169 return t; 1170 } 1171 1172 public ClinicalImpression addSupportingInfo(Reference t) { //3 1173 if (t == null) 1174 return this; 1175 if (this.supportingInfo == null) 1176 this.supportingInfo = new ArrayList<Reference>(); 1177 this.supportingInfo.add(t); 1178 return this; 1179 } 1180 1181 /** 1182 * @return The first repetition of repeating field {@link #supportingInfo}, creating it if it does not already exist {3} 1183 */ 1184 public Reference getSupportingInfoFirstRep() { 1185 if (getSupportingInfo().isEmpty()) { 1186 addSupportingInfo(); 1187 } 1188 return getSupportingInfo().get(0); 1189 } 1190 1191 /** 1192 * @return {@link #note} (Commentary about the impression, typically recorded after the impression itself was made, though supplemental notes by the original author could also appear.) 1193 */ 1194 public List<Annotation> getNote() { 1195 if (this.note == null) 1196 this.note = new ArrayList<Annotation>(); 1197 return this.note; 1198 } 1199 1200 /** 1201 * @return Returns a reference to <code>this</code> for easy method chaining 1202 */ 1203 public ClinicalImpression setNote(List<Annotation> theNote) { 1204 this.note = theNote; 1205 return this; 1206 } 1207 1208 public boolean hasNote() { 1209 if (this.note == null) 1210 return false; 1211 for (Annotation item : this.note) 1212 if (!item.isEmpty()) 1213 return true; 1214 return false; 1215 } 1216 1217 public Annotation addNote() { //3 1218 Annotation t = new Annotation(); 1219 if (this.note == null) 1220 this.note = new ArrayList<Annotation>(); 1221 this.note.add(t); 1222 return t; 1223 } 1224 1225 public ClinicalImpression addNote(Annotation t) { //3 1226 if (t == null) 1227 return this; 1228 if (this.note == null) 1229 this.note = new ArrayList<Annotation>(); 1230 this.note.add(t); 1231 return this; 1232 } 1233 1234 /** 1235 * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist {3} 1236 */ 1237 public Annotation getNoteFirstRep() { 1238 if (getNote().isEmpty()) { 1239 addNote(); 1240 } 1241 return getNote().get(0); 1242 } 1243 1244 protected void listChildren(List<Property> children) { 1245 super.listChildren(children); 1246 children.add(new Property("identifier", "Identifier", "Business identifiers assigned to this clinical impression 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)); 1247 children.add(new Property("status", "code", "Identifies the workflow status of the assessment.", 0, 1, status)); 1248 children.add(new Property("statusReason", "CodeableConcept", "Captures the reason for the current state of the ClinicalImpression.", 0, 1, statusReason)); 1249 children.add(new Property("description", "string", "A summary of the context and/or cause of the assessment - why / where it was performed, and what patient events/status prompted it.", 0, 1, description)); 1250 children.add(new Property("subject", "Reference(Patient|Group)", "The patient or group of individuals assessed as part of this record.", 0, 1, subject)); 1251 children.add(new Property("encounter", "Reference(Encounter)", "The Encounter during which this ClinicalImpression was created or to which the creation of this record is tightly associated.", 0, 1, encounter)); 1252 children.add(new Property("effective[x]", "dateTime|Period", "The point in time or period over which the subject was assessed.", 0, 1, effective)); 1253 children.add(new Property("date", "dateTime", "Indicates when the documentation of the assessment was complete.", 0, 1, date)); 1254 children.add(new Property("performer", "Reference(Practitioner|PractitionerRole)", "The clinician performing the assessment.", 0, 1, performer)); 1255 children.add(new Property("previous", "Reference(ClinicalImpression)", "A reference to the last assessment that was conducted on this patient. Assessments are often/usually ongoing in nature; a care provider (practitioner or team) will make new assessments on an ongoing basis as new data arises or the patient's conditions changes.", 0, 1, previous)); 1256 children.add(new Property("problem", "Reference(Condition|AllergyIntolerance)", "A list of the relevant problems/conditions for a patient.", 0, java.lang.Integer.MAX_VALUE, problem)); 1257 children.add(new Property("protocol", "uri", "Reference to a specific published clinical protocol that was followed during this assessment, and/or that provides evidence in support of the diagnosis.", 0, java.lang.Integer.MAX_VALUE, protocol)); 1258 children.add(new Property("summary", "string", "A text summary of the investigations and the diagnosis.", 0, 1, summary)); 1259 children.add(new Property("finding", "", "Specific findings or diagnoses that were considered likely or relevant to ongoing treatment.", 0, java.lang.Integer.MAX_VALUE, finding)); 1260 children.add(new Property("prognosisCodeableConcept", "CodeableConcept", "Estimate of likely outcome.", 0, java.lang.Integer.MAX_VALUE, prognosisCodeableConcept)); 1261 children.add(new Property("prognosisReference", "Reference(RiskAssessment)", "RiskAssessment expressing likely outcome.", 0, java.lang.Integer.MAX_VALUE, prognosisReference)); 1262 children.add(new Property("supportingInfo", "Reference(Any)", "Information supporting the clinical impression, which can contain investigation results.", 0, java.lang.Integer.MAX_VALUE, supportingInfo)); 1263 children.add(new Property("note", "Annotation", "Commentary about the impression, typically recorded after the impression itself was made, though supplemental notes by the original author could also appear.", 0, java.lang.Integer.MAX_VALUE, note)); 1264 } 1265 1266 @Override 1267 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1268 switch (_hash) { 1269 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifiers assigned to this clinical impression 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); 1270 case -892481550: /*status*/ return new Property("status", "code", "Identifies the workflow status of the assessment.", 0, 1, status); 1271 case 2051346646: /*statusReason*/ return new Property("statusReason", "CodeableConcept", "Captures the reason for the current state of the ClinicalImpression.", 0, 1, statusReason); 1272 case -1724546052: /*description*/ return new Property("description", "string", "A summary of the context and/or cause of the assessment - why / where it was performed, and what patient events/status prompted it.", 0, 1, description); 1273 case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group)", "The patient or group of individuals assessed as part of this record.", 0, 1, subject); 1274 case 1524132147: /*encounter*/ return new Property("encounter", "Reference(Encounter)", "The Encounter during which this ClinicalImpression was created or to which the creation of this record is tightly associated.", 0, 1, encounter); 1275 case 247104889: /*effective[x]*/ return new Property("effective[x]", "dateTime|Period", "The point in time or period over which the subject was assessed.", 0, 1, effective); 1276 case -1468651097: /*effective*/ return new Property("effective[x]", "dateTime|Period", "The point in time or period over which the subject was assessed.", 0, 1, effective); 1277 case -275306910: /*effectiveDateTime*/ return new Property("effective[x]", "dateTime", "The point in time or period over which the subject was assessed.", 0, 1, effective); 1278 case -403934648: /*effectivePeriod*/ return new Property("effective[x]", "Period", "The point in time or period over which the subject was assessed.", 0, 1, effective); 1279 case 3076014: /*date*/ return new Property("date", "dateTime", "Indicates when the documentation of the assessment was complete.", 0, 1, date); 1280 case 481140686: /*performer*/ return new Property("performer", "Reference(Practitioner|PractitionerRole)", "The clinician performing the assessment.", 0, 1, performer); 1281 case -1273775369: /*previous*/ return new Property("previous", "Reference(ClinicalImpression)", "A reference to the last assessment that was conducted on this patient. Assessments are often/usually ongoing in nature; a care provider (practitioner or team) will make new assessments on an ongoing basis as new data arises or the patient's conditions changes.", 0, 1, previous); 1282 case -309542241: /*problem*/ return new Property("problem", "Reference(Condition|AllergyIntolerance)", "A list of the relevant problems/conditions for a patient.", 0, java.lang.Integer.MAX_VALUE, problem); 1283 case -989163880: /*protocol*/ return new Property("protocol", "uri", "Reference to a specific published clinical protocol that was followed during this assessment, and/or that provides evidence in support of the diagnosis.", 0, java.lang.Integer.MAX_VALUE, protocol); 1284 case -1857640538: /*summary*/ return new Property("summary", "string", "A text summary of the investigations and the diagnosis.", 0, 1, summary); 1285 case -853173367: /*finding*/ return new Property("finding", "", "Specific findings or diagnoses that were considered likely or relevant to ongoing treatment.", 0, java.lang.Integer.MAX_VALUE, finding); 1286 case -676337953: /*prognosisCodeableConcept*/ return new Property("prognosisCodeableConcept", "CodeableConcept", "Estimate of likely outcome.", 0, java.lang.Integer.MAX_VALUE, prognosisCodeableConcept); 1287 case -587137783: /*prognosisReference*/ return new Property("prognosisReference", "Reference(RiskAssessment)", "RiskAssessment expressing likely outcome.", 0, java.lang.Integer.MAX_VALUE, prognosisReference); 1288 case 1922406657: /*supportingInfo*/ return new Property("supportingInfo", "Reference(Any)", "Information supporting the clinical impression, which can contain investigation results.", 0, java.lang.Integer.MAX_VALUE, supportingInfo); 1289 case 3387378: /*note*/ return new Property("note", "Annotation", "Commentary about the impression, typically recorded after the impression itself was made, though supplemental notes by the original author could also appear.", 0, java.lang.Integer.MAX_VALUE, note); 1290 default: return super.getNamedProperty(_hash, _name, _checkValid); 1291 } 1292 1293 } 1294 1295 @Override 1296 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1297 switch (hash) { 1298 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 1299 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<EventStatus> 1300 case 2051346646: /*statusReason*/ return this.statusReason == null ? new Base[0] : new Base[] {this.statusReason}; // CodeableConcept 1301 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 1302 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 1303 case 1524132147: /*encounter*/ return this.encounter == null ? new Base[0] : new Base[] {this.encounter}; // Reference 1304 case -1468651097: /*effective*/ return this.effective == null ? new Base[0] : new Base[] {this.effective}; // DataType 1305 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 1306 case 481140686: /*performer*/ return this.performer == null ? new Base[0] : new Base[] {this.performer}; // Reference 1307 case -1273775369: /*previous*/ return this.previous == null ? new Base[0] : new Base[] {this.previous}; // Reference 1308 case -309542241: /*problem*/ return this.problem == null ? new Base[0] : this.problem.toArray(new Base[this.problem.size()]); // Reference 1309 case -989163880: /*protocol*/ return this.protocol == null ? new Base[0] : this.protocol.toArray(new Base[this.protocol.size()]); // UriType 1310 case -1857640538: /*summary*/ return this.summary == null ? new Base[0] : new Base[] {this.summary}; // StringType 1311 case -853173367: /*finding*/ return this.finding == null ? new Base[0] : this.finding.toArray(new Base[this.finding.size()]); // ClinicalImpressionFindingComponent 1312 case -676337953: /*prognosisCodeableConcept*/ return this.prognosisCodeableConcept == null ? new Base[0] : this.prognosisCodeableConcept.toArray(new Base[this.prognosisCodeableConcept.size()]); // CodeableConcept 1313 case -587137783: /*prognosisReference*/ return this.prognosisReference == null ? new Base[0] : this.prognosisReference.toArray(new Base[this.prognosisReference.size()]); // Reference 1314 case 1922406657: /*supportingInfo*/ return this.supportingInfo == null ? new Base[0] : this.supportingInfo.toArray(new Base[this.supportingInfo.size()]); // Reference 1315 case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation 1316 default: return super.getProperty(hash, name, checkValid); 1317 } 1318 1319 } 1320 1321 @Override 1322 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1323 switch (hash) { 1324 case -1618432855: // identifier 1325 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); // Identifier 1326 return value; 1327 case -892481550: // status 1328 value = new EventStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 1329 this.status = (Enumeration) value; // Enumeration<EventStatus> 1330 return value; 1331 case 2051346646: // statusReason 1332 this.statusReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1333 return value; 1334 case -1724546052: // description 1335 this.description = TypeConvertor.castToString(value); // StringType 1336 return value; 1337 case -1867885268: // subject 1338 this.subject = TypeConvertor.castToReference(value); // Reference 1339 return value; 1340 case 1524132147: // encounter 1341 this.encounter = TypeConvertor.castToReference(value); // Reference 1342 return value; 1343 case -1468651097: // effective 1344 this.effective = TypeConvertor.castToType(value); // DataType 1345 return value; 1346 case 3076014: // date 1347 this.date = TypeConvertor.castToDateTime(value); // DateTimeType 1348 return value; 1349 case 481140686: // performer 1350 this.performer = TypeConvertor.castToReference(value); // Reference 1351 return value; 1352 case -1273775369: // previous 1353 this.previous = TypeConvertor.castToReference(value); // Reference 1354 return value; 1355 case -309542241: // problem 1356 this.getProblem().add(TypeConvertor.castToReference(value)); // Reference 1357 return value; 1358 case -989163880: // protocol 1359 this.getProtocol().add(TypeConvertor.castToUri(value)); // UriType 1360 return value; 1361 case -1857640538: // summary 1362 this.summary = TypeConvertor.castToString(value); // StringType 1363 return value; 1364 case -853173367: // finding 1365 this.getFinding().add((ClinicalImpressionFindingComponent) value); // ClinicalImpressionFindingComponent 1366 return value; 1367 case -676337953: // prognosisCodeableConcept 1368 this.getPrognosisCodeableConcept().add(TypeConvertor.castToCodeableConcept(value)); // CodeableConcept 1369 return value; 1370 case -587137783: // prognosisReference 1371 this.getPrognosisReference().add(TypeConvertor.castToReference(value)); // Reference 1372 return value; 1373 case 1922406657: // supportingInfo 1374 this.getSupportingInfo().add(TypeConvertor.castToReference(value)); // Reference 1375 return value; 1376 case 3387378: // note 1377 this.getNote().add(TypeConvertor.castToAnnotation(value)); // Annotation 1378 return value; 1379 default: return super.setProperty(hash, name, value); 1380 } 1381 1382 } 1383 1384 @Override 1385 public Base setProperty(String name, Base value) throws FHIRException { 1386 if (name.equals("identifier")) { 1387 this.getIdentifier().add(TypeConvertor.castToIdentifier(value)); 1388 } else if (name.equals("status")) { 1389 value = new EventStatusEnumFactory().fromType(TypeConvertor.castToCode(value)); 1390 this.status = (Enumeration) value; // Enumeration<EventStatus> 1391 } else if (name.equals("statusReason")) { 1392 this.statusReason = TypeConvertor.castToCodeableConcept(value); // CodeableConcept 1393 } else if (name.equals("description")) { 1394 this.description = TypeConvertor.castToString(value); // StringType 1395 } else if (name.equals("subject")) { 1396 this.subject = TypeConvertor.castToReference(value); // Reference 1397 } else if (name.equals("encounter")) { 1398 this.encounter = TypeConvertor.castToReference(value); // Reference 1399 } else if (name.equals("effective[x]")) { 1400 this.effective = TypeConvertor.castToType(value); // DataType 1401 } else if (name.equals("date")) { 1402 this.date = TypeConvertor.castToDateTime(value); // DateTimeType 1403 } else if (name.equals("performer")) { 1404 this.performer = TypeConvertor.castToReference(value); // Reference 1405 } else if (name.equals("previous")) { 1406 this.previous = TypeConvertor.castToReference(value); // Reference 1407 } else if (name.equals("problem")) { 1408 this.getProblem().add(TypeConvertor.castToReference(value)); 1409 } else if (name.equals("protocol")) { 1410 this.getProtocol().add(TypeConvertor.castToUri(value)); 1411 } else if (name.equals("summary")) { 1412 this.summary = TypeConvertor.castToString(value); // StringType 1413 } else if (name.equals("finding")) { 1414 this.getFinding().add((ClinicalImpressionFindingComponent) value); 1415 } else if (name.equals("prognosisCodeableConcept")) { 1416 this.getPrognosisCodeableConcept().add(TypeConvertor.castToCodeableConcept(value)); 1417 } else if (name.equals("prognosisReference")) { 1418 this.getPrognosisReference().add(TypeConvertor.castToReference(value)); 1419 } else if (name.equals("supportingInfo")) { 1420 this.getSupportingInfo().add(TypeConvertor.castToReference(value)); 1421 } else if (name.equals("note")) { 1422 this.getNote().add(TypeConvertor.castToAnnotation(value)); 1423 } else 1424 return super.setProperty(name, value); 1425 return value; 1426 } 1427 1428 @Override 1429 public Base makeProperty(int hash, String name) throws FHIRException { 1430 switch (hash) { 1431 case -1618432855: return addIdentifier(); 1432 case -892481550: return getStatusElement(); 1433 case 2051346646: return getStatusReason(); 1434 case -1724546052: return getDescriptionElement(); 1435 case -1867885268: return getSubject(); 1436 case 1524132147: return getEncounter(); 1437 case 247104889: return getEffective(); 1438 case -1468651097: return getEffective(); 1439 case 3076014: return getDateElement(); 1440 case 481140686: return getPerformer(); 1441 case -1273775369: return getPrevious(); 1442 case -309542241: return addProblem(); 1443 case -989163880: return addProtocolElement(); 1444 case -1857640538: return getSummaryElement(); 1445 case -853173367: return addFinding(); 1446 case -676337953: return addPrognosisCodeableConcept(); 1447 case -587137783: return addPrognosisReference(); 1448 case 1922406657: return addSupportingInfo(); 1449 case 3387378: return addNote(); 1450 default: return super.makeProperty(hash, name); 1451 } 1452 1453 } 1454 1455 @Override 1456 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1457 switch (hash) { 1458 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 1459 case -892481550: /*status*/ return new String[] {"code"}; 1460 case 2051346646: /*statusReason*/ return new String[] {"CodeableConcept"}; 1461 case -1724546052: /*description*/ return new String[] {"string"}; 1462 case -1867885268: /*subject*/ return new String[] {"Reference"}; 1463 case 1524132147: /*encounter*/ return new String[] {"Reference"}; 1464 case -1468651097: /*effective*/ return new String[] {"dateTime", "Period"}; 1465 case 3076014: /*date*/ return new String[] {"dateTime"}; 1466 case 481140686: /*performer*/ return new String[] {"Reference"}; 1467 case -1273775369: /*previous*/ return new String[] {"Reference"}; 1468 case -309542241: /*problem*/ return new String[] {"Reference"}; 1469 case -989163880: /*protocol*/ return new String[] {"uri"}; 1470 case -1857640538: /*summary*/ return new String[] {"string"}; 1471 case -853173367: /*finding*/ return new String[] {}; 1472 case -676337953: /*prognosisCodeableConcept*/ return new String[] {"CodeableConcept"}; 1473 case -587137783: /*prognosisReference*/ return new String[] {"Reference"}; 1474 case 1922406657: /*supportingInfo*/ return new String[] {"Reference"}; 1475 case 3387378: /*note*/ return new String[] {"Annotation"}; 1476 default: return super.getTypesForProperty(hash, name); 1477 } 1478 1479 } 1480 1481 @Override 1482 public Base addChild(String name) throws FHIRException { 1483 if (name.equals("identifier")) { 1484 return addIdentifier(); 1485 } 1486 else if (name.equals("status")) { 1487 throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.status"); 1488 } 1489 else if (name.equals("statusReason")) { 1490 this.statusReason = new CodeableConcept(); 1491 return this.statusReason; 1492 } 1493 else if (name.equals("description")) { 1494 throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.description"); 1495 } 1496 else if (name.equals("subject")) { 1497 this.subject = new Reference(); 1498 return this.subject; 1499 } 1500 else if (name.equals("encounter")) { 1501 this.encounter = new Reference(); 1502 return this.encounter; 1503 } 1504 else if (name.equals("effectiveDateTime")) { 1505 this.effective = new DateTimeType(); 1506 return this.effective; 1507 } 1508 else if (name.equals("effectivePeriod")) { 1509 this.effective = new Period(); 1510 return this.effective; 1511 } 1512 else if (name.equals("date")) { 1513 throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.date"); 1514 } 1515 else if (name.equals("performer")) { 1516 this.performer = new Reference(); 1517 return this.performer; 1518 } 1519 else if (name.equals("previous")) { 1520 this.previous = new Reference(); 1521 return this.previous; 1522 } 1523 else if (name.equals("problem")) { 1524 return addProblem(); 1525 } 1526 else if (name.equals("protocol")) { 1527 throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.protocol"); 1528 } 1529 else if (name.equals("summary")) { 1530 throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.summary"); 1531 } 1532 else if (name.equals("finding")) { 1533 return addFinding(); 1534 } 1535 else if (name.equals("prognosisCodeableConcept")) { 1536 return addPrognosisCodeableConcept(); 1537 } 1538 else if (name.equals("prognosisReference")) { 1539 return addPrognosisReference(); 1540 } 1541 else if (name.equals("supportingInfo")) { 1542 return addSupportingInfo(); 1543 } 1544 else if (name.equals("note")) { 1545 return addNote(); 1546 } 1547 else 1548 return super.addChild(name); 1549 } 1550 1551 public String fhirType() { 1552 return "ClinicalImpression"; 1553 1554 } 1555 1556 public ClinicalImpression copy() { 1557 ClinicalImpression dst = new ClinicalImpression(); 1558 copyValues(dst); 1559 return dst; 1560 } 1561 1562 public void copyValues(ClinicalImpression dst) { 1563 super.copyValues(dst); 1564 if (identifier != null) { 1565 dst.identifier = new ArrayList<Identifier>(); 1566 for (Identifier i : identifier) 1567 dst.identifier.add(i.copy()); 1568 }; 1569 dst.status = status == null ? null : status.copy(); 1570 dst.statusReason = statusReason == null ? null : statusReason.copy(); 1571 dst.description = description == null ? null : description.copy(); 1572 dst.subject = subject == null ? null : subject.copy(); 1573 dst.encounter = encounter == null ? null : encounter.copy(); 1574 dst.effective = effective == null ? null : effective.copy(); 1575 dst.date = date == null ? null : date.copy(); 1576 dst.performer = performer == null ? null : performer.copy(); 1577 dst.previous = previous == null ? null : previous.copy(); 1578 if (problem != null) { 1579 dst.problem = new ArrayList<Reference>(); 1580 for (Reference i : problem) 1581 dst.problem.add(i.copy()); 1582 }; 1583 if (protocol != null) { 1584 dst.protocol = new ArrayList<UriType>(); 1585 for (UriType i : protocol) 1586 dst.protocol.add(i.copy()); 1587 }; 1588 dst.summary = summary == null ? null : summary.copy(); 1589 if (finding != null) { 1590 dst.finding = new ArrayList<ClinicalImpressionFindingComponent>(); 1591 for (ClinicalImpressionFindingComponent i : finding) 1592 dst.finding.add(i.copy()); 1593 }; 1594 if (prognosisCodeableConcept != null) { 1595 dst.prognosisCodeableConcept = new ArrayList<CodeableConcept>(); 1596 for (CodeableConcept i : prognosisCodeableConcept) 1597 dst.prognosisCodeableConcept.add(i.copy()); 1598 }; 1599 if (prognosisReference != null) { 1600 dst.prognosisReference = new ArrayList<Reference>(); 1601 for (Reference i : prognosisReference) 1602 dst.prognosisReference.add(i.copy()); 1603 }; 1604 if (supportingInfo != null) { 1605 dst.supportingInfo = new ArrayList<Reference>(); 1606 for (Reference i : supportingInfo) 1607 dst.supportingInfo.add(i.copy()); 1608 }; 1609 if (note != null) { 1610 dst.note = new ArrayList<Annotation>(); 1611 for (Annotation i : note) 1612 dst.note.add(i.copy()); 1613 }; 1614 } 1615 1616 protected ClinicalImpression typedCopy() { 1617 return copy(); 1618 } 1619 1620 @Override 1621 public boolean equalsDeep(Base other_) { 1622 if (!super.equalsDeep(other_)) 1623 return false; 1624 if (!(other_ instanceof ClinicalImpression)) 1625 return false; 1626 ClinicalImpression o = (ClinicalImpression) other_; 1627 return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(statusReason, o.statusReason, true) 1628 && compareDeep(description, o.description, true) && compareDeep(subject, o.subject, true) && compareDeep(encounter, o.encounter, true) 1629 && compareDeep(effective, o.effective, true) && compareDeep(date, o.date, true) && compareDeep(performer, o.performer, true) 1630 && compareDeep(previous, o.previous, true) && compareDeep(problem, o.problem, true) && compareDeep(protocol, o.protocol, true) 1631 && compareDeep(summary, o.summary, true) && compareDeep(finding, o.finding, true) && compareDeep(prognosisCodeableConcept, o.prognosisCodeableConcept, true) 1632 && compareDeep(prognosisReference, o.prognosisReference, true) && compareDeep(supportingInfo, o.supportingInfo, true) 1633 && compareDeep(note, o.note, true); 1634 } 1635 1636 @Override 1637 public boolean equalsShallow(Base other_) { 1638 if (!super.equalsShallow(other_)) 1639 return false; 1640 if (!(other_ instanceof ClinicalImpression)) 1641 return false; 1642 ClinicalImpression o = (ClinicalImpression) other_; 1643 return compareValues(status, o.status, true) && compareValues(description, o.description, true) && compareValues(date, o.date, true) 1644 && compareValues(protocol, o.protocol, true) && compareValues(summary, o.summary, true); 1645 } 1646 1647 public boolean isEmpty() { 1648 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, statusReason 1649 , description, subject, encounter, effective, date, performer, previous, problem 1650 , protocol, summary, finding, prognosisCodeableConcept, prognosisReference, supportingInfo 1651 , note); 1652 } 1653 1654 @Override 1655 public ResourceType getResourceType() { 1656 return ResourceType.ClinicalImpression; 1657 } 1658 1659 /** 1660 * Search parameter: <b>encounter</b> 1661 * <p> 1662 * Description: <b>The Encounter during which this ClinicalImpression was created</b><br> 1663 * Type: <b>reference</b><br> 1664 * Path: <b>ClinicalImpression.encounter</b><br> 1665 * </p> 1666 */ 1667 @SearchParamDefinition(name="encounter", path="ClinicalImpression.encounter", description="The Encounter during which this ClinicalImpression was created", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Encounter") }, target={Encounter.class } ) 1668 public static final String SP_ENCOUNTER = "encounter"; 1669 /** 1670 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 1671 * <p> 1672 * Description: <b>The Encounter during which this ClinicalImpression was created</b><br> 1673 * Type: <b>reference</b><br> 1674 * Path: <b>ClinicalImpression.encounter</b><br> 1675 * </p> 1676 */ 1677 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); 1678 1679/** 1680 * Constant for fluent queries to be used to add include statements. Specifies 1681 * the path value of "<b>ClinicalImpression:encounter</b>". 1682 */ 1683 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("ClinicalImpression:encounter").toLocked(); 1684 1685 /** 1686 * Search parameter: <b>finding-code</b> 1687 * <p> 1688 * Description: <b>Reference to a concept (by class)</b><br> 1689 * Type: <b>token</b><br> 1690 * Path: <b>ClinicalImpression.finding.item.concept</b><br> 1691 * </p> 1692 */ 1693 @SearchParamDefinition(name="finding-code", path="ClinicalImpression.finding.item.concept", description="Reference to a concept (by class)", type="token" ) 1694 public static final String SP_FINDING_CODE = "finding-code"; 1695 /** 1696 * <b>Fluent Client</b> search parameter constant for <b>finding-code</b> 1697 * <p> 1698 * Description: <b>Reference to a concept (by class)</b><br> 1699 * Type: <b>token</b><br> 1700 * Path: <b>ClinicalImpression.finding.item.concept</b><br> 1701 * </p> 1702 */ 1703 public static final ca.uhn.fhir.rest.gclient.TokenClientParam FINDING_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FINDING_CODE); 1704 1705 /** 1706 * Search parameter: <b>finding-ref</b> 1707 * <p> 1708 * Description: <b>Reference to a resource (by instance)</b><br> 1709 * Type: <b>reference</b><br> 1710 * Path: <b>ClinicalImpression.finding.item.reference</b><br> 1711 * </p> 1712 */ 1713 @SearchParamDefinition(name="finding-ref", path="ClinicalImpression.finding.item.reference", description="Reference to a resource (by instance)", type="reference" ) 1714 public static final String SP_FINDING_REF = "finding-ref"; 1715 /** 1716 * <b>Fluent Client</b> search parameter constant for <b>finding-ref</b> 1717 * <p> 1718 * Description: <b>Reference to a resource (by instance)</b><br> 1719 * Type: <b>reference</b><br> 1720 * Path: <b>ClinicalImpression.finding.item.reference</b><br> 1721 * </p> 1722 */ 1723 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam FINDING_REF = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_FINDING_REF); 1724 1725/** 1726 * Constant for fluent queries to be used to add include statements. Specifies 1727 * the path value of "<b>ClinicalImpression:finding-ref</b>". 1728 */ 1729 public static final ca.uhn.fhir.model.api.Include INCLUDE_FINDING_REF = new ca.uhn.fhir.model.api.Include("ClinicalImpression:finding-ref").toLocked(); 1730 1731 /** 1732 * Search parameter: <b>identifier</b> 1733 * <p> 1734 * Description: <b>Business identifier</b><br> 1735 * Type: <b>token</b><br> 1736 * Path: <b>ClinicalImpression.identifier</b><br> 1737 * </p> 1738 */ 1739 @SearchParamDefinition(name="identifier", path="ClinicalImpression.identifier", description="Business identifier", type="token" ) 1740 public static final String SP_IDENTIFIER = "identifier"; 1741 /** 1742 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 1743 * <p> 1744 * Description: <b>Business identifier</b><br> 1745 * Type: <b>token</b><br> 1746 * Path: <b>ClinicalImpression.identifier</b><br> 1747 * </p> 1748 */ 1749 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 1750 1751 /** 1752 * Search parameter: <b>performer</b> 1753 * <p> 1754 * Description: <b>The clinician performing the assessment</b><br> 1755 * Type: <b>reference</b><br> 1756 * Path: <b>ClinicalImpression.performer</b><br> 1757 * </p> 1758 */ 1759 @SearchParamDefinition(name="performer", path="ClinicalImpression.performer", description="The clinician performing the assessment", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Practitioner") }, target={Practitioner.class, PractitionerRole.class } ) 1760 public static final String SP_PERFORMER = "performer"; 1761 /** 1762 * <b>Fluent Client</b> search parameter constant for <b>performer</b> 1763 * <p> 1764 * Description: <b>The clinician performing the assessment</b><br> 1765 * Type: <b>reference</b><br> 1766 * Path: <b>ClinicalImpression.performer</b><br> 1767 * </p> 1768 */ 1769 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PERFORMER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PERFORMER); 1770 1771/** 1772 * Constant for fluent queries to be used to add include statements. Specifies 1773 * the path value of "<b>ClinicalImpression:performer</b>". 1774 */ 1775 public static final ca.uhn.fhir.model.api.Include INCLUDE_PERFORMER = new ca.uhn.fhir.model.api.Include("ClinicalImpression:performer").toLocked(); 1776 1777 /** 1778 * Search parameter: <b>previous</b> 1779 * <p> 1780 * Description: <b>Reference to last assessment</b><br> 1781 * Type: <b>reference</b><br> 1782 * Path: <b>ClinicalImpression.previous</b><br> 1783 * </p> 1784 */ 1785 @SearchParamDefinition(name="previous", path="ClinicalImpression.previous", description="Reference to last assessment", type="reference", target={ClinicalImpression.class } ) 1786 public static final String SP_PREVIOUS = "previous"; 1787 /** 1788 * <b>Fluent Client</b> search parameter constant for <b>previous</b> 1789 * <p> 1790 * Description: <b>Reference to last assessment</b><br> 1791 * Type: <b>reference</b><br> 1792 * Path: <b>ClinicalImpression.previous</b><br> 1793 * </p> 1794 */ 1795 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PREVIOUS = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PREVIOUS); 1796 1797/** 1798 * Constant for fluent queries to be used to add include statements. Specifies 1799 * the path value of "<b>ClinicalImpression:previous</b>". 1800 */ 1801 public static final ca.uhn.fhir.model.api.Include INCLUDE_PREVIOUS = new ca.uhn.fhir.model.api.Include("ClinicalImpression:previous").toLocked(); 1802 1803 /** 1804 * Search parameter: <b>problem</b> 1805 * <p> 1806 * Description: <b>Relevant impressions of patient state</b><br> 1807 * Type: <b>reference</b><br> 1808 * Path: <b>ClinicalImpression.problem</b><br> 1809 * </p> 1810 */ 1811 @SearchParamDefinition(name="problem", path="ClinicalImpression.problem", description="Relevant impressions of patient state", type="reference", target={AllergyIntolerance.class, Condition.class } ) 1812 public static final String SP_PROBLEM = "problem"; 1813 /** 1814 * <b>Fluent Client</b> search parameter constant for <b>problem</b> 1815 * <p> 1816 * Description: <b>Relevant impressions of patient state</b><br> 1817 * Type: <b>reference</b><br> 1818 * Path: <b>ClinicalImpression.problem</b><br> 1819 * </p> 1820 */ 1821 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PROBLEM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PROBLEM); 1822 1823/** 1824 * Constant for fluent queries to be used to add include statements. Specifies 1825 * the path value of "<b>ClinicalImpression:problem</b>". 1826 */ 1827 public static final ca.uhn.fhir.model.api.Include INCLUDE_PROBLEM = new ca.uhn.fhir.model.api.Include("ClinicalImpression:problem").toLocked(); 1828 1829 /** 1830 * Search parameter: <b>status</b> 1831 * <p> 1832 * Description: <b>preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown</b><br> 1833 * Type: <b>token</b><br> 1834 * Path: <b>ClinicalImpression.status</b><br> 1835 * </p> 1836 */ 1837 @SearchParamDefinition(name="status", path="ClinicalImpression.status", description="preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown", type="token" ) 1838 public static final String SP_STATUS = "status"; 1839 /** 1840 * <b>Fluent Client</b> search parameter constant for <b>status</b> 1841 * <p> 1842 * Description: <b>preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown</b><br> 1843 * Type: <b>token</b><br> 1844 * Path: <b>ClinicalImpression.status</b><br> 1845 * </p> 1846 */ 1847 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 1848 1849 /** 1850 * Search parameter: <b>subject</b> 1851 * <p> 1852 * Description: <b>Patient or group assessed</b><br> 1853 * Type: <b>reference</b><br> 1854 * Path: <b>ClinicalImpression.subject</b><br> 1855 * </p> 1856 */ 1857 @SearchParamDefinition(name="subject", path="ClinicalImpression.subject", description="Patient or group assessed", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Base FHIR compartment definition for Patient") }, target={Group.class, Patient.class } ) 1858 public static final String SP_SUBJECT = "subject"; 1859 /** 1860 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 1861 * <p> 1862 * Description: <b>Patient or group assessed</b><br> 1863 * Type: <b>reference</b><br> 1864 * Path: <b>ClinicalImpression.subject</b><br> 1865 * </p> 1866 */ 1867 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 1868 1869/** 1870 * Constant for fluent queries to be used to add include statements. Specifies 1871 * the path value of "<b>ClinicalImpression:subject</b>". 1872 */ 1873 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("ClinicalImpression:subject").toLocked(); 1874 1875 /** 1876 * Search parameter: <b>supporting-info</b> 1877 * <p> 1878 * Description: <b>Information supporting the clinical impression</b><br> 1879 * Type: <b>reference</b><br> 1880 * Path: <b>ClinicalImpression.supportingInfo</b><br> 1881 * </p> 1882 */ 1883 @SearchParamDefinition(name="supporting-info", path="ClinicalImpression.supportingInfo", description="Information supporting the clinical impression", type="reference", target={Account.class, ActivityDefinition.class, AdministrableProductDefinition.class, AdverseEvent.class, AllergyIntolerance.class, Appointment.class, AppointmentResponse.class, AuditEvent.class, Basic.class, Binary.class, BiologicallyDerivedProduct.class, BodyStructure.class, Bundle.class, CapabilityStatement.class, CapabilityStatement2.class, CarePlan.class, CareTeam.class, CatalogEntry.class, ChargeItem.class, ChargeItemDefinition.class, Claim.class, ClaimResponse.class, ClinicalImpression.class, ClinicalUseIssue.class, CodeSystem.class, Communication.class, CommunicationRequest.class, CompartmentDefinition.class, Composition.class, ConceptMap.class, Condition.class, ConditionDefinition.class, Consent.class, Contract.class, Coverage.class, CoverageEligibilityRequest.class, CoverageEligibilityResponse.class, DetectedIssue.class, Device.class, DeviceDefinition.class, DeviceMetric.class, DeviceRequest.class, DeviceUseStatement.class, DiagnosticReport.class, DocumentManifest.class, DocumentReference.class, Encounter.class, Endpoint.class, EnrollmentRequest.class, EnrollmentResponse.class, EpisodeOfCare.class, EventDefinition.class, Evidence.class, EvidenceVariable.class, ExampleScenario.class, ExplanationOfBenefit.class, FamilyMemberHistory.class, Flag.class, Goal.class, GraphDefinition.class, Group.class, GuidanceResponse.class, HealthcareService.class, ImagingStudy.class, Immunization.class, ImmunizationEvaluation.class, ImmunizationRecommendation.class, ImplementationGuide.class, Ingredient.class, InsurancePlan.class, Invoice.class, Library.class, Linkage.class, ListResource.class, Location.class, ManufacturedItemDefinition.class, Measure.class, MeasureReport.class, Medication.class, MedicationAdministration.class, MedicationDispense.class, MedicationKnowledge.class, MedicationRequest.class, MedicationUsage.class, MedicinalProductDefinition.class, MessageDefinition.class, MessageHeader.class, MolecularSequence.class, NamingSystem.class, NutritionIntake.class, NutritionOrder.class, Observation.class, ObservationDefinition.class, OperationDefinition.class, OperationOutcome.class, Organization.class, OrganizationAffiliation.class, PackagedProductDefinition.class, Patient.class, PaymentNotice.class, PaymentReconciliation.class, Person.class, PlanDefinition.class, Practitioner.class, PractitionerRole.class, Procedure.class, Provenance.class, Questionnaire.class, QuestionnaireResponse.class, RegulatedAuthorization.class, RelatedPerson.class, RequestGroup.class, ResearchStudy.class, ResearchSubject.class, RiskAssessment.class, Schedule.class, SearchParameter.class, ServiceRequest.class, Slot.class, Specimen.class, SpecimenDefinition.class, StructureDefinition.class, StructureMap.class, Subscription.class, Substance.class, SubstanceDefinition.class, SubstanceNucleicAcid.class, SubstancePolymer.class, SubstanceProtein.class, SubstanceReferenceInformation.class, SubstanceSourceMaterial.class, SupplyDelivery.class, SupplyRequest.class, Task.class, TerminologyCapabilities.class, TestReport.class, TestScript.class, Topic.class, ValueSet.class, VerificationResult.class, VisionPrescription.class } ) 1884 public static final String SP_SUPPORTING_INFO = "supporting-info"; 1885 /** 1886 * <b>Fluent Client</b> search parameter constant for <b>supporting-info</b> 1887 * <p> 1888 * Description: <b>Information supporting the clinical impression</b><br> 1889 * Type: <b>reference</b><br> 1890 * Path: <b>ClinicalImpression.supportingInfo</b><br> 1891 * </p> 1892 */ 1893 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUPPORTING_INFO = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUPPORTING_INFO); 1894 1895/** 1896 * Constant for fluent queries to be used to add include statements. Specifies 1897 * the path value of "<b>ClinicalImpression:supporting-info</b>". 1898 */ 1899 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUPPORTING_INFO = new ca.uhn.fhir.model.api.Include("ClinicalImpression:supporting-info").toLocked(); 1900 1901 /** 1902 * Search parameter: <b>date</b> 1903 * <p> 1904 * Description: <b>Multiple Resources: 1905 1906* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded 1907* [CarePlan](careplan.html): Time period plan covers 1908* [CareTeam](careteam.html): A date within the coverage time period. 1909* [ClinicalImpression](clinicalimpression.html): When the assessment was documented 1910* [Composition](composition.html): Composition editing time 1911* [Consent](consent.html): When consent was agreed to 1912* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report 1913* [Encounter](encounter.html): A date within the period the Encounter lasted 1914* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period 1915* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated 1916* [Flag](flag.html): Time period when flag is active 1917* [Immunization](immunization.html): Vaccination (non)-Administration Date 1918* [List](list.html): When the list was prepared 1919* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period 1920* [Procedure](procedure.html): When the procedure occurred or is occurring 1921* [RiskAssessment](riskassessment.html): When was assessment made? 1922* [SupplyRequest](supplyrequest.html): When the request was made 1923</b><br> 1924 * Type: <b>date</b><br> 1925 * Path: <b>AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn</b><br> 1926 * </p> 1927 */ 1928 @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded\r\n* [CarePlan](careplan.html): Time period plan covers\r\n* [CareTeam](careteam.html): A date within the coverage time period.\r\n* [ClinicalImpression](clinicalimpression.html): When the assessment was documented\r\n* [Composition](composition.html): Composition editing time\r\n* [Consent](consent.html): When consent was agreed to\r\n* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report\r\n* [Encounter](encounter.html): A date within the period the Encounter lasted\r\n* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period\r\n* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated\r\n* [Flag](flag.html): Time period when flag is active\r\n* [Immunization](immunization.html): Vaccination (non)-Administration Date\r\n* [List](list.html): When the list was prepared\r\n* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period\r\n* [Procedure](procedure.html): When the procedure occurred or is occurring\r\n* [RiskAssessment](riskassessment.html): When was assessment made?\r\n* [SupplyRequest](supplyrequest.html): When the request was made\r\n", type="date" ) 1929 public static final String SP_DATE = "date"; 1930 /** 1931 * <b>Fluent Client</b> search parameter constant for <b>date</b> 1932 * <p> 1933 * Description: <b>Multiple Resources: 1934 1935* [AllergyIntolerance](allergyintolerance.html): Date first version of the resource instance was recorded 1936* [CarePlan](careplan.html): Time period plan covers 1937* [CareTeam](careteam.html): A date within the coverage time period. 1938* [ClinicalImpression](clinicalimpression.html): When the assessment was documented 1939* [Composition](composition.html): Composition editing time 1940* [Consent](consent.html): When consent was agreed to 1941* [DiagnosticReport](diagnosticreport.html): The clinically relevant time of the report 1942* [Encounter](encounter.html): A date within the period the Encounter lasted 1943* [EpisodeOfCare](episodeofcare.html): The provided date search value falls within the episode of care's period 1944* [FamilyMemberHistory](familymemberhistory.html): When history was recorded or last updated 1945* [Flag](flag.html): Time period when flag is active 1946* [Immunization](immunization.html): Vaccination (non)-Administration Date 1947* [List](list.html): When the list was prepared 1948* [Observation](observation.html): Obtained date/time. If the obtained element is a period, a date that falls in the period 1949* [Procedure](procedure.html): When the procedure occurred or is occurring 1950* [RiskAssessment](riskassessment.html): When was assessment made? 1951* [SupplyRequest](supplyrequest.html): When the request was made 1952</b><br> 1953 * Type: <b>date</b><br> 1954 * Path: <b>AllergyIntolerance.recordedDate | CarePlan.period | ClinicalImpression.date | Composition.date | Consent.dateTime | DiagnosticReport.effective | Encounter.period | EpisodeOfCare.period | FamilyMemberHistory.date | Flag.period | Immunization.occurrence | List.date | Observation.effective | Procedure.occurrence | (RiskAssessment.occurrence as dateTime) | SupplyRequest.authoredOn</b><br> 1955 * </p> 1956 */ 1957 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 1958 1959 /** 1960 * Search parameter: <b>patient</b> 1961 * <p> 1962 * Description: <b>Multiple Resources: 1963 1964* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for 1965* [CarePlan](careplan.html): Who the care plan is for 1966* [CareTeam](careteam.html): Who care team is for 1967* [ClinicalImpression](clinicalimpression.html): Patient or group assessed 1968* [Composition](composition.html): Who and/or what the composition is about 1969* [Condition](condition.html): Who has the condition? 1970* [Consent](consent.html): Who the consent applies to 1971* [DetectedIssue](detectedissue.html): Associated patient 1972* [DeviceRequest](devicerequest.html): Individual the service is ordered for 1973* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient 1974* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient 1975* [DocumentManifest](documentmanifest.html): The subject of the set of documents 1976* [DocumentReference](documentreference.html): Who/what is the subject of the document 1977* [Encounter](encounter.html): The patient or group present at the encounter 1978* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care 1979* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for 1980* [Flag](flag.html): The identity of a subject to list flags for 1981* [Goal](goal.html): Who this goal is intended for 1982* [ImagingStudy](imagingstudy.html): Who the study is about 1983* [Immunization](immunization.html): The patient for the vaccination record 1984* [List](list.html): If all resources have the same subject 1985* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for 1986* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for 1987* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient 1988* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. 1989* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement 1990* [Observation](observation.html): The subject that the observation is about (if patient) 1991* [Procedure](procedure.html): Search by subject - a patient 1992* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? 1993* [ServiceRequest](servicerequest.html): Search by subject - a patient 1994* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied 1995* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for 1996</b><br> 1997 * Type: <b>reference</b><br> 1998 * Path: <b>AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient</b><br> 1999 * </p> 2000 */ 2001 @SearchParamDefinition(name="patient", path="AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient", description="Multiple Resources: \r\n\r\n* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for\r\n* [CarePlan](careplan.html): Who the care plan is for\r\n* [CareTeam](careteam.html): Who care team is for\r\n* [ClinicalImpression](clinicalimpression.html): Patient or group assessed\r\n* [Composition](composition.html): Who and/or what the composition is about\r\n* [Condition](condition.html): Who has the condition?\r\n* [Consent](consent.html): Who the consent applies to\r\n* [DetectedIssue](detectedissue.html): Associated patient\r\n* [DeviceRequest](devicerequest.html): Individual the service is ordered for\r\n* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient\r\n* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient\r\n* [DocumentManifest](documentmanifest.html): The subject of the set of documents\r\n* [DocumentReference](documentreference.html): Who/what is the subject of the document\r\n* [Encounter](encounter.html): The patient or group present at the encounter\r\n* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care\r\n* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for\r\n* [Flag](flag.html): The identity of a subject to list flags for\r\n* [Goal](goal.html): Who this goal is intended for\r\n* [ImagingStudy](imagingstudy.html): Who the study is about\r\n* [Immunization](immunization.html): The patient for the vaccination record\r\n* [List](list.html): If all resources have the same subject\r\n* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for\r\n* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for\r\n* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient\r\n* [MedicationUsage](medicationusage.html): Returns statements for a specific patient.\r\n* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement\r\n* [Observation](observation.html): The subject that the observation is about (if patient)\r\n* [Procedure](procedure.html): Search by subject - a patient\r\n* [RiskAssessment](riskassessment.html): Who/what does assessment apply to?\r\n* [ServiceRequest](servicerequest.html): Search by subject - a patient\r\n* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied\r\n* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for\r\n", type="reference", target={Group.class, Patient.class } ) 2002 public static final String SP_PATIENT = "patient"; 2003 /** 2004 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 2005 * <p> 2006 * Description: <b>Multiple Resources: 2007 2008* [AllergyIntolerance](allergyintolerance.html): Who the sensitivity is for 2009* [CarePlan](careplan.html): Who the care plan is for 2010* [CareTeam](careteam.html): Who care team is for 2011* [ClinicalImpression](clinicalimpression.html): Patient or group assessed 2012* [Composition](composition.html): Who and/or what the composition is about 2013* [Condition](condition.html): Who has the condition? 2014* [Consent](consent.html): Who the consent applies to 2015* [DetectedIssue](detectedissue.html): Associated patient 2016* [DeviceRequest](devicerequest.html): Individual the service is ordered for 2017* [DeviceUseStatement](deviceusestatement.html): Search by subject - a patient 2018* [DiagnosticReport](diagnosticreport.html): The subject of the report if a patient 2019* [DocumentManifest](documentmanifest.html): The subject of the set of documents 2020* [DocumentReference](documentreference.html): Who/what is the subject of the document 2021* [Encounter](encounter.html): The patient or group present at the encounter 2022* [EpisodeOfCare](episodeofcare.html): The patient who is the focus of this episode of care 2023* [FamilyMemberHistory](familymemberhistory.html): The identity of a subject to list family member history items for 2024* [Flag](flag.html): The identity of a subject to list flags for 2025* [Goal](goal.html): Who this goal is intended for 2026* [ImagingStudy](imagingstudy.html): Who the study is about 2027* [Immunization](immunization.html): The patient for the vaccination record 2028* [List](list.html): If all resources have the same subject 2029* [MedicationAdministration](medicationadministration.html): The identity of a patient to list administrations for 2030* [MedicationDispense](medicationdispense.html): The identity of a patient to list dispenses for 2031* [MedicationRequest](medicationrequest.html): Returns prescriptions for a specific patient 2032* [MedicationUsage](medicationusage.html): Returns statements for a specific patient. 2033* [NutritionOrder](nutritionorder.html): The identity of the person who requires the diet, formula or nutritional supplement 2034* [Observation](observation.html): The subject that the observation is about (if patient) 2035* [Procedure](procedure.html): Search by subject - a patient 2036* [RiskAssessment](riskassessment.html): Who/what does assessment apply to? 2037* [ServiceRequest](servicerequest.html): Search by subject - a patient 2038* [SupplyDelivery](supplydelivery.html): Patient for whom the item is supplied 2039* [VisionPrescription](visionprescription.html): The identity of a patient to list dispenses for 2040</b><br> 2041 * Type: <b>reference</b><br> 2042 * Path: <b>AllergyIntolerance.patient | CarePlan.subject.where(resolve() is Patient) | CareTeam.subject.where(resolve() is Patient) | ClinicalImpression.subject.where(resolve() is Patient) | Composition.subject.where(resolve() is Patient) | Condition.subject.where(resolve() is Patient) | Consent.patient | DetectedIssue.patient | DeviceRequest.subject.where(resolve() is Patient) | DeviceUseStatement.subject | DiagnosticReport.subject.where(resolve() is Patient) | DocumentManifest.subject.where(resolve() is Patient) | DocumentReference.subject.where(resolve() is Patient) | Encounter.subject.where(resolve() is Patient) | EpisodeOfCare.patient | FamilyMemberHistory.patient | Flag.subject.where(resolve() is Patient) | Goal.subject.where(resolve() is Patient) | ImagingStudy.subject.where(resolve() is Patient) | Immunization.patient | List.subject.where(resolve() is Patient) | MedicationAdministration.subject.where(resolve() is Patient) | MedicationDispense.subject.where(resolve() is Patient) | MedicationRequest.subject.where(resolve() is Patient) | MedicationUsage.subject.where(resolve() is Patient) | NutritionOrder.patient | Observation.subject.where(resolve() is Patient) | Procedure.subject.where(resolve() is Patient) | RiskAssessment.subject.where(resolve() is Patient) | ServiceRequest.subject.where(resolve() is Patient) | SupplyDelivery.patient | VisionPrescription.patient</b><br> 2043 * </p> 2044 */ 2045 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 2046 2047/** 2048 * Constant for fluent queries to be used to add include statements. Specifies 2049 * the path value of "<b>ClinicalImpression:patient</b>". 2050 */ 2051 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("ClinicalImpression:patient").toLocked(); 2052 2053 2054} 2055