001package org.hl7.fhir.r5.model; 002 003/*- 004 * #%L 005 * org.hl7.fhir.r5 006 * %% 007 * Copyright (C) 2014 - 2019 Health Level 7 008 * %% 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 * #L% 021 */ 022 023/* 024 Copyright (c) 2011+, HL7, Inc. 025 All rights reserved. 026 027 Redistribution and use in source and binary forms, with or without modification, 028 are permitted provided that the following conditions are met: 029 030 * Redistributions of source code must retain the above copyright notice, this 031 list of conditions and the following disclaimer. 032 * Redistributions in binary form must reproduce the above copyright notice, 033 this list of conditions and the following disclaimer in the documentation 034 and/or other materials provided with the distribution. 035 * Neither the name of HL7 nor the names of its contributors may be used to 036 endorse or promote products derived from this software without specific 037 prior written permission. 038 039 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 040 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 041 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 042 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 043 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 044 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 045 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 046 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 047 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 048 POSSIBILITY OF SUCH DAMAGE. 049 050*/ 051 052// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0 053import java.util.ArrayList; 054import java.util.Date; 055import java.util.List; 056import org.hl7.fhir.exceptions.FHIRException; 057import org.hl7.fhir.instance.model.api.ICompositeType; 058 059import org.hl7.fhir.instance.model.api.IBaseDatatypeElement; 060import org.hl7.fhir.utilities.Utilities; 061import ca.uhn.fhir.model.api.annotation.ResourceDef; 062import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 063import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 064import ca.uhn.fhir.model.api.annotation.Child; 065import ca.uhn.fhir.model.api.annotation.ChildOrder; 066import ca.uhn.fhir.model.api.annotation.Description; 067import ca.uhn.fhir.model.api.annotation.Block; 068/** 069 * Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc. 070 */ 071@ResourceDef(name="Goal", profile="http://hl7.org/fhir/StructureDefinition/Goal") 072public class Goal extends DomainResource { 073 074 public enum GoalLifecycleStatus { 075 /** 076 * A goal is proposed for this patient. 077 */ 078 PROPOSED, 079 /** 080 * A goal is planned for this patient. 081 */ 082 PLANNED, 083 /** 084 * A proposed goal was accepted or acknowledged. 085 */ 086 ACCEPTED, 087 /** 088 * The goal is being sought actively. 089 */ 090 ACTIVE, 091 /** 092 * The goal remains a long term objective but is no longer being actively pursued for a temporary period of time. 093 */ 094 ONHOLD, 095 /** 096 * The goal is no longer being sought. 097 */ 098 COMPLETED, 099 /** 100 * The goal has been abandoned. 101 */ 102 CANCELLED, 103 /** 104 * The goal was entered in error and voided. 105 */ 106 ENTEREDINERROR, 107 /** 108 * A proposed goal was rejected. 109 */ 110 REJECTED, 111 /** 112 * added to help the parsers with the generic types 113 */ 114 NULL; 115 public static GoalLifecycleStatus fromCode(String codeString) throws FHIRException { 116 if (codeString == null || "".equals(codeString)) 117 return null; 118 if ("proposed".equals(codeString)) 119 return PROPOSED; 120 if ("planned".equals(codeString)) 121 return PLANNED; 122 if ("accepted".equals(codeString)) 123 return ACCEPTED; 124 if ("active".equals(codeString)) 125 return ACTIVE; 126 if ("on-hold".equals(codeString)) 127 return ONHOLD; 128 if ("completed".equals(codeString)) 129 return COMPLETED; 130 if ("cancelled".equals(codeString)) 131 return CANCELLED; 132 if ("entered-in-error".equals(codeString)) 133 return ENTEREDINERROR; 134 if ("rejected".equals(codeString)) 135 return REJECTED; 136 if (Configuration.isAcceptInvalidEnums()) 137 return null; 138 else 139 throw new FHIRException("Unknown GoalLifecycleStatus code '"+codeString+"'"); 140 } 141 public String toCode() { 142 switch (this) { 143 case PROPOSED: return "proposed"; 144 case PLANNED: return "planned"; 145 case ACCEPTED: return "accepted"; 146 case ACTIVE: return "active"; 147 case ONHOLD: return "on-hold"; 148 case COMPLETED: return "completed"; 149 case CANCELLED: return "cancelled"; 150 case ENTEREDINERROR: return "entered-in-error"; 151 case REJECTED: return "rejected"; 152 default: return "?"; 153 } 154 } 155 public String getSystem() { 156 switch (this) { 157 case PROPOSED: return "http://hl7.org/fhir/goal-status"; 158 case PLANNED: return "http://hl7.org/fhir/goal-status"; 159 case ACCEPTED: return "http://hl7.org/fhir/goal-status"; 160 case ACTIVE: return "http://hl7.org/fhir/goal-status"; 161 case ONHOLD: return "http://hl7.org/fhir/goal-status"; 162 case COMPLETED: return "http://hl7.org/fhir/goal-status"; 163 case CANCELLED: return "http://hl7.org/fhir/goal-status"; 164 case ENTEREDINERROR: return "http://hl7.org/fhir/goal-status"; 165 case REJECTED: return "http://hl7.org/fhir/goal-status"; 166 default: return "?"; 167 } 168 } 169 public String getDefinition() { 170 switch (this) { 171 case PROPOSED: return "A goal is proposed for this patient."; 172 case PLANNED: return "A goal is planned for this patient."; 173 case ACCEPTED: return "A proposed goal was accepted or acknowledged."; 174 case ACTIVE: return "The goal is being sought actively."; 175 case ONHOLD: return "The goal remains a long term objective but is no longer being actively pursued for a temporary period of time."; 176 case COMPLETED: return "The goal is no longer being sought."; 177 case CANCELLED: return "The goal has been abandoned."; 178 case ENTEREDINERROR: return "The goal was entered in error and voided."; 179 case REJECTED: return "A proposed goal was rejected."; 180 default: return "?"; 181 } 182 } 183 public String getDisplay() { 184 switch (this) { 185 case PROPOSED: return "Proposed"; 186 case PLANNED: return "Planned"; 187 case ACCEPTED: return "Accepted"; 188 case ACTIVE: return "Active"; 189 case ONHOLD: return "On Hold"; 190 case COMPLETED: return "Completed"; 191 case CANCELLED: return "Cancelled"; 192 case ENTEREDINERROR: return "Entered in Error"; 193 case REJECTED: return "Rejected"; 194 default: return "?"; 195 } 196 } 197 } 198 199 public static class GoalLifecycleStatusEnumFactory implements EnumFactory<GoalLifecycleStatus> { 200 public GoalLifecycleStatus fromCode(String codeString) throws IllegalArgumentException { 201 if (codeString == null || "".equals(codeString)) 202 if (codeString == null || "".equals(codeString)) 203 return null; 204 if ("proposed".equals(codeString)) 205 return GoalLifecycleStatus.PROPOSED; 206 if ("planned".equals(codeString)) 207 return GoalLifecycleStatus.PLANNED; 208 if ("accepted".equals(codeString)) 209 return GoalLifecycleStatus.ACCEPTED; 210 if ("active".equals(codeString)) 211 return GoalLifecycleStatus.ACTIVE; 212 if ("on-hold".equals(codeString)) 213 return GoalLifecycleStatus.ONHOLD; 214 if ("completed".equals(codeString)) 215 return GoalLifecycleStatus.COMPLETED; 216 if ("cancelled".equals(codeString)) 217 return GoalLifecycleStatus.CANCELLED; 218 if ("entered-in-error".equals(codeString)) 219 return GoalLifecycleStatus.ENTEREDINERROR; 220 if ("rejected".equals(codeString)) 221 return GoalLifecycleStatus.REJECTED; 222 throw new IllegalArgumentException("Unknown GoalLifecycleStatus code '"+codeString+"'"); 223 } 224 public Enumeration<GoalLifecycleStatus> fromType(Base code) throws FHIRException { 225 if (code == null) 226 return null; 227 if (code.isEmpty()) 228 return new Enumeration<GoalLifecycleStatus>(this); 229 String codeString = ((PrimitiveType) code).asStringValue(); 230 if (codeString == null || "".equals(codeString)) 231 return null; 232 if ("proposed".equals(codeString)) 233 return new Enumeration<GoalLifecycleStatus>(this, GoalLifecycleStatus.PROPOSED); 234 if ("planned".equals(codeString)) 235 return new Enumeration<GoalLifecycleStatus>(this, GoalLifecycleStatus.PLANNED); 236 if ("accepted".equals(codeString)) 237 return new Enumeration<GoalLifecycleStatus>(this, GoalLifecycleStatus.ACCEPTED); 238 if ("active".equals(codeString)) 239 return new Enumeration<GoalLifecycleStatus>(this, GoalLifecycleStatus.ACTIVE); 240 if ("on-hold".equals(codeString)) 241 return new Enumeration<GoalLifecycleStatus>(this, GoalLifecycleStatus.ONHOLD); 242 if ("completed".equals(codeString)) 243 return new Enumeration<GoalLifecycleStatus>(this, GoalLifecycleStatus.COMPLETED); 244 if ("cancelled".equals(codeString)) 245 return new Enumeration<GoalLifecycleStatus>(this, GoalLifecycleStatus.CANCELLED); 246 if ("entered-in-error".equals(codeString)) 247 return new Enumeration<GoalLifecycleStatus>(this, GoalLifecycleStatus.ENTEREDINERROR); 248 if ("rejected".equals(codeString)) 249 return new Enumeration<GoalLifecycleStatus>(this, GoalLifecycleStatus.REJECTED); 250 throw new FHIRException("Unknown GoalLifecycleStatus code '"+codeString+"'"); 251 } 252 public String toCode(GoalLifecycleStatus code) { 253 if (code == GoalLifecycleStatus.PROPOSED) 254 return "proposed"; 255 if (code == GoalLifecycleStatus.PLANNED) 256 return "planned"; 257 if (code == GoalLifecycleStatus.ACCEPTED) 258 return "accepted"; 259 if (code == GoalLifecycleStatus.ACTIVE) 260 return "active"; 261 if (code == GoalLifecycleStatus.ONHOLD) 262 return "on-hold"; 263 if (code == GoalLifecycleStatus.COMPLETED) 264 return "completed"; 265 if (code == GoalLifecycleStatus.CANCELLED) 266 return "cancelled"; 267 if (code == GoalLifecycleStatus.ENTEREDINERROR) 268 return "entered-in-error"; 269 if (code == GoalLifecycleStatus.REJECTED) 270 return "rejected"; 271 return "?"; 272 } 273 public String toSystem(GoalLifecycleStatus code) { 274 return code.getSystem(); 275 } 276 } 277 278 @Block() 279 public static class GoalTargetComponent extends BackboneElement implements IBaseBackboneElement { 280 /** 281 * The parameter whose value is being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level. 282 */ 283 @Child(name = "measure", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) 284 @Description(shortDefinition="The parameter whose value is being tracked", formalDefinition="The parameter whose value is being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level." ) 285 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/observation-codes") 286 protected CodeableConcept measure; 287 288 /** 289 * The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value. 290 */ 291 @Child(name = "detail", type = {Quantity.class, Range.class, CodeableConcept.class, StringType.class, BooleanType.class, IntegerType.class, Ratio.class}, order=2, min=0, max=1, modifier=false, summary=true) 292 @Description(shortDefinition="The target value to be achieved", formalDefinition="The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value." ) 293 protected Type detail; 294 295 /** 296 * Indicates either the date or the duration after start by which the goal should be met. 297 */ 298 @Child(name = "due", type = {DateType.class, Duration.class}, order=3, min=0, max=1, modifier=false, summary=true) 299 @Description(shortDefinition="Reach goal on or before", formalDefinition="Indicates either the date or the duration after start by which the goal should be met." ) 300 protected Type due; 301 302 private static final long serialVersionUID = -585108934L; 303 304 /** 305 * Constructor 306 */ 307 public GoalTargetComponent() { 308 super(); 309 } 310 311 /** 312 * @return {@link #measure} (The parameter whose value is being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.) 313 */ 314 public CodeableConcept getMeasure() { 315 if (this.measure == null) 316 if (Configuration.errorOnAutoCreate()) 317 throw new Error("Attempt to auto-create GoalTargetComponent.measure"); 318 else if (Configuration.doAutoCreate()) 319 this.measure = new CodeableConcept(); // cc 320 return this.measure; 321 } 322 323 public boolean hasMeasure() { 324 return this.measure != null && !this.measure.isEmpty(); 325 } 326 327 /** 328 * @param value {@link #measure} (The parameter whose value is being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.) 329 */ 330 public GoalTargetComponent setMeasure(CodeableConcept value) { 331 this.measure = value; 332 return this; 333 } 334 335 /** 336 * @return {@link #detail} (The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.) 337 */ 338 public Type getDetail() { 339 return this.detail; 340 } 341 342 /** 343 * @return {@link #detail} (The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.) 344 */ 345 public Quantity getDetailQuantity() throws FHIRException { 346 if (this.detail == null) 347 this.detail = new Quantity(); 348 if (!(this.detail instanceof Quantity)) 349 throw new FHIRException("Type mismatch: the type Quantity was expected, but "+this.detail.getClass().getName()+" was encountered"); 350 return (Quantity) this.detail; 351 } 352 353 public boolean hasDetailQuantity() { 354 return this != null && this.detail instanceof Quantity; 355 } 356 357 /** 358 * @return {@link #detail} (The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.) 359 */ 360 public Range getDetailRange() throws FHIRException { 361 if (this.detail == null) 362 this.detail = new Range(); 363 if (!(this.detail instanceof Range)) 364 throw new FHIRException("Type mismatch: the type Range was expected, but "+this.detail.getClass().getName()+" was encountered"); 365 return (Range) this.detail; 366 } 367 368 public boolean hasDetailRange() { 369 return this != null && this.detail instanceof Range; 370 } 371 372 /** 373 * @return {@link #detail} (The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.) 374 */ 375 public CodeableConcept getDetailCodeableConcept() throws FHIRException { 376 if (this.detail == null) 377 this.detail = new CodeableConcept(); 378 if (!(this.detail instanceof CodeableConcept)) 379 throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.detail.getClass().getName()+" was encountered"); 380 return (CodeableConcept) this.detail; 381 } 382 383 public boolean hasDetailCodeableConcept() { 384 return this != null && this.detail instanceof CodeableConcept; 385 } 386 387 /** 388 * @return {@link #detail} (The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.) 389 */ 390 public StringType getDetailStringType() throws FHIRException { 391 if (this.detail == null) 392 this.detail = new StringType(); 393 if (!(this.detail instanceof StringType)) 394 throw new FHIRException("Type mismatch: the type StringType was expected, but "+this.detail.getClass().getName()+" was encountered"); 395 return (StringType) this.detail; 396 } 397 398 public boolean hasDetailStringType() { 399 return this != null && this.detail instanceof StringType; 400 } 401 402 /** 403 * @return {@link #detail} (The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.) 404 */ 405 public BooleanType getDetailBooleanType() throws FHIRException { 406 if (this.detail == null) 407 this.detail = new BooleanType(); 408 if (!(this.detail instanceof BooleanType)) 409 throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.detail.getClass().getName()+" was encountered"); 410 return (BooleanType) this.detail; 411 } 412 413 public boolean hasDetailBooleanType() { 414 return this != null && this.detail instanceof BooleanType; 415 } 416 417 /** 418 * @return {@link #detail} (The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.) 419 */ 420 public IntegerType getDetailIntegerType() throws FHIRException { 421 if (this.detail == null) 422 this.detail = new IntegerType(); 423 if (!(this.detail instanceof IntegerType)) 424 throw new FHIRException("Type mismatch: the type IntegerType was expected, but "+this.detail.getClass().getName()+" was encountered"); 425 return (IntegerType) this.detail; 426 } 427 428 public boolean hasDetailIntegerType() { 429 return this != null && this.detail instanceof IntegerType; 430 } 431 432 /** 433 * @return {@link #detail} (The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.) 434 */ 435 public Ratio getDetailRatio() throws FHIRException { 436 if (this.detail == null) 437 this.detail = new Ratio(); 438 if (!(this.detail instanceof Ratio)) 439 throw new FHIRException("Type mismatch: the type Ratio was expected, but "+this.detail.getClass().getName()+" was encountered"); 440 return (Ratio) this.detail; 441 } 442 443 public boolean hasDetailRatio() { 444 return this != null && this.detail instanceof Ratio; 445 } 446 447 public boolean hasDetail() { 448 return this.detail != null && !this.detail.isEmpty(); 449 } 450 451 /** 452 * @param value {@link #detail} (The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.) 453 */ 454 public GoalTargetComponent setDetail(Type value) { 455 if (value != null && !(value instanceof Quantity || value instanceof Range || value instanceof CodeableConcept || value instanceof StringType || value instanceof BooleanType || value instanceof IntegerType || value instanceof Ratio)) 456 throw new Error("Not the right type for Goal.target.detail[x]: "+value.fhirType()); 457 this.detail = value; 458 return this; 459 } 460 461 /** 462 * @return {@link #due} (Indicates either the date or the duration after start by which the goal should be met.) 463 */ 464 public Type getDue() { 465 return this.due; 466 } 467 468 /** 469 * @return {@link #due} (Indicates either the date or the duration after start by which the goal should be met.) 470 */ 471 public DateType getDueDateType() throws FHIRException { 472 if (this.due == null) 473 this.due = new DateType(); 474 if (!(this.due instanceof DateType)) 475 throw new FHIRException("Type mismatch: the type DateType was expected, but "+this.due.getClass().getName()+" was encountered"); 476 return (DateType) this.due; 477 } 478 479 public boolean hasDueDateType() { 480 return this != null && this.due instanceof DateType; 481 } 482 483 /** 484 * @return {@link #due} (Indicates either the date or the duration after start by which the goal should be met.) 485 */ 486 public Duration getDueDuration() throws FHIRException { 487 if (this.due == null) 488 this.due = new Duration(); 489 if (!(this.due instanceof Duration)) 490 throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.due.getClass().getName()+" was encountered"); 491 return (Duration) this.due; 492 } 493 494 public boolean hasDueDuration() { 495 return this != null && this.due instanceof Duration; 496 } 497 498 public boolean hasDue() { 499 return this.due != null && !this.due.isEmpty(); 500 } 501 502 /** 503 * @param value {@link #due} (Indicates either the date or the duration after start by which the goal should be met.) 504 */ 505 public GoalTargetComponent setDue(Type value) { 506 if (value != null && !(value instanceof DateType || value instanceof Duration)) 507 throw new Error("Not the right type for Goal.target.due[x]: "+value.fhirType()); 508 this.due = value; 509 return this; 510 } 511 512 protected void listChildren(List<Property> children) { 513 super.listChildren(children); 514 children.add(new Property("measure", "CodeableConcept", "The parameter whose value is being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.", 0, 1, measure)); 515 children.add(new Property("detail[x]", "Quantity|Range|CodeableConcept|string|boolean|integer|Ratio", "The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.", 0, 1, detail)); 516 children.add(new Property("due[x]", "date|Duration", "Indicates either the date or the duration after start by which the goal should be met.", 0, 1, due)); 517 } 518 519 @Override 520 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 521 switch (_hash) { 522 case 938321246: /*measure*/ return new Property("measure", "CodeableConcept", "The parameter whose value is being tracked, e.g. body weight, blood pressure, or hemoglobin A1c level.", 0, 1, measure); 523 case -1973084529: /*detail[x]*/ return new Property("detail[x]", "Quantity|Range|CodeableConcept|string|boolean|integer|Ratio", "The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.", 0, 1, detail); 524 case -1335224239: /*detail*/ return new Property("detail[x]", "Quantity|Range|CodeableConcept|string|boolean|integer|Ratio", "The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.", 0, 1, detail); 525 case -1313079300: /*detailQuantity*/ return new Property("detail[x]", "Quantity|Range|CodeableConcept|string|boolean|integer|Ratio", "The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.", 0, 1, detail); 526 case -2062632084: /*detailRange*/ return new Property("detail[x]", "Quantity|Range|CodeableConcept|string|boolean|integer|Ratio", "The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.", 0, 1, detail); 527 case -175586544: /*detailCodeableConcept*/ return new Property("detail[x]", "Quantity|Range|CodeableConcept|string|boolean|integer|Ratio", "The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.", 0, 1, detail); 528 case 529212354: /*detailString*/ return new Property("detail[x]", "Quantity|Range|CodeableConcept|string|boolean|integer|Ratio", "The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.", 0, 1, detail); 529 case 1172184727: /*detailBoolean*/ return new Property("detail[x]", "Quantity|Range|CodeableConcept|string|boolean|integer|Ratio", "The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.", 0, 1, detail); 530 case -1229442131: /*detailInteger*/ return new Property("detail[x]", "Quantity|Range|CodeableConcept|string|boolean|integer|Ratio", "The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.", 0, 1, detail); 531 case -2062626246: /*detailRatio*/ return new Property("detail[x]", "Quantity|Range|CodeableConcept|string|boolean|integer|Ratio", "The target value of the focus to be achieved to signify the fulfillment of the goal, e.g. 150 pounds, 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any focus value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any focus value at or above the low value.", 0, 1, detail); 532 case -1320900084: /*due[x]*/ return new Property("due[x]", "date|Duration", "Indicates either the date or the duration after start by which the goal should be met.", 0, 1, due); 533 case 99828: /*due*/ return new Property("due[x]", "date|Duration", "Indicates either the date or the duration after start by which the goal should be met.", 0, 1, due); 534 case 2001063874: /*dueDate*/ return new Property("due[x]", "date|Duration", "Indicates either the date or the duration after start by which the goal should be met.", 0, 1, due); 535 case -620428376: /*dueDuration*/ return new Property("due[x]", "date|Duration", "Indicates either the date or the duration after start by which the goal should be met.", 0, 1, due); 536 default: return super.getNamedProperty(_hash, _name, _checkValid); 537 } 538 539 } 540 541 @Override 542 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 543 switch (hash) { 544 case 938321246: /*measure*/ return this.measure == null ? new Base[0] : new Base[] {this.measure}; // CodeableConcept 545 case -1335224239: /*detail*/ return this.detail == null ? new Base[0] : new Base[] {this.detail}; // Type 546 case 99828: /*due*/ return this.due == null ? new Base[0] : new Base[] {this.due}; // Type 547 default: return super.getProperty(hash, name, checkValid); 548 } 549 550 } 551 552 @Override 553 public Base setProperty(int hash, String name, Base value) throws FHIRException { 554 switch (hash) { 555 case 938321246: // measure 556 this.measure = castToCodeableConcept(value); // CodeableConcept 557 return value; 558 case -1335224239: // detail 559 this.detail = castToType(value); // Type 560 return value; 561 case 99828: // due 562 this.due = castToType(value); // Type 563 return value; 564 default: return super.setProperty(hash, name, value); 565 } 566 567 } 568 569 @Override 570 public Base setProperty(String name, Base value) throws FHIRException { 571 if (name.equals("measure")) { 572 this.measure = castToCodeableConcept(value); // CodeableConcept 573 } else if (name.equals("detail[x]")) { 574 this.detail = castToType(value); // Type 575 } else if (name.equals("due[x]")) { 576 this.due = castToType(value); // Type 577 } else 578 return super.setProperty(name, value); 579 return value; 580 } 581 582 @Override 583 public Base makeProperty(int hash, String name) throws FHIRException { 584 switch (hash) { 585 case 938321246: return getMeasure(); 586 case -1973084529: return getDetail(); 587 case -1335224239: return getDetail(); 588 case -1320900084: return getDue(); 589 case 99828: return getDue(); 590 default: return super.makeProperty(hash, name); 591 } 592 593 } 594 595 @Override 596 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 597 switch (hash) { 598 case 938321246: /*measure*/ return new String[] {"CodeableConcept"}; 599 case -1335224239: /*detail*/ return new String[] {"Quantity", "Range", "CodeableConcept", "string", "boolean", "integer", "Ratio"}; 600 case 99828: /*due*/ return new String[] {"date", "Duration"}; 601 default: return super.getTypesForProperty(hash, name); 602 } 603 604 } 605 606 @Override 607 public Base addChild(String name) throws FHIRException { 608 if (name.equals("measure")) { 609 this.measure = new CodeableConcept(); 610 return this.measure; 611 } 612 else if (name.equals("detailQuantity")) { 613 this.detail = new Quantity(); 614 return this.detail; 615 } 616 else if (name.equals("detailRange")) { 617 this.detail = new Range(); 618 return this.detail; 619 } 620 else if (name.equals("detailCodeableConcept")) { 621 this.detail = new CodeableConcept(); 622 return this.detail; 623 } 624 else if (name.equals("detailString")) { 625 this.detail = new StringType(); 626 return this.detail; 627 } 628 else if (name.equals("detailBoolean")) { 629 this.detail = new BooleanType(); 630 return this.detail; 631 } 632 else if (name.equals("detailInteger")) { 633 this.detail = new IntegerType(); 634 return this.detail; 635 } 636 else if (name.equals("detailRatio")) { 637 this.detail = new Ratio(); 638 return this.detail; 639 } 640 else if (name.equals("dueDate")) { 641 this.due = new DateType(); 642 return this.due; 643 } 644 else if (name.equals("dueDuration")) { 645 this.due = new Duration(); 646 return this.due; 647 } 648 else 649 return super.addChild(name); 650 } 651 652 public GoalTargetComponent copy() { 653 GoalTargetComponent dst = new GoalTargetComponent(); 654 copyValues(dst); 655 return dst; 656 } 657 658 public void copyValues(GoalTargetComponent dst) { 659 super.copyValues(dst); 660 dst.measure = measure == null ? null : measure.copy(); 661 dst.detail = detail == null ? null : detail.copy(); 662 dst.due = due == null ? null : due.copy(); 663 } 664 665 @Override 666 public boolean equalsDeep(Base other_) { 667 if (!super.equalsDeep(other_)) 668 return false; 669 if (!(other_ instanceof GoalTargetComponent)) 670 return false; 671 GoalTargetComponent o = (GoalTargetComponent) other_; 672 return compareDeep(measure, o.measure, true) && compareDeep(detail, o.detail, true) && compareDeep(due, o.due, true) 673 ; 674 } 675 676 @Override 677 public boolean equalsShallow(Base other_) { 678 if (!super.equalsShallow(other_)) 679 return false; 680 if (!(other_ instanceof GoalTargetComponent)) 681 return false; 682 GoalTargetComponent o = (GoalTargetComponent) other_; 683 return true; 684 } 685 686 public boolean isEmpty() { 687 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(measure, detail, due); 688 } 689 690 public String fhirType() { 691 return "Goal.target"; 692 693 } 694 695 } 696 697 /** 698 * Business identifiers assigned to this goal by the performer or other systems which remain constant as the resource is updated and propagates from server to server. 699 */ 700 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 701 @Description(shortDefinition="External Ids for this goal", formalDefinition="Business identifiers assigned to this goal by the performer or other systems which remain constant as the resource is updated and propagates from server to server." ) 702 protected List<Identifier> identifier; 703 704 /** 705 * The state of the goal throughout its lifecycle. 706 */ 707 @Child(name = "lifecycleStatus", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true) 708 @Description(shortDefinition="proposed | planned | accepted | active | on-hold | completed | cancelled | entered-in-error | rejected", formalDefinition="The state of the goal throughout its lifecycle." ) 709 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/goal-status") 710 protected Enumeration<GoalLifecycleStatus> lifecycleStatus; 711 712 /** 713 * Describes the progression, or lack thereof, towards the goal against the target. 714 */ 715 @Child(name = "achievementStatus", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true) 716 @Description(shortDefinition="in-progress | improving | worsening | no-change | achieved | sustaining | not-achieved | no-progress | not-attainable", formalDefinition="Describes the progression, or lack thereof, towards the goal against the target." ) 717 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/goal-achievement") 718 protected CodeableConcept achievementStatus; 719 720 /** 721 * Indicates a category the goal falls within. 722 */ 723 @Child(name = "category", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 724 @Description(shortDefinition="E.g. Treatment, dietary, behavioral, etc.", formalDefinition="Indicates a category the goal falls within." ) 725 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/goal-category") 726 protected List<CodeableConcept> category; 727 728 /** 729 * After meeting the goal, ongoing activity is needed to sustain the goal objective. 730 */ 731 @Child(name = "continuous", type = {BooleanType.class}, order=4, min=0, max=1, modifier=false, summary=false) 732 @Description(shortDefinition="After meeting the goal, ongoing activity is needed to sustain the goal objective", formalDefinition="After meeting the goal, ongoing activity is needed to sustain the goal objective." ) 733 protected BooleanType continuous; 734 735 /** 736 * Identifies the mutually agreed level of importance associated with reaching/sustaining the goal. 737 */ 738 @Child(name = "priority", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=true) 739 @Description(shortDefinition="high-priority | medium-priority | low-priority", formalDefinition="Identifies the mutually agreed level of importance associated with reaching/sustaining the goal." ) 740 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/goal-priority") 741 protected CodeableConcept priority; 742 743 /** 744 * Human-readable and/or coded description of a specific desired objective of care, such as "control blood pressure" or "negotiate an obstacle course" or "dance with child at wedding". 745 */ 746 @Child(name = "description", type = {CodeableConcept.class}, order=6, min=1, max=1, modifier=false, summary=true) 747 @Description(shortDefinition="Code or text describing goal", formalDefinition="Human-readable and/or coded description of a specific desired objective of care, such as \"control blood pressure\" or \"negotiate an obstacle course\" or \"dance with child at wedding\"." ) 748 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/clinical-findings") 749 protected CodeableConcept description; 750 751 /** 752 * Identifies the patient, group or organization for whom the goal is being established. 753 */ 754 @Child(name = "subject", type = {Patient.class, Group.class, Organization.class}, order=7, min=1, max=1, modifier=false, summary=true) 755 @Description(shortDefinition="Who this goal is intended for", formalDefinition="Identifies the patient, group or organization for whom the goal is being established." ) 756 protected Reference subject; 757 758 /** 759 * The date or event after which the goal should begin being pursued. 760 */ 761 @Child(name = "start", type = {DateType.class, CodeableConcept.class}, order=8, min=0, max=1, modifier=false, summary=true) 762 @Description(shortDefinition="When goal pursuit begins", formalDefinition="The date or event after which the goal should begin being pursued." ) 763 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/goal-start-event") 764 protected Type start; 765 766 /** 767 * Indicates what should be done by when. 768 */ 769 @Child(name = "target", type = {}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 770 @Description(shortDefinition="Target outcome for the goal", formalDefinition="Indicates what should be done by when." ) 771 protected List<GoalTargetComponent> target; 772 773 /** 774 * Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc. 775 */ 776 @Child(name = "statusDate", type = {DateType.class}, order=10, min=0, max=1, modifier=false, summary=true) 777 @Description(shortDefinition="When goal status took effect", formalDefinition="Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc." ) 778 protected DateType statusDate; 779 780 /** 781 * Captures the reason for the current status. 782 */ 783 @Child(name = "statusReason", type = {StringType.class}, order=11, min=0, max=1, modifier=false, summary=false) 784 @Description(shortDefinition="Reason for current status", formalDefinition="Captures the reason for the current status." ) 785 protected StringType statusReason; 786 787 /** 788 * Indicates whose goal this is - patient goal, practitioner goal, etc. 789 */ 790 @Child(name = "expressedBy", type = {Patient.class, Practitioner.class, PractitionerRole.class, RelatedPerson.class}, order=12, min=0, max=1, modifier=false, summary=true) 791 @Description(shortDefinition="Who's responsible for creating Goal?", formalDefinition="Indicates whose goal this is - patient goal, practitioner goal, etc." ) 792 protected Reference expressedBy; 793 794 /** 795 * The identified conditions and other health record elements that are intended to be addressed by the goal. 796 */ 797 @Child(name = "addresses", type = {Condition.class, Observation.class, MedicationUsage.class, MedicationRequest.class, NutritionOrder.class, ServiceRequest.class, RiskAssessment.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 798 @Description(shortDefinition="Issues addressed by this goal", formalDefinition="The identified conditions and other health record elements that are intended to be addressed by the goal." ) 799 protected List<Reference> addresses; 800 801 /** 802 * Any comments related to the goal. 803 */ 804 @Child(name = "note", type = {Annotation.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 805 @Description(shortDefinition="Comments about the goal", formalDefinition="Any comments related to the goal." ) 806 protected List<Annotation> note; 807 808 /** 809 * Identifies the change (or lack of change) at the point when the status of the goal is assessed. 810 */ 811 @Child(name = "outcomeCode", type = {CodeableConcept.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 812 @Description(shortDefinition="What result was achieved regarding the goal?", formalDefinition="Identifies the change (or lack of change) at the point when the status of the goal is assessed." ) 813 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/clinical-findings") 814 protected List<CodeableConcept> outcomeCode; 815 816 /** 817 * Details of what's changed (or not changed). 818 */ 819 @Child(name = "outcomeReference", type = {Observation.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 820 @Description(shortDefinition="Observation that resulted from goal", formalDefinition="Details of what's changed (or not changed)." ) 821 protected List<Reference> outcomeReference; 822 823 private static final long serialVersionUID = 1967927353L; 824 825 /** 826 * Constructor 827 */ 828 public Goal() { 829 super(); 830 } 831 832 /** 833 * Constructor 834 */ 835 public Goal(Enumeration<GoalLifecycleStatus> lifecycleStatus, CodeableConcept description, Reference subject) { 836 super(); 837 this.lifecycleStatus = lifecycleStatus; 838 this.description = description; 839 this.subject = subject; 840 } 841 842 /** 843 * @return {@link #identifier} (Business identifiers assigned to this goal by the performer or other systems which remain constant as the resource is updated and propagates from server to server.) 844 */ 845 public List<Identifier> getIdentifier() { 846 if (this.identifier == null) 847 this.identifier = new ArrayList<Identifier>(); 848 return this.identifier; 849 } 850 851 /** 852 * @return Returns a reference to <code>this</code> for easy method chaining 853 */ 854 public Goal setIdentifier(List<Identifier> theIdentifier) { 855 this.identifier = theIdentifier; 856 return this; 857 } 858 859 public boolean hasIdentifier() { 860 if (this.identifier == null) 861 return false; 862 for (Identifier item : this.identifier) 863 if (!item.isEmpty()) 864 return true; 865 return false; 866 } 867 868 public Identifier addIdentifier() { //3 869 Identifier t = new Identifier(); 870 if (this.identifier == null) 871 this.identifier = new ArrayList<Identifier>(); 872 this.identifier.add(t); 873 return t; 874 } 875 876 public Goal addIdentifier(Identifier t) { //3 877 if (t == null) 878 return this; 879 if (this.identifier == null) 880 this.identifier = new ArrayList<Identifier>(); 881 this.identifier.add(t); 882 return this; 883 } 884 885 /** 886 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist 887 */ 888 public Identifier getIdentifierFirstRep() { 889 if (getIdentifier().isEmpty()) { 890 addIdentifier(); 891 } 892 return getIdentifier().get(0); 893 } 894 895 /** 896 * @return {@link #lifecycleStatus} (The state of the goal throughout its lifecycle.). This is the underlying object with id, value and extensions. The accessor "getLifecycleStatus" gives direct access to the value 897 */ 898 public Enumeration<GoalLifecycleStatus> getLifecycleStatusElement() { 899 if (this.lifecycleStatus == null) 900 if (Configuration.errorOnAutoCreate()) 901 throw new Error("Attempt to auto-create Goal.lifecycleStatus"); 902 else if (Configuration.doAutoCreate()) 903 this.lifecycleStatus = new Enumeration<GoalLifecycleStatus>(new GoalLifecycleStatusEnumFactory()); // bb 904 return this.lifecycleStatus; 905 } 906 907 public boolean hasLifecycleStatusElement() { 908 return this.lifecycleStatus != null && !this.lifecycleStatus.isEmpty(); 909 } 910 911 public boolean hasLifecycleStatus() { 912 return this.lifecycleStatus != null && !this.lifecycleStatus.isEmpty(); 913 } 914 915 /** 916 * @param value {@link #lifecycleStatus} (The state of the goal throughout its lifecycle.). This is the underlying object with id, value and extensions. The accessor "getLifecycleStatus" gives direct access to the value 917 */ 918 public Goal setLifecycleStatusElement(Enumeration<GoalLifecycleStatus> value) { 919 this.lifecycleStatus = value; 920 return this; 921 } 922 923 /** 924 * @return The state of the goal throughout its lifecycle. 925 */ 926 public GoalLifecycleStatus getLifecycleStatus() { 927 return this.lifecycleStatus == null ? null : this.lifecycleStatus.getValue(); 928 } 929 930 /** 931 * @param value The state of the goal throughout its lifecycle. 932 */ 933 public Goal setLifecycleStatus(GoalLifecycleStatus value) { 934 if (this.lifecycleStatus == null) 935 this.lifecycleStatus = new Enumeration<GoalLifecycleStatus>(new GoalLifecycleStatusEnumFactory()); 936 this.lifecycleStatus.setValue(value); 937 return this; 938 } 939 940 /** 941 * @return {@link #achievementStatus} (Describes the progression, or lack thereof, towards the goal against the target.) 942 */ 943 public CodeableConcept getAchievementStatus() { 944 if (this.achievementStatus == null) 945 if (Configuration.errorOnAutoCreate()) 946 throw new Error("Attempt to auto-create Goal.achievementStatus"); 947 else if (Configuration.doAutoCreate()) 948 this.achievementStatus = new CodeableConcept(); // cc 949 return this.achievementStatus; 950 } 951 952 public boolean hasAchievementStatus() { 953 return this.achievementStatus != null && !this.achievementStatus.isEmpty(); 954 } 955 956 /** 957 * @param value {@link #achievementStatus} (Describes the progression, or lack thereof, towards the goal against the target.) 958 */ 959 public Goal setAchievementStatus(CodeableConcept value) { 960 this.achievementStatus = value; 961 return this; 962 } 963 964 /** 965 * @return {@link #category} (Indicates a category the goal falls within.) 966 */ 967 public List<CodeableConcept> getCategory() { 968 if (this.category == null) 969 this.category = new ArrayList<CodeableConcept>(); 970 return this.category; 971 } 972 973 /** 974 * @return Returns a reference to <code>this</code> for easy method chaining 975 */ 976 public Goal setCategory(List<CodeableConcept> theCategory) { 977 this.category = theCategory; 978 return this; 979 } 980 981 public boolean hasCategory() { 982 if (this.category == null) 983 return false; 984 for (CodeableConcept item : this.category) 985 if (!item.isEmpty()) 986 return true; 987 return false; 988 } 989 990 public CodeableConcept addCategory() { //3 991 CodeableConcept t = new CodeableConcept(); 992 if (this.category == null) 993 this.category = new ArrayList<CodeableConcept>(); 994 this.category.add(t); 995 return t; 996 } 997 998 public Goal addCategory(CodeableConcept t) { //3 999 if (t == null) 1000 return this; 1001 if (this.category == null) 1002 this.category = new ArrayList<CodeableConcept>(); 1003 this.category.add(t); 1004 return this; 1005 } 1006 1007 /** 1008 * @return The first repetition of repeating field {@link #category}, creating it if it does not already exist 1009 */ 1010 public CodeableConcept getCategoryFirstRep() { 1011 if (getCategory().isEmpty()) { 1012 addCategory(); 1013 } 1014 return getCategory().get(0); 1015 } 1016 1017 /** 1018 * @return {@link #continuous} (After meeting the goal, ongoing activity is needed to sustain the goal objective.). This is the underlying object with id, value and extensions. The accessor "getContinuous" gives direct access to the value 1019 */ 1020 public BooleanType getContinuousElement() { 1021 if (this.continuous == null) 1022 if (Configuration.errorOnAutoCreate()) 1023 throw new Error("Attempt to auto-create Goal.continuous"); 1024 else if (Configuration.doAutoCreate()) 1025 this.continuous = new BooleanType(); // bb 1026 return this.continuous; 1027 } 1028 1029 public boolean hasContinuousElement() { 1030 return this.continuous != null && !this.continuous.isEmpty(); 1031 } 1032 1033 public boolean hasContinuous() { 1034 return this.continuous != null && !this.continuous.isEmpty(); 1035 } 1036 1037 /** 1038 * @param value {@link #continuous} (After meeting the goal, ongoing activity is needed to sustain the goal objective.). This is the underlying object with id, value and extensions. The accessor "getContinuous" gives direct access to the value 1039 */ 1040 public Goal setContinuousElement(BooleanType value) { 1041 this.continuous = value; 1042 return this; 1043 } 1044 1045 /** 1046 * @return After meeting the goal, ongoing activity is needed to sustain the goal objective. 1047 */ 1048 public boolean getContinuous() { 1049 return this.continuous == null || this.continuous.isEmpty() ? false : this.continuous.getValue(); 1050 } 1051 1052 /** 1053 * @param value After meeting the goal, ongoing activity is needed to sustain the goal objective. 1054 */ 1055 public Goal setContinuous(boolean value) { 1056 if (this.continuous == null) 1057 this.continuous = new BooleanType(); 1058 this.continuous.setValue(value); 1059 return this; 1060 } 1061 1062 /** 1063 * @return {@link #priority} (Identifies the mutually agreed level of importance associated with reaching/sustaining the goal.) 1064 */ 1065 public CodeableConcept getPriority() { 1066 if (this.priority == null) 1067 if (Configuration.errorOnAutoCreate()) 1068 throw new Error("Attempt to auto-create Goal.priority"); 1069 else if (Configuration.doAutoCreate()) 1070 this.priority = new CodeableConcept(); // cc 1071 return this.priority; 1072 } 1073 1074 public boolean hasPriority() { 1075 return this.priority != null && !this.priority.isEmpty(); 1076 } 1077 1078 /** 1079 * @param value {@link #priority} (Identifies the mutually agreed level of importance associated with reaching/sustaining the goal.) 1080 */ 1081 public Goal setPriority(CodeableConcept value) { 1082 this.priority = value; 1083 return this; 1084 } 1085 1086 /** 1087 * @return {@link #description} (Human-readable and/or coded description of a specific desired objective of care, such as "control blood pressure" or "negotiate an obstacle course" or "dance with child at wedding".) 1088 */ 1089 public CodeableConcept getDescription() { 1090 if (this.description == null) 1091 if (Configuration.errorOnAutoCreate()) 1092 throw new Error("Attempt to auto-create Goal.description"); 1093 else if (Configuration.doAutoCreate()) 1094 this.description = new CodeableConcept(); // cc 1095 return this.description; 1096 } 1097 1098 public boolean hasDescription() { 1099 return this.description != null && !this.description.isEmpty(); 1100 } 1101 1102 /** 1103 * @param value {@link #description} (Human-readable and/or coded description of a specific desired objective of care, such as "control blood pressure" or "negotiate an obstacle course" or "dance with child at wedding".) 1104 */ 1105 public Goal setDescription(CodeableConcept value) { 1106 this.description = value; 1107 return this; 1108 } 1109 1110 /** 1111 * @return {@link #subject} (Identifies the patient, group or organization for whom the goal is being established.) 1112 */ 1113 public Reference getSubject() { 1114 if (this.subject == null) 1115 if (Configuration.errorOnAutoCreate()) 1116 throw new Error("Attempt to auto-create Goal.subject"); 1117 else if (Configuration.doAutoCreate()) 1118 this.subject = new Reference(); // cc 1119 return this.subject; 1120 } 1121 1122 public boolean hasSubject() { 1123 return this.subject != null && !this.subject.isEmpty(); 1124 } 1125 1126 /** 1127 * @param value {@link #subject} (Identifies the patient, group or organization for whom the goal is being established.) 1128 */ 1129 public Goal setSubject(Reference value) { 1130 this.subject = value; 1131 return this; 1132 } 1133 1134 /** 1135 * @return {@link #start} (The date or event after which the goal should begin being pursued.) 1136 */ 1137 public Type getStart() { 1138 return this.start; 1139 } 1140 1141 /** 1142 * @return {@link #start} (The date or event after which the goal should begin being pursued.) 1143 */ 1144 public DateType getStartDateType() throws FHIRException { 1145 if (this.start == null) 1146 this.start = new DateType(); 1147 if (!(this.start instanceof DateType)) 1148 throw new FHIRException("Type mismatch: the type DateType was expected, but "+this.start.getClass().getName()+" was encountered"); 1149 return (DateType) this.start; 1150 } 1151 1152 public boolean hasStartDateType() { 1153 return this != null && this.start instanceof DateType; 1154 } 1155 1156 /** 1157 * @return {@link #start} (The date or event after which the goal should begin being pursued.) 1158 */ 1159 public CodeableConcept getStartCodeableConcept() throws FHIRException { 1160 if (this.start == null) 1161 this.start = new CodeableConcept(); 1162 if (!(this.start instanceof CodeableConcept)) 1163 throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.start.getClass().getName()+" was encountered"); 1164 return (CodeableConcept) this.start; 1165 } 1166 1167 public boolean hasStartCodeableConcept() { 1168 return this != null && this.start instanceof CodeableConcept; 1169 } 1170 1171 public boolean hasStart() { 1172 return this.start != null && !this.start.isEmpty(); 1173 } 1174 1175 /** 1176 * @param value {@link #start} (The date or event after which the goal should begin being pursued.) 1177 */ 1178 public Goal setStart(Type value) { 1179 if (value != null && !(value instanceof DateType || value instanceof CodeableConcept)) 1180 throw new Error("Not the right type for Goal.start[x]: "+value.fhirType()); 1181 this.start = value; 1182 return this; 1183 } 1184 1185 /** 1186 * @return {@link #target} (Indicates what should be done by when.) 1187 */ 1188 public List<GoalTargetComponent> getTarget() { 1189 if (this.target == null) 1190 this.target = new ArrayList<GoalTargetComponent>(); 1191 return this.target; 1192 } 1193 1194 /** 1195 * @return Returns a reference to <code>this</code> for easy method chaining 1196 */ 1197 public Goal setTarget(List<GoalTargetComponent> theTarget) { 1198 this.target = theTarget; 1199 return this; 1200 } 1201 1202 public boolean hasTarget() { 1203 if (this.target == null) 1204 return false; 1205 for (GoalTargetComponent item : this.target) 1206 if (!item.isEmpty()) 1207 return true; 1208 return false; 1209 } 1210 1211 public GoalTargetComponent addTarget() { //3 1212 GoalTargetComponent t = new GoalTargetComponent(); 1213 if (this.target == null) 1214 this.target = new ArrayList<GoalTargetComponent>(); 1215 this.target.add(t); 1216 return t; 1217 } 1218 1219 public Goal addTarget(GoalTargetComponent t) { //3 1220 if (t == null) 1221 return this; 1222 if (this.target == null) 1223 this.target = new ArrayList<GoalTargetComponent>(); 1224 this.target.add(t); 1225 return this; 1226 } 1227 1228 /** 1229 * @return The first repetition of repeating field {@link #target}, creating it if it does not already exist 1230 */ 1231 public GoalTargetComponent getTargetFirstRep() { 1232 if (getTarget().isEmpty()) { 1233 addTarget(); 1234 } 1235 return getTarget().get(0); 1236 } 1237 1238 /** 1239 * @return {@link #statusDate} (Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc.). This is the underlying object with id, value and extensions. The accessor "getStatusDate" gives direct access to the value 1240 */ 1241 public DateType getStatusDateElement() { 1242 if (this.statusDate == null) 1243 if (Configuration.errorOnAutoCreate()) 1244 throw new Error("Attempt to auto-create Goal.statusDate"); 1245 else if (Configuration.doAutoCreate()) 1246 this.statusDate = new DateType(); // bb 1247 return this.statusDate; 1248 } 1249 1250 public boolean hasStatusDateElement() { 1251 return this.statusDate != null && !this.statusDate.isEmpty(); 1252 } 1253 1254 public boolean hasStatusDate() { 1255 return this.statusDate != null && !this.statusDate.isEmpty(); 1256 } 1257 1258 /** 1259 * @param value {@link #statusDate} (Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc.). This is the underlying object with id, value and extensions. The accessor "getStatusDate" gives direct access to the value 1260 */ 1261 public Goal setStatusDateElement(DateType value) { 1262 this.statusDate = value; 1263 return this; 1264 } 1265 1266 /** 1267 * @return Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc. 1268 */ 1269 public Date getStatusDate() { 1270 return this.statusDate == null ? null : this.statusDate.getValue(); 1271 } 1272 1273 /** 1274 * @param value Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc. 1275 */ 1276 public Goal setStatusDate(Date value) { 1277 if (value == null) 1278 this.statusDate = null; 1279 else { 1280 if (this.statusDate == null) 1281 this.statusDate = new DateType(); 1282 this.statusDate.setValue(value); 1283 } 1284 return this; 1285 } 1286 1287 /** 1288 * @return {@link #statusReason} (Captures the reason for the current status.). This is the underlying object with id, value and extensions. The accessor "getStatusReason" gives direct access to the value 1289 */ 1290 public StringType getStatusReasonElement() { 1291 if (this.statusReason == null) 1292 if (Configuration.errorOnAutoCreate()) 1293 throw new Error("Attempt to auto-create Goal.statusReason"); 1294 else if (Configuration.doAutoCreate()) 1295 this.statusReason = new StringType(); // bb 1296 return this.statusReason; 1297 } 1298 1299 public boolean hasStatusReasonElement() { 1300 return this.statusReason != null && !this.statusReason.isEmpty(); 1301 } 1302 1303 public boolean hasStatusReason() { 1304 return this.statusReason != null && !this.statusReason.isEmpty(); 1305 } 1306 1307 /** 1308 * @param value {@link #statusReason} (Captures the reason for the current status.). This is the underlying object with id, value and extensions. The accessor "getStatusReason" gives direct access to the value 1309 */ 1310 public Goal setStatusReasonElement(StringType value) { 1311 this.statusReason = value; 1312 return this; 1313 } 1314 1315 /** 1316 * @return Captures the reason for the current status. 1317 */ 1318 public String getStatusReason() { 1319 return this.statusReason == null ? null : this.statusReason.getValue(); 1320 } 1321 1322 /** 1323 * @param value Captures the reason for the current status. 1324 */ 1325 public Goal setStatusReason(String value) { 1326 if (Utilities.noString(value)) 1327 this.statusReason = null; 1328 else { 1329 if (this.statusReason == null) 1330 this.statusReason = new StringType(); 1331 this.statusReason.setValue(value); 1332 } 1333 return this; 1334 } 1335 1336 /** 1337 * @return {@link #expressedBy} (Indicates whose goal this is - patient goal, practitioner goal, etc.) 1338 */ 1339 public Reference getExpressedBy() { 1340 if (this.expressedBy == null) 1341 if (Configuration.errorOnAutoCreate()) 1342 throw new Error("Attempt to auto-create Goal.expressedBy"); 1343 else if (Configuration.doAutoCreate()) 1344 this.expressedBy = new Reference(); // cc 1345 return this.expressedBy; 1346 } 1347 1348 public boolean hasExpressedBy() { 1349 return this.expressedBy != null && !this.expressedBy.isEmpty(); 1350 } 1351 1352 /** 1353 * @param value {@link #expressedBy} (Indicates whose goal this is - patient goal, practitioner goal, etc.) 1354 */ 1355 public Goal setExpressedBy(Reference value) { 1356 this.expressedBy = value; 1357 return this; 1358 } 1359 1360 /** 1361 * @return {@link #addresses} (The identified conditions and other health record elements that are intended to be addressed by the goal.) 1362 */ 1363 public List<Reference> getAddresses() { 1364 if (this.addresses == null) 1365 this.addresses = new ArrayList<Reference>(); 1366 return this.addresses; 1367 } 1368 1369 /** 1370 * @return Returns a reference to <code>this</code> for easy method chaining 1371 */ 1372 public Goal setAddresses(List<Reference> theAddresses) { 1373 this.addresses = theAddresses; 1374 return this; 1375 } 1376 1377 public boolean hasAddresses() { 1378 if (this.addresses == null) 1379 return false; 1380 for (Reference item : this.addresses) 1381 if (!item.isEmpty()) 1382 return true; 1383 return false; 1384 } 1385 1386 public Reference addAddresses() { //3 1387 Reference t = new Reference(); 1388 if (this.addresses == null) 1389 this.addresses = new ArrayList<Reference>(); 1390 this.addresses.add(t); 1391 return t; 1392 } 1393 1394 public Goal addAddresses(Reference t) { //3 1395 if (t == null) 1396 return this; 1397 if (this.addresses == null) 1398 this.addresses = new ArrayList<Reference>(); 1399 this.addresses.add(t); 1400 return this; 1401 } 1402 1403 /** 1404 * @return The first repetition of repeating field {@link #addresses}, creating it if it does not already exist 1405 */ 1406 public Reference getAddressesFirstRep() { 1407 if (getAddresses().isEmpty()) { 1408 addAddresses(); 1409 } 1410 return getAddresses().get(0); 1411 } 1412 1413 /** 1414 * @return {@link #note} (Any comments related to the goal.) 1415 */ 1416 public List<Annotation> getNote() { 1417 if (this.note == null) 1418 this.note = new ArrayList<Annotation>(); 1419 return this.note; 1420 } 1421 1422 /** 1423 * @return Returns a reference to <code>this</code> for easy method chaining 1424 */ 1425 public Goal setNote(List<Annotation> theNote) { 1426 this.note = theNote; 1427 return this; 1428 } 1429 1430 public boolean hasNote() { 1431 if (this.note == null) 1432 return false; 1433 for (Annotation item : this.note) 1434 if (!item.isEmpty()) 1435 return true; 1436 return false; 1437 } 1438 1439 public Annotation addNote() { //3 1440 Annotation t = new Annotation(); 1441 if (this.note == null) 1442 this.note = new ArrayList<Annotation>(); 1443 this.note.add(t); 1444 return t; 1445 } 1446 1447 public Goal addNote(Annotation t) { //3 1448 if (t == null) 1449 return this; 1450 if (this.note == null) 1451 this.note = new ArrayList<Annotation>(); 1452 this.note.add(t); 1453 return this; 1454 } 1455 1456 /** 1457 * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist 1458 */ 1459 public Annotation getNoteFirstRep() { 1460 if (getNote().isEmpty()) { 1461 addNote(); 1462 } 1463 return getNote().get(0); 1464 } 1465 1466 /** 1467 * @return {@link #outcomeCode} (Identifies the change (or lack of change) at the point when the status of the goal is assessed.) 1468 */ 1469 public List<CodeableConcept> getOutcomeCode() { 1470 if (this.outcomeCode == null) 1471 this.outcomeCode = new ArrayList<CodeableConcept>(); 1472 return this.outcomeCode; 1473 } 1474 1475 /** 1476 * @return Returns a reference to <code>this</code> for easy method chaining 1477 */ 1478 public Goal setOutcomeCode(List<CodeableConcept> theOutcomeCode) { 1479 this.outcomeCode = theOutcomeCode; 1480 return this; 1481 } 1482 1483 public boolean hasOutcomeCode() { 1484 if (this.outcomeCode == null) 1485 return false; 1486 for (CodeableConcept item : this.outcomeCode) 1487 if (!item.isEmpty()) 1488 return true; 1489 return false; 1490 } 1491 1492 public CodeableConcept addOutcomeCode() { //3 1493 CodeableConcept t = new CodeableConcept(); 1494 if (this.outcomeCode == null) 1495 this.outcomeCode = new ArrayList<CodeableConcept>(); 1496 this.outcomeCode.add(t); 1497 return t; 1498 } 1499 1500 public Goal addOutcomeCode(CodeableConcept t) { //3 1501 if (t == null) 1502 return this; 1503 if (this.outcomeCode == null) 1504 this.outcomeCode = new ArrayList<CodeableConcept>(); 1505 this.outcomeCode.add(t); 1506 return this; 1507 } 1508 1509 /** 1510 * @return The first repetition of repeating field {@link #outcomeCode}, creating it if it does not already exist 1511 */ 1512 public CodeableConcept getOutcomeCodeFirstRep() { 1513 if (getOutcomeCode().isEmpty()) { 1514 addOutcomeCode(); 1515 } 1516 return getOutcomeCode().get(0); 1517 } 1518 1519 /** 1520 * @return {@link #outcomeReference} (Details of what's changed (or not changed).) 1521 */ 1522 public List<Reference> getOutcomeReference() { 1523 if (this.outcomeReference == null) 1524 this.outcomeReference = new ArrayList<Reference>(); 1525 return this.outcomeReference; 1526 } 1527 1528 /** 1529 * @return Returns a reference to <code>this</code> for easy method chaining 1530 */ 1531 public Goal setOutcomeReference(List<Reference> theOutcomeReference) { 1532 this.outcomeReference = theOutcomeReference; 1533 return this; 1534 } 1535 1536 public boolean hasOutcomeReference() { 1537 if (this.outcomeReference == null) 1538 return false; 1539 for (Reference item : this.outcomeReference) 1540 if (!item.isEmpty()) 1541 return true; 1542 return false; 1543 } 1544 1545 public Reference addOutcomeReference() { //3 1546 Reference t = new Reference(); 1547 if (this.outcomeReference == null) 1548 this.outcomeReference = new ArrayList<Reference>(); 1549 this.outcomeReference.add(t); 1550 return t; 1551 } 1552 1553 public Goal addOutcomeReference(Reference t) { //3 1554 if (t == null) 1555 return this; 1556 if (this.outcomeReference == null) 1557 this.outcomeReference = new ArrayList<Reference>(); 1558 this.outcomeReference.add(t); 1559 return this; 1560 } 1561 1562 /** 1563 * @return The first repetition of repeating field {@link #outcomeReference}, creating it if it does not already exist 1564 */ 1565 public Reference getOutcomeReferenceFirstRep() { 1566 if (getOutcomeReference().isEmpty()) { 1567 addOutcomeReference(); 1568 } 1569 return getOutcomeReference().get(0); 1570 } 1571 1572 protected void listChildren(List<Property> children) { 1573 super.listChildren(children); 1574 children.add(new Property("identifier", "Identifier", "Business identifiers assigned to this goal by the performer or other systems which remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier)); 1575 children.add(new Property("lifecycleStatus", "code", "The state of the goal throughout its lifecycle.", 0, 1, lifecycleStatus)); 1576 children.add(new Property("achievementStatus", "CodeableConcept", "Describes the progression, or lack thereof, towards the goal against the target.", 0, 1, achievementStatus)); 1577 children.add(new Property("category", "CodeableConcept", "Indicates a category the goal falls within.", 0, java.lang.Integer.MAX_VALUE, category)); 1578 children.add(new Property("continuous", "boolean", "After meeting the goal, ongoing activity is needed to sustain the goal objective.", 0, 1, continuous)); 1579 children.add(new Property("priority", "CodeableConcept", "Identifies the mutually agreed level of importance associated with reaching/sustaining the goal.", 0, 1, priority)); 1580 children.add(new Property("description", "CodeableConcept", "Human-readable and/or coded description of a specific desired objective of care, such as \"control blood pressure\" or \"negotiate an obstacle course\" or \"dance with child at wedding\".", 0, 1, description)); 1581 children.add(new Property("subject", "Reference(Patient|Group|Organization)", "Identifies the patient, group or organization for whom the goal is being established.", 0, 1, subject)); 1582 children.add(new Property("start[x]", "date|CodeableConcept", "The date or event after which the goal should begin being pursued.", 0, 1, start)); 1583 children.add(new Property("target", "", "Indicates what should be done by when.", 0, java.lang.Integer.MAX_VALUE, target)); 1584 children.add(new Property("statusDate", "date", "Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc.", 0, 1, statusDate)); 1585 children.add(new Property("statusReason", "string", "Captures the reason for the current status.", 0, 1, statusReason)); 1586 children.add(new Property("expressedBy", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson)", "Indicates whose goal this is - patient goal, practitioner goal, etc.", 0, 1, expressedBy)); 1587 children.add(new Property("addresses", "Reference(Condition|Observation|MedicationUsage|MedicationRequest|NutritionOrder|ServiceRequest|RiskAssessment)", "The identified conditions and other health record elements that are intended to be addressed by the goal.", 0, java.lang.Integer.MAX_VALUE, addresses)); 1588 children.add(new Property("note", "Annotation", "Any comments related to the goal.", 0, java.lang.Integer.MAX_VALUE, note)); 1589 children.add(new Property("outcomeCode", "CodeableConcept", "Identifies the change (or lack of change) at the point when the status of the goal is assessed.", 0, java.lang.Integer.MAX_VALUE, outcomeCode)); 1590 children.add(new Property("outcomeReference", "Reference(Observation)", "Details of what's changed (or not changed).", 0, java.lang.Integer.MAX_VALUE, outcomeReference)); 1591 } 1592 1593 @Override 1594 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1595 switch (_hash) { 1596 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifiers assigned to this goal by the performer or other systems which remain constant as the resource is updated and propagates from server to server.", 0, java.lang.Integer.MAX_VALUE, identifier); 1597 case 1165552636: /*lifecycleStatus*/ return new Property("lifecycleStatus", "code", "The state of the goal throughout its lifecycle.", 0, 1, lifecycleStatus); 1598 case 104524801: /*achievementStatus*/ return new Property("achievementStatus", "CodeableConcept", "Describes the progression, or lack thereof, towards the goal against the target.", 0, 1, achievementStatus); 1599 case 50511102: /*category*/ return new Property("category", "CodeableConcept", "Indicates a category the goal falls within.", 0, java.lang.Integer.MAX_VALUE, category); 1600 case 379114255: /*continuous*/ return new Property("continuous", "boolean", "After meeting the goal, ongoing activity is needed to sustain the goal objective.", 0, 1, continuous); 1601 case -1165461084: /*priority*/ return new Property("priority", "CodeableConcept", "Identifies the mutually agreed level of importance associated with reaching/sustaining the goal.", 0, 1, priority); 1602 case -1724546052: /*description*/ return new Property("description", "CodeableConcept", "Human-readable and/or coded description of a specific desired objective of care, such as \"control blood pressure\" or \"negotiate an obstacle course\" or \"dance with child at wedding\".", 0, 1, description); 1603 case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group|Organization)", "Identifies the patient, group or organization for whom the goal is being established.", 0, 1, subject); 1604 case 1316793566: /*start[x]*/ return new Property("start[x]", "date|CodeableConcept", "The date or event after which the goal should begin being pursued.", 0, 1, start); 1605 case 109757538: /*start*/ return new Property("start[x]", "date|CodeableConcept", "The date or event after which the goal should begin being pursued.", 0, 1, start); 1606 case -2129778896: /*startDate*/ return new Property("start[x]", "date|CodeableConcept", "The date or event after which the goal should begin being pursued.", 0, 1, start); 1607 case -1758833953: /*startCodeableConcept*/ return new Property("start[x]", "date|CodeableConcept", "The date or event after which the goal should begin being pursued.", 0, 1, start); 1608 case -880905839: /*target*/ return new Property("target", "", "Indicates what should be done by when.", 0, java.lang.Integer.MAX_VALUE, target); 1609 case 247524032: /*statusDate*/ return new Property("statusDate", "date", "Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc.", 0, 1, statusDate); 1610 case 2051346646: /*statusReason*/ return new Property("statusReason", "string", "Captures the reason for the current status.", 0, 1, statusReason); 1611 case 175423686: /*expressedBy*/ return new Property("expressedBy", "Reference(Patient|Practitioner|PractitionerRole|RelatedPerson)", "Indicates whose goal this is - patient goal, practitioner goal, etc.", 0, 1, expressedBy); 1612 case 874544034: /*addresses*/ return new Property("addresses", "Reference(Condition|Observation|MedicationUsage|MedicationRequest|NutritionOrder|ServiceRequest|RiskAssessment)", "The identified conditions and other health record elements that are intended to be addressed by the goal.", 0, java.lang.Integer.MAX_VALUE, addresses); 1613 case 3387378: /*note*/ return new Property("note", "Annotation", "Any comments related to the goal.", 0, java.lang.Integer.MAX_VALUE, note); 1614 case 1062482015: /*outcomeCode*/ return new Property("outcomeCode", "CodeableConcept", "Identifies the change (or lack of change) at the point when the status of the goal is assessed.", 0, java.lang.Integer.MAX_VALUE, outcomeCode); 1615 case -782273511: /*outcomeReference*/ return new Property("outcomeReference", "Reference(Observation)", "Details of what's changed (or not changed).", 0, java.lang.Integer.MAX_VALUE, outcomeReference); 1616 default: return super.getNamedProperty(_hash, _name, _checkValid); 1617 } 1618 1619 } 1620 1621 @Override 1622 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1623 switch (hash) { 1624 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 1625 case 1165552636: /*lifecycleStatus*/ return this.lifecycleStatus == null ? new Base[0] : new Base[] {this.lifecycleStatus}; // Enumeration<GoalLifecycleStatus> 1626 case 104524801: /*achievementStatus*/ return this.achievementStatus == null ? new Base[0] : new Base[] {this.achievementStatus}; // CodeableConcept 1627 case 50511102: /*category*/ return this.category == null ? new Base[0] : this.category.toArray(new Base[this.category.size()]); // CodeableConcept 1628 case 379114255: /*continuous*/ return this.continuous == null ? new Base[0] : new Base[] {this.continuous}; // BooleanType 1629 case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // CodeableConcept 1630 case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // CodeableConcept 1631 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 1632 case 109757538: /*start*/ return this.start == null ? new Base[0] : new Base[] {this.start}; // Type 1633 case -880905839: /*target*/ return this.target == null ? new Base[0] : this.target.toArray(new Base[this.target.size()]); // GoalTargetComponent 1634 case 247524032: /*statusDate*/ return this.statusDate == null ? new Base[0] : new Base[] {this.statusDate}; // DateType 1635 case 2051346646: /*statusReason*/ return this.statusReason == null ? new Base[0] : new Base[] {this.statusReason}; // StringType 1636 case 175423686: /*expressedBy*/ return this.expressedBy == null ? new Base[0] : new Base[] {this.expressedBy}; // Reference 1637 case 874544034: /*addresses*/ return this.addresses == null ? new Base[0] : this.addresses.toArray(new Base[this.addresses.size()]); // Reference 1638 case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation 1639 case 1062482015: /*outcomeCode*/ return this.outcomeCode == null ? new Base[0] : this.outcomeCode.toArray(new Base[this.outcomeCode.size()]); // CodeableConcept 1640 case -782273511: /*outcomeReference*/ return this.outcomeReference == null ? new Base[0] : this.outcomeReference.toArray(new Base[this.outcomeReference.size()]); // Reference 1641 default: return super.getProperty(hash, name, checkValid); 1642 } 1643 1644 } 1645 1646 @Override 1647 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1648 switch (hash) { 1649 case -1618432855: // identifier 1650 this.getIdentifier().add(castToIdentifier(value)); // Identifier 1651 return value; 1652 case 1165552636: // lifecycleStatus 1653 value = new GoalLifecycleStatusEnumFactory().fromType(castToCode(value)); 1654 this.lifecycleStatus = (Enumeration) value; // Enumeration<GoalLifecycleStatus> 1655 return value; 1656 case 104524801: // achievementStatus 1657 this.achievementStatus = castToCodeableConcept(value); // CodeableConcept 1658 return value; 1659 case 50511102: // category 1660 this.getCategory().add(castToCodeableConcept(value)); // CodeableConcept 1661 return value; 1662 case 379114255: // continuous 1663 this.continuous = castToBoolean(value); // BooleanType 1664 return value; 1665 case -1165461084: // priority 1666 this.priority = castToCodeableConcept(value); // CodeableConcept 1667 return value; 1668 case -1724546052: // description 1669 this.description = castToCodeableConcept(value); // CodeableConcept 1670 return value; 1671 case -1867885268: // subject 1672 this.subject = castToReference(value); // Reference 1673 return value; 1674 case 109757538: // start 1675 this.start = castToType(value); // Type 1676 return value; 1677 case -880905839: // target 1678 this.getTarget().add((GoalTargetComponent) value); // GoalTargetComponent 1679 return value; 1680 case 247524032: // statusDate 1681 this.statusDate = castToDate(value); // DateType 1682 return value; 1683 case 2051346646: // statusReason 1684 this.statusReason = castToString(value); // StringType 1685 return value; 1686 case 175423686: // expressedBy 1687 this.expressedBy = castToReference(value); // Reference 1688 return value; 1689 case 874544034: // addresses 1690 this.getAddresses().add(castToReference(value)); // Reference 1691 return value; 1692 case 3387378: // note 1693 this.getNote().add(castToAnnotation(value)); // Annotation 1694 return value; 1695 case 1062482015: // outcomeCode 1696 this.getOutcomeCode().add(castToCodeableConcept(value)); // CodeableConcept 1697 return value; 1698 case -782273511: // outcomeReference 1699 this.getOutcomeReference().add(castToReference(value)); // Reference 1700 return value; 1701 default: return super.setProperty(hash, name, value); 1702 } 1703 1704 } 1705 1706 @Override 1707 public Base setProperty(String name, Base value) throws FHIRException { 1708 if (name.equals("identifier")) { 1709 this.getIdentifier().add(castToIdentifier(value)); 1710 } else if (name.equals("lifecycleStatus")) { 1711 value = new GoalLifecycleStatusEnumFactory().fromType(castToCode(value)); 1712 this.lifecycleStatus = (Enumeration) value; // Enumeration<GoalLifecycleStatus> 1713 } else if (name.equals("achievementStatus")) { 1714 this.achievementStatus = castToCodeableConcept(value); // CodeableConcept 1715 } else if (name.equals("category")) { 1716 this.getCategory().add(castToCodeableConcept(value)); 1717 } else if (name.equals("continuous")) { 1718 this.continuous = castToBoolean(value); // BooleanType 1719 } else if (name.equals("priority")) { 1720 this.priority = castToCodeableConcept(value); // CodeableConcept 1721 } else if (name.equals("description")) { 1722 this.description = castToCodeableConcept(value); // CodeableConcept 1723 } else if (name.equals("subject")) { 1724 this.subject = castToReference(value); // Reference 1725 } else if (name.equals("start[x]")) { 1726 this.start = castToType(value); // Type 1727 } else if (name.equals("target")) { 1728 this.getTarget().add((GoalTargetComponent) value); 1729 } else if (name.equals("statusDate")) { 1730 this.statusDate = castToDate(value); // DateType 1731 } else if (name.equals("statusReason")) { 1732 this.statusReason = castToString(value); // StringType 1733 } else if (name.equals("expressedBy")) { 1734 this.expressedBy = castToReference(value); // Reference 1735 } else if (name.equals("addresses")) { 1736 this.getAddresses().add(castToReference(value)); 1737 } else if (name.equals("note")) { 1738 this.getNote().add(castToAnnotation(value)); 1739 } else if (name.equals("outcomeCode")) { 1740 this.getOutcomeCode().add(castToCodeableConcept(value)); 1741 } else if (name.equals("outcomeReference")) { 1742 this.getOutcomeReference().add(castToReference(value)); 1743 } else 1744 return super.setProperty(name, value); 1745 return value; 1746 } 1747 1748 @Override 1749 public Base makeProperty(int hash, String name) throws FHIRException { 1750 switch (hash) { 1751 case -1618432855: return addIdentifier(); 1752 case 1165552636: return getLifecycleStatusElement(); 1753 case 104524801: return getAchievementStatus(); 1754 case 50511102: return addCategory(); 1755 case 379114255: return getContinuousElement(); 1756 case -1165461084: return getPriority(); 1757 case -1724546052: return getDescription(); 1758 case -1867885268: return getSubject(); 1759 case 1316793566: return getStart(); 1760 case 109757538: return getStart(); 1761 case -880905839: return addTarget(); 1762 case 247524032: return getStatusDateElement(); 1763 case 2051346646: return getStatusReasonElement(); 1764 case 175423686: return getExpressedBy(); 1765 case 874544034: return addAddresses(); 1766 case 3387378: return addNote(); 1767 case 1062482015: return addOutcomeCode(); 1768 case -782273511: return addOutcomeReference(); 1769 default: return super.makeProperty(hash, name); 1770 } 1771 1772 } 1773 1774 @Override 1775 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1776 switch (hash) { 1777 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 1778 case 1165552636: /*lifecycleStatus*/ return new String[] {"code"}; 1779 case 104524801: /*achievementStatus*/ return new String[] {"CodeableConcept"}; 1780 case 50511102: /*category*/ return new String[] {"CodeableConcept"}; 1781 case 379114255: /*continuous*/ return new String[] {"boolean"}; 1782 case -1165461084: /*priority*/ return new String[] {"CodeableConcept"}; 1783 case -1724546052: /*description*/ return new String[] {"CodeableConcept"}; 1784 case -1867885268: /*subject*/ return new String[] {"Reference"}; 1785 case 109757538: /*start*/ return new String[] {"date", "CodeableConcept"}; 1786 case -880905839: /*target*/ return new String[] {}; 1787 case 247524032: /*statusDate*/ return new String[] {"date"}; 1788 case 2051346646: /*statusReason*/ return new String[] {"string"}; 1789 case 175423686: /*expressedBy*/ return new String[] {"Reference"}; 1790 case 874544034: /*addresses*/ return new String[] {"Reference"}; 1791 case 3387378: /*note*/ return new String[] {"Annotation"}; 1792 case 1062482015: /*outcomeCode*/ return new String[] {"CodeableConcept"}; 1793 case -782273511: /*outcomeReference*/ return new String[] {"Reference"}; 1794 default: return super.getTypesForProperty(hash, name); 1795 } 1796 1797 } 1798 1799 @Override 1800 public Base addChild(String name) throws FHIRException { 1801 if (name.equals("identifier")) { 1802 return addIdentifier(); 1803 } 1804 else if (name.equals("lifecycleStatus")) { 1805 throw new FHIRException("Cannot call addChild on a primitive type Goal.lifecycleStatus"); 1806 } 1807 else if (name.equals("achievementStatus")) { 1808 this.achievementStatus = new CodeableConcept(); 1809 return this.achievementStatus; 1810 } 1811 else if (name.equals("category")) { 1812 return addCategory(); 1813 } 1814 else if (name.equals("continuous")) { 1815 throw new FHIRException("Cannot call addChild on a primitive type Goal.continuous"); 1816 } 1817 else if (name.equals("priority")) { 1818 this.priority = new CodeableConcept(); 1819 return this.priority; 1820 } 1821 else if (name.equals("description")) { 1822 this.description = new CodeableConcept(); 1823 return this.description; 1824 } 1825 else if (name.equals("subject")) { 1826 this.subject = new Reference(); 1827 return this.subject; 1828 } 1829 else if (name.equals("startDate")) { 1830 this.start = new DateType(); 1831 return this.start; 1832 } 1833 else if (name.equals("startCodeableConcept")) { 1834 this.start = new CodeableConcept(); 1835 return this.start; 1836 } 1837 else if (name.equals("target")) { 1838 return addTarget(); 1839 } 1840 else if (name.equals("statusDate")) { 1841 throw new FHIRException("Cannot call addChild on a primitive type Goal.statusDate"); 1842 } 1843 else if (name.equals("statusReason")) { 1844 throw new FHIRException("Cannot call addChild on a primitive type Goal.statusReason"); 1845 } 1846 else if (name.equals("expressedBy")) { 1847 this.expressedBy = new Reference(); 1848 return this.expressedBy; 1849 } 1850 else if (name.equals("addresses")) { 1851 return addAddresses(); 1852 } 1853 else if (name.equals("note")) { 1854 return addNote(); 1855 } 1856 else if (name.equals("outcomeCode")) { 1857 return addOutcomeCode(); 1858 } 1859 else if (name.equals("outcomeReference")) { 1860 return addOutcomeReference(); 1861 } 1862 else 1863 return super.addChild(name); 1864 } 1865 1866 public String fhirType() { 1867 return "Goal"; 1868 1869 } 1870 1871 public Goal copy() { 1872 Goal dst = new Goal(); 1873 copyValues(dst); 1874 return dst; 1875 } 1876 1877 public void copyValues(Goal dst) { 1878 super.copyValues(dst); 1879 if (identifier != null) { 1880 dst.identifier = new ArrayList<Identifier>(); 1881 for (Identifier i : identifier) 1882 dst.identifier.add(i.copy()); 1883 }; 1884 dst.lifecycleStatus = lifecycleStatus == null ? null : lifecycleStatus.copy(); 1885 dst.achievementStatus = achievementStatus == null ? null : achievementStatus.copy(); 1886 if (category != null) { 1887 dst.category = new ArrayList<CodeableConcept>(); 1888 for (CodeableConcept i : category) 1889 dst.category.add(i.copy()); 1890 }; 1891 dst.continuous = continuous == null ? null : continuous.copy(); 1892 dst.priority = priority == null ? null : priority.copy(); 1893 dst.description = description == null ? null : description.copy(); 1894 dst.subject = subject == null ? null : subject.copy(); 1895 dst.start = start == null ? null : start.copy(); 1896 if (target != null) { 1897 dst.target = new ArrayList<GoalTargetComponent>(); 1898 for (GoalTargetComponent i : target) 1899 dst.target.add(i.copy()); 1900 }; 1901 dst.statusDate = statusDate == null ? null : statusDate.copy(); 1902 dst.statusReason = statusReason == null ? null : statusReason.copy(); 1903 dst.expressedBy = expressedBy == null ? null : expressedBy.copy(); 1904 if (addresses != null) { 1905 dst.addresses = new ArrayList<Reference>(); 1906 for (Reference i : addresses) 1907 dst.addresses.add(i.copy()); 1908 }; 1909 if (note != null) { 1910 dst.note = new ArrayList<Annotation>(); 1911 for (Annotation i : note) 1912 dst.note.add(i.copy()); 1913 }; 1914 if (outcomeCode != null) { 1915 dst.outcomeCode = new ArrayList<CodeableConcept>(); 1916 for (CodeableConcept i : outcomeCode) 1917 dst.outcomeCode.add(i.copy()); 1918 }; 1919 if (outcomeReference != null) { 1920 dst.outcomeReference = new ArrayList<Reference>(); 1921 for (Reference i : outcomeReference) 1922 dst.outcomeReference.add(i.copy()); 1923 }; 1924 } 1925 1926 protected Goal typedCopy() { 1927 return copy(); 1928 } 1929 1930 @Override 1931 public boolean equalsDeep(Base other_) { 1932 if (!super.equalsDeep(other_)) 1933 return false; 1934 if (!(other_ instanceof Goal)) 1935 return false; 1936 Goal o = (Goal) other_; 1937 return compareDeep(identifier, o.identifier, true) && compareDeep(lifecycleStatus, o.lifecycleStatus, true) 1938 && compareDeep(achievementStatus, o.achievementStatus, true) && compareDeep(category, o.category, true) 1939 && compareDeep(continuous, o.continuous, true) && compareDeep(priority, o.priority, true) && compareDeep(description, o.description, true) 1940 && compareDeep(subject, o.subject, true) && compareDeep(start, o.start, true) && compareDeep(target, o.target, true) 1941 && compareDeep(statusDate, o.statusDate, true) && compareDeep(statusReason, o.statusReason, true) 1942 && compareDeep(expressedBy, o.expressedBy, true) && compareDeep(addresses, o.addresses, true) && compareDeep(note, o.note, true) 1943 && compareDeep(outcomeCode, o.outcomeCode, true) && compareDeep(outcomeReference, o.outcomeReference, true) 1944 ; 1945 } 1946 1947 @Override 1948 public boolean equalsShallow(Base other_) { 1949 if (!super.equalsShallow(other_)) 1950 return false; 1951 if (!(other_ instanceof Goal)) 1952 return false; 1953 Goal o = (Goal) other_; 1954 return compareValues(lifecycleStatus, o.lifecycleStatus, true) && compareValues(continuous, o.continuous, true) 1955 && compareValues(statusDate, o.statusDate, true) && compareValues(statusReason, o.statusReason, true) 1956 ; 1957 } 1958 1959 public boolean isEmpty() { 1960 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, lifecycleStatus 1961 , achievementStatus, category, continuous, priority, description, subject, start 1962 , target, statusDate, statusReason, expressedBy, addresses, note, outcomeCode 1963 , outcomeReference); 1964 } 1965 1966 @Override 1967 public ResourceType getResourceType() { 1968 return ResourceType.Goal; 1969 } 1970 1971 /** 1972 * Search parameter: <b>identifier</b> 1973 * <p> 1974 * Description: <b>External Ids for this goal</b><br> 1975 * Type: <b>token</b><br> 1976 * Path: <b>Goal.identifier</b><br> 1977 * </p> 1978 */ 1979 @SearchParamDefinition(name="identifier", path="Goal.identifier", description="External Ids for this goal", type="token" ) 1980 public static final String SP_IDENTIFIER = "identifier"; 1981 /** 1982 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 1983 * <p> 1984 * Description: <b>External Ids for this goal</b><br> 1985 * Type: <b>token</b><br> 1986 * Path: <b>Goal.identifier</b><br> 1987 * </p> 1988 */ 1989 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 1990 1991 /** 1992 * Search parameter: <b>lifecycle-status</b> 1993 * <p> 1994 * Description: <b>proposed | planned | accepted | active | on-hold | completed | cancelled | entered-in-error | rejected</b><br> 1995 * Type: <b>token</b><br> 1996 * Path: <b>Goal.lifecycleStatus</b><br> 1997 * </p> 1998 */ 1999 @SearchParamDefinition(name="lifecycle-status", path="Goal.lifecycleStatus", description="proposed | planned | accepted | active | on-hold | completed | cancelled | entered-in-error | rejected", type="token" ) 2000 public static final String SP_LIFECYCLE_STATUS = "lifecycle-status"; 2001 /** 2002 * <b>Fluent Client</b> search parameter constant for <b>lifecycle-status</b> 2003 * <p> 2004 * Description: <b>proposed | planned | accepted | active | on-hold | completed | cancelled | entered-in-error | rejected</b><br> 2005 * Type: <b>token</b><br> 2006 * Path: <b>Goal.lifecycleStatus</b><br> 2007 * </p> 2008 */ 2009 public static final ca.uhn.fhir.rest.gclient.TokenClientParam LIFECYCLE_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_LIFECYCLE_STATUS); 2010 2011 /** 2012 * Search parameter: <b>achievement-status</b> 2013 * <p> 2014 * Description: <b>in-progress | improving | worsening | no-change | achieved | sustaining | not-achieved | no-progress | not-attainable</b><br> 2015 * Type: <b>token</b><br> 2016 * Path: <b>Goal.achievementStatus</b><br> 2017 * </p> 2018 */ 2019 @SearchParamDefinition(name="achievement-status", path="Goal.achievementStatus", description="in-progress | improving | worsening | no-change | achieved | sustaining | not-achieved | no-progress | not-attainable", type="token" ) 2020 public static final String SP_ACHIEVEMENT_STATUS = "achievement-status"; 2021 /** 2022 * <b>Fluent Client</b> search parameter constant for <b>achievement-status</b> 2023 * <p> 2024 * Description: <b>in-progress | improving | worsening | no-change | achieved | sustaining | not-achieved | no-progress | not-attainable</b><br> 2025 * Type: <b>token</b><br> 2026 * Path: <b>Goal.achievementStatus</b><br> 2027 * </p> 2028 */ 2029 public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACHIEVEMENT_STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACHIEVEMENT_STATUS); 2030 2031 /** 2032 * Search parameter: <b>patient</b> 2033 * <p> 2034 * Description: <b>Who this goal is intended for</b><br> 2035 * Type: <b>reference</b><br> 2036 * Path: <b>Goal.subject</b><br> 2037 * </p> 2038 */ 2039 @SearchParamDefinition(name="patient", path="Goal.subject.where(resolve() is Patient)", description="Who this goal is intended for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") }, target={Patient.class } ) 2040 public static final String SP_PATIENT = "patient"; 2041 /** 2042 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 2043 * <p> 2044 * Description: <b>Who this goal is intended for</b><br> 2045 * Type: <b>reference</b><br> 2046 * Path: <b>Goal.subject</b><br> 2047 * </p> 2048 */ 2049 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 2050 2051/** 2052 * Constant for fluent queries to be used to add include statements. Specifies 2053 * the path value of "<b>Goal:patient</b>". 2054 */ 2055 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Goal:patient").toLocked(); 2056 2057 /** 2058 * Search parameter: <b>subject</b> 2059 * <p> 2060 * Description: <b>Who this goal is intended for</b><br> 2061 * Type: <b>reference</b><br> 2062 * Path: <b>Goal.subject</b><br> 2063 * </p> 2064 */ 2065 @SearchParamDefinition(name="subject", path="Goal.subject", description="Who this goal is intended for", type="reference", target={Group.class, Organization.class, Patient.class } ) 2066 public static final String SP_SUBJECT = "subject"; 2067 /** 2068 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 2069 * <p> 2070 * Description: <b>Who this goal is intended for</b><br> 2071 * Type: <b>reference</b><br> 2072 * Path: <b>Goal.subject</b><br> 2073 * </p> 2074 */ 2075 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 2076 2077/** 2078 * Constant for fluent queries to be used to add include statements. Specifies 2079 * the path value of "<b>Goal:subject</b>". 2080 */ 2081 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("Goal:subject").toLocked(); 2082 2083 /** 2084 * Search parameter: <b>start-date</b> 2085 * <p> 2086 * Description: <b>When goal pursuit begins</b><br> 2087 * Type: <b>date</b><br> 2088 * Path: <b>Goal.startDate</b><br> 2089 * </p> 2090 */ 2091 @SearchParamDefinition(name="start-date", path="(Goal.start as date)", description="When goal pursuit begins", type="date" ) 2092 public static final String SP_START_DATE = "start-date"; 2093 /** 2094 * <b>Fluent Client</b> search parameter constant for <b>start-date</b> 2095 * <p> 2096 * Description: <b>When goal pursuit begins</b><br> 2097 * Type: <b>date</b><br> 2098 * Path: <b>Goal.startDate</b><br> 2099 * </p> 2100 */ 2101 public static final ca.uhn.fhir.rest.gclient.DateClientParam START_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_START_DATE); 2102 2103 /** 2104 * Search parameter: <b>category</b> 2105 * <p> 2106 * Description: <b>E.g. Treatment, dietary, behavioral, etc.</b><br> 2107 * Type: <b>token</b><br> 2108 * Path: <b>Goal.category</b><br> 2109 * </p> 2110 */ 2111 @SearchParamDefinition(name="category", path="Goal.category", description="E.g. Treatment, dietary, behavioral, etc.", type="token" ) 2112 public static final String SP_CATEGORY = "category"; 2113 /** 2114 * <b>Fluent Client</b> search parameter constant for <b>category</b> 2115 * <p> 2116 * Description: <b>E.g. Treatment, dietary, behavioral, etc.</b><br> 2117 * Type: <b>token</b><br> 2118 * Path: <b>Goal.category</b><br> 2119 * </p> 2120 */ 2121 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CATEGORY); 2122 2123 /** 2124 * Search parameter: <b>target-date</b> 2125 * <p> 2126 * Description: <b>Reach goal on or before</b><br> 2127 * Type: <b>date</b><br> 2128 * Path: <b>Goal.target.dueDate</b><br> 2129 * </p> 2130 */ 2131 @SearchParamDefinition(name="target-date", path="(Goal.target.due as date)", description="Reach goal on or before", type="date" ) 2132 public static final String SP_TARGET_DATE = "target-date"; 2133 /** 2134 * <b>Fluent Client</b> search parameter constant for <b>target-date</b> 2135 * <p> 2136 * Description: <b>Reach goal on or before</b><br> 2137 * Type: <b>date</b><br> 2138 * Path: <b>Goal.target.dueDate</b><br> 2139 * </p> 2140 */ 2141 public static final ca.uhn.fhir.rest.gclient.DateClientParam TARGET_DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_TARGET_DATE); 2142 2143 2144} 2145