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