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 ca.uhn.fhir.model.api.annotation.ResourceDef; 061import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; 062import org.hl7.fhir.instance.model.api.IBaseBackboneElement; 063import ca.uhn.fhir.model.api.annotation.Child; 064import ca.uhn.fhir.model.api.annotation.ChildOrder; 065import ca.uhn.fhir.model.api.annotation.Description; 066import ca.uhn.fhir.model.api.annotation.Block; 067/** 068 * Defines an affiliation/assotiation/relationship between 2 distinct oganizations, that is not a part-of relationship/sub-division relationship. 069 */ 070@ResourceDef(name="OrganizationAffiliation", profile="http://hl7.org/fhir/StructureDefinition/OrganizationAffiliation") 071public class OrganizationAffiliation extends DomainResource { 072 073 /** 074 * Business identifiers that are specific to this role. 075 */ 076 @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 077 @Description(shortDefinition="Business identifiers that are specific to this role", formalDefinition="Business identifiers that are specific to this role." ) 078 protected List<Identifier> identifier; 079 080 /** 081 * Whether this organization affiliation record is in active use. 082 */ 083 @Child(name = "active", type = {BooleanType.class}, order=1, min=0, max=1, modifier=false, summary=true) 084 @Description(shortDefinition="Whether this organization affiliation record is in active use", formalDefinition="Whether this organization affiliation record is in active use." ) 085 protected BooleanType active; 086 087 /** 088 * The period during which the participatingOrganization is affiliated with the primary organization. 089 */ 090 @Child(name = "period", type = {Period.class}, order=2, min=0, max=1, modifier=false, summary=true) 091 @Description(shortDefinition="The period during which the participatingOrganization is affiliated with the primary organization", formalDefinition="The period during which the participatingOrganization is affiliated with the primary organization." ) 092 protected Period period; 093 094 /** 095 * Organization where the role is available (primary organization/has members). 096 */ 097 @Child(name = "organization", type = {Organization.class}, order=3, min=0, max=1, modifier=false, summary=true) 098 @Description(shortDefinition="Organization where the role is available", formalDefinition="Organization where the role is available (primary organization/has members)." ) 099 protected Reference organization; 100 101 /** 102 * The Participating Organization provides/performs the role(s) defined by the code to the Primary Organization (e.g. providing services or is a member of). 103 */ 104 @Child(name = "participatingOrganization", type = {Organization.class}, order=4, min=0, max=1, modifier=false, summary=true) 105 @Description(shortDefinition="Organization that provides/performs the role (e.g. providing services or is a member of)", formalDefinition="The Participating Organization provides/performs the role(s) defined by the code to the Primary Organization (e.g. providing services or is a member of)." ) 106 protected Reference participatingOrganization; 107 108 /** 109 * Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined). 110 */ 111 @Child(name = "network", type = {Organization.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 112 @Description(shortDefinition="Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined)", formalDefinition="Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined)." ) 113 protected List<Reference> network; 114 115 /** 116 * Definition of the role the participatingOrganization plays in the association. 117 */ 118 @Child(name = "code", type = {CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 119 @Description(shortDefinition="Definition of the role the participatingOrganization plays", formalDefinition="Definition of the role the participatingOrganization plays in the association." ) 120 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/organization-role") 121 protected List<CodeableConcept> code; 122 123 /** 124 * Specific specialty of the participatingOrganization in the context of the role. 125 */ 126 @Child(name = "specialty", type = {CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 127 @Description(shortDefinition="Specific specialty of the participatingOrganization in the context of the role", formalDefinition="Specific specialty of the participatingOrganization in the context of the role." ) 128 @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/c80-practice-codes") 129 protected List<CodeableConcept> specialty; 130 131 /** 132 * The location(s) at which the role occurs. 133 */ 134 @Child(name = "location", type = {Location.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 135 @Description(shortDefinition="The location(s) at which the role occurs", formalDefinition="The location(s) at which the role occurs." ) 136 protected List<Reference> location; 137 138 /** 139 * Healthcare services provided through the role. 140 */ 141 @Child(name = "healthcareService", type = {HealthcareService.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 142 @Description(shortDefinition="Healthcare services provided through the role", formalDefinition="Healthcare services provided through the role." ) 143 protected List<Reference> healthcareService; 144 145 /** 146 * Contact details at the participatingOrganization relevant to this Affiliation. 147 */ 148 @Child(name = "telecom", type = {ContactPoint.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true) 149 @Description(shortDefinition="Contact details at the participatingOrganization relevant to this Affiliation", formalDefinition="Contact details at the participatingOrganization relevant to this Affiliation." ) 150 protected List<ContactPoint> telecom; 151 152 /** 153 * Technical endpoints providing access to services operated for this role. 154 */ 155 @Child(name = "endpoint", type = {Endpoint.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false) 156 @Description(shortDefinition="Technical endpoints providing access to services operated for this role", formalDefinition="Technical endpoints providing access to services operated for this role." ) 157 protected List<Reference> endpoint; 158 159 private static final long serialVersionUID = 522401879L; 160 161 /** 162 * Constructor 163 */ 164 public OrganizationAffiliation() { 165 super(); 166 } 167 168 /** 169 * @return {@link #identifier} (Business identifiers that are specific to this role.) 170 */ 171 public List<Identifier> getIdentifier() { 172 if (this.identifier == null) 173 this.identifier = new ArrayList<Identifier>(); 174 return this.identifier; 175 } 176 177 /** 178 * @return Returns a reference to <code>this</code> for easy method chaining 179 */ 180 public OrganizationAffiliation setIdentifier(List<Identifier> theIdentifier) { 181 this.identifier = theIdentifier; 182 return this; 183 } 184 185 public boolean hasIdentifier() { 186 if (this.identifier == null) 187 return false; 188 for (Identifier item : this.identifier) 189 if (!item.isEmpty()) 190 return true; 191 return false; 192 } 193 194 public Identifier addIdentifier() { //3 195 Identifier t = new Identifier(); 196 if (this.identifier == null) 197 this.identifier = new ArrayList<Identifier>(); 198 this.identifier.add(t); 199 return t; 200 } 201 202 public OrganizationAffiliation addIdentifier(Identifier t) { //3 203 if (t == null) 204 return this; 205 if (this.identifier == null) 206 this.identifier = new ArrayList<Identifier>(); 207 this.identifier.add(t); 208 return this; 209 } 210 211 /** 212 * @return The first repetition of repeating field {@link #identifier}, creating it if it does not already exist 213 */ 214 public Identifier getIdentifierFirstRep() { 215 if (getIdentifier().isEmpty()) { 216 addIdentifier(); 217 } 218 return getIdentifier().get(0); 219 } 220 221 /** 222 * @return {@link #active} (Whether this organization affiliation record is in active use.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value 223 */ 224 public BooleanType getActiveElement() { 225 if (this.active == null) 226 if (Configuration.errorOnAutoCreate()) 227 throw new Error("Attempt to auto-create OrganizationAffiliation.active"); 228 else if (Configuration.doAutoCreate()) 229 this.active = new BooleanType(); // bb 230 return this.active; 231 } 232 233 public boolean hasActiveElement() { 234 return this.active != null && !this.active.isEmpty(); 235 } 236 237 public boolean hasActive() { 238 return this.active != null && !this.active.isEmpty(); 239 } 240 241 /** 242 * @param value {@link #active} (Whether this organization affiliation record is in active use.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value 243 */ 244 public OrganizationAffiliation setActiveElement(BooleanType value) { 245 this.active = value; 246 return this; 247 } 248 249 /** 250 * @return Whether this organization affiliation record is in active use. 251 */ 252 public boolean getActive() { 253 return this.active == null || this.active.isEmpty() ? false : this.active.getValue(); 254 } 255 256 /** 257 * @param value Whether this organization affiliation record is in active use. 258 */ 259 public OrganizationAffiliation setActive(boolean value) { 260 if (this.active == null) 261 this.active = new BooleanType(); 262 this.active.setValue(value); 263 return this; 264 } 265 266 /** 267 * @return {@link #period} (The period during which the participatingOrganization is affiliated with the primary organization.) 268 */ 269 public Period getPeriod() { 270 if (this.period == null) 271 if (Configuration.errorOnAutoCreate()) 272 throw new Error("Attempt to auto-create OrganizationAffiliation.period"); 273 else if (Configuration.doAutoCreate()) 274 this.period = new Period(); // cc 275 return this.period; 276 } 277 278 public boolean hasPeriod() { 279 return this.period != null && !this.period.isEmpty(); 280 } 281 282 /** 283 * @param value {@link #period} (The period during which the participatingOrganization is affiliated with the primary organization.) 284 */ 285 public OrganizationAffiliation setPeriod(Period value) { 286 this.period = value; 287 return this; 288 } 289 290 /** 291 * @return {@link #organization} (Organization where the role is available (primary organization/has members).) 292 */ 293 public Reference getOrganization() { 294 if (this.organization == null) 295 if (Configuration.errorOnAutoCreate()) 296 throw new Error("Attempt to auto-create OrganizationAffiliation.organization"); 297 else if (Configuration.doAutoCreate()) 298 this.organization = new Reference(); // cc 299 return this.organization; 300 } 301 302 public boolean hasOrganization() { 303 return this.organization != null && !this.organization.isEmpty(); 304 } 305 306 /** 307 * @param value {@link #organization} (Organization where the role is available (primary organization/has members).) 308 */ 309 public OrganizationAffiliation setOrganization(Reference value) { 310 this.organization = value; 311 return this; 312 } 313 314 /** 315 * @return {@link #participatingOrganization} (The Participating Organization provides/performs the role(s) defined by the code to the Primary Organization (e.g. providing services or is a member of).) 316 */ 317 public Reference getParticipatingOrganization() { 318 if (this.participatingOrganization == null) 319 if (Configuration.errorOnAutoCreate()) 320 throw new Error("Attempt to auto-create OrganizationAffiliation.participatingOrganization"); 321 else if (Configuration.doAutoCreate()) 322 this.participatingOrganization = new Reference(); // cc 323 return this.participatingOrganization; 324 } 325 326 public boolean hasParticipatingOrganization() { 327 return this.participatingOrganization != null && !this.participatingOrganization.isEmpty(); 328 } 329 330 /** 331 * @param value {@link #participatingOrganization} (The Participating Organization provides/performs the role(s) defined by the code to the Primary Organization (e.g. providing services or is a member of).) 332 */ 333 public OrganizationAffiliation setParticipatingOrganization(Reference value) { 334 this.participatingOrganization = value; 335 return this; 336 } 337 338 /** 339 * @return {@link #network} (Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined).) 340 */ 341 public List<Reference> getNetwork() { 342 if (this.network == null) 343 this.network = new ArrayList<Reference>(); 344 return this.network; 345 } 346 347 /** 348 * @return Returns a reference to <code>this</code> for easy method chaining 349 */ 350 public OrganizationAffiliation setNetwork(List<Reference> theNetwork) { 351 this.network = theNetwork; 352 return this; 353 } 354 355 public boolean hasNetwork() { 356 if (this.network == null) 357 return false; 358 for (Reference item : this.network) 359 if (!item.isEmpty()) 360 return true; 361 return false; 362 } 363 364 public Reference addNetwork() { //3 365 Reference t = new Reference(); 366 if (this.network == null) 367 this.network = new ArrayList<Reference>(); 368 this.network.add(t); 369 return t; 370 } 371 372 public OrganizationAffiliation addNetwork(Reference t) { //3 373 if (t == null) 374 return this; 375 if (this.network == null) 376 this.network = new ArrayList<Reference>(); 377 this.network.add(t); 378 return this; 379 } 380 381 /** 382 * @return The first repetition of repeating field {@link #network}, creating it if it does not already exist 383 */ 384 public Reference getNetworkFirstRep() { 385 if (getNetwork().isEmpty()) { 386 addNetwork(); 387 } 388 return getNetwork().get(0); 389 } 390 391 /** 392 * @return {@link #code} (Definition of the role the participatingOrganization plays in the association.) 393 */ 394 public List<CodeableConcept> getCode() { 395 if (this.code == null) 396 this.code = new ArrayList<CodeableConcept>(); 397 return this.code; 398 } 399 400 /** 401 * @return Returns a reference to <code>this</code> for easy method chaining 402 */ 403 public OrganizationAffiliation setCode(List<CodeableConcept> theCode) { 404 this.code = theCode; 405 return this; 406 } 407 408 public boolean hasCode() { 409 if (this.code == null) 410 return false; 411 for (CodeableConcept item : this.code) 412 if (!item.isEmpty()) 413 return true; 414 return false; 415 } 416 417 public CodeableConcept addCode() { //3 418 CodeableConcept t = new CodeableConcept(); 419 if (this.code == null) 420 this.code = new ArrayList<CodeableConcept>(); 421 this.code.add(t); 422 return t; 423 } 424 425 public OrganizationAffiliation addCode(CodeableConcept t) { //3 426 if (t == null) 427 return this; 428 if (this.code == null) 429 this.code = new ArrayList<CodeableConcept>(); 430 this.code.add(t); 431 return this; 432 } 433 434 /** 435 * @return The first repetition of repeating field {@link #code}, creating it if it does not already exist 436 */ 437 public CodeableConcept getCodeFirstRep() { 438 if (getCode().isEmpty()) { 439 addCode(); 440 } 441 return getCode().get(0); 442 } 443 444 /** 445 * @return {@link #specialty} (Specific specialty of the participatingOrganization in the context of the role.) 446 */ 447 public List<CodeableConcept> getSpecialty() { 448 if (this.specialty == null) 449 this.specialty = new ArrayList<CodeableConcept>(); 450 return this.specialty; 451 } 452 453 /** 454 * @return Returns a reference to <code>this</code> for easy method chaining 455 */ 456 public OrganizationAffiliation setSpecialty(List<CodeableConcept> theSpecialty) { 457 this.specialty = theSpecialty; 458 return this; 459 } 460 461 public boolean hasSpecialty() { 462 if (this.specialty == null) 463 return false; 464 for (CodeableConcept item : this.specialty) 465 if (!item.isEmpty()) 466 return true; 467 return false; 468 } 469 470 public CodeableConcept addSpecialty() { //3 471 CodeableConcept t = new CodeableConcept(); 472 if (this.specialty == null) 473 this.specialty = new ArrayList<CodeableConcept>(); 474 this.specialty.add(t); 475 return t; 476 } 477 478 public OrganizationAffiliation addSpecialty(CodeableConcept t) { //3 479 if (t == null) 480 return this; 481 if (this.specialty == null) 482 this.specialty = new ArrayList<CodeableConcept>(); 483 this.specialty.add(t); 484 return this; 485 } 486 487 /** 488 * @return The first repetition of repeating field {@link #specialty}, creating it if it does not already exist 489 */ 490 public CodeableConcept getSpecialtyFirstRep() { 491 if (getSpecialty().isEmpty()) { 492 addSpecialty(); 493 } 494 return getSpecialty().get(0); 495 } 496 497 /** 498 * @return {@link #location} (The location(s) at which the role occurs.) 499 */ 500 public List<Reference> getLocation() { 501 if (this.location == null) 502 this.location = new ArrayList<Reference>(); 503 return this.location; 504 } 505 506 /** 507 * @return Returns a reference to <code>this</code> for easy method chaining 508 */ 509 public OrganizationAffiliation setLocation(List<Reference> theLocation) { 510 this.location = theLocation; 511 return this; 512 } 513 514 public boolean hasLocation() { 515 if (this.location == null) 516 return false; 517 for (Reference item : this.location) 518 if (!item.isEmpty()) 519 return true; 520 return false; 521 } 522 523 public Reference addLocation() { //3 524 Reference t = new Reference(); 525 if (this.location == null) 526 this.location = new ArrayList<Reference>(); 527 this.location.add(t); 528 return t; 529 } 530 531 public OrganizationAffiliation addLocation(Reference t) { //3 532 if (t == null) 533 return this; 534 if (this.location == null) 535 this.location = new ArrayList<Reference>(); 536 this.location.add(t); 537 return this; 538 } 539 540 /** 541 * @return The first repetition of repeating field {@link #location}, creating it if it does not already exist 542 */ 543 public Reference getLocationFirstRep() { 544 if (getLocation().isEmpty()) { 545 addLocation(); 546 } 547 return getLocation().get(0); 548 } 549 550 /** 551 * @return {@link #healthcareService} (Healthcare services provided through the role.) 552 */ 553 public List<Reference> getHealthcareService() { 554 if (this.healthcareService == null) 555 this.healthcareService = new ArrayList<Reference>(); 556 return this.healthcareService; 557 } 558 559 /** 560 * @return Returns a reference to <code>this</code> for easy method chaining 561 */ 562 public OrganizationAffiliation setHealthcareService(List<Reference> theHealthcareService) { 563 this.healthcareService = theHealthcareService; 564 return this; 565 } 566 567 public boolean hasHealthcareService() { 568 if (this.healthcareService == null) 569 return false; 570 for (Reference item : this.healthcareService) 571 if (!item.isEmpty()) 572 return true; 573 return false; 574 } 575 576 public Reference addHealthcareService() { //3 577 Reference t = new Reference(); 578 if (this.healthcareService == null) 579 this.healthcareService = new ArrayList<Reference>(); 580 this.healthcareService.add(t); 581 return t; 582 } 583 584 public OrganizationAffiliation addHealthcareService(Reference t) { //3 585 if (t == null) 586 return this; 587 if (this.healthcareService == null) 588 this.healthcareService = new ArrayList<Reference>(); 589 this.healthcareService.add(t); 590 return this; 591 } 592 593 /** 594 * @return The first repetition of repeating field {@link #healthcareService}, creating it if it does not already exist 595 */ 596 public Reference getHealthcareServiceFirstRep() { 597 if (getHealthcareService().isEmpty()) { 598 addHealthcareService(); 599 } 600 return getHealthcareService().get(0); 601 } 602 603 /** 604 * @return {@link #telecom} (Contact details at the participatingOrganization relevant to this Affiliation.) 605 */ 606 public List<ContactPoint> getTelecom() { 607 if (this.telecom == null) 608 this.telecom = new ArrayList<ContactPoint>(); 609 return this.telecom; 610 } 611 612 /** 613 * @return Returns a reference to <code>this</code> for easy method chaining 614 */ 615 public OrganizationAffiliation setTelecom(List<ContactPoint> theTelecom) { 616 this.telecom = theTelecom; 617 return this; 618 } 619 620 public boolean hasTelecom() { 621 if (this.telecom == null) 622 return false; 623 for (ContactPoint item : this.telecom) 624 if (!item.isEmpty()) 625 return true; 626 return false; 627 } 628 629 public ContactPoint addTelecom() { //3 630 ContactPoint t = new ContactPoint(); 631 if (this.telecom == null) 632 this.telecom = new ArrayList<ContactPoint>(); 633 this.telecom.add(t); 634 return t; 635 } 636 637 public OrganizationAffiliation addTelecom(ContactPoint t) { //3 638 if (t == null) 639 return this; 640 if (this.telecom == null) 641 this.telecom = new ArrayList<ContactPoint>(); 642 this.telecom.add(t); 643 return this; 644 } 645 646 /** 647 * @return The first repetition of repeating field {@link #telecom}, creating it if it does not already exist 648 */ 649 public ContactPoint getTelecomFirstRep() { 650 if (getTelecom().isEmpty()) { 651 addTelecom(); 652 } 653 return getTelecom().get(0); 654 } 655 656 /** 657 * @return {@link #endpoint} (Technical endpoints providing access to services operated for this role.) 658 */ 659 public List<Reference> getEndpoint() { 660 if (this.endpoint == null) 661 this.endpoint = new ArrayList<Reference>(); 662 return this.endpoint; 663 } 664 665 /** 666 * @return Returns a reference to <code>this</code> for easy method chaining 667 */ 668 public OrganizationAffiliation setEndpoint(List<Reference> theEndpoint) { 669 this.endpoint = theEndpoint; 670 return this; 671 } 672 673 public boolean hasEndpoint() { 674 if (this.endpoint == null) 675 return false; 676 for (Reference item : this.endpoint) 677 if (!item.isEmpty()) 678 return true; 679 return false; 680 } 681 682 public Reference addEndpoint() { //3 683 Reference t = new Reference(); 684 if (this.endpoint == null) 685 this.endpoint = new ArrayList<Reference>(); 686 this.endpoint.add(t); 687 return t; 688 } 689 690 public OrganizationAffiliation addEndpoint(Reference t) { //3 691 if (t == null) 692 return this; 693 if (this.endpoint == null) 694 this.endpoint = new ArrayList<Reference>(); 695 this.endpoint.add(t); 696 return this; 697 } 698 699 /** 700 * @return The first repetition of repeating field {@link #endpoint}, creating it if it does not already exist 701 */ 702 public Reference getEndpointFirstRep() { 703 if (getEndpoint().isEmpty()) { 704 addEndpoint(); 705 } 706 return getEndpoint().get(0); 707 } 708 709 protected void listChildren(List<Property> children) { 710 super.listChildren(children); 711 children.add(new Property("identifier", "Identifier", "Business identifiers that are specific to this role.", 0, java.lang.Integer.MAX_VALUE, identifier)); 712 children.add(new Property("active", "boolean", "Whether this organization affiliation record is in active use.", 0, 1, active)); 713 children.add(new Property("period", "Period", "The period during which the participatingOrganization is affiliated with the primary organization.", 0, 1, period)); 714 children.add(new Property("organization", "Reference(Organization)", "Organization where the role is available (primary organization/has members).", 0, 1, organization)); 715 children.add(new Property("participatingOrganization", "Reference(Organization)", "The Participating Organization provides/performs the role(s) defined by the code to the Primary Organization (e.g. providing services or is a member of).", 0, 1, participatingOrganization)); 716 children.add(new Property("network", "Reference(Organization)", "Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined).", 0, java.lang.Integer.MAX_VALUE, network)); 717 children.add(new Property("code", "CodeableConcept", "Definition of the role the participatingOrganization plays in the association.", 0, java.lang.Integer.MAX_VALUE, code)); 718 children.add(new Property("specialty", "CodeableConcept", "Specific specialty of the participatingOrganization in the context of the role.", 0, java.lang.Integer.MAX_VALUE, specialty)); 719 children.add(new Property("location", "Reference(Location)", "The location(s) at which the role occurs.", 0, java.lang.Integer.MAX_VALUE, location)); 720 children.add(new Property("healthcareService", "Reference(HealthcareService)", "Healthcare services provided through the role.", 0, java.lang.Integer.MAX_VALUE, healthcareService)); 721 children.add(new Property("telecom", "ContactPoint", "Contact details at the participatingOrganization relevant to this Affiliation.", 0, java.lang.Integer.MAX_VALUE, telecom)); 722 children.add(new Property("endpoint", "Reference(Endpoint)", "Technical endpoints providing access to services operated for this role.", 0, java.lang.Integer.MAX_VALUE, endpoint)); 723 } 724 725 @Override 726 public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException { 727 switch (_hash) { 728 case -1618432855: /*identifier*/ return new Property("identifier", "Identifier", "Business identifiers that are specific to this role.", 0, java.lang.Integer.MAX_VALUE, identifier); 729 case -1422950650: /*active*/ return new Property("active", "boolean", "Whether this organization affiliation record is in active use.", 0, 1, active); 730 case -991726143: /*period*/ return new Property("period", "Period", "The period during which the participatingOrganization is affiliated with the primary organization.", 0, 1, period); 731 case 1178922291: /*organization*/ return new Property("organization", "Reference(Organization)", "Organization where the role is available (primary organization/has members).", 0, 1, organization); 732 case 1593310702: /*participatingOrganization*/ return new Property("participatingOrganization", "Reference(Organization)", "The Participating Organization provides/performs the role(s) defined by the code to the Primary Organization (e.g. providing services or is a member of).", 0, 1, participatingOrganization); 733 case 1843485230: /*network*/ return new Property("network", "Reference(Organization)", "Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined).", 0, java.lang.Integer.MAX_VALUE, network); 734 case 3059181: /*code*/ return new Property("code", "CodeableConcept", "Definition of the role the participatingOrganization plays in the association.", 0, java.lang.Integer.MAX_VALUE, code); 735 case -1694759682: /*specialty*/ return new Property("specialty", "CodeableConcept", "Specific specialty of the participatingOrganization in the context of the role.", 0, java.lang.Integer.MAX_VALUE, specialty); 736 case 1901043637: /*location*/ return new Property("location", "Reference(Location)", "The location(s) at which the role occurs.", 0, java.lang.Integer.MAX_VALUE, location); 737 case 1289661064: /*healthcareService*/ return new Property("healthcareService", "Reference(HealthcareService)", "Healthcare services provided through the role.", 0, java.lang.Integer.MAX_VALUE, healthcareService); 738 case -1429363305: /*telecom*/ return new Property("telecom", "ContactPoint", "Contact details at the participatingOrganization relevant to this Affiliation.", 0, java.lang.Integer.MAX_VALUE, telecom); 739 case 1741102485: /*endpoint*/ return new Property("endpoint", "Reference(Endpoint)", "Technical endpoints providing access to services operated for this role.", 0, java.lang.Integer.MAX_VALUE, endpoint); 740 default: return super.getNamedProperty(_hash, _name, _checkValid); 741 } 742 743 } 744 745 @Override 746 public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException { 747 switch (hash) { 748 case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier 749 case -1422950650: /*active*/ return this.active == null ? new Base[0] : new Base[] {this.active}; // BooleanType 750 case -991726143: /*period*/ return this.period == null ? new Base[0] : new Base[] {this.period}; // Period 751 case 1178922291: /*organization*/ return this.organization == null ? new Base[0] : new Base[] {this.organization}; // Reference 752 case 1593310702: /*participatingOrganization*/ return this.participatingOrganization == null ? new Base[0] : new Base[] {this.participatingOrganization}; // Reference 753 case 1843485230: /*network*/ return this.network == null ? new Base[0] : this.network.toArray(new Base[this.network.size()]); // Reference 754 case 3059181: /*code*/ return this.code == null ? new Base[0] : this.code.toArray(new Base[this.code.size()]); // CodeableConcept 755 case -1694759682: /*specialty*/ return this.specialty == null ? new Base[0] : this.specialty.toArray(new Base[this.specialty.size()]); // CodeableConcept 756 case 1901043637: /*location*/ return this.location == null ? new Base[0] : this.location.toArray(new Base[this.location.size()]); // Reference 757 case 1289661064: /*healthcareService*/ return this.healthcareService == null ? new Base[0] : this.healthcareService.toArray(new Base[this.healthcareService.size()]); // Reference 758 case -1429363305: /*telecom*/ return this.telecom == null ? new Base[0] : this.telecom.toArray(new Base[this.telecom.size()]); // ContactPoint 759 case 1741102485: /*endpoint*/ return this.endpoint == null ? new Base[0] : this.endpoint.toArray(new Base[this.endpoint.size()]); // Reference 760 default: return super.getProperty(hash, name, checkValid); 761 } 762 763 } 764 765 @Override 766 public Base setProperty(int hash, String name, Base value) throws FHIRException { 767 switch (hash) { 768 case -1618432855: // identifier 769 this.getIdentifier().add(castToIdentifier(value)); // Identifier 770 return value; 771 case -1422950650: // active 772 this.active = castToBoolean(value); // BooleanType 773 return value; 774 case -991726143: // period 775 this.period = castToPeriod(value); // Period 776 return value; 777 case 1178922291: // organization 778 this.organization = castToReference(value); // Reference 779 return value; 780 case 1593310702: // participatingOrganization 781 this.participatingOrganization = castToReference(value); // Reference 782 return value; 783 case 1843485230: // network 784 this.getNetwork().add(castToReference(value)); // Reference 785 return value; 786 case 3059181: // code 787 this.getCode().add(castToCodeableConcept(value)); // CodeableConcept 788 return value; 789 case -1694759682: // specialty 790 this.getSpecialty().add(castToCodeableConcept(value)); // CodeableConcept 791 return value; 792 case 1901043637: // location 793 this.getLocation().add(castToReference(value)); // Reference 794 return value; 795 case 1289661064: // healthcareService 796 this.getHealthcareService().add(castToReference(value)); // Reference 797 return value; 798 case -1429363305: // telecom 799 this.getTelecom().add(castToContactPoint(value)); // ContactPoint 800 return value; 801 case 1741102485: // endpoint 802 this.getEndpoint().add(castToReference(value)); // Reference 803 return value; 804 default: return super.setProperty(hash, name, value); 805 } 806 807 } 808 809 @Override 810 public Base setProperty(String name, Base value) throws FHIRException { 811 if (name.equals("identifier")) { 812 this.getIdentifier().add(castToIdentifier(value)); 813 } else if (name.equals("active")) { 814 this.active = castToBoolean(value); // BooleanType 815 } else if (name.equals("period")) { 816 this.period = castToPeriod(value); // Period 817 } else if (name.equals("organization")) { 818 this.organization = castToReference(value); // Reference 819 } else if (name.equals("participatingOrganization")) { 820 this.participatingOrganization = castToReference(value); // Reference 821 } else if (name.equals("network")) { 822 this.getNetwork().add(castToReference(value)); 823 } else if (name.equals("code")) { 824 this.getCode().add(castToCodeableConcept(value)); 825 } else if (name.equals("specialty")) { 826 this.getSpecialty().add(castToCodeableConcept(value)); 827 } else if (name.equals("location")) { 828 this.getLocation().add(castToReference(value)); 829 } else if (name.equals("healthcareService")) { 830 this.getHealthcareService().add(castToReference(value)); 831 } else if (name.equals("telecom")) { 832 this.getTelecom().add(castToContactPoint(value)); 833 } else if (name.equals("endpoint")) { 834 this.getEndpoint().add(castToReference(value)); 835 } else 836 return super.setProperty(name, value); 837 return value; 838 } 839 840 @Override 841 public Base makeProperty(int hash, String name) throws FHIRException { 842 switch (hash) { 843 case -1618432855: return addIdentifier(); 844 case -1422950650: return getActiveElement(); 845 case -991726143: return getPeriod(); 846 case 1178922291: return getOrganization(); 847 case 1593310702: return getParticipatingOrganization(); 848 case 1843485230: return addNetwork(); 849 case 3059181: return addCode(); 850 case -1694759682: return addSpecialty(); 851 case 1901043637: return addLocation(); 852 case 1289661064: return addHealthcareService(); 853 case -1429363305: return addTelecom(); 854 case 1741102485: return addEndpoint(); 855 default: return super.makeProperty(hash, name); 856 } 857 858 } 859 860 @Override 861 public String[] getTypesForProperty(int hash, String name) throws FHIRException { 862 switch (hash) { 863 case -1618432855: /*identifier*/ return new String[] {"Identifier"}; 864 case -1422950650: /*active*/ return new String[] {"boolean"}; 865 case -991726143: /*period*/ return new String[] {"Period"}; 866 case 1178922291: /*organization*/ return new String[] {"Reference"}; 867 case 1593310702: /*participatingOrganization*/ return new String[] {"Reference"}; 868 case 1843485230: /*network*/ return new String[] {"Reference"}; 869 case 3059181: /*code*/ return new String[] {"CodeableConcept"}; 870 case -1694759682: /*specialty*/ return new String[] {"CodeableConcept"}; 871 case 1901043637: /*location*/ return new String[] {"Reference"}; 872 case 1289661064: /*healthcareService*/ return new String[] {"Reference"}; 873 case -1429363305: /*telecom*/ return new String[] {"ContactPoint"}; 874 case 1741102485: /*endpoint*/ return new String[] {"Reference"}; 875 default: return super.getTypesForProperty(hash, name); 876 } 877 878 } 879 880 @Override 881 public Base addChild(String name) throws FHIRException { 882 if (name.equals("identifier")) { 883 return addIdentifier(); 884 } 885 else if (name.equals("active")) { 886 throw new FHIRException("Cannot call addChild on a primitive type OrganizationAffiliation.active"); 887 } 888 else if (name.equals("period")) { 889 this.period = new Period(); 890 return this.period; 891 } 892 else if (name.equals("organization")) { 893 this.organization = new Reference(); 894 return this.organization; 895 } 896 else if (name.equals("participatingOrganization")) { 897 this.participatingOrganization = new Reference(); 898 return this.participatingOrganization; 899 } 900 else if (name.equals("network")) { 901 return addNetwork(); 902 } 903 else if (name.equals("code")) { 904 return addCode(); 905 } 906 else if (name.equals("specialty")) { 907 return addSpecialty(); 908 } 909 else if (name.equals("location")) { 910 return addLocation(); 911 } 912 else if (name.equals("healthcareService")) { 913 return addHealthcareService(); 914 } 915 else if (name.equals("telecom")) { 916 return addTelecom(); 917 } 918 else if (name.equals("endpoint")) { 919 return addEndpoint(); 920 } 921 else 922 return super.addChild(name); 923 } 924 925 public String fhirType() { 926 return "OrganizationAffiliation"; 927 928 } 929 930 public OrganizationAffiliation copy() { 931 OrganizationAffiliation dst = new OrganizationAffiliation(); 932 copyValues(dst); 933 return dst; 934 } 935 936 public void copyValues(OrganizationAffiliation dst) { 937 super.copyValues(dst); 938 if (identifier != null) { 939 dst.identifier = new ArrayList<Identifier>(); 940 for (Identifier i : identifier) 941 dst.identifier.add(i.copy()); 942 }; 943 dst.active = active == null ? null : active.copy(); 944 dst.period = period == null ? null : period.copy(); 945 dst.organization = organization == null ? null : organization.copy(); 946 dst.participatingOrganization = participatingOrganization == null ? null : participatingOrganization.copy(); 947 if (network != null) { 948 dst.network = new ArrayList<Reference>(); 949 for (Reference i : network) 950 dst.network.add(i.copy()); 951 }; 952 if (code != null) { 953 dst.code = new ArrayList<CodeableConcept>(); 954 for (CodeableConcept i : code) 955 dst.code.add(i.copy()); 956 }; 957 if (specialty != null) { 958 dst.specialty = new ArrayList<CodeableConcept>(); 959 for (CodeableConcept i : specialty) 960 dst.specialty.add(i.copy()); 961 }; 962 if (location != null) { 963 dst.location = new ArrayList<Reference>(); 964 for (Reference i : location) 965 dst.location.add(i.copy()); 966 }; 967 if (healthcareService != null) { 968 dst.healthcareService = new ArrayList<Reference>(); 969 for (Reference i : healthcareService) 970 dst.healthcareService.add(i.copy()); 971 }; 972 if (telecom != null) { 973 dst.telecom = new ArrayList<ContactPoint>(); 974 for (ContactPoint i : telecom) 975 dst.telecom.add(i.copy()); 976 }; 977 if (endpoint != null) { 978 dst.endpoint = new ArrayList<Reference>(); 979 for (Reference i : endpoint) 980 dst.endpoint.add(i.copy()); 981 }; 982 } 983 984 protected OrganizationAffiliation typedCopy() { 985 return copy(); 986 } 987 988 @Override 989 public boolean equalsDeep(Base other_) { 990 if (!super.equalsDeep(other_)) 991 return false; 992 if (!(other_ instanceof OrganizationAffiliation)) 993 return false; 994 OrganizationAffiliation o = (OrganizationAffiliation) other_; 995 return compareDeep(identifier, o.identifier, true) && compareDeep(active, o.active, true) && compareDeep(period, o.period, true) 996 && compareDeep(organization, o.organization, true) && compareDeep(participatingOrganization, o.participatingOrganization, true) 997 && compareDeep(network, o.network, true) && compareDeep(code, o.code, true) && compareDeep(specialty, o.specialty, true) 998 && compareDeep(location, o.location, true) && compareDeep(healthcareService, o.healthcareService, true) 999 && compareDeep(telecom, o.telecom, true) && compareDeep(endpoint, o.endpoint, true); 1000 } 1001 1002 @Override 1003 public boolean equalsShallow(Base other_) { 1004 if (!super.equalsShallow(other_)) 1005 return false; 1006 if (!(other_ instanceof OrganizationAffiliation)) 1007 return false; 1008 OrganizationAffiliation o = (OrganizationAffiliation) other_; 1009 return compareValues(active, o.active, true); 1010 } 1011 1012 public boolean isEmpty() { 1013 return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, active, period 1014 , organization, participatingOrganization, network, code, specialty, location, healthcareService 1015 , telecom, endpoint); 1016 } 1017 1018 @Override 1019 public ResourceType getResourceType() { 1020 return ResourceType.OrganizationAffiliation; 1021 } 1022 1023 /** 1024 * Search parameter: <b>date</b> 1025 * <p> 1026 * Description: <b>The period during which the participatingOrganization is affiliated with the primary organization</b><br> 1027 * Type: <b>date</b><br> 1028 * Path: <b>OrganizationAffiliation.period</b><br> 1029 * </p> 1030 */ 1031 @SearchParamDefinition(name="date", path="OrganizationAffiliation.period", description="The period during which the participatingOrganization is affiliated with the primary organization", type="date" ) 1032 public static final String SP_DATE = "date"; 1033 /** 1034 * <b>Fluent Client</b> search parameter constant for <b>date</b> 1035 * <p> 1036 * Description: <b>The period during which the participatingOrganization is affiliated with the primary organization</b><br> 1037 * Type: <b>date</b><br> 1038 * Path: <b>OrganizationAffiliation.period</b><br> 1039 * </p> 1040 */ 1041 public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE); 1042 1043 /** 1044 * Search parameter: <b>identifier</b> 1045 * <p> 1046 * Description: <b>An organization affiliation's Identifier</b><br> 1047 * Type: <b>token</b><br> 1048 * Path: <b>OrganizationAffiliation.identifier</b><br> 1049 * </p> 1050 */ 1051 @SearchParamDefinition(name="identifier", path="OrganizationAffiliation.identifier", description="An organization affiliation's Identifier", type="token" ) 1052 public static final String SP_IDENTIFIER = "identifier"; 1053 /** 1054 * <b>Fluent Client</b> search parameter constant for <b>identifier</b> 1055 * <p> 1056 * Description: <b>An organization affiliation's Identifier</b><br> 1057 * Type: <b>token</b><br> 1058 * Path: <b>OrganizationAffiliation.identifier</b><br> 1059 * </p> 1060 */ 1061 public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER); 1062 1063 /** 1064 * Search parameter: <b>specialty</b> 1065 * <p> 1066 * Description: <b>Specific specialty of the participatingOrganization in the context of the role</b><br> 1067 * Type: <b>token</b><br> 1068 * Path: <b>OrganizationAffiliation.specialty</b><br> 1069 * </p> 1070 */ 1071 @SearchParamDefinition(name="specialty", path="OrganizationAffiliation.specialty", description="Specific specialty of the participatingOrganization in the context of the role", type="token" ) 1072 public static final String SP_SPECIALTY = "specialty"; 1073 /** 1074 * <b>Fluent Client</b> search parameter constant for <b>specialty</b> 1075 * <p> 1076 * Description: <b>Specific specialty of the participatingOrganization in the context of the role</b><br> 1077 * Type: <b>token</b><br> 1078 * Path: <b>OrganizationAffiliation.specialty</b><br> 1079 * </p> 1080 */ 1081 public static final ca.uhn.fhir.rest.gclient.TokenClientParam SPECIALTY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SPECIALTY); 1082 1083 /** 1084 * Search parameter: <b>role</b> 1085 * <p> 1086 * Description: <b>Definition of the role the participatingOrganization plays</b><br> 1087 * Type: <b>token</b><br> 1088 * Path: <b>OrganizationAffiliation.code</b><br> 1089 * </p> 1090 */ 1091 @SearchParamDefinition(name="role", path="OrganizationAffiliation.code", description="Definition of the role the participatingOrganization plays", type="token" ) 1092 public static final String SP_ROLE = "role"; 1093 /** 1094 * <b>Fluent Client</b> search parameter constant for <b>role</b> 1095 * <p> 1096 * Description: <b>Definition of the role the participatingOrganization plays</b><br> 1097 * Type: <b>token</b><br> 1098 * Path: <b>OrganizationAffiliation.code</b><br> 1099 * </p> 1100 */ 1101 public static final ca.uhn.fhir.rest.gclient.TokenClientParam ROLE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ROLE); 1102 1103 /** 1104 * Search parameter: <b>active</b> 1105 * <p> 1106 * Description: <b>Whether this organization affiliation record is in active use</b><br> 1107 * Type: <b>token</b><br> 1108 * Path: <b>OrganizationAffiliation.active</b><br> 1109 * </p> 1110 */ 1111 @SearchParamDefinition(name="active", path="OrganizationAffiliation.active", description="Whether this organization affiliation record is in active use", type="token" ) 1112 public static final String SP_ACTIVE = "active"; 1113 /** 1114 * <b>Fluent Client</b> search parameter constant for <b>active</b> 1115 * <p> 1116 * Description: <b>Whether this organization affiliation record is in active use</b><br> 1117 * Type: <b>token</b><br> 1118 * Path: <b>OrganizationAffiliation.active</b><br> 1119 * </p> 1120 */ 1121 public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVE); 1122 1123 /** 1124 * Search parameter: <b>primary-organization</b> 1125 * <p> 1126 * Description: <b>The organization that receives the services from the participating organization</b><br> 1127 * Type: <b>reference</b><br> 1128 * Path: <b>OrganizationAffiliation.organization</b><br> 1129 * </p> 1130 */ 1131 @SearchParamDefinition(name="primary-organization", path="OrganizationAffiliation.organization", description="The organization that receives the services from the participating organization", type="reference", target={Organization.class } ) 1132 public static final String SP_PRIMARY_ORGANIZATION = "primary-organization"; 1133 /** 1134 * <b>Fluent Client</b> search parameter constant for <b>primary-organization</b> 1135 * <p> 1136 * Description: <b>The organization that receives the services from the participating organization</b><br> 1137 * Type: <b>reference</b><br> 1138 * Path: <b>OrganizationAffiliation.organization</b><br> 1139 * </p> 1140 */ 1141 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRIMARY_ORGANIZATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PRIMARY_ORGANIZATION); 1142 1143/** 1144 * Constant for fluent queries to be used to add include statements. Specifies 1145 * the path value of "<b>OrganizationAffiliation:primary-organization</b>". 1146 */ 1147 public static final ca.uhn.fhir.model.api.Include INCLUDE_PRIMARY_ORGANIZATION = new ca.uhn.fhir.model.api.Include("OrganizationAffiliation:primary-organization").toLocked(); 1148 1149 /** 1150 * Search parameter: <b>network</b> 1151 * <p> 1152 * Description: <b>Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined)</b><br> 1153 * Type: <b>reference</b><br> 1154 * Path: <b>OrganizationAffiliation.network</b><br> 1155 * </p> 1156 */ 1157 @SearchParamDefinition(name="network", path="OrganizationAffiliation.network", description="Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined)", type="reference", target={Organization.class } ) 1158 public static final String SP_NETWORK = "network"; 1159 /** 1160 * <b>Fluent Client</b> search parameter constant for <b>network</b> 1161 * <p> 1162 * Description: <b>Health insurance provider network in which the participatingOrganization provides the role's services (if defined) at the indicated locations (if defined)</b><br> 1163 * Type: <b>reference</b><br> 1164 * Path: <b>OrganizationAffiliation.network</b><br> 1165 * </p> 1166 */ 1167 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam NETWORK = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_NETWORK); 1168 1169/** 1170 * Constant for fluent queries to be used to add include statements. Specifies 1171 * the path value of "<b>OrganizationAffiliation:network</b>". 1172 */ 1173 public static final ca.uhn.fhir.model.api.Include INCLUDE_NETWORK = new ca.uhn.fhir.model.api.Include("OrganizationAffiliation:network").toLocked(); 1174 1175 /** 1176 * Search parameter: <b>endpoint</b> 1177 * <p> 1178 * Description: <b>Technical endpoints providing access to services operated for this role</b><br> 1179 * Type: <b>reference</b><br> 1180 * Path: <b>OrganizationAffiliation.endpoint</b><br> 1181 * </p> 1182 */ 1183 @SearchParamDefinition(name="endpoint", path="OrganizationAffiliation.endpoint", description="Technical endpoints providing access to services operated for this role", type="reference", target={Endpoint.class } ) 1184 public static final String SP_ENDPOINT = "endpoint"; 1185 /** 1186 * <b>Fluent Client</b> search parameter constant for <b>endpoint</b> 1187 * <p> 1188 * Description: <b>Technical endpoints providing access to services operated for this role</b><br> 1189 * Type: <b>reference</b><br> 1190 * Path: <b>OrganizationAffiliation.endpoint</b><br> 1191 * </p> 1192 */ 1193 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENDPOINT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENDPOINT); 1194 1195/** 1196 * Constant for fluent queries to be used to add include statements. Specifies 1197 * the path value of "<b>OrganizationAffiliation:endpoint</b>". 1198 */ 1199 public static final ca.uhn.fhir.model.api.Include INCLUDE_ENDPOINT = new ca.uhn.fhir.model.api.Include("OrganizationAffiliation:endpoint").toLocked(); 1200 1201 /** 1202 * Search parameter: <b>phone</b> 1203 * <p> 1204 * Description: <b>A value in a phone contact</b><br> 1205 * Type: <b>token</b><br> 1206 * Path: <b>OrganizationAffiliation.telecom(system=phone)</b><br> 1207 * </p> 1208 */ 1209 @SearchParamDefinition(name="phone", path="OrganizationAffiliation.telecom.where(system='phone')", description="A value in a phone contact", type="token" ) 1210 public static final String SP_PHONE = "phone"; 1211 /** 1212 * <b>Fluent Client</b> search parameter constant for <b>phone</b> 1213 * <p> 1214 * Description: <b>A value in a phone contact</b><br> 1215 * Type: <b>token</b><br> 1216 * Path: <b>OrganizationAffiliation.telecom(system=phone)</b><br> 1217 * </p> 1218 */ 1219 public static final ca.uhn.fhir.rest.gclient.TokenClientParam PHONE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PHONE); 1220 1221 /** 1222 * Search parameter: <b>service</b> 1223 * <p> 1224 * Description: <b>Healthcare services provided through the role</b><br> 1225 * Type: <b>reference</b><br> 1226 * Path: <b>OrganizationAffiliation.healthcareService</b><br> 1227 * </p> 1228 */ 1229 @SearchParamDefinition(name="service", path="OrganizationAffiliation.healthcareService", description="Healthcare services provided through the role", type="reference", target={HealthcareService.class } ) 1230 public static final String SP_SERVICE = "service"; 1231 /** 1232 * <b>Fluent Client</b> search parameter constant for <b>service</b> 1233 * <p> 1234 * Description: <b>Healthcare services provided through the role</b><br> 1235 * Type: <b>reference</b><br> 1236 * Path: <b>OrganizationAffiliation.healthcareService</b><br> 1237 * </p> 1238 */ 1239 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SERVICE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SERVICE); 1240 1241/** 1242 * Constant for fluent queries to be used to add include statements. Specifies 1243 * the path value of "<b>OrganizationAffiliation:service</b>". 1244 */ 1245 public static final ca.uhn.fhir.model.api.Include INCLUDE_SERVICE = new ca.uhn.fhir.model.api.Include("OrganizationAffiliation:service").toLocked(); 1246 1247 /** 1248 * Search parameter: <b>participating-organization</b> 1249 * <p> 1250 * Description: <b>The organization that provides services to the primary organization</b><br> 1251 * Type: <b>reference</b><br> 1252 * Path: <b>OrganizationAffiliation.participatingOrganization</b><br> 1253 * </p> 1254 */ 1255 @SearchParamDefinition(name="participating-organization", path="OrganizationAffiliation.participatingOrganization", description="The organization that provides services to the primary organization", type="reference", target={Organization.class } ) 1256 public static final String SP_PARTICIPATING_ORGANIZATION = "participating-organization"; 1257 /** 1258 * <b>Fluent Client</b> search parameter constant for <b>participating-organization</b> 1259 * <p> 1260 * Description: <b>The organization that provides services to the primary organization</b><br> 1261 * Type: <b>reference</b><br> 1262 * Path: <b>OrganizationAffiliation.participatingOrganization</b><br> 1263 * </p> 1264 */ 1265 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARTICIPATING_ORGANIZATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PARTICIPATING_ORGANIZATION); 1266 1267/** 1268 * Constant for fluent queries to be used to add include statements. Specifies 1269 * the path value of "<b>OrganizationAffiliation:participating-organization</b>". 1270 */ 1271 public static final ca.uhn.fhir.model.api.Include INCLUDE_PARTICIPATING_ORGANIZATION = new ca.uhn.fhir.model.api.Include("OrganizationAffiliation:participating-organization").toLocked(); 1272 1273 /** 1274 * Search parameter: <b>telecom</b> 1275 * <p> 1276 * Description: <b>The value in any kind of contact</b><br> 1277 * Type: <b>token</b><br> 1278 * Path: <b>OrganizationAffiliation.telecom</b><br> 1279 * </p> 1280 */ 1281 @SearchParamDefinition(name="telecom", path="OrganizationAffiliation.telecom", description="The value in any kind of contact", type="token" ) 1282 public static final String SP_TELECOM = "telecom"; 1283 /** 1284 * <b>Fluent Client</b> search parameter constant for <b>telecom</b> 1285 * <p> 1286 * Description: <b>The value in any kind of contact</b><br> 1287 * Type: <b>token</b><br> 1288 * Path: <b>OrganizationAffiliation.telecom</b><br> 1289 * </p> 1290 */ 1291 public static final ca.uhn.fhir.rest.gclient.TokenClientParam TELECOM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TELECOM); 1292 1293 /** 1294 * Search parameter: <b>location</b> 1295 * <p> 1296 * Description: <b>The location(s) at which the role occurs</b><br> 1297 * Type: <b>reference</b><br> 1298 * Path: <b>OrganizationAffiliation.location</b><br> 1299 * </p> 1300 */ 1301 @SearchParamDefinition(name="location", path="OrganizationAffiliation.location", description="The location(s) at which the role occurs", type="reference", target={Location.class } ) 1302 public static final String SP_LOCATION = "location"; 1303 /** 1304 * <b>Fluent Client</b> search parameter constant for <b>location</b> 1305 * <p> 1306 * Description: <b>The location(s) at which the role occurs</b><br> 1307 * Type: <b>reference</b><br> 1308 * Path: <b>OrganizationAffiliation.location</b><br> 1309 * </p> 1310 */ 1311 public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam LOCATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_LOCATION); 1312 1313/** 1314 * Constant for fluent queries to be used to add include statements. Specifies 1315 * the path value of "<b>OrganizationAffiliation:location</b>". 1316 */ 1317 public static final ca.uhn.fhir.model.api.Include INCLUDE_LOCATION = new ca.uhn.fhir.model.api.Include("OrganizationAffiliation:location").toLocked(); 1318 1319 /** 1320 * Search parameter: <b>email</b> 1321 * <p> 1322 * Description: <b>A value in an email contact</b><br> 1323 * Type: <b>token</b><br> 1324 * Path: <b>OrganizationAffiliation.telecom(system=email)</b><br> 1325 * </p> 1326 */ 1327 @SearchParamDefinition(name="email", path="OrganizationAffiliation.telecom.where(system='email')", description="A value in an email contact", type="token" ) 1328 public static final String SP_EMAIL = "email"; 1329 /** 1330 * <b>Fluent Client</b> search parameter constant for <b>email</b> 1331 * <p> 1332 * Description: <b>A value in an email contact</b><br> 1333 * Type: <b>token</b><br> 1334 * Path: <b>OrganizationAffiliation.telecom(system=email)</b><br> 1335 * </p> 1336 */ 1337 public static final ca.uhn.fhir.rest.gclient.TokenClientParam EMAIL = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EMAIL); 1338 1339 1340} 1341