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 java.math.*; 037import org.hl7.fhir.utilities.Utilities; 038import ca.uhn.fhir.model.api.annotation.ResourceDef; 039import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 040import ca.uhn.fhir.model.api.annotation.Child; 041import ca.uhn.fhir.model.api.annotation.ChildOrder; 042import ca.uhn.fhir.model.api.annotation.Description; 043import ca.uhn.fhir.model.api.annotation.Block; 044import org.hl7.fhir.instance.model.api.*; 045import org.hl7.fhir.exceptions.FHIRException; 046import org.hl7.fhir.exceptions.FHIRFormatError; 047/** 048 * An assessment of the likely outcome(s) for a patient or other subject as well as the likelihood of each outcome. 049 */ 050@ResourceDef(name="RiskAssessment", profile="http://hl7.org/fhir/StructureDefinition/RiskAssessment") 051public class RiskAssessment extends DomainResource { 052 053 public enum RiskAssessmentStatus { 054 /** 055 * The existence of the observation is registered, but there is no result yet available. 056 */ 057 REGISTERED, 058 /** 059 * This is an initial or interim observation: data may be incomplete or unverified. 060 */ 061 PRELIMINARY, 062 /** 063 * The observation is complete. 064 */ 065 FINAL, 066 /** 067 * Subsequent to being Final, the observation has been modified subsequent. This includes updates/new information and corrections. 068 */ 069 AMENDED, 070 /** 071 * Subsequent to being Final, the observation has been modified to correct an error in the test result. 072 */ 073 CORRECTED, 074 /** 075 * The observation is unavailable because the measurement was not started or not completed (also sometimes called "aborted"). 076 */ 077 CANCELLED, 078 /** 079 * The observation has been withdrawn following previous final release. This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be "cancelled" rather than "entered-in-error".) 080 */ 081 ENTEREDINERROR, 082 /** 083 * The authoring system does not know which of the status values currently applies for this request. Note: This concept is not to be used for "other" - one of the listed statuses is presumed to apply, but the authoring system does not know which. 084 */ 085 UNKNOWN, 086 /** 087 * added to help the parsers with the generic types 088 */ 089 NULL; 090 public static RiskAssessmentStatus fromCode(String codeString) throws FHIRException { 091 if (codeString == null || "".equals(codeString)) 092 return null; 093 if ("registered".equals(codeString)) 094 return REGISTERED; 095 if ("preliminary".equals(codeString)) 096 return PRELIMINARY; 097 if ("final".equals(codeString)) 098 return FINAL; 099 if ("amended".equals(codeString)) 100 return AMENDED; 101 if ("corrected".equals(codeString)) 102 return CORRECTED; 103 if ("cancelled".equals(codeString)) 104 return CANCELLED; 105 if ("entered-in-error".equals(codeString)) 106 return ENTEREDINERROR; 107 if ("unknown".equals(codeString)) 108 return UNKNOWN; 109 if (Configuration.isAcceptInvalidEnums()) 110 return null; 111 else 112 throw new FHIRException("Unknown RiskAssessmentStatus code '"+codeString+"'"); 113 } 114 public String toCode() { 115 switch (this) { 116 case REGISTERED: return "registered"; 117 case PRELIMINARY: return "preliminary"; 118 case FINAL: return "final"; 119 case AMENDED: return "amended"; 120 case CORRECTED: return "corrected"; 121 case CANCELLED: return "cancelled"; 122 case ENTEREDINERROR: return "entered-in-error"; 123 case UNKNOWN: return "unknown"; 124 default: return "?"; 125 } 126 } 127 public String getSystem() { 128 switch (this) { 129 case REGISTERED: return "http://hl7.org/fhir/observation-status"; 130 case PRELIMINARY: return "http://hl7.org/fhir/observation-status"; 131 case FINAL: return "http://hl7.org/fhir/observation-status"; 132 case AMENDED: return "http://hl7.org/fhir/observation-status"; 133 case CORRECTED: return "http://hl7.org/fhir/observation-status"; 134 case CANCELLED: return "http://hl7.org/fhir/observation-status"; 135 case ENTEREDINERROR: return "http://hl7.org/fhir/observation-status"; 136 case UNKNOWN: return "http://hl7.org/fhir/observation-status"; 137 default: return "?"; 138 } 139 } 140 public String getDefinition() { 141 switch (this) { 142 case REGISTERED: return "The existence of the observation is registered, but there is no result yet available."; 143 case PRELIMINARY: return "This is an initial or interim observation: data may be incomplete or unverified."; 144 case FINAL: return "The observation is complete."; 145 case AMENDED: return "Subsequent to being Final, the observation has been modified subsequent. This includes updates/new information and corrections."; 146 case CORRECTED: return "Subsequent to being Final, the observation has been modified to correct an error in the test result."; 147 case CANCELLED: return "The observation is unavailable because the measurement was not started or not completed (also sometimes called \"aborted\")."; 148 case ENTEREDINERROR: return "The observation has been withdrawn following previous final release. This electronic record should never have existed, though it is possible that real-world decisions were based on it. (If real-world activity has occurred, the status should be \"cancelled\" rather than \"entered-in-error\".)"; 149 case UNKNOWN: return "The authoring system does not know which of the status values currently applies for this request. Note: This concept is not to be used for \"other\" - one of the listed statuses is presumed to apply, but the authoring system does not know which."; 150 default: return "?"; 151 } 152 } 153 public String getDisplay() { 154 switch (this) { 155 case REGISTERED: return "Registered"; 156 case PRELIMINARY: return "Preliminary"; 157 case FINAL: return "Final"; 158 case AMENDED: return "Amended"; 159 case CORRECTED: return "Corrected"; 160 case CANCELLED: return "Cancelled"; 161 case ENTEREDINERROR: return "Entered in Error"; 162 case UNKNOWN: return "Unknown"; 163 default: return "?"; 164 } 165 } 166 } 167 168 public static class RiskAssessmentStatusEnumFactory implements EnumFactory<RiskAssessmentStatus> { 169 public RiskAssessmentStatus fromCode(String codeString) throws IllegalArgumentException { 170 if (codeString == null || "".equals(codeString)) 171 if (codeString == null || "".equals(codeString)) 172 return null; 173 if ("registered".equals(codeString)) 174 return RiskAssessmentStatus.REGISTERED; 175 if ("preliminary".equals(codeString)) 176 return RiskAssessmentStatus.PRELIMINARY; 177 if ("final".equals(codeString)) 178 return RiskAssessmentStatus.FINAL; 179 if ("amended".equals(codeString)) 180 return RiskAssessmentStatus.AMENDED; 181 if ("corrected".equals(codeString)) 182 return RiskAssessmentStatus.CORRECTED; 183 if ("cancelled".equals(codeString)) 184 return RiskAssessmentStatus.CANCELLED; 185 if ("entered-in-error".equals(codeString)) 186 return RiskAssessmentStatus.ENTEREDINERROR; 187 if ("unknown".equals(codeString)) 188 return RiskAssessmentStatus.UNKNOWN; 189 throw new IllegalArgumentException("Unknown RiskAssessmentStatus code '"+codeString+"'"); 190 } 191 public Enumeration<RiskAssessmentStatus> fromType(Base code) throws FHIRException { 192 if (code == null) 193 return null; 194 if (code.isEmpty()) 195 return new Enumeration<RiskAssessmentStatus>(this); 196 String codeString = ((PrimitiveType) code).asStringValue(); 197 if (codeString == null || "".equals(codeString)) 198 return null; 199 if ("registered".equals(codeString)) 200 return new Enumeration<RiskAssessmentStatus>(this, RiskAssessmentStatus.REGISTERED); 201 if ("preliminary".equals(codeString)) 202 return new Enumeration<RiskAssessmentStatus>(this, RiskAssessmentStatus.PRELIMINARY); 203 if ("final".equals(codeString)) 204 return new Enumeration<RiskAssessmentStatus>(this, RiskAssessmentStatus.FINAL); 205 if ("amended".equals(codeString)) 206 return new Enumeration<RiskAssessmentStatus>(this, RiskAssessmentStatus.AMENDED); 207 if ("corrected".equals(codeString)) 208 return new Enumeration<RiskAssessmentStatus>(this, RiskAssessmentStatus.CORRECTED); 209 if ("cancelled".equals(codeString)) 210 return new Enumeration<RiskAssessmentStatus>(this, RiskAssessmentStatus.CANCELLED); 211 if ("entered-in-error".equals(codeString)) 212 return new Enumeration<RiskAssessmentStatus>(this, RiskAssessmentStatus.ENTEREDINERROR); 213 if ("unknown".equals(codeString)) 214 return new Enumeration<RiskAssessmentStatus>(this, RiskAssessmentStatus.UNKNOWN); 215 throw new FHIRException("Unknown RiskAssessmentStatus code '"+codeString+"'"); 216 } 217 public String toCode(RiskAssessmentStatus code) { 218 if (code == RiskAssessmentStatus.REGISTERED) 219 return "registered"; 220 if (code == RiskAssessmentStatus.PRELIMINARY) 221 return "preliminary"; 222 if (code == RiskAssessmentStatus.FINAL) 223 return "final"; 224 if (code == RiskAssessmentStatus.AMENDED) 225 return "amended"; 226 if (code == RiskAssessmentStatus.CORRECTED) 227 return "corrected"; 228 if (code == RiskAssessmentStatus.CANCELLED) 229 return "cancelled"; 230 if (code == RiskAssessmentStatus.ENTEREDINERROR) 231 return "entered-in-error"; 232 if (code == RiskAssessmentStatus.UNKNOWN) 233 return "unknown"; 234 return "?"; 235 } 236 public String toSystem(RiskAssessmentStatus code) { 237 return code.getSystem(); 238 } 239 } 240 241 @Block() 242 public static class RiskAssessmentPredictionComponent extends BackboneElement implements IBaseBackboneElement { 243 /** 244 * One of the potential outcomes for the patient (e.g. remission, death, a particular condition). 245 */ 246 @Child(name = "outcome", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=false) 247 @Description(shortDefinition="Possible outcome for the subject", formalDefinition="One of the potential outcomes for the patient (e.g. remission, death, a particular condition)." ) 248 protected CodeableConcept outcome; 249 250 /** 251 * How likely is the outcome (in the specified timeframe). 252 */ 253 @Child(name = "probability", type = {DecimalType.class, Range.class}, order=2, min=0, max=1, modifier=false, summary=false) 254 @Description(shortDefinition="Likelihood of specified outcome", formalDefinition="How likely is the outcome (in the specified timeframe)." ) 255 protected Type probability; 256 257 /** 258 * How likely is the outcome (in the specified timeframe), expressed as a qualitative value (e.g. low, medium, high). 259 */ 260 @Child(name = "qualitativeRisk", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false) 261 @Description(shortDefinition="Likelihood of specified outcome as a qualitative value", formalDefinition="How likely is the outcome (in the specified timeframe), expressed as a qualitative value (e.g. low, medium, high)." ) 262 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/risk-probability") 263 protected CodeableConcept qualitativeRisk; 264 265 /** 266 * Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.). 267 */ 268 @Child(name = "relativeRisk", type = {DecimalType.class}, order=4, min=0, max=1, modifier=false, summary=false) 269 @Description(shortDefinition="Relative likelihood", formalDefinition="Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.)." ) 270 protected DecimalType relativeRisk; 271 272 /** 273 * Indicates the period of time or age range of the subject to which the specified probability applies. 274 */ 275 @Child(name = "when", type = {Period.class, Range.class}, order=5, min=0, max=1, modifier=false, summary=false) 276 @Description(shortDefinition="Timeframe or age range", formalDefinition="Indicates the period of time or age range of the subject to which the specified probability applies." ) 277 protected Type when; 278 279 /** 280 * Additional information explaining the basis for the prediction. 281 */ 282 @Child(name = "rationale", type = {StringType.class}, order=6, min=0, max=1, modifier=false, summary=false) 283 @Description(shortDefinition="Explanation of prediction", formalDefinition="Additional information explaining the basis for the prediction." ) 284 protected StringType rationale; 285 286 private static final long serialVersionUID = 1283401747L; 287 288 /** 289 * Constructor 290 */ 291 public RiskAssessmentPredictionComponent() { 292 super(); 293 } 294 295 /** 296 * Constructor 297 */ 298 public RiskAssessmentPredictionComponent(CodeableConcept outcome) { 299 super(); 300 this.outcome = outcome; 301 } 302 303 /** 304 * @return {@link #outcome} (One of the potential outcomes for the patient (e.g. remission, death, a particular condition).) 305 */ 306 public CodeableConcept getOutcome() { 307 if (this.outcome == null) 308 if (Configuration.errorOnAutoCreate()) 309 throw new Error("Attempt to auto-create RiskAssessmentPredictionComponent.outcome"); 310 else if (Configuration.doAutoCreate()) 311 this.outcome = new CodeableConcept(); // cc 312 return this.outcome; 313 } 314 315 public boolean hasOutcome() { 316 return this.outcome != null && !this.outcome.isEmpty(); 317 } 318 319 /** 320 * @param value {@link #outcome} (One of the potential outcomes for the patient (e.g. remission, death, a particular condition).) 321 */ 322 public RiskAssessmentPredictionComponent setOutcome(CodeableConcept value) { 323 this.outcome = value; 324 return this; 325 } 326 327 /** 328 * @return {@link #probability} (How likely is the outcome (in the specified timeframe).) 329 */ 330 public Type getProbability() { 331 return this.probability; 332 } 333 334 /** 335 * @return {@link #probability} (How likely is the outcome (in the specified timeframe).) 336 */ 337 public DecimalType getProbabilityDecimalType() throws FHIRException { 338 if (this.probability == null) 339 return null; 340 if (!(this.probability instanceof DecimalType)) 341 throw new FHIRException("Type mismatch: the type DecimalType was expected, but "+this.probability.getClass().getName()+" was encountered"); 342 return (DecimalType) this.probability; 343 } 344 345 public boolean hasProbabilityDecimalType() { 346 return this != null && this.probability instanceof DecimalType; 347 } 348 349 /** 350 * @return {@link #probability} (How likely is the outcome (in the specified timeframe).) 351 */ 352 public Range getProbabilityRange() throws FHIRException { 353 if (this.probability == null) 354 return null; 355 if (!(this.probability instanceof Range)) 356 throw new FHIRException("Type mismatch: the type Range was expected, but "+this.probability.getClass().getName()+" was encountered"); 357 return (Range) this.probability; 358 } 359 360 public boolean hasProbabilityRange() { 361 return this != null && this.probability instanceof Range; 362 } 363 364 public boolean hasProbability() { 365 return this.probability != null && !this.probability.isEmpty(); 366 } 367 368 /** 369 * @param value {@link #probability} (How likely is the outcome (in the specified timeframe).) 370 */ 371 public RiskAssessmentPredictionComponent setProbability(Type value) throws FHIRFormatError { 372 if (value != null && !(value instanceof DecimalType || value instanceof Range)) 373 throw new FHIRFormatError("Not the right type for RiskAssessment.prediction.probability[x]: "+value.fhirType()); 374 this.probability = value; 375 return this; 376 } 377 378 /** 379 * @return {@link #qualitativeRisk} (How likely is the outcome (in the specified timeframe), expressed as a qualitative value (e.g. low, medium, high).) 380 */ 381 public CodeableConcept getQualitativeRisk() { 382 if (this.qualitativeRisk == null) 383 if (Configuration.errorOnAutoCreate()) 384 throw new Error("Attempt to auto-create RiskAssessmentPredictionComponent.qualitativeRisk"); 385 else if (Configuration.doAutoCreate()) 386 this.qualitativeRisk = new CodeableConcept(); // cc 387 return this.qualitativeRisk; 388 } 389 390 public boolean hasQualitativeRisk() { 391 return this.qualitativeRisk != null && !this.qualitativeRisk.isEmpty(); 392 } 393 394 /** 395 * @param value {@link #qualitativeRisk} (How likely is the outcome (in the specified timeframe), expressed as a qualitative value (e.g. low, medium, high).) 396 */ 397 public RiskAssessmentPredictionComponent setQualitativeRisk(CodeableConcept value) { 398 this.qualitativeRisk = value; 399 return this; 400 } 401 402 /** 403 * @return {@link #relativeRisk} (Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.).). This is the underlying object with id, value and extensions. The accessor "getRelativeRisk" gives direct access to the value 404 */ 405 public DecimalType getRelativeRiskElement() { 406 if (this.relativeRisk == null) 407 if (Configuration.errorOnAutoCreate()) 408 throw new Error("Attempt to auto-create RiskAssessmentPredictionComponent.relativeRisk"); 409 else if (Configuration.doAutoCreate()) 410 this.relativeRisk = new DecimalType(); // bb 411 return this.relativeRisk; 412 } 413 414 public boolean hasRelativeRiskElement() { 415 return this.relativeRisk != null && !this.relativeRisk.isEmpty(); 416 } 417 418 public boolean hasRelativeRisk() { 419 return this.relativeRisk != null && !this.relativeRisk.isEmpty(); 420 } 421 422 /** 423 * @param value {@link #relativeRisk} (Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.).). This is the underlying object with id, value and extensions. The accessor "getRelativeRisk" gives direct access to the value 424 */ 425 public RiskAssessmentPredictionComponent setRelativeRiskElement(DecimalType value) { 426 this.relativeRisk = value; 427 return this; 428 } 429 430 /** 431 * @return Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.). 432 */ 433 public BigDecimal getRelativeRisk() { 434 return this.relativeRisk == null ? null : this.relativeRisk.getValue(); 435 } 436 437 /** 438 * @param value Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.). 439 */ 440 public RiskAssessmentPredictionComponent setRelativeRisk(BigDecimal value) { 441 if (value == null) 442 this.relativeRisk = null; 443 else { 444 if (this.relativeRisk == null) 445 this.relativeRisk = new DecimalType(); 446 this.relativeRisk.setValue(value); 447 } 448 return this; 449 } 450 451 /** 452 * @param value Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.). 453 */ 454 public RiskAssessmentPredictionComponent setRelativeRisk(long value) { 455 this.relativeRisk = new DecimalType(); 456 this.relativeRisk.setValue(value); 457 return this; 458 } 459 460 /** 461 * @param value Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.). 462 */ 463 public RiskAssessmentPredictionComponent setRelativeRisk(double value) { 464 this.relativeRisk = new DecimalType(); 465 this.relativeRisk.setValue(value); 466 return this; 467 } 468 469 /** 470 * @return {@link #when} (Indicates the period of time or age range of the subject to which the specified probability applies.) 471 */ 472 public Type getWhen() { 473 return this.when; 474 } 475 476 /** 477 * @return {@link #when} (Indicates the period of time or age range of the subject to which the specified probability applies.) 478 */ 479 public Period getWhenPeriod() throws FHIRException { 480 if (this.when == null) 481 return null; 482 if (!(this.when instanceof Period)) 483 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.when.getClass().getName()+" was encountered"); 484 return (Period) this.when; 485 } 486 487 public boolean hasWhenPeriod() { 488 return this != null && this.when instanceof Period; 489 } 490 491 /** 492 * @return {@link #when} (Indicates the period of time or age range of the subject to which the specified probability applies.) 493 */ 494 public Range getWhenRange() throws FHIRException { 495 if (this.when == null) 496 return null; 497 if (!(this.when instanceof Range)) 498 throw new FHIRException("Type mismatch: the type Range was expected, but "+this.when.getClass().getName()+" was encountered"); 499 return (Range) this.when; 500 } 501 502 public boolean hasWhenRange() { 503 return this != null && this.when instanceof Range; 504 } 505 506 public boolean hasWhen() { 507 return this.when != null && !this.when.isEmpty(); 508 } 509 510 /** 511 * @param value {@link #when} (Indicates the period of time or age range of the subject to which the specified probability applies.) 512 */ 513 public RiskAssessmentPredictionComponent setWhen(Type value) throws FHIRFormatError { 514 if (value != null && !(value instanceof Period || value instanceof Range)) 515 throw new FHIRFormatError("Not the right type for RiskAssessment.prediction.when[x]: "+value.fhirType()); 516 this.when = value; 517 return this; 518 } 519 520 /** 521 * @return {@link #rationale} (Additional information explaining the basis for the prediction.). This is the underlying object with id, value and extensions. The accessor "getRationale" gives direct access to the value 522 */ 523 public StringType getRationaleElement() { 524 if (this.rationale == null) 525 if (Configuration.errorOnAutoCreate()) 526 throw new Error("Attempt to auto-create RiskAssessmentPredictionComponent.rationale"); 527 else if (Configuration.doAutoCreate()) 528 this.rationale = new StringType(); // bb 529 return this.rationale; 530 } 531 532 public boolean hasRationaleElement() { 533 return this.rationale != null && !this.rationale.isEmpty(); 534 } 535 536 public boolean hasRationale() { 537 return this.rationale != null && !this.rationale.isEmpty(); 538 } 539 540 /** 541 * @param value {@link #rationale} (Additional information explaining the basis for the prediction.). This is the underlying object with id, value and extensions. The accessor "getRationale" gives direct access to the value 542 */ 543 public RiskAssessmentPredictionComponent setRationaleElement(StringType value) { 544 this.rationale = value; 545 return this; 546 } 547 548 /** 549 * @return Additional information explaining the basis for the prediction. 550 */ 551 public String getRationale() { 552 return this.rationale == null ? null : this.rationale.getValue(); 553 } 554 555 /** 556 * @param value Additional information explaining the basis for the prediction. 557 */ 558 public RiskAssessmentPredictionComponent setRationale(String value) { 559 if (Utilities.noString(value)) 560 this.rationale = null; 561 else { 562 if (this.rationale == null) 563 this.rationale = new StringType(); 564 this.rationale.setValue(value); 565 } 566 return this; 567 } 568 569 protected void listChildren(List<Property> children) { 570 super.listChildren(children); 571 children.add(new Property("outcome", "CodeableConcept", "One of the potential outcomes for the patient (e.g. remission, death, a particular condition).", 0, 1, outcome)); 572 children.add(new Property("probability[x]", "decimal|Range", "How likely is the outcome (in the specified timeframe).", 0, 1, probability)); 573 children.add(new Property("qualitativeRisk", "CodeableConcept", "How likely is the outcome (in the specified timeframe), expressed as a qualitative value (e.g. low, medium, high).", 0, 1, qualitativeRisk)); 574 children.add(new Property("relativeRisk", "decimal", "Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.).", 0, 1, relativeRisk)); 575 children.add(new Property("when[x]", "Period|Range", "Indicates the period of time or age range of the subject to which the specified probability applies.", 0, 1, when)); 576 children.add(new Property("rationale", "string", "Additional information explaining the basis for the prediction.", 0, 1, rationale)); 577 } 578 579 @Override 580 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 581 switch (_hash) { 582 case -1106507950: /*outcome*/ return new Property("outcome", "CodeableConcept", "One of the potential outcomes for the patient (e.g. remission, death, a particular condition).", 0, 1, outcome); 583 case 1430185003: /*probability[x]*/ return new Property("probability[x]", "decimal|Range", "How likely is the outcome (in the specified timeframe).", 0, 1, probability); 584 case -1290561483: /*probability*/ return new Property("probability[x]", "decimal|Range", "How likely is the outcome (in the specified timeframe).", 0, 1, probability); 585 case 888495452: /*probabilityDecimal*/ return new Property("probability[x]", "decimal|Range", "How likely is the outcome (in the specified timeframe).", 0, 1, probability); 586 case 9275912: /*probabilityRange*/ return new Property("probability[x]", "decimal|Range", "How likely is the outcome (in the specified timeframe).", 0, 1, probability); 587 case 123308730: /*qualitativeRisk*/ return new Property("qualitativeRisk", "CodeableConcept", "How likely is the outcome (in the specified timeframe), expressed as a qualitative value (e.g. low, medium, high).", 0, 1, qualitativeRisk); 588 case -70741061: /*relativeRisk*/ return new Property("relativeRisk", "decimal", "Indicates the risk for this particular subject (with their specific characteristics) divided by the risk of the population in general. (Numbers greater than 1 = higher risk than the population, numbers less than 1 = lower risk.).", 0, 1, relativeRisk); 589 case 1312831238: /*when[x]*/ return new Property("when[x]", "Period|Range", "Indicates the period of time or age range of the subject to which the specified probability applies.", 0, 1, when); 590 case 3648314: /*when*/ return new Property("when[x]", "Period|Range", "Indicates the period of time or age range of the subject to which the specified probability applies.", 0, 1, when); 591 case 251476379: /*whenPeriod*/ return new Property("when[x]", "Period|Range", "Indicates the period of time or age range of the subject to which the specified probability applies.", 0, 1, when); 592 case -1098542557: /*whenRange*/ return new Property("when[x]", "Period|Range", "Indicates the period of time or age range of the subject to which the specified probability applies.", 0, 1, when); 593 case 345689335: /*rationale*/ return new Property("rationale", "string", "Additional information explaining the basis for the prediction.", 0, 1, rationale); 594 default: return super.getNamedProperty(_hash, _name, _checkValid); 595 } 596 597 } 598 599 @Override 600 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 601 switch (hash) { 602 case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : new Base[] {this.outcome}; // CodeableConcept 603 case -1290561483: /*probability*/ return this.probability == null ? new Base[0] : new Base[] {this.probability}; // Type 604 case 123308730: /*qualitativeRisk*/ return this.qualitativeRisk == null ? new Base[0] : new Base[] {this.qualitativeRisk}; // CodeableConcept 605 case -70741061: /*relativeRisk*/ return this.relativeRisk == null ? new Base[0] : new Base[] {this.relativeRisk}; // DecimalType 606 case 3648314: /*when*/ return this.when == null ? new Base[0] : new Base[] {this.when}; // Type 607 case 345689335: /*rationale*/ return this.rationale == null ? new Base[0] : new Base[] {this.rationale}; // StringType 608 default: return super.getProperty(hash, name, checkValid); 609 } 610 611 } 612 613 @Override 614 public Base setProperty(int hash, String name, Base value) throws FHIRException { 615 switch (hash) { 616 case -1106507950: // outcome 617 this.outcome = castToCodeableConcept(value); // CodeableConcept 618 return value; 619 case -1290561483: // probability 620 this.probability = castToType(value); // Type 621 return value; 622 case 123308730: // qualitativeRisk 623 this.qualitativeRisk = castToCodeableConcept(value); // CodeableConcept 624 return value; 625 case -70741061: // relativeRisk 626 this.relativeRisk = castToDecimal(value); // DecimalType 627 return value; 628 case 3648314: // when 629 this.when = castToType(value); // Type 630 return value; 631 case 345689335: // rationale 632 this.rationale = castToString(value); // StringType 633 return value; 634 default: return super.setProperty(hash, name, value); 635 } 636 637 } 638 639 @Override 640 public Base setProperty(String name, Base value) throws FHIRException { 641 if (name.equals("outcome")) { 642 this.outcome = castToCodeableConcept(value); // CodeableConcept 643 } else if (name.equals("probability[x]")) { 644 this.probability = castToType(value); // Type 645 } else if (name.equals("qualitativeRisk")) { 646 this.qualitativeRisk = castToCodeableConcept(value); // CodeableConcept 647 } else if (name.equals("relativeRisk")) { 648 this.relativeRisk = castToDecimal(value); // DecimalType 649 } else if (name.equals("when[x]")) { 650 this.when = castToType(value); // Type 651 } else if (name.equals("rationale")) { 652 this.rationale = castToString(value); // StringType 653 } else 654 return super.setProperty(name, value); 655 return value; 656 } 657 658 @Override 659 public Base makeProperty(int hash, String name) throws FHIRException { 660 switch (hash) { 661 case -1106507950: return getOutcome(); 662 case 1430185003: return getProbability(); 663 case -1290561483: return getProbability(); 664 case 123308730: return getQualitativeRisk(); 665 case -70741061: return getRelativeRiskElement(); 666 case 1312831238: return getWhen(); 667 case 3648314: return getWhen(); 668 case 345689335: return getRationaleElement(); 669 default: return super.makeProperty(hash, name); 670 } 671 672 } 673 674 @Override 675 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 676 switch (hash) { 677 case -1106507950: /*outcome*/ return new String[] {"CodeableConcept"}; 678 case -1290561483: /*probability*/ return new String[] {"decimal", "Range"}; 679 case 123308730: /*qualitativeRisk*/ return new String[] {"CodeableConcept"}; 680 case -70741061: /*relativeRisk*/ return new String[] {"decimal"}; 681 case 3648314: /*when*/ return new String[] {"Period", "Range"}; 682 case 345689335: /*rationale*/ return new String[] {"string"}; 683 default: return super.getTypesForProperty(hash, name); 684 } 685 686 } 687 688 @Override 689 public Base addChild(String name) throws FHIRException { 690 if (name.equals("outcome")) { 691 this.outcome = new CodeableConcept(); 692 return this.outcome; 693 } 694 else if (name.equals("probabilityDecimal")) { 695 this.probability = new DecimalType(); 696 return this.probability; 697 } 698 else if (name.equals("probabilityRange")) { 699 this.probability = new Range(); 700 return this.probability; 701 } 702 else if (name.equals("qualitativeRisk")) { 703 this.qualitativeRisk = new CodeableConcept(); 704 return this.qualitativeRisk; 705 } 706 else if (name.equals("relativeRisk")) { 707 throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.relativeRisk"); 708 } 709 else if (name.equals("whenPeriod")) { 710 this.when = new Period(); 711 return this.when; 712 } 713 else if (name.equals("whenRange")) { 714 this.when = new Range(); 715 return this.when; 716 } 717 else if (name.equals("rationale")) { 718 throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.rationale"); 719 } 720 else 721 return super.addChild(name); 722 } 723 724 public RiskAssessmentPredictionComponent copy() { 725 RiskAssessmentPredictionComponent dst = new RiskAssessmentPredictionComponent(); 726 copyValues(dst); 727 dst.outcome = outcome == null ? null : outcome.copy(); 728 dst.probability = probability == null ? null : probability.copy(); 729 dst.qualitativeRisk = qualitativeRisk == null ? null : qualitativeRisk.copy(); 730 dst.relativeRisk = relativeRisk == null ? null : relativeRisk.copy(); 731 dst.when = when == null ? null : when.copy(); 732 dst.rationale = rationale == null ? null : rationale.copy(); 733 return dst; 734 } 735 736 @Override 737 public boolean equalsDeep(Base other_) { 738 if (!super.equalsDeep(other_)) 739 return false; 740 if (!(other_ instanceof RiskAssessmentPredictionComponent)) 741 return false; 742 RiskAssessmentPredictionComponent o = (RiskAssessmentPredictionComponent) other_; 743 return compareDeep(outcome, o.outcome, true) && compareDeep(probability, o.probability, true) && compareDeep(qualitativeRisk, o.qualitativeRisk, true) 744 && compareDeep(relativeRisk, o.relativeRisk, true) && compareDeep(when, o.when, true) && compareDeep(rationale, o.rationale, true) 745 ; 746 } 747 748 @Override 749 public boolean equalsShallow(Base other_) { 750 if (!super.equalsShallow(other_)) 751 return false; 752 if (!(other_ instanceof RiskAssessmentPredictionComponent)) 753 return false; 754 RiskAssessmentPredictionComponent o = (RiskAssessmentPredictionComponent) other_; 755 return compareValues(relativeRisk, o.relativeRisk, true) && compareValues(rationale, o.rationale, true) 756 ; 757 } 758 759 public boolean isEmpty() { 760 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(outcome, probability, qualitativeRisk 761 , relativeRisk, when, rationale); 762 } 763 764 public String fhirType() { 765 return "RiskAssessment.prediction"; 766 767 } 768 769 } 770 771 /** 772 * Business identifier assigned to the risk assessment. 773 */ 774 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=1, modifier=false, summary=true) 775 @Description(shortDefinition="Unique identifier for the assessment", formalDefinition="Business identifier assigned to the risk assessment." ) 776 protected Identifier identifier; 777 778 /** 779 * A reference to the request that is fulfilled by this risk assessment. 780 */ 781 @Child(name = "basedOn", type = {Reference.class}, order=1, min=0, max=1, modifier=false, summary=false) 782 @Description(shortDefinition="Request fulfilled by this assessment", formalDefinition="A reference to the request that is fulfilled by this risk assessment." ) 783 protected Reference basedOn; 784 785 /** 786 * The actual object that is the target of the reference (A reference to the request that is fulfilled by this risk assessment.) 787 */ 788 protected Resource basedOnTarget; 789 790 /** 791 * A reference to a resource that this risk assessment is part of, such as a Procedure. 792 */ 793 @Child(name = "parent", type = {Reference.class}, order=2, min=0, max=1, modifier=false, summary=false) 794 @Description(shortDefinition="Part of this occurrence", formalDefinition="A reference to a resource that this risk assessment is part of, such as a Procedure." ) 795 protected Reference parent; 796 797 /** 798 * The actual object that is the target of the reference (A reference to a resource that this risk assessment is part of, such as a Procedure.) 799 */ 800 protected Resource parentTarget; 801 802 /** 803 * The status of the RiskAssessment, using the same statuses as an Observation. 804 */ 805 @Child(name = "status", type = {CodeType.class}, order=3, min=1, max=1, modifier=false, summary=false) 806 @Description(shortDefinition="registered | preliminary | final | amended +", formalDefinition="The status of the RiskAssessment, using the same statuses as an Observation." ) 807 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-status") 808 protected Enumeration<RiskAssessmentStatus> status; 809 810 /** 811 * The algorithm, process or mechanism used to evaluate the risk. 812 */ 813 @Child(name = "method", type = {CodeableConcept.class}, order=4, min=0, max=1, modifier=false, summary=true) 814 @Description(shortDefinition="Evaluation mechanism", formalDefinition="The algorithm, process or mechanism used to evaluate the risk." ) 815 protected CodeableConcept method; 816 817 /** 818 * The type of the risk assessment performed. 819 */ 820 @Child(name = "code", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=true) 821 @Description(shortDefinition="Type of assessment", formalDefinition="The type of the risk assessment performed." ) 822 protected CodeableConcept code; 823 824 /** 825 * The patient or group the risk assessment applies to. 826 */ 827 @Child(name = "subject", type = {Patient.class, Group.class}, order=6, min=0, max=1, modifier=false, summary=true) 828 @Description(shortDefinition="Who/what does assessment apply to?", formalDefinition="The patient or group the risk assessment applies to." ) 829 protected Reference subject; 830 831 /** 832 * The actual object that is the target of the reference (The patient or group the risk assessment applies to.) 833 */ 834 protected Resource subjectTarget; 835 836 /** 837 * The encounter where the assessment was performed. 838 */ 839 @Child(name = "context", type = {Encounter.class, EpisodeOfCare.class}, order=7, min=0, max=1, modifier=false, summary=true) 840 @Description(shortDefinition="Where was assessment performed?", formalDefinition="The encounter where the assessment was performed." ) 841 protected Reference context; 842 843 /** 844 * The actual object that is the target of the reference (The encounter where the assessment was performed.) 845 */ 846 protected Resource contextTarget; 847 848 /** 849 * The date (and possibly time) the risk assessment was performed. 850 */ 851 @Child(name = "occurrence", type = {DateTimeType.class, Period.class}, order=8, min=0, max=1, modifier=false, summary=true) 852 @Description(shortDefinition="When was assessment made?", formalDefinition="The date (and possibly time) the risk assessment was performed." ) 853 protected Type occurrence; 854 855 /** 856 * For assessments or prognosis specific to a particular condition, indicates the condition being assessed. 857 */ 858 @Child(name = "condition", type = {Condition.class}, order=9, min=0, max=1, modifier=false, summary=true) 859 @Description(shortDefinition="Condition assessed", formalDefinition="For assessments or prognosis specific to a particular condition, indicates the condition being assessed." ) 860 protected Reference condition; 861 862 /** 863 * The actual object that is the target of the reference (For assessments or prognosis specific to a particular condition, indicates the condition being assessed.) 864 */ 865 protected Condition conditionTarget; 866 867 /** 868 * The provider or software application that performed the assessment. 869 */ 870 @Child(name = "performer", type = {Practitioner.class, Device.class}, order=10, min=0, max=1, modifier=false, summary=true) 871 @Description(shortDefinition="Who did assessment?", formalDefinition="The provider or software application that performed the assessment." ) 872 protected Reference performer; 873 874 /** 875 * The actual object that is the target of the reference (The provider or software application that performed the assessment.) 876 */ 877 protected Resource performerTarget; 878 879 /** 880 * The reason the risk assessment was performed. 881 */ 882 @Child(name = "reason", type = {CodeableConcept.class, Reference.class}, order=11, min=0, max=1, modifier=false, summary=false) 883 @Description(shortDefinition="Why the assessment was necessary?", formalDefinition="The reason the risk assessment was performed." ) 884 protected Type reason; 885 886 /** 887 * Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.). 888 */ 889 @Child(name = "basis", type = {Reference.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 890 @Description(shortDefinition="Information used in assessment", formalDefinition="Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.)." ) 891 protected List<Reference> basis; 892 /** 893 * The actual objects that are the target of the reference (Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.).) 894 */ 895 protected List<Resource> basisTarget; 896 897 898 /** 899 * Describes the expected outcome for the subject. 900 */ 901 @Child(name = "prediction", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 902 @Description(shortDefinition="Outcome predicted", formalDefinition="Describes the expected outcome for the subject." ) 903 protected List<RiskAssessmentPredictionComponent> prediction; 904 905 /** 906 * A description of the steps that might be taken to reduce the identified risk(s). 907 */ 908 @Child(name = "mitigation", type = {StringType.class}, order=14, min=0, max=1, modifier=false, summary=false) 909 @Description(shortDefinition="How to reduce risk", formalDefinition="A description of the steps that might be taken to reduce the identified risk(s)." ) 910 protected StringType mitigation; 911 912 /** 913 * Additional comments about the risk assessment. 914 */ 915 @Child(name = "comment", type = {StringType.class}, order=15, min=0, max=1, modifier=false, summary=false) 916 @Description(shortDefinition="Comments on the risk assessment", formalDefinition="Additional comments about the risk assessment." ) 917 protected StringType comment; 918 919 private static final long serialVersionUID = -715866284L; 920 921 /** 922 * Constructor 923 */ 924 public RiskAssessment() { 925 super(); 926 } 927 928 /** 929 * Constructor 930 */ 931 public RiskAssessment(Enumeration<RiskAssessmentStatus> status) { 932 super(); 933 this.status = status; 934 } 935 936 /** 937 * @return {@link #identifier} (Business identifier assigned to the risk assessment.) 938 */ 939 public Identifier getIdentifier() { 940 if (this.identifier == null) 941 if (Configuration.errorOnAutoCreate()) 942 throw new Error("Attempt to auto-create RiskAssessment.identifier"); 943 else if (Configuration.doAutoCreate()) 944 this.identifier = new Identifier(); // cc 945 return this.identifier; 946 } 947 948 public boolean hasIdentifier() { 949 return this.identifier != null && !this.identifier.isEmpty(); 950 } 951 952 /** 953 * @param value {@link #identifier} (Business identifier assigned to the risk assessment.) 954 */ 955 public RiskAssessment setIdentifier(Identifier value) { 956 this.identifier = value; 957 return this; 958 } 959 960 /** 961 * @return {@link #basedOn} (A reference to the request that is fulfilled by this risk assessment.) 962 */ 963 public Reference getBasedOn() { 964 if (this.basedOn == null) 965 if (Configuration.errorOnAutoCreate()) 966 throw new Error("Attempt to auto-create RiskAssessment.basedOn"); 967 else if (Configuration.doAutoCreate()) 968 this.basedOn = new Reference(); // cc 969 return this.basedOn; 970 } 971 972 public boolean hasBasedOn() { 973 return this.basedOn != null && !this.basedOn.isEmpty(); 974 } 975 976 /** 977 * @param value {@link #basedOn} (A reference to the request that is fulfilled by this risk assessment.) 978 */ 979 public RiskAssessment setBasedOn(Reference value) { 980 this.basedOn = value; 981 return this; 982 } 983 984 /** 985 * @return {@link #basedOn} 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 request that is fulfilled by this risk assessment.) 986 */ 987 public Resource getBasedOnTarget() { 988 return this.basedOnTarget; 989 } 990 991 /** 992 * @param value {@link #basedOn} 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 request that is fulfilled by this risk assessment.) 993 */ 994 public RiskAssessment setBasedOnTarget(Resource value) { 995 this.basedOnTarget = value; 996 return this; 997 } 998 999 /** 1000 * @return {@link #parent} (A reference to a resource that this risk assessment is part of, such as a Procedure.) 1001 */ 1002 public Reference getParent() { 1003 if (this.parent == null) 1004 if (Configuration.errorOnAutoCreate()) 1005 throw new Error("Attempt to auto-create RiskAssessment.parent"); 1006 else if (Configuration.doAutoCreate()) 1007 this.parent = new Reference(); // cc 1008 return this.parent; 1009 } 1010 1011 public boolean hasParent() { 1012 return this.parent != null && !this.parent.isEmpty(); 1013 } 1014 1015 /** 1016 * @param value {@link #parent} (A reference to a resource that this risk assessment is part of, such as a Procedure.) 1017 */ 1018 public RiskAssessment setParent(Reference value) { 1019 this.parent = value; 1020 return this; 1021 } 1022 1023 /** 1024 * @return {@link #parent} 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 a resource that this risk assessment is part of, such as a Procedure.) 1025 */ 1026 public Resource getParentTarget() { 1027 return this.parentTarget; 1028 } 1029 1030 /** 1031 * @param value {@link #parent} 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 a resource that this risk assessment is part of, such as a Procedure.) 1032 */ 1033 public RiskAssessment setParentTarget(Resource value) { 1034 this.parentTarget = value; 1035 return this; 1036 } 1037 1038 /** 1039 * @return {@link #status} (The status of the RiskAssessment, using the same statuses as an Observation.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1040 */ 1041 public Enumeration<RiskAssessmentStatus> getStatusElement() { 1042 if (this.status == null) 1043 if (Configuration.errorOnAutoCreate()) 1044 throw new Error("Attempt to auto-create RiskAssessment.status"); 1045 else if (Configuration.doAutoCreate()) 1046 this.status = new Enumeration<RiskAssessmentStatus>(new RiskAssessmentStatusEnumFactory()); // bb 1047 return this.status; 1048 } 1049 1050 public boolean hasStatusElement() { 1051 return this.status != null && !this.status.isEmpty(); 1052 } 1053 1054 public boolean hasStatus() { 1055 return this.status != null && !this.status.isEmpty(); 1056 } 1057 1058 /** 1059 * @param value {@link #status} (The status of the RiskAssessment, using the same statuses as an Observation.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 1060 */ 1061 public RiskAssessment setStatusElement(Enumeration<RiskAssessmentStatus> value) { 1062 this.status = value; 1063 return this; 1064 } 1065 1066 /** 1067 * @return The status of the RiskAssessment, using the same statuses as an Observation. 1068 */ 1069 public RiskAssessmentStatus getStatus() { 1070 return this.status == null ? null : this.status.getValue(); 1071 } 1072 1073 /** 1074 * @param value The status of the RiskAssessment, using the same statuses as an Observation. 1075 */ 1076 public RiskAssessment setStatus(RiskAssessmentStatus value) { 1077 if (this.status == null) 1078 this.status = new Enumeration<RiskAssessmentStatus>(new RiskAssessmentStatusEnumFactory()); 1079 this.status.setValue(value); 1080 return this; 1081 } 1082 1083 /** 1084 * @return {@link #method} (The algorithm, process or mechanism used to evaluate the risk.) 1085 */ 1086 public CodeableConcept getMethod() { 1087 if (this.method == null) 1088 if (Configuration.errorOnAutoCreate()) 1089 throw new Error("Attempt to auto-create RiskAssessment.method"); 1090 else if (Configuration.doAutoCreate()) 1091 this.method = new CodeableConcept(); // cc 1092 return this.method; 1093 } 1094 1095 public boolean hasMethod() { 1096 return this.method != null && !this.method.isEmpty(); 1097 } 1098 1099 /** 1100 * @param value {@link #method} (The algorithm, process or mechanism used to evaluate the risk.) 1101 */ 1102 public RiskAssessment setMethod(CodeableConcept value) { 1103 this.method = value; 1104 return this; 1105 } 1106 1107 /** 1108 * @return {@link #code} (The type of the risk assessment performed.) 1109 */ 1110 public CodeableConcept getCode() { 1111 if (this.code == null) 1112 if (Configuration.errorOnAutoCreate()) 1113 throw new Error("Attempt to auto-create RiskAssessment.code"); 1114 else if (Configuration.doAutoCreate()) 1115 this.code = new CodeableConcept(); // cc 1116 return this.code; 1117 } 1118 1119 public boolean hasCode() { 1120 return this.code != null && !this.code.isEmpty(); 1121 } 1122 1123 /** 1124 * @param value {@link #code} (The type of the risk assessment performed.) 1125 */ 1126 public RiskAssessment setCode(CodeableConcept value) { 1127 this.code = value; 1128 return this; 1129 } 1130 1131 /** 1132 * @return {@link #subject} (The patient or group the risk assessment applies to.) 1133 */ 1134 public Reference getSubject() { 1135 if (this.subject == null) 1136 if (Configuration.errorOnAutoCreate()) 1137 throw new Error("Attempt to auto-create RiskAssessment.subject"); 1138 else if (Configuration.doAutoCreate()) 1139 this.subject = new Reference(); // cc 1140 return this.subject; 1141 } 1142 1143 public boolean hasSubject() { 1144 return this.subject != null && !this.subject.isEmpty(); 1145 } 1146 1147 /** 1148 * @param value {@link #subject} (The patient or group the risk assessment applies to.) 1149 */ 1150 public RiskAssessment setSubject(Reference value) { 1151 this.subject = value; 1152 return this; 1153 } 1154 1155 /** 1156 * @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 the risk assessment applies to.) 1157 */ 1158 public Resource getSubjectTarget() { 1159 return this.subjectTarget; 1160 } 1161 1162 /** 1163 * @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 the risk assessment applies to.) 1164 */ 1165 public RiskAssessment setSubjectTarget(Resource value) { 1166 this.subjectTarget = value; 1167 return this; 1168 } 1169 1170 /** 1171 * @return {@link #context} (The encounter where the assessment was performed.) 1172 */ 1173 public Reference getContext() { 1174 if (this.context == null) 1175 if (Configuration.errorOnAutoCreate()) 1176 throw new Error("Attempt to auto-create RiskAssessment.context"); 1177 else if (Configuration.doAutoCreate()) 1178 this.context = new Reference(); // cc 1179 return this.context; 1180 } 1181 1182 public boolean hasContext() { 1183 return this.context != null && !this.context.isEmpty(); 1184 } 1185 1186 /** 1187 * @param value {@link #context} (The encounter where the assessment was performed.) 1188 */ 1189 public RiskAssessment setContext(Reference value) { 1190 this.context = value; 1191 return this; 1192 } 1193 1194 /** 1195 * @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 where the assessment was performed.) 1196 */ 1197 public Resource getContextTarget() { 1198 return this.contextTarget; 1199 } 1200 1201 /** 1202 * @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 where the assessment was performed.) 1203 */ 1204 public RiskAssessment setContextTarget(Resource value) { 1205 this.contextTarget = value; 1206 return this; 1207 } 1208 1209 /** 1210 * @return {@link #occurrence} (The date (and possibly time) the risk assessment was performed.) 1211 */ 1212 public Type getOccurrence() { 1213 return this.occurrence; 1214 } 1215 1216 /** 1217 * @return {@link #occurrence} (The date (and possibly time) the risk assessment was performed.) 1218 */ 1219 public DateTimeType getOccurrenceDateTimeType() throws FHIRException { 1220 if (this.occurrence == null) 1221 return null; 1222 if (!(this.occurrence instanceof DateTimeType)) 1223 throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.occurrence.getClass().getName()+" was encountered"); 1224 return (DateTimeType) this.occurrence; 1225 } 1226 1227 public boolean hasOccurrenceDateTimeType() { 1228 return this != null && this.occurrence instanceof DateTimeType; 1229 } 1230 1231 /** 1232 * @return {@link #occurrence} (The date (and possibly time) the risk assessment was performed.) 1233 */ 1234 public Period getOccurrencePeriod() throws FHIRException { 1235 if (this.occurrence == null) 1236 return null; 1237 if (!(this.occurrence instanceof Period)) 1238 throw new FHIRException("Type mismatch: the type Period was expected, but "+this.occurrence.getClass().getName()+" was encountered"); 1239 return (Period) this.occurrence; 1240 } 1241 1242 public boolean hasOccurrencePeriod() { 1243 return this != null && this.occurrence instanceof Period; 1244 } 1245 1246 public boolean hasOccurrence() { 1247 return this.occurrence != null && !this.occurrence.isEmpty(); 1248 } 1249 1250 /** 1251 * @param value {@link #occurrence} (The date (and possibly time) the risk assessment was performed.) 1252 */ 1253 public RiskAssessment setOccurrence(Type value) throws FHIRFormatError { 1254 if (value != null && !(value instanceof DateTimeType || value instanceof Period)) 1255 throw new FHIRFormatError("Not the right type for RiskAssessment.occurrence[x]: "+value.fhirType()); 1256 this.occurrence = value; 1257 return this; 1258 } 1259 1260 /** 1261 * @return {@link #condition} (For assessments or prognosis specific to a particular condition, indicates the condition being assessed.) 1262 */ 1263 public Reference getCondition() { 1264 if (this.condition == null) 1265 if (Configuration.errorOnAutoCreate()) 1266 throw new Error("Attempt to auto-create RiskAssessment.condition"); 1267 else if (Configuration.doAutoCreate()) 1268 this.condition = new Reference(); // cc 1269 return this.condition; 1270 } 1271 1272 public boolean hasCondition() { 1273 return this.condition != null && !this.condition.isEmpty(); 1274 } 1275 1276 /** 1277 * @param value {@link #condition} (For assessments or prognosis specific to a particular condition, indicates the condition being assessed.) 1278 */ 1279 public RiskAssessment setCondition(Reference value) { 1280 this.condition = value; 1281 return this; 1282 } 1283 1284 /** 1285 * @return {@link #condition} 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. (For assessments or prognosis specific to a particular condition, indicates the condition being assessed.) 1286 */ 1287 public Condition getConditionTarget() { 1288 if (this.conditionTarget == null) 1289 if (Configuration.errorOnAutoCreate()) 1290 throw new Error("Attempt to auto-create RiskAssessment.condition"); 1291 else if (Configuration.doAutoCreate()) 1292 this.conditionTarget = new Condition(); // aa 1293 return this.conditionTarget; 1294 } 1295 1296 /** 1297 * @param value {@link #condition} 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. (For assessments or prognosis specific to a particular condition, indicates the condition being assessed.) 1298 */ 1299 public RiskAssessment setConditionTarget(Condition value) { 1300 this.conditionTarget = value; 1301 return this; 1302 } 1303 1304 /** 1305 * @return {@link #performer} (The provider or software application that performed the assessment.) 1306 */ 1307 public Reference getPerformer() { 1308 if (this.performer == null) 1309 if (Configuration.errorOnAutoCreate()) 1310 throw new Error("Attempt to auto-create RiskAssessment.performer"); 1311 else if (Configuration.doAutoCreate()) 1312 this.performer = new Reference(); // cc 1313 return this.performer; 1314 } 1315 1316 public boolean hasPerformer() { 1317 return this.performer != null && !this.performer.isEmpty(); 1318 } 1319 1320 /** 1321 * @param value {@link #performer} (The provider or software application that performed the assessment.) 1322 */ 1323 public RiskAssessment setPerformer(Reference value) { 1324 this.performer = value; 1325 return this; 1326 } 1327 1328 /** 1329 * @return {@link #performer} 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 provider or software application that performed the assessment.) 1330 */ 1331 public Resource getPerformerTarget() { 1332 return this.performerTarget; 1333 } 1334 1335 /** 1336 * @param value {@link #performer} 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 provider or software application that performed the assessment.) 1337 */ 1338 public RiskAssessment setPerformerTarget(Resource value) { 1339 this.performerTarget = value; 1340 return this; 1341 } 1342 1343 /** 1344 * @return {@link #reason} (The reason the risk assessment was performed.) 1345 */ 1346 public Type getReason() { 1347 return this.reason; 1348 } 1349 1350 /** 1351 * @return {@link #reason} (The reason the risk assessment was performed.) 1352 */ 1353 public CodeableConcept getReasonCodeableConcept() throws FHIRException { 1354 if (this.reason == null) 1355 return null; 1356 if (!(this.reason instanceof CodeableConcept)) 1357 throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.reason.getClass().getName()+" was encountered"); 1358 return (CodeableConcept) this.reason; 1359 } 1360 1361 public boolean hasReasonCodeableConcept() { 1362 return this != null && this.reason instanceof CodeableConcept; 1363 } 1364 1365 /** 1366 * @return {@link #reason} (The reason the risk assessment was performed.) 1367 */ 1368 public Reference getReasonReference() throws FHIRException { 1369 if (this.reason == null) 1370 return null; 1371 if (!(this.reason instanceof Reference)) 1372 throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.reason.getClass().getName()+" was encountered"); 1373 return (Reference) this.reason; 1374 } 1375 1376 public boolean hasReasonReference() { 1377 return this != null && this.reason instanceof Reference; 1378 } 1379 1380 public boolean hasReason() { 1381 return this.reason != null && !this.reason.isEmpty(); 1382 } 1383 1384 /** 1385 * @param value {@link #reason} (The reason the risk assessment was performed.) 1386 */ 1387 public RiskAssessment setReason(Type value) throws FHIRFormatError { 1388 if (value != null && !(value instanceof CodeableConcept || value instanceof Reference)) 1389 throw new FHIRFormatError("Not the right type for RiskAssessment.reason[x]: "+value.fhirType()); 1390 this.reason = value; 1391 return this; 1392 } 1393 1394 /** 1395 * @return {@link #basis} (Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.).) 1396 */ 1397 public List<Reference> getBasis() { 1398 if (this.basis == null) 1399 this.basis = new ArrayList<Reference>(); 1400 return this.basis; 1401 } 1402 1403 /** 1404 * @return Returns a reference to <code>this</code> for easy method chaining 1405 */ 1406 public RiskAssessment setBasis(List<Reference> theBasis) { 1407 this.basis = theBasis; 1408 return this; 1409 } 1410 1411 public boolean hasBasis() { 1412 if (this.basis == null) 1413 return false; 1414 for (Reference item : this.basis) 1415 if (!item.isEmpty()) 1416 return true; 1417 return false; 1418 } 1419 1420 public Reference addBasis() { //3 1421 Reference t = new Reference(); 1422 if (this.basis == null) 1423 this.basis = new ArrayList<Reference>(); 1424 this.basis.add(t); 1425 return t; 1426 } 1427 1428 public RiskAssessment addBasis(Reference t) { //3 1429 if (t == null) 1430 return this; 1431 if (this.basis == null) 1432 this.basis = new ArrayList<Reference>(); 1433 this.basis.add(t); 1434 return this; 1435 } 1436 1437 /** 1438 * @return The first repetition of repeating field {@link #basis}, creating it if it does not already exist 1439 */ 1440 public Reference getBasisFirstRep() { 1441 if (getBasis().isEmpty()) { 1442 addBasis(); 1443 } 1444 return getBasis().get(0); 1445 } 1446 1447 /** 1448 * @deprecated Use Reference#setResource(IBaseResource) instead 1449 */ 1450 @Deprecated 1451 public List<Resource> getBasisTarget() { 1452 if (this.basisTarget == null) 1453 this.basisTarget = new ArrayList<Resource>(); 1454 return this.basisTarget; 1455 } 1456 1457 /** 1458 * @return {@link #prediction} (Describes the expected outcome for the subject.) 1459 */ 1460 public List<RiskAssessmentPredictionComponent> getPrediction() { 1461 if (this.prediction == null) 1462 this.prediction = new ArrayList<RiskAssessmentPredictionComponent>(); 1463 return this.prediction; 1464 } 1465 1466 /** 1467 * @return Returns a reference to <code>this</code> for easy method chaining 1468 */ 1469 public RiskAssessment setPrediction(List<RiskAssessmentPredictionComponent> thePrediction) { 1470 this.prediction = thePrediction; 1471 return this; 1472 } 1473 1474 public boolean hasPrediction() { 1475 if (this.prediction == null) 1476 return false; 1477 for (RiskAssessmentPredictionComponent item : this.prediction) 1478 if (!item.isEmpty()) 1479 return true; 1480 return false; 1481 } 1482 1483 public RiskAssessmentPredictionComponent addPrediction() { //3 1484 RiskAssessmentPredictionComponent t = new RiskAssessmentPredictionComponent(); 1485 if (this.prediction == null) 1486 this.prediction = new ArrayList<RiskAssessmentPredictionComponent>(); 1487 this.prediction.add(t); 1488 return t; 1489 } 1490 1491 public RiskAssessment addPrediction(RiskAssessmentPredictionComponent t) { //3 1492 if (t == null) 1493 return this; 1494 if (this.prediction == null) 1495 this.prediction = new ArrayList<RiskAssessmentPredictionComponent>(); 1496 this.prediction.add(t); 1497 return this; 1498 } 1499 1500 /** 1501 * @return The first repetition of repeating field {@link #prediction}, creating it if it does not already exist 1502 */ 1503 public RiskAssessmentPredictionComponent getPredictionFirstRep() { 1504 if (getPrediction().isEmpty()) { 1505 addPrediction(); 1506 } 1507 return getPrediction().get(0); 1508 } 1509 1510 /** 1511 * @return {@link #mitigation} (A description of the steps that might be taken to reduce the identified risk(s).). This is the underlying object with id, value and extensions. The accessor "getMitigation" gives direct access to the value 1512 */ 1513 public StringType getMitigationElement() { 1514 if (this.mitigation == null) 1515 if (Configuration.errorOnAutoCreate()) 1516 throw new Error("Attempt to auto-create RiskAssessment.mitigation"); 1517 else if (Configuration.doAutoCreate()) 1518 this.mitigation = new StringType(); // bb 1519 return this.mitigation; 1520 } 1521 1522 public boolean hasMitigationElement() { 1523 return this.mitigation != null && !this.mitigation.isEmpty(); 1524 } 1525 1526 public boolean hasMitigation() { 1527 return this.mitigation != null && !this.mitigation.isEmpty(); 1528 } 1529 1530 /** 1531 * @param value {@link #mitigation} (A description of the steps that might be taken to reduce the identified risk(s).). This is the underlying object with id, value and extensions. The accessor "getMitigation" gives direct access to the value 1532 */ 1533 public RiskAssessment setMitigationElement(StringType value) { 1534 this.mitigation = value; 1535 return this; 1536 } 1537 1538 /** 1539 * @return A description of the steps that might be taken to reduce the identified risk(s). 1540 */ 1541 public String getMitigation() { 1542 return this.mitigation == null ? null : this.mitigation.getValue(); 1543 } 1544 1545 /** 1546 * @param value A description of the steps that might be taken to reduce the identified risk(s). 1547 */ 1548 public RiskAssessment setMitigation(String value) { 1549 if (Utilities.noString(value)) 1550 this.mitigation = null; 1551 else { 1552 if (this.mitigation == null) 1553 this.mitigation = new StringType(); 1554 this.mitigation.setValue(value); 1555 } 1556 return this; 1557 } 1558 1559 /** 1560 * @return {@link #comment} (Additional comments about the risk assessment.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value 1561 */ 1562 public StringType getCommentElement() { 1563 if (this.comment == null) 1564 if (Configuration.errorOnAutoCreate()) 1565 throw new Error("Attempt to auto-create RiskAssessment.comment"); 1566 else if (Configuration.doAutoCreate()) 1567 this.comment = new StringType(); // bb 1568 return this.comment; 1569 } 1570 1571 public boolean hasCommentElement() { 1572 return this.comment != null && !this.comment.isEmpty(); 1573 } 1574 1575 public boolean hasComment() { 1576 return this.comment != null && !this.comment.isEmpty(); 1577 } 1578 1579 /** 1580 * @param value {@link #comment} (Additional comments about the risk assessment.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value 1581 */ 1582 public RiskAssessment setCommentElement(StringType value) { 1583 this.comment = value; 1584 return this; 1585 } 1586 1587 /** 1588 * @return Additional comments about the risk assessment. 1589 */ 1590 public String getComment() { 1591 return this.comment == null ? null : this.comment.getValue(); 1592 } 1593 1594 /** 1595 * @param value Additional comments about the risk assessment. 1596 */ 1597 public RiskAssessment setComment(String value) { 1598 if (Utilities.noString(value)) 1599 this.comment = null; 1600 else { 1601 if (this.comment == null) 1602 this.comment = new StringType(); 1603 this.comment.setValue(value); 1604 } 1605 return this; 1606 } 1607 1608 protected void listChildren(List<Property> children) { 1609 super.listChildren(children); 1610 children.add(new Property("identifier", "Identifier", "Business identifier assigned to the risk assessment.", 0, 1, identifier)); 1611 children.add(new Property("basedOn", "Reference(Any)", "A reference to the request that is fulfilled by this risk assessment.", 0, 1, basedOn)); 1612 children.add(new Property("parent", "Reference(Any)", "A reference to a resource that this risk assessment is part of, such as a Procedure.", 0, 1, parent)); 1613 children.add(new Property("status", "code", "The status of the RiskAssessment, using the same statuses as an Observation.", 0, 1, status)); 1614 children.add(new Property("method", "CodeableConcept", "The algorithm, process or mechanism used to evaluate the risk.", 0, 1, method)); 1615 children.add(new Property("code", "CodeableConcept", "The type of the risk assessment performed.", 0, 1, code)); 1616 children.add(new Property("subject", "Reference(Patient|Group)", "The patient or group the risk assessment applies to.", 0, 1, subject)); 1617 children.add(new Property("context", "Reference(Encounter|EpisodeOfCare)", "The encounter where the assessment was performed.", 0, 1, context)); 1618 children.add(new Property("occurrence[x]", "dateTime|Period", "The date (and possibly time) the risk assessment was performed.", 0, 1, occurrence)); 1619 children.add(new Property("condition", "Reference(Condition)", "For assessments or prognosis specific to a particular condition, indicates the condition being assessed.", 0, 1, condition)); 1620 children.add(new Property("performer", "Reference(Practitioner|Device)", "The provider or software application that performed the assessment.", 0, 1, performer)); 1621 children.add(new Property("reason[x]", "CodeableConcept|Reference(Any)", "The reason the risk assessment was performed.", 0, 1, reason)); 1622 children.add(new Property("basis", "Reference(Any)", "Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.).", 0, java.lang.Integer.MAX_VALUE, basis)); 1623 children.add(new Property("prediction", "", "Describes the expected outcome for the subject.", 0, java.lang.Integer.MAX_VALUE, prediction)); 1624 children.add(new Property("mitigation", "string", "A description of the steps that might be taken to reduce the identified risk(s).", 0, 1, mitigation)); 1625 children.add(new Property("comment", "string", "Additional comments about the risk assessment.", 0, 1, comment)); 1626 } 1627 1628 @Override 1629 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1630 switch (_hash) { 1631 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifier assigned to the risk assessment.", 0, 1, identifier); 1632 case -332612366: /*basedOn*/ return new Property("basedOn", "Reference(Any)", "A reference to the request that is fulfilled by this risk assessment.", 0, 1, basedOn); 1633 case -995424086: /*parent*/ return new Property("parent", "Reference(Any)", "A reference to a resource that this risk assessment is part of, such as a Procedure.", 0, 1, parent); 1634 case -892481550: /*status*/ return new Property("status", "code", "The status of the RiskAssessment, using the same statuses as an Observation.", 0, 1, status); 1635 case -1077554975: /*method*/ return new Property("method", "CodeableConcept", "The algorithm, process or mechanism used to evaluate the risk.", 0, 1, method); 1636 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "The type of the risk assessment performed.", 0, 1, code); 1637 case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group)", "The patient or group the risk assessment applies to.", 0, 1, subject); 1638 case 951530927: /*context*/ return new Property("context", "Reference(Encounter|EpisodeOfCare)", "The encounter where the assessment was performed.", 0, 1, context); 1639 case -2022646513: /*occurrence[x]*/ return new Property("occurrence[x]", "dateTime|Period", "The date (and possibly time) the risk assessment was performed.", 0, 1, occurrence); 1640 case 1687874001: /*occurrence*/ return new Property("occurrence[x]", "dateTime|Period", "The date (and possibly time) the risk assessment was performed.", 0, 1, occurrence); 1641 case -298443636: /*occurrenceDateTime*/ return new Property("occurrence[x]", "dateTime|Period", "The date (and possibly time) the risk assessment was performed.", 0, 1, occurrence); 1642 case 1397156594: /*occurrencePeriod*/ return new Property("occurrence[x]", "dateTime|Period", "The date (and possibly time) the risk assessment was performed.", 0, 1, occurrence); 1643 case -861311717: /*condition*/ return new Property("condition", "Reference(Condition)", "For assessments or prognosis specific to a particular condition, indicates the condition being assessed.", 0, 1, condition); 1644 case 481140686: /*performer*/ return new Property("performer", "Reference(Practitioner|Device)", "The provider or software application that performed the assessment.", 0, 1, performer); 1645 case -669418564: /*reason[x]*/ return new Property("reason[x]", "CodeableConcept|Reference(Any)", "The reason the risk assessment was performed.", 0, 1, reason); 1646 case -934964668: /*reason*/ return new Property("reason[x]", "CodeableConcept|Reference(Any)", "The reason the risk assessment was performed.", 0, 1, reason); 1647 case -610155331: /*reasonCodeableConcept*/ return new Property("reason[x]", "CodeableConcept|Reference(Any)", "The reason the risk assessment was performed.", 0, 1, reason); 1648 case -1146218137: /*reasonReference*/ return new Property("reason[x]", "CodeableConcept|Reference(Any)", "The reason the risk assessment was performed.", 0, 1, reason); 1649 case 93508670: /*basis*/ return new Property("basis", "Reference(Any)", "Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.).", 0, java.lang.Integer.MAX_VALUE, basis); 1650 case 1161234575: /*prediction*/ return new Property("prediction", "", "Describes the expected outcome for the subject.", 0, java.lang.Integer.MAX_VALUE, prediction); 1651 case 1293793087: /*mitigation*/ return new Property("mitigation", "string", "A description of the steps that might be taken to reduce the identified risk(s).", 0, 1, mitigation); 1652 case 950398559: /*comment*/ return new Property("comment", "string", "Additional comments about the risk assessment.", 0, 1, comment); 1653 default: return super.getNamedProperty(_hash, _name, _checkValid); 1654 } 1655 1656 } 1657 1658 @Override 1659 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1660 switch (hash) { 1661 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : new Base[] {this.identifier}; // Identifier 1662 case -332612366: /*basedOn*/ return this.basedOn == null ? new Base[0] : new Base[] {this.basedOn}; // Reference 1663 case -995424086: /*parent*/ return this.parent == null ? new Base[0] : new Base[] {this.parent}; // Reference 1664 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<RiskAssessmentStatus> 1665 case -1077554975: /*method*/ return this.method == null ? new Base[0] : new Base[] {this.method}; // CodeableConcept 1666 case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept 1667 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 1668 case 951530927: /*context*/ return this.context == null ? new Base[0] : new Base[] {this.context}; // Reference 1669 case 1687874001: /*occurrence*/ return this.occurrence == null ? new Base[0] : new Base[] {this.occurrence}; // Type 1670 case -861311717: /*condition*/ return this.condition == null ? new Base[0] : new Base[] {this.condition}; // Reference 1671 case 481140686: /*performer*/ return this.performer == null ? new Base[0] : new Base[] {this.performer}; // Reference 1672 case -934964668: /*reason*/ return this.reason == null ? new Base[0] : new Base[] {this.reason}; // Type 1673 case 93508670: /*basis*/ return this.basis == null ? new Base[0] : this.basis.toArray(new Base[this.basis.size()]); // Reference 1674 case 1161234575: /*prediction*/ return this.prediction == null ? new Base[0] : this.prediction.toArray(new Base[this.prediction.size()]); // RiskAssessmentPredictionComponent 1675 case 1293793087: /*mitigation*/ return this.mitigation == null ? new Base[0] : new Base[] {this.mitigation}; // StringType 1676 case 950398559: /*comment*/ return this.comment == null ? new Base[0] : new Base[] {this.comment}; // StringType 1677 default: return super.getProperty(hash, name, checkValid); 1678 } 1679 1680 } 1681 1682 @Override 1683 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1684 switch (hash) { 1685 case -1618432855: // identifier 1686 this.identifier = castToIdentifier(value); // Identifier 1687 return value; 1688 case -332612366: // basedOn 1689 this.basedOn = castToReference(value); // Reference 1690 return value; 1691 case -995424086: // parent 1692 this.parent = castToReference(value); // Reference 1693 return value; 1694 case -892481550: // status 1695 value = new RiskAssessmentStatusEnumFactory().fromType(castToCode(value)); 1696 this.status = (Enumeration) value; // Enumeration<RiskAssessmentStatus> 1697 return value; 1698 case -1077554975: // method 1699 this.method = castToCodeableConcept(value); // CodeableConcept 1700 return value; 1701 case 3059181: // code 1702 this.code = castToCodeableConcept(value); // CodeableConcept 1703 return value; 1704 case -1867885268: // subject 1705 this.subject = castToReference(value); // Reference 1706 return value; 1707 case 951530927: // context 1708 this.context = castToReference(value); // Reference 1709 return value; 1710 case 1687874001: // occurrence 1711 this.occurrence = castToType(value); // Type 1712 return value; 1713 case -861311717: // condition 1714 this.condition = castToReference(value); // Reference 1715 return value; 1716 case 481140686: // performer 1717 this.performer = castToReference(value); // Reference 1718 return value; 1719 case -934964668: // reason 1720 this.reason = castToType(value); // Type 1721 return value; 1722 case 93508670: // basis 1723 this.getBasis().add(castToReference(value)); // Reference 1724 return value; 1725 case 1161234575: // prediction 1726 this.getPrediction().add((RiskAssessmentPredictionComponent) value); // RiskAssessmentPredictionComponent 1727 return value; 1728 case 1293793087: // mitigation 1729 this.mitigation = castToString(value); // StringType 1730 return value; 1731 case 950398559: // comment 1732 this.comment = castToString(value); // StringType 1733 return value; 1734 default: return super.setProperty(hash, name, value); 1735 } 1736 1737 } 1738 1739 @Override 1740 public Base setProperty(String name, Base value) throws FHIRException { 1741 if (name.equals("identifier")) { 1742 this.identifier = castToIdentifier(value); // Identifier 1743 } else if (name.equals("basedOn")) { 1744 this.basedOn = castToReference(value); // Reference 1745 } else if (name.equals("parent")) { 1746 this.parent = castToReference(value); // Reference 1747 } else if (name.equals("status")) { 1748 value = new RiskAssessmentStatusEnumFactory().fromType(castToCode(value)); 1749 this.status = (Enumeration) value; // Enumeration<RiskAssessmentStatus> 1750 } else if (name.equals("method")) { 1751 this.method = castToCodeableConcept(value); // CodeableConcept 1752 } else if (name.equals("code")) { 1753 this.code = castToCodeableConcept(value); // CodeableConcept 1754 } else if (name.equals("subject")) { 1755 this.subject = castToReference(value); // Reference 1756 } else if (name.equals("context")) { 1757 this.context = castToReference(value); // Reference 1758 } else if (name.equals("occurrence[x]")) { 1759 this.occurrence = castToType(value); // Type 1760 } else if (name.equals("condition")) { 1761 this.condition = castToReference(value); // Reference 1762 } else if (name.equals("performer")) { 1763 this.performer = castToReference(value); // Reference 1764 } else if (name.equals("reason[x]")) { 1765 this.reason = castToType(value); // Type 1766 } else if (name.equals("basis")) { 1767 this.getBasis().add(castToReference(value)); 1768 } else if (name.equals("prediction")) { 1769 this.getPrediction().add((RiskAssessmentPredictionComponent) value); 1770 } else if (name.equals("mitigation")) { 1771 this.mitigation = castToString(value); // StringType 1772 } else if (name.equals("comment")) { 1773 this.comment = castToString(value); // StringType 1774 } else 1775 return super.setProperty(name, value); 1776 return value; 1777 } 1778 1779 @Override 1780 public Base makeProperty(int hash, String name) throws FHIRException { 1781 switch (hash) { 1782 case -1618432855: return getIdentifier(); 1783 case -332612366: return getBasedOn(); 1784 case -995424086: return getParent(); 1785 case -892481550: return getStatusElement(); 1786 case -1077554975: return getMethod(); 1787 case 3059181: return getCode(); 1788 case -1867885268: return getSubject(); 1789 case 951530927: return getContext(); 1790 case -2022646513: return getOccurrence(); 1791 case 1687874001: return getOccurrence(); 1792 case -861311717: return getCondition(); 1793 case 481140686: return getPerformer(); 1794 case -669418564: return getReason(); 1795 case -934964668: return getReason(); 1796 case 93508670: return addBasis(); 1797 case 1161234575: return addPrediction(); 1798 case 1293793087: return getMitigationElement(); 1799 case 950398559: return getCommentElement(); 1800 default: return super.makeProperty(hash, name); 1801 } 1802 1803 } 1804 1805 @Override 1806 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1807 switch (hash) { 1808 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 1809 case -332612366: /*basedOn*/ return new String[] {"Reference"}; 1810 case -995424086: /*parent*/ return new String[] {"Reference"}; 1811 case -892481550: /*status*/ return new String[] {"code"}; 1812 case -1077554975: /*method*/ return new String[] {"CodeableConcept"}; 1813 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 1814 case -1867885268: /*subject*/ return new String[] {"Reference"}; 1815 case 951530927: /*context*/ return new String[] {"Reference"}; 1816 case 1687874001: /*occurrence*/ return new String[] {"dateTime", "Period"}; 1817 case -861311717: /*condition*/ return new String[] {"Reference"}; 1818 case 481140686: /*performer*/ return new String[] {"Reference"}; 1819 case -934964668: /*reason*/ return new String[] {"CodeableConcept", "Reference"}; 1820 case 93508670: /*basis*/ return new String[] {"Reference"}; 1821 case 1161234575: /*prediction*/ return new String[] {}; 1822 case 1293793087: /*mitigation*/ return new String[] {"string"}; 1823 case 950398559: /*comment*/ return new String[] {"string"}; 1824 default: return super.getTypesForProperty(hash, name); 1825 } 1826 1827 } 1828 1829 @Override 1830 public Base addChild(String name) throws FHIRException { 1831 if (name.equals("identifier")) { 1832 this.identifier = new Identifier(); 1833 return this.identifier; 1834 } 1835 else if (name.equals("basedOn")) { 1836 this.basedOn = new Reference(); 1837 return this.basedOn; 1838 } 1839 else if (name.equals("parent")) { 1840 this.parent = new Reference(); 1841 return this.parent; 1842 } 1843 else if (name.equals("status")) { 1844 throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.status"); 1845 } 1846 else if (name.equals("method")) { 1847 this.method = new CodeableConcept(); 1848 return this.method; 1849 } 1850 else if (name.equals("code")) { 1851 this.code = new CodeableConcept(); 1852 return this.code; 1853 } 1854 else if (name.equals("subject")) { 1855 this.subject = new Reference(); 1856 return this.subject; 1857 } 1858 else if (name.equals("context")) { 1859 this.context = new Reference(); 1860 return this.context; 1861 } 1862 else if (name.equals("occurrenceDateTime")) { 1863 this.occurrence = new DateTimeType(); 1864 return this.occurrence; 1865 } 1866 else if (name.equals("occurrencePeriod")) { 1867 this.occurrence = new Period(); 1868 return this.occurrence; 1869 } 1870 else if (name.equals("condition")) { 1871 this.condition = new Reference(); 1872 return this.condition; 1873 } 1874 else if (name.equals("performer")) { 1875 this.performer = new Reference(); 1876 return this.performer; 1877 } 1878 else if (name.equals("reasonCodeableConcept")) { 1879 this.reason = new CodeableConcept(); 1880 return this.reason; 1881 } 1882 else if (name.equals("reasonReference")) { 1883 this.reason = new Reference(); 1884 return this.reason; 1885 } 1886 else if (name.equals("basis")) { 1887 return addBasis(); 1888 } 1889 else if (name.equals("prediction")) { 1890 return addPrediction(); 1891 } 1892 else if (name.equals("mitigation")) { 1893 throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.mitigation"); 1894 } 1895 else if (name.equals("comment")) { 1896 throw new FHIRException("Cannot call addChild on a primitive type RiskAssessment.comment"); 1897 } 1898 else 1899 return super.addChild(name); 1900 } 1901 1902 public String fhirType() { 1903 return "RiskAssessment"; 1904 1905 } 1906 1907 public RiskAssessment copy() { 1908 RiskAssessment dst = new RiskAssessment(); 1909 copyValues(dst); 1910 dst.identifier = identifier == null ? null : identifier.copy(); 1911 dst.basedOn = basedOn == null ? null : basedOn.copy(); 1912 dst.parent = parent == null ? null : parent.copy(); 1913 dst.status = status == null ? null : status.copy(); 1914 dst.method = method == null ? null : method.copy(); 1915 dst.code = code == null ? null : code.copy(); 1916 dst.subject = subject == null ? null : subject.copy(); 1917 dst.context = context == null ? null : context.copy(); 1918 dst.occurrence = occurrence == null ? null : occurrence.copy(); 1919 dst.condition = condition == null ? null : condition.copy(); 1920 dst.performer = performer == null ? null : performer.copy(); 1921 dst.reason = reason == null ? null : reason.copy(); 1922 if (basis != null) { 1923 dst.basis = new ArrayList<Reference>(); 1924 for (Reference i : basis) 1925 dst.basis.add(i.copy()); 1926 }; 1927 if (prediction != null) { 1928 dst.prediction = new ArrayList<RiskAssessmentPredictionComponent>(); 1929 for (RiskAssessmentPredictionComponent i : prediction) 1930 dst.prediction.add(i.copy()); 1931 }; 1932 dst.mitigation = mitigation == null ? null : mitigation.copy(); 1933 dst.comment = comment == null ? null : comment.copy(); 1934 return dst; 1935 } 1936 1937 protected RiskAssessment typedCopy() { 1938 return copy(); 1939 } 1940 1941 @Override 1942 public boolean equalsDeep(Base other_) { 1943 if (!super.equalsDeep(other_)) 1944 return false; 1945 if (!(other_ instanceof RiskAssessment)) 1946 return false; 1947 RiskAssessment o = (RiskAssessment) other_; 1948 return compareDeep(identifier, o.identifier, true) && compareDeep(basedOn, o.basedOn, true) && compareDeep(parent, o.parent, true) 1949 && compareDeep(status, o.status, true) && compareDeep(method, o.method, true) && compareDeep(code, o.code, true) 1950 && compareDeep(subject, o.subject, true) && compareDeep(context, o.context, true) && compareDeep(occurrence, o.occurrence, true) 1951 && compareDeep(condition, o.condition, true) && compareDeep(performer, o.performer, true) && compareDeep(reason, o.reason, true) 1952 && compareDeep(basis, o.basis, true) && compareDeep(prediction, o.prediction, true) && compareDeep(mitigation, o.mitigation, true) 1953 && compareDeep(comment, o.comment, true); 1954 } 1955 1956 @Override 1957 public boolean equalsShallow(Base other_) { 1958 if (!super.equalsShallow(other_)) 1959 return false; 1960 if (!(other_ instanceof RiskAssessment)) 1961 return false; 1962 RiskAssessment o = (RiskAssessment) other_; 1963 return compareValues(status, o.status, true) && compareValues(mitigation, o.mitigation, true) && compareValues(comment, o.comment, true) 1964 ; 1965 } 1966 1967 public boolean isEmpty() { 1968 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, basedOn, parent 1969 , status, method, code, subject, context, occurrence, condition, performer, reason 1970 , basis, prediction, mitigation, comment); 1971 } 1972 1973 @Override 1974 public ResourceType getResourceType() { 1975 return ResourceType.RiskAssessment; 1976 } 1977 1978 /** 1979 * Search parameter: <b>date</b> 1980 * <p> 1981 * Description: <b>When was assessment made?</b><br> 1982 * Type: <b>date</b><br> 1983 * Path: <b>RiskAssessment.occurrenceDateTime</b><br> 1984 * </p> 1985 */ 1986 @SearchParamDefinition(name="date", path="RiskAssessment.occurrence.as(DateTime)", description="When was assessment made?", type="date" ) 1987 public static final String SP_DATE = "date"; 1988 /** 1989 * <b>Fluent Client</b> search parameter constant for <b>date</b> 1990 * <p> 1991 * Description: <b>When was assessment made?</b><br> 1992 * Type: <b>date</b><br> 1993 * Path: <b>RiskAssessment.occurrenceDateTime</b><br> 1994 * </p> 1995 */ 1996 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 1997 1998 /** 1999 * Search parameter: <b>identifier</b> 2000 * <p> 2001 * Description: <b>Unique identifier for the assessment</b><br> 2002 * Type: <b>token</b><br> 2003 * Path: <b>RiskAssessment.identifier</b><br> 2004 * </p> 2005 */ 2006 @SearchParamDefinition(name="identifier", path="RiskAssessment.identifier", description="Unique identifier for the assessment", type="token" ) 2007 public static final String SP_IDENTIFIER = "identifier"; 2008 /** 2009 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 2010 * <p> 2011 * Description: <b>Unique identifier for the assessment</b><br> 2012 * Type: <b>token</b><br> 2013 * Path: <b>RiskAssessment.identifier</b><br> 2014 * </p> 2015 */ 2016 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 2017 2018 /** 2019 * Search parameter: <b>condition</b> 2020 * <p> 2021 * Description: <b>Condition assessed</b><br> 2022 * Type: <b>reference</b><br> 2023 * Path: <b>RiskAssessment.condition</b><br> 2024 * </p> 2025 */ 2026 @SearchParamDefinition(name="condition", path="RiskAssessment.condition", description="Condition assessed", type="reference", target={Condition.class } ) 2027 public static final String SP_CONDITION = "condition"; 2028 /** 2029 * <b>Fluent Client</b> search parameter constant for <b>condition</b> 2030 * <p> 2031 * Description: <b>Condition assessed</b><br> 2032 * Type: <b>reference</b><br> 2033 * Path: <b>RiskAssessment.condition</b><br> 2034 * </p> 2035 */ 2036 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam CONDITION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_CONDITION); 2037 2038/** 2039 * Constant for fluent queries to be used to add include statements. Specifies 2040 * the path value of "<b>RiskAssessment:condition</b>". 2041 */ 2042 public static final ca.uhn.fhir.model.api.Include INCLUDE_CONDITION = new ca.uhn.fhir.model.api.Include("RiskAssessment:condition").toLocked(); 2043 2044 /** 2045 * Search parameter: <b>performer</b> 2046 * <p> 2047 * Description: <b>Who did assessment?</b><br> 2048 * Type: <b>reference</b><br> 2049 * Path: <b>RiskAssessment.performer</b><br> 2050 * </p> 2051 */ 2052 @SearchParamDefinition(name="performer", path="RiskAssessment.performer", description="Who did assessment?", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") }, target={Device.class, Practitioner.class } ) 2053 public static final String SP_PERFORMER = "performer"; 2054 /** 2055 * <b>Fluent Client</b> search parameter constant for <b>performer</b> 2056 * <p> 2057 * Description: <b>Who did assessment?</b><br> 2058 * Type: <b>reference</b><br> 2059 * Path: <b>RiskAssessment.performer</b><br> 2060 * </p> 2061 */ 2062 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PERFORMER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PERFORMER); 2063 2064/** 2065 * Constant for fluent queries to be used to add include statements. Specifies 2066 * the path value of "<b>RiskAssessment:performer</b>". 2067 */ 2068 public static final ca.uhn.fhir.model.api.Include INCLUDE_PERFORMER = new ca.uhn.fhir.model.api.Include("RiskAssessment:performer").toLocked(); 2069 2070 /** 2071 * Search parameter: <b>method</b> 2072 * <p> 2073 * Description: <b>Evaluation mechanism</b><br> 2074 * Type: <b>token</b><br> 2075 * Path: <b>RiskAssessment.method</b><br> 2076 * </p> 2077 */ 2078 @SearchParamDefinition(name="method", path="RiskAssessment.method", description="Evaluation mechanism", type="token" ) 2079 public static final String SP_METHOD = "method"; 2080 /** 2081 * <b>Fluent Client</b> search parameter constant for <b>method</b> 2082 * <p> 2083 * Description: <b>Evaluation mechanism</b><br> 2084 * Type: <b>token</b><br> 2085 * Path: <b>RiskAssessment.method</b><br> 2086 * </p> 2087 */ 2088 public static final ca.uhn.fhir.rest.gclient.TokenClientParam METHOD = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_METHOD); 2089 2090 /** 2091 * Search parameter: <b>subject</b> 2092 * <p> 2093 * Description: <b>Who/what does assessment apply to?</b><br> 2094 * Type: <b>reference</b><br> 2095 * Path: <b>RiskAssessment.subject</b><br> 2096 * </p> 2097 */ 2098 @SearchParamDefinition(name="subject", path="RiskAssessment.subject", description="Who/what does assessment apply to?", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") }, target={Group.class, Patient.class } ) 2099 public static final String SP_SUBJECT = "subject"; 2100 /** 2101 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 2102 * <p> 2103 * Description: <b>Who/what does assessment apply to?</b><br> 2104 * Type: <b>reference</b><br> 2105 * Path: <b>RiskAssessment.subject</b><br> 2106 * </p> 2107 */ 2108 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 2109 2110/** 2111 * Constant for fluent queries to be used to add include statements. Specifies 2112 * the path value of "<b>RiskAssessment:subject</b>". 2113 */ 2114 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("RiskAssessment:subject").toLocked(); 2115 2116 /** 2117 * Search parameter: <b>patient</b> 2118 * <p> 2119 * Description: <b>Who/what does assessment apply to?</b><br> 2120 * Type: <b>reference</b><br> 2121 * Path: <b>RiskAssessment.subject</b><br> 2122 * </p> 2123 */ 2124 @SearchParamDefinition(name="patient", path="RiskAssessment.subject", description="Who/what does assessment apply to?", type="reference", target={Patient.class } ) 2125 public static final String SP_PATIENT = "patient"; 2126 /** 2127 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 2128 * <p> 2129 * Description: <b>Who/what does assessment apply to?</b><br> 2130 * Type: <b>reference</b><br> 2131 * Path: <b>RiskAssessment.subject</b><br> 2132 * </p> 2133 */ 2134 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 2135 2136/** 2137 * Constant for fluent queries to be used to add include statements. Specifies 2138 * the path value of "<b>RiskAssessment:patient</b>". 2139 */ 2140 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("RiskAssessment:patient").toLocked(); 2141 2142 /** 2143 * Search parameter: <b>probability</b> 2144 * <p> 2145 * Description: <b>Likelihood of specified outcome</b><br> 2146 * Type: <b>number</b><br> 2147 * Path: <b>RiskAssessment.prediction.probability[x]</b><br> 2148 * </p> 2149 */ 2150 @SearchParamDefinition(name="probability", path="RiskAssessment.prediction.probability", description="Likelihood of specified outcome", type="number" ) 2151 public static final String SP_PROBABILITY = "probability"; 2152 /** 2153 * <b>Fluent Client</b> search parameter constant for <b>probability</b> 2154 * <p> 2155 * Description: <b>Likelihood of specified outcome</b><br> 2156 * Type: <b>number</b><br> 2157 * Path: <b>RiskAssessment.prediction.probability[x]</b><br> 2158 * </p> 2159 */ 2160 public static final ca.uhn.fhir.rest.gclient.NumberClientParam PROBABILITY = new ca.uhn.fhir.rest.gclient.NumberClientParam(SP_PROBABILITY); 2161 2162 /** 2163 * Search parameter: <b>risk</b> 2164 * <p> 2165 * Description: <b>Likelihood of specified outcome as a qualitative value</b><br> 2166 * Type: <b>token</b><br> 2167 * Path: <b>RiskAssessment.prediction.qualitativeRisk</b><br> 2168 * </p> 2169 */ 2170 @SearchParamDefinition(name="risk", path="RiskAssessment.prediction.qualitativeRisk", description="Likelihood of specified outcome as a qualitative value", type="token" ) 2171 public static final String SP_RISK = "risk"; 2172 /** 2173 * <b>Fluent Client</b> search parameter constant for <b>risk</b> 2174 * <p> 2175 * Description: <b>Likelihood of specified outcome as a qualitative value</b><br> 2176 * Type: <b>token</b><br> 2177 * Path: <b>RiskAssessment.prediction.qualitativeRisk</b><br> 2178 * </p> 2179 */ 2180 public static final ca.uhn.fhir.rest.gclient.TokenClientParam RISK = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_RISK); 2181 2182 /** 2183 * Search parameter: <b>encounter</b> 2184 * <p> 2185 * Description: <b>Where was assessment performed?</b><br> 2186 * Type: <b>reference</b><br> 2187 * Path: <b>RiskAssessment.context</b><br> 2188 * </p> 2189 */ 2190 @SearchParamDefinition(name="encounter", path="RiskAssessment.context", description="Where was assessment performed?", type="reference", target={Encounter.class } ) 2191 public static final String SP_ENCOUNTER = "encounter"; 2192 /** 2193 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 2194 * <p> 2195 * Description: <b>Where was assessment performed?</b><br> 2196 * Type: <b>reference</b><br> 2197 * Path: <b>RiskAssessment.context</b><br> 2198 * </p> 2199 */ 2200 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); 2201 2202/** 2203 * Constant for fluent queries to be used to add include statements. Specifies 2204 * the path value of "<b>RiskAssessment:encounter</b>". 2205 */ 2206 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("RiskAssessment:encounter").toLocked(); 2207 2208 2209} 2210