001package org.hl7.fhir.dstu3.model; 002 003/* 004 Copyright (c) 2011+, HL7, Inc. 005 All rights reserved. 006 007 Redistribution and use in source and binary forms, with or without modification, 008 are permitted provided that the following conditions are met: 009 010 * Redistributions of source code must retain the above copyright notice, this 011 list of conditions and the following disclaimer. 012 * Redistributions in binary form must reproduce the above copyright notice, 013 this list of conditions and the following disclaimer in the documentation 014 and/or other materials provided with the distribution. 015 * Neither the name of HL7 nor the names of its contributors may be used to 016 endorse or promote products derived from this software without specific 017 prior written permission. 018 019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 020 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 021 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 022 IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 023 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 024 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 025 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 026 WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 027 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 028 POSSIBILITY OF SUCH DAMAGE. 029 030*/ 031 032// Generated on Fri, Mar 16, 2018 15:21+1100 for FHIR v3.0.1 033 034import java.util.*; 035 036import org.hl7.fhir.utilities.Utilities; 037import ca.uhn.fhir.model.api.annotation.ResourceDef; 038import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 039import ca.uhn.fhir.model.api.annotation.Child; 040import ca.uhn.fhir.model.api.annotation.ChildOrder; 041import ca.uhn.fhir.model.api.annotation.Description; 042import ca.uhn.fhir.model.api.annotation.Block; 043import org.hl7.fhir.instance.model.api.*; 044import org.hl7.fhir.exceptions.FHIRException; 045import org.hl7.fhir.exceptions.FHIRFormatError; 046/** 047 * The Care Team includes all the people and organizations who plan to participate in the coordination and delivery of care for a patient. 048 */ 049@ResourceDef(name="CareTeam", profile="http://hl7.org/fhir/StructureDefinition/CareTeam") 050public class CareTeam extends DomainResource { 051 052 public enum CareTeamStatus { 053 /** 054 * The care team has been drafted and proposed, but not yet participating in the coordination and delivery of care. 055 */ 056 PROPOSED, 057 /** 058 * The care team is currently participating in the coordination and delivery of care. 059 */ 060 ACTIVE, 061 /** 062 * The care team is temporarily on hold or suspended and not participating in the coordination and delivery of care. 063 */ 064 SUSPENDED, 065 /** 066 * The care team was, but is no longer, participating in the coordination and delivery of care. 067 */ 068 INACTIVE, 069 /** 070 * The care team should have never existed. 071 */ 072 ENTEREDINERROR, 073 /** 074 * added to help the parsers with the generic types 075 */ 076 NULL; 077 public static CareTeamStatus fromCode(String codeString) throws FHIRException { 078 if (codeString == null || "".equals(codeString)) 079 return null; 080 if ("proposed".equals(codeString)) 081 return PROPOSED; 082 if ("active".equals(codeString)) 083 return ACTIVE; 084 if ("suspended".equals(codeString)) 085 return SUSPENDED; 086 if ("inactive".equals(codeString)) 087 return INACTIVE; 088 if ("entered-in-error".equals(codeString)) 089 return ENTEREDINERROR; 090 if (Configuration.isAcceptInvalidEnums()) 091 return null; 092 else 093 throw new FHIRException("Unknown CareTeamStatus code '"+codeString+"'"); 094 } 095 public String toCode() { 096 switch (this) { 097 case PROPOSED: return "proposed"; 098 case ACTIVE: return "active"; 099 case SUSPENDED: return "suspended"; 100 case INACTIVE: return "inactive"; 101 case ENTEREDINERROR: return "entered-in-error"; 102 default: return "?"; 103 } 104 } 105 public String getSystem() { 106 switch (this) { 107 case PROPOSED: return "http://hl7.org/fhir/care-team-status"; 108 case ACTIVE: return "http://hl7.org/fhir/care-team-status"; 109 case SUSPENDED: return "http://hl7.org/fhir/care-team-status"; 110 case INACTIVE: return "http://hl7.org/fhir/care-team-status"; 111 case ENTEREDINERROR: return "http://hl7.org/fhir/care-team-status"; 112 default: return "?"; 113 } 114 } 115 public String getDefinition() { 116 switch (this) { 117 case PROPOSED: return "The care team has been drafted and proposed, but not yet participating in the coordination and delivery of care."; 118 case ACTIVE: return "The care team is currently participating in the coordination and delivery of care."; 119 case SUSPENDED: return "The care team is temporarily on hold or suspended and not participating in the coordination and delivery of care."; 120 case INACTIVE: return "The care team was, but is no longer, participating in the coordination and delivery of care."; 121 case ENTEREDINERROR: return "The care team should have never existed."; 122 default: return "?"; 123 } 124 } 125 public String getDisplay() { 126 switch (this) { 127 case PROPOSED: return "Proposed"; 128 case ACTIVE: return "Active"; 129 case SUSPENDED: return "Suspended"; 130 case INACTIVE: return "Inactive"; 131 case ENTEREDINERROR: return "Entered In Error"; 132 default: return "?"; 133 } 134 } 135 } 136 137 public static class CareTeamStatusEnumFactory implements EnumFactory<CareTeamStatus> { 138 public CareTeamStatus fromCode(String codeString) throws IllegalArgumentException { 139 if (codeString == null || "".equals(codeString)) 140 if (codeString == null || "".equals(codeString)) 141 return null; 142 if ("proposed".equals(codeString)) 143 return CareTeamStatus.PROPOSED; 144 if ("active".equals(codeString)) 145 return CareTeamStatus.ACTIVE; 146 if ("suspended".equals(codeString)) 147 return CareTeamStatus.SUSPENDED; 148 if ("inactive".equals(codeString)) 149 return CareTeamStatus.INACTIVE; 150 if ("entered-in-error".equals(codeString)) 151 return CareTeamStatus.ENTEREDINERROR; 152 throw new IllegalArgumentException("Unknown CareTeamStatus code '"+codeString+"'"); 153 } 154 public Enumeration<CareTeamStatus> fromType(Base code) throws FHIRException { 155 if (code == null) 156 return null; 157 if (code.isEmpty()) 158 return new Enumeration<CareTeamStatus>(this); 159 String codeString = ((PrimitiveType) code).asStringValue(); 160 if (codeString == null || "".equals(codeString)) 161 return null; 162 if ("proposed".equals(codeString)) 163 return new Enumeration<CareTeamStatus>(this, CareTeamStatus.PROPOSED); 164 if ("active".equals(codeString)) 165 return new Enumeration<CareTeamStatus>(this, CareTeamStatus.ACTIVE); 166 if ("suspended".equals(codeString)) 167 return new Enumeration<CareTeamStatus>(this, CareTeamStatus.SUSPENDED); 168 if ("inactive".equals(codeString)) 169 return new Enumeration<CareTeamStatus>(this, CareTeamStatus.INACTIVE); 170 if ("entered-in-error".equals(codeString)) 171 return new Enumeration<CareTeamStatus>(this, CareTeamStatus.ENTEREDINERROR); 172 throw new FHIRException("Unknown CareTeamStatus code '"+codeString+"'"); 173 } 174 public String toCode(CareTeamStatus code) { 175 if (code == CareTeamStatus.PROPOSED) 176 return "proposed"; 177 if (code == CareTeamStatus.ACTIVE) 178 return "active"; 179 if (code == CareTeamStatus.SUSPENDED) 180 return "suspended"; 181 if (code == CareTeamStatus.INACTIVE) 182 return "inactive"; 183 if (code == CareTeamStatus.ENTEREDINERROR) 184 return "entered-in-error"; 185 return "?"; 186 } 187 public String toSystem(CareTeamStatus code) { 188 return code.getSystem(); 189 } 190 } 191 192 @Block() 193 public static class CareTeamParticipantComponent extends BackboneElement implements IBaseBackboneElement { 194 /** 195 * Indicates specific responsibility of an individual within the care team, such as "Primary care physician", "Trained social worker counselor", "Caregiver", etc. 196 */ 197 @Child(name = "role", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true) 198 @Description(shortDefinition="Type of involvement", formalDefinition="Indicates specific responsibility of an individual within the care team, such as \"Primary care physician\", \"Trained social worker counselor\", \"Caregiver\", etc." ) 199 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/participant-role") 200 protected CodeableConcept role; 201 202 /** 203 * The specific person or organization who is participating/expected to participate in the care team. 204 */ 205 @Child(name = "member", type = {Practitioner.class, RelatedPerson.class, Patient.class, Organization.class, CareTeam.class}, order=2, min=0, max=1, modifier=false, summary=true) 206 @Description(shortDefinition="Who is involved", formalDefinition="The specific person or organization who is participating/expected to participate in the care team." ) 207 protected Reference member; 208 209 /** 210 * The actual object that is the target of the reference (The specific person or organization who is participating/expected to participate in the care team.) 211 */ 212 protected Resource memberTarget; 213 214 /** 215 * The organization of the practitioner. 216 */ 217 @Child(name = "onBehalfOf", type = {Organization.class}, order=3, min=0, max=1, modifier=false, summary=true) 218 @Description(shortDefinition="Organization of the practitioner", formalDefinition="The organization of the practitioner." ) 219 protected Reference onBehalfOf; 220 221 /** 222 * The actual object that is the target of the reference (The organization of the practitioner.) 223 */ 224 protected Organization onBehalfOfTarget; 225 226 /** 227 * Indicates when the specific member or organization did (or is intended to) come into effect and end. 228 */ 229 @Child(name = "period", type = {Period.class}, order=4, min=0, max=1, modifier=false, summary=false) 230 @Description(shortDefinition="Time period of participant", formalDefinition="Indicates when the specific member or organization did (or is intended to) come into effect and end." ) 231 protected Period period; 232 233 private static final long serialVersionUID = -1363308804L; 234 235 /** 236 * Constructor 237 */ 238 public CareTeamParticipantComponent() { 239 super(); 240 } 241 242 /** 243 * @return {@link #role} (Indicates specific responsibility of an individual within the care team, such as "Primary care physician", "Trained social worker counselor", "Caregiver", etc.) 244 */ 245 public CodeableConcept getRole() { 246 if (this.role == null) 247 if (Configuration.errorOnAutoCreate()) 248 throw new Error("Attempt to auto-create CareTeamParticipantComponent.role"); 249 else if (Configuration.doAutoCreate()) 250 this.role = new CodeableConcept(); // cc 251 return this.role; 252 } 253 254 public boolean hasRole() { 255 return this.role != null && !this.role.isEmpty(); 256 } 257 258 /** 259 * @param value {@link #role} (Indicates specific responsibility of an individual within the care team, such as "Primary care physician", "Trained social worker counselor", "Caregiver", etc.) 260 */ 261 public CareTeamParticipantComponent setRole(CodeableConcept value) { 262 this.role = value; 263 return this; 264 } 265 266 /** 267 * @return {@link #member} (The specific person or organization who is participating/expected to participate in the care team.) 268 */ 269 public Reference getMember() { 270 if (this.member == null) 271 if (Configuration.errorOnAutoCreate()) 272 throw new Error("Attempt to auto-create CareTeamParticipantComponent.member"); 273 else if (Configuration.doAutoCreate()) 274 this.member = new Reference(); // cc 275 return this.member; 276 } 277 278 public boolean hasMember() { 279 return this.member != null && !this.member.isEmpty(); 280 } 281 282 /** 283 * @param value {@link #member} (The specific person or organization who is participating/expected to participate in the care team.) 284 */ 285 public CareTeamParticipantComponent setMember(Reference value) { 286 this.member = value; 287 return this; 288 } 289 290 /** 291 * @return {@link #member} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The specific person or organization who is participating/expected to participate in the care team.) 292 */ 293 public Resource getMemberTarget() { 294 return this.memberTarget; 295 } 296 297 /** 298 * @param value {@link #member} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The specific person or organization who is participating/expected to participate in the care team.) 299 */ 300 public CareTeamParticipantComponent setMemberTarget(Resource value) { 301 this.memberTarget = value; 302 return this; 303 } 304 305 /** 306 * @return {@link #onBehalfOf} (The organization of the practitioner.) 307 */ 308 public Reference getOnBehalfOf() { 309 if (this.onBehalfOf == null) 310 if (Configuration.errorOnAutoCreate()) 311 throw new Error("Attempt to auto-create CareTeamParticipantComponent.onBehalfOf"); 312 else if (Configuration.doAutoCreate()) 313 this.onBehalfOf = new Reference(); // cc 314 return this.onBehalfOf; 315 } 316 317 public boolean hasOnBehalfOf() { 318 return this.onBehalfOf != null && !this.onBehalfOf.isEmpty(); 319 } 320 321 /** 322 * @param value {@link #onBehalfOf} (The organization of the practitioner.) 323 */ 324 public CareTeamParticipantComponent setOnBehalfOf(Reference value) { 325 this.onBehalfOf = value; 326 return this; 327 } 328 329 /** 330 * @return {@link #onBehalfOf} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The organization of the practitioner.) 331 */ 332 public Organization getOnBehalfOfTarget() { 333 if (this.onBehalfOfTarget == null) 334 if (Configuration.errorOnAutoCreate()) 335 throw new Error("Attempt to auto-create CareTeamParticipantComponent.onBehalfOf"); 336 else if (Configuration.doAutoCreate()) 337 this.onBehalfOfTarget = new Organization(); // aa 338 return this.onBehalfOfTarget; 339 } 340 341 /** 342 * @param value {@link #onBehalfOf} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The organization of the practitioner.) 343 */ 344 public CareTeamParticipantComponent setOnBehalfOfTarget(Organization value) { 345 this.onBehalfOfTarget = value; 346 return this; 347 } 348 349 /** 350 * @return {@link #period} (Indicates when the specific member or organization did (or is intended to) come into effect and end.) 351 */ 352 public Period getPeriod() { 353 if (this.period == null) 354 if (Configuration.errorOnAutoCreate()) 355 throw new Error("Attempt to auto-create CareTeamParticipantComponent.period"); 356 else if (Configuration.doAutoCreate()) 357 this.period = new Period(); // cc 358 return this.period; 359 } 360 361 public boolean hasPeriod() { 362 return this.period != null && !this.period.isEmpty(); 363 } 364 365 /** 366 * @param value {@link #period} (Indicates when the specific member or organization did (or is intended to) come into effect and end.) 367 */ 368 public CareTeamParticipantComponent setPeriod(Period value) { 369 this.period = value; 370 return this; 371 } 372 373 protected void listChildren(List<Property> children) { 374 super.listChildren(children); 375 children.add(new Property("role", "CodeableConcept", "Indicates specific responsibility of an individual within the care team, such as \"Primary care physician\", \"Trained social worker counselor\", \"Caregiver\", etc.", 0, 1, role)); 376 children.add(new Property("member", "Reference(Practitioner|RelatedPerson|Patient|Organization|CareTeam)", "The specific person or organization who is participating/expected to participate in the care team.", 0, 1, member)); 377 children.add(new Property("onBehalfOf", "Reference(Organization)", "The organization of the practitioner.", 0, 1, onBehalfOf)); 378 children.add(new Property("period", "Period", "Indicates when the specific member or organization did (or is intended to) come into effect and end.", 0, 1, period)); 379 } 380 381 @Override 382 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 383 switch (_hash) { 384 case 3506294: /*role*/ return new Property("role", "CodeableConcept", "Indicates specific responsibility of an individual within the care team, such as \"Primary care physician\", \"Trained social worker counselor\", \"Caregiver\", etc.", 0, 1, role); 385 case -1077769574: /*member*/ return new Property("member", "Reference(Practitioner|RelatedPerson|Patient|Organization|CareTeam)", "The specific person or organization who is participating/expected to participate in the care team.", 0, 1, member); 386 case -14402964: /*onBehalfOf*/ return new Property("onBehalfOf", "Reference(Organization)", "The organization of the practitioner.", 0, 1, onBehalfOf); 387 case -991726143: /*period*/ return new Property("period", "Period", "Indicates when the specific member or organization did (or is intended to) come into effect and end.", 0, 1, period); 388 default: return super.getNamedProperty(_hash, _name, _checkValid); 389 } 390 391 } 392 393 @Override 394 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 395 switch (hash) { 396 case 3506294: /*role*/ return this.role == null ? new Base[0] : new Base[] {this.role}; // CodeableConcept 397 case -1077769574: /*member*/ return this.member == null ? new Base[0] : new Base[] {this.member}; // Reference 398 case -14402964: /*onBehalfOf*/ return this.onBehalfOf == null ? new Base[0] : new Base[] {this.onBehalfOf}; // Reference 399 case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period 400 default: return super.getProperty(hash, name, checkValid); 401 } 402 403 } 404 405 @Override 406 public Base setProperty(int hash, String name, Base value) throws FHIRException { 407 switch (hash) { 408 case 3506294: // role 409 this.role = castToCodeableConcept(value); // CodeableConcept 410 return value; 411 case -1077769574: // member 412 this.member = castToReference(value); // Reference 413 return value; 414 case -14402964: // onBehalfOf 415 this.onBehalfOf = castToReference(value); // Reference 416 return value; 417 case -991726143: // period 418 this.period = castToPeriod(value); // Period 419 return value; 420 default: return super.setProperty(hash, name, value); 421 } 422 423 } 424 425 @Override 426 public Base setProperty(String name, Base value) throws FHIRException { 427 if (name.equals("role")) { 428 this.role = castToCodeableConcept(value); // CodeableConcept 429 } else if (name.equals("member")) { 430 this.member = castToReference(value); // Reference 431 } else if (name.equals("onBehalfOf")) { 432 this.onBehalfOf = castToReference(value); // Reference 433 } else if (name.equals("period")) { 434 this.period = castToPeriod(value); // Period 435 } else 436 return super.setProperty(name, value); 437 return value; 438 } 439 440 @Override 441 public Base makeProperty(int hash, String name) throws FHIRException { 442 switch (hash) { 443 case 3506294: return getRole(); 444 case -1077769574: return getMember(); 445 case -14402964: return getOnBehalfOf(); 446 case -991726143: return getPeriod(); 447 default: return super.makeProperty(hash, name); 448 } 449 450 } 451 452 @Override 453 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 454 switch (hash) { 455 case 3506294: /*role*/ return new String[] {"CodeableConcept"}; 456 case -1077769574: /*member*/ return new String[] {"Reference"}; 457 case -14402964: /*onBehalfOf*/ return new String[] {"Reference"}; 458 case -991726143: /*period*/ return new String[] {"Period"}; 459 default: return super.getTypesForProperty(hash, name); 460 } 461 462 } 463 464 @Override 465 public Base addChild(String name) throws FHIRException { 466 if (name.equals("role")) { 467 this.role = new CodeableConcept(); 468 return this.role; 469 } 470 else if (name.equals("member")) { 471 this.member = new Reference(); 472 return this.member; 473 } 474 else if (name.equals("onBehalfOf")) { 475 this.onBehalfOf = new Reference(); 476 return this.onBehalfOf; 477 } 478 else if (name.equals("period")) { 479 this.period = new Period(); 480 return this.period; 481 } 482 else 483 return super.addChild(name); 484 } 485 486 public CareTeamParticipantComponent copy() { 487 CareTeamParticipantComponent dst = new CareTeamParticipantComponent(); 488 copyValues(dst); 489 dst.role = role == null ? null : role.copy(); 490 dst.member = member == null ? null : member.copy(); 491 dst.onBehalfOf = onBehalfOf == null ? null : onBehalfOf.copy(); 492 dst.period = period == null ? null : period.copy(); 493 return dst; 494 } 495 496 @Override 497 public boolean equalsDeep(Base other_) { 498 if (!super.equalsDeep(other_)) 499 return false; 500 if (!(other_ instanceof CareTeamParticipantComponent)) 501 return false; 502 CareTeamParticipantComponent o = (CareTeamParticipantComponent) other_; 503 return compareDeep(role, o.role, true) && compareDeep(member, o.member, true) && compareDeep(onBehalfOf, o.onBehalfOf, true) 504 && compareDeep(period, o.period, true); 505 } 506 507 @Override 508 public boolean equalsShallow(Base other_) { 509 if (!super.equalsShallow(other_)) 510 return false; 511 if (!(other_ instanceof CareTeamParticipantComponent)) 512 return false; 513 CareTeamParticipantComponent o = (CareTeamParticipantComponent) other_; 514 return true; 515 } 516 517 public boolean isEmpty() { 518 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(role, member, onBehalfOf 519 , period); 520 } 521 522 public String fhirType() { 523 return "CareTeam.participant"; 524 525 } 526 527 } 528 529 /** 530 * This records identifiers associated with this care team that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. 531 */ 532 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 533 @Description(shortDefinition="External Ids for this team", formalDefinition="This records identifiers associated with this care team that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate." ) 534 protected List<Identifier> identifier; 535 536 /** 537 * Indicates the current state of the care team. 538 */ 539 @Child(name = "status", type = {CodeType.class}, order=1, min=0, max=1, modifier=true, summary=true) 540 @Description(shortDefinition="proposed | active | suspended | inactive | entered-in-error", formalDefinition="Indicates the current state of the care team." ) 541 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/care-team-status") 542 protected Enumeration<CareTeamStatus> status; 543 544 /** 545 * Identifies what kind of team. This is to support differentiation between multiple co-existing teams, such as care plan team, episode of care team, longitudinal care team. 546 */ 547 @Child(name = "category", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 548 @Description(shortDefinition="Type of team", formalDefinition="Identifies what kind of team. This is to support differentiation between multiple co-existing teams, such as care plan team, episode of care team, longitudinal care team." ) 549 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/care-team-category") 550 protected List<CodeableConcept> category; 551 552 /** 553 * A label for human use intended to distinguish like teams. E.g. the "red" vs. "green" trauma teams. 554 */ 555 @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true) 556 @Description(shortDefinition="Name of the team, such as crisis assessment team", formalDefinition="A label for human use intended to distinguish like teams. E.g. the \"red\" vs. \"green\" trauma teams." ) 557 protected StringType name; 558 559 /** 560 * Identifies the patient or group whose intended care is handled by the team. 561 */ 562 @Child(name = "subject", type = {Patient.class, Group.class}, order=4, min=0, max=1, modifier=false, summary=true) 563 @Description(shortDefinition="Who care team is for", formalDefinition="Identifies the patient or group whose intended care is handled by the team." ) 564 protected Reference subject; 565 566 /** 567 * The actual object that is the target of the reference (Identifies the patient or group whose intended care is handled by the team.) 568 */ 569 protected Resource subjectTarget; 570 571 /** 572 * The encounter or episode of care that establishes the context for this care team. 573 */ 574 @Child(name = "context", type = {Encounter.class, EpisodeOfCare.class}, order=5, min=0, max=1, modifier=false, summary=true) 575 @Description(shortDefinition="Encounter or episode associated with CareTeam", formalDefinition="The encounter or episode of care that establishes the context for this care team." ) 576 protected Reference context; 577 578 /** 579 * The actual object that is the target of the reference (The encounter or episode of care that establishes the context for this care team.) 580 */ 581 protected Resource contextTarget; 582 583 /** 584 * Indicates when the team did (or is intended to) come into effect and end. 585 */ 586 @Child(name = "period", type = {Period.class}, order=6, min=0, max=1, modifier=false, summary=true) 587 @Description(shortDefinition="Time period team covers", formalDefinition="Indicates when the team did (or is intended to) come into effect and end." ) 588 protected Period period; 589 590 /** 591 * Identifies all people and organizations who are expected to be involved in the care team. 592 */ 593 @Child(name = "participant", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 594 @Description(shortDefinition="Members of the team", formalDefinition="Identifies all people and organizations who are expected to be involved in the care team." ) 595 protected List<CareTeamParticipantComponent> participant; 596 597 /** 598 * Describes why the care team exists. 599 */ 600 @Child(name = "reasonCode", type = {CodeableConcept.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 601 @Description(shortDefinition="Why the care team exists", formalDefinition="Describes why the care team exists." ) 602 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/clinical-findings") 603 protected List<CodeableConcept> reasonCode; 604 605 /** 606 * Condition(s) that this care team addresses. 607 */ 608 @Child(name = "reasonReference", type = {Condition.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 609 @Description(shortDefinition="Why the care team exists", formalDefinition="Condition(s) that this care team addresses." ) 610 protected List<Reference> reasonReference; 611 /** 612 * The actual objects that are the target of the reference (Condition(s) that this care team addresses.) 613 */ 614 protected List<Condition> reasonReferenceTarget; 615 616 617 /** 618 * The organization responsible for the care team. 619 */ 620 @Child(name = "managingOrganization", type = {Organization.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 621 @Description(shortDefinition="Organization responsible for the care team", formalDefinition="The organization responsible for the care team." ) 622 protected List<Reference> managingOrganization; 623 /** 624 * The actual objects that are the target of the reference (The organization responsible for the care team.) 625 */ 626 protected List<Organization> managingOrganizationTarget; 627 628 629 /** 630 * Comments made about the CareTeam. 631 */ 632 @Child(name = "note", type = {Annotation.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 633 @Description(shortDefinition="Comments made about the CareTeam", formalDefinition="Comments made about the CareTeam." ) 634 protected List<Annotation> note; 635 636 private static final long serialVersionUID = 1568354370L; 637 638 /** 639 * Constructor 640 */ 641 public CareTeam() { 642 super(); 643 } 644 645 /** 646 * @return {@link #identifier} (This records identifiers associated with this care team that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate.) 647 */ 648 public List<Identifier> getIdentifier() { 649 if (this.identifier == null) 650 this.identifier = new ArrayList<Identifier>(); 651 return this.identifier; 652 } 653 654 /** 655 * @return Returns a reference to <code>this</code> for easy method chaining 656 */ 657 public CareTeam setIdentifier(List<Identifier> theIdentifier) { 658 this.identifier = theIdentifier; 659 return this; 660 } 661 662 public boolean hasIdentifier() { 663 if (this.identifier == null) 664 return false; 665 for (Identifier item : this.identifier) 666 if (!item.isEmpty()) 667 return true; 668 return false; 669 } 670 671 public Identifier addIdentifier() { //3 672 Identifier t = new Identifier(); 673 if (this.identifier == null) 674 this.identifier = new ArrayList<Identifier>(); 675 this.identifier.add(t); 676 return t; 677 } 678 679 public CareTeam addIdentifier(Identifier t) { //3 680 if (t == null) 681 return this; 682 if (this.identifier == null) 683 this.identifier = new ArrayList<Identifier>(); 684 this.identifier.add(t); 685 return this; 686 } 687 688 /** 689 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist 690 */ 691 public Identifier getIdentifierFirstRep() { 692 if (getIdentifier().isEmpty()) { 693 addIdentifier(); 694 } 695 return getIdentifier().get(0); 696 } 697 698 /** 699 * @return {@link #status} (Indicates the current state of the care team.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 700 */ 701 public Enumeration<CareTeamStatus> getStatusElement() { 702 if (this.status == null) 703 if (Configuration.errorOnAutoCreate()) 704 throw new Error("Attempt to auto-create CareTeam.status"); 705 else if (Configuration.doAutoCreate()) 706 this.status = new Enumeration<CareTeamStatus>(new CareTeamStatusEnumFactory()); // bb 707 return this.status; 708 } 709 710 public boolean hasStatusElement() { 711 return this.status != null && !this.status.isEmpty(); 712 } 713 714 public boolean hasStatus() { 715 return this.status != null && !this.status.isEmpty(); 716 } 717 718 /** 719 * @param value {@link #status} (Indicates the current state of the care team.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value 720 */ 721 public CareTeam setStatusElement(Enumeration<CareTeamStatus> value) { 722 this.status = value; 723 return this; 724 } 725 726 /** 727 * @return Indicates the current state of the care team. 728 */ 729 public CareTeamStatus getStatus() { 730 return this.status == null ? null : this.status.getValue(); 731 } 732 733 /** 734 * @param value Indicates the current state of the care team. 735 */ 736 public CareTeam setStatus(CareTeamStatus value) { 737 if (value == null) 738 this.status = null; 739 else { 740 if (this.status == null) 741 this.status = new Enumeration<CareTeamStatus>(new CareTeamStatusEnumFactory()); 742 this.status.setValue(value); 743 } 744 return this; 745 } 746 747 /** 748 * @return {@link #category} (Identifies what kind of team. This is to support differentiation between multiple co-existing teams, such as care plan team, episode of care team, longitudinal care team.) 749 */ 750 public List<CodeableConcept> getCategory() { 751 if (this.category == null) 752 this.category = new ArrayList<CodeableConcept>(); 753 return this.category; 754 } 755 756 /** 757 * @return Returns a reference to <code>this</code> for easy method chaining 758 */ 759 public CareTeam setCategory(List<CodeableConcept> theCategory) { 760 this.category = theCategory; 761 return this; 762 } 763 764 public boolean hasCategory() { 765 if (this.category == null) 766 return false; 767 for (CodeableConcept item : this.category) 768 if (!item.isEmpty()) 769 return true; 770 return false; 771 } 772 773 public CodeableConcept addCategory() { //3 774 CodeableConcept t = new CodeableConcept(); 775 if (this.category == null) 776 this.category = new ArrayList<CodeableConcept>(); 777 this.category.add(t); 778 return t; 779 } 780 781 public CareTeam addCategory(CodeableConcept t) { //3 782 if (t == null) 783 return this; 784 if (this.category == null) 785 this.category = new ArrayList<CodeableConcept>(); 786 this.category.add(t); 787 return this; 788 } 789 790 /** 791 * @return The first repetition of repeating field {@link #category}, creating it if it does not already exist 792 */ 793 public CodeableConcept getCategoryFirstRep() { 794 if (getCategory().isEmpty()) { 795 addCategory(); 796 } 797 return getCategory().get(0); 798 } 799 800 /** 801 * @return {@link #name} (A label for human use intended to distinguish like teams. E.g. the "red" vs. "green" trauma teams.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 802 */ 803 public StringType getNameElement() { 804 if (this.name == null) 805 if (Configuration.errorOnAutoCreate()) 806 throw new Error("Attempt to auto-create CareTeam.name"); 807 else if (Configuration.doAutoCreate()) 808 this.name = new StringType(); // bb 809 return this.name; 810 } 811 812 public boolean hasNameElement() { 813 return this.name != null && !this.name.isEmpty(); 814 } 815 816 public boolean hasName() { 817 return this.name != null && !this.name.isEmpty(); 818 } 819 820 /** 821 * @param value {@link #name} (A label for human use intended to distinguish like teams. E.g. the "red" vs. "green" trauma teams.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value 822 */ 823 public CareTeam setNameElement(StringType value) { 824 this.name = value; 825 return this; 826 } 827 828 /** 829 * @return A label for human use intended to distinguish like teams. E.g. the "red" vs. "green" trauma teams. 830 */ 831 public String getName() { 832 return this.name == null ? null : this.name.getValue(); 833 } 834 835 /** 836 * @param value A label for human use intended to distinguish like teams. E.g. the "red" vs. "green" trauma teams. 837 */ 838 public CareTeam setName(String value) { 839 if (Utilities.noString(value)) 840 this.name = null; 841 else { 842 if (this.name == null) 843 this.name = new StringType(); 844 this.name.setValue(value); 845 } 846 return this; 847 } 848 849 /** 850 * @return {@link #subject} (Identifies the patient or group whose intended care is handled by the team.) 851 */ 852 public Reference getSubject() { 853 if (this.subject == null) 854 if (Configuration.errorOnAutoCreate()) 855 throw new Error("Attempt to auto-create CareTeam.subject"); 856 else if (Configuration.doAutoCreate()) 857 this.subject = new Reference(); // cc 858 return this.subject; 859 } 860 861 public boolean hasSubject() { 862 return this.subject != null && !this.subject.isEmpty(); 863 } 864 865 /** 866 * @param value {@link #subject} (Identifies the patient or group whose intended care is handled by the team.) 867 */ 868 public CareTeam setSubject(Reference value) { 869 this.subject = value; 870 return this; 871 } 872 873 /** 874 * @return {@link #subject} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Identifies the patient or group whose intended care is handled by the team.) 875 */ 876 public Resource getSubjectTarget() { 877 return this.subjectTarget; 878 } 879 880 /** 881 * @param value {@link #subject} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Identifies the patient or group whose intended care is handled by the team.) 882 */ 883 public CareTeam setSubjectTarget(Resource value) { 884 this.subjectTarget = value; 885 return this; 886 } 887 888 /** 889 * @return {@link #context} (The encounter or episode of care that establishes the context for this care team.) 890 */ 891 public Reference getContext() { 892 if (this.context == null) 893 if (Configuration.errorOnAutoCreate()) 894 throw new Error("Attempt to auto-create CareTeam.context"); 895 else if (Configuration.doAutoCreate()) 896 this.context = new Reference(); // cc 897 return this.context; 898 } 899 900 public boolean hasContext() { 901 return this.context != null && !this.context.isEmpty(); 902 } 903 904 /** 905 * @param value {@link #context} (The encounter or episode of care that establishes the context for this care team.) 906 */ 907 public CareTeam setContext(Reference value) { 908 this.context = value; 909 return this; 910 } 911 912 /** 913 * @return {@link #context} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The encounter or episode of care that establishes the context for this care team.) 914 */ 915 public Resource getContextTarget() { 916 return this.contextTarget; 917 } 918 919 /** 920 * @param value {@link #context} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The encounter or episode of care that establishes the context for this care team.) 921 */ 922 public CareTeam setContextTarget(Resource value) { 923 this.contextTarget = value; 924 return this; 925 } 926 927 /** 928 * @return {@link #period} (Indicates when the team did (or is intended to) come into effect and end.) 929 */ 930 public Period getPeriod() { 931 if (this.period == null) 932 if (Configuration.errorOnAutoCreate()) 933 throw new Error("Attempt to auto-create CareTeam.period"); 934 else if (Configuration.doAutoCreate()) 935 this.period = new Period(); // cc 936 return this.period; 937 } 938 939 public boolean hasPeriod() { 940 return this.period != null && !this.period.isEmpty(); 941 } 942 943 /** 944 * @param value {@link #period} (Indicates when the team did (or is intended to) come into effect and end.) 945 */ 946 public CareTeam setPeriod(Period value) { 947 this.period = value; 948 return this; 949 } 950 951 /** 952 * @return {@link #participant} (Identifies all people and organizations who are expected to be involved in the care team.) 953 */ 954 public List<CareTeamParticipantComponent> getParticipant() { 955 if (this.participant == null) 956 this.participant = new ArrayList<CareTeamParticipantComponent>(); 957 return this.participant; 958 } 959 960 /** 961 * @return Returns a reference to <code>this</code> for easy method chaining 962 */ 963 public CareTeam setParticipant(List<CareTeamParticipantComponent> theParticipant) { 964 this.participant = theParticipant; 965 return this; 966 } 967 968 public boolean hasParticipant() { 969 if (this.participant == null) 970 return false; 971 for (CareTeamParticipantComponent item : this.participant) 972 if (!item.isEmpty()) 973 return true; 974 return false; 975 } 976 977 public CareTeamParticipantComponent addParticipant() { //3 978 CareTeamParticipantComponent t = new CareTeamParticipantComponent(); 979 if (this.participant == null) 980 this.participant = new ArrayList<CareTeamParticipantComponent>(); 981 this.participant.add(t); 982 return t; 983 } 984 985 public CareTeam addParticipant(CareTeamParticipantComponent t) { //3 986 if (t == null) 987 return this; 988 if (this.participant == null) 989 this.participant = new ArrayList<CareTeamParticipantComponent>(); 990 this.participant.add(t); 991 return this; 992 } 993 994 /** 995 * @return The first repetition of repeating field {@link #participant}, creating it if it does not already exist 996 */ 997 public CareTeamParticipantComponent getParticipantFirstRep() { 998 if (getParticipant().isEmpty()) { 999 addParticipant(); 1000 } 1001 return getParticipant().get(0); 1002 } 1003 1004 /** 1005 * @return {@link #reasonCode} (Describes why the care team exists.) 1006 */ 1007 public List<CodeableConcept> getReasonCode() { 1008 if (this.reasonCode == null) 1009 this.reasonCode = new ArrayList<CodeableConcept>(); 1010 return this.reasonCode; 1011 } 1012 1013 /** 1014 * @return Returns a reference to <code>this</code> for easy method chaining 1015 */ 1016 public CareTeam setReasonCode(List<CodeableConcept> theReasonCode) { 1017 this.reasonCode = theReasonCode; 1018 return this; 1019 } 1020 1021 public boolean hasReasonCode() { 1022 if (this.reasonCode == null) 1023 return false; 1024 for (CodeableConcept item : this.reasonCode) 1025 if (!item.isEmpty()) 1026 return true; 1027 return false; 1028 } 1029 1030 public CodeableConcept addReasonCode() { //3 1031 CodeableConcept t = new CodeableConcept(); 1032 if (this.reasonCode == null) 1033 this.reasonCode = new ArrayList<CodeableConcept>(); 1034 this.reasonCode.add(t); 1035 return t; 1036 } 1037 1038 public CareTeam addReasonCode(CodeableConcept t) { //3 1039 if (t == null) 1040 return this; 1041 if (this.reasonCode == null) 1042 this.reasonCode = new ArrayList<CodeableConcept>(); 1043 this.reasonCode.add(t); 1044 return this; 1045 } 1046 1047 /** 1048 * @return The first repetition of repeating field {@link #reasonCode}, creating it if it does not already exist 1049 */ 1050 public CodeableConcept getReasonCodeFirstRep() { 1051 if (getReasonCode().isEmpty()) { 1052 addReasonCode(); 1053 } 1054 return getReasonCode().get(0); 1055 } 1056 1057 /** 1058 * @return {@link #reasonReference} (Condition(s) that this care team addresses.) 1059 */ 1060 public List<Reference> getReasonReference() { 1061 if (this.reasonReference == null) 1062 this.reasonReference = new ArrayList<Reference>(); 1063 return this.reasonReference; 1064 } 1065 1066 /** 1067 * @return Returns a reference to <code>this</code> for easy method chaining 1068 */ 1069 public CareTeam setReasonReference(List<Reference> theReasonReference) { 1070 this.reasonReference = theReasonReference; 1071 return this; 1072 } 1073 1074 public boolean hasReasonReference() { 1075 if (this.reasonReference == null) 1076 return false; 1077 for (Reference item : this.reasonReference) 1078 if (!item.isEmpty()) 1079 return true; 1080 return false; 1081 } 1082 1083 public Reference addReasonReference() { //3 1084 Reference t = new Reference(); 1085 if (this.reasonReference == null) 1086 this.reasonReference = new ArrayList<Reference>(); 1087 this.reasonReference.add(t); 1088 return t; 1089 } 1090 1091 public CareTeam addReasonReference(Reference t) { //3 1092 if (t == null) 1093 return this; 1094 if (this.reasonReference == null) 1095 this.reasonReference = new ArrayList<Reference>(); 1096 this.reasonReference.add(t); 1097 return this; 1098 } 1099 1100 /** 1101 * @return The first repetition of repeating field {@link #reasonReference}, creating it if it does not already exist 1102 */ 1103 public Reference getReasonReferenceFirstRep() { 1104 if (getReasonReference().isEmpty()) { 1105 addReasonReference(); 1106 } 1107 return getReasonReference().get(0); 1108 } 1109 1110 /** 1111 * @deprecated Use Reference#setResource(IBaseResource) instead 1112 */ 1113 @Deprecated 1114 public List<Condition> getReasonReferenceTarget() { 1115 if (this.reasonReferenceTarget == null) 1116 this.reasonReferenceTarget = new ArrayList<Condition>(); 1117 return this.reasonReferenceTarget; 1118 } 1119 1120 /** 1121 * @deprecated Use Reference#setResource(IBaseResource) instead 1122 */ 1123 @Deprecated 1124 public Condition addReasonReferenceTarget() { 1125 Condition r = new Condition(); 1126 if (this.reasonReferenceTarget == null) 1127 this.reasonReferenceTarget = new ArrayList<Condition>(); 1128 this.reasonReferenceTarget.add(r); 1129 return r; 1130 } 1131 1132 /** 1133 * @return {@link #managingOrganization} (The organization responsible for the care team.) 1134 */ 1135 public List<Reference> getManagingOrganization() { 1136 if (this.managingOrganization == null) 1137 this.managingOrganization = new ArrayList<Reference>(); 1138 return this.managingOrganization; 1139 } 1140 1141 /** 1142 * @return Returns a reference to <code>this</code> for easy method chaining 1143 */ 1144 public CareTeam setManagingOrganization(List<Reference> theManagingOrganization) { 1145 this.managingOrganization = theManagingOrganization; 1146 return this; 1147 } 1148 1149 public boolean hasManagingOrganization() { 1150 if (this.managingOrganization == null) 1151 return false; 1152 for (Reference item : this.managingOrganization) 1153 if (!item.isEmpty()) 1154 return true; 1155 return false; 1156 } 1157 1158 public Reference addManagingOrganization() { //3 1159 Reference t = new Reference(); 1160 if (this.managingOrganization == null) 1161 this.managingOrganization = new ArrayList<Reference>(); 1162 this.managingOrganization.add(t); 1163 return t; 1164 } 1165 1166 public CareTeam addManagingOrganization(Reference t) { //3 1167 if (t == null) 1168 return this; 1169 if (this.managingOrganization == null) 1170 this.managingOrganization = new ArrayList<Reference>(); 1171 this.managingOrganization.add(t); 1172 return this; 1173 } 1174 1175 /** 1176 * @return The first repetition of repeating field {@link #managingOrganization}, creating it if it does not already exist 1177 */ 1178 public Reference getManagingOrganizationFirstRep() { 1179 if (getManagingOrganization().isEmpty()) { 1180 addManagingOrganization(); 1181 } 1182 return getManagingOrganization().get(0); 1183 } 1184 1185 /** 1186 * @deprecated Use Reference#setResource(IBaseResource) instead 1187 */ 1188 @Deprecated 1189 public List<Organization> getManagingOrganizationTarget() { 1190 if (this.managingOrganizationTarget == null) 1191 this.managingOrganizationTarget = new ArrayList<Organization>(); 1192 return this.managingOrganizationTarget; 1193 } 1194 1195 /** 1196 * @deprecated Use Reference#setResource(IBaseResource) instead 1197 */ 1198 @Deprecated 1199 public Organization addManagingOrganizationTarget() { 1200 Organization r = new Organization(); 1201 if (this.managingOrganizationTarget == null) 1202 this.managingOrganizationTarget = new ArrayList<Organization>(); 1203 this.managingOrganizationTarget.add(r); 1204 return r; 1205 } 1206 1207 /** 1208 * @return {@link #note} (Comments made about the CareTeam.) 1209 */ 1210 public List<Annotation> getNote() { 1211 if (this.note == null) 1212 this.note = new ArrayList<Annotation>(); 1213 return this.note; 1214 } 1215 1216 /** 1217 * @return Returns a reference to <code>this</code> for easy method chaining 1218 */ 1219 public CareTeam setNote(List<Annotation> theNote) { 1220 this.note = theNote; 1221 return this; 1222 } 1223 1224 public boolean hasNote() { 1225 if (this.note == null) 1226 return false; 1227 for (Annotation item : this.note) 1228 if (!item.isEmpty()) 1229 return true; 1230 return false; 1231 } 1232 1233 public Annotation addNote() { //3 1234 Annotation t = new Annotation(); 1235 if (this.note == null) 1236 this.note = new ArrayList<Annotation>(); 1237 this.note.add(t); 1238 return t; 1239 } 1240 1241 public CareTeam addNote(Annotation t) { //3 1242 if (t == null) 1243 return this; 1244 if (this.note == null) 1245 this.note = new ArrayList<Annotation>(); 1246 this.note.add(t); 1247 return this; 1248 } 1249 1250 /** 1251 * @return The first repetition of repeating field {@link #note}, creating it if it does not already exist 1252 */ 1253 public Annotation getNoteFirstRep() { 1254 if (getNote().isEmpty()) { 1255 addNote(); 1256 } 1257 return getNote().get(0); 1258 } 1259 1260 protected void listChildren(List<Property> children) { 1261 super.listChildren(children); 1262 children.add(new Property("identifier", "Identifier", "This records identifiers associated with this care team that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate.", 0, java.lang.Integer.MAX_VALUE, identifier)); 1263 children.add(new Property("status", "code", "Indicates the current state of the care team.", 0, 1, status)); 1264 children.add(new Property("category", "CodeableConcept", "Identifies what kind of team. This is to support differentiation between multiple co-existing teams, such as care plan team, episode of care team, longitudinal care team.", 0, java.lang.Integer.MAX_VALUE, category)); 1265 children.add(new Property("name", "string", "A label for human use intended to distinguish like teams. E.g. the \"red\" vs. \"green\" trauma teams.", 0, 1, name)); 1266 children.add(new Property("subject", "Reference(Patient|Group)", "Identifies the patient or group whose intended care is handled by the team.", 0, 1, subject)); 1267 children.add(new Property("context", "Reference(Encounter|EpisodeOfCare)", "The encounter or episode of care that establishes the context for this care team.", 0, 1, context)); 1268 children.add(new Property("period", "Period", "Indicates when the team did (or is intended to) come into effect and end.", 0, 1, period)); 1269 children.add(new Property("participant", "", "Identifies all people and organizations who are expected to be involved in the care team.", 0, java.lang.Integer.MAX_VALUE, participant)); 1270 children.add(new Property("reasonCode", "CodeableConcept", "Describes why the care team exists.", 0, java.lang.Integer.MAX_VALUE, reasonCode)); 1271 children.add(new Property("reasonReference", "Reference(Condition)", "Condition(s) that this care team addresses.", 0, java.lang.Integer.MAX_VALUE, reasonReference)); 1272 children.add(new Property("managingOrganization", "Reference(Organization)", "The organization responsible for the care team.", 0, java.lang.Integer.MAX_VALUE, managingOrganization)); 1273 children.add(new Property("note", "Annotation", "Comments made about the CareTeam.", 0, java.lang.Integer.MAX_VALUE, note)); 1274 } 1275 1276 @Override 1277 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 1278 switch (_hash) { 1279 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "This records identifiers associated with this care team that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate.", 0, java.lang.Integer.MAX_VALUE, identifier); 1280 case -892481550: /*status*/ return new Property("status", "code", "Indicates the current state of the care team.", 0, 1, status); 1281 case 50511102: /*category*/ return new Property("category", "CodeableConcept", "Identifies what kind of team. This is to support differentiation between multiple co-existing teams, such as care plan team, episode of care team, longitudinal care team.", 0, java.lang.Integer.MAX_VALUE, category); 1282 case 3373707: /*name*/ return new Property("name", "string", "A label for human use intended to distinguish like teams. E.g. the \"red\" vs. \"green\" trauma teams.", 0, 1, name); 1283 case -1867885268: /*subject*/ return new Property("subject", "Reference(Patient|Group)", "Identifies the patient or group whose intended care is handled by the team.", 0, 1, subject); 1284 case 951530927: /*context*/ return new Property("context", "Reference(Encounter|EpisodeOfCare)", "The encounter or episode of care that establishes the context for this care team.", 0, 1, context); 1285 case -991726143: /*period*/ return new Property("period", "Period", "Indicates when the team did (or is intended to) come into effect and end.", 0, 1, period); 1286 case 767422259: /*participant*/ return new Property("participant", "", "Identifies all people and organizations who are expected to be involved in the care team.", 0, java.lang.Integer.MAX_VALUE, participant); 1287 case 722137681: /*reasonCode*/ return new Property("reasonCode", "CodeableConcept", "Describes why the care team exists.", 0, java.lang.Integer.MAX_VALUE, reasonCode); 1288 case -1146218137: /*reasonReference*/ return new Property("reasonReference", "Reference(Condition)", "Condition(s) that this care team addresses.", 0, java.lang.Integer.MAX_VALUE, reasonReference); 1289 case -2058947787: /*managingOrganization*/ return new Property("managingOrganization", "Reference(Organization)", "The organization responsible for the care team.", 0, java.lang.Integer.MAX_VALUE, managingOrganization); 1290 case 3387378: /*note*/ return new Property("note", "Annotation", "Comments made about the CareTeam.", 0, java.lang.Integer.MAX_VALUE, note); 1291 default: return super.getNamedProperty(_hash, _name, _checkValid); 1292 } 1293 1294 } 1295 1296 @Override 1297 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 1298 switch (hash) { 1299 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 1300 case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<CareTeamStatus> 1301 case 50511102: /*category*/ return this.category == null ? new Base[0] : this.category.toArray(new Base[this.category.size()]); // CodeableConcept 1302 case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType 1303 case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference 1304 case 951530927: /*context*/ return this.context == null ? new Base[0] : new Base[] {this.context}; // Reference 1305 case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period 1306 case 767422259: /*participant*/ return this.participant == null ? new Base[0] : this.participant.toArray(new Base[this.participant.size()]); // CareTeamParticipantComponent 1307 case 722137681: /*reasonCode*/ return this.reasonCode == null ? new Base[0] : this.reasonCode.toArray(new Base[this.reasonCode.size()]); // CodeableConcept 1308 case -1146218137: /*reasonReference*/ return this.reasonReference == null ? new Base[0] : this.reasonReference.toArray(new Base[this.reasonReference.size()]); // Reference 1309 case -2058947787: /*managingOrganization*/ return this.managingOrganization == null ? new Base[0] : this.managingOrganization.toArray(new Base[this.managingOrganization.size()]); // Reference 1310 case 3387378: /*note*/ return this.note == null ? new Base[0] : this.note.toArray(new Base[this.note.size()]); // Annotation 1311 default: return super.getProperty(hash, name, checkValid); 1312 } 1313 1314 } 1315 1316 @Override 1317 public Base setProperty(int hash, String name, Base value) throws FHIRException { 1318 switch (hash) { 1319 case -1618432855: // identifier 1320 this.getIdentifier().add(castToIdentifier(value)); // Identifier 1321 return value; 1322 case -892481550: // status 1323 value = new CareTeamStatusEnumFactory().fromType(castToCode(value)); 1324 this.status = (Enumeration) value; // Enumeration<CareTeamStatus> 1325 return value; 1326 case 50511102: // category 1327 this.getCategory().add(castToCodeableConcept(value)); // CodeableConcept 1328 return value; 1329 case 3373707: // name 1330 this.name = castToString(value); // StringType 1331 return value; 1332 case -1867885268: // subject 1333 this.subject = castToReference(value); // Reference 1334 return value; 1335 case 951530927: // context 1336 this.context = castToReference(value); // Reference 1337 return value; 1338 case -991726143: // period 1339 this.period = castToPeriod(value); // Period 1340 return value; 1341 case 767422259: // participant 1342 this.getParticipant().add((CareTeamParticipantComponent) value); // CareTeamParticipantComponent 1343 return value; 1344 case 722137681: // reasonCode 1345 this.getReasonCode().add(castToCodeableConcept(value)); // CodeableConcept 1346 return value; 1347 case -1146218137: // reasonReference 1348 this.getReasonReference().add(castToReference(value)); // Reference 1349 return value; 1350 case -2058947787: // managingOrganization 1351 this.getManagingOrganization().add(castToReference(value)); // Reference 1352 return value; 1353 case 3387378: // note 1354 this.getNote().add(castToAnnotation(value)); // Annotation 1355 return value; 1356 default: return super.setProperty(hash, name, value); 1357 } 1358 1359 } 1360 1361 @Override 1362 public Base setProperty(String name, Base value) throws FHIRException { 1363 if (name.equals("identifier")) { 1364 this.getIdentifier().add(castToIdentifier(value)); 1365 } else if (name.equals("status")) { 1366 value = new CareTeamStatusEnumFactory().fromType(castToCode(value)); 1367 this.status = (Enumeration) value; // Enumeration<CareTeamStatus> 1368 } else if (name.equals("category")) { 1369 this.getCategory().add(castToCodeableConcept(value)); 1370 } else if (name.equals("name")) { 1371 this.name = castToString(value); // StringType 1372 } else if (name.equals("subject")) { 1373 this.subject = castToReference(value); // Reference 1374 } else if (name.equals("context")) { 1375 this.context = castToReference(value); // Reference 1376 } else if (name.equals("period")) { 1377 this.period = castToPeriod(value); // Period 1378 } else if (name.equals("participant")) { 1379 this.getParticipant().add((CareTeamParticipantComponent) value); 1380 } else if (name.equals("reasonCode")) { 1381 this.getReasonCode().add(castToCodeableConcept(value)); 1382 } else if (name.equals("reasonReference")) { 1383 this.getReasonReference().add(castToReference(value)); 1384 } else if (name.equals("managingOrganization")) { 1385 this.getManagingOrganization().add(castToReference(value)); 1386 } else if (name.equals("note")) { 1387 this.getNote().add(castToAnnotation(value)); 1388 } else 1389 return super.setProperty(name, value); 1390 return value; 1391 } 1392 1393 @Override 1394 public Base makeProperty(int hash, String name) throws FHIRException { 1395 switch (hash) { 1396 case -1618432855: return addIdentifier(); 1397 case -892481550: return getStatusElement(); 1398 case 50511102: return addCategory(); 1399 case 3373707: return getNameElement(); 1400 case -1867885268: return getSubject(); 1401 case 951530927: return getContext(); 1402 case -991726143: return getPeriod(); 1403 case 767422259: return addParticipant(); 1404 case 722137681: return addReasonCode(); 1405 case -1146218137: return addReasonReference(); 1406 case -2058947787: return addManagingOrganization(); 1407 case 3387378: return addNote(); 1408 default: return super.makeProperty(hash, name); 1409 } 1410 1411 } 1412 1413 @Override 1414 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 1415 switch (hash) { 1416 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 1417 case -892481550: /*status*/ return new String[] {"code"}; 1418 case 50511102: /*category*/ return new String[] {"CodeableConcept"}; 1419 case 3373707: /*name*/ return new String[] {"string"}; 1420 case -1867885268: /*subject*/ return new String[] {"Reference"}; 1421 case 951530927: /*context*/ return new String[] {"Reference"}; 1422 case -991726143: /*period*/ return new String[] {"Period"}; 1423 case 767422259: /*participant*/ return new String[] {}; 1424 case 722137681: /*reasonCode*/ return new String[] {"CodeableConcept"}; 1425 case -1146218137: /*reasonReference*/ return new String[] {"Reference"}; 1426 case -2058947787: /*managingOrganization*/ return new String[] {"Reference"}; 1427 case 3387378: /*note*/ return new String[] {"Annotation"}; 1428 default: return super.getTypesForProperty(hash, name); 1429 } 1430 1431 } 1432 1433 @Override 1434 public Base addChild(String name) throws FHIRException { 1435 if (name.equals("identifier")) { 1436 return addIdentifier(); 1437 } 1438 else if (name.equals("status")) { 1439 throw new FHIRException("Cannot call addChild on a primitive type CareTeam.status"); 1440 } 1441 else if (name.equals("category")) { 1442 return addCategory(); 1443 } 1444 else if (name.equals("name")) { 1445 throw new FHIRException("Cannot call addChild on a primitive type CareTeam.name"); 1446 } 1447 else if (name.equals("subject")) { 1448 this.subject = new Reference(); 1449 return this.subject; 1450 } 1451 else if (name.equals("context")) { 1452 this.context = new Reference(); 1453 return this.context; 1454 } 1455 else if (name.equals("period")) { 1456 this.period = new Period(); 1457 return this.period; 1458 } 1459 else if (name.equals("participant")) { 1460 return addParticipant(); 1461 } 1462 else if (name.equals("reasonCode")) { 1463 return addReasonCode(); 1464 } 1465 else if (name.equals("reasonReference")) { 1466 return addReasonReference(); 1467 } 1468 else if (name.equals("managingOrganization")) { 1469 return addManagingOrganization(); 1470 } 1471 else if (name.equals("note")) { 1472 return addNote(); 1473 } 1474 else 1475 return super.addChild(name); 1476 } 1477 1478 public String fhirType() { 1479 return "CareTeam"; 1480 1481 } 1482 1483 public CareTeam copy() { 1484 CareTeam dst = new CareTeam(); 1485 copyValues(dst); 1486 if (identifier != null) { 1487 dst.identifier = new ArrayList<Identifier>(); 1488 for (Identifier i : identifier) 1489 dst.identifier.add(i.copy()); 1490 }; 1491 dst.status = status == null ? null : status.copy(); 1492 if (category != null) { 1493 dst.category = new ArrayList<CodeableConcept>(); 1494 for (CodeableConcept i : category) 1495 dst.category.add(i.copy()); 1496 }; 1497 dst.name = name == null ? null : name.copy(); 1498 dst.subject = subject == null ? null : subject.copy(); 1499 dst.context = context == null ? null : context.copy(); 1500 dst.period = period == null ? null : period.copy(); 1501 if (participant != null) { 1502 dst.participant = new ArrayList<CareTeamParticipantComponent>(); 1503 for (CareTeamParticipantComponent i : participant) 1504 dst.participant.add(i.copy()); 1505 }; 1506 if (reasonCode != null) { 1507 dst.reasonCode = new ArrayList<CodeableConcept>(); 1508 for (CodeableConcept i : reasonCode) 1509 dst.reasonCode.add(i.copy()); 1510 }; 1511 if (reasonReference != null) { 1512 dst.reasonReference = new ArrayList<Reference>(); 1513 for (Reference i : reasonReference) 1514 dst.reasonReference.add(i.copy()); 1515 }; 1516 if (managingOrganization != null) { 1517 dst.managingOrganization = new ArrayList<Reference>(); 1518 for (Reference i : managingOrganization) 1519 dst.managingOrganization.add(i.copy()); 1520 }; 1521 if (note != null) { 1522 dst.note = new ArrayList<Annotation>(); 1523 for (Annotation i : note) 1524 dst.note.add(i.copy()); 1525 }; 1526 return dst; 1527 } 1528 1529 protected CareTeam typedCopy() { 1530 return copy(); 1531 } 1532 1533 @Override 1534 public boolean equalsDeep(Base other_) { 1535 if (!super.equalsDeep(other_)) 1536 return false; 1537 if (!(other_ instanceof CareTeam)) 1538 return false; 1539 CareTeam o = (CareTeam) other_; 1540 return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(category, o.category, true) 1541 && compareDeep(name, o.name, true) && compareDeep(subject, o.subject, true) && compareDeep(context, o.context, true) 1542 && compareDeep(period, o.period, true) && compareDeep(participant, o.participant, true) && compareDeep(reasonCode, o.reasonCode, true) 1543 && compareDeep(reasonReference, o.reasonReference, true) && compareDeep(managingOrganization, o.managingOrganization, true) 1544 && compareDeep(note, o.note, true); 1545 } 1546 1547 @Override 1548 public boolean equalsShallow(Base other_) { 1549 if (!super.equalsShallow(other_)) 1550 return false; 1551 if (!(other_ instanceof CareTeam)) 1552 return false; 1553 CareTeam o = (CareTeam) other_; 1554 return compareValues(status, o.status, true) && compareValues(name, o.name, true); 1555 } 1556 1557 public boolean isEmpty() { 1558 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, category 1559 , name, subject, context, period, participant, reasonCode, reasonReference, managingOrganization 1560 , note); 1561 } 1562 1563 @Override 1564 public ResourceType getResourceType() { 1565 return ResourceType.CareTeam; 1566 } 1567 1568 /** 1569 * Search parameter: <b>date</b> 1570 * <p> 1571 * Description: <b>Time period team covers</b><br> 1572 * Type: <b>date</b><br> 1573 * Path: <b>CareTeam.period</b><br> 1574 * </p> 1575 */ 1576 @SearchParamDefinition(name="date", path="CareTeam.period", description="Time period team covers", type="date" ) 1577 public static final String SP_DATE = "date"; 1578 /** 1579 * <b>Fluent Client</b> search parameter constant for <b>date</b> 1580 * <p> 1581 * Description: <b>Time period team covers</b><br> 1582 * Type: <b>date</b><br> 1583 * Path: <b>CareTeam.period</b><br> 1584 * </p> 1585 */ 1586 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 1587 1588 /** 1589 * Search parameter: <b>identifier</b> 1590 * <p> 1591 * Description: <b>External Ids for this team</b><br> 1592 * Type: <b>token</b><br> 1593 * Path: <b>CareTeam.identifier</b><br> 1594 * </p> 1595 */ 1596 @SearchParamDefinition(name="identifier", path="CareTeam.identifier", description="External Ids for this team", type="token" ) 1597 public static final String SP_IDENTIFIER = "identifier"; 1598 /** 1599 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 1600 * <p> 1601 * Description: <b>External Ids for this team</b><br> 1602 * Type: <b>token</b><br> 1603 * Path: <b>CareTeam.identifier</b><br> 1604 * </p> 1605 */ 1606 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 1607 1608 /** 1609 * Search parameter: <b>patient</b> 1610 * <p> 1611 * Description: <b>Who care team is for</b><br> 1612 * Type: <b>reference</b><br> 1613 * Path: <b>CareTeam.subject</b><br> 1614 * </p> 1615 */ 1616 @SearchParamDefinition(name="patient", path="CareTeam.subject", description="Who care team is for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") }, target={Patient.class } ) 1617 public static final String SP_PATIENT = "patient"; 1618 /** 1619 * <b>Fluent Client</b> search parameter constant for <b>patient</b> 1620 * <p> 1621 * Description: <b>Who care team is for</b><br> 1622 * Type: <b>reference</b><br> 1623 * Path: <b>CareTeam.subject</b><br> 1624 * </p> 1625 */ 1626 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT); 1627 1628/** 1629 * Constant for fluent queries to be used to add include statements. Specifies 1630 * the path value of "<b>CareTeam:patient</b>". 1631 */ 1632 public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("CareTeam:patient").toLocked(); 1633 1634 /** 1635 * Search parameter: <b>subject</b> 1636 * <p> 1637 * Description: <b>Who care team is for</b><br> 1638 * Type: <b>reference</b><br> 1639 * Path: <b>CareTeam.subject</b><br> 1640 * </p> 1641 */ 1642 @SearchParamDefinition(name="subject", path="CareTeam.subject", description="Who care team is for", type="reference", target={Group.class, Patient.class } ) 1643 public static final String SP_SUBJECT = "subject"; 1644 /** 1645 * <b>Fluent Client</b> search parameter constant for <b>subject</b> 1646 * <p> 1647 * Description: <b>Who care team is for</b><br> 1648 * Type: <b>reference</b><br> 1649 * Path: <b>CareTeam.subject</b><br> 1650 * </p> 1651 */ 1652 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT); 1653 1654/** 1655 * Constant for fluent queries to be used to add include statements. Specifies 1656 * the path value of "<b>CareTeam:subject</b>". 1657 */ 1658 public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("CareTeam:subject").toLocked(); 1659 1660 /** 1661 * Search parameter: <b>context</b> 1662 * <p> 1663 * Description: <b>Encounter or episode associated with CareTeam</b><br> 1664 * Type: <b>reference</b><br> 1665 * Path: <b>CareTeam.context</b><br> 1666 * </p> 1667 */ 1668 @SearchParamDefinition(name="context", path="CareTeam.context", description="Encounter or episode associated with CareTeam", type="reference", target={Encounter.class, EpisodeOfCare.class } ) 1669 public static final String SP_CONTEXT = "context"; 1670 /** 1671 * <b>Fluent Client</b> search parameter constant for <b>context</b> 1672 * <p> 1673 * Description: <b>Encounter or episode associated with CareTeam</b><br> 1674 * Type: <b>reference</b><br> 1675 * Path: <b>CareTeam.context</b><br> 1676 * </p> 1677 */ 1678 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_CONTEXT); 1679 1680/** 1681 * Constant for fluent queries to be used to add include statements. Specifies 1682 * the path value of "<b>CareTeam:context</b>". 1683 */ 1684 public static final ca.uhn.fhir.model.api.Include INCLUDE_CONTEXT = new ca.uhn.fhir.model.api.Include("CareTeam:context").toLocked(); 1685 1686 /** 1687 * Search parameter: <b>encounter</b> 1688 * <p> 1689 * Description: <b>Encounter or episode associated with CareTeam</b><br> 1690 * Type: <b>reference</b><br> 1691 * Path: <b>CareTeam.context</b><br> 1692 * </p> 1693 */ 1694 @SearchParamDefinition(name="encounter", path="CareTeam.context", description="Encounter or episode associated with CareTeam", type="reference", target={Encounter.class } ) 1695 public static final String SP_ENCOUNTER = "encounter"; 1696 /** 1697 * <b>Fluent Client</b> search parameter constant for <b>encounter</b> 1698 * <p> 1699 * Description: <b>Encounter or episode associated with CareTeam</b><br> 1700 * Type: <b>reference</b><br> 1701 * Path: <b>CareTeam.context</b><br> 1702 * </p> 1703 */ 1704 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENCOUNTER); 1705 1706/** 1707 * Constant for fluent queries to be used to add include statements. Specifies 1708 * the path value of "<b>CareTeam:encounter</b>". 1709 */ 1710 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER = new ca.uhn.fhir.model.api.Include("CareTeam:encounter").toLocked(); 1711 1712 /** 1713 * Search parameter: <b>category</b> 1714 * <p> 1715 * Description: <b>Type of team</b><br> 1716 * Type: <b>token</b><br> 1717 * Path: <b>CareTeam.category</b><br> 1718 * </p> 1719 */ 1720 @SearchParamDefinition(name="category", path="CareTeam.category", description="Type of team", type="token" ) 1721 public static final String SP_CATEGORY = "category"; 1722 /** 1723 * <b>Fluent Client</b> search parameter constant for <b>category</b> 1724 * <p> 1725 * Description: <b>Type of team</b><br> 1726 * Type: <b>token</b><br> 1727 * Path: <b>CareTeam.category</b><br> 1728 * </p> 1729 */ 1730 public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CATEGORY); 1731 1732 /** 1733 * Search parameter: <b>participant</b> 1734 * <p> 1735 * Description: <b>Who is involved</b><br> 1736 * Type: <b>reference</b><br> 1737 * Path: <b>CareTeam.participant.member</b><br> 1738 * </p> 1739 */ 1740 @SearchParamDefinition(name="participant", path="CareTeam.participant.member", description="Who is involved", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") }, target={CareTeam.class, Organization.class, Patient.class, Practitioner.class, RelatedPerson.class } ) 1741 public static final String SP_PARTICIPANT = "participant"; 1742 /** 1743 * <b>Fluent Client</b> search parameter constant for <b>participant</b> 1744 * <p> 1745 * Description: <b>Who is involved</b><br> 1746 * Type: <b>reference</b><br> 1747 * Path: <b>CareTeam.participant.member</b><br> 1748 * </p> 1749 */ 1750 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARTICIPANT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PARTICIPANT); 1751 1752/** 1753 * Constant for fluent queries to be used to add include statements. Specifies 1754 * the path value of "<b>CareTeam:participant</b>". 1755 */ 1756 public static final ca.uhn.fhir.model.api.Include INCLUDE_PARTICIPANT = new ca.uhn.fhir.model.api.Include("CareTeam:participant").toLocked(); 1757 1758 /** 1759 * Search parameter: <b>status</b> 1760 * <p> 1761 * Description: <b>proposed | active | suspended | inactive | entered-in-error</b><br> 1762 * Type: <b>token</b><br> 1763 * Path: <b>CareTeam.status</b><br> 1764 * </p> 1765 */ 1766 @SearchParamDefinition(name="status", path="CareTeam.status", description="proposed | active | suspended | inactive | entered-in-error", type="token" ) 1767 public static final String SP_STATUS = "status"; 1768 /** 1769 * <b>Fluent Client</b> search parameter constant for <b>status</b> 1770 * <p> 1771 * Description: <b>proposed | active | suspended | inactive | entered-in-error</b><br> 1772 * Type: <b>token</b><br> 1773 * Path: <b>CareTeam.status</b><br> 1774 * </p> 1775 */ 1776 public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS); 1777 1778 1779} 1780