001package org.hl7.fhir.dstu3.model; 002 003/* 004 Copyright (c) 2011+, HL7, Inc. 005 All rights reserved. 006 007 Redistribution and use in source and binary forms, with or without modification, 008 are permitted provided that the following conditions are met: 009 010 * Redistributions of source code must retain the above copyright notice, this 011 list of conditions and the following disclaimer. 012 * Redistributions in binary form must reproduce the above copyright notice, 013 this list of conditions and the following disclaimer in the documentation 014 and/or other materials provided with the distribution. 015 * Neither the name of HL7 nor the names of its contributors may be used to 016 endorse or promote products derived from this software without specific 017 prior written permission. 018 019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 022 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 023 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 024 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 026 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 027 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 028 POSSIBILITY OF SUCH DAMAGE. 029 030*/ 031 032// Generated on Fri, Mar 16, 2018 15:21+1100 for FHIR v3.0.1 033 034import java.util.*; 035 036import org.hl7.fhir.utilities.Utilities; 037import ca.uhn.fhir.model.api.annotation.ResourceDef; 038import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 039import ca.uhn.fhir.model.api.annotation.Child; 040import ca.uhn.fhir.model.api.annotation.ChildOrder; 041import ca.uhn.fhir.model.api.annotation.Description; 042import ca.uhn.fhir.model.api.annotation.Block; 043import org.hl7.fhir.instance.model.api.*; 044import org.hl7.fhir.exceptions.FHIRException; 045import org.hl7.fhir.exceptions.FHIRFormatError; 046/** 047 * 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. 048 */ 049@ResourceDef(name="ClinicalImpression", profile="http://hl7.org/fhir/StructureDefinition/ClinicalImpression") 050public class ClinicalImpression extends DomainResource { 051 052 public enum ClinicalImpressionStatus { 053 /** 054 * The assessment is still on-going and results are not yet final. 055 */ 056 DRAFT, 057 /** 058 * The assessment is done and the results are final. 059 */ 060 COMPLETED, 061 /** 062 * This assessment was never actually done and the record is erroneous (e.g. Wrong patient). 063 */ 064 ENTEREDINERROR, 065 /** 066 * added to help the parsers with the generic types 067 */ 068 NULL; 069 public static ClinicalImpressionStatus fromCode(String codeString) throws FHIRException { 070 if (codeString == null || "".equals(codeString)) 071 return null; 072 if ("draft".equals(codeString)) 073 return DRAFT; 074 if ("completed".equals(codeString)) 075 return COMPLETED; 076 if ("entered-in-error".equals(codeString)) 077 return ENTEREDINERROR; 078 if (Configuration.isAcceptInvalidEnums()) 079 return null; 080 else 081 throw new FHIRException("Unknown ClinicalImpressionStatus code '"+codeString+"'"); 082 } 083 public String toCode() { 084 switch (this) { 085 case DRAFT: return "draft"; 086 case COMPLETED: return "completed"; 087 case ENTEREDINERROR: return "entered-in-error"; 088 default: return "?"; 089 } 090 } 091 public String getSystem() { 092 switch (this) { 093 case DRAFT: return "http://hl7.org/fhir/clinical-impression-status"; 094 case COMPLETED: return "http://hl7.org/fhir/clinical-impression-status"; 095 case ENTEREDINERROR: return "http://hl7.org/fhir/clinical-impression-status"; 096 default: return "?"; 097 } 098 } 099 public String getDefinition() { 100 switch (this) { 101 case DRAFT: return "The assessment is still on-going and results are not yet final."; 102 case COMPLETED: return "The assessment is done and the results are final."; 103 case ENTEREDINERROR: return "This assessment was never actually done and the record is erroneous (e.g. Wrong patient)."; 104 default: return "?"; 105 } 106 } 107 public String getDisplay() { 108 switch (this) { 109 case DRAFT: return "In progress"; 110 case COMPLETED: return "Completed"; 111 case ENTEREDINERROR: return "Entered in Error"; 112 default: return "?"; 113 } 114 } 115 } 116 117 public static class ClinicalImpressionStatusEnumFactory implements EnumFactory<ClinicalImpressionStatus> { 118 public ClinicalImpressionStatus fromCode(String codeString) throws IllegalArgumentException { 119 if (codeString == null || "".equals(codeString)) 120 if (codeString == null || "".equals(codeString)) 121 return null; 122 if ("draft".equals(codeString)) 123 return ClinicalImpressionStatus.DRAFT; 124 if ("completed".equals(codeString)) 125 return ClinicalImpressionStatus.COMPLETED; 126 if ("entered-in-error".equals(codeString)) 127 return ClinicalImpressionStatus.ENTEREDINERROR; 128 throw new IllegalArgumentException("Unknown ClinicalImpressionStatus code '"+codeString+"'"); 129 } 130 public Enumeration<ClinicalImpressionStatus> fromType(Base code) throws FHIRException { 131 if (code == null) 132 return null; 133 if (code.isEmpty()) 134 return new Enumeration<ClinicalImpressionStatus>(this); 135 String codeString = ((PrimitiveType) code).asStringValue(); 136 if (codeString == null || "".equals(codeString)) 137 return null; 138 if ("draft".equals(codeString)) 139 return new Enumeration<ClinicalImpressionStatus>(this, ClinicalImpressionStatus.DRAFT); 140 if ("completed".equals(codeString)) 141 return new Enumeration<ClinicalImpressionStatus>(this, ClinicalImpressionStatus.COMPLETED); 142 if ("entered-in-error".equals(codeString)) 143 return new Enumeration<ClinicalImpressionStatus>(this, ClinicalImpressionStatus.ENTEREDINERROR); 144 throw new FHIRException("Unknown ClinicalImpressionStatus code '"+codeString+"'"); 145 } 146 public String toCode(ClinicalImpressionStatus code) { 147 if (code == ClinicalImpressionStatus.DRAFT) 148 return "draft"; 149 if (code == ClinicalImpressionStatus.COMPLETED) 150 return "completed"; 151 if (code == ClinicalImpressionStatus.ENTEREDINERROR) 152 return "entered-in-error"; 153 return "?"; 154 } 155 public String toSystem(ClinicalImpressionStatus code) { 156 return code.getSystem(); 157 } 158 } 159 160 @Block() 161 public static class ClinicalImpressionInvestigationComponent extends BackboneElement implements IBaseBackboneElement { 162 /** 163 * A name/code for the group ("set") of investigations. Typically, this will be something like "signs", "symptoms", "clinical", "diagnostic", but the list is not constrained, and others such groups such as (exposure|family|travel|nutitirional) history may be used. 164 */ 165 @Child(name = "code", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=false) 166 @Description(shortDefinition="A name/code for the set", formalDefinition="A name/code for the group (\"set\") of investigations. Typically, this will be something like \"signs\", \"symptoms\", \"clinical\", \"diagnostic\", but the list is not constrained, and others such groups such as (exposure|family|travel|nutitirional) history may be used." ) 167 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/investigation-sets") 168 protected CodeableConcept code; 169 170 /** 171 * A record of a specific investigation that was undertaken. 172 */ 173 @Child(name = "item", type = {Observation.class, QuestionnaireResponse.class, FamilyMemberHistory.class, DiagnosticReport.class, RiskAssessment.class, ImagingStudy.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 174 @Description(shortDefinition="Record of a specific investigation", formalDefinition="A record of a specific investigation that was undertaken." ) 175 protected List<Reference> item; 176 /** 177 * The actual objects that are the target of the reference (A record of a specific investigation that was undertaken.) 178 */ 179 protected List<Resource> itemTarget; 180 181 182 private static final long serialVersionUID = -301363326L; 183 184 /** 185 * Constructor 186 */ 187 public ClinicalImpressionInvestigationComponent() { 188 super(); 189 } 190 191 /** 192 * Constructor 193 */ 194 public ClinicalImpressionInvestigationComponent(CodeableConcept code) { 195 super(); 196 this.code = code; 197 } 198 199 /** 200 * @return {@link #code} (A name/code for the group ("set") of investigations. Typically, this will be something like "signs", "symptoms", "clinical", "diagnostic", but the list is not constrained, and others such groups such as (exposure|family|travel|nutitirional) history may be used.) 201 */ 202 public CodeableConcept getCode() { 203 if (this.code == null) 204 if (Configuration.errorOnAutoCreate()) 205 throw new Error("Attempt to auto-create ClinicalImpressionInvestigationComponent.code"); 206 else if (Configuration.doAutoCreate()) 207 this.code = new CodeableConcept(); // cc 208 return this.code; 209 } 210 211 public boolean hasCode() { 212 return this.code != null && !this.code.isEmpty(); 213 } 214 215 /** 216 * @param value {@link #code} (A name/code for the group ("set") of investigations. Typically, this will be something like "signs", "symptoms", "clinical", "diagnostic", but the list is not constrained, and others such groups such as (exposure|family|travel|nutitirional) history may be used.) 217 */ 218 public ClinicalImpressionInvestigationComponent setCode(CodeableConcept value) { 219 this.code = value; 220 return this; 221 } 222 223 /** 224 * @return {@link #item} (A record of a specific investigation that was undertaken.) 225 */ 226 public List<Reference> getItem() { 227 if (this.item == null) 228 this.item = new ArrayList<Reference>(); 229 return this.item; 230 } 231 232 /** 233 * @return Returns a reference to <code>this</code> for easy method chaining 234 */ 235 public ClinicalImpressionInvestigationComponent setItem(List<Reference> theItem) { 236 this.item = theItem; 237 return this; 238 } 239 240 public boolean hasItem() { 241 if (this.item == null) 242 return false; 243 for (Reference item : this.item) 244 if (!item.isEmpty()) 245 return true; 246 return false; 247 } 248 249 public Reference addItem() { //3 250 Reference t = new Reference(); 251 if (this.item == null) 252 this.item = new ArrayList<Reference>(); 253 this.item.add(t); 254 return t; 255 } 256 257 public ClinicalImpressionInvestigationComponent addItem(Reference t) { //3 258 if (t == null) 259 return this; 260 if (this.item == null) 261 this.item = new ArrayList<Reference>(); 262 this.item.add(t); 263 return this; 264 } 265 266 /** 267 * @return The first repetition of repeating field {@link #item}, creating it if it does not already exist 268 */ 269 public Reference getItemFirstRep() { 270 if (getItem().isEmpty()) { 271 addItem(); 272 } 273 return getItem().get(0); 274 } 275 276 /** 277 * @deprecated Use Reference#setResource(IBaseResource) instead 278 */ 279 @Deprecated 280 public List<Resource> getItemTarget() { 281 if (this.itemTarget == null) 282 this.itemTarget = new ArrayList<Resource>(); 283 return this.itemTarget; 284 } 285 286 protected void listChildren(List<Property> children) { 287 super.listChildren(children); 288 children.add(new Property("code", "CodeableConcept", "A name/code for the group (\"set\") of investigations. Typically, this will be something like \"signs\", \"symptoms\", \"clinical\", \"diagnostic\", but the list is not constrained, and others such groups such as (exposure|family|travel|nutitirional) history may be used.", 0, 1, code)); 289 children.add(new Property("item", "Reference(Observation|QuestionnaireResponse|FamilyMemberHistory|DiagnosticReport|RiskAssessment|ImagingStudy)", "A record of a specific investigation that was undertaken.", 0, java.lang.Integer.MAX_VALUE, item)); 290 } 291 292 @Override 293 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 294 switch (_hash) { 295 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "A name/code for the group (\"set\") of investigations. Typically, this will be something like \"signs\", \"symptoms\", \"clinical\", \"diagnostic\", but the list is not constrained, and others such groups such as (exposure|family|travel|nutitirional) history may be used.", 0, 1, code); 296 case 3242771: /*item*/ return new Property("item", "Reference(Observation|QuestionnaireResponse|FamilyMemberHistory|DiagnosticReport|RiskAssessment|ImagingStudy)", "A record of a specific investigation that was undertaken.", 0, java.lang.Integer.MAX_VALUE, item); 297 default: return super.getNamedProperty(_hash, _name, _checkValid); 298 } 299 300 } 301 302 @Override 303 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 304 switch (hash) { 305 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 306 case 3242771: /*item*/ return this.item == null ? new Base[0] : this.item.toArray(new Base[this.item.size()]); // Reference 307 default: return super.getProperty(hash, name, checkValid); 308 } 309 310 } 311 312 @Override 313 public Base setProperty(int hash, String name, Base value) throws FHIRException { 314 switch (hash) { 315 case 3059181: // code 316 this.code = castToCodeableConcept(value); // CodeableConcept 317 return value; 318 case 3242771: // item 319 this.getItem().add(castToReference(value)); // Reference 320 return value; 321 default: return super.setProperty(hash, name, value); 322 } 323 324 } 325 326 @Override 327 public Base setProperty(String name, Base value) throws FHIRException { 328 if (name.equals("code")) { 329 this.code = castToCodeableConcept(value); // CodeableConcept 330 } else if (name.equals("item")) { 331 this.getItem().add(castToReference(value)); 332 } else 333 return super.setProperty(name, value); 334 return value; 335 } 336 337 @Override 338 public Base makeProperty(int hash, String name) throws FHIRException { 339 switch (hash) { 340 case 3059181: return getCode(); 341 case 3242771: return addItem(); 342 default: return super.makeProperty(hash, name); 343 } 344 345 } 346 347 @Override 348 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 349 switch (hash) { 350 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 351 case 3242771: /*item*/ return new String[] {"Reference"}; 352 default: return super.getTypesForProperty(hash, name); 353 } 354 355 } 356 357 @Override 358 public Base addChild(String name) throws FHIRException { 359 if (name.equals("code")) { 360 this.code = new CodeableConcept(); 361 return this.code; 362 } 363 else if (name.equals("item")) { 364 return addItem(); 365 } 366 else 367 return super.addChild(name); 368 } 369 370 public ClinicalImpressionInvestigationComponent copy() { 371 ClinicalImpressionInvestigationComponent dst = new ClinicalImpressionInvestigationComponent(); 372 copyValues(dst); 373 dst.code = code == null ? null : code.copy(); 374 if (item != null) { 375 dst.item = new ArrayList<Reference>(); 376 for (Reference i : item) 377 dst.item.add(i.copy()); 378 }; 379 return dst; 380 } 381 382 @Override 383 public boolean equalsDeep(Base other_) { 384 if (!super.equalsDeep(other_)) 385 return false; 386 if (!(other_ instanceof ClinicalImpressionInvestigationComponent)) 387 return false; 388 ClinicalImpressionInvestigationComponent o = (ClinicalImpressionInvestigationComponent) other_; 389 return compareDeep(code, o.code, true) && compareDeep(item, o.item, true); 390 } 391 392 @Override 393 public boolean equalsShallow(Base other_) { 394 if (!super.equalsShallow(other_)) 395 return false; 396 if (!(other_ instanceof ClinicalImpressionInvestigationComponent)) 397 return false; 398 ClinicalImpressionInvestigationComponent o = (ClinicalImpressionInvestigationComponent) other_; 399 return true; 400 } 401 402 public boolean isEmpty() { 403 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, item); 404 } 405 406 public String fhirType() { 407 return "ClinicalImpression.investigation"; 408 409 } 410 411 } 412 413 @Block() 414 public static class ClinicalImpressionFindingComponent extends BackboneElement implements IBaseBackboneElement { 415 /** 416 * Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions. 417 */ 418 @Child(name = "item", type = {CodeableConcept.class, Condition.class, Observation.class}, order=1, min=1, max=1, modifier=false, summary=false) 419 @Description(shortDefinition="What was found", formalDefinition="Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions." ) 420 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/condition-code") 421 protected Type item; 422 423 /** 424 * Which investigations support finding or diagnosis. 425 */ 426 @Child(name = "basis", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false) 427 @Description(shortDefinition="Which investigations support finding", formalDefinition="Which investigations support finding or diagnosis." ) 428 protected StringType basis; 429 430 private static final long serialVersionUID = 1690728236L; 431 432 /** 433 * Constructor 434 */ 435 public ClinicalImpressionFindingComponent() { 436 super(); 437 } 438 439 /** 440 * Constructor 441 */ 442 public ClinicalImpressionFindingComponent(Type item) { 443 super(); 444 this.item = item; 445 } 446 447 /** 448 * @return {@link #item} (Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.) 449 */ 450 public Type getItem() { 451 return this.item; 452 } 453 454 /** 455 * @return {@link #item} (Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.) 456 */ 457 public CodeableConcept getItemCodeableConcept() throws FHIRException { 458 if (this.item == null) 459 return null; 460 if (!(this.item instanceof CodeableConcept)) 461 throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.item.getClass().getName()+" was encountered"); 462 return (CodeableConcept) this.item; 463 } 464 465 public boolean hasItemCodeableConcept() { 466 return this != null && this.item instanceof CodeableConcept; 467 } 468 469 /** 470 * @return {@link #item} (Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.) 471 */ 472 public Reference getItemReference() throws FHIRException { 473 if (this.item == null) 474 return null; 475 if (!(this.item instanceof Reference)) 476 throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.item.getClass().getName()+" was encountered"); 477 return (Reference) this.item; 478 } 479 480 public boolean hasItemReference() { 481 return this != null && this.item instanceof Reference; 482 } 483 484 public boolean hasItem() { 485 return this.item != null && !this.item.isEmpty(); 486 } 487 488 /** 489 * @param value {@link #item} (Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.) 490 */ 491 public ClinicalImpressionFindingComponent setItem(Type value) throws FHIRFormatError { 492 if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) 493 throw new FHIRFormatError("Not the right type for ClinicalImpression.finding.item[x]: "+value.fhirType()); 494 this.item = value; 495 return this; 496 } 497 498 /** 499 * @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 500 */ 501 public StringType getBasisElement() { 502 if (this.basis == null) 503 if (Configuration.errorOnAutoCreate()) 504 throw new Error("Attempt to auto-create ClinicalImpressionFindingComponent.basis"); 505 else if (Configuration.doAutoCreate()) 506 this.basis = new StringType(); // bb 507 return this.basis; 508 } 509 510 public boolean hasBasisElement() { 511 return this.basis != null && !this.basis.isEmpty(); 512 } 513 514 public boolean hasBasis() { 515 return this.basis != null && !this.basis.isEmpty(); 516 } 517 518 /** 519 * @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 520 */ 521 public ClinicalImpressionFindingComponent setBasisElement(StringType value) { 522 this.basis = value; 523 return this; 524 } 525 526 /** 527 * @return Which investigations support finding or diagnosis. 528 */ 529 public String getBasis() { 530 return this.basis == null ? null : this.basis.getValue(); 531 } 532 533 /** 534 * @param value Which investigations support finding or diagnosis. 535 */ 536 public ClinicalImpressionFindingComponent setBasis(String value) { 537 if (Utilities.noString(value)) 538 this.basis = null; 539 else { 540 if (this.basis == null) 541 this.basis = new StringType(); 542 this.basis.setValue(value); 543 } 544 return this; 545 } 546 547 protected void listChildren(List<Property> children) { 548 super.listChildren(children); 549 children.add(new Property("item[x]", "CodeableConcept|Reference(Condition|Observation)", "Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.", 0, 1, item)); 550 children.add(new Property("basis", "string", "Which investigations support finding or diagnosis.", 0, 1, basis)); 551 } 552 553 @Override 554 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 555 switch (_hash) { 556 case 2116201613: /*item[x]*/ return new Property("item[x]", "CodeableConcept|Reference(Condition|Observation)", "Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.", 0, 1, item); 557 case 3242771: /*item*/ return new Property("item[x]", "CodeableConcept|Reference(Condition|Observation)", "Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.", 0, 1, item); 558 case 106644494: /*itemCodeableConcept*/ return new Property("item[x]", "CodeableConcept|Reference(Condition|Observation)", "Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.", 0, 1, item); 559 case 1376364920: /*itemReference*/ return new Property("item[x]", "CodeableConcept|Reference(Condition|Observation)", "Specific text, code or reference for finding or diagnosis, which may include ruled-out or resolved conditions.", 0, 1, item); 560 case 93508670: /*basis*/ return new Property("basis", "string", "Which investigations support finding or diagnosis.", 0, 1, basis); 561 default: return super.getNamedProperty(_hash, _name, _checkValid); 562 } 563 564 } 565 566 @Override 567 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 568 switch (hash) { 569 case 3242771: /*item*/ return this.item == null ? new Base[0] : new Base[] {this.item}; // Type 570 case 93508670: /*basis*/ return this.basis == null ? new Base[0] : new Base[] {this.basis}; // StringType 571 default: return super.getProperty(hash, name, checkValid); 572 } 573 574 } 575 576 @Override 577 public Base setProperty(int hash, String name, Base value) throws FHIRException { 578 switch (hash) { 579 case 3242771: // item 580 this.item = castToType(value); // Type 581 return value; 582 case 93508670: // basis 583 this.basis = castToString(value); // StringType 584 return value; 585 default: return super.setProperty(hash, name, value); 586 } 587 588 } 589 590 @Override 591 public Base setProperty(String name, Base value) throws FHIRException { 592 if (name.equals("item[x]")) { 593 this.item = castToType(value); // Type 594 } else if (name.equals("basis")) { 595 this.basis = castToString(value); // StringType 596 } else 597 return super.setProperty(name, value); 598 return value; 599 } 600 601 @Override 602 public Base makeProperty(int hash, String name) throws FHIRException { 603 switch (hash) { 604 case 2116201613: return getItem(); 605 case 3242771: return getItem(); 606 case 93508670: return getBasisElement(); 607 default: return super.makeProperty(hash, name); 608 } 609 610 } 611 612 @Override 613 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 614 switch (hash) { 615 case 3242771: /*item*/ return new String[] {"CodeableConcept", "Reference"}; 616 case 93508670: /*basis*/ return new String[] {"string"}; 617 default: return super.getTypesForProperty(hash, name); 618 } 619 620 } 621 622 @Override 623 public Base addChild(String name) throws FHIRException { 624 if (name.equals("itemCodeableConcept")) { 625 this.item = new CodeableConcept(); 626 return this.item; 627 } 628 else if (name.equals("itemReference")) { 629 this.item = new Reference(); 630 return this.item; 631 } 632 else if (name.equals("basis")) { 633 throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.basis"); 634 } 635 else 636 return super.addChild(name); 637 } 638 639 public ClinicalImpressionFindingComponent copy() { 640 ClinicalImpressionFindingComponent dst = new ClinicalImpressionFindingComponent(); 641 copyValues(dst); 642 dst.item = item == null ? null : item.copy(); 643 dst.basis = basis == null ? null : basis.copy(); 644 return dst; 645 } 646 647 @Override 648 public boolean equalsDeep(Base other_) { 649 if (!super.equalsDeep(other_)) 650 return false; 651 if (!(other_ instanceof ClinicalImpressionFindingComponent)) 652 return false; 653 ClinicalImpressionFindingComponent o = (ClinicalImpressionFindingComponent) other_; 654 return compareDeep(item, o.item, true) && compareDeep(basis, o.basis, true); 655 } 656 657 @Override 658 public boolean equalsShallow(Base other_) { 659 if (!super.equalsShallow(other_)) 660 return false; 661 if (!(other_ instanceof ClinicalImpressionFindingComponent)) 662 return false; 663 ClinicalImpressionFindingComponent o = (ClinicalImpressionFindingComponent) other_; 664 return compareValues(basis, o.basis, true); 665 } 666 667 public boolean isEmpty() { 668 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(item, basis); 669 } 670 671 public String fhirType() { 672 return "ClinicalImpression.finding"; 673 674 } 675 676 } 677 678 /** 679 * A unique identifier assigned to the clinical impression that remains consistent regardless of what server the impression is stored on. 680 */ 681 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 682 @Description(shortDefinition="Business identifier", formalDefinition="A unique identifier assigned to the clinical impression that remains consistent regardless of what server the impression is stored on." ) 683 protected List<Identifier> identifier; 684 685 /** 686 * Identifies the workflow status of the assessment. 687 */ 688 @Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) 689 @Description(shortDefinition="draft | completed | entered-in-error", formalDefinition="Identifies the workflow status of the assessment." ) 690 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/clinical-impression-status") 691 protected Enumeration<ClinicalImpressionStatus> status; 692 693 /** 694 * Categorizes the type of clinical assessment performed. 695 */ 696 @Child(name = "code", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true) 697 @Description(shortDefinition="Kind of assessment performed", formalDefinition="Categorizes the type of clinical assessment performed." ) 698 protected CodeableConcept code; 699 700 /** 701 * A summary of the context and/or cause of the assessment - why / where was it performed, and what patient events/status prompted it. 702 */ 703 @Child(name = "description", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) 704 @Description(shortDefinition="Why/how the assessment was performed", formalDefinition="A summary of the context and/or cause of the assessment - why / where was it performed, and what patient events/status prompted it." ) 705 protected StringType description; 706 707 /** 708 * The patient or group of individuals assessed as part of this record. 709 */ 710 @Child(name = "subject", type = {Patient.class, Group.class}, order=4, min=1, max=1, modifier=false, summary=true) 711 @Description(shortDefinition="Patient or group assessed", formalDefinition="The patient or group of individuals assessed as part of this record." ) 712 protected Reference subject; 713 714 /** 715 * The actual object that is the target of the reference (The patient or group of individuals assessed as part of this record.) 716 */ 717 protected Resource subjectTarget; 718 719 /** 720 * The encounter or episode of care this impression was created as part of. 721 */ 722 @Child(name = "context", type = {Encounter.class, EpisodeOfCare.class}, order=5, min=0, max=1, modifier=false, summary=true) 723 @Description(shortDefinition="Encounter or Episode created from", formalDefinition="The encounter or episode of care this impression was created as part of." ) 724 protected Reference context; 725 726 /** 727 * The actual object that is the target of the reference (The encounter or episode of care this impression was created as part of.) 728 */ 729 protected Resource contextTarget; 730 731 /** 732 * The point in time or period over which the subject was assessed. 733 */ 734 @Child(name = "effective", type = {DateTimeType.class, Period.class}, order=6, min=0, max=1, modifier=false, summary=true) 735 @Description(shortDefinition="Time of assessment", formalDefinition="The point in time or period over which the subject was assessed." ) 736 protected Type effective; 737 738 /** 739 * Indicates when the documentation of the assessment was complete. 740 */ 741 @Child(name = "date", type = {DateTimeType.class}, order=7, min=0, max=1, modifier=false, summary=true) 742 @Description(shortDefinition="When the assessment was documented", formalDefinition="Indicates when the documentation of the assessment was complete." ) 743 protected DateTimeType date; 744 745 /** 746 * The clinician performing the assessment. 747 */ 748 @Child(name = "assessor", type = {Practitioner.class}, order=8, min=0, max=1, modifier=false, summary=true) 749 @Description(shortDefinition="The clinician performing the assessment", formalDefinition="The clinician performing the assessment." ) 750 protected Reference assessor; 751 752 /** 753 * The actual object that is the target of the reference (The clinician performing the assessment.) 754 */ 755 protected Practitioner assessorTarget; 756 757 /** 758 * A reference to the last assesment that was conducted bon 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. 759 */ 760 @Child(name = "previous", type = {ClinicalImpression.class}, order=9, min=0, max=1, modifier=false, summary=false) 761 @Description(shortDefinition="Reference to last assessment", formalDefinition="A reference to the last assesment that was conducted bon 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." ) 762 protected Reference previous; 763 764 /** 765 * The actual object that is the target of the reference (A reference to the last assesment that was conducted bon 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.) 766 */ 767 protected ClinicalImpression previousTarget; 768 769 /** 770 * This a list of the relevant problems/conditions for a patient. 771 */ 772 @Child(name = "problem", type = {Condition.class, AllergyIntolerance.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 773 @Description(shortDefinition="Relevant impressions of patient state", formalDefinition="This a list of the relevant problems/conditions for a patient." ) 774 protected List<Reference> problem; 775 /** 776 * The actual objects that are the target of the reference (This a list of the relevant problems/conditions for a patient.) 777 */ 778 protected List<Resource> problemTarget; 779 780 781 /** 782 * One or more sets of investigations (signs, symptions, etc.). The actual grouping of investigations vary greatly depending on the type and context of the assessment. These investigations may include data generated during the assessment process, or data previously generated and recorded that is pertinent to the outcomes. 783 */ 784 @Child(name = "investigation", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 785 @Description(shortDefinition="One or more sets of investigations (signs, symptions, etc.)", formalDefinition="One or more sets of investigations (signs, symptions, etc.). The actual grouping of investigations vary greatly depending on the type and context of the assessment. These investigations may include data generated during the assessment process, or data previously generated and recorded that is pertinent to the outcomes." ) 786 protected List<ClinicalImpressionInvestigationComponent> investigation; 787 788 /** 789 * Reference to a specific published clinical protocol that was followed during this assessment, and/or that provides evidence in support of the diagnosis. 790 */ 791 @Child(name = "protocol", type = {UriType.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 792 @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." ) 793 protected List<UriType> protocol; 794 795 /** 796 * A text summary of the investigations and the diagnosis. 797 */ 798 @Child(name = "summary", type = {StringType.class}, order=13, min=0, max=1, modifier=false, summary=false) 799 @Description(shortDefinition="Summary of the assessment", formalDefinition="A text summary of the investigations and the diagnosis." ) 800 protected StringType summary; 801 802 /** 803 * Specific findings or diagnoses that was considered likely or relevant to ongoing treatment. 804 */ 805 @Child(name = "finding", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 806 @Description(shortDefinition="Possible or likely findings and diagnoses", formalDefinition="Specific findings or diagnoses that was considered likely or relevant to ongoing treatment." ) 807 protected List<ClinicalImpressionFindingComponent> finding; 808 809 /** 810 * Estimate of likely outcome. 811 */ 812 @Child(name = "prognosisCodeableConcept", type = {CodeableConcept.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 813 @Description(shortDefinition="Estimate of likely outcome", formalDefinition="Estimate of likely outcome." ) 814 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/clinicalimpression-prognosis") 815 protected List<CodeableConcept> prognosisCodeableConcept; 816 817 /** 818 * RiskAssessment expressing likely outcome. 819 */ 820 @Child(name = "prognosisReference", type = {RiskAssessment.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 821 @Description(shortDefinition="RiskAssessment expressing likely outcome", formalDefinition="RiskAssessment expressing likely outcome." ) 822 protected List<Reference> prognosisReference; 823 /** 824 * The actual objects that are the target of the reference (RiskAssessment expressing likely outcome.) 825 */ 826 protected List<RiskAssessment> prognosisReferenceTarget; 827 828 829 /** 830 * Action taken as part of assessment procedure. 831 */ 832 @Child(name = "action", type = {ReferralRequest.class, ProcedureRequest.class, Procedure.class, MedicationRequest.class, Appointment.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 833 @Description(shortDefinition="Action taken as part of assessment procedure", formalDefinition="Action taken as part of assessment procedure." ) 834 protected List<Reference> action; 835 /** 836 * The actual objects that are the target of the reference (Action taken as part of assessment procedure.) 837 */ 838 protected List<Resource> actionTarget; 839 840 841 /** 842 * Commentary about the impression, typically recorded after the impression itself was made, though supplemental notes by the original author could also appear. 843 */ 844 @Child(name = "note", type = {Annotation.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 845 @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." ) 846 protected List<Annotation> note; 847 848 private static final long serialVersionUID = -1626670747L; 849 850 /** 851 * Constructor 852 */ 853 public ClinicalImpression() { 854 super(); 855 } 856 857 /** 858 * Constructor 859 */ 860 public ClinicalImpression(Enumeration<ClinicalImpressionStatus> status, Reference subject) { 861 super(); 862 this.status = status; 863 this.subject = subject; 864 } 865 866 /** 867 * @return {@link #identifier} (A unique identifier assigned to the clinical impression that remains consistent regardless of what server the impression is stored on.) 868 */ 869 public List<Identifier> getIdentifier() { 870 if (this.identifier == null) 871 this.identifier = new ArrayList<Identifier>(); 872 return this.identifier; 873 } 874 875 /** 876 * @return Returns a reference to <code>this</code> for easy method chaining 877 */ 878 public ClinicalImpression setIdentifier(List<Identifier> theIdentifier) { 879 this.identifier = theIdentifier; 880 return this; 881 } 882 883 public boolean hasIdentifier() { 884 if (this.identifier == null) 885 return false; 886 for (Identifier item : this.identifier) 887 if (!item.isEmpty()) 888 return true; 889 return false; 890 } 891 892 public Identifier addIdentifier() { //3 893 Identifier t = new Identifier(); 894 if (this.identifier == null) 895 this.identifier = new ArrayList<Identifier>(); 896 this.identifier.add(t); 897 return t; 898 } 899 900 public ClinicalImpression addIdentifier(Identifier t) { //3 901 if (t == null) 902 return this; 903 if (this.identifier == null) 904 this.identifier = new ArrayList<Identifier>(); 905 this.identifier.add(t); 906 return this; 907 } 908 909 /** 910 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist 911 */ 912 public Identifier getIdentifierFirstRep() { 913 if (getIdentifier().isEmpty()) { 914 addIdentifier(); 915 } 916 return getIdentifier().get(0); 917 } 918 919 /** 920 * @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 921 */ 922 public Enumeration<ClinicalImpressionStatus> getStatusElement() { 923 if (this.status == null) 924 if (Configuration.errorOnAutoCreate()) 925 throw new Error("Attempt to auto-create ClinicalImpression.status"); 926 else if (Configuration.doAutoCreate()) 927 this.status = new Enumeration<ClinicalImpressionStatus>(new ClinicalImpressionStatusEnumFactory()); // bb 928 return this.status; 929 } 930 931 public boolean hasStatusElement() { 932 return this.status != null && !this.status.isEmpty(); 933 } 934 935 public boolean hasStatus() { 936 return this.status != null && !this.status.isEmpty(); 937 } 938 939 /** 940 * @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 941 */ 942 public ClinicalImpression setStatusElement(Enumeration<ClinicalImpressionStatus> value) { 943 this.status = value; 944 return this; 945 } 946 947 /** 948 * @return Identifies the workflow status of the assessment. 949 */ 950 public ClinicalImpressionStatus getStatus() { 951 return this.status == null ? null : this.status.getValue(); 952 } 953 954 /** 955 * @param value Identifies the workflow status of the assessment. 956 */ 957 public ClinicalImpression setStatus(ClinicalImpressionStatus value) { 958 if (this.status == null) 959 this.status = new Enumeration<ClinicalImpressionStatus>(new ClinicalImpressionStatusEnumFactory()); 960 this.status.setValue(value); 961 return this; 962 } 963 964 /** 965 * @return {@link #code} (Categorizes the type of clinical assessment performed.) 966 */ 967 public CodeableConcept getCode() { 968 if (this.code == null) 969 if (Configuration.errorOnAutoCreate()) 970 throw new Error("Attempt to auto-create ClinicalImpression.code"); 971 else if (Configuration.doAutoCreate()) 972 this.code = new CodeableConcept(); // cc 973 return this.code; 974 } 975 976 public boolean hasCode() { 977 return this.code != null && !this.code.isEmpty(); 978 } 979 980 /** 981 * @param value {@link #code} (Categorizes the type of clinical assessment performed.) 982 */ 983 public ClinicalImpression setCode(CodeableConcept value) { 984 this.code = value; 985 return this; 986 } 987 988 /** 989 * @return {@link #description} (A summary of the context and/or cause of the assessment - why / where was it 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 990 */ 991 public StringType getDescriptionElement() { 992 if (this.description == null) 993 if (Configuration.errorOnAutoCreate()) 994 throw new Error("Attempt to auto-create ClinicalImpression.description"); 995 else if (Configuration.doAutoCreate()) 996 this.description = new StringType(); // bb 997 return this.description; 998 } 999 1000 public boolean hasDescriptionElement() { 1001 return this.description != null && !this.description.isEmpty(); 1002 } 1003 1004 public boolean hasDescription() { 1005 return this.description != null && !this.description.isEmpty(); 1006 } 1007 1008 /** 1009 * @param value {@link #description} (A summary of the context and/or cause of the assessment - why / where was it 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 1010 */ 1011 public ClinicalImpression setDescriptionElement(StringType value) { 1012 this.description = value; 1013 return this; 1014 } 1015 1016 /** 1017 * @return A summary of the context and/or cause of the assessment - why / where was it performed, and what patient events/status prompted it. 1018 */ 1019 public String getDescription() { 1020 return this.description == null ? null : this.description.getValue(); 1021 } 1022 1023 /** 1024 * @param value A summary of the context and/or cause of the assessment - why / where was it performed, and what patient events/status prompted it. 1025 */ 1026 public ClinicalImpression setDescription(String value) { 1027 if (Utilities.noString(value)) 1028 this.description = null; 1029 else { 1030 if (this.description == null) 1031 this.description = new StringType(); 1032 this.description.setValue(value); 1033 } 1034 return this; 1035 } 1036 1037 /** 1038 * @return {@link #subject} (The patient or group of individuals assessed as part of this record.) 1039 */ 1040 public Reference getSubject() { 1041 if (this.subject == null) 1042 if (Configuration.errorOnAutoCreate()) 1043 throw new Error("Attempt to auto-create ClinicalImpression.subject"); 1044 else if (Configuration.doAutoCreate()) 1045 this.subject = new Reference(); // cc 1046 return this.subject; 1047 } 1048 1049 public boolean hasSubject() { 1050 return this.subject != null && !this.subject.isEmpty(); 1051 } 1052 1053 /** 1054 * @param value {@link #subject} (The patient or group of individuals assessed as part of this record.) 1055 */ 1056 public ClinicalImpression setSubject(Reference value) { 1057 this.subject = value; 1058 return this; 1059 } 1060 1061 /** 1062 * @return {@link #subject} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The patient or group of individuals assessed as part of this record.) 1063 */ 1064 public Resource getSubjectTarget() { 1065 return this.subjectTarget; 1066 } 1067 1068 /** 1069 * @param value {@link #subject} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The patient or group of individuals assessed as part of this record.) 1070 */ 1071 public ClinicalImpression setSubjectTarget(Resource value) { 1072 this.subjectTarget = value; 1073 return this; 1074 } 1075 1076 /** 1077 * @return {@link #context} (The encounter or episode of care this impression was created as part of.) 1078 */ 1079 public Reference getContext() { 1080 if (this.context == null) 1081 if (Configuration.errorOnAutoCreate()) 1082 throw new Error("Attempt to auto-create ClinicalImpression.context"); 1083 else if (Configuration.doAutoCreate()) 1084 this.context = new Reference(); // cc 1085 return this.context; 1086 } 1087 1088 public boolean hasContext() { 1089 return this.context != null && !this.context.isEmpty(); 1090 } 1091 1092 /** 1093 * @param value {@link #context} (The encounter or episode of care this impression was created as part of.) 1094 */ 1095 public ClinicalImpression setContext(Reference value) { 1096 this.context = value; 1097 return this; 1098 } 1099 1100 /** 1101 * @return {@link #context} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The encounter or episode of care this impression was created as part of.) 1102 */ 1103 public Resource getContextTarget() { 1104 return this.contextTarget; 1105 } 1106 1107 /** 1108 * @param value {@link #context} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The encounter or episode of care this impression was created as part of.) 1109 */ 1110 public ClinicalImpression setContextTarget(Resource value) { 1111 this.contextTarget = value; 1112 return this; 1113 } 1114 1115 /** 1116 * @return {@link #effective} (The point in time or period over which the subject was assessed.) 1117 */ 1118 public Type getEffective() { 1119 return this.effective; 1120 } 1121 1122 /** 1123 * @return {@link #effective} (The point in time or period over which the subject was assessed.) 1124 */ 1125 public DateTimeType getEffectiveDateTimeType() throws FHIRException { 1126 if (this.effective == null) 1127 return null; 1128 if (!(this.effective instanceof DateTimeType)) 1129 throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.effective.getClass().getName()+" was encountered"); 1130 return (DateTimeType) this.effective; 1131 } 1132 1133 public boolean hasEffectiveDateTimeType() { 1134 return this != null && this.effective instanceof DateTimeType; 1135 } 1136 1137 /** 1138 * @return {@link #effective} (The point in time or period over which the subject was assessed.) 1139 */ 1140 public Period getEffectivePeriod() throws FHIRException { 1141 if (this.effective == null) 1142 return null; 1143 if (!(this.effective instanceof Period)) 1144 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.effective.getClass().getName()+" was encountered"); 1145 return (Period) this.effective; 1146 } 1147 1148 public boolean hasEffectivePeriod() { 1149 return this != null && this.effective instanceof Period; 1150 } 1151 1152 public boolean hasEffective() { 1153 return this.effective != null && !this.effective.isEmpty(); 1154 } 1155 1156 /** 1157 * @param value {@link #effective} (The point in time or period over which the subject was assessed.) 1158 */ 1159 public ClinicalImpression setEffective(Type value) throws FHIRFormatError { 1160 if (value != null && !(value instanceof DateTimeType || value instanceof Period)) 1161 throw new FHIRFormatError("Not the right type for ClinicalImpression.effective[x]: "+value.fhirType()); 1162 this.effective = value; 1163 return this; 1164 } 1165 1166 /** 1167 * @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 1168 */ 1169 public DateTimeType getDateElement() { 1170 if (this.date == null) 1171 if (Configuration.errorOnAutoCreate()) 1172 throw new Error("Attempt to auto-create ClinicalImpression.date"); 1173 else if (Configuration.doAutoCreate()) 1174 this.date = new DateTimeType(); // bb 1175 return this.date; 1176 } 1177 1178 public boolean hasDateElement() { 1179 return this.date != null && !this.date.isEmpty(); 1180 } 1181 1182 public boolean hasDate() { 1183 return this.date != null && !this.date.isEmpty(); 1184 } 1185 1186 /** 1187 * @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 1188 */ 1189 public ClinicalImpression setDateElement(DateTimeType value) { 1190 this.date = value; 1191 return this; 1192 } 1193 1194 /** 1195 * @return Indicates when the documentation of the assessment was complete. 1196 */ 1197 public Date getDate() { 1198 return this.date == null ? null : this.date.getValue(); 1199 } 1200 1201 /** 1202 * @param value Indicates when the documentation of the assessment was complete. 1203 */ 1204 public ClinicalImpression setDate(Date value) { 1205 if (value == null) 1206 this.date = null; 1207 else { 1208 if (this.date == null) 1209 this.date = new DateTimeType(); 1210 this.date.setValue(value); 1211 } 1212 return this; 1213 } 1214 1215 /** 1216 * @return {@link #assessor} (The clinician performing the assessment.) 1217 */ 1218 public Reference getAssessor() { 1219 if (this.assessor == null) 1220 if (Configuration.errorOnAutoCreate()) 1221 throw new Error("Attempt to auto-create ClinicalImpression.assessor"); 1222 else if (Configuration.doAutoCreate()) 1223 this.assessor = new Reference(); // cc 1224 return this.assessor; 1225 } 1226 1227 public boolean hasAssessor() { 1228 return this.assessor != null && !this.assessor.isEmpty(); 1229 } 1230 1231 /** 1232 * @param value {@link #assessor} (The clinician performing the assessment.) 1233 */ 1234 public ClinicalImpression setAssessor(Reference value) { 1235 this.assessor = value; 1236 return this; 1237 } 1238 1239 /** 1240 * @return {@link #assessor} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The clinician performing the assessment.) 1241 */ 1242 public Practitioner getAssessorTarget() { 1243 if (this.assessorTarget == null) 1244 if (Configuration.errorOnAutoCreate()) 1245 throw new Error("Attempt to auto-create ClinicalImpression.assessor"); 1246 else if (Configuration.doAutoCreate()) 1247 this.assessorTarget = new Practitioner(); // aa 1248 return this.assessorTarget; 1249 } 1250 1251 /** 1252 * @param value {@link #assessor} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The clinician performing the assessment.) 1253 */ 1254 public ClinicalImpression setAssessorTarget(Practitioner value) { 1255 this.assessorTarget = value; 1256 return this; 1257 } 1258 1259 /** 1260 * @return {@link #previous} (A reference to the last assesment that was conducted bon 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.) 1261 */ 1262 public Reference getPrevious() { 1263 if (this.previous == null) 1264 if (Configuration.errorOnAutoCreate()) 1265 throw new Error("Attempt to auto-create ClinicalImpression.previous"); 1266 else if (Configuration.doAutoCreate()) 1267 this.previous = new Reference(); // cc 1268 return this.previous; 1269 } 1270 1271 public boolean hasPrevious() { 1272 return this.previous != null && !this.previous.isEmpty(); 1273 } 1274 1275 /** 1276 * @param value {@link #previous} (A reference to the last assesment that was conducted bon 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.) 1277 */ 1278 public ClinicalImpression setPrevious(Reference value) { 1279 this.previous = value; 1280 return this; 1281 } 1282 1283 /** 1284 * @return {@link #previous} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A reference to the last assesment that was conducted bon 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.) 1285 */ 1286 public ClinicalImpression getPreviousTarget() { 1287 if (this.previousTarget == null) 1288 if (Configuration.errorOnAutoCreate()) 1289 throw new Error("Attempt to auto-create ClinicalImpression.previous"); 1290 else if (Configuration.doAutoCreate()) 1291 this.previousTarget = new ClinicalImpression(); // aa 1292 return this.previousTarget; 1293 } 1294 1295 /** 1296 * @param value {@link #previous} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A reference to the last assesment that was conducted bon 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.) 1297 */ 1298 public ClinicalImpression setPreviousTarget(ClinicalImpression value) { 1299 this.previousTarget = value; 1300 return this; 1301 } 1302 1303 /** 1304 * @return {@link #problem} (This a list of the relevant problems/conditions for a patient.) 1305 */ 1306 public List<Reference> getProblem() { 1307 if (this.problem == null) 1308 this.problem = new ArrayList<Reference>(); 1309 return this.problem; 1310 } 1311 1312 /** 1313 * @return Returns a reference to <code>this</code> for easy method chaining 1314 */ 1315 public ClinicalImpression setProblem(List<Reference> theProblem) { 1316 this.problem = theProblem; 1317 return this; 1318 } 1319 1320 public boolean hasProblem() { 1321 if (this.problem == null) 1322 return false; 1323 for (Reference item : this.problem) 1324 if (!item.isEmpty()) 1325 return true; 1326 return false; 1327 } 1328 1329 public Reference addProblem() { //3 1330 Reference t = new Reference(); 1331 if (this.problem == null) 1332 this.problem = new ArrayList<Reference>(); 1333 this.problem.add(t); 1334 return t; 1335 } 1336 1337 public ClinicalImpression addProblem(Reference t) { //3 1338 if (t == null) 1339 return this; 1340 if (this.problem == null) 1341 this.problem = new ArrayList<Reference>(); 1342 this.problem.add(t); 1343 return this; 1344 } 1345 1346 /** 1347 * @return The first repetition of repeating field {@link #problem}, creating it if it does not already exist 1348 */ 1349 public Reference getProblemFirstRep() { 1350 if (getProblem().isEmpty()) { 1351 addProblem(); 1352 } 1353 return getProblem().get(0); 1354 } 1355 1356 /** 1357 * @deprecated Use Reference#setResource(IBaseResource) instead 1358 */ 1359 @Deprecated 1360 public List<Resource> getProblemTarget() { 1361 if (this.problemTarget == null) 1362 this.problemTarget = new ArrayList<Resource>(); 1363 return this.problemTarget; 1364 } 1365 1366 /** 1367 * @return {@link #investigation} (One or more sets of investigations (signs, symptions, etc.). The actual grouping of investigations vary greatly depending on the type and context of the assessment. These investigations may include data generated during the assessment process, or data previously generated and recorded that is pertinent to the outcomes.) 1368 */ 1369 public List<ClinicalImpressionInvestigationComponent> getInvestigation() { 1370 if (this.investigation == null) 1371 this.investigation = new ArrayList<ClinicalImpressionInvestigationComponent>(); 1372 return this.investigation; 1373 } 1374 1375 /** 1376 * @return Returns a reference to <code>this</code> for easy method chaining 1377 */ 1378 public ClinicalImpression setInvestigation(List<ClinicalImpressionInvestigationComponent> theInvestigation) { 1379 this.investigation = theInvestigation; 1380 return this; 1381 } 1382 1383 public boolean hasInvestigation() { 1384 if (this.investigation == null) 1385 return false; 1386 for (ClinicalImpressionInvestigationComponent item : this.investigation) 1387 if (!item.isEmpty()) 1388 return true; 1389 return false; 1390 } 1391 1392 public ClinicalImpressionInvestigationComponent addInvestigation() { //3 1393 ClinicalImpressionInvestigationComponent t = new ClinicalImpressionInvestigationComponent(); 1394 if (this.investigation == null) 1395 this.investigation = new ArrayList<ClinicalImpressionInvestigationComponent>(); 1396 this.investigation.add(t); 1397 return t; 1398 } 1399 1400 public ClinicalImpression addInvestigation(ClinicalImpressionInvestigationComponent t) { //3 1401 if (t == null) 1402 return this; 1403 if (this.investigation == null) 1404 this.investigation = new ArrayList<ClinicalImpressionInvestigationComponent>(); 1405 this.investigation.add(t); 1406 return this; 1407 } 1408 1409 /** 1410 * @return The first repetition of repeating field {@link #investigation}, creating it if it does not already exist 1411 */ 1412 public ClinicalImpressionInvestigationComponent getInvestigationFirstRep() { 1413 if (getInvestigation().isEmpty()) { 1414 addInvestigation(); 1415 } 1416 return getInvestigation().get(0); 1417 } 1418 1419 /** 1420 * @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.) 1421 */ 1422 public List<UriType> getProtocol() { 1423 if (this.protocol == null) 1424 this.protocol = new ArrayList<UriType>(); 1425 return this.protocol; 1426 } 1427 1428 /** 1429 * @return Returns a reference to <code>this</code> for easy method chaining 1430 */ 1431 public ClinicalImpression setProtocol(List<UriType> theProtocol) { 1432 this.protocol = theProtocol; 1433 return this; 1434 } 1435 1436 public boolean hasProtocol() { 1437 if (this.protocol == null) 1438 return false; 1439 for (UriType item : this.protocol) 1440 if (!item.isEmpty()) 1441 return true; 1442 return false; 1443 } 1444 1445 /** 1446 * @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.) 1447 */ 1448 public UriType addProtocolElement() {//2 1449 UriType t = new UriType(); 1450 if (this.protocol == null) 1451 this.protocol = new ArrayList<UriType>(); 1452 this.protocol.add(t); 1453 return t; 1454 } 1455 1456 /** 1457 * @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.) 1458 */ 1459 public ClinicalImpression addProtocol(String value) { //1 1460 UriType t = new UriType(); 1461 t.setValue(value); 1462 if (this.protocol == null) 1463 this.protocol = new ArrayList<UriType>(); 1464 this.protocol.add(t); 1465 return this; 1466 } 1467 1468 /** 1469 * @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.) 1470 */ 1471 public boolean hasProtocol(String value) { 1472 if (this.protocol == null) 1473 return false; 1474 for (UriType v : this.protocol) 1475 if (v.getValue().equals(value)) // uri 1476 return true; 1477 return false; 1478 } 1479 1480 /** 1481 * @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 1482 */ 1483 public StringType getSummaryElement() { 1484 if (this.summary == null) 1485 if (Configuration.errorOnAutoCreate()) 1486 throw new Error("Attempt to auto-create ClinicalImpression.summary"); 1487 else if (Configuration.doAutoCreate()) 1488 this.summary = new StringType(); // bb 1489 return this.summary; 1490 } 1491 1492 public boolean hasSummaryElement() { 1493 return this.summary != null && !this.summary.isEmpty(); 1494 } 1495 1496 public boolean hasSummary() { 1497 return this.summary != null && !this.summary.isEmpty(); 1498 } 1499 1500 /** 1501 * @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 1502 */ 1503 public ClinicalImpression setSummaryElement(StringType value) { 1504 this.summary = value; 1505 return this; 1506 } 1507 1508 /** 1509 * @return A text summary of the investigations and the diagnosis. 1510 */ 1511 public String getSummary() { 1512 return this.summary == null ? null : this.summary.getValue(); 1513 } 1514 1515 /** 1516 * @param value A text summary of the investigations and the diagnosis. 1517 */ 1518 public ClinicalImpression setSummary(String value) { 1519 if (Utilities.noString(value)) 1520 this.summary = null; 1521 else { 1522 if (this.summary == null) 1523 this.summary = new StringType(); 1524 this.summary.setValue(value); 1525 } 1526 return this; 1527 } 1528 1529 /** 1530 * @return {@link #finding} (Specific findings or diagnoses that was considered likely or relevant to ongoing treatment.) 1531 */ 1532 public List<ClinicalImpressionFindingComponent> getFinding() { 1533 if (this.finding == null) 1534 this.finding = new ArrayList<ClinicalImpressionFindingComponent>(); 1535 return this.finding; 1536 } 1537 1538 /** 1539 * @return Returns a reference to <code>this</code> for easy method chaining 1540 */ 1541 public ClinicalImpression setFinding(List<ClinicalImpressionFindingComponent> theFinding) { 1542 this.finding = theFinding; 1543 return this; 1544 } 1545 1546 public boolean hasFinding() { 1547 if (this.finding == null) 1548 return false; 1549 for (ClinicalImpressionFindingComponent item : this.finding) 1550 if (!item.isEmpty()) 1551 return true; 1552 return false; 1553 } 1554 1555 public ClinicalImpressionFindingComponent addFinding() { //3 1556 ClinicalImpressionFindingComponent t = new ClinicalImpressionFindingComponent(); 1557 if (this.finding == null) 1558 this.finding = new ArrayList<ClinicalImpressionFindingComponent>(); 1559 this.finding.add(t); 1560 return t; 1561 } 1562 1563 public ClinicalImpression addFinding(ClinicalImpressionFindingComponent t) { //3 1564 if (t == null) 1565 return this; 1566 if (this.finding == null) 1567 this.finding = new ArrayList<ClinicalImpressionFindingComponent>(); 1568 this.finding.add(t); 1569 return this; 1570 } 1571 1572 /** 1573 * @return The first repetition of repeating field {@link #finding}, creating it if it does not already exist 1574 */ 1575 public ClinicalImpressionFindingComponent getFindingFirstRep() { 1576 if (getFinding().isEmpty()) { 1577 addFinding(); 1578 } 1579 return getFinding().get(0); 1580 } 1581 1582 /** 1583 * @return {@link #prognosisCodeableConcept} (Estimate of likely outcome.) 1584 */ 1585 public List<CodeableConcept> getPrognosisCodeableConcept() { 1586 if (this.prognosisCodeableConcept == null) 1587 this.prognosisCodeableConcept = new ArrayList<CodeableConcept>(); 1588 return this.prognosisCodeableConcept; 1589 } 1590 1591 /** 1592 * @return Returns a reference to <code>this</code> for easy method chaining 1593 */ 1594 public ClinicalImpression setPrognosisCodeableConcept(List<CodeableConcept> thePrognosisCodeableConcept) { 1595 this.prognosisCodeableConcept = thePrognosisCodeableConcept; 1596 return this; 1597 } 1598 1599 public boolean hasPrognosisCodeableConcept() { 1600 if (this.prognosisCodeableConcept == null) 1601 return false; 1602 for (CodeableConcept item : this.prognosisCodeableConcept) 1603 if (!item.isEmpty()) 1604 return true; 1605 return false; 1606 } 1607 1608 public CodeableConcept addPrognosisCodeableConcept() { //3 1609 CodeableConcept t = new CodeableConcept(); 1610 if (this.prognosisCodeableConcept == null) 1611 this.prognosisCodeableConcept = new ArrayList<CodeableConcept>(); 1612 this.prognosisCodeableConcept.add(t); 1613 return t; 1614 } 1615 1616 public ClinicalImpression addPrognosisCodeableConcept(CodeableConcept t) { //3 1617 if (t == null) 1618 return this; 1619 if (this.prognosisCodeableConcept == null) 1620 this.prognosisCodeableConcept = new ArrayList<CodeableConcept>(); 1621 this.prognosisCodeableConcept.add(t); 1622 return this; 1623 } 1624 1625 /** 1626 * @return The first repetition of repeating field {@link #prognosisCodeableConcept}, creating it if it does not already exist 1627 */ 1628 public CodeableConcept getPrognosisCodeableConceptFirstRep() { 1629 if (getPrognosisCodeableConcept().isEmpty()) { 1630 addPrognosisCodeableConcept(); 1631 } 1632 return getPrognosisCodeableConcept().get(0); 1633 } 1634 1635 /** 1636 * @return {@link #prognosisReference} (RiskAssessment expressing likely outcome.) 1637 */ 1638 public List<Reference> getPrognosisReference() { 1639 if (this.prognosisReference == null) 1640 this.prognosisReference = new ArrayList<Reference>(); 1641 return this.prognosisReference; 1642 } 1643 1644 /** 1645 * @return Returns a reference to <code>this</code> for easy method chaining 1646 */ 1647 public ClinicalImpression setPrognosisReference(List<Reference> thePrognosisReference) { 1648 this.prognosisReference = thePrognosisReference; 1649 return this; 1650 } 1651 1652 public boolean hasPrognosisReference() { 1653 if (this.prognosisReference == null) 1654 return false; 1655 for (Reference item : this.prognosisReference) 1656 if (!item.isEmpty()) 1657 return true; 1658 return false; 1659 } 1660 1661 public Reference addPrognosisReference() { //3 1662 Reference t = new Reference(); 1663 if (this.prognosisReference == null) 1664 this.prognosisReference = new ArrayList<Reference>(); 1665 this.prognosisReference.add(t); 1666 return t; 1667 } 1668 1669 public ClinicalImpression addPrognosisReference(Reference t) { //3 1670 if (t == null) 1671 return this; 1672 if (this.prognosisReference == null) 1673 this.prognosisReference = new ArrayList<Reference>(); 1674 this.prognosisReference.add(t); 1675 return this; 1676 } 1677 1678 /** 1679 * @return The first repetition of repeating field {@link #prognosisReference}, creating it if it does not already exist 1680 */ 1681 public Reference getPrognosisReferenceFirstRep() { 1682 if (getPrognosisReference().isEmpty()) { 1683 addPrognosisReference(); 1684 } 1685 return getPrognosisReference().get(0); 1686 } 1687 1688 /** 1689 * @deprecated Use Reference#setResource(IBaseResource) instead 1690 */ 1691 @Deprecated 1692 public List<RiskAssessment> getPrognosisReferenceTarget() { 1693 if (this.prognosisReferenceTarget == null) 1694 this.prognosisReferenceTarget = new ArrayList<RiskAssessment>(); 1695 return this.prognosisReferenceTarget; 1696 } 1697 1698 /** 1699 * @deprecated Use Reference#setResource(IBaseResource) instead 1700 */ 1701 @Deprecated 1702 public RiskAssessment addPrognosisReferenceTarget() { 1703 RiskAssessment r = new RiskAssessment(); 1704 if (this.prognosisReferenceTarget == null) 1705 this.prognosisReferenceTarget = new ArrayList<RiskAssessment>(); 1706 this.prognosisReferenceTarget.add(r); 1707 return r; 1708 } 1709 1710 /** 1711 * @return {@link #action} (Action taken as part of assessment procedure.) 1712 */ 1713 public List<Reference> getAction() { 1714 if (this.action == null) 1715 this.action = new ArrayList<Reference>(); 1716 return this.action; 1717 } 1718 1719 /** 1720 * @return Returns a reference to <code>this</code> for easy method chaining 1721 */ 1722 public ClinicalImpression setAction(List<Reference> theAction) { 1723 this.action = theAction; 1724 return this; 1725 } 1726 1727 public boolean hasAction() { 1728 if (this.action == null) 1729 return false; 1730 for (Reference item : this.action) 1731 if (!item.isEmpty()) 1732 return true; 1733 return false; 1734 } 1735 1736 public Reference addAction() { //3 1737 Reference t = new Reference(); 1738 if (this.action == null) 1739 this.action = new ArrayList<Reference>(); 1740 this.action.add(t); 1741 return t; 1742 } 1743 1744 public ClinicalImpression addAction(Reference t) { //3 1745 if (t == null) 1746 return this; 1747 if (this.action == null) 1748 this.action = new ArrayList<Reference>(); 1749 this.action.add(t); 1750 return this; 1751 } 1752 1753 /** 1754 * @return The first repetition of repeating field {@link #action}, creating it if it does not already exist 1755 */ 1756 public Reference getActionFirstRep() { 1757 if (getAction().isEmpty()) { 1758 addAction(); 1759 } 1760 return getAction().get(0); 1761 } 1762 1763 /** 1764 * @deprecated Use Reference#setResource(IBaseResource) instead 1765 */ 1766 @Deprecated 1767 public List<Resource> getActionTarget() { 1768 if (this.actionTarget == null) 1769 this.actionTarget = new ArrayList<Resource>(); 1770 return this.actionTarget; 1771 } 1772 1773 /** 1774 * @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.) 1775 */ 1776 public List<Annotation> getNote() { 1777 if (this.note == null) 1778 this.note = new ArrayList<Annotation>(); 1779 return this.note; 1780 } 1781 1782 /** 1783 * @return Returns a reference to <code>this</code> for easy method chaining 1784 */ 1785 public ClinicalImpression setNote(List<Annotation> theNote) { 1786 this.note = theNote; 1787 return this; 1788 } 1789 1790 public boolean hasNote() { 1791 if (this.note == null) 1792 return false; 1793 for (Annotation item : this.note) 1794 if (!item.isEmpty()) 1795 return true; 1796 return false; 1797 } 1798 1799 public Annotation addNote() { //3 1800 Annotation t = new Annotation(); 1801 if (this.note == null) 1802 this.note = new ArrayList<Annotation>(); 1803 this.note.add(t); 1804 return t; 1805 } 1806 1807 public ClinicalImpression addNote(Annotation t) { //3 1808 if (t == null) 1809 return this; 1810 if (this.note == null) 1811 this.note = new ArrayList<Annotation>(); 1812 this.note.add(t); 1813 return this; 1814 } 1815 1816 /** 1817 * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist 1818 */ 1819 public Annotation getNoteFirstRep() { 1820 if (getNote().isEmpty()) { 1821 addNote(); 1822 } 1823 return getNote().get(0); 1824 } 1825 1826 protected void listChildren(List<Property> children) { 1827 super.listChildren(children); 1828 children.add(new Property("identifier", "Identifier", "A unique identifier assigned to the clinical impression that remains consistent regardless of what server the impression is stored on.", 0, java.lang.Integer.MAX_VALUE, identifier)); 1829 children.add(new Property("status", "code", "Identifies the workflow status of the assessment.", 0, 1, status)); 1830 children.add(new Property("code", "CodeableConcept", "Categorizes the type of clinical assessment performed.", 0, 1, code)); 1831 children.add(new Property("description", "string", "A summary of the context and/or cause of the assessment - why / where was it performed, and what patient events/status prompted it.", 0, 1, description)); 1832 children.add(new Property("subject", "Reference(Patient|Group)", "The patient or group of individuals assessed as part of this record.", 0, 1, subject)); 1833 children.add(new Property("context", "Reference(Encounter|EpisodeOfCare)", "The encounter or episode of care this impression was created as part of.", 0, 1, context)); 1834 children.add(new Property("effective[x]", "dateTime|Period", "The point in time or period over which the subject was assessed.", 0, 1, effective)); 1835 children.add(new Property("date", "dateTime", "Indicates when the documentation of the assessment was complete.", 0, 1, date)); 1836 children.add(new Property("assessor", "Reference(Practitioner)", "The clinician performing the assessment.", 0, 1, assessor)); 1837 children.add(new Property("previous", "Reference(ClinicalImpression)", "A reference to the last assesment that was conducted bon 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)); 1838 children.add(new Property("problem", "Reference(Condition|AllergyIntolerance)", "This a list of the relevant problems/conditions for a patient.", 0, java.lang.Integer.MAX_VALUE, problem)); 1839 children.add(new Property("investigation", "", "One or more sets of investigations (signs, symptions, etc.). The actual grouping of investigations vary greatly depending on the type and context of the assessment. These investigations may include data generated during the assessment process, or data previously generated and recorded that is pertinent to the outcomes.", 0, java.lang.Integer.MAX_VALUE, investigation)); 1840 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)); 1841 children.add(new Property("summary", "string", "A text summary of the investigations and the diagnosis.", 0, 1, summary)); 1842 children.add(new Property("finding", "", "Specific findings or diagnoses that was considered likely or relevant to ongoing treatment.", 0, java.lang.Integer.MAX_VALUE, finding)); 1843 children.add(new Property("prognosisCodeableConcept", "CodeableConcept", "Estimate of likely outcome.", 0, java.lang.Integer.MAX_VALUE, prognosisCodeableConcept)); 1844 children.add(new Property("prognosisReference", "Reference(RiskAssessment)", "RiskAssessment expressing likely outcome.", 0, java.lang.Integer.MAX_VALUE, prognosisReference)); 1845 children.add(new Property("action", "Reference(ReferralRequest|ProcedureRequest|Procedure|MedicationRequest|Appointment)", "Action taken as part of assessment procedure.", 0, java.lang.Integer.MAX_VALUE, action)); 1846 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)); 1847 } 1848 1849 @Override 1850 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1851 switch (_hash) { 1852 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "A unique identifier assigned to the clinical impression that remains consistent regardless of what server the impression is stored on.", 0, java.lang.Integer.MAX_VALUE, identifier); 1853 case -892481550: /*status*/ return new Property("status", "code", "Identifies the workflow status of the assessment.", 0, 1, status); 1854 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Categorizes the type of clinical assessment performed.", 0, 1, code); 1855 case -1724546052: /*description*/ return new Property("description", "string", "A summary of the context and/or cause of the assessment - why / where was it performed, and what patient events/status prompted it.", 0, 1, description); 1856 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); 1857 case 951530927: /*context*/ return new Property("context", "Reference(Encounter|EpisodeOfCare)", "The encounter or episode of care this impression was created as part of.", 0, 1, context); 1858 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); 1859 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); 1860 case -275306910: /*effectiveDateTime*/ return new Property("effective[x]", "dateTime|Period", "The point in time or period over which the subject was assessed.", 0, 1, effective); 1861 case -403934648: /*effectivePeriod*/ return new Property("effective[x]", "dateTime|Period", "The point in time or period over which the subject was assessed.", 0, 1, effective); 1862 case 3076014: /*date*/ return new Property("date", "dateTime", "Indicates when the documentation of the assessment was complete.", 0, 1, date); 1863 case -373213113: /*assessor*/ return new Property("assessor", "Reference(Practitioner)", "The clinician performing the assessment.", 0, 1, assessor); 1864 case -1273775369: /*previous*/ return new Property("previous", "Reference(ClinicalImpression)", "A reference to the last assesment that was conducted bon 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); 1865 case -309542241: /*problem*/ return new Property("problem", "Reference(Condition|AllergyIntolerance)", "This a list of the relevant problems/conditions for a patient.", 0, java.lang.Integer.MAX_VALUE, problem); 1866 case 956015362: /*investigation*/ return new Property("investigation", "", "One or more sets of investigations (signs, symptions, etc.). The actual grouping of investigations vary greatly depending on the type and context of the assessment. These investigations may include data generated during the assessment process, or data previously generated and recorded that is pertinent to the outcomes.", 0, java.lang.Integer.MAX_VALUE, investigation); 1867 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); 1868 case -1857640538: /*summary*/ return new Property("summary", "string", "A text summary of the investigations and the diagnosis.", 0, 1, summary); 1869 case -853173367: /*finding*/ return new Property("finding", "", "Specific findings or diagnoses that was considered likely or relevant to ongoing treatment.", 0, java.lang.Integer.MAX_VALUE, finding); 1870 case -676337953: /*prognosisCodeableConcept*/ return new Property("prognosisCodeableConcept", "CodeableConcept", "Estimate of likely outcome.", 0, java.lang.Integer.MAX_VALUE, prognosisCodeableConcept); 1871 case -587137783: /*prognosisReference*/ return new Property("prognosisReference", "Reference(RiskAssessment)", "RiskAssessment expressing likely outcome.", 0, java.lang.Integer.MAX_VALUE, prognosisReference); 1872 case -1422950858: /*action*/ return new Property("action", "Reference(ReferralRequest|ProcedureRequest|Procedure|MedicationRequest|Appointment)", "Action taken as part of assessment procedure.", 0, java.lang.Integer.MAX_VALUE, action); 1873 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); 1874 default: return super.getNamedProperty(_hash, _name, _checkValid); 1875 } 1876 1877 } 1878 1879 @Override 1880 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1881 switch (hash) { 1882 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 1883 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<ClinicalImpressionStatus> 1884 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 1885 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType 1886 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 1887 case 951530927: /*context*/ return this.context == null ? new Base[0] : new Base[] {this.context}; // Reference 1888 case -1468651097: /*effective*/ return this.effective == null ? new Base[0] : new Base[] {this.effective}; // Type 1889 case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType 1890 case -373213113: /*assessor*/ return this.assessor == null ? new Base[0] : new Base[] {this.assessor}; // Reference 1891 case -1273775369: /*previous*/ return this.previous == null ? new Base[0] : new Base[] {this.previous}; // Reference 1892 case -309542241: /*problem*/ return this.problem == null ? new Base[0] : this.problem.toArray(new Base[this.problem.size()]); // Reference 1893 case 956015362: /*investigation*/ return this.investigation == null ? new Base[0] : this.investigation.toArray(new Base[this.investigation.size()]); // ClinicalImpressionInvestigationComponent 1894 case -989163880: /*protocol*/ return this.protocol == null ? new Base[0] : this.protocol.toArray(new Base[this.protocol.size()]); // UriType 1895 case -1857640538: /*summary*/ return this.summary == null ? new Base[0] : new Base[] {this.summary}; // StringType 1896 case -853173367: /*finding*/ return this.finding == null ? new Base[0] : this.finding.toArray(new Base[this.finding.size()]); // ClinicalImpressionFindingComponent 1897 case -676337953: /*prognosisCodeableConcept*/ return this.prognosisCodeableConcept == null ? new Base[0] : this.prognosisCodeableConcept.toArray(new Base[this.prognosisCodeableConcept.size()]); // CodeableConcept 1898 case -587137783: /*prognosisReference*/ return this.prognosisReference == null ? new Base[0] : this.prognosisReference.toArray(new Base[this.prognosisReference.size()]); // Reference 1899 case -1422950858: /*action*/ return this.action == null ? new Base[0] : this.action.toArray(new Base[this.action.size()]); // Reference 1900 case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation 1901 default: return super.getProperty(hash, name, checkValid); 1902 } 1903 1904 } 1905 1906 @Override 1907 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1908 switch (hash) { 1909 case -1618432855: // identifier 1910 this.getIdentifier().add(castToIdentifier(value)); // Identifier 1911 return value; 1912 case -892481550: // status 1913 value = new ClinicalImpressionStatusEnumFactory().fromType(castToCode(value)); 1914 this.status = (Enumeration) value; // Enumeration<ClinicalImpressionStatus> 1915 return value; 1916 case 3059181: // code 1917 this.code = castToCodeableConcept(value); // CodeableConcept 1918 return value; 1919 case -1724546052: // description 1920 this.description = castToString(value); // StringType 1921 return value; 1922 case -1867885268: // subject 1923 this.subject = castToReference(value); // Reference 1924 return value; 1925 case 951530927: // context 1926 this.context = castToReference(value); // Reference 1927 return value; 1928 case -1468651097: // effective 1929 this.effective = castToType(value); // Type 1930 return value; 1931 case 3076014: // date 1932 this.date = castToDateTime(value); // DateTimeType 1933 return value; 1934 case -373213113: // assessor 1935 this.assessor = castToReference(value); // Reference 1936 return value; 1937 case -1273775369: // previous 1938 this.previous = castToReference(value); // Reference 1939 return value; 1940 case -309542241: // problem 1941 this.getProblem().add(castToReference(value)); // Reference 1942 return value; 1943 case 956015362: // investigation 1944 this.getInvestigation().add((ClinicalImpressionInvestigationComponent) value); // ClinicalImpressionInvestigationComponent 1945 return value; 1946 case -989163880: // protocol 1947 this.getProtocol().add(castToUri(value)); // UriType 1948 return value; 1949 case -1857640538: // summary 1950 this.summary = castToString(value); // StringType 1951 return value; 1952 case -853173367: // finding 1953 this.getFinding().add((ClinicalImpressionFindingComponent) value); // ClinicalImpressionFindingComponent 1954 return value; 1955 case -676337953: // prognosisCodeableConcept 1956 this.getPrognosisCodeableConcept().add(castToCodeableConcept(value)); // CodeableConcept 1957 return value; 1958 case -587137783: // prognosisReference 1959 this.getPrognosisReference().add(castToReference(value)); // Reference 1960 return value; 1961 case -1422950858: // action 1962 this.getAction().add(castToReference(value)); // Reference 1963 return value; 1964 case 3387378: // note 1965 this.getNote().add(castToAnnotation(value)); // Annotation 1966 return value; 1967 default: return super.setProperty(hash, name, value); 1968 } 1969 1970 } 1971 1972 @Override 1973 public Base setProperty(String name, Base value) throws FHIRException { 1974 if (name.equals("identifier")) { 1975 this.getIdentifier().add(castToIdentifier(value)); 1976 } else if (name.equals("status")) { 1977 value = new ClinicalImpressionStatusEnumFactory().fromType(castToCode(value)); 1978 this.status = (Enumeration) value; // Enumeration<ClinicalImpressionStatus> 1979 } else if (name.equals("code")) { 1980 this.code = castToCodeableConcept(value); // CodeableConcept 1981 } else if (name.equals("description")) { 1982 this.description = castToString(value); // StringType 1983 } else if (name.equals("subject")) { 1984 this.subject = castToReference(value); // Reference 1985 } else if (name.equals("context")) { 1986 this.context = castToReference(value); // Reference 1987 } else if (name.equals("effective[x]")) { 1988 this.effective = castToType(value); // Type 1989 } else if (name.equals("date")) { 1990 this.date = castToDateTime(value); // DateTimeType 1991 } else if (name.equals("assessor")) { 1992 this.assessor = castToReference(value); // Reference 1993 } else if (name.equals("previous")) { 1994 this.previous = castToReference(value); // Reference 1995 } else if (name.equals("problem")) { 1996 this.getProblem().add(castToReference(value)); 1997 } else if (name.equals("investigation")) { 1998 this.getInvestigation().add((ClinicalImpressionInvestigationComponent) value); 1999 } else if (name.equals("protocol")) { 2000 this.getProtocol().add(castToUri(value)); 2001 } else if (name.equals("summary")) { 2002 this.summary = castToString(value); // StringType 2003 } else if (name.equals("finding")) { 2004 this.getFinding().add((ClinicalImpressionFindingComponent) value); 2005 } else if (name.equals("prognosisCodeableConcept")) { 2006 this.getPrognosisCodeableConcept().add(castToCodeableConcept(value)); 2007 } else if (name.equals("prognosisReference")) { 2008 this.getPrognosisReference().add(castToReference(value)); 2009 } else if (name.equals("action")) { 2010 this.getAction().add(castToReference(value)); 2011 } else if (name.equals("note")) { 2012 this.getNote().add(castToAnnotation(value)); 2013 } else 2014 return super.setProperty(name, value); 2015 return value; 2016 } 2017 2018 @Override 2019 public Base makeProperty(int hash, String name) throws FHIRException { 2020 switch (hash) { 2021 case -1618432855: return addIdentifier(); 2022 case -892481550: return getStatusElement(); 2023 case 3059181: return getCode(); 2024 case -1724546052: return getDescriptionElement(); 2025 case -1867885268: return getSubject(); 2026 case 951530927: return getContext(); 2027 case 247104889: return getEffective(); 2028 case -1468651097: return getEffective(); 2029 case 3076014: return getDateElement(); 2030 case -373213113: return getAssessor(); 2031 case -1273775369: return getPrevious(); 2032 case -309542241: return addProblem(); 2033 case 956015362: return addInvestigation(); 2034 case -989163880: return addProtocolElement(); 2035 case -1857640538: return getSummaryElement(); 2036 case -853173367: return addFinding(); 2037 case -676337953: return addPrognosisCodeableConcept(); 2038 case -587137783: return addPrognosisReference(); 2039 case -1422950858: return addAction(); 2040 case 3387378: return addNote(); 2041 default: return super.makeProperty(hash, name); 2042 } 2043 2044 } 2045 2046 @Override 2047 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 2048 switch (hash) { 2049 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 2050 case -892481550: /*status*/ return new String[] {"code"}; 2051 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 2052 case -1724546052: /*description*/ return new String[] {"string"}; 2053 case -1867885268: /*subject*/ return new String[] {"Reference"}; 2054 case 951530927: /*context*/ return new String[] {"Reference"}; 2055 case -1468651097: /*effective*/ return new String[] {"dateTime", "Period"}; 2056 case 3076014: /*date*/ return new String[] {"dateTime"}; 2057 case -373213113: /*assessor*/ return new String[] {"Reference"}; 2058 case -1273775369: /*previous*/ return new String[] {"Reference"}; 2059 case -309542241: /*problem*/ return new String[] {"Reference"}; 2060 case 956015362: /*investigation*/ return new String[] {}; 2061 case -989163880: /*protocol*/ return new String[] {"uri"}; 2062 case -1857640538: /*summary*/ return new String[] {"string"}; 2063 case -853173367: /*finding*/ return new String[] {}; 2064 case -676337953: /*prognosisCodeableConcept*/ return new String[] {"CodeableConcept"}; 2065 case -587137783: /*prognosisReference*/ return new String[] {"Reference"}; 2066 case -1422950858: /*action*/ return new String[] {"Reference"}; 2067 case 3387378: /*note*/ return new String[] {"Annotation"}; 2068 default: return super.getTypesForProperty(hash, name); 2069 } 2070 2071 } 2072 2073 @Override 2074 public Base addChild(String name) throws FHIRException { 2075 if (name.equals("identifier")) { 2076 return addIdentifier(); 2077 } 2078 else if (name.equals("status")) { 2079 throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.status"); 2080 } 2081 else if (name.equals("code")) { 2082 this.code = new CodeableConcept(); 2083 return this.code; 2084 } 2085 else if (name.equals("description")) { 2086 throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.description"); 2087 } 2088 else if (name.equals("subject")) { 2089 this.subject = new Reference(); 2090 return this.subject; 2091 } 2092 else if (name.equals("context")) { 2093 this.context = new Reference(); 2094 return this.context; 2095 } 2096 else if (name.equals("effectiveDateTime")) { 2097 this.effective = new DateTimeType(); 2098 return this.effective; 2099 } 2100 else if (name.equals("effectivePeriod")) { 2101 this.effective = new Period(); 2102 return this.effective; 2103 } 2104 else if (name.equals("date")) { 2105 throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.date"); 2106 } 2107 else if (name.equals("assessor")) { 2108 this.assessor = new Reference(); 2109 return this.assessor; 2110 } 2111 else if (name.equals("previous")) { 2112 this.previous = new Reference(); 2113 return this.previous; 2114 } 2115 else if (name.equals("problem")) { 2116 return addProblem(); 2117 } 2118 else if (name.equals("investigation")) { 2119 return addInvestigation(); 2120 } 2121 else if (name.equals("protocol")) { 2122 throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.protocol"); 2123 } 2124 else if (name.equals("summary")) { 2125 throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.summary"); 2126 } 2127 else if (name.equals("finding")) { 2128 return addFinding(); 2129 } 2130 else if (name.equals("prognosisCodeableConcept")) { 2131 return addPrognosisCodeableConcept(); 2132 } 2133 else if (name.equals("prognosisReference")) { 2134 return addPrognosisReference(); 2135 } 2136 else if (name.equals("action")) { 2137 return addAction(); 2138 } 2139 else if (name.equals("note")) { 2140 return addNote(); 2141 } 2142 else 2143 return super.addChild(name); 2144 } 2145 2146 public String fhirType() { 2147 return "ClinicalImpression"; 2148 2149 } 2150 2151 public ClinicalImpression copy() { 2152 ClinicalImpression dst = new ClinicalImpression(); 2153 copyValues(dst); 2154 if (identifier != null) { 2155 dst.identifier = new ArrayList<Identifier>(); 2156 for (Identifier i : identifier) 2157 dst.identifier.add(i.copy()); 2158 }; 2159 dst.status = status == null ? null : status.copy(); 2160 dst.code = code == null ? null : code.copy(); 2161 dst.description = description == null ? null : description.copy(); 2162 dst.subject = subject == null ? null : subject.copy(); 2163 dst.context = context == null ? null : context.copy(); 2164 dst.effective = effective == null ? null : effective.copy(); 2165 dst.date = date == null ? null : date.copy(); 2166 dst.assessor = assessor == null ? null : assessor.copy(); 2167 dst.previous = previous == null ? null : previous.copy(); 2168 if (problem != null) { 2169 dst.problem = new ArrayList<Reference>(); 2170 for (Reference i : problem) 2171 dst.problem.add(i.copy()); 2172 }; 2173 if (investigation != null) { 2174 dst.investigation = new ArrayList<ClinicalImpressionInvestigationComponent>(); 2175 for (ClinicalImpressionInvestigationComponent i : investigation) 2176 dst.investigation.add(i.copy()); 2177 }; 2178 if (protocol != null) { 2179 dst.protocol = new ArrayList<UriType>(); 2180 for (UriType i : protocol) 2181 dst.protocol.add(i.copy()); 2182 }; 2183 dst.summary = summary == null ? null : summary.copy(); 2184 if (finding != null) { 2185 dst.finding = new ArrayList<ClinicalImpressionFindingComponent>(); 2186 for (ClinicalImpressionFindingComponent i : finding) 2187 dst.finding.add(i.copy()); 2188 }; 2189 if (prognosisCodeableConcept != null) { 2190 dst.prognosisCodeableConcept = new ArrayList<CodeableConcept>(); 2191 for (CodeableConcept i : prognosisCodeableConcept) 2192 dst.prognosisCodeableConcept.add(i.copy()); 2193 }; 2194 if (prognosisReference != null) { 2195 dst.prognosisReference = new ArrayList<Reference>(); 2196 for (Reference i : prognosisReference) 2197 dst.prognosisReference.add(i.copy()); 2198 }; 2199 if (action != null) { 2200 dst.action = new ArrayList<Reference>(); 2201 for (Reference i : action) 2202 dst.action.add(i.copy()); 2203 }; 2204 if (note != null) { 2205 dst.note = new ArrayList<Annotation>(); 2206 for (Annotation i : note) 2207 dst.note.add(i.copy()); 2208 }; 2209 return dst; 2210 } 2211 2212 protected ClinicalImpression typedCopy() { 2213 return copy(); 2214 } 2215 2216 @Override 2217 public boolean equalsDeep(Base other_) { 2218 if (!super.equalsDeep(other_)) 2219 return false; 2220 if (!(other_ instanceof ClinicalImpression)) 2221 return false; 2222 ClinicalImpression o = (ClinicalImpression) other_; 2223 return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(code, o.code, true) 2224 && compareDeep(description, o.description, true) && compareDeep(subject, o.subject, true) && compareDeep(context, o.context, true) 2225 && compareDeep(effective, o.effective, true) && compareDeep(date, o.date, true) && compareDeep(assessor, o.assessor, true) 2226 && compareDeep(previous, o.previous, true) && compareDeep(problem, o.problem, true) && compareDeep(investigation, o.investigation, true) 2227 && compareDeep(protocol, o.protocol, true) && compareDeep(summary, o.summary, true) && compareDeep(finding, o.finding, true) 2228 && compareDeep(prognosisCodeableConcept, o.prognosisCodeableConcept, true) && compareDeep(prognosisReference, o.prognosisReference, true) 2229 && compareDeep(action, o.action, true) && compareDeep(note, o.note, true); 2230 } 2231 2232 @Override 2233 public boolean equalsShallow(Base other_) { 2234 if (!super.equalsShallow(other_)) 2235 return false; 2236 if (!(other_ instanceof ClinicalImpression)) 2237 return false; 2238 ClinicalImpression o = (ClinicalImpression) other_; 2239 return compareValues(status, o.status, true) && compareValues(description, o.description, true) && compareValues(date, o.date, true) 2240 && compareValues(protocol, o.protocol, true) && compareValues(summary, o.summary, true); 2241 } 2242 2243 public boolean isEmpty() { 2244 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, code 2245 , description, subject, context, effective, date, assessor, previous, problem 2246 , investigation, protocol, summary, finding, prognosisCodeableConcept, prognosisReference 2247 , action, note); 2248 } 2249 2250 @Override 2251 public ResourceType getResourceType() { 2252 return ResourceType.ClinicalImpression; 2253 } 2254 2255 /** 2256 * Search parameter: <b>date</b> 2257 * <p> 2258 * Description: <b>When the assessment was documented</b><br> 2259 * Type: <b>date</b><br> 2260 * Path: <b>ClinicalImpression.date</b><br> 2261 * </p> 2262 */ 2263 @SearchParamDefinition(name="date", path="ClinicalImpression.date", description="When the assessment was documented", type="date" ) 2264 public static final String SP_DATE = "date"; 2265 /** 2266 * <b>Fluent Client</b> search parameter constant for <b>date</b> 2267 * <p> 2268 * Description: <b>When the assessment was documented</b><br> 2269 * Type: <b>date</b><br> 2270 * Path: <b>ClinicalImpression.date</b><br> 2271 * </p> 2272 */ 2273 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 2274 2275 /** 2276 * Search parameter: <b>identifier</b> 2277 * <p> 2278 * Description: <b>Business identifier</b><br> 2279 * Type: <b>token</b><br> 2280 * Path: <b>ClinicalImpression.identifier</b><br> 2281 * </p> 2282 */ 2283 @SearchParamDefinition(name="identifier", path="ClinicalImpression.identifier", description="Business identifier", type="token" ) 2284 public static final String SP_IDENTIFIER = "identifier"; 2285 /** 2286 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 2287 * <p> 2288 * Description: <b>Business identifier</b><br> 2289 * Type: <b>token</b><br> 2290 * Path: <b>ClinicalImpression.identifier</b><br> 2291 * </p> 2292 */ 2293 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 2294 2295 /** 2296 * Search parameter: <b>previous</b> 2297 * <p> 2298 * Description: <b>Reference to last assessment</b><br> 2299 * Type: <b>reference</b><br> 2300 * Path: <b>ClinicalImpression.previous</b><br> 2301 * </p> 2302 */ 2303 @SearchParamDefinition(name="previous", path="ClinicalImpression.previous", description="Reference to last assessment", type="reference", target={ClinicalImpression.class } ) 2304 public static final String SP_PREVIOUS = "previous"; 2305 /** 2306 * <b>Fluent Client</b> search parameter constant for <b>previous</b> 2307 * <p> 2308 * Description: <b>Reference to last assessment</b><br> 2309 * Type: <b>reference</b><br> 2310 * Path: <b>ClinicalImpression.previous</b><br> 2311 * </p> 2312 */ 2313 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PREVIOUS = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PREVIOUS); 2314 2315/** 2316 * Constant for fluent queries to be used to add include statements. Specifies 2317 * the path value of "<b>ClinicalImpression:previous</b>". 2318 */ 2319 public static final ca.uhn.fhir.model.api.Include INCLUDE_PREVIOUS = new ca.uhn.fhir.model.api.Include("ClinicalImpression:previous").toLocked(); 2320 2321 /** 2322 * Search parameter: <b>finding-code</b> 2323 * <p> 2324 * Description: <b>What was found</b><br> 2325 * Type: <b>token</b><br> 2326 * Path: <b>ClinicalImpression.finding.item[x]</b><br> 2327 * </p> 2328 */ 2329 @SearchParamDefinition(name="finding-code", path="ClinicalImpression.finding.item.as(CodeableConcept)", description="What was found", type="token" ) 2330 public static final String SP_FINDING_CODE = "finding-code"; 2331 /** 2332 * <b>Fluent Client</b> search parameter constant for <b>finding-code</b> 2333 * <p> 2334 * Description: <b>What was found</b><br> 2335 * Type: <b>token</b><br> 2336 * Path: <b>ClinicalImpression.finding.item[x]</b><br> 2337 * </p> 2338 */ 2339 public static final ca.uhn.fhir.rest.gclient.TokenClientParam FINDING_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FINDING_CODE); 2340 2341 /** 2342 * Search parameter: <b>assessor</b> 2343 * <p> 2344 * Description: <b>The clinician performing the assessment</b><br> 2345 * Type: <b>reference</b><br> 2346 * Path: <b>ClinicalImpression.assessor</b><br> 2347 * </p> 2348 */ 2349 @SearchParamDefinition(name="assessor", path="ClinicalImpression.assessor", description="The clinician performing the assessment", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") }, target={Practitioner.class } ) 2350 public static final String SP_ASSESSOR = "assessor"; 2351 /** 2352 * <b>Fluent Client</b> search parameter constant for <b>assessor</b> 2353 * <p> 2354 * Description: <b>The clinician performing the assessment</b><br> 2355 * Type: <b>reference</b><br> 2356 * Path: <b>ClinicalImpression.assessor</b><br> 2357 * </p> 2358 */ 2359 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ASSESSOR = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ASSESSOR); 2360 2361/** 2362 * Constant for fluent queries to be used to add include statements. Specifies 2363 * the path value of "<b>ClinicalImpression:assessor</b>". 2364 */ 2365 public static final ca.uhn.fhir.model.api.Include INCLUDE_ASSESSOR = new ca.uhn.fhir.model.api.Include("ClinicalImpression:assessor").toLocked(); 2366 2367 /** 2368 * Search parameter: <b>subject</b> 2369 * <p> 2370 * Description: <b>Patient or group assessed</b><br> 2371 * Type: <b>reference</b><br> 2372 * Path: <b>ClinicalImpression.subject</b><br> 2373 * </p> 2374 */ 2375 @SearchParamDefinition(name="subject", path="ClinicalImpression.subject", description="Patient or group assessed", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") }, target={Group.class, Patient.class } ) 2376 public static final String SP_SUBJECT = "subject"; 2377 /** 2378 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 2379 * <p> 2380 * Description: <b>Patient or group assessed</b><br> 2381 * Type: <b>reference</b><br> 2382 * Path: <b>ClinicalImpression.subject</b><br> 2383 * </p> 2384 */ 2385 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 2386 2387/** 2388 * Constant for fluent queries to be used to add include statements. Specifies 2389 * the path value of "<b>ClinicalImpression:subject</b>". 2390 */ 2391 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("ClinicalImpression:subject").toLocked(); 2392 2393 /** 2394 * Search parameter: <b>finding-ref</b> 2395 * <p> 2396 * Description: <b>What was found</b><br> 2397 * Type: <b>reference</b><br> 2398 * Path: <b>ClinicalImpression.finding.item[x]</b><br> 2399 * </p> 2400 */ 2401 @SearchParamDefinition(name="finding-ref", path="ClinicalImpression.finding.item.as(Reference)", description="What was found", type="reference", target={Condition.class, Observation.class } ) 2402 public static final String SP_FINDING_REF = "finding-ref"; 2403 /** 2404 * <b>Fluent Client</b> search parameter constant for <b>finding-ref</b> 2405 * <p> 2406 * Description: <b>What was found</b><br> 2407 * Type: <b>reference</b><br> 2408 * Path: <b>ClinicalImpression.finding.item[x]</b><br> 2409 * </p> 2410 */ 2411 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam FINDING_REF = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_FINDING_REF); 2412 2413/** 2414 * Constant for fluent queries to be used to add include statements. Specifies 2415 * the path value of "<b>ClinicalImpression:finding-ref</b>". 2416 */ 2417 public static final ca.uhn.fhir.model.api.Include INCLUDE_FINDING_REF = new ca.uhn.fhir.model.api.Include("ClinicalImpression:finding-ref").toLocked(); 2418 2419 /** 2420 * Search parameter: <b>problem</b> 2421 * <p> 2422 * Description: <b>Relevant impressions of patient state</b><br> 2423 * Type: <b>reference</b><br> 2424 * Path: <b>ClinicalImpression.problem</b><br> 2425 * </p> 2426 */ 2427 @SearchParamDefinition(name="problem", path="ClinicalImpression.problem", description="Relevant impressions of patient state", type="reference", target={AllergyIntolerance.class, Condition.class } ) 2428 public static final String SP_PROBLEM = "problem"; 2429 /** 2430 * <b>Fluent Client</b> search parameter constant for <b>problem</b> 2431 * <p> 2432 * Description: <b>Relevant impressions of patient state</b><br> 2433 * Type: <b>reference</b><br> 2434 * Path: <b>ClinicalImpression.problem</b><br> 2435 * </p> 2436 */ 2437 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PROBLEM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PROBLEM); 2438 2439/** 2440 * Constant for fluent queries to be used to add include statements. Specifies 2441 * the path value of "<b>ClinicalImpression:problem</b>". 2442 */ 2443 public static final ca.uhn.fhir.model.api.Include INCLUDE_PROBLEM = new ca.uhn.fhir.model.api.Include("ClinicalImpression:problem").toLocked(); 2444 2445 /** 2446 * Search parameter: <b>patient</b> 2447 * <p> 2448 * Description: <b>Patient or group assessed</b><br> 2449 * Type: <b>reference</b><br> 2450 * Path: <b>ClinicalImpression.subject</b><br> 2451 * </p> 2452 */ 2453 @SearchParamDefinition(name="patient", path="ClinicalImpression.subject", description="Patient or group assessed", type="reference", target={Patient.class } ) 2454 public static final String SP_PATIENT = "patient"; 2455 /** 2456 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 2457 * <p> 2458 * Description: <b>Patient or group assessed</b><br> 2459 * Type: <b>reference</b><br> 2460 * Path: <b>ClinicalImpression.subject</b><br> 2461 * </p> 2462 */ 2463 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 2464 2465/** 2466 * Constant for fluent queries to be used to add include statements. Specifies 2467 * the path value of "<b>ClinicalImpression:patient</b>". 2468 */ 2469 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("ClinicalImpression:patient").toLocked(); 2470 2471 /** 2472 * Search parameter: <b>context</b> 2473 * <p> 2474 * Description: <b>Encounter or Episode created from</b><br> 2475 * Type: <b>reference</b><br> 2476 * Path: <b>ClinicalImpression.context</b><br> 2477 * </p> 2478 */ 2479 @SearchParamDefinition(name="context", path="ClinicalImpression.context", description="Encounter or Episode created from", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Encounter") }, target={Encounter.class, EpisodeOfCare.class } ) 2480 public static final String SP_CONTEXT = "context"; 2481 /** 2482 * <b>Fluent Client</b> search parameter constant for <b>context</b> 2483 * <p> 2484 * Description: <b>Encounter or Episode created from</b><br> 2485 * Type: <b>reference</b><br> 2486 * Path: <b>ClinicalImpression.context</b><br> 2487 * </p> 2488 */ 2489 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_CONTEXT); 2490 2491/** 2492 * Constant for fluent queries to be used to add include statements. Specifies 2493 * the path value of "<b>ClinicalImpression:context</b>". 2494 */ 2495 public static final ca.uhn.fhir.model.api.Include INCLUDE_CONTEXT = new ca.uhn.fhir.model.api.Include("ClinicalImpression:context").toLocked(); 2496 2497 /** 2498 * Search parameter: <b>investigation</b> 2499 * <p> 2500 * Description: <b>Record of a specific investigation</b><br> 2501 * Type: <b>reference</b><br> 2502 * Path: <b>ClinicalImpression.investigation.item</b><br> 2503 * </p> 2504 */ 2505 @SearchParamDefinition(name="investigation", path="ClinicalImpression.investigation.item", description="Record of a specific investigation", type="reference", target={DiagnosticReport.class, FamilyMemberHistory.class, ImagingStudy.class, Observation.class, QuestionnaireResponse.class, RiskAssessment.class } ) 2506 public static final String SP_INVESTIGATION = "investigation"; 2507 /** 2508 * <b>Fluent Client</b> search parameter constant for <b>investigation</b> 2509 * <p> 2510 * Description: <b>Record of a specific investigation</b><br> 2511 * Type: <b>reference</b><br> 2512 * Path: <b>ClinicalImpression.investigation.item</b><br> 2513 * </p> 2514 */ 2515 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INVESTIGATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INVESTIGATION); 2516 2517/** 2518 * Constant for fluent queries to be used to add include statements. Specifies 2519 * the path value of "<b>ClinicalImpression:investigation</b>". 2520 */ 2521 public static final ca.uhn.fhir.model.api.Include INCLUDE_INVESTIGATION = new ca.uhn.fhir.model.api.Include("ClinicalImpression:investigation").toLocked(); 2522 2523 /** 2524 * Search parameter: <b>action</b> 2525 * <p> 2526 * Description: <b>Action taken as part of assessment procedure</b><br> 2527 * Type: <b>reference</b><br> 2528 * Path: <b>ClinicalImpression.action</b><br> 2529 * </p> 2530 */ 2531 @SearchParamDefinition(name="action", path="ClinicalImpression.action", description="Action taken as part of assessment procedure", type="reference", target={Appointment.class, MedicationRequest.class, Procedure.class, ProcedureRequest.class, ReferralRequest.class } ) 2532 public static final String SP_ACTION = "action"; 2533 /** 2534 * <b>Fluent Client</b> search parameter constant for <b>action</b> 2535 * <p> 2536 * Description: <b>Action taken as part of assessment procedure</b><br> 2537 * Type: <b>reference</b><br> 2538 * Path: <b>ClinicalImpression.action</b><br> 2539 * </p> 2540 */ 2541 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ACTION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ACTION); 2542 2543/** 2544 * Constant for fluent queries to be used to add include statements. Specifies 2545 * the path value of "<b>ClinicalImpression:action</b>". 2546 */ 2547 public static final ca.uhn.fhir.model.api.Include INCLUDE_ACTION = new ca.uhn.fhir.model.api.Include("ClinicalImpression:action").toLocked(); 2548 2549 /** 2550 * Search parameter: <b>status</b> 2551 * <p> 2552 * Description: <b>draft | completed | entered-in-error</b><br> 2553 * Type: <b>token</b><br> 2554 * Path: <b>ClinicalImpression.status</b><br> 2555 * </p> 2556 */ 2557 @SearchParamDefinition(name="status", path="ClinicalImpression.status", description="draft | completed | entered-in-error", type="token" ) 2558 public static final String SP_STATUS = "status"; 2559 /** 2560 * <b>Fluent Client</b> search parameter constant for <b>status</b> 2561 * <p> 2562 * Description: <b>draft | completed | entered-in-error</b><br> 2563 * Type: <b>token</b><br> 2564 * Path: <b>ClinicalImpression.status</b><br> 2565 * </p> 2566 */ 2567 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 2568 2569 2570} 2571